@openclaw/slack 2026.7.1-beta.2 → 2026.7.1-beta.4
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/dist/{account-inspect-DOtQbKkB.js → account-inspect-Di7ditqZ.js} +1 -1
- package/dist/account-inspect-api.js +1 -1
- package/dist/{accounts-BPCiCe8y.js → accounts-BOJJiHSr.js} +14 -1
- package/dist/accounts.runtime-DWvaCb-X.js +2 -0
- package/dist/{action-runtime-E9QZMf0z.js → action-runtime-DoQGk_8D.js} +36 -32
- package/dist/action-runtime.runtime-BABj3aM-.js +2 -0
- package/dist/{actions-CqRHPciJ.js → actions-DMpDmKEA.js} +211 -57
- package/dist/actions.runtime-C103_BPW.js +2 -0
- package/dist/api.js +13 -13
- package/dist/{approval-handler.runtime-BqNO_HC_.js → approval-handler.runtime-CIUbOt5T.js} +2 -2
- package/dist/{channel-jO8Jdkge.js → channel-CG29WLVd.js} +198 -87
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-CDOZ8V3p.js → channel.setup-Dq6syTNU.js} +3 -3
- package/dist/{client-DG9cyk55.js → client-DGxwSL7f.js} +0 -1
- package/dist/{directory-config-DDVHDmrN.js → directory-config-BZuS8141.js} +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/{directory-live-DC-YA5SQ.js → directory-live-BNsxCgqP.js} +2 -2
- package/dist/format-YCNoNkM2.js +107 -0
- package/dist/http-routes-api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{interactive-replies-D-22gTp3.js → interactive-replies-CXpT-vA_.js} +13 -2
- package/dist/interactive-replies-api.js +1 -1
- package/dist/{message-tool-api--zYyTqrR.js → message-tool-api-BgWKyu2r.js} +11 -4
- package/dist/message-tool-api.js +1 -1
- package/dist/{monitor-BQ7P93ll.js → monitor-D6Km2CFH.js} +3 -3
- package/dist/outbound-adapter-DVoBfBW5.js +272 -0
- package/dist/{pipeline.runtime-cxw6Zihc.js → pipeline.runtime-0wEFX2CS.js} +184 -260
- package/dist/{plugin-routes-B9PvcDQJ.js → plugin-routes-CLp4obpN.js} +1 -1
- package/dist/{policy-DAE6BTN3.js → policy-Dj-puVPb.js} +10 -4
- package/dist/{probe-DFKt9Ute.js → probe-CuwRDE5j.js} +10 -4
- package/dist/{provider-BdoeWKr8.js → provider-Cot8h818.js} +153 -120
- package/dist/{relay-source-OcqQzKfX.js → relay-source-CU1LhyBj.js} +2 -2
- package/dist/{replies-D_G-EPr8.js → replies-Bbx6pG_B.js} +4 -3
- package/dist/{reply-blocks-CfJqf7eq.js → reply-blocks-BGQ6zSqM.js} +184 -36
- package/dist/{resolve-channels-eniB45fy.js → resolve-channels-CstkChBE.js} +1 -1
- package/dist/{resolve-users-DDKzl37a.js → resolve-users-C3NP2c-Q.js} +1 -1
- package/dist/{runtime-api-DHJ8ntLr.js → runtime-api-CEmqYxR-.js} +1 -1
- package/dist/runtime-api.js +12 -12
- package/dist/{scopes-BdVdJxFf.js → scopes-DCWVD5-8.js} +2 -2
- package/dist/{send-Dg6U9K7_.js → send-DKDXoeoV.js} +392 -225
- package/dist/send.runtime-GPRa63l1.js +2 -0
- package/dist/{setup-core-BCGzyZhx.js → setup-core-fGd6Gquy.js} +4 -3
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-D7xdZLxB.js → setup-surface-Dv2fIJNB.js} +5 -5
- package/dist/{shared-iMaNxOIL.js → shared-CosfcFri.js} +5 -5
- package/dist/{slash-dispatch.runtime-DVhs_fpQ.js → slash-dispatch.runtime-Ccm3quU1.js} +1 -1
- package/node_modules/@slack/web-api/dist/chat-stream.d.ts +6 -0
- package/node_modules/@slack/web-api/dist/chat-stream.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/chat-stream.js +8 -0
- package/node_modules/@slack/web-api/dist/chat-stream.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts.map +1 -1
- package/node_modules/@slack/web-api/package.json +1 -1
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert/strict.d.ts +10 -1
- package/node_modules/@types/node/assert.d.ts +144 -17
- package/node_modules/@types/node/async_hooks.d.ts +9 -9
- package/node_modules/@types/node/buffer.d.ts +64 -30
- package/node_modules/@types/node/child_process.d.ts +17 -21
- package/node_modules/@types/node/cluster.d.ts +13 -13
- package/node_modules/@types/node/console.d.ts +1 -1
- package/node_modules/@types/node/crypto.d.ts +471 -575
- package/node_modules/@types/node/diagnostics_channel.d.ts +274 -32
- package/node_modules/@types/node/dns.d.ts +15 -15
- package/node_modules/@types/node/events.d.ts +3 -3
- package/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@types/node/fs/promises.d.ts +7 -4
- package/node_modules/@types/node/fs.d.ts +24 -18
- package/node_modules/@types/node/globals.d.ts +4 -4
- package/node_modules/@types/node/http.d.ts +30 -5
- package/node_modules/@types/node/http2.d.ts +2 -1
- package/node_modules/@types/node/index.d.ts +1 -3
- package/node_modules/@types/node/inspector.d.ts +1 -1
- package/node_modules/@types/node/module.d.ts +16 -45
- package/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/node/os.d.ts +2 -2
- package/node_modules/@types/node/package.json +4 -4
- package/node_modules/@types/node/perf_hooks.d.ts +1 -9
- package/node_modules/@types/node/process.d.ts +25 -12
- package/node_modules/@types/node/quic.d.ts +92 -11
- package/node_modules/@types/node/readline.d.ts +12 -11
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sqlite.d.ts +56 -1
- package/node_modules/@types/node/stream/iter.d.ts +150 -0
- package/node_modules/@types/node/stream/promises.d.ts +2 -2
- package/node_modules/@types/node/stream/web.d.ts +1 -1
- package/node_modules/@types/node/stream.d.ts +37 -5
- package/node_modules/@types/node/test/reporters.d.ts +1 -1
- package/node_modules/@types/node/test.d.ts +120 -10
- package/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/node/ts5.6/index.d.ts +2 -4
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -3
- package/node_modules/@types/node/url.d.ts +3 -3
- package/node_modules/@types/node/util/types.d.ts +1 -1
- package/node_modules/@types/node/util.d.ts +22 -22
- package/node_modules/@types/node/v8.d.ts +85 -3
- package/node_modules/@types/node/vm.d.ts +9 -9
- package/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/node_modules/@types/node/worker_threads.d.ts +10 -12
- package/node_modules/@types/node/zlib.d.ts +3 -3
- package/node_modules/body-parser/README.md +16 -1
- package/node_modules/body-parser/index.js +4 -20
- package/node_modules/body-parser/lib/read.js +17 -17
- package/node_modules/body-parser/lib/types/json.js +60 -32
- package/node_modules/body-parser/lib/types/raw.js +3 -3
- package/node_modules/body-parser/lib/types/text.js +3 -3
- package/node_modules/body-parser/lib/types/urlencoded.js +16 -20
- package/node_modules/body-parser/lib/utils.js +18 -16
- package/node_modules/body-parser/node_modules/content-type/LICENSE +22 -0
- package/node_modules/body-parser/node_modules/content-type/README.md +69 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/body-parser/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/body-parser/node_modules/content-type/package.json +52 -0
- package/node_modules/body-parser/package.json +23 -10
- package/node_modules/range-parser/README.md +13 -12
- package/node_modules/range-parser/index.js +27 -8
- package/node_modules/range-parser/package.json +12 -8
- package/node_modules/semver/classes/range.js +6 -2
- package/node_modules/semver/package.json +1 -1
- package/node_modules/side-channel/CHANGELOG.md +10 -0
- package/node_modules/side-channel/README.md +1 -1
- package/node_modules/side-channel/index.js +5 -2
- package/node_modules/side-channel/package.json +10 -10
- package/node_modules/side-channel/test/index.js +16 -0
- package/node_modules/typebox/build/compile/validator.d.mts +2 -7
- package/node_modules/typebox/build/compile/validator.mjs +6 -36
- package/node_modules/typebox/build/error/errors.d.mts +1 -7
- package/node_modules/typebox/build/format/_idna.mjs +36 -6
- package/node_modules/typebox/build/format/_puny.mjs +4 -1
- package/node_modules/typebox/build/format/uuid.d.mts +2 -2
- package/node_modules/typebox/build/format/uuid.mjs +3 -3
- package/node_modules/typebox/build/guard/emit.d.mts +0 -4
- package/node_modules/typebox/build/guard/emit.mjs +0 -8
- package/node_modules/typebox/build/guard/guard.d.mts +4 -8
- package/node_modules/typebox/build/guard/guard.mjs +5 -13
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/boolean.mjs +4 -4
- package/node_modules/typebox/build/schema/engine/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/engine/index.mjs +0 -1
- package/node_modules/typebox/build/schema/engine/schema.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/type.mjs +14 -18
- package/node_modules/typebox/build/schema/types/dependencies.mjs +1 -1
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/types/index.mjs +0 -1
- package/node_modules/typebox/build/schema/types/schema.d.mts +1 -1
- package/node_modules/typebox/build/schema/types/schema.mjs +2 -2
- package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -1
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -1
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/en_US.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_419.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -1
- package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -1
- package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -1
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -1
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -1
- package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -1
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -1
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -1
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -1
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -1
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -1
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -1
- package/node_modules/typebox/build/system/memory/clone.d.mts +2 -3
- package/node_modules/typebox/build/system/memory/clone.mjs +73 -26
- package/node_modules/typebox/build/system/settings/settings.d.mts +15 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +3 -1
- package/node_modules/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +11 -0
- package/node_modules/typebox/build/type/action/conditional.d.mts +2 -3
- package/node_modules/typebox/build/type/action/conditional.mjs +2 -1
- package/node_modules/typebox/build/type/action/index.d.mts +7 -4
- package/node_modules/typebox/build/type/action/index.mjs +7 -4
- package/node_modules/typebox/build/type/action/mapped.d.mts +2 -3
- package/node_modules/typebox/build/type/action/mapped.mjs +2 -1
- package/node_modules/typebox/build/type/action/module.d.mts +8 -7
- package/node_modules/typebox/build/type/action/module.mjs +7 -6
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -5
- package/node_modules/typebox/build/type/action/with.d.mts +11 -0
- package/node_modules/typebox/build/type/action/with.mjs +11 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +1 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +2 -2
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +2 -3
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +3 -6
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +6 -9
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +10 -16
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +9 -15
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +8 -14
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +2 -5
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +3 -2
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +1 -2
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +2 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +10 -6
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +3 -3
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +17 -5
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +34 -8
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +5 -6
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +11 -12
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/index.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/index.mjs +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +4 -4
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +9 -6
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +5 -2
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +44 -31
- package/node_modules/typebox/build/type/engine/instantiate.mjs +82 -83
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +3 -6
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +2 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +5 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +4 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +3 -3
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +5 -4
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +10 -5
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +7 -9
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +17 -15
- package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +2 -2
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +3 -4
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +2 -1
- package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/node_modules/typebox/build/type/engine/priority/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +28 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +14 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +2 -2
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +8 -5
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +2 -2
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +3 -3
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +6 -6
- package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +8 -0
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +3 -2
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +2 -2
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +3 -1
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +7 -4
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +3 -3
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +6 -6
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +1 -0
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +1 -4
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +7 -13
- package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/node_modules/typebox/build/type/engine/{options → with}/instantiate.mjs +5 -5
- package/node_modules/typebox/build/type/extends/dependent.d.mts +6 -0
- package/node_modules/typebox/build/type/extends/dependent.mjs +6 -0
- package/node_modules/typebox/build/type/extends/enum.d.mts +4 -4
- package/node_modules/typebox/build/type/extends/enum.mjs +3 -2
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +5 -7
- package/node_modules/typebox/build/type/extends/extends_left.mjs +24 -27
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +7 -5
- package/node_modules/typebox/build/type/extends/extends_right.mjs +20 -15
- package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
- package/node_modules/typebox/build/type/extends/object.d.mts +8 -1
- package/node_modules/typebox/build/type/extends/object.mjs +25 -3
- package/node_modules/typebox/build/type/extends/parameters.mjs +2 -2
- package/node_modules/typebox/build/type/extends/record.d.mts +13 -0
- package/node_modules/typebox/build/type/extends/record.mjs +23 -0
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +3 -3
- package/node_modules/typebox/build/type/extends/template_literal.mjs +3 -3
- package/node_modules/typebox/build/type/extends/tuple.d.mts +3 -6
- package/node_modules/typebox/build/type/extends/tuple.mjs +6 -5
- package/node_modules/typebox/build/type/extends/union.mjs +2 -2
- package/node_modules/typebox/build/type/script/mapping.d.mts +84 -99
- package/node_modules/typebox/build/type/script/mapping.mjs +81 -85
- package/node_modules/typebox/build/type/script/parser.d.mts +40 -40
- package/node_modules/typebox/build/type/script/parser.mjs +22 -22
- package/node_modules/typebox/build/type/script/script.d.mts +3 -4
- package/node_modules/typebox/build/type/script/script.mjs +3 -2
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/until.mjs +2 -2
- package/node_modules/typebox/build/type/types/_codec.d.mts +12 -12
- package/node_modules/typebox/build/type/types/_codec.mjs +0 -1
- package/node_modules/typebox/build/type/types/_immutable.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_immutable.mjs +2 -10
- package/node_modules/typebox/build/type/types/_optional.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_optional.mjs +2 -11
- package/node_modules/typebox/build/type/types/_readonly.d.mts +2 -9
- package/node_modules/typebox/build/type/types/_readonly.mjs +2 -10
- package/node_modules/typebox/build/type/types/_refine.d.mts +8 -10
- package/node_modules/typebox/build/type/types/_refine.mjs +1 -2
- package/node_modules/typebox/build/type/types/call.d.mts +3 -3
- package/node_modules/typebox/build/type/types/call.mjs +3 -2
- package/node_modules/typebox/build/type/types/deferred.d.mts +1 -0
- package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/node_modules/typebox/build/type/types/dependent.d.mts +17 -0
- package/node_modules/typebox/build/type/types/dependent.mjs +24 -0
- package/node_modules/typebox/build/type/types/enum.d.mts +3 -1
- package/node_modules/typebox/build/type/types/enum.mjs +5 -0
- package/node_modules/typebox/build/type/types/index.d.mts +1 -4
- package/node_modules/typebox/build/type/types/index.mjs +1 -4
- package/node_modules/typebox/build/type/types/number.d.mts +1 -1
- package/node_modules/typebox/build/type/types/number.mjs +1 -1
- package/node_modules/typebox/build/type/types/record.d.mts +13 -7
- package/node_modules/typebox/build/type/types/record.mjs +15 -9
- package/node_modules/typebox/build/type/types/static.d.mts +2 -5
- package/node_modules/typebox/build/typebox.d.mts +4 -8
- package/node_modules/typebox/build/typebox.mjs +4 -8
- package/node_modules/typebox/build/value/clean/clean.mjs +4 -2
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +2 -2
- package/node_modules/typebox/build/value/clean/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/clean/from_union.d.mts +1 -1
- package/node_modules/typebox/build/value/clean/from_union.mjs +1 -2
- package/node_modules/typebox/build/value/clone/clone.mjs +2 -73
- package/node_modules/typebox/build/value/codec/decode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/encode.mjs +4 -2
- package/node_modules/typebox/build/value/codec/from_array.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_object.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_record.mjs +2 -7
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -4
- package/node_modules/typebox/build/value/codec/from_union.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_enum.mjs +3 -4
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +1 -1
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +2 -3
- package/node_modules/typebox/build/value/convert/from_type.mjs +19 -21
- package/node_modules/typebox/build/value/create/from_enum.mjs +2 -2
- package/node_modules/typebox/build/value/create/from_type.mjs +23 -31
- package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_type.mjs +8 -10
- package/node_modules/typebox/build/value/index.d.mts +0 -1
- package/node_modules/typebox/build/value/index.mjs +0 -1
- package/node_modules/typebox/build/value/repair/from_enum.mjs +2 -3
- package/node_modules/typebox/build/value/repair/from_type.mjs +24 -22
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +6 -2
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +62 -26
- package/node_modules/typebox/build/value/value.d.mts +0 -1
- package/node_modules/typebox/build/value/value.mjs +0 -1
- package/node_modules/typebox/package.json +25 -25
- package/node_modules/typebox/readme.md +97 -80
- package/node_modules/undici-types/agent.d.ts +0 -2
- package/node_modules/undici-types/client.d.ts +25 -19
- package/node_modules/undici-types/dispatcher.d.ts +7 -33
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/undici-types/fetch.d.ts +24 -4
- package/node_modules/undici-types/h2c-client.d.ts +6 -6
- package/node_modules/undici-types/handlers.d.ts +1 -2
- package/node_modules/undici-types/header.d.ts +5 -0
- package/node_modules/undici-types/index.d.ts +3 -1
- package/node_modules/undici-types/interceptors.d.ts +1 -1
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/pool.d.ts +0 -2
- package/node_modules/undici-types/proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -2
- package/node_modules/undici-types/snapshot-agent.d.ts +4 -0
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
- package/node_modules/undici-types/webidl.d.ts +0 -1
- package/npm-shrinkwrap.json +55 -56
- package/openclaw.plugin.json +46 -0
- package/package.json +6 -6
- package/dist/accounts.runtime-CgWgzjLX.js +0 -2
- package/dist/action-runtime.runtime-BQrVgSOq.js +0 -2
- package/dist/actions.runtime-Dl6AfO_g.js +0 -2
- package/dist/errors-CZtmv-h0.js +0 -107
- package/dist/outbound-adapter-BHUtpXz0.js +0 -188
- package/dist/send.runtime-a-O4PP2B.js +0 -2
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/README.md +0 -15
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert/strict.d.ts +0 -59
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/assert.d.ts +0 -950
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/async_hooks.d.ts +0 -711
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.buffer.d.ts +0 -466
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/buffer.d.ts +0 -1765
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/child_process.d.ts +0 -1366
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/console.d.ts +0 -93
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/constants.d.ts +0 -14
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/crypto.d.ts +0 -4058
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/dgram.d.ts +0 -537
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/diagnostics_channel.d.ts +0 -552
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns/promises.d.ts +0 -497
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/dns.d.ts +0 -876
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/domain.d.ts +0 -150
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/events.d.ts +0 -1008
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs/promises.d.ts +0 -1468
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/fs.d.ts +0 -4780
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.d.ts +0 -150
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/globals.typedarray.d.ts +0 -101
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/http.d.ts +0 -2147
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/http2.d.ts +0 -2485
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/https.d.ts +0 -400
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/index.d.ts +0 -117
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector/promises.d.ts +0 -35
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.d.ts +0 -264
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/inspector.generated.d.ts +0 -4406
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/module.d.ts +0 -755
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/net.d.ts +0 -970
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/os.d.ts +0 -498
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/package.json +0 -155
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/path.d.ts +0 -178
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/perf_hooks.d.ts +0 -612
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/process.d.ts +0 -2204
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/punycode.d.ts +0 -89
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/querystring.d.ts +0 -139
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/quic.d.ts +0 -897
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline/promises.d.ts +0 -158
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/readline.d.ts +0 -507
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/repl.d.ts +0 -420
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/sea.d.ts +0 -47
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/sqlite.d.ts +0 -1068
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/consumers.d.ts +0 -114
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/iter.d.ts +0 -301
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/promises.d.ts +0 -211
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream/web.d.ts +0 -300
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/stream.d.ts +0 -1774
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/string_decoder.d.ts +0 -27
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/test/reporters.d.ts +0 -59
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/test.d.ts +0 -2279
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/timers.d.ts +0 -149
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/tls.d.ts +0 -1193
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/trace_events.d.ts +0 -103
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.6/index.d.ts +0 -119
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/ts5.7/index.d.ts +0 -119
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/tty.d.ts +0 -225
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/url.d.ts +0 -556
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/util.d.ts +0 -1677
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/v8.d.ts +0 -980
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/vm.d.ts +0 -1136
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/wasi.d.ts +0 -131
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/events.d.ts +0 -106
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/storage.d.ts +0 -24
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/streams.d.ts +0 -115
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/worker_threads.d.ts +0 -671
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib/iter.d.ts +0 -131
- package/node_modules/@types/jsonwebtoken/node_modules/@types/node/zlib.d.ts +0 -589
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/node_modules/@types/ws/node_modules/@types/node/LICENSE +0 -21
- package/node_modules/@types/ws/node_modules/@types/node/README.md +0 -15
- package/node_modules/@types/ws/node_modules/@types/node/assert/strict.d.ts +0 -59
- package/node_modules/@types/ws/node_modules/@types/node/assert.d.ts +0 -950
- package/node_modules/@types/ws/node_modules/@types/node/async_hooks.d.ts +0 -711
- package/node_modules/@types/ws/node_modules/@types/node/buffer.buffer.d.ts +0 -466
- package/node_modules/@types/ws/node_modules/@types/node/buffer.d.ts +0 -1765
- package/node_modules/@types/ws/node_modules/@types/node/child_process.d.ts +0 -1366
- package/node_modules/@types/ws/node_modules/@types/node/cluster.d.ts +0 -432
- package/node_modules/@types/ws/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/node_modules/@types/ws/node_modules/@types/node/console.d.ts +0 -93
- package/node_modules/@types/ws/node_modules/@types/node/constants.d.ts +0 -14
- package/node_modules/@types/ws/node_modules/@types/node/crypto.d.ts +0 -4058
- package/node_modules/@types/ws/node_modules/@types/node/dgram.d.ts +0 -537
- package/node_modules/@types/ws/node_modules/@types/node/diagnostics_channel.d.ts +0 -552
- package/node_modules/@types/ws/node_modules/@types/node/dns/promises.d.ts +0 -497
- package/node_modules/@types/ws/node_modules/@types/node/dns.d.ts +0 -876
- package/node_modules/@types/ws/node_modules/@types/node/domain.d.ts +0 -150
- package/node_modules/@types/ws/node_modules/@types/node/events.d.ts +0 -1008
- package/node_modules/@types/ws/node_modules/@types/node/fs/promises.d.ts +0 -1468
- package/node_modules/@types/ws/node_modules/@types/node/fs.d.ts +0 -4780
- package/node_modules/@types/ws/node_modules/@types/node/globals.d.ts +0 -150
- package/node_modules/@types/ws/node_modules/@types/node/globals.typedarray.d.ts +0 -101
- package/node_modules/@types/ws/node_modules/@types/node/http.d.ts +0 -2147
- package/node_modules/@types/ws/node_modules/@types/node/http2.d.ts +0 -2485
- package/node_modules/@types/ws/node_modules/@types/node/https.d.ts +0 -400
- package/node_modules/@types/ws/node_modules/@types/node/index.d.ts +0 -117
- package/node_modules/@types/ws/node_modules/@types/node/inspector/promises.d.ts +0 -35
- package/node_modules/@types/ws/node_modules/@types/node/inspector.d.ts +0 -264
- package/node_modules/@types/ws/node_modules/@types/node/inspector.generated.d.ts +0 -4406
- package/node_modules/@types/ws/node_modules/@types/node/module.d.ts +0 -755
- package/node_modules/@types/ws/node_modules/@types/node/net.d.ts +0 -970
- package/node_modules/@types/ws/node_modules/@types/node/os.d.ts +0 -498
- package/node_modules/@types/ws/node_modules/@types/node/package.json +0 -155
- package/node_modules/@types/ws/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/ws/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/ws/node_modules/@types/node/path.d.ts +0 -178
- package/node_modules/@types/ws/node_modules/@types/node/perf_hooks.d.ts +0 -612
- package/node_modules/@types/ws/node_modules/@types/node/process.d.ts +0 -2204
- package/node_modules/@types/ws/node_modules/@types/node/punycode.d.ts +0 -89
- package/node_modules/@types/ws/node_modules/@types/node/querystring.d.ts +0 -139
- package/node_modules/@types/ws/node_modules/@types/node/quic.d.ts +0 -897
- package/node_modules/@types/ws/node_modules/@types/node/readline/promises.d.ts +0 -158
- package/node_modules/@types/ws/node_modules/@types/node/readline.d.ts +0 -507
- package/node_modules/@types/ws/node_modules/@types/node/repl.d.ts +0 -420
- package/node_modules/@types/ws/node_modules/@types/node/sea.d.ts +0 -47
- package/node_modules/@types/ws/node_modules/@types/node/sqlite.d.ts +0 -1068
- package/node_modules/@types/ws/node_modules/@types/node/stream/consumers.d.ts +0 -114
- package/node_modules/@types/ws/node_modules/@types/node/stream/iter.d.ts +0 -301
- package/node_modules/@types/ws/node_modules/@types/node/stream/promises.d.ts +0 -211
- package/node_modules/@types/ws/node_modules/@types/node/stream/web.d.ts +0 -300
- package/node_modules/@types/ws/node_modules/@types/node/stream.d.ts +0 -1774
- package/node_modules/@types/ws/node_modules/@types/node/string_decoder.d.ts +0 -27
- package/node_modules/@types/ws/node_modules/@types/node/test/reporters.d.ts +0 -59
- package/node_modules/@types/ws/node_modules/@types/node/test.d.ts +0 -2279
- package/node_modules/@types/ws/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/node_modules/@types/ws/node_modules/@types/node/timers.d.ts +0 -149
- package/node_modules/@types/ws/node_modules/@types/node/tls.d.ts +0 -1193
- package/node_modules/@types/ws/node_modules/@types/node/trace_events.d.ts +0 -103
- package/node_modules/@types/ws/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
- package/node_modules/@types/ws/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/ws/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -36
- package/node_modules/@types/ws/node_modules/@types/node/ts5.6/index.d.ts +0 -119
- package/node_modules/@types/ws/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/ws/node_modules/@types/node/ts5.7/index.d.ts +0 -119
- package/node_modules/@types/ws/node_modules/@types/node/tty.d.ts +0 -225
- package/node_modules/@types/ws/node_modules/@types/node/url.d.ts +0 -556
- package/node_modules/@types/ws/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/ws/node_modules/@types/node/util.d.ts +0 -1677
- package/node_modules/@types/ws/node_modules/@types/node/v8.d.ts +0 -980
- package/node_modules/@types/ws/node_modules/@types/node/vm.d.ts +0 -1136
- package/node_modules/@types/ws/node_modules/@types/node/wasi.d.ts +0 -131
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -59
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/events.d.ts +0 -106
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/fetch.d.ts +0 -69
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/navigator.d.ts +0 -25
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/storage.d.ts +0 -24
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/streams.d.ts +0 -115
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/ws/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/@types/ws/node_modules/@types/node/worker_threads.d.ts +0 -671
- package/node_modules/@types/ws/node_modules/@types/node/zlib/iter.d.ts +0 -131
- package/node_modules/@types/ws/node_modules/@types/node/zlib.d.ts +0 -589
- package/node_modules/typebox/build/schema/engine/_guard.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/_guard.mjs +0 -26
- package/node_modules/typebox/build/schema/types/_guard.d.mts +0 -10
- package/node_modules/typebox/build/schema/types/_guard.mjs +0 -16
- package/node_modules/typebox/build/type/action/_optional.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_optional.mjs +0 -40
- package/node_modules/typebox/build/type/action/_readonly.d.mts +0 -19
- package/node_modules/typebox/build/type/action/_readonly.mjs +0 -40
- package/node_modules/typebox/build/type/action/awaited.d.mts +0 -15
- package/node_modules/typebox/build/type/action/awaited.mjs +0 -15
- package/node_modules/typebox/build/type/action/options.d.mts +0 -11
- package/node_modules/typebox/build/type/action/options.mjs +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +0 -20
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +0 -24
- package/node_modules/typebox/build/type/engine/options/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/options/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/async_iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/iterator.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/iterator.mjs +0 -9
- package/node_modules/typebox/build/type/extends/promise.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/promise.mjs +0 -9
- package/node_modules/typebox/build/type/types/async_iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/async_iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/base.d.mts +0 -50
- package/node_modules/typebox/build/type/types/base.mjs +0 -84
- package/node_modules/typebox/build/type/types/iterator.d.mts +0 -20
- package/node_modules/typebox/build/type/types/iterator.mjs +0 -28
- package/node_modules/typebox/build/type/types/promise.d.mts +0 -21
- package/node_modules/typebox/build/type/types/promise.mjs +0 -29
- package/node_modules/typebox/build/value/clean/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/convert/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_base.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_iterator.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_iterator.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_promise.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_promise.mjs +0 -5
- package/node_modules/typebox/build/value/default/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_base.mjs +0 -5
- package/node_modules/typebox/build/value/mutate/error.d.mts +0 -3
- package/node_modules/typebox/build/value/mutate/error.mjs +0 -6
- package/node_modules/typebox/build/value/mutate/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_array.mjs +0 -16
- package/node_modules/typebox/build/value/mutate/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_object.mjs +0 -40
- package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +0 -7
- package/node_modules/typebox/build/value/mutate/from_value.d.mts +0 -2
- package/node_modules/typebox/build/value/mutate/from_value.mjs +0 -12
- package/node_modules/typebox/build/value/mutate/index.d.mts +0 -1
- package/node_modules/typebox/build/value/mutate/index.mjs +0 -1
- package/node_modules/typebox/build/value/mutate/mutate.d.mts +0 -11
- package/node_modules/typebox/build/value/mutate/mutate.mjs +0 -41
- package/node_modules/typebox/build/value/repair/from_base.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_base.mjs +0 -8
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.d.mts +0 -0
- /package/node_modules/typebox/build/type/engine/{awaited → with}/index.mjs +0 -0
|
@@ -33,7 +33,10 @@ declare module "node:diagnostics_channel" {
|
|
|
33
33
|
* @param name The channel name
|
|
34
34
|
* @return The named channel object
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
37
|
+
function channel<ContextType = any, StoreType = ContextType>(
|
|
38
|
+
name: string | symbol,
|
|
39
|
+
): Channel<ContextType, StoreType>;
|
|
37
40
|
type ChannelListener = (message: unknown, name: string | symbol) => void;
|
|
38
41
|
/**
|
|
39
42
|
* Register a message handler to subscribe to this channel. This message handler
|
|
@@ -96,12 +99,39 @@ declare module "node:diagnostics_channel" {
|
|
|
96
99
|
* @param nameOrChannels Channel name or object containing all the `TracingChannel Channels`
|
|
97
100
|
* @return Collection of channels to trace with
|
|
98
101
|
*/
|
|
99
|
-
function tracingChannel<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
function tracingChannel<ContextType extends object = object, StoreType = ContextType>(
|
|
103
|
+
nameOrChannels: string | TracingChannelCollection<ContextType, StoreType>,
|
|
104
|
+
): TracingChannel<ContextType, StoreType>;
|
|
105
|
+
/**
|
|
106
|
+
* Creates a {@link BoundedChannel} wrapper for the given channels. If a name is
|
|
107
|
+
* given, the corresponding channels will be created in the form of
|
|
108
|
+
* `tracing:${name}:${eventType}` where `eventType` is `start` or `end`.
|
|
109
|
+
*
|
|
110
|
+
* A `BoundedChannel` is a simplified version of {@link TracingChannel} that only
|
|
111
|
+
* traces synchronous operations. It only has `start` and `end` events, without
|
|
112
|
+
* `asyncStart`, `asyncEnd`, or `error` events, making it suitable for tracing
|
|
113
|
+
* operations that don't involve asynchronous continuations or error handling.
|
|
114
|
+
*
|
|
115
|
+
* ```js
|
|
116
|
+
* import { boundedChannel, channel } from 'node:diagnostics_channel';
|
|
117
|
+
*
|
|
118
|
+
* const wc = boundedChannel('my-operation');
|
|
119
|
+
*
|
|
120
|
+
* // or...
|
|
121
|
+
*
|
|
122
|
+
* const wc2 = boundedChannel({
|
|
123
|
+
* start: channel('tracing:my-operation:start'),
|
|
124
|
+
* end: channel('tracing:my-operation:end'),
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
* @since v26.1.0
|
|
128
|
+
* @experimental
|
|
129
|
+
* @param nameOrChannels Channel name or
|
|
130
|
+
* object containing all the [BoundedChannel Channels](https://nodejs.org/docs/latest-v26.x/api/diagnostics_channel.html#boundedchannel-channels)
|
|
131
|
+
*/
|
|
132
|
+
function boundedChannel<ContextType extends object = object, StoreType = ContextType>(
|
|
133
|
+
nameOrChannels: string | BoundedChannelCollection<ContextType, StoreType>,
|
|
134
|
+
): BoundedChannel<ContextType, StoreType>;
|
|
105
135
|
/**
|
|
106
136
|
* The class `Channel` represents an individual named channel within the data
|
|
107
137
|
* pipeline. It is used to track subscribers and to publish messages when there
|
|
@@ -111,7 +141,8 @@ declare module "node:diagnostics_channel" {
|
|
|
111
141
|
* with `new Channel(name)` is not supported.
|
|
112
142
|
* @since v15.1.0, v14.17.0
|
|
113
143
|
*/
|
|
114
|
-
class Channel<
|
|
144
|
+
class Channel<ContextType = any, StoreType = ContextType> {
|
|
145
|
+
private constructor();
|
|
115
146
|
readonly name: string | symbol;
|
|
116
147
|
/**
|
|
117
148
|
* Check if there are active subscribers to this channel. This is helpful if
|
|
@@ -132,7 +163,6 @@ declare module "node:diagnostics_channel" {
|
|
|
132
163
|
* @since v15.1.0, v14.17.0
|
|
133
164
|
*/
|
|
134
165
|
readonly hasSubscribers: boolean;
|
|
135
|
-
private constructor(name: string | symbol);
|
|
136
166
|
/**
|
|
137
167
|
* Publish a message to any subscribers to the channel. This will trigger
|
|
138
168
|
* message handlers synchronously so they will execute within the same context.
|
|
@@ -277,7 +307,48 @@ declare module "node:diagnostics_channel" {
|
|
|
277
307
|
thisArg?: ThisArg,
|
|
278
308
|
...args: Args
|
|
279
309
|
): Result;
|
|
310
|
+
/**
|
|
311
|
+
* Creates a disposable scope that binds the given data to any AsyncLocalStorage
|
|
312
|
+
* instances bound to the channel and publishes it to subscribers. The scope
|
|
313
|
+
* automatically restores the previous storage contexts when disposed.
|
|
314
|
+
*
|
|
315
|
+
* This method enables the use of JavaScript's explicit resource management
|
|
316
|
+
* (`using` syntax with `Symbol.dispose`) to manage store contexts without
|
|
317
|
+
* closure wrapping.
|
|
318
|
+
*
|
|
319
|
+
* ```js
|
|
320
|
+
* import { channel } from 'node:diagnostics_channel';
|
|
321
|
+
* import { AsyncLocalStorage } from 'node:async_hooks';
|
|
322
|
+
*
|
|
323
|
+
* const store = new AsyncLocalStorage();
|
|
324
|
+
* const ch = channel('my-channel');
|
|
325
|
+
*
|
|
326
|
+
* ch.bindStore(store, (message) => {
|
|
327
|
+
* return { ...message, timestamp: Date.now() };
|
|
328
|
+
* });
|
|
329
|
+
*
|
|
330
|
+
* {
|
|
331
|
+
* using scope = ch.withStoreScope({ request: 'data' });
|
|
332
|
+
* // Store is entered, data is published
|
|
333
|
+
* console.log(store.getStore()); // { request: 'data', timestamp: ... }
|
|
334
|
+
* }
|
|
335
|
+
* // Store is automatically restored on scope exit
|
|
336
|
+
* ```
|
|
337
|
+
* @since v26.1.0
|
|
338
|
+
* @experimental
|
|
339
|
+
*/
|
|
340
|
+
withStoreScope(data: ContextType): RunStoresScope;
|
|
280
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* The class `RunStoresScope` represents a disposable scope created by
|
|
344
|
+
* `channel.withStoreScope(data)`. It manages the lifecycle of store
|
|
345
|
+
* contexts and ensures they are properly restored when the scope exits.
|
|
346
|
+
*
|
|
347
|
+
* The scope must be used with the `using` syntax to ensure proper disposal.
|
|
348
|
+
* @since v26.1.0
|
|
349
|
+
* @experimental
|
|
350
|
+
*/
|
|
351
|
+
interface RunStoresScope extends Disposable {}
|
|
281
352
|
interface TracingChannelSubscribers<ContextType extends object> {
|
|
282
353
|
start: (message: ContextType) => void;
|
|
283
354
|
end: (
|
|
@@ -304,12 +375,12 @@ declare module "node:diagnostics_channel" {
|
|
|
304
375
|
},
|
|
305
376
|
) => void;
|
|
306
377
|
}
|
|
307
|
-
interface TracingChannelCollection<
|
|
308
|
-
start: Channel<
|
|
309
|
-
end: Channel<
|
|
310
|
-
asyncStart: Channel<
|
|
311
|
-
asyncEnd: Channel<
|
|
312
|
-
error: Channel<
|
|
378
|
+
interface TracingChannelCollection<ContextType extends object = object, StoreType = ContextType> {
|
|
379
|
+
start: Channel<ContextType, StoreType>;
|
|
380
|
+
end: Channel<ContextType, StoreType>;
|
|
381
|
+
asyncStart: Channel<ContextType, StoreType>;
|
|
382
|
+
asyncEnd: Channel<ContextType, StoreType>;
|
|
383
|
+
error: Channel<ContextType, StoreType>;
|
|
313
384
|
}
|
|
314
385
|
/**
|
|
315
386
|
* The class `TracingChannel` is a collection of `TracingChannel Channels` which
|
|
@@ -320,12 +391,9 @@ declare module "node:diagnostics_channel" {
|
|
|
320
391
|
* @since v19.9.0
|
|
321
392
|
* @experimental
|
|
322
393
|
*/
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
asyncStart: Channel<StoreType, ContextType>;
|
|
327
|
-
asyncEnd: Channel<StoreType, ContextType>;
|
|
328
|
-
error: Channel<StoreType, ContextType>;
|
|
394
|
+
interface TracingChannel<ContextType extends object = object, StoreType = ContextType>
|
|
395
|
+
extends TracingChannelCollection<ContextType, StoreType>
|
|
396
|
+
{
|
|
329
397
|
/**
|
|
330
398
|
* Helper to subscribe a collection of functions to the corresponding channels.
|
|
331
399
|
* This is the same as calling `channel.subscribe(onMessage)` on each channel
|
|
@@ -358,7 +426,7 @@ declare module "node:diagnostics_channel" {
|
|
|
358
426
|
* @experimental
|
|
359
427
|
* @param subscribers Set of `TracingChannel Channels` subscribers
|
|
360
428
|
*/
|
|
361
|
-
subscribe(subscribers: TracingChannelSubscribers<ContextType
|
|
429
|
+
subscribe(subscribers: NodeJS.PartialOptions<TracingChannelSubscribers<ContextType>>): void;
|
|
362
430
|
/**
|
|
363
431
|
* Helper to unsubscribe a collection of functions from the corresponding channels.
|
|
364
432
|
* This is the same as calling `channel.unsubscribe(onMessage)` on each channel
|
|
@@ -392,7 +460,7 @@ declare module "node:diagnostics_channel" {
|
|
|
392
460
|
* @param subscribers Set of `TracingChannel Channels` subscribers
|
|
393
461
|
* @return `true` if all handlers were successfully unsubscribed, and `false` otherwise.
|
|
394
462
|
*/
|
|
395
|
-
unsubscribe(subscribers: TracingChannelSubscribers<ContextType
|
|
463
|
+
unsubscribe(subscribers: NodeJS.PartialOptions<TracingChannelSubscribers<ContextType>>): void;
|
|
396
464
|
/**
|
|
397
465
|
* Trace a synchronous function call. This will always produce a `start event` and `end event` around the execution and may produce an `error event` if the given function throws an error.
|
|
398
466
|
* This will run the given function using `channel.runStores(context, ...)` on the `start` channel which ensures all
|
|
@@ -427,12 +495,20 @@ declare module "node:diagnostics_channel" {
|
|
|
427
495
|
...args: Args
|
|
428
496
|
): Result;
|
|
429
497
|
/**
|
|
430
|
-
* Trace
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
498
|
+
* Trace an asynchronous function call which returns a `Promise` or
|
|
499
|
+
* [thenable object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise#thenables). This will always produce a [`start` event](https://nodejs.org/docs/latest-v26.x/api/diagnostics_channel.html#startevent) and
|
|
500
|
+
* [`end` event](https://nodejs.org/docs/latest-v26.x/api/diagnostics_channel.html#endevent) around the synchronous portion of the function execution, and
|
|
501
|
+
* will produce an [`asyncStart` event](https://nodejs.org/docs/latest-v26.x/api/diagnostics_channel.html#asyncstartevent) and [`asyncEnd` event](https://nodejs.org/docs/latest-v26.x/api/diagnostics_channel.html#asyncendevent) when the
|
|
502
|
+
* returned promise is resolved or rejected. It may also produce an
|
|
503
|
+
* [`error` event](https://nodejs.org/docs/latest-v26.x/api/diagnostics_channel.html#errorevent) if the given function throws an error or the returned promise
|
|
504
|
+
* is rejected. This will run the given function using
|
|
505
|
+
* [`channel.runStores(context, ...)`](https://nodejs.org/docs/latest-v26.x/api/diagnostics_channel.html##channelrunstorescontext-fn-thisarg-args) on the `start` channel which ensures all
|
|
434
506
|
* events should have any bound stores set to match this trace context.
|
|
435
507
|
*
|
|
508
|
+
* If the value returned by `fn` is not a Promise or thenable, then it will be
|
|
509
|
+
* returned with a warning, and no `asyncStart` or `asyncEnd` events will be
|
|
510
|
+
* produced.
|
|
511
|
+
*
|
|
436
512
|
* To ensure only correct trace graphs are formed, events will only be published if subscribers are present prior to starting the trace. Subscriptions
|
|
437
513
|
* which are added after the trace begins will not receive future events from that trace, only future traces will be seen.
|
|
438
514
|
*
|
|
@@ -449,18 +525,21 @@ declare module "node:diagnostics_channel" {
|
|
|
449
525
|
* ```
|
|
450
526
|
* @since v19.9.0
|
|
451
527
|
* @experimental
|
|
452
|
-
* @param fn
|
|
528
|
+
* @param fn Function to wrap a trace around
|
|
453
529
|
* @param context Shared object to correlate trace events through
|
|
454
530
|
* @param thisArg The receiver to be used for the function call
|
|
455
531
|
* @param args Optional arguments to pass to the function
|
|
456
|
-
* @return
|
|
532
|
+
* @returns The return value of the given function, or the result of
|
|
533
|
+
* calling `.then(...)` on the return value if the tracing channel has active
|
|
534
|
+
* subscribers. If the return value is not a Promise or thenable, then
|
|
535
|
+
* it is returned as-is and a warning is emitted.
|
|
457
536
|
*/
|
|
458
|
-
tracePromise<ThisArg = any, Args extends any[] = any[], Result = any>(
|
|
459
|
-
fn: (this: ThisArg, ...args: Args) =>
|
|
537
|
+
tracePromise<ThisArg = any, Args extends any[] = any[], Result extends PromiseLike<unknown> = any>(
|
|
538
|
+
fn: (this: ThisArg, ...args: Args) => Result,
|
|
460
539
|
context?: ContextType,
|
|
461
540
|
thisArg?: ThisArg,
|
|
462
541
|
...args: Args
|
|
463
|
-
):
|
|
542
|
+
): Result;
|
|
464
543
|
/**
|
|
465
544
|
* Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the
|
|
466
545
|
* function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or
|
|
@@ -546,6 +625,169 @@ declare module "node:diagnostics_channel" {
|
|
|
546
625
|
*/
|
|
547
626
|
readonly hasSubscribers: boolean;
|
|
548
627
|
}
|
|
628
|
+
interface BoundedChannelSubscribers<ContextType extends object> {
|
|
629
|
+
start: (message: ContextType) => void;
|
|
630
|
+
end: (message: ContextType) => void;
|
|
631
|
+
}
|
|
632
|
+
interface BoundedChannelCollection<ContextType extends object = object, StoreType = ContextType> {
|
|
633
|
+
start: Channel<ContextType, StoreType>;
|
|
634
|
+
end: Channel<ContextType, StoreType>;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* The class `BoundedChannel` is a simplified version of {@link TracingChannel} that
|
|
638
|
+
* only traces synchronous operations. It consists of two channels (`start` and
|
|
639
|
+
* `end`) instead of five, omitting the `asyncStart`, `asyncEnd`, and `error`
|
|
640
|
+
* events. This makes it suitable for tracing operations that don't involve
|
|
641
|
+
* asynchronous continuations or error handling.
|
|
642
|
+
*
|
|
643
|
+
* Like `TracingChannel`, it is recommended to create and reuse a single
|
|
644
|
+
* `BoundedChannel` at the top-level of the file rather than creating them
|
|
645
|
+
* dynamically.
|
|
646
|
+
* @since v26.1.0
|
|
647
|
+
* @experimental
|
|
648
|
+
*/
|
|
649
|
+
interface BoundedChannel<ContextType extends object = object, StoreType = ContextType>
|
|
650
|
+
extends BoundedChannelCollection<ContextType, StoreType>
|
|
651
|
+
{
|
|
652
|
+
/**
|
|
653
|
+
* Check if any of the `start` or `end` channels have subscribers.
|
|
654
|
+
*
|
|
655
|
+
* ```js
|
|
656
|
+
* import { boundedChannel } from 'node:diagnostics_channel';
|
|
657
|
+
*
|
|
658
|
+
* const wc = boundedChannel('my-operation');
|
|
659
|
+
*
|
|
660
|
+
* if (wc.hasSubscribers) {
|
|
661
|
+
* // There are subscribers, perform traced operation
|
|
662
|
+
* }
|
|
663
|
+
* ```
|
|
664
|
+
* @since v26.1.0
|
|
665
|
+
*/
|
|
666
|
+
readonly hasSubscribers: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* Subscribe to the bounded channel events. This is equivalent to calling
|
|
669
|
+
* [`channel.subscribe(onMessage)`][] on each channel individually.
|
|
670
|
+
*
|
|
671
|
+
* ```mjs
|
|
672
|
+
* import { boundedChannel } from 'node:diagnostics_channel';
|
|
673
|
+
*
|
|
674
|
+
* const wc = boundedChannel('my-operation');
|
|
675
|
+
*
|
|
676
|
+
* wc.subscribe({
|
|
677
|
+
* start(message) {
|
|
678
|
+
* // Handle start
|
|
679
|
+
* },
|
|
680
|
+
* end(message) {
|
|
681
|
+
* // Handle end
|
|
682
|
+
* },
|
|
683
|
+
* });
|
|
684
|
+
* ```
|
|
685
|
+
* @since v26.1.0
|
|
686
|
+
* @param handlers Set of channel subscribers
|
|
687
|
+
*/
|
|
688
|
+
subscribe(handlers: NodeJS.PartialOptions<BoundedChannelSubscribers<ContextType>>): void;
|
|
689
|
+
/**
|
|
690
|
+
* Unsubscribe from the bounded channel events. This is equivalent to calling
|
|
691
|
+
* [`channel.unsubscribe(onMessage)`][] on each channel individually.
|
|
692
|
+
*
|
|
693
|
+
* ```js
|
|
694
|
+
* import { boundedChannel } from 'node:diagnostics_channel';
|
|
695
|
+
*
|
|
696
|
+
* const wc = boundedChannel('my-operation');
|
|
697
|
+
*
|
|
698
|
+
* const handlers = {
|
|
699
|
+
* start(message) {},
|
|
700
|
+
* end(message) {},
|
|
701
|
+
* };
|
|
702
|
+
*
|
|
703
|
+
* wc.subscribe(handlers);
|
|
704
|
+
* wc.unsubscribe(handlers);
|
|
705
|
+
* ```
|
|
706
|
+
* @since v26.1.0
|
|
707
|
+
* @param handlers Set of channel subscribers
|
|
708
|
+
* @returns `true` if all handlers were successfully unsubscribed,
|
|
709
|
+
* `false` otherwise.
|
|
710
|
+
*/
|
|
711
|
+
unsubscribe(handlers: NodeJS.PartialOptions<BoundedChannelSubscribers<ContextType>>): boolean;
|
|
712
|
+
/**
|
|
713
|
+
* Trace a synchronous function call. This will produce a `start` event and `end`
|
|
714
|
+
* event around the execution. This runs the given function using
|
|
715
|
+
* [`channel.runStores(context, ...)`][] on the `start` channel which ensures all
|
|
716
|
+
* events have any bound stores set to match this trace context.
|
|
717
|
+
*
|
|
718
|
+
* ```js
|
|
719
|
+
* import { boundedChannel } from 'node:diagnostics_channel';
|
|
720
|
+
*
|
|
721
|
+
* const wc = boundedChannel('my-operation');
|
|
722
|
+
*
|
|
723
|
+
* const result = wc.run({ operationId: '123' }, () => {
|
|
724
|
+
* // Perform operation
|
|
725
|
+
* return 42;
|
|
726
|
+
* });
|
|
727
|
+
* ```
|
|
728
|
+
* @since v26.1.0
|
|
729
|
+
* @param context Shared object to correlate events through
|
|
730
|
+
* @param fn Function to wrap a trace around
|
|
731
|
+
* @param thisArg The receiver to be used for the function call
|
|
732
|
+
* @param args Optional arguments to pass to the function
|
|
733
|
+
* @returns The return value of the given function
|
|
734
|
+
*/
|
|
735
|
+
run<ThisArg = any, Args extends any[] = any[], Result = any>(
|
|
736
|
+
fn: (this: ThisArg, ...args: Args) => Result,
|
|
737
|
+
context?: ContextType,
|
|
738
|
+
thisArg?: ThisArg,
|
|
739
|
+
...args: Args
|
|
740
|
+
): Result;
|
|
741
|
+
/**
|
|
742
|
+
* Create a disposable scope for tracing a synchronous operation using JavaScript's
|
|
743
|
+
* explicit resource management (`using` syntax). The scope automatically publishes
|
|
744
|
+
* `start` and `end` events, enters bound stores, and handles cleanup when disposed.
|
|
745
|
+
*
|
|
746
|
+
* ```js
|
|
747
|
+
* import { boundedChannel } from 'node:diagnostics_channel';
|
|
748
|
+
*
|
|
749
|
+
* const wc = boundedChannel('my-operation');
|
|
750
|
+
*
|
|
751
|
+
* const context = { operationId: '123' };
|
|
752
|
+
* {
|
|
753
|
+
* using scope = wc.withScope(context);
|
|
754
|
+
* // Stores are entered, start event is published
|
|
755
|
+
*
|
|
756
|
+
* // Perform work and set result on context
|
|
757
|
+
* context.result = 42;
|
|
758
|
+
* }
|
|
759
|
+
* // End event is published, stores are restored automatically
|
|
760
|
+
* ```
|
|
761
|
+
* @since v26.1.0
|
|
762
|
+
* @param context Shared object to correlate events through
|
|
763
|
+
* @returns Disposable scope object
|
|
764
|
+
*/
|
|
765
|
+
withScope(context: ContextType): BoundedChannelScope;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* The class `BoundedChannelScope` represents a disposable scope created by
|
|
769
|
+
* `boundedChannel.withScope(context)`. It manages the lifecycle of a traced
|
|
770
|
+
* operation, automatically publishing events and managing store contexts.
|
|
771
|
+
*
|
|
772
|
+
* The scope must be used with the `using` syntax to ensure proper disposal.
|
|
773
|
+
*
|
|
774
|
+
* ```js
|
|
775
|
+
* import { boundedChannel } from 'node:diagnostics_channel';
|
|
776
|
+
*
|
|
777
|
+
* const wc = boundedChannel('my-operation');
|
|
778
|
+
*
|
|
779
|
+
* const context = {};
|
|
780
|
+
* {
|
|
781
|
+
* using scope = wc.withScope(context);
|
|
782
|
+
* // Start event is published, stores are entered
|
|
783
|
+
* context.result = performOperation();
|
|
784
|
+
* // End event is automatically published at end of block
|
|
785
|
+
* }
|
|
786
|
+
* ```
|
|
787
|
+
* @since v26.1.0
|
|
788
|
+
* @experimental
|
|
789
|
+
*/
|
|
790
|
+
interface BoundedChannelScope extends Disposable {}
|
|
549
791
|
}
|
|
550
792
|
declare module "diagnostics_channel" {
|
|
551
793
|
export * from "node:diagnostics_channel";
|
|
@@ -24,7 +24,7 @@ declare module "node:dns" {
|
|
|
24
24
|
*/
|
|
25
25
|
family?: number | "IPv4" | "IPv6" | undefined;
|
|
26
26
|
/**
|
|
27
|
-
* One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-
|
|
27
|
+
* One or more [supported `getaddrinfo`](https://nodejs.org/docs/latest-v26.x/api/dns.html#supported-getaddrinfo-flags) flags. Multiple flags may be
|
|
28
28
|
* passed by bitwise `OR`ing their values.
|
|
29
29
|
*/
|
|
30
30
|
hints?: number | undefined;
|
|
@@ -34,10 +34,10 @@ declare module "node:dns" {
|
|
|
34
34
|
*/
|
|
35
35
|
all?: boolean | undefined;
|
|
36
36
|
/**
|
|
37
|
-
* When `verbatim`, the resolved addresses are
|
|
37
|
+
* When `verbatim`, the resolved addresses are returned unsorted. When `ipv4first`, the resolved addresses are sorted
|
|
38
38
|
* by placing IPv4 addresses before IPv6 addresses. When `ipv6first`, the resolved addresses are sorted by placing IPv6
|
|
39
39
|
* addresses before IPv4 addresses. Default value is configurable using
|
|
40
|
-
* {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-
|
|
40
|
+
* {@link setDefaultResultOrder} or [`--dns-result-order`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--dns-result-orderorder).
|
|
41
41
|
* @default `verbatim` (addresses are not reordered)
|
|
42
42
|
* @since v22.1.0
|
|
43
43
|
*/
|
|
@@ -86,7 +86,7 @@ declare module "node:dns" {
|
|
|
86
86
|
* The implementation uses an operating system facility that can associate names
|
|
87
87
|
* with addresses and vice versa. This implementation can have subtle but
|
|
88
88
|
* important consequences on the behavior of any Node.js program. Please take some
|
|
89
|
-
* time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-
|
|
89
|
+
* time to consult the [Implementation considerations section](https://nodejs.org/docs/latest-v26.x/api/dns.html#implementation-considerations)
|
|
90
90
|
* before using `dns.lookup()`.
|
|
91
91
|
*
|
|
92
92
|
* Example usage:
|
|
@@ -108,7 +108,7 @@ declare module "node:dns" {
|
|
|
108
108
|
* // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}]
|
|
109
109
|
* ```
|
|
110
110
|
*
|
|
111
|
-
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-
|
|
111
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v26.x/api/util.html#utilpromisifyoriginal) ed
|
|
112
112
|
* version, and `all` is not set to `true`, it returns a `Promise` for an `Object` with `address` and `family` properties.
|
|
113
113
|
* @since v0.1.90
|
|
114
114
|
*/
|
|
@@ -148,7 +148,7 @@ declare module "node:dns" {
|
|
|
148
148
|
* If `address` is not a valid IP address, a `TypeError` will be thrown.
|
|
149
149
|
* The `port` will be coerced to a number. If it is not a legal port, a `TypeError` will be thrown.
|
|
150
150
|
*
|
|
151
|
-
* On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-
|
|
151
|
+
* On an error, `err` is an [`Error`](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) object,
|
|
152
152
|
* where `err.code` is the error code.
|
|
153
153
|
*
|
|
154
154
|
* ```js
|
|
@@ -159,7 +159,7 @@ declare module "node:dns" {
|
|
|
159
159
|
* });
|
|
160
160
|
* ```
|
|
161
161
|
*
|
|
162
|
-
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-
|
|
162
|
+
* If this method is invoked as its [util.promisify()](https://nodejs.org/docs/latest-v26.x/api/util.html#utilpromisifyoriginal) ed
|
|
163
163
|
* version, it returns a `Promise` for an `Object` with `hostname` and `service` properties.
|
|
164
164
|
* @since v0.11.14
|
|
165
165
|
*/
|
|
@@ -288,7 +288,7 @@ declare module "node:dns" {
|
|
|
288
288
|
*
|
|
289
289
|
* <omitted>
|
|
290
290
|
*
|
|
291
|
-
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-
|
|
291
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) object,
|
|
292
292
|
* where `err.code` is one of the `DNS error codes`.
|
|
293
293
|
* @since v0.1.27
|
|
294
294
|
* @param hostname Host name to resolve.
|
|
@@ -667,8 +667,8 @@ declare module "node:dns" {
|
|
|
667
667
|
* Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an
|
|
668
668
|
* array of host names.
|
|
669
669
|
*
|
|
670
|
-
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-
|
|
671
|
-
* one of the [DNS error codes](https://nodejs.org/docs/latest-
|
|
670
|
+
* On error, `err` is an [`Error`](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) object, where `err.code` is
|
|
671
|
+
* one of the [DNS error codes](https://nodejs.org/docs/latest-v26.x/api/dns.html#error-codes).
|
|
672
672
|
* @since v0.1.16
|
|
673
673
|
*/
|
|
674
674
|
function reverse(
|
|
@@ -676,7 +676,7 @@ declare module "node:dns" {
|
|
|
676
676
|
callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void,
|
|
677
677
|
): void;
|
|
678
678
|
/**
|
|
679
|
-
* Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-
|
|
679
|
+
* Get the default value for `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v26.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
680
680
|
* The value could be:
|
|
681
681
|
*
|
|
682
682
|
* * `ipv4first`: for `order` defaulting to `ipv4first`.
|
|
@@ -731,7 +731,7 @@ declare module "node:dns" {
|
|
|
731
731
|
*/
|
|
732
732
|
function getServers(): string[];
|
|
733
733
|
/**
|
|
734
|
-
* Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-
|
|
734
|
+
* Set the default value of `order` in {@link lookup} and [`dnsPromises.lookup()`](https://nodejs.org/docs/latest-v26.x/api/dns.html#dnspromiseslookuphostname-options).
|
|
735
735
|
* The value could be:
|
|
736
736
|
*
|
|
737
737
|
* * `ipv4first`: sets default `order` to `ipv4first`.
|
|
@@ -739,8 +739,8 @@ declare module "node:dns" {
|
|
|
739
739
|
* * `verbatim`: sets default `order` to `verbatim`.
|
|
740
740
|
*
|
|
741
741
|
* The default is `verbatim` and {@link setDefaultResultOrder} have higher
|
|
742
|
-
* priority than [`--dns-result-order`](https://nodejs.org/docs/latest-
|
|
743
|
-
* [worker threads](https://nodejs.org/docs/latest-
|
|
742
|
+
* priority than [`--dns-result-order`](https://nodejs.org/docs/latest-v26.x/api/cli.html#--dns-result-orderorder). When using
|
|
743
|
+
* [worker threads](https://nodejs.org/docs/latest-v26.x/api/worker_threads.html), {@link setDefaultResultOrder} from the main
|
|
744
744
|
* thread won't affect the default dns orders in workers.
|
|
745
745
|
* @since v16.4.0, v14.18.0
|
|
746
746
|
* @param order must be `'ipv4first'`, `'ipv6first'` or `'verbatim'`.
|
|
@@ -791,7 +791,7 @@ declare module "node:dns" {
|
|
|
791
791
|
* An independent resolver for DNS requests.
|
|
792
792
|
*
|
|
793
793
|
* Creating a new resolver uses the default server settings. Setting
|
|
794
|
-
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-
|
|
794
|
+
* the servers used for a resolver using [`resolver.setServers()`](https://nodejs.org/docs/latest-v26.x/api/dns.html#dnssetserversservers) does not affect
|
|
795
795
|
* other resolvers:
|
|
796
796
|
*
|
|
797
797
|
* ```js
|
|
@@ -32,7 +32,7 @@ declare module "node:events" {
|
|
|
32
32
|
interface EventEmitterOptions {
|
|
33
33
|
/**
|
|
34
34
|
* It enables
|
|
35
|
-
* [automatic capturing of promise rejection](https://nodejs.org/docs/latest-
|
|
35
|
+
* [automatic capturing of promise rejection](https://nodejs.org/docs/latest-v26.x/api/events.html#capture-rejections-of-promises).
|
|
36
36
|
* @default false
|
|
37
37
|
*/
|
|
38
38
|
captureRejections?: boolean | undefined;
|
|
@@ -445,7 +445,7 @@ declare module "node:events" {
|
|
|
445
445
|
signal?: AbortSignal | undefined;
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
|
-
* See how to write a custom [rejection handler](https://nodejs.org/docs/latest-
|
|
448
|
+
* See how to write a custom [rejection handler](https://nodejs.org/docs/latest-v26.x/api/events.html#emittersymbolfornodejsrejectionerr-eventname-args).
|
|
449
449
|
* @since v13.4.0, v12.16.0
|
|
450
450
|
*/
|
|
451
451
|
const captureRejectionSymbol: unique symbol;
|
|
@@ -857,7 +857,7 @@ declare module "node:events" {
|
|
|
857
857
|
/**
|
|
858
858
|
* Integrates `EventEmitter` with `AsyncResource` for `EventEmitter`s that
|
|
859
859
|
* require manual async tracking. Specifically, all events emitted by instances
|
|
860
|
-
* of `events.EventEmitterAsyncResource` will run within its [async context](https://nodejs.org/docs/latest-
|
|
860
|
+
* of `events.EventEmitterAsyncResource` will run within its [async context](https://nodejs.org/docs/latest-v26.x/api/async_context.html).
|
|
861
861
|
*
|
|
862
862
|
* ```js
|
|
863
863
|
* import { EventEmitterAsyncResource, EventEmitter } from 'node:events';
|