@openclaw/whatsapp 2026.9.4 → 2026.9.5
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/assets/activity.svg +40 -0
- package/assets/icon.png +0 -0
- package/dist/{accounts-CiKHiuEe.js → .setup/accounts-D_NGDjCx.mjs} +2 -2
- package/dist/{action-runtime-CRZLhN3f.js → .setup/action-runtime-DZZFamfl.mjs} +3 -3
- package/dist/{active-listener-BEjWsCNM.js → .setup/active-listener-CDjoX9QR.mjs} +2 -2
- package/dist/{agent-tools-login-B-2qZPzc.js → .setup/agent-tools-login-B6MAs75N.mjs} +2 -2
- package/dist/{approval-handler.runtime-DGJEaoqh.js → .setup/approval-handler.runtime-C0hzmMSj.mjs} +12 -12
- package/dist/{approval-reactions-DSFH6Mtx.js → .setup/approval-reactions-BnXw-UZI.mjs} +13 -13
- package/dist/{auth-store-ZWaclAbd.js → .setup/auth-store-Dh8a3cba.mjs} +5 -5
- package/dist/{channel-CzEIEZqG.js → .setup/channel-CSclZYjU.mjs} +20 -29
- package/dist/{channel-react-action-CHeJSG9F.js → .setup/channel-react-action-1iBiEnq7.mjs} +5 -5
- package/dist/.setup/channel.runtime-ddGY37w8.mjs +16 -0
- package/dist/.setup/channel.setup-CqUl8COe.mjs +5 -0
- package/dist/{connection-controller-DNp6U1NN.js → .setup/connection-controller-C60mU7j7.mjs} +5 -5
- package/dist/{connection-controller-runtime-context-DG0tuYuw.js → .setup/connection-controller-runtime-context-hgLJoRc8.mjs} +1 -1
- package/dist/{directory-config-CoWFw1zn.js → .setup/directory-config-BHPoBklt.mjs} +8 -8
- package/dist/{group-session-key-BmVDSPr1.js → .setup/group-session-key-D22hYMdE.mjs} +5 -5
- package/dist/.setup/legacy-session-surface-api-B2szjq4r.mjs +2 -0
- package/dist/{login-6j2iP9nR.js → .setup/login-2dmd1TfE.mjs} +5 -5
- package/dist/{login-qr-DRFgI6k1.js → .setup/login-qr-CgKtO_ef.mjs} +6 -6
- package/dist/{monitor-DaIAK4fT.js → .setup/monitor-BblvzLpX.mjs} +68 -65
- package/dist/.setup/normalize-DdsROMMa.mjs +2 -0
- package/dist/{normalize-target-CugRyONv.js → .setup/normalize-target-BGra1ZnM.mjs} +8 -30
- package/dist/{question-reactions-bbe0Qnjn.js → .setup/question-reactions-D3Zq9Gbn.mjs} +2 -2
- package/dist/{resolve-outbound-target-1GqbT1uX.js → .setup/resolve-outbound-target-C2eUvsTc.mjs} +1 -1
- package/dist/{send-BDDGPxav.js → .setup/send-C6jDmcL9.mjs} +7 -7
- package/dist/{send-api-C_Zn4Ij-.js → .setup/send-api-B4DOt2RJ.mjs} +7 -7
- package/dist/{session.runtime-Nsqaehbd.js → .setup/session.runtime-DcJuO42v.mjs} +1 -1
- package/dist/{setup-finalize-CZ6fHFFU.js → .setup/setup-finalize-BYEgU0hb.mjs} +6 -6
- package/dist/.setup/setup-plugin-api-CXfU-7vN.mjs +3 -0
- package/dist/{setup-surface-CnK_PPiA.js → .setup/setup-surface-Cd3wN5HD.mjs} +4 -4
- package/dist/{shared-CLKLJLgY.js → .setup/shared-C9OEtKgc.mjs} +47 -50
- package/dist/{socket-close-B3X9uerq.js → .setup/socket-close-CCVSFufF.mjs} +4 -4
- package/dist/{text-runtime-DyfmcATV.js → .setup/text-runtime-CHl0iPYe.mjs} +1 -1
- package/dist/action-runtime-api.js +1 -1
- package/dist/action-runtime.runtime.js +1 -1
- package/dist/agent-tools-api.js +4 -4
- package/dist/api.js +15 -15
- package/dist/auth-presence.js +1 -1
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +5 -5
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +2 -2
- package/dist/legacy-session-surface-api.js +1 -1
- package/dist/light-runtime-api.js +4 -4
- package/dist/login-qr-runtime.js +1 -1
- package/dist/runtime-api.js +13 -13
- package/dist/runtime-setter-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/setup-entry.js +3 -2
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/audio-decode/node_modules/@thi.ng/bitstream/README.md +1 -1
- package/node_modules/audio-decode/node_modules/@thi.ng/bitstream/package.json +5 -5
- package/node_modules/audio-decode/node_modules/@thi.ng/errors/README.md +1 -1
- package/node_modules/audio-decode/node_modules/@thi.ng/errors/package.json +5 -5
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/flac/dist/flac-decoder.min.js +1 -1
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/flac/dist/flac-decoder.min.js.map +1 -1
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/flac/package.json +1 -1
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/flac/src/FLACDecoder.js +6 -6
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/flac/src/FLACDecoderWebWorker.js +2 -2
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/opus-ml/dist/opus-ml-decoder.min.js +11603 -11540
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/opus-ml/dist/opus-ml-decoder.min.js.map +1 -1
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/opus-ml/package.json +1 -1
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/opus-ml/src/EmscriptenWasm.js +0 -0
- package/node_modules/audio-decode/node_modules/@wasm-audio-decoders/opus-ml/types.d.ts +1 -5
- package/node_modules/audio-decode/node_modules/audio-type/audio-type.js +156 -2
- package/node_modules/audio-decode/node_modules/audio-type/package.json +23 -2
- package/node_modules/audio-decode/node_modules/audio-type/readme.md +40 -2
- package/node_modules/audio-decode/node_modules/ogg-opus-decoder/README.md +1 -1
- package/node_modules/audio-decode/node_modules/ogg-opus-decoder/dist/ogg-opus-decoder.min.js +3 -3
- package/node_modules/audio-decode/node_modules/ogg-opus-decoder/dist/ogg-opus-decoder.min.js.map +1 -1
- package/node_modules/audio-decode/node_modules/ogg-opus-decoder/dist/ogg-opus-decoder.opus-ml.min.js +0 -0
- package/node_modules/audio-decode/node_modules/ogg-opus-decoder/dist/ogg-opus-decoder.opus-ml.min.js.map +1 -1
- package/node_modules/audio-decode/node_modules/ogg-opus-decoder/package.json +8 -8
- package/node_modules/audio-decode/node_modules/ogg-opus-decoder/src/OggOpusDecoder.js +1 -1
- package/node_modules/audio-decode/node_modules/opus-decoder/README.md +1 -1
- package/node_modules/audio-decode/node_modules/opus-decoder/dist/opus-decoder.min.js +3 -3
- package/node_modules/audio-decode/node_modules/opus-decoder/dist/opus-decoder.min.js.map +1 -1
- package/node_modules/audio-decode/node_modules/opus-decoder/package.json +1 -1
- package/node_modules/audio-decode/node_modules/opus-decoder/types.d.ts +1 -5
- package/node_modules/baileys/node_modules/protobufjs/README.md +24 -17
- package/node_modules/baileys/node_modules/protobufjs/dist/light/protobuf.js +124 -14
- package/node_modules/baileys/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/baileys/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/baileys/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/baileys/node_modules/protobufjs/dist/minimal/protobuf.js +63 -9
- package/node_modules/baileys/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/baileys/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/baileys/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/baileys/node_modules/protobufjs/dist/protobuf.js +133 -18
- package/node_modules/baileys/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/baileys/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/baileys/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/baileys/node_modules/protobufjs/ext/descriptor.generated.d.ts +7 -0
- package/node_modules/baileys/node_modules/protobufjs/ext/descriptor.js +24 -0
- package/node_modules/baileys/node_modules/protobufjs/ext/protojson.js +14 -4
- package/node_modules/baileys/node_modules/protobufjs/ext/textformat.js +8 -4
- package/node_modules/baileys/node_modules/protobufjs/google/protobuf/descriptor.json +20 -1
- package/node_modules/baileys/node_modules/protobufjs/google/protobuf/descriptor.proto +14 -1
- package/node_modules/baileys/node_modules/protobufjs/index.d.ts +12 -0
- package/node_modules/baileys/node_modules/protobufjs/package.json +1 -1
- package/node_modules/baileys/node_modules/protobufjs/src/decoder.js +31 -2
- package/node_modules/baileys/node_modules/protobufjs/src/enum.js +10 -0
- package/node_modules/baileys/node_modules/protobufjs/src/object.js +5 -2
- package/node_modules/baileys/node_modules/protobufjs/src/parse.js +9 -4
- package/node_modules/baileys/node_modules/protobufjs/src/reader.js +61 -7
- package/node_modules/baileys/node_modules/protobufjs/src/type.js +10 -0
- package/node_modules/baileys/node_modules/protobufjs/src/wrappers.js +5 -1
- package/node_modules/typebox/build/compile/validator.d.mts +1 -1
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +7 -5
- package/node_modules/typebox/build/format/iri.mjs +5 -1
- package/node_modules/typebox/build/guard/emit.mjs +2 -4
- package/node_modules/typebox/build/guard/guard.mjs +6 -18
- package/node_modules/typebox/build/guard/string.mjs +16 -24
- package/node_modules/typebox/build/schema/build.mjs +2 -2
- package/node_modules/typebox/build/schema/check.mjs +1 -1
- package/node_modules/typebox/build/schema/compile.d.mts +3 -2
- package/node_modules/typebox/build/schema/compile.mjs +8 -8
- package/node_modules/typebox/build/schema/engine/_context.d.mts +6 -7
- package/node_modules/typebox/build/schema/engine/_context.mjs +23 -15
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +2 -2
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +3 -3
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/_refine.mjs +4 -7
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +34 -16
- package/node_modules/typebox/build/schema/engine/_stack.mjs +148 -104
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +8 -8
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +26 -18
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/allOf.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +5 -10
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/boolean.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/const.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/const.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/contains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/contains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +3 -6
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/enum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/enum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/format.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/format.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/if.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/if.mjs +7 -15
- package/node_modules/typebox/build/schema/engine/items.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/items.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/maximum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minContains.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +5 -5
- package/node_modules/typebox/build/schema/engine/minItems.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minLength.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/minimum.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/not.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -8
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +6 -11
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -7
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/properties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/properties.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +4 -10
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +11 -7
- package/node_modules/typebox/build/schema/engine/ref.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/ref.mjs +19 -15
- package/node_modules/typebox/build/schema/engine/required.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/required.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/schema.d.mts +7 -7
- package/node_modules/typebox/build/schema/engine/schema.mjs +137 -133
- package/node_modules/typebox/build/schema/engine/type.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +2 -6
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +5 -9
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +4 -4
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +2 -6
- package/node_modules/typebox/build/schema/errors.d.mts +2 -2
- package/node_modules/typebox/build/schema/errors.mjs +8 -14
- package/node_modules/typebox/build/schema/intern/index.d.mts +1 -0
- package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
- package/node_modules/typebox/build/schema/intern/intern.d.mts +11 -0
- package/node_modules/typebox/build/schema/intern/intern.mjs +293 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2019_09.mjs +288 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_2020_12.mjs +300 -0
- package/node_modules/typebox/build/schema/meta/draft_3.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_3.mjs +143 -0
- package/node_modules/typebox/build/schema/meta/draft_4.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_4.mjs +149 -0
- package/node_modules/typebox/build/schema/meta/draft_6.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_6.mjs +155 -0
- package/node_modules/typebox/build/schema/meta/draft_7.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/draft_7.mjs +172 -0
- package/node_modules/typebox/build/schema/meta/index.d.mts +2 -0
- package/node_modules/typebox/build/schema/meta/index.mjs +2 -0
- package/node_modules/typebox/build/schema/meta/meta.d.mts +9 -0
- package/node_modules/typebox/build/schema/meta/meta.mjs +15 -0
- package/node_modules/typebox/build/schema/meta/schema.d.mts +6 -0
- package/node_modules/typebox/build/schema/meta/schema.mjs +1 -0
- package/node_modules/typebox/build/schema/parse.d.mts +1 -0
- package/node_modules/typebox/build/schema/parse.mjs +10 -5
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +8 -3
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +268 -139
- package/node_modules/typebox/build/schema/schema.d.mts +2 -0
- package/node_modules/typebox/build/schema/schema.mjs +2 -0
- package/node_modules/typebox/build/value/errors/errors.d.mts +2 -12
- package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +59 -89
- package/openclaw.plugin.json +11 -2
- package/package.json +7 -5
- package/dist/channel.runtime-BFiZ9WhU.js +0 -55
- package/dist/channel.setup-gIWoRLzt.js +0 -14
- package/dist/normalize-C7Hkc_vE.js +0 -2
- /package/dist/{account-ids-CB5SOWjc.js → .setup/account-ids-CB5SOWjc.mjs} +0 -0
- /package/dist/{audio-preflight.runtime-C_glQhZY.js → .setup/audio-preflight.runtime-C_glQhZY.mjs} +0 -0
- /package/dist/{command-policy-BIOSHySD.js → .setup/command-policy-BIOSHySD.mjs} +0 -0
- /package/dist/{config-schema-BYA6e_Ii.js → .setup/config-schema-BYA6e_Ii.mjs} +0 -0
- /package/dist/{constants-C7m81BNe.js → .setup/constants-C7m81BNe.mjs} +0 -0
- /package/dist/{creds-files-Drg3usj1.js → .setup/creds-files-Drg3usj1.mjs} +0 -0
- /package/dist/{doctor-BPb-SjdE.js → .setup/doctor-BPb-SjdE.mjs} +0 -0
- /package/dist/{group-config-path-BGyzT9Lg.js → .setup/group-config-path-BGyzT9Lg.mjs} +0 -0
- /package/dist/{group-session-contract-DDnZSsJ1.js → .setup/group-session-contract-DDnZSsJ1.mjs} +0 -0
- /package/dist/{reply-resolver.runtime-Ded8D58Y.js → .setup/reply-resolver.runtime-Ded8D58Y.mjs} +0 -0
- /package/dist/{rolldown-runtime-D7D4PA-g.js → .setup/rolldown-runtime-D7D4PA-g.mjs} +0 -0
- /package/dist/{runtime-BLlToOi6.js → .setup/runtime-BLlToOi6.mjs} +0 -0
- /package/dist/{runtime-group-policy-DeSRFXEV.js → .setup/runtime-group-policy-DeSRFXEV.mjs} +0 -0
- /package/dist/{security-contract-nAzD945y.js → .setup/security-contract-nAzD945y.mjs} +0 -0
- /package/dist/{session-contract-DMTm6Q_L.js → .setup/session-contract-DMTm6Q_L.mjs} +0 -0
- /package/dist/{session-errors-JuazczrA.js → .setup/session-errors-JuazczrA.mjs} +0 -0
- /package/dist/{targets-runtime-RBjx3pg_.js → .setup/targets-runtime-RBjx3pg_.mjs} +0 -0
|
@@ -30,12 +30,12 @@ import Type from 'typebox'
|
|
|
30
30
|
|
|
31
31
|
const T = Type.Object({ // const T = {
|
|
32
32
|
x: Type.Number(), // type: 'object',
|
|
33
|
-
y: Type.Number(), //
|
|
34
|
-
z: Type.Number() //
|
|
35
|
-
}) //
|
|
33
|
+
y: Type.Number(), // required: ['x', 'y', 'z']
|
|
34
|
+
z: Type.Number() // properties: {
|
|
35
|
+
}) // x: { type: 'number' },
|
|
36
|
+
// y: { type: 'number' },
|
|
36
37
|
// z: { type: 'number' }
|
|
37
38
|
// },
|
|
38
|
-
// required: ['x', 'y', 'z']
|
|
39
39
|
// }
|
|
40
40
|
|
|
41
41
|
type T = Type.Static<typeof T> // type T = {
|
|
@@ -69,9 +69,9 @@ License: MIT
|
|
|
69
69
|
|
|
70
70
|
## Type
|
|
71
71
|
|
|
72
|
-
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/type/overview) | [Example](https://www.typescriptlang.org/play
|
|
72
|
+
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/type/overview) | [Example](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgYwgDsBneAVUdSjgF5EiA6APLEAVqhowAFAG84sufIWLZAemVw6TVu048plWcAAmALl5o+AZRhRg9AOYSAlABolb9wtVzCaU3ggiYjB4zvpw9ACGIKimyOZWNvZOrh6pnmqyUKgAjgCuwFkmcADaYaggEcAANrH8CbYOMhjQFTB+5ZVVeHAAvo5uXvJ4RiFwlH1pk1MDGXJ4kdGjYdMrK4NzHdVUqztT6wC6obvHHutg2GiwwKiMpnonD4rrBkUyPjH4zIl23T1HjwC4M9wlEPm8iH4vg1fv9AQ9gZsanAZMs4cdgbJ3pDrNDXKi0TsMZgWhE2vhEd18QS1rNZD0qdS9rN6Yzdl56ZR3nA2BxuGZUJYYKTgDQADzvCAYbnaAB8TLgXJ5OmRDNZaXWRlMUPssLV03WCw+2rsur1k3WiK1OPsqrNM16QA)
|
|
73
73
|
|
|
74
|
-
TypeBox types are JSON Schema fragments that compose into more complex types. The library
|
|
74
|
+
TypeBox types are JSON Schema fragments that compose into more complex types. The library provides a core set of types for constructing JSON Schema compliant schematics, alongside extended types designed to model constructs native to JavaScript and TypeScript. The JSON Schema schematics produced by TypeBox can be passed directly to any compliant validator.
|
|
75
75
|
|
|
76
76
|
### Example
|
|
77
77
|
|
|
@@ -80,38 +80,33 @@ The following creates a User type and infers with Static.
|
|
|
80
80
|
```typescript
|
|
81
81
|
import Type from 'typebox'
|
|
82
82
|
|
|
83
|
-
// Type
|
|
84
|
-
|
|
85
83
|
const User = Type.Object({ // const User = {
|
|
86
84
|
id: Type.String(), // type: 'object',
|
|
87
|
-
name: Type.String(), //
|
|
88
|
-
email: Type.String({ format: 'email' }) // id
|
|
89
|
-
}) // name
|
|
85
|
+
name: Type.String(), // required: [
|
|
86
|
+
email: Type.String({ format: 'email' }) // 'id',
|
|
87
|
+
}) // 'name',
|
|
88
|
+
// 'email'
|
|
89
|
+
// ],
|
|
90
|
+
// properties: {
|
|
91
|
+
// id: { type: 'string' },
|
|
92
|
+
// name: { type: 'string' },
|
|
90
93
|
// email: {
|
|
91
94
|
// type: 'string',
|
|
92
95
|
// format: 'email'
|
|
93
96
|
// }
|
|
94
|
-
// }
|
|
95
|
-
// required: [
|
|
96
|
-
// 'id',
|
|
97
|
-
// 'name',
|
|
98
|
-
// 'email'
|
|
99
|
-
// ]
|
|
97
|
+
// }
|
|
100
98
|
// }
|
|
101
99
|
|
|
102
|
-
// Static
|
|
103
|
-
|
|
104
100
|
type User = Type.Static<typeof User> // type User = {
|
|
105
101
|
// id: string,
|
|
106
102
|
// name: string,
|
|
107
103
|
// email: string
|
|
108
104
|
// }
|
|
109
|
-
|
|
110
105
|
```
|
|
111
106
|
|
|
112
107
|
## Script
|
|
113
108
|
|
|
114
|
-
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/
|
|
109
|
+
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgYwgDsBneAWQEMYALOAXkSIB0AZRpRgYGAAoABpThxCaOADVUNGNAAsvOAG84ZAFxx6AVxDFUUADRwkxsxau2AXg-OWbcAO7unUOABfOQUiFTUNKABmHX0jEw9nOz9PVxSrIJDFdFV1aAAmWIN0r3sE-0zpAEpqOiZ4AHEoNjBOYBpGHWQ0YVFxKXYuW1l5bPDYVDJYkPlIRmAYYAZjXMjNaxmTaBA2ABsViOgojfl5UwA3A7yofJDg0bCG1BxUGCgkadO4c6tFmlRGAcJmQANoAXROp2A9AAJu0ASVwXcsmFBlZgHtPqc2BZgKh6DArmtIfI4RgMKZGKgiVoSXBGGgaKZdmwoDSoJpkQ8lCwAdw+LpNgBzZ4gV7vYxPF5vJB0nYwdF7YxosR7ZHVahjXmMfn8HpCGAcdoAHmyEAwcCaLTaHRBeG1nDwYIAfPIAPRu0I8vlYr5+-0BwNBoMe04i6USvRwAQxoJ04MJxNJ0PyeWK-ZRmMCTJJ3N5wOhwJAA) | [Example 2](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFkBDGAC0YgBMBXAG1WoBjCADsAzvABqqQTGgAWOAF5ERAHQB5YgCsZMABQBvOGQBcqtGoBy3EMVRR9ASgA0cJOeSWbdh87cAXp7qPvaOrnAA7sHetmHOcAC+TpTC4lJ60ADMyhaomjp6RiYx+aF+ER551nEVgaU1vuFJKWkScNKy0ABMuV75WrqyxWbV5eFuVf2N8U4t1HRwAOJQTGCswIJiHDz8QqLt0rCoZH3qg0WGlHBwkGLAMMCi5p1yUPIu13Ai0CBMvC9MlAsp8btwAG6ArpQbqUZKpA7wJaoHCoGBQJBnSwXYZXG7ghyPQSoMQNACCUFWSH0RxgJ1cX2AIk4mxJ5MpTGp03GzhS8La8GYdKgwH+WIGhVxXyYdmAqBEMChbw+XxZGAw3DEqCVClBcDEaEEfCYUB170+-MRjBJ7BU0xxBjxcAA5iiQGiMeZkaj0Ug9X9haKAYwWA4g3CUpRCGhrWJbdUAMowFibAA80ZRGFjrAAfDd8wXC4sM9nck7CxXK1XqzX84sbq6fZ64MY1G2knra13u1363AA2H-uZW+3El8exPJ3X6IkgA)
|
|
115
110
|
|
|
116
111
|
TypeBox includes a micro TypeScript engine that can transform TypeScript definitions to JSON Schema. The engine is fully type-safe and supports many programmable constructs including Conditional, Mapped, Indexed, Generics, Distributive Generics, and more.
|
|
117
112
|
|
|
@@ -122,16 +117,12 @@ Syntax highlighting is available via the [Visual Studio Marketplace](https://mar
|
|
|
122
117
|
```typescript
|
|
123
118
|
import Type from 'typebox'
|
|
124
119
|
|
|
125
|
-
// Math Module
|
|
126
|
-
|
|
127
120
|
const Math = Type.Script(`
|
|
128
121
|
type Vector4 = { x: number, y: number, z: number, w: number }
|
|
129
122
|
type Vector3 = { x: number, y: number, z: number }
|
|
130
123
|
type Vector2 = { x: number, y: number }
|
|
131
124
|
`)
|
|
132
125
|
|
|
133
|
-
// Graphics Module
|
|
134
|
-
|
|
135
126
|
const Graphics = Type.Script(Math, `
|
|
136
127
|
type Vertex = {
|
|
137
128
|
position: Vector4,
|
|
@@ -163,9 +154,9 @@ type Mesh = Type.Static<typeof Graphics['Mesh']> // type Mesh = {
|
|
|
163
154
|
|
|
164
155
|
## Schema
|
|
165
156
|
|
|
166
|
-
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/schema/overview) | [Example 1](https://www.typescriptlang.org/play
|
|
157
|
+
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/schema/overview) | [Example 1](https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAZQMYAsCmICGcBmUIhwDkMAnmGgEYQAeA9AM6oaZEBQokscAKuWrnyES-ajXZs6dOAGECYYABs0bNkggA7BvABqaJDGhwAvImZYAdHPBK0ACj4ULyKMDAw7AAwDebOHBoALjgNAFcQSjQoPzhSYLCIqJiAL3jwyOiAX08AShzVKVl0JABrVXUteAA3TEVgABMTOD0DaCtikrtvAOCARgAaWOCABkHUuGG4TJz-OEKK7Tgauvrg6ghlTA0C6QAFTCgGFTVNRag0BlDFeFMWwygLfcP7bqC4AaGJsZGpmbnpBbwc6Xa7BbqzfwxCHQmGwuHwhGFfxvBIZKEIjGYrH+JGfVFJbGEokw3HjfHRYmUomFTJAA) | [Example 2](https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAZQMYAsCmICGcBmUIhwDkMAnmGgEYQAeA9AM6oaZEBQokscAKuWrnyES-ajXZs6dOAGECYYABs0bNkggA7BvABqaJDGhwAvImZYAdHPBK0ACj4ULAeUoArfTDsBvNnDg0AFy8-BYAcgCuIJRoUHYAlAA0fnCkwY5o4VExcUkpAF7poZHRsQlsAL7x8apSsuhIANaq6lrwAG6YisAAJiZwegbQVg2NPgHBAIyJqcEADDOFcHNwVf5wda3acJ3dPcHUEMqYGrXSAAqYUAwqaprbUGgMEYrwpoOGUBaX1-beE3BprNlot5qt4v5Nvd4I9nq9gv91v4UkjUWj0RjMVi6v4gnANNlYiisSTSWTIdJ-Gl8YSoMTyQzGRT1ksCaU6UzOYy6hUgA) | [Example 3](https://www.typescriptlang.org/play/#code/JYWwDg9gTgLgBAZQMYAsCmICGcBmUIhwDkMAnmGgEYQAeA9AM6oaZEBQbddcAwgWMAA2aDkggA7BvABqaJDGhwAvImZYAdH3BC0ACgDebOHDIUAXMQiUAVnJhEANEbhQ0ARwCuwVwBMLAbSIaR2JSEKIALyIAXSdjMHwKWGA0BgtDY2MadJNyNAsicQ8QSjQoIjgAXzjM0hzTfOIikrKK6udjCPq8gubS8qrnSrZKgEoOLl50JABrUQkpOAA3TEFgH2U4WXloTWmZgzhsuABGBzg6uAAGc67rqtHMybFJeBW1vzhqCGFMcQnuAAFTBQBgiNgvRauBgeQTwFTbBRQdTA0F6fRHCxnC4WG5wO5XB7GZ4LeDQ2EwHKZYwdal0+kMxlMpmTLIWPplWnM7k83lwVk4uAcqBcvli8X87iddnFfqiiUK5mTSpAA)
|
|
167
158
|
|
|
168
|
-
TypeBox includes a high-performance JIT compiler that supports
|
|
159
|
+
TypeBox includes a high-performance JSON Schema JIT compiler that supports Draft 3 through to 2020-12. The compiler is designed to be a lightweight industry-grade alternative to Ajv and offers improved compilation and validation performance. It also offers automatic fallback to dynamic validation in JIT restricted environments such as Cloudflare Workers.
|
|
169
160
|
|
|
170
161
|
The compiler is available via optional sub module import.
|
|
171
162
|
|
|
@@ -175,37 +166,9 @@ import Schema from 'typebox/schema'
|
|
|
175
166
|
|
|
176
167
|
### Compile
|
|
177
168
|
|
|
178
|
-
The compiler accepts
|
|
169
|
+
The compiler accepts both TypeBox types and plain JSON Schema objects. The Compile function will return a new Validator instance which can be used to check and parse values. The example below compiles a Script definition into a validator.
|
|
179
170
|
|
|
180
171
|
```typescript
|
|
181
|
-
|
|
182
|
-
// Type
|
|
183
|
-
|
|
184
|
-
const VectorA = Schema.Compile(Type.Object({ // const VectorA: Validator<TObject<{
|
|
185
|
-
x: Type.Number(), // x: TNumber
|
|
186
|
-
y: Type.Number(), // y: TNumber
|
|
187
|
-
z: Type.Number() // z: TNumber
|
|
188
|
-
})) // }>>
|
|
189
|
-
|
|
190
|
-
// Schema
|
|
191
|
-
|
|
192
|
-
const VectorB = Schema.Compile({ // const VectorB: Validator<{
|
|
193
|
-
type: 'object', // type: "object";
|
|
194
|
-
required: ['x', 'y', 'z'], // required: ["x", "y", "z"];
|
|
195
|
-
properties: { // properties: { ... };
|
|
196
|
-
x: { type: 'number' }, // }, { ... }>
|
|
197
|
-
y: { type: 'number' },
|
|
198
|
-
z: { type: 'number' }
|
|
199
|
-
}
|
|
200
|
-
})
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
### Validate
|
|
204
|
-
|
|
205
|
-
Compiled validator instances provide functions to Check and Parse values.
|
|
206
|
-
|
|
207
|
-
```typescript
|
|
208
|
-
|
|
209
172
|
// Compile
|
|
210
173
|
|
|
211
174
|
const Vector = Schema.Compile(Type.Script(`{
|
|
@@ -227,11 +190,11 @@ const result = Vector.Parse({ x: 1, y: 0, z: 0 }) // const result: {
|
|
|
227
190
|
// }
|
|
228
191
|
```
|
|
229
192
|
|
|
230
|
-
###
|
|
193
|
+
### Compatibility
|
|
231
194
|
|
|
232
195
|
[JSON Schema Test Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite) | [JSON Schema Compliance Suite](https://github.com/sinclairzx81/json-schema-compliance-suite)
|
|
233
196
|
|
|
234
|
-
TypeBox supports all
|
|
197
|
+
TypeBox supports all versions of JSON Schema and is heavily tested against the official JSON Schema Test Suite. It prioritizes compatibility with modern specifications while also maintaining broad support for legacy versions provided their semantics are not in conflict with modern specifications.
|
|
235
198
|
|
|
236
199
|
| Spec | 3 | 4 | 6 | 7 | 2019-09 | 2020-12 | v1 |
|
|
237
200
|
|:-----|:--|:--|:--|:--|:--|:--|:--|
|
|
@@ -245,11 +208,13 @@ TypeBox supports all major JSON Schema draft versions and tracks compliance agai
|
|
|
245
208
|
| contains | - | - | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
246
209
|
| content | - | - | - | - | ✅ | ✅ | ✅ |
|
|
247
210
|
| default | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
211
|
+
| definitions | - | 1/2 | ✅ | ✅ | - | - | - |
|
|
212
|
+
| defs | - | - | - | - | ✅ | ✅ | - |
|
|
248
213
|
| dependencies | 17/18 | ✅ | ✅ | ✅ | - | - | - |
|
|
249
214
|
| dependentRequired | - | - | - | - | ✅ | ✅ | ✅ |
|
|
250
215
|
| dependentSchemas | - | - | - | - | ✅ | ✅ | ✅ |
|
|
251
|
-
| dynamicRef | - | - | - | - | - |
|
|
252
|
-
| enum |
|
|
216
|
+
| dynamicRef | - | - | - | - | - | ✅ | ✅ |
|
|
217
|
+
| enum | 16/18 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
253
218
|
| exclusiveMaximum | - | - | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
254
219
|
| exclusiveMinimum | - | - | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
255
220
|
| if-then-else | - | - | - | ✅ | ✅ | ✅ | ✅ |
|
|
@@ -274,52 +239,57 @@ TypeBox supports all major JSON Schema draft versions and tracks compliance agai
|
|
|
274
239
|
| properties | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
275
240
|
| propertyNames | - | - | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
276
241
|
| recursiveRef | - | - | - | - | ✅ | - | - |
|
|
277
|
-
| ref |
|
|
242
|
+
| ref | 23/27 | 38/45 | 69/70 | 77/78 | ✅ | ✅ | ✅ |
|
|
243
|
+
| refRemote | 7/8 | 11/17 | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
278
244
|
| required | 3/4 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
279
245
|
| type | 73/80 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
280
|
-
| unevaluatedItems | - | - | - | - | ✅ | ✅ |
|
|
281
|
-
| unevaluatedProperties | - | - | - | - | ✅ | ✅ |
|
|
246
|
+
| unevaluatedItems | - | - | - | - | ✅ | ✅ | ✅ |
|
|
247
|
+
| unevaluatedProperties | - | - | - | - | ✅ | ✅ | ✅ |
|
|
282
248
|
| uniqueItems | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
|
|
283
249
|
|
|
284
250
|
### Performance
|
|
285
251
|
|
|
286
|
-
TypeBox tracks
|
|
252
|
+
TypeBox tracks performance against AJV8 only as the defacto performance standard. For broader comparative benchmarks, refer to the following community maintained projects.
|
|
287
253
|
|
|
288
254
|
[Runtime Benchmarks](https://moltar.github.io/typescript-runtime-type-benchmarks/) | [Schema Benchmarks](https://schemabenchmarks.dev/)
|
|
289
255
|
|
|
290
|
-
|
|
256
|
+
### Compile
|
|
257
|
+
|
|
258
|
+
The following table shows compile performance for various JSON Schema structures. These benchmarks measure the time required to build and runtime JIT schematics. Faster compilation results in faster application startup.
|
|
291
259
|
|
|
292
260
|
```python
|
|
293
261
|
┌──────────────────────┬──────────────┬──────────────┐
|
|
294
262
|
│ Compile │ TB1X │ AJV8 │
|
|
295
263
|
├──────────────────────┼──────────────┼──────────────┤
|
|
296
|
-
│ Boolean │
|
|
297
|
-
│ Number │
|
|
298
|
-
│ String │
|
|
299
|
-
│ Null │
|
|
300
|
-
│ Literal_String │
|
|
301
|
-
│ Literal_Number │
|
|
302
|
-
│ Literal_Boolean │
|
|
303
|
-
│ Pattern │
|
|
304
|
-
│ Object_Open │
|
|
305
|
-
│ Object_Close │
|
|
306
|
-
│ Object_Vector3 │
|
|
307
|
-
│ Object_Basis3 │
|
|
308
|
-
│ Intersect_And │
|
|
309
|
-
│ Intersect_Structural │ 25.
|
|
310
|
-
│ Union_Or │ 58.
|
|
311
|
-
│ Union_Structural │
|
|
312
|
-
│ Tuple_Values │
|
|
313
|
-
│ Tuple_Objects │
|
|
314
|
-
│ Array_Numbers_4 │
|
|
315
|
-
│ Array_Numbers_8 │
|
|
316
|
-
│ Array_Numbers_16 │
|
|
317
|
-
│ Array_Objects_Open │
|
|
318
|
-
│ Array_Objects_Close │
|
|
264
|
+
│ Boolean │ 54.9K ops/s │ 7K ops/s │
|
|
265
|
+
│ Number │ 154.2K ops/s │ 7.8K ops/s │
|
|
266
|
+
│ String │ 161.4K ops/s │ 9.7K ops/s │
|
|
267
|
+
│ Null │ 111.9K ops/s │ 8.9K ops/s │
|
|
268
|
+
│ Literal_String │ 34.6K ops/s │ 7.5K ops/s │
|
|
269
|
+
│ Literal_Number │ 78.1K ops/s │ 7.6K ops/s │
|
|
270
|
+
│ Literal_Boolean │ 79.7K ops/s │ 8.4K ops/s │
|
|
271
|
+
│ Pattern │ 92.1K ops/s │ 6.1K ops/s │
|
|
272
|
+
│ Object_Open │ 18.6K ops/s │ 1.3K ops/s │
|
|
273
|
+
│ Object_Close │ 17K ops/s │ 975 ops/s │
|
|
274
|
+
│ Object_Vector3 │ 33.3K ops/s │ 3.4K ops/s │
|
|
275
|
+
│ Object_Basis3 │ 18.9K ops/s │ 858 ops/s │
|
|
276
|
+
│ Intersect_And │ 63.5K ops/s │ 3.6K ops/s │
|
|
277
|
+
│ Intersect_Structural │ 25.7K ops/s │ 1.7K ops/s │
|
|
278
|
+
│ Union_Or │ 58.2K ops/s │ 3.3K ops/s │
|
|
279
|
+
│ Union_Structural │ 33.7K ops/s │ 2K ops/s │
|
|
280
|
+
│ Tuple_Values │ 19.5K ops/s │ 2K ops/s │
|
|
281
|
+
│ Tuple_Objects │ 4K ops/s │ 388 ops/s │
|
|
282
|
+
│ Array_Numbers_4 │ 90.7K ops/s │ 4.3K ops/s │
|
|
283
|
+
│ Array_Numbers_8 │ 121.8K ops/s │ 3.8K ops/s │
|
|
284
|
+
│ Array_Numbers_16 │ 116.6K ops/s │ 3.9K ops/s │
|
|
285
|
+
│ Array_Objects_Open │ 22.6K ops/s │ 802 ops/s │
|
|
286
|
+
│ Array_Objects_Close │ 18.4K ops/s │ 930 ops/s │
|
|
319
287
|
└──────────────────────┴──────────────┴──────────────┘
|
|
320
288
|
```
|
|
321
289
|
|
|
322
|
-
|
|
290
|
+
### Validate
|
|
291
|
+
|
|
292
|
+
The following table shows validation performance for various JSON Schema structures. These benchmarks measure overall validation throughput for compiled schematics.
|
|
323
293
|
|
|
324
294
|
```python
|
|
325
295
|
┌──────────────────────┬──────────────┬──────────────┐
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "whatsapp",
|
|
3
3
|
"categories": [
|
|
4
|
-
"channels"
|
|
5
|
-
"tools"
|
|
4
|
+
"channels"
|
|
6
5
|
],
|
|
7
6
|
"doctorContract": {
|
|
8
7
|
"configRepair": true,
|
|
@@ -29,6 +28,16 @@
|
|
|
29
28
|
"channels": [
|
|
30
29
|
"whatsapp"
|
|
31
30
|
],
|
|
31
|
+
"configGroups": [
|
|
32
|
+
{
|
|
33
|
+
"id": "plugin-hooks",
|
|
34
|
+
"title": "Plugin hooks",
|
|
35
|
+
"order": 10,
|
|
36
|
+
"properties": [
|
|
37
|
+
"pluginHooks"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
32
41
|
"configSchema": {
|
|
33
42
|
"type": "object",
|
|
34
43
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/whatsapp",
|
|
3
|
-
"version": "2026.9.
|
|
3
|
+
"version": "2026.9.5",
|
|
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-rc14",
|
|
13
|
-
"typebox": "1.3.
|
|
13
|
+
"typebox": "1.3.30"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.9.
|
|
16
|
+
"openclaw": ">=2026.9.5"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"minHostVersion": ">=2026.4.25"
|
|
66
66
|
},
|
|
67
67
|
"compat": {
|
|
68
|
-
"pluginApi": ">=2026.9.
|
|
68
|
+
"pluginApi": ">=2026.9.5"
|
|
69
69
|
},
|
|
70
70
|
"build": {
|
|
71
71
|
"bundledDist": false,
|
|
72
|
-
"openclawVersion": "2026.9.
|
|
72
|
+
"openclawVersion": "2026.9.5"
|
|
73
73
|
},
|
|
74
74
|
"release": {
|
|
75
75
|
"publishToClawHub": true,
|
|
@@ -84,6 +84,8 @@
|
|
|
84
84
|
"dist/**",
|
|
85
85
|
"openclaw.plugin.json",
|
|
86
86
|
"README.md",
|
|
87
|
+
"assets/icon.png",
|
|
88
|
+
"assets/activity.svg",
|
|
87
89
|
"skills/**"
|
|
88
90
|
],
|
|
89
91
|
"bundledDependencies": [
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { startWebLoginWithQr as startWebLoginWithQr$1, waitForWebLogin as waitForWebLogin$1 } from "./login-qr-runtime.js";
|
|
2
|
-
import { c as logoutWeb$1, d as readWebAuthExistsBestEffort$1, f as readWebAuthExistsForDecision$1, g as readWebSelfId$1, h as readWebAuthState$1, m as readWebAuthSnapshotBestEffort$1, o as getWebAuthAgeMs$1, p as readWebAuthSnapshot$1, s as logWebSelfId$1, x as webAuthExists$1 } from "./auth-store-ZWaclAbd.js";
|
|
3
|
-
import { t as getActiveWebListener$1 } from "./active-listener-BEjWsCNM.js";
|
|
4
|
-
import { t as monitorWebChannel$1 } from "./monitor-DaIAK4fT.js";
|
|
5
|
-
import { t as loginWeb$1 } from "./login-6j2iP9nR.js";
|
|
6
|
-
import { whatsappSetupWizard as whatsappSetupWizard$1 } from "./setup-surface-CnK_PPiA.js";
|
|
7
|
-
//#region extensions/whatsapp/src/channel.runtime.ts
|
|
8
|
-
function getActiveWebListener(...args) {
|
|
9
|
-
return getActiveWebListener$1(...args);
|
|
10
|
-
}
|
|
11
|
-
function getWebAuthAgeMs(...args) {
|
|
12
|
-
return getWebAuthAgeMs$1(...args);
|
|
13
|
-
}
|
|
14
|
-
function logWebSelfId(...args) {
|
|
15
|
-
return logWebSelfId$1(...args);
|
|
16
|
-
}
|
|
17
|
-
function logoutWeb(...args) {
|
|
18
|
-
return logoutWeb$1(...args);
|
|
19
|
-
}
|
|
20
|
-
function readWebAuthSnapshot(...args) {
|
|
21
|
-
return readWebAuthSnapshot$1(...args);
|
|
22
|
-
}
|
|
23
|
-
function readWebAuthState(...args) {
|
|
24
|
-
return readWebAuthState$1(...args);
|
|
25
|
-
}
|
|
26
|
-
function readWebAuthExistsBestEffort(...args) {
|
|
27
|
-
return readWebAuthExistsBestEffort$1(...args);
|
|
28
|
-
}
|
|
29
|
-
function readWebAuthExistsForDecision(...args) {
|
|
30
|
-
return readWebAuthExistsForDecision$1(...args);
|
|
31
|
-
}
|
|
32
|
-
function readWebAuthSnapshotBestEffort(...args) {
|
|
33
|
-
return readWebAuthSnapshotBestEffort$1(...args);
|
|
34
|
-
}
|
|
35
|
-
function readWebSelfId(...args) {
|
|
36
|
-
return readWebSelfId$1(...args);
|
|
37
|
-
}
|
|
38
|
-
function webAuthExists(...args) {
|
|
39
|
-
return webAuthExists$1(...args);
|
|
40
|
-
}
|
|
41
|
-
function loginWeb(...args) {
|
|
42
|
-
return loginWeb$1(...args);
|
|
43
|
-
}
|
|
44
|
-
async function startWebLoginWithQr(...args) {
|
|
45
|
-
return await startWebLoginWithQr$1(...args);
|
|
46
|
-
}
|
|
47
|
-
async function waitForWebLogin(...args) {
|
|
48
|
-
return await waitForWebLogin$1(...args);
|
|
49
|
-
}
|
|
50
|
-
const whatsappSetupWizard = { ...whatsappSetupWizard$1 };
|
|
51
|
-
function monitorWebChannel(...args) {
|
|
52
|
-
return monitorWebChannel$1(...args);
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { getActiveWebListener, getWebAuthAgeMs, logWebSelfId, loginWeb, logoutWeb, monitorWebChannel, readWebAuthExistsBestEffort, readWebAuthExistsForDecision, readWebAuthSnapshot, readWebAuthSnapshotBestEffort, readWebAuthState, readWebSelfId, startWebLoginWithQr, waitForWebLogin, webAuthExists, whatsappSetupWizard };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { a as resolveWhatsAppGroupRequireMention, i as whatsappSetupContract, l as readWhatsAppAccountLinkState, n as whatsappSetupWizardProxy, o as resolveWhatsAppGroupToolPolicy, t as createWhatsAppPluginBase } from "./shared-CLKLJLgY.js";
|
|
2
|
-
//#region extensions/whatsapp/src/channel.setup.ts
|
|
3
|
-
const whatsappSetupPlugin = { ...createWhatsAppPluginBase({
|
|
4
|
-
groups: {
|
|
5
|
-
resolveRequireMention: resolveWhatsAppGroupRequireMention,
|
|
6
|
-
resolveToolPolicy: resolveWhatsAppGroupToolPolicy
|
|
7
|
-
},
|
|
8
|
-
setupWizard: whatsappSetupWizardProxy,
|
|
9
|
-
setupContract: whatsappSetupContract,
|
|
10
|
-
isConfigured: (account) => Boolean(account.authDir),
|
|
11
|
-
isLinked: async (account) => await readWhatsAppAccountLinkState(account.authDir)
|
|
12
|
-
}) };
|
|
13
|
-
//#endregion
|
|
14
|
-
export { whatsappSetupPlugin as t };
|
|
File without changes
|
/package/dist/{audio-preflight.runtime-C_glQhZY.js → .setup/audio-preflight.runtime-C_glQhZY.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{group-session-contract-DDnZSsJ1.js → .setup/group-session-contract-DDnZSsJ1.mjs}
RENAMED
|
File without changes
|
/package/dist/{reply-resolver.runtime-Ded8D58Y.js → .setup/reply-resolver.runtime-Ded8D58Y.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|