@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
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
declare module "node:ffi" {
|
|
2
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
3
|
+
interface FunctionSignature {
|
|
4
|
+
return?: ReturnType | undefined;
|
|
5
|
+
arguments?: readonly ArgumentType[] | undefined;
|
|
6
|
+
}
|
|
7
|
+
interface FunctionDefinitions {
|
|
8
|
+
[symbol: string]: FunctionSignature;
|
|
9
|
+
}
|
|
10
|
+
type CallbackFunction<R extends ReturnType = any, P extends readonly ArgumentType[] = any[]> = (
|
|
11
|
+
...args: { [K in keyof P]: ArgumentTypeMap[DataTypeMap[P[K]]] }
|
|
12
|
+
) => ReturnTypeMap[DataTypeMap[R]];
|
|
13
|
+
interface WrappedFunction<R extends ReturnType = any, P extends readonly ArgumentType[] = any[]>
|
|
14
|
+
extends CallbackFunction<R, P>
|
|
15
|
+
{
|
|
16
|
+
readonly pointer: bigint;
|
|
17
|
+
}
|
|
18
|
+
type CallbackFunctionFromSignature<T extends FunctionSignature> = CallbackFunction<
|
|
19
|
+
ReturnTypeFromFunctionSignature<T>,
|
|
20
|
+
ArgumentTypesFromFunctionSignature<T>
|
|
21
|
+
>;
|
|
22
|
+
type WrappedFunctionFromSignature<T extends FunctionSignature> = WrappedFunction<
|
|
23
|
+
ReturnTypeFromFunctionSignature<T>,
|
|
24
|
+
ArgumentTypesFromFunctionSignature<T>
|
|
25
|
+
>;
|
|
26
|
+
type WrappedFunctionsFromDefinitions<T extends FunctionDefinitions> = {
|
|
27
|
+
[K in keyof T]: WrappedFunctionFromSignature<T[K]>;
|
|
28
|
+
};
|
|
29
|
+
type ReturnTypeFromFunctionSignature<T extends FunctionSignature> = "return" extends keyof T
|
|
30
|
+
? T extends { return: infer R extends ReturnType } ? R : any
|
|
31
|
+
: "void";
|
|
32
|
+
type ArgumentTypesFromFunctionSignature<T extends FunctionSignature> = "arguments" extends keyof T
|
|
33
|
+
? T extends { arguments: infer P extends readonly ArgumentType[] } ? P : any[]
|
|
34
|
+
: [];
|
|
35
|
+
interface DynamicLibraryResult<T extends FunctionDefinitions> extends Disposable {
|
|
36
|
+
lib: DynamicLibrary;
|
|
37
|
+
functions: WrappedFunctionsFromDefinitions<T>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The native shared library suffix for the current platform:
|
|
41
|
+
*
|
|
42
|
+
* * `'dylib'` on macOS
|
|
43
|
+
* * `'so'` on Unix-like platforms
|
|
44
|
+
* * `'dll'` on Windows
|
|
45
|
+
*
|
|
46
|
+
* This can be used to build portable library paths:
|
|
47
|
+
*
|
|
48
|
+
* ```js
|
|
49
|
+
* const { suffix } = require('node:ffi');
|
|
50
|
+
*
|
|
51
|
+
* const path = `libsqlite3.${suffix}`;
|
|
52
|
+
* ```
|
|
53
|
+
* @since v26.1.0
|
|
54
|
+
*/
|
|
55
|
+
const suffix: string;
|
|
56
|
+
/**
|
|
57
|
+
* Loads a dynamic library and resolves the requested function definitions.
|
|
58
|
+
*
|
|
59
|
+
* On Windows passing `null` is not supported.
|
|
60
|
+
*
|
|
61
|
+
* When `definitions` is omitted, `functions` is returned as an empty object until
|
|
62
|
+
* symbols are resolved explicitly.
|
|
63
|
+
*
|
|
64
|
+
* The returned object also implements the explicit resource management protocol,
|
|
65
|
+
* so it can be used with the `using` declaration. Disposing the returned
|
|
66
|
+
* object closes the library handle.
|
|
67
|
+
*
|
|
68
|
+
* ```js
|
|
69
|
+
* import { dlopen } from 'node:ffi';
|
|
70
|
+
*
|
|
71
|
+
* {
|
|
72
|
+
* using handle = dlopen('./mylib.so', {
|
|
73
|
+
* add_i32: { arguments: ['i32', 'i32'], return: 'i32' },
|
|
74
|
+
* });
|
|
75
|
+
* console.log(handle.functions.add_i32(20, 22));
|
|
76
|
+
* } // handle.lib.close() is invoked automatically here.
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* ```js
|
|
80
|
+
* import { dlopen } from 'node:ffi';
|
|
81
|
+
*
|
|
82
|
+
* const { lib, functions } = dlopen('./mylib.so', {
|
|
83
|
+
* add_i32: { arguments: ['i32', 'i32'], return: 'i32' },
|
|
84
|
+
* string_length: { arguments: ['pointer'], return: 'u64' },
|
|
85
|
+
* });
|
|
86
|
+
*
|
|
87
|
+
* console.log(functions.add_i32(20, 22));
|
|
88
|
+
* ```
|
|
89
|
+
* @since v26.1.0
|
|
90
|
+
* @param path Path to a dynamic library, or `null` to resolve symbols
|
|
91
|
+
* from the current process image.
|
|
92
|
+
* @param definitions Symbol definitions to resolve immediately.
|
|
93
|
+
*/
|
|
94
|
+
function dlopen<const T extends FunctionDefinitions = {}>(
|
|
95
|
+
path: string | null,
|
|
96
|
+
definitions?: T,
|
|
97
|
+
): DynamicLibraryResult<T>;
|
|
98
|
+
/**
|
|
99
|
+
* Closes a dynamic library.
|
|
100
|
+
*
|
|
101
|
+
* This is equivalent to calling `handle.close()`.
|
|
102
|
+
* @since v26.1.0
|
|
103
|
+
*/
|
|
104
|
+
function dlclose(handle: DynamicLibrary): void;
|
|
105
|
+
/**
|
|
106
|
+
* Resolves a symbol address from a loaded library.
|
|
107
|
+
*
|
|
108
|
+
* This is equivalent to calling `handle.getSymbol(symbol)`.
|
|
109
|
+
* @since v26.1.0
|
|
110
|
+
*/
|
|
111
|
+
function dlsym(handle: DynamicLibrary, symbol: string): bigint;
|
|
112
|
+
/**
|
|
113
|
+
* @since v26.1.0
|
|
114
|
+
*/
|
|
115
|
+
class DynamicLibrary {
|
|
116
|
+
/**
|
|
117
|
+
* Loads the dynamic library without resolving any functions eagerly.
|
|
118
|
+
*
|
|
119
|
+
* On Windows passing `null` is not supported.
|
|
120
|
+
*
|
|
121
|
+
* ```js
|
|
122
|
+
* const { DynamicLibrary } = require('node:ffi');
|
|
123
|
+
*
|
|
124
|
+
* const lib = new DynamicLibrary('./mylib.so');
|
|
125
|
+
* ```
|
|
126
|
+
* @param path Path to a dynamic library, or `null` to resolve symbols
|
|
127
|
+
* from the current process image.
|
|
128
|
+
*/
|
|
129
|
+
constructor(path: string | null);
|
|
130
|
+
/**
|
|
131
|
+
* The path used to load the library.
|
|
132
|
+
*/
|
|
133
|
+
readonly path: string;
|
|
134
|
+
/**
|
|
135
|
+
* An object containing previously resolved symbol addresses as `bigint` values.
|
|
136
|
+
*/
|
|
137
|
+
readonly symbols: { [symbol: string]: bigint };
|
|
138
|
+
/**
|
|
139
|
+
* Closes the library handle.
|
|
140
|
+
*
|
|
141
|
+
* `DynamicLibrary` implements the explicit resource management protocol, so a
|
|
142
|
+
* library instance can be managed with the `using` declaration. Leaving the
|
|
143
|
+
* enclosing scope invokes `library.close()` automatically.
|
|
144
|
+
*
|
|
145
|
+
* ```js
|
|
146
|
+
* import { DynamicLibrary } from 'node:ffi';
|
|
147
|
+
*
|
|
148
|
+
* {
|
|
149
|
+
* using lib = new DynamicLibrary('./mylib.so');
|
|
150
|
+
* // Use `lib` here; `lib.close()` is called when the block exits.
|
|
151
|
+
* }
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* Calling `library.close()` (or disposing the library) more than once is a no-op.
|
|
155
|
+
*
|
|
156
|
+
* After a library has been closed:
|
|
157
|
+
*
|
|
158
|
+
* * Resolved function wrappers become invalid.
|
|
159
|
+
* * Further symbol and function resolution throws.
|
|
160
|
+
* * Registered callbacks are invalidated.
|
|
161
|
+
*
|
|
162
|
+
* Closing a library does not make previously exported callback pointers safe to
|
|
163
|
+
* reuse. Node.js does not track or revoke callback pointers that have already
|
|
164
|
+
* been handed to native code.
|
|
165
|
+
*
|
|
166
|
+
* If native code still holds a callback pointer after `library.close()` or after
|
|
167
|
+
* `library.unregisterCallback(pointer)`, invoking that pointer has undefined
|
|
168
|
+
* behavior, is not allowed, and is dangerous: it can crash the process, produce
|
|
169
|
+
* incorrect output, or corrupt memory. Native code must stop using callback
|
|
170
|
+
* addresses before the library is closed or before the callback is unregistered.
|
|
171
|
+
*
|
|
172
|
+
* Calling `library.close()` from one of the library's active callbacks is
|
|
173
|
+
* unsupported and dangerous. The callback must return before the library is
|
|
174
|
+
* closed.
|
|
175
|
+
*/
|
|
176
|
+
close(): void;
|
|
177
|
+
/**
|
|
178
|
+
* Calls `library.close()`. This allows `DynamicLibrary` instances to be used with
|
|
179
|
+
* the `using` declaration for automatic cleanup when the enclosing scope
|
|
180
|
+
* exits. It is a no-op on a library that has already been closed.
|
|
181
|
+
* @since v26.1.0
|
|
182
|
+
*/
|
|
183
|
+
[Symbol.dispose](): void;
|
|
184
|
+
/**
|
|
185
|
+
* Resolves a symbol and returns a callable JavaScript wrapper.
|
|
186
|
+
*
|
|
187
|
+
* The returned function has a `.pointer` property containing the native function
|
|
188
|
+
* address as a `bigint`.
|
|
189
|
+
*
|
|
190
|
+
* If the same symbol has already been resolved, requesting it again with a
|
|
191
|
+
* different signature throws.
|
|
192
|
+
*
|
|
193
|
+
* ```js
|
|
194
|
+
* const { DynamicLibrary } = require('node:ffi');
|
|
195
|
+
*
|
|
196
|
+
* const lib = new DynamicLibrary('./mylib.so');
|
|
197
|
+
* const add = lib.getFunction('add_i32', {
|
|
198
|
+
* arguments: ['i32', 'i32'],
|
|
199
|
+
* return: 'i32',
|
|
200
|
+
* });
|
|
201
|
+
*
|
|
202
|
+
* console.log(add(20, 22));
|
|
203
|
+
* console.log(add.pointer);
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
206
|
+
getFunction<const T extends FunctionSignature>(name: string, signature: T): WrappedFunctionFromSignature<T>;
|
|
207
|
+
/**
|
|
208
|
+
* When `definitions` is provided, resolves each named symbol and returns an
|
|
209
|
+
* object containing callable wrappers.
|
|
210
|
+
*
|
|
211
|
+
* When `definitions` is omitted, returns wrappers for all functions that have
|
|
212
|
+
* already been resolved on the library.
|
|
213
|
+
*/
|
|
214
|
+
getFunctions(): { [symbol: string]: WrappedFunction };
|
|
215
|
+
getFunctions<const T extends FunctionDefinitions>(definitions: T): WrappedFunctionsFromDefinitions<T>;
|
|
216
|
+
/**
|
|
217
|
+
* Resolves a symbol and returns its native address as a `bigint`.
|
|
218
|
+
*/
|
|
219
|
+
getSymbol(name: string): bigint;
|
|
220
|
+
/**
|
|
221
|
+
* Returns an object containing all previously resolved symbol addresses.
|
|
222
|
+
*/
|
|
223
|
+
getSymbols(): Record<string, bigint>;
|
|
224
|
+
/**
|
|
225
|
+
* Creates a native callback pointer backed by a JavaScript function.
|
|
226
|
+
*
|
|
227
|
+
* When `signature` is omitted, the callback uses a default `void ()` signature.
|
|
228
|
+
*
|
|
229
|
+
* The return value is the callback pointer address as a `bigint`. It can be
|
|
230
|
+
* passed to native functions expecting a callback pointer.
|
|
231
|
+
*
|
|
232
|
+
* ```js
|
|
233
|
+
* const { DynamicLibrary } = require('node:ffi');
|
|
234
|
+
*
|
|
235
|
+
* const lib = new DynamicLibrary('./mylib.so');
|
|
236
|
+
*
|
|
237
|
+
* const callback = lib.registerCallback(
|
|
238
|
+
* { arguments: ['i32'], return: 'i32' },
|
|
239
|
+
* (value) => value * 2,
|
|
240
|
+
* );
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* Callbacks are subject to the following restrictions:
|
|
244
|
+
*
|
|
245
|
+
* * They must be invoked on the same system thread where they were created.
|
|
246
|
+
* * They must not throw exceptions.
|
|
247
|
+
* * They must not return promises.
|
|
248
|
+
* * They must return a value compatible with the declared return type.
|
|
249
|
+
* * They must not call `library.close()` on their owning library while running.
|
|
250
|
+
* * They must not unregister themselves while running.
|
|
251
|
+
*
|
|
252
|
+
* Closing the owning library or unregistering the currently executing callback
|
|
253
|
+
* from inside the callback is unsupported and dangerous. Doing so may crash the
|
|
254
|
+
* process, produce incorrect output, or corrupt memory.
|
|
255
|
+
*/
|
|
256
|
+
registerCallback(callback: () => void): bigint;
|
|
257
|
+
registerCallback<const T extends FunctionSignature>(
|
|
258
|
+
signature: T,
|
|
259
|
+
callback: CallbackFunctionFromSignature<T>,
|
|
260
|
+
): bigint;
|
|
261
|
+
/**
|
|
262
|
+
* Releases a callback previously created with `library.registerCallback()`.
|
|
263
|
+
*
|
|
264
|
+
* Calling `library.unregisterCallback(pointer)` for a callback that is currently
|
|
265
|
+
* executing is unsupported and dangerous. The callback must return before it is
|
|
266
|
+
* unregistered.
|
|
267
|
+
*
|
|
268
|
+
* After `library.unregisterCallback(pointer)` returns, invoking that callback
|
|
269
|
+
* pointer from native code has undefined behavior, is not allowed, and is
|
|
270
|
+
* dangerous: it can crash the process, produce incorrect output, or corrupt
|
|
271
|
+
* memory.
|
|
272
|
+
*/
|
|
273
|
+
unregisterCallback(pointer: bigint): void;
|
|
274
|
+
/**
|
|
275
|
+
* Keeps the callback strongly referenced by JavaScript.
|
|
276
|
+
*/
|
|
277
|
+
refCallback(pointer: bigint): void;
|
|
278
|
+
/**
|
|
279
|
+
* Allows the callback to become weakly referenced by JavaScript.
|
|
280
|
+
*
|
|
281
|
+
* If the callback function is later garbage collected, subsequent native
|
|
282
|
+
* invocations become a no-op. Non-void return values are zero-initialized before
|
|
283
|
+
* returning to native code.
|
|
284
|
+
*/
|
|
285
|
+
unrefCallback(pointer: bigint): void;
|
|
286
|
+
}
|
|
287
|
+
function getInt8(pointer: bigint, offset?: number): number;
|
|
288
|
+
function getUint8(pointer: bigint, offset?: number): number;
|
|
289
|
+
function getInt16(pointer: bigint, offset?: number): number;
|
|
290
|
+
function getUint16(pointer: bigint, offset?: number): number;
|
|
291
|
+
function getInt32(pointer: bigint, offset?: number): number;
|
|
292
|
+
function getUint32(pointer: bigint, offset?: number): number;
|
|
293
|
+
function getInt64(pointer: bigint, offset?: number): bigint;
|
|
294
|
+
function getUint64(pointer: bigint, offset?: number): bigint;
|
|
295
|
+
function getFloat32(pointer: bigint, offset?: number): number;
|
|
296
|
+
function getFloat64(pointer: bigint, offset?: number): number;
|
|
297
|
+
function setInt8(pointer: bigint, offset: number, value: number): void;
|
|
298
|
+
function setUint8(pointer: bigint, offset: number, value: number): void;
|
|
299
|
+
function setInt16(pointer: bigint, offset: number, value: number): void;
|
|
300
|
+
function setUint16(pointer: bigint, offset: number, value: number): void;
|
|
301
|
+
function setInt32(pointer: bigint, offset: number, value: number): void;
|
|
302
|
+
function setUint32(pointer: bigint, offset: number, value: number): void;
|
|
303
|
+
function setInt64(pointer: bigint, offset: number, value: number | bigint): void;
|
|
304
|
+
function setUint64(pointer: bigint, offset: number, value: number | bigint): void;
|
|
305
|
+
function setFloat32(pointer: bigint, offset: number, value: number): void;
|
|
306
|
+
function setFloat64(pointer: bigint, offset: number, value: number): void;
|
|
307
|
+
/**
|
|
308
|
+
* Reads a NUL-terminated UTF-8 string from native memory.
|
|
309
|
+
*
|
|
310
|
+
* If `pointer` is `0n`, `null` is returned.
|
|
311
|
+
*
|
|
312
|
+
* This function does not validate that `pointer` refers to readable memory or
|
|
313
|
+
* that the pointed-to data is terminated with `\0`. Passing an invalid pointer,
|
|
314
|
+
* a pointer to freed memory, or a pointer to bytes without a terminating NUL can
|
|
315
|
+
* read unrelated memory, crash the process, or produce truncated or garbled
|
|
316
|
+
* output.
|
|
317
|
+
* @since v26.1.0
|
|
318
|
+
*/
|
|
319
|
+
function toString(pointer: bigint): string | null;
|
|
320
|
+
/**
|
|
321
|
+
* Creates a `Buffer` from native memory.
|
|
322
|
+
*
|
|
323
|
+
* When `copy` is `true`, the returned `Buffer` owns its own copied memory.
|
|
324
|
+
* When `copy` is `false`, the returned `Buffer` references the original native
|
|
325
|
+
* memory directly.
|
|
326
|
+
*
|
|
327
|
+
* Using `copy: false` is a zero-copy escape hatch. The returned `Buffer` is a
|
|
328
|
+
* writable view onto foreign memory, so writes in JavaScript update the original
|
|
329
|
+
* native memory directly. The caller must guarantee that:
|
|
330
|
+
*
|
|
331
|
+
* * `pointer` remains valid for the entire lifetime of the returned `Buffer`.
|
|
332
|
+
* * `length` stays within the allocated native region.
|
|
333
|
+
* * no native code frees or repurposes that memory while JavaScript still uses
|
|
334
|
+
* the `Buffer`.
|
|
335
|
+
* * Memory protection is observed. For example, read-only memory pages must not
|
|
336
|
+
* be written to.
|
|
337
|
+
*
|
|
338
|
+
* If these guarantees are not met, reading or writing the `Buffer` can corrupt
|
|
339
|
+
* memory or crash the process.
|
|
340
|
+
* @since v26.1.0
|
|
341
|
+
* @param copy When `false`, creates a zero-copy view. **Default:** `true`.
|
|
342
|
+
*/
|
|
343
|
+
function toBuffer(pointer: bigint, length: number, copy?: boolean): NonSharedBuffer;
|
|
344
|
+
/**
|
|
345
|
+
* Creates an `ArrayBuffer` from native memory.
|
|
346
|
+
*
|
|
347
|
+
* When `copy` is `true`, the returned `ArrayBuffer` contains copied bytes.
|
|
348
|
+
* When `copy` is `false`, the returned `ArrayBuffer` references the original
|
|
349
|
+
* native memory directly.
|
|
350
|
+
*
|
|
351
|
+
* The same lifetime and bounds requirements described for
|
|
352
|
+
* `ffi.toBuffer(pointer, length, copy)` apply
|
|
353
|
+
* here. With `copy: false`, the
|
|
354
|
+
* returned `ArrayBuffer` is a zero-copy view of foreign memory and is only safe
|
|
355
|
+
* while that memory remains allocated, unchanged in layout, and valid for the
|
|
356
|
+
* entire exposed range.
|
|
357
|
+
* @since v26.1.0
|
|
358
|
+
* @param copy When `false`, creates a zero-copy view. **Default:** `true`.
|
|
359
|
+
*/
|
|
360
|
+
function toArrayBuffer(pointer: bigint, length: number, copy?: boolean): ArrayBuffer;
|
|
361
|
+
/**
|
|
362
|
+
* Copies a JavaScript string into native memory and appends a trailing NUL
|
|
363
|
+
* terminator.
|
|
364
|
+
*
|
|
365
|
+
* `length` must be large enough to hold the full encoded string plus the trailing
|
|
366
|
+
* NUL terminator. For UTF-16 and UCS-2 encodings, the trailing terminator uses
|
|
367
|
+
* two zero bytes.
|
|
368
|
+
*
|
|
369
|
+
* `pointer` must refer to writable native memory with at least `length` bytes of
|
|
370
|
+
* available storage. This function does not allocate memory on its own.
|
|
371
|
+
*
|
|
372
|
+
* `string` must be a JavaScript string. `encoding` must be a string.
|
|
373
|
+
* @since v26.1.0
|
|
374
|
+
* @param encoding **Default:** `'utf8'`.
|
|
375
|
+
*/
|
|
376
|
+
function exportString(string: string, pointer: bigint, length: number, encoding?: BufferEncoding): void;
|
|
377
|
+
/**
|
|
378
|
+
* Copies bytes from a `Buffer` into native memory.
|
|
379
|
+
*
|
|
380
|
+
* `length` must be at least `buffer.length`.
|
|
381
|
+
*
|
|
382
|
+
* `pointer` must refer to writable native memory with at least `length` bytes of
|
|
383
|
+
* available storage. This function does not allocate memory on its own.
|
|
384
|
+
*
|
|
385
|
+
* `buffer` must be a Node.js `Buffer`.
|
|
386
|
+
* @since v26.1.0
|
|
387
|
+
*/
|
|
388
|
+
function exportBuffer(buffer: Buffer, pointer: bigint, length: number): void;
|
|
389
|
+
/**
|
|
390
|
+
* Copies bytes from an `ArrayBuffer` into native memory.
|
|
391
|
+
*
|
|
392
|
+
* `length` must be at least `arrayBuffer.byteLength`.
|
|
393
|
+
*
|
|
394
|
+
* `pointer` must refer to writable native memory with at least `length` bytes of
|
|
395
|
+
* available storage. This function does not allocate memory on its own.
|
|
396
|
+
* @since v26.1.0
|
|
397
|
+
*/
|
|
398
|
+
function exportArrayBuffer(arrayBuffer: ArrayBuffer, pointer: bigint, length: number): void;
|
|
399
|
+
/**
|
|
400
|
+
* Copies bytes from an `ArrayBufferView` into native memory.
|
|
401
|
+
*
|
|
402
|
+
* `length` must be at least `arrayBufferView.byteLength`.
|
|
403
|
+
*
|
|
404
|
+
* `pointer` must refer to writable native memory with at least `length` bytes of
|
|
405
|
+
* available storage. This function does not allocate memory on its own.
|
|
406
|
+
* @since v26.1.0
|
|
407
|
+
*/
|
|
408
|
+
function exportArrayBufferView(arrayBufferView: NodeJS.ArrayBufferView, pointer: bigint, length: number): void;
|
|
409
|
+
/**
|
|
410
|
+
* Returns the raw memory address of JavaScript-managed byte storage.
|
|
411
|
+
*
|
|
412
|
+
* This is unsafe and dangerous. The returned pointer can become invalid if the
|
|
413
|
+
* underlying memory is detached, resized, transferred, or otherwise invalidated.
|
|
414
|
+
* Using stale pointers can cause memory corruption or process crashes.
|
|
415
|
+
* @since v26.1.0
|
|
416
|
+
*/
|
|
417
|
+
function getRawPointer(source: ArrayBuffer | NodeJS.ArrayBufferView): bigint;
|
|
418
|
+
type ReturnType = { [K in keyof DataTypeMap]: K }[keyof DataTypeMap];
|
|
419
|
+
type ArgumentType = Exclude<ReturnType, "void">;
|
|
420
|
+
interface DataTypeMap {
|
|
421
|
+
void: "void";
|
|
422
|
+
char: "number";
|
|
423
|
+
bool: "number";
|
|
424
|
+
i8: "number";
|
|
425
|
+
int8: "number";
|
|
426
|
+
u8: "number";
|
|
427
|
+
uint8: "number";
|
|
428
|
+
i16: "number";
|
|
429
|
+
int16: "number";
|
|
430
|
+
u16: "number";
|
|
431
|
+
uint16: "number";
|
|
432
|
+
i32: "number";
|
|
433
|
+
int32: "number";
|
|
434
|
+
u32: "number";
|
|
435
|
+
uint32: "number";
|
|
436
|
+
i64: "bigint";
|
|
437
|
+
int64: "bigint";
|
|
438
|
+
u64: "bigint";
|
|
439
|
+
uint64: "bigint";
|
|
440
|
+
float: "number";
|
|
441
|
+
f32: "number";
|
|
442
|
+
double: "number";
|
|
443
|
+
f64: "number";
|
|
444
|
+
pointer: "pointer";
|
|
445
|
+
ptr: "pointer";
|
|
446
|
+
function: "pointer";
|
|
447
|
+
buffer: "pointer";
|
|
448
|
+
arraybuffer: "pointer";
|
|
449
|
+
string: "pointer";
|
|
450
|
+
str: "pointer";
|
|
451
|
+
}
|
|
452
|
+
interface ArgumentTypeMap {
|
|
453
|
+
"number": number;
|
|
454
|
+
"bigint": bigint;
|
|
455
|
+
"pointer": bigint | string | ArrayBuffer | NodeJS.ArrayBufferView | null;
|
|
456
|
+
}
|
|
457
|
+
interface ReturnTypeMap {
|
|
458
|
+
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
|
|
459
|
+
"void": void;
|
|
460
|
+
"number": number;
|
|
461
|
+
"bigint": bigint;
|
|
462
|
+
"pointer": bigint | null;
|
|
463
|
+
}
|
|
464
|
+
enum types {
|
|
465
|
+
VOID = "void",
|
|
466
|
+
POINTER = "pointer",
|
|
467
|
+
BUFFER = "buffer",
|
|
468
|
+
ARRAY_BUFFER = "arraybuffer",
|
|
469
|
+
FUNCTION = "function",
|
|
470
|
+
BOOL = "bool",
|
|
471
|
+
CHAR = "char",
|
|
472
|
+
STRING = "string",
|
|
473
|
+
FLOAT = "float",
|
|
474
|
+
DOUBLE = "double",
|
|
475
|
+
INT_8 = "int8",
|
|
476
|
+
UINT_8 = "uint8",
|
|
477
|
+
INT_16 = "int16",
|
|
478
|
+
UINT_16 = "uint16",
|
|
479
|
+
INT_32 = "int32",
|
|
480
|
+
UINT_32 = "uint32",
|
|
481
|
+
INT_64 = "int64",
|
|
482
|
+
UINT_64 = "uint64",
|
|
483
|
+
FLOAT_32 = "float32",
|
|
484
|
+
FLOAT_64 = "float64",
|
|
485
|
+
}
|
|
486
|
+
}
|
|
@@ -256,9 +256,9 @@ declare module "node:fs/promises" {
|
|
|
256
256
|
datasync(): Promise<void>;
|
|
257
257
|
/**
|
|
258
258
|
* Return the file contents as an async iterable using the
|
|
259
|
-
* [`node:stream/iter`](https://nodejs.org/docs/latest-
|
|
259
|
+
* [`node:stream/iter`](https://nodejs.org/docs/latest-v26.x/api/stream_iter.html) pull model. Reads are performed in `chunkSize`-byte
|
|
260
260
|
* chunks (default 128 KB). If transforms are provided, they are applied
|
|
261
|
-
* via [`stream/iter pull()`](https://nodejs.org/docs/latest-
|
|
261
|
+
* via [`stream/iter pull()`](https://nodejs.org/docs/latest-v26.x/api/stream_iter.html#pullsource-transforms-options).
|
|
262
262
|
*
|
|
263
263
|
* The file handle is locked while the iterable is being consumed and unlocked
|
|
264
264
|
* when iteration completes, an error occurs, or the consumer breaks.
|
|
@@ -538,7 +538,7 @@ declare module "node:fs/promises" {
|
|
|
538
538
|
position?: number,
|
|
539
539
|
): Promise<WriteVResult<TBuffers>>;
|
|
540
540
|
/**
|
|
541
|
-
* Return a [`node:stream/iter`](https://nodejs.org/docs/latest-
|
|
541
|
+
* Return a [`node:stream/iter`](https://nodejs.org/docs/latest-v26.x/api/stream_iter.html) writer backed by this file handle.
|
|
542
542
|
*
|
|
543
543
|
* The writer supports both `Symbol.asyncDispose` and `Symbol.dispose`:
|
|
544
544
|
*
|
|
@@ -548,7 +548,7 @@ declare module "node:fs/promises" {
|
|
|
548
548
|
* * `using w = fh.writer()` — calls `fail()` unconditionally.
|
|
549
549
|
*
|
|
550
550
|
* The `writeSync()` and `writevSync()` methods enable the try-sync fast path
|
|
551
|
-
* used by [`stream/iter pipeTo()`](https://nodejs.org/docs/latest-
|
|
551
|
+
* used by [`stream/iter pipeTo()`](https://nodejs.org/docs/latest-v26.x/api/stream_iter.html#pipetosource-transforms-writer). When the reader's chunk size matches the
|
|
552
552
|
* writer's `chunkSize`, all writes in a `pipeTo()` pipeline complete
|
|
553
553
|
* synchronously with zero promise overhead.
|
|
554
554
|
*
|
|
@@ -1439,6 +1439,9 @@ declare module "node:fs/promises" {
|
|
|
1439
1439
|
*/
|
|
1440
1440
|
function cp(source: string | URL, destination: string | URL, opts?: CopyOptions): Promise<void>;
|
|
1441
1441
|
/**
|
|
1442
|
+
* When `followSymlinks` is enabled, detected symbolic link cycles are not
|
|
1443
|
+
* traversed recursively.
|
|
1444
|
+
*
|
|
1442
1445
|
* ```js
|
|
1443
1446
|
* import { glob } from 'node:fs/promises';
|
|
1444
1447
|
*
|
|
@@ -126,6 +126,8 @@ declare module "node:fs" {
|
|
|
126
126
|
bavail: T;
|
|
127
127
|
/** Total file nodes in file system. */
|
|
128
128
|
files: T;
|
|
129
|
+
/** Fundamental file system block size. */
|
|
130
|
+
frsize: T;
|
|
129
131
|
/** Free file nodes in file system. */
|
|
130
132
|
ffree: T;
|
|
131
133
|
}
|
|
@@ -2916,12 +2918,6 @@ declare module "node:fs" {
|
|
|
2916
2918
|
interface ReadOptionsWithBuffer<T extends NodeJS.ArrayBufferView> extends ReadOptions {
|
|
2917
2919
|
buffer?: T | undefined;
|
|
2918
2920
|
}
|
|
2919
|
-
/** @deprecated Use `ReadOptions` instead. */
|
|
2920
|
-
// TODO: remove in future major
|
|
2921
|
-
interface ReadSyncOptions extends ReadOptions {}
|
|
2922
|
-
/** @deprecated Use `ReadOptionsWithBuffer` instead. */
|
|
2923
|
-
// TODO: remove in future major
|
|
2924
|
-
interface ReadAsyncOptions<T extends NodeJS.ArrayBufferView> extends ReadOptionsWithBuffer<T> {}
|
|
2925
2921
|
/**
|
|
2926
2922
|
* Read data from the file specified by `fd`.
|
|
2927
2923
|
*
|
|
@@ -4582,6 +4578,7 @@ declare module "node:fs" {
|
|
|
4582
4578
|
bigint: true;
|
|
4583
4579
|
}
|
|
4584
4580
|
interface StatOptions {
|
|
4581
|
+
// TODO: add signal option once we sort its behavior out upstream
|
|
4585
4582
|
bigint?: boolean | undefined;
|
|
4586
4583
|
throwIfNoEntry?: boolean | undefined;
|
|
4587
4584
|
}
|
|
@@ -4675,20 +4672,12 @@ declare module "node:fs" {
|
|
|
4675
4672
|
* @param dest destination path to copy to.
|
|
4676
4673
|
*/
|
|
4677
4674
|
function cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void;
|
|
4678
|
-
|
|
4679
|
-
// TODO: collapse
|
|
4680
|
-
interface _GlobOptions<T extends Dirent | string> {
|
|
4675
|
+
interface GlobOptions<T extends Dirent | string = Dirent | string> {
|
|
4681
4676
|
/**
|
|
4682
4677
|
* Current working directory.
|
|
4683
4678
|
* @default process.cwd()
|
|
4684
4679
|
*/
|
|
4685
4680
|
cwd?: string | URL | undefined;
|
|
4686
|
-
/**
|
|
4687
|
-
* `true` if the glob should return paths as `Dirent`s, `false` otherwise.
|
|
4688
|
-
* @default false
|
|
4689
|
-
* @since v22.2.0
|
|
4690
|
-
*/
|
|
4691
|
-
withFileTypes?: boolean | undefined;
|
|
4692
4681
|
/**
|
|
4693
4682
|
* Function to filter out files/directories or a
|
|
4694
4683
|
* list of glob patterns to be excluded. If a function is provided, return
|
|
@@ -4699,18 +4688,32 @@ declare module "node:fs" {
|
|
|
4699
4688
|
* @default undefined
|
|
4700
4689
|
*/
|
|
4701
4690
|
exclude?: ((fileName: T) => boolean) | readonly string[] | undefined;
|
|
4691
|
+
/**
|
|
4692
|
+
* When `true`, symbolic links to directories are
|
|
4693
|
+
* followed while expanding `**` patterns.
|
|
4694
|
+
* @default false
|
|
4695
|
+
*/
|
|
4696
|
+
followSymlinks?: boolean | undefined;
|
|
4697
|
+
/**
|
|
4698
|
+
* `true` if the glob should return paths as `Dirent`s, `false` otherwise.
|
|
4699
|
+
* @default false
|
|
4700
|
+
* @since v22.2.0
|
|
4701
|
+
*/
|
|
4702
|
+
withFileTypes?: boolean | undefined;
|
|
4702
4703
|
}
|
|
4703
|
-
interface
|
|
4704
|
-
interface GlobOptionsWithFileTypes extends _GlobOptions<Dirent> {
|
|
4704
|
+
interface GlobOptionsWithFileTypes extends GlobOptions<Dirent> {
|
|
4705
4705
|
withFileTypes: true;
|
|
4706
4706
|
}
|
|
4707
|
-
interface GlobOptionsWithoutFileTypes extends
|
|
4707
|
+
interface GlobOptionsWithoutFileTypes extends GlobOptions<string> {
|
|
4708
4708
|
withFileTypes?: false | undefined;
|
|
4709
4709
|
}
|
|
4710
4710
|
|
|
4711
4711
|
/**
|
|
4712
4712
|
* Retrieves the files matching the specified pattern.
|
|
4713
4713
|
*
|
|
4714
|
+
* When `followSymlinks` is enabled, detected symbolic link cycles are not
|
|
4715
|
+
* traversed recursively.
|
|
4716
|
+
*
|
|
4714
4717
|
* ```js
|
|
4715
4718
|
* import { glob } from 'node:fs';
|
|
4716
4719
|
*
|
|
@@ -4750,6 +4753,9 @@ declare module "node:fs" {
|
|
|
4750
4753
|
) => void,
|
|
4751
4754
|
): void;
|
|
4752
4755
|
/**
|
|
4756
|
+
* When `followSymlinks` is enabled, detected symbolic link cycles are not
|
|
4757
|
+
* traversed recursively.
|
|
4758
|
+
*
|
|
4753
4759
|
* ```js
|
|
4754
4760
|
* import { globSync } from 'node:fs';
|
|
4755
4761
|
*
|
|
@@ -98,10 +98,10 @@ declare namespace NodeJS {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
interface ErrnoException extends Error {
|
|
101
|
-
errno?: number
|
|
102
|
-
code?: string
|
|
103
|
-
path?: string
|
|
104
|
-
syscall?: string
|
|
101
|
+
errno?: number;
|
|
102
|
+
code?: string;
|
|
103
|
+
path?: string;
|
|
104
|
+
syscall?: string;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
interface RefCounted {
|