@openclaw/whatsapp 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/{access-control-88UPniDc.js → access-control-DYE5dXna.js} +5 -3
- package/dist/{accounts-DgViSyJx.js → accounts-4YgwroRU.js} +1 -1
- package/dist/{action-runtime-hqza0J8B.js → action-runtime-DPahAqxV.js} +2 -2
- package/dist/action-runtime-api.js +1 -1
- package/dist/action-runtime.runtime.js +1 -1
- package/dist/{active-listener-CFwkn3ho.js → active-listener-B4SDebQ6.js} +1 -1
- package/dist/api.js +14 -13
- package/dist/{approval-handler.runtime-9_SV7vhc.js → approval-handler.runtime-DNWS4aYQ.js} +1 -1
- package/dist/auth-presence.js +1 -1
- package/dist/{auth-store-ECx4h57q.js → auth-store-Db-wfApd.js} +23 -13
- package/dist/call-tool-api.js +233 -0
- package/dist/{channel-fcXxWXic.js → channel-BWp7h1uY.js} +44 -18
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel-react-action-Dgy9uUMl.js → channel-react-action-CKJHL_Wf.js} +3 -3
- package/dist/{channel.runtime-B4ThooGF.js → channel.runtime-CAssfx9p.js} +5 -5
- package/dist/{channel.setup-C_WEdyJR.js → channel.setup-CURc5rEt.js} +2 -2
- package/dist/{config-schema-CROZuhT-.js → config-schema-mBX2nmn1.js} +4 -0
- package/dist/{connection-controller-u-tfAFhJ.js → connection-controller-DkbrFSIn.js} +6 -5
- package/dist/connection-controller-registry-TSX_udJp.js +22 -0
- package/dist/contract-api.js +1 -1
- package/dist/{quoted-message-CpA_ujXK.js → group-session-key-BhC1RQOE.js} +31 -2
- package/dist/{identity-CmsTmkKR.js → identity-Dqft3mFA.js} +2 -1
- package/dist/index.js +9 -2
- package/dist/light-runtime-api.js +3 -3
- package/dist/{login-8lHwLmXj.js → login-C48y0jlx.js} +14 -7
- package/dist/{login-qr-BEZZqrTb.js → login-qr-BjId7dll.js} +7 -7
- package/dist/login-qr-runtime.js +1 -1
- package/dist/{monitor-BqkJ4MpT.js → monitor-DD8bXohk.js} +249 -160
- package/dist/runtime-api.js +9 -9
- package/dist/{send-i8Xk5mBQ.js → send-C5CpFcBG.js} +27 -9
- package/dist/{send-api-DndiBJhN.js → send-api-DLlXl8CH.js} +6 -5
- package/dist/{session-WU4SVP8f.js → session-DriaHt7V.js} +3 -3
- package/dist/{session-errors-CbsoQqoy.js → session-errors-BAj9D2La.js} +1 -22
- package/dist/{setup-core-KjSBbWX4.js → setup-core-DH-DFPLY.js} +4 -4
- package/dist/{setup-finalize-WedNP30s.js → setup-finalize-c8dl34sO.js} +3 -3
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-IOdkbWsQ.js → setup-surface-DlWb0Z09.js} +3 -3
- package/dist/{socket-timing-DvMNkIge.js → socket-timing-DhbVFjah.js} +17 -5
- package/dist/{text-runtime-C88QkuU9.js → targets-runtime-C-GiVn6Y.js} +2 -3
- package/dist/text-runtime-DdX6-mC_.js +4 -0
- package/node_modules/@cacheable/memory/README.md +177 -0
- package/node_modules/@cacheable/memory/dist/index.cjs +867 -820
- package/node_modules/@cacheable/memory/dist/index.d.cts +382 -280
- package/node_modules/@cacheable/memory/dist/index.d.mts +412 -0
- package/node_modules/@cacheable/memory/dist/index.mjs +841 -0
- package/node_modules/@cacheable/memory/package.json +9 -9
- package/node_modules/@cacheable/utils/README.md +342 -8
- package/node_modules/@cacheable/utils/dist/index.cjs +1322 -619
- package/node_modules/@cacheable/utils/dist/index.d.cts +769 -173
- package/node_modules/@cacheable/utils/dist/index.d.mts +903 -0
- package/node_modules/@cacheable/utils/dist/index.mjs +1355 -0
- package/node_modules/@cacheable/utils/package.json +8 -8
- 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 +5 -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/cacheable/README.md +309 -30
- package/node_modules/cacheable/dist/index.cjs +1307 -1153
- package/node_modules/cacheable/dist/index.d.cts +741 -469
- package/node_modules/cacheable/dist/index.d.mts +766 -0
- package/node_modules/cacheable/dist/index.mjs +1210 -0
- package/node_modules/cacheable/package.json +10 -10
- package/node_modules/content-type/README.md +32 -57
- package/node_modules/content-type/dist/index.d.ts +26 -0
- package/node_modules/content-type/dist/index.js +170 -0
- package/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/content-type/package.json +35 -25
- package/node_modules/media-typer/README.md +19 -33
- package/node_modules/media-typer/dist/index.d.ts +29 -0
- package/node_modules/media-typer/dist/index.js +64 -0
- package/node_modules/media-typer/dist/index.js.map +1 -0
- package/node_modules/media-typer/package.json +37 -22
- package/node_modules/music-metadata/lib/id3v1/ID3v1Parser.js +2 -2
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +65 -13
- package/node_modules/music-metadata/lib/wav/WaveChunk.d.ts +10 -0
- package/node_modules/music-metadata/lib/wav/WaveChunk.js +13 -3
- package/node_modules/music-metadata/lib/wav/WaveParser.d.ts +1 -0
- package/node_modules/music-metadata/lib/wav/WaveParser.js +6 -5
- package/node_modules/music-metadata/package.json +5 -5
- 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 +49 -41
- package/openclaw.plugin.json +12 -0
- package/package.json +5 -5
- package/node_modules/@cacheable/memory/dist/index.d.ts +0 -310
- package/node_modules/@cacheable/memory/dist/index.js +0 -807
- package/node_modules/@cacheable/utils/dist/index.d.ts +0 -307
- package/node_modules/@cacheable/utils/dist/index.js +0 -630
- package/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/node_modules/cacheable/dist/index.d.ts +0 -494
- package/node_modules/cacheable/dist/index.js +0 -1141
- package/node_modules/content-type/HISTORY.md +0 -29
- package/node_modules/content-type/index.js +0 -225
- package/node_modules/media-typer/HISTORY.md +0 -50
- package/node_modules/media-typer/index.js +0 -143
- 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/dist/{approval-resolver-e1hAVRRy.js → approval-resolver-DF-lu8k5.js} +1 -1
- /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
|
@@ -35,7 +35,5 @@ declare namespace RoundRobinPool {
|
|
|
35
35
|
connections?: number | null;
|
|
36
36
|
/** The amount of time before a client is removed from the pool and closed. `null` if no time limit. Default `null` */
|
|
37
37
|
clientTtl?: number | null;
|
|
38
|
-
|
|
39
|
-
interceptors?: { RoundRobinPool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors']
|
|
40
38
|
}
|
|
41
39
|
}
|
|
@@ -30,7 +30,9 @@ declare namespace SnapshotRecorder {
|
|
|
30
30
|
ignoreHeaders?: string[]
|
|
31
31
|
excludeHeaders?: string[]
|
|
32
32
|
matchBody?: boolean
|
|
33
|
+
normalizeBody?: (body: string | Buffer | null | undefined) => string
|
|
33
34
|
matchQuery?: boolean
|
|
35
|
+
normalizeQuery?: (query: URLSearchParams) => string
|
|
34
36
|
caseSensitive?: boolean
|
|
35
37
|
shouldRecord?: (requestOpts: any) => boolean
|
|
36
38
|
shouldPlayback?: (requestOpts: any) => boolean
|
|
@@ -98,7 +100,9 @@ declare namespace SnapshotAgent {
|
|
|
98
100
|
ignoreHeaders?: string[]
|
|
99
101
|
excludeHeaders?: string[]
|
|
100
102
|
matchBody?: boolean
|
|
103
|
+
normalizeBody?: (body: string | Buffer | null | undefined) => string
|
|
101
104
|
matchQuery?: boolean
|
|
105
|
+
normalizeQuery?: (query: URLSearchParams) => string
|
|
102
106
|
caseSensitive?: boolean
|
|
103
107
|
shouldRecord?: (requestOpts: any) => boolean
|
|
104
108
|
shouldPlayback?: (requestOpts: any) => boolean
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Dispatcher from './dispatcher'
|
|
2
2
|
import buildConnector from './connector'
|
|
3
|
-
import {
|
|
3
|
+
import { OutgoingHttpHeaders } from './header'
|
|
4
4
|
import Pool from './pool'
|
|
5
5
|
|
|
6
6
|
export default Socks5ProxyAgent
|
|
@@ -12,7 +12,7 @@ declare class Socks5ProxyAgent extends Dispatcher {
|
|
|
12
12
|
declare namespace Socks5ProxyAgent {
|
|
13
13
|
export interface Options extends Pool.Options {
|
|
14
14
|
/** Additional headers to send with the proxy connection */
|
|
15
|
-
headers?:
|
|
15
|
+
headers?: OutgoingHttpHeaders;
|
|
16
16
|
/** SOCKS5 proxy username for authentication */
|
|
17
17
|
username?: string;
|
|
18
18
|
/** SOCKS5 proxy password for authentication */
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/whatsapp",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/whatsapp",
|
|
9
|
-
"version": "2026.7.1-beta.
|
|
9
|
+
"version": "2026.7.1-beta.4",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"audio-decode": "2.2.3",
|
|
12
12
|
"baileys": "7.0.0-rc13",
|
|
13
|
-
"typebox": "1.
|
|
13
|
+
"typebox": "1.3.3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.7.1-beta.
|
|
16
|
+
"openclaw": ">=2026.7.1-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"node_modules/@cacheable/memory": {
|
|
35
|
-
"version": "2.0
|
|
36
|
-
"resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.0.
|
|
37
|
-
"integrity": "sha512-
|
|
35
|
+
"version": "2.2.0",
|
|
36
|
+
"resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz",
|
|
37
|
+
"integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==",
|
|
38
38
|
"license": "MIT",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@cacheable/utils": "^2.
|
|
40
|
+
"@cacheable/utils": "^2.5.0",
|
|
41
41
|
"@keyv/bigmap": "^1.3.1",
|
|
42
42
|
"hookified": "^1.15.1",
|
|
43
43
|
"keyv": "^5.6.0"
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"node_modules/@cacheable/utils": {
|
|
61
|
-
"version": "2.
|
|
62
|
-
"resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.
|
|
63
|
-
"integrity": "sha512-
|
|
61
|
+
"version": "2.5.0",
|
|
62
|
+
"resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz",
|
|
63
|
+
"integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==",
|
|
64
64
|
"license": "MIT",
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"hashery": "^1.5.1",
|
|
@@ -252,12 +252,12 @@
|
|
|
252
252
|
"license": "MIT"
|
|
253
253
|
},
|
|
254
254
|
"node_modules/@types/node": {
|
|
255
|
-
"version": "
|
|
256
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-
|
|
257
|
-
"integrity": "sha512-
|
|
255
|
+
"version": "26.1.0",
|
|
256
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.1.0.tgz",
|
|
257
|
+
"integrity": "sha512-O0A1G3xPGy4w7AgQdAQYUlQ+BKk2Oovw8eRpofyp5KdBZULnbe+WqaOVNrm705SHphCiG4XHsACrSmPu1f+Kgw==",
|
|
258
258
|
"license": "MIT",
|
|
259
259
|
"dependencies": {
|
|
260
|
-
"undici-types": "
|
|
260
|
+
"undici-types": "~8.3.0"
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
263
|
"node_modules/@wasm-audio-decoders/common": {
|
|
@@ -404,13 +404,13 @@
|
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
"node_modules/cacheable": {
|
|
407
|
-
"version": "2.
|
|
408
|
-
"resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.
|
|
409
|
-
"integrity": "sha512-
|
|
407
|
+
"version": "2.5.0",
|
|
408
|
+
"resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz",
|
|
409
|
+
"integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==",
|
|
410
410
|
"license": "MIT",
|
|
411
411
|
"dependencies": {
|
|
412
|
-
"@cacheable/memory": "^2.0
|
|
413
|
-
"@cacheable/utils": "^2.
|
|
412
|
+
"@cacheable/memory": "^2.2.0",
|
|
413
|
+
"@cacheable/utils": "^2.5.0",
|
|
414
414
|
"hookified": "^1.15.0",
|
|
415
415
|
"keyv": "^5.6.0",
|
|
416
416
|
"qified": "^0.10.1"
|
|
@@ -423,12 +423,16 @@
|
|
|
423
423
|
"license": "LGPL-3.0-or-later"
|
|
424
424
|
},
|
|
425
425
|
"node_modules/content-type": {
|
|
426
|
-
"version": "
|
|
427
|
-
"resolved": "https://registry.npmjs.org/content-type/-/content-type-
|
|
428
|
-
"integrity": "sha512-
|
|
426
|
+
"version": "2.0.0",
|
|
427
|
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",
|
|
428
|
+
"integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",
|
|
429
429
|
"license": "MIT",
|
|
430
430
|
"engines": {
|
|
431
|
-
"node": ">=
|
|
431
|
+
"node": ">=18"
|
|
432
|
+
},
|
|
433
|
+
"funding": {
|
|
434
|
+
"type": "opencollective",
|
|
435
|
+
"url": "https://opencollective.com/express"
|
|
432
436
|
}
|
|
433
437
|
},
|
|
434
438
|
"node_modules/curve25519-js": {
|
|
@@ -551,12 +555,16 @@
|
|
|
551
555
|
}
|
|
552
556
|
},
|
|
553
557
|
"node_modules/media-typer": {
|
|
554
|
-
"version": "
|
|
555
|
-
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-
|
|
556
|
-
"integrity": "sha512-
|
|
558
|
+
"version": "2.0.0",
|
|
559
|
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-2.0.0.tgz",
|
|
560
|
+
"integrity": "sha512-kOy3OxT2HH39N70UnKgu4NWDZjLOz8W/mfyvniHjRH/DrL3f2pOfvWQ4p60offbbtDAnXWp0v9LfMIqMec269Q==",
|
|
557
561
|
"license": "MIT",
|
|
558
562
|
"engines": {
|
|
559
|
-
"node": ">=
|
|
563
|
+
"node": ">=18"
|
|
564
|
+
},
|
|
565
|
+
"funding": {
|
|
566
|
+
"type": "opencollective",
|
|
567
|
+
"url": "https://opencollective.com/express"
|
|
560
568
|
}
|
|
561
569
|
},
|
|
562
570
|
"node_modules/mpg123-decoder": {
|
|
@@ -579,9 +587,9 @@
|
|
|
579
587
|
"license": "MIT"
|
|
580
588
|
},
|
|
581
589
|
"node_modules/music-metadata": {
|
|
582
|
-
"version": "11.
|
|
583
|
-
"resolved": "https://registry.npmjs.org/music-metadata/-/music-metadata-11.
|
|
584
|
-
"integrity": "sha512-
|
|
590
|
+
"version": "11.13.0",
|
|
591
|
+
"resolved": "https://registry.npmjs.org/music-metadata/-/music-metadata-11.13.0.tgz",
|
|
592
|
+
"integrity": "sha512-uXRaov9dfjSpQufXIU7sMxVZnh+FilCQv2mXn+K5EJ/decP3dTWrgvPYa5r6MtRbieNSCE708Da4J0u1UGfQIw==",
|
|
585
593
|
"funding": [
|
|
586
594
|
{
|
|
587
595
|
"type": "github",
|
|
@@ -596,11 +604,11 @@
|
|
|
596
604
|
"dependencies": {
|
|
597
605
|
"@borewit/text-codec": "^0.2.2",
|
|
598
606
|
"@tokenizer/token": "^0.3.0",
|
|
599
|
-
"content-type": "^
|
|
607
|
+
"content-type": "^2.0.0",
|
|
600
608
|
"debug": "^4.4.3",
|
|
601
|
-
"file-type": "^21.3.
|
|
602
|
-
"media-typer": "^
|
|
603
|
-
"strtok3": "^10.3.
|
|
609
|
+
"file-type": "^21.3.4",
|
|
610
|
+
"media-typer": "^2.0.0",
|
|
611
|
+
"strtok3": "^10.3.5",
|
|
604
612
|
"token-types": "^6.1.2",
|
|
605
613
|
"uint8array-extras": "^1.5.0",
|
|
606
614
|
"win-guid": "^0.2.1"
|
|
@@ -890,9 +898,9 @@
|
|
|
890
898
|
"license": "0BSD"
|
|
891
899
|
},
|
|
892
900
|
"node_modules/typebox": {
|
|
893
|
-
"version": "1.
|
|
894
|
-
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.
|
|
895
|
-
"integrity": "sha512-
|
|
901
|
+
"version": "1.3.3",
|
|
902
|
+
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.3.tgz",
|
|
903
|
+
"integrity": "sha512-URXGUE31PJDQC+PtRMJeLdF4kmmOdFoVPikPCtV2oOIhUpNpppEdIz7W8bH8cFYPYHdDpaRvqwdegMTmHliudg==",
|
|
896
904
|
"license": "MIT"
|
|
897
905
|
},
|
|
898
906
|
"node_modules/uint8array-extras": {
|
|
@@ -908,9 +916,9 @@
|
|
|
908
916
|
}
|
|
909
917
|
},
|
|
910
918
|
"node_modules/undici-types": {
|
|
911
|
-
"version": "
|
|
912
|
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-
|
|
913
|
-
"integrity": "sha512-
|
|
919
|
+
"version": "8.3.0",
|
|
920
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
|
|
921
|
+
"integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
|
|
914
922
|
"license": "MIT"
|
|
915
923
|
},
|
|
916
924
|
"node_modules/whatsapp-rust-bridge": {
|
package/openclaw.plugin.json
CHANGED
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"activation": {
|
|
10
10
|
"onStartup": false
|
|
11
11
|
},
|
|
12
|
+
"contracts": {
|
|
13
|
+
"tools": [
|
|
14
|
+
"whatsapp_call"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
12
17
|
"channels": [
|
|
13
18
|
"whatsapp"
|
|
14
19
|
],
|
|
@@ -784,6 +789,9 @@
|
|
|
784
789
|
},
|
|
785
790
|
"polls": {
|
|
786
791
|
"type": "boolean"
|
|
792
|
+
},
|
|
793
|
+
"calls": {
|
|
794
|
+
"type": "boolean"
|
|
787
795
|
}
|
|
788
796
|
},
|
|
789
797
|
"additionalProperties": false
|
|
@@ -820,6 +828,10 @@
|
|
|
820
828
|
"label": "WhatsApp Config Writes",
|
|
821
829
|
"help": "Allow WhatsApp to write config in response to channel events/commands (default: true)."
|
|
822
830
|
},
|
|
831
|
+
"actions.calls": {
|
|
832
|
+
"label": "WhatsApp Voice Calls",
|
|
833
|
+
"help": "Expose the experimental requester-bound WhatsApp voice-call tool. Default: false. Requires a separately paired MeowCaller CLI."
|
|
834
|
+
},
|
|
823
835
|
"mentionPatterns": {
|
|
824
836
|
"label": "WhatsApp Mention Pattern Policy",
|
|
825
837
|
"help": "Scopes configured groupChat mentionPatterns to selected WhatsApp conversation IDs such as 123@g.us."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/whatsapp",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.4",
|
|
4
4
|
"description": "OpenClaw WhatsApp channel plugin for WhatsApp Web chats.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"audio-decode": "2.2.3",
|
|
12
12
|
"baileys": "7.0.0-rc13",
|
|
13
|
-
"typebox": "1.
|
|
13
|
+
"typebox": "1.3.3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.7.1-beta.
|
|
16
|
+
"openclaw": ">=2026.7.1-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"minHostVersion": ">=2026.4.25"
|
|
57
57
|
},
|
|
58
58
|
"compat": {
|
|
59
|
-
"pluginApi": ">=2026.7.1-beta.
|
|
59
|
+
"pluginApi": ">=2026.7.1-beta.4"
|
|
60
60
|
},
|
|
61
61
|
"build": {
|
|
62
|
-
"openclawVersion": "2026.7.1-beta.
|
|
62
|
+
"openclawVersion": "2026.7.1-beta.4"
|
|
63
63
|
},
|
|
64
64
|
"release": {
|
|
65
65
|
"publishToClawHub": true,
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { HashAlgorithm, CacheableStoreItem, CacheableItem, WrapFunctionOptions } from '@cacheable/utils';
|
|
2
|
-
export { CacheableItem, CacheableStoreItem, HashAlgorithm, hash, hashToNumber } from '@cacheable/utils';
|
|
3
|
-
import { Hookified } from 'hookified';
|
|
4
|
-
import { KeyvStoreAdapter, StoredData, Keyv } from 'keyv';
|
|
5
|
-
|
|
6
|
-
type KeyvCacheableMemoryOptions = CacheableMemoryOptions & {
|
|
7
|
-
namespace?: string;
|
|
8
|
-
};
|
|
9
|
-
declare class KeyvCacheableMemory implements KeyvStoreAdapter {
|
|
10
|
-
opts: CacheableMemoryOptions;
|
|
11
|
-
private readonly _defaultCache;
|
|
12
|
-
private readonly _nCache;
|
|
13
|
-
private _namespace?;
|
|
14
|
-
constructor(options?: KeyvCacheableMemoryOptions);
|
|
15
|
-
get namespace(): string | undefined;
|
|
16
|
-
set namespace(value: string | undefined);
|
|
17
|
-
get store(): CacheableMemory;
|
|
18
|
-
get<Value>(key: string): Promise<StoredData<Value> | undefined>;
|
|
19
|
-
getMany<Value>(keys: string[]): Promise<Array<StoredData<Value | undefined>>>;
|
|
20
|
-
set(key: string, value: any, ttl?: number): Promise<void>;
|
|
21
|
-
setMany(values: Array<{
|
|
22
|
-
key: string;
|
|
23
|
-
value: any;
|
|
24
|
-
ttl?: number;
|
|
25
|
-
}>): Promise<void>;
|
|
26
|
-
delete(key: string): Promise<boolean>;
|
|
27
|
-
deleteMany?(key: string[]): Promise<boolean>;
|
|
28
|
-
clear(): Promise<void>;
|
|
29
|
-
has?(key: string): Promise<boolean>;
|
|
30
|
-
on(event: string, listener: (...arguments_: any[]) => void): this;
|
|
31
|
-
getStore(namespace?: string): CacheableMemory;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Creates a new Keyv instance with a new KeyvCacheableMemory store. This also removes the serialize/deserialize methods from the Keyv instance for optimization.
|
|
35
|
-
* @param options
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
declare function createKeyv(options?: KeyvCacheableMemoryOptions): Keyv;
|
|
39
|
-
|
|
40
|
-
type StoreHashAlgorithmFunction = (key: string, storeHashSize: number) => number;
|
|
41
|
-
/**
|
|
42
|
-
* @typedef {Object} CacheableMemoryOptions
|
|
43
|
-
* @property {number|string} [ttl] - Time to Live - If you set a number it is miliseconds, if you set a string it is a human-readable
|
|
44
|
-
* format such as `1s` for 1 second or `1h` for 1 hour. Setting undefined means that it will use the default time-to-live. If both are
|
|
45
|
-
* undefined then it will not have a time-to-live.
|
|
46
|
-
* @property {boolean} [useClone] - If true, it will clone the value before returning it. If false, it will return the value directly. Default is true.
|
|
47
|
-
* @property {number} [lruSize] - The size of the LRU cache. If set to 0, it will not use LRU cache. Default is 0. If you are using LRU then the limit is based on Map() size 17mm.
|
|
48
|
-
* @property {number} [checkInterval] - The interval to check for expired items. If set to 0, it will not check for expired items. Default is 0.
|
|
49
|
-
* @property {number} [storeHashSize] - The number of how many Map stores we have for the hash. Default is 10.
|
|
50
|
-
*/
|
|
51
|
-
type CacheableMemoryOptions = {
|
|
52
|
-
ttl?: number | string;
|
|
53
|
-
useClone?: boolean;
|
|
54
|
-
lruSize?: number;
|
|
55
|
-
checkInterval?: number;
|
|
56
|
-
storeHashSize?: number;
|
|
57
|
-
storeHashAlgorithm?: HashAlgorithm | ((key: string, storeHashSize: number) => number);
|
|
58
|
-
};
|
|
59
|
-
type SetOptions = {
|
|
60
|
-
ttl?: number | string;
|
|
61
|
-
expire?: number | Date;
|
|
62
|
-
};
|
|
63
|
-
declare const defaultStoreHashSize = 16;
|
|
64
|
-
declare const maximumMapSize = 16777216;
|
|
65
|
-
declare class CacheableMemory extends Hookified {
|
|
66
|
-
private _lru;
|
|
67
|
-
private _storeHashSize;
|
|
68
|
-
private _storeHashAlgorithm;
|
|
69
|
-
private _store;
|
|
70
|
-
private _ttl;
|
|
71
|
-
private _useClone;
|
|
72
|
-
private _lruSize;
|
|
73
|
-
private _checkInterval;
|
|
74
|
-
private _interval;
|
|
75
|
-
/**
|
|
76
|
-
* @constructor
|
|
77
|
-
* @param {CacheableMemoryOptions} [options] - The options for the CacheableMemory
|
|
78
|
-
*/
|
|
79
|
-
constructor(options?: CacheableMemoryOptions);
|
|
80
|
-
/**
|
|
81
|
-
* Gets the time-to-live
|
|
82
|
-
* @returns {number|string|undefined} - The time-to-live in miliseconds or a human-readable format. If undefined, it will not have a time-to-live.
|
|
83
|
-
*/
|
|
84
|
-
get ttl(): number | string | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Sets the time-to-live
|
|
87
|
-
* @param {number|string|undefined} value - The time-to-live in miliseconds or a human-readable format (example '1s' = 1 second, '1h' = 1 hour). If undefined, it will not have a time-to-live.
|
|
88
|
-
*/
|
|
89
|
-
set ttl(value: number | string | undefined);
|
|
90
|
-
/**
|
|
91
|
-
* Gets whether to use clone
|
|
92
|
-
* @returns {boolean} - If true, it will clone the value before returning it. If false, it will return the value directly. Default is true.
|
|
93
|
-
*/
|
|
94
|
-
get useClone(): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Sets whether to use clone
|
|
97
|
-
* @param {boolean} value - If true, it will clone the value before returning it. If false, it will return the value directly. Default is true.
|
|
98
|
-
*/
|
|
99
|
-
set useClone(value: boolean);
|
|
100
|
-
/**
|
|
101
|
-
* Gets the size of the LRU cache
|
|
102
|
-
* @returns {number} - The size of the LRU cache. If set to 0, it will not use LRU cache. Default is 0. If you are using LRU then the limit is based on Map() size 17mm.
|
|
103
|
-
*/
|
|
104
|
-
get lruSize(): number;
|
|
105
|
-
/**
|
|
106
|
-
* Sets the size of the LRU cache
|
|
107
|
-
* @param {number} value - The size of the LRU cache. If set to 0, it will not use LRU cache. Default is 0. If you are using LRU then the limit is based on Map() size 17mm.
|
|
108
|
-
*/
|
|
109
|
-
set lruSize(value: number);
|
|
110
|
-
/**
|
|
111
|
-
* Gets the check interval
|
|
112
|
-
* @returns {number} - The interval to check for expired items. If set to 0, it will not check for expired items. Default is 0.
|
|
113
|
-
*/
|
|
114
|
-
get checkInterval(): number;
|
|
115
|
-
/**
|
|
116
|
-
* Sets the check interval
|
|
117
|
-
* @param {number} value - The interval to check for expired items. If set to 0, it will not check for expired items. Default is 0.
|
|
118
|
-
*/
|
|
119
|
-
set checkInterval(value: number);
|
|
120
|
-
/**
|
|
121
|
-
* Gets the size of the cache
|
|
122
|
-
* @returns {number} - The size of the cache
|
|
123
|
-
*/
|
|
124
|
-
get size(): number;
|
|
125
|
-
/**
|
|
126
|
-
* Gets the number of hash stores
|
|
127
|
-
* @returns {number} - The number of hash stores
|
|
128
|
-
*/
|
|
129
|
-
get storeHashSize(): number;
|
|
130
|
-
/**
|
|
131
|
-
* Sets the number of hash stores. This will recreate the store and all data will be cleared
|
|
132
|
-
* @param {number} value - The number of hash stores
|
|
133
|
-
*/
|
|
134
|
-
set storeHashSize(value: number);
|
|
135
|
-
/**
|
|
136
|
-
* Gets the store hash algorithm
|
|
137
|
-
* @returns {HashAlgorithm | StoreHashAlgorithmFunction} - The store hash algorithm
|
|
138
|
-
*/
|
|
139
|
-
get storeHashAlgorithm(): HashAlgorithm | StoreHashAlgorithmFunction;
|
|
140
|
-
/**
|
|
141
|
-
* Sets the store hash algorithm. This will recreate the store and all data will be cleared
|
|
142
|
-
* @param {HashAlgorithm | HashAlgorithmFunction} value - The store hash algorithm
|
|
143
|
-
*/
|
|
144
|
-
set storeHashAlgorithm(value: HashAlgorithm | StoreHashAlgorithmFunction);
|
|
145
|
-
/**
|
|
146
|
-
* Gets the keys
|
|
147
|
-
* @returns {IterableIterator<string>} - The keys
|
|
148
|
-
*/
|
|
149
|
-
get keys(): IterableIterator<string>;
|
|
150
|
-
/**
|
|
151
|
-
* Gets the items
|
|
152
|
-
* @returns {IterableIterator<CacheableStoreItem>} - The items
|
|
153
|
-
*/
|
|
154
|
-
get items(): IterableIterator<CacheableStoreItem>;
|
|
155
|
-
/**
|
|
156
|
-
* Gets the store
|
|
157
|
-
* @returns {Array<Map<string, CacheableStoreItem>>} - The store
|
|
158
|
-
*/
|
|
159
|
-
get store(): Array<Map<string, CacheableStoreItem>>;
|
|
160
|
-
/**
|
|
161
|
-
* Gets the value of the key
|
|
162
|
-
* @param {string} key - The key to get the value
|
|
163
|
-
* @returns {T | undefined} - The value of the key
|
|
164
|
-
*/
|
|
165
|
-
get<T>(key: string): T | undefined;
|
|
166
|
-
/**
|
|
167
|
-
* Gets the values of the keys
|
|
168
|
-
* @param {string[]} keys - The keys to get the values
|
|
169
|
-
* @returns {T[]} - The values of the keys
|
|
170
|
-
*/
|
|
171
|
-
getMany<T>(keys: string[]): T[];
|
|
172
|
-
/**
|
|
173
|
-
* Gets the raw value of the key
|
|
174
|
-
* @param {string} key - The key to get the value
|
|
175
|
-
* @returns {CacheableStoreItem | undefined} - The raw value of the key
|
|
176
|
-
*/
|
|
177
|
-
getRaw(key: string): CacheableStoreItem | undefined;
|
|
178
|
-
/**
|
|
179
|
-
* Gets the raw values of the keys
|
|
180
|
-
* @param {string[]} keys - The keys to get the values
|
|
181
|
-
* @returns {CacheableStoreItem[]} - The raw values of the keys
|
|
182
|
-
*/
|
|
183
|
-
getManyRaw(keys: string[]): Array<CacheableStoreItem | undefined>;
|
|
184
|
-
/**
|
|
185
|
-
* Sets the value of the key
|
|
186
|
-
* @param {string} key - The key to set the value
|
|
187
|
-
* @param {any} value - The value to set
|
|
188
|
-
* @param {number|string|SetOptions} [ttl] - Time to Live - If you set a number it is miliseconds, if you set a string it is a human-readable.
|
|
189
|
-
* If you want to set expire directly you can do that by setting the expire property in the SetOptions.
|
|
190
|
-
* If you set undefined, it will use the default time-to-live. If both are undefined then it will not have a time-to-live.
|
|
191
|
-
* @returns {void}
|
|
192
|
-
*/
|
|
193
|
-
set(key: string, value: any, ttl?: number | string | SetOptions): void;
|
|
194
|
-
/**
|
|
195
|
-
* Sets the values of the keys
|
|
196
|
-
* @param {CacheableItem[]} items - The items to set
|
|
197
|
-
* @returns {void}
|
|
198
|
-
*/
|
|
199
|
-
setMany(items: CacheableItem[]): void;
|
|
200
|
-
/**
|
|
201
|
-
* Checks if the key exists
|
|
202
|
-
* @param {string} key - The key to check
|
|
203
|
-
* @returns {boolean} - If true, the key exists. If false, the key does not exist.
|
|
204
|
-
*/
|
|
205
|
-
has(key: string): boolean;
|
|
206
|
-
/**
|
|
207
|
-
* @function hasMany
|
|
208
|
-
* @param {string[]} keys - The keys to check
|
|
209
|
-
* @returns {boolean[]} - If true, the key exists. If false, the key does not exist.
|
|
210
|
-
*/
|
|
211
|
-
hasMany(keys: string[]): boolean[];
|
|
212
|
-
/**
|
|
213
|
-
* Take will get the key and delete the entry from cache
|
|
214
|
-
* @param {string} key - The key to take
|
|
215
|
-
* @returns {T | undefined} - The value of the key
|
|
216
|
-
*/
|
|
217
|
-
take<T>(key: string): T | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* TakeMany will get the keys and delete the entries from cache
|
|
220
|
-
* @param {string[]} keys - The keys to take
|
|
221
|
-
* @returns {T[]} - The values of the keys
|
|
222
|
-
*/
|
|
223
|
-
takeMany<T>(keys: string[]): T[];
|
|
224
|
-
/**
|
|
225
|
-
* Delete the key
|
|
226
|
-
* @param {string} key - The key to delete
|
|
227
|
-
* @returns {void}
|
|
228
|
-
*/
|
|
229
|
-
delete(key: string): void;
|
|
230
|
-
/**
|
|
231
|
-
* Delete the keys
|
|
232
|
-
* @param {string[]} keys - The keys to delete
|
|
233
|
-
* @returns {void}
|
|
234
|
-
*/
|
|
235
|
-
deleteMany(keys: string[]): void;
|
|
236
|
-
/**
|
|
237
|
-
* Clear the cache
|
|
238
|
-
* @returns {void}
|
|
239
|
-
*/
|
|
240
|
-
clear(): void;
|
|
241
|
-
/**
|
|
242
|
-
* Get the store based on the key (internal use)
|
|
243
|
-
* @param {string} key - The key to get the store
|
|
244
|
-
* @returns {CacheableHashStore} - The store
|
|
245
|
-
*/
|
|
246
|
-
getStore(key: string): Map<string, CacheableStoreItem>;
|
|
247
|
-
/**
|
|
248
|
-
* Hash the key for which store to go to (internal use)
|
|
249
|
-
* @param {string} key - The key to hash
|
|
250
|
-
* Available algorithms are: SHA256, SHA1, MD5, and djb2Hash.
|
|
251
|
-
* @returns {number} - The hashed key as a number
|
|
252
|
-
*/
|
|
253
|
-
getKeyStoreHash(key: string): number;
|
|
254
|
-
/**
|
|
255
|
-
* Clone the value. This is for internal use
|
|
256
|
-
* @param {any} value - The value to clone
|
|
257
|
-
* @returns {any} - The cloned value
|
|
258
|
-
*/
|
|
259
|
-
clone(value: any): any;
|
|
260
|
-
/**
|
|
261
|
-
* Add to the front of the LRU cache. This is for internal use
|
|
262
|
-
* @param {string} key - The key to add to the front
|
|
263
|
-
* @returns {void}
|
|
264
|
-
*/
|
|
265
|
-
lruAddToFront(key: string): void;
|
|
266
|
-
/**
|
|
267
|
-
* Move to the front of the LRU cache. This is for internal use
|
|
268
|
-
* @param {string} key - The key to move to the front
|
|
269
|
-
* @returns {void}
|
|
270
|
-
*/
|
|
271
|
-
lruMoveToFront(key: string): void;
|
|
272
|
-
/**
|
|
273
|
-
* Remove a key from the LRU cache. This is for internal use
|
|
274
|
-
* @param {string} key - The key to remove
|
|
275
|
-
* @returns {void}
|
|
276
|
-
*/
|
|
277
|
-
lruRemove(key: string): void;
|
|
278
|
-
/**
|
|
279
|
-
* Resize the LRU cache. This is for internal use.
|
|
280
|
-
* @returns {void}
|
|
281
|
-
*/
|
|
282
|
-
lruResize(): void;
|
|
283
|
-
/**
|
|
284
|
-
* Check for expiration. This is for internal use
|
|
285
|
-
* @returns {void}
|
|
286
|
-
*/
|
|
287
|
-
checkExpiration(): void;
|
|
288
|
-
/**
|
|
289
|
-
* Start the interval check. This is for internal use
|
|
290
|
-
* @returns {void}
|
|
291
|
-
*/
|
|
292
|
-
startIntervalCheck(): void;
|
|
293
|
-
/**
|
|
294
|
-
* Stop the interval check. This is for internal use
|
|
295
|
-
* @returns {void}
|
|
296
|
-
*/
|
|
297
|
-
stopIntervalCheck(): void;
|
|
298
|
-
/**
|
|
299
|
-
* Wrap the function for caching
|
|
300
|
-
* @param {Function} function_ - The function to wrap
|
|
301
|
-
* @param {Object} [options] - The options to wrap
|
|
302
|
-
* @returns {Function} - The wrapped function
|
|
303
|
-
*/
|
|
304
|
-
wrap<T, Arguments extends any[]>(function_: (...arguments_: Arguments) => T, options?: WrapFunctionOptions): (...arguments_: Arguments) => T;
|
|
305
|
-
private isPrimitive;
|
|
306
|
-
private setTtl;
|
|
307
|
-
private hasExpired;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export { CacheableMemory, type CacheableMemoryOptions, KeyvCacheableMemory, type KeyvCacheableMemoryOptions, type SetOptions, type StoreHashAlgorithmFunction, createKeyv, defaultStoreHashSize, maximumMapSize };
|