@openclaw/matrix 2026.8.1-beta.2 → 2026.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-config-BZWN9tGS.js → account-config-CRsKoMqJ.js} +1 -1
- package/dist/{account-selection-CWuhuFn1.js → account-selection-C8nnBTxi.js} +63 -27
- package/dist/{accounts-BCzyubQt.js → accounts-fC57n-Jo.js} +3 -4
- package/dist/api.js +7 -7
- package/dist/{approval-handler.runtime-CJXCUdRg.js → approval-handler.runtime-BBjFZw1t.js} +9 -6
- package/dist/{approval-ids-7rf7etWE.js → approval-ids-DTIdXV-m.js} +1 -1
- package/dist/{approval-reaction-auth-wBwbEDpZ.js → approval-reaction-auth-BDONXxnF.js} +2 -2
- package/dist/{channel-VSrHgTON.js → channel-BkEcVUs_.js} +249 -24
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-pOOL0uT_.js → channel.runtime-CTLSBFsP.js} +26 -16
- package/dist/{channel.setup-PpxRP9Du.js → channel.setup-CSacbORr.js} +11 -12
- package/dist/{cli-CkTfKC_c.js → cli-DRVtgrq5.js} +15 -14
- package/dist/{cli-metadata-B1d1aGM5.js → cli-metadata-Ddx_y4Os.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-sJesKQmp.js → client-CZ_JvrO0.js} +2 -2
- package/dist/{client-bootstrap-BFwT_2VT.js → client-bootstrap-D8irSL2i.js} +1 -1
- package/dist/{client-CeGw0G5S.js → client-kSi51NKp.js} +86 -62
- package/dist/{config-update-Bor_Pjsv.js → config-update-DC0fWBxc.js} +2 -3
- package/dist/contract-api.js +2 -2
- package/dist/{crypto-runtime-Bnz3zEcS.js → crypto-runtime-C4WDYxlP.js} +1 -1
- package/dist/{directory-live-Bvg2wAnR.js → directory-live-DKr0w35b.js} +3 -3
- package/dist/doctor-contract-api.js +9 -3
- package/dist/{draft-stream-BRi7PRRS.js → draft-stream-0CEpNrBk.js} +1 -1
- package/dist/{encryption-guidance-DmLY8NiO.js → encryption-guidance-D4ZdAqzM.js} +1 -1
- package/dist/event-helpers-XRfAbOIh.js +46 -0
- package/dist/helper-api.js +1 -1
- package/dist/{http-client-CycYxU9-.js → http-client-D8o8b9u6.js} +3 -47
- package/dist/{idb-persistence-BM0P27Zg.js → idb-persistence-DfgW720p.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{messages-BW0s-6Y9.js → messages-DaGRt-tu.js} +183 -27
- package/dist/{monitor-Ddfc-vjX.js → monitor-CLPbPcR9.js} +225 -173
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-Bxpr1FFy.js +2 -0
- package/dist/{profile-update-BkgWYDIp.js → profile-update-zXVCMg7y.js} +2 -2
- package/dist/{reaction-events-nfUbFLdV.js → reaction-events-CjVUiqcY.js} +5 -5
- package/dist/{resolve-targets-BJAPY4Vb.js → resolve-targets-qG6gceps.js} +2 -2
- package/dist/{resolver.runtime-LWJELYq5.js → resolver.runtime-zX3TR3TN.js} +1 -1
- package/dist/{room-info-BXQA7y10.js → room-info-yheP1mod.js} +55 -1
- package/dist/runtime-api.js +2 -2
- package/dist/{sdk-DjaQFCHc.js → sdk-TZYyo0XQ.js} +74 -29
- package/dist/{send-ZDLU4JTk.js → send-BL_iH5Ox.js} +55 -35
- package/dist/session-binding-contract-api.js +2 -3
- package/dist/{setup-bootstrap-BaXkhgJg.js → setup-bootstrap-D8M7FmcO.js} +3 -3
- package/dist/{setup-core-DQn6b5vi.js → setup-core-r6L0nno-.js} +5 -5
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-DlhJdrNI.js → setup-surface-g174ElFO.js} +14 -14
- package/dist/subagent-hooks-CMoZaARG.js +48 -0
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/{target-ids-B-5aQxwn.js → target-ids-Nwx7cMVE.js} +11 -1
- package/dist/{thread-binding-api-DRbBZlhS.js → thread-binding-api-CzkeLZCU.js} +1 -1
- package/dist/thread-binding-api.js +1 -1
- package/dist/{thread-bindings-CcHZP3w2.js → thread-bindings-ERWNousC.js} +13 -9
- package/dist/thread-bindings-runtime.js +1 -1
- package/dist/{thread-bindings-shared-CKnY4LSd.js → thread-bindings-shared-oNPiyMWY.js} +1 -6
- package/dist/{tool-actions.runtime-DmdRL0bN.js → tool-actions.runtime-DcBCSwY4.js} +57 -65
- package/dist/{verification-C7ig-bQE.js → verification-4vsW_WSn.js} +2 -2
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/CHANGELOG.md +29 -3
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/README.md +23 -14
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/RELEASING.md +6 -2
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/download-lib.js +33 -14
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/index.d.ts +14 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-nodejs/package.json +41 -42
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/package.json +1 -1
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm.d.ts +16 -4
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.cjs +25 -9
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js +23 -7
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm +0 -0
- package/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm.d.ts +1 -0
- package/node_modules/markdown-it/README.md +18 -294
- package/node_modules/markdown-it/bin/markdown-it.mjs +2 -2
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +2972 -0
- package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -0
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +14 -0
- package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -0
- package/node_modules/markdown-it/dist/markdown-it.cjs.js +4412 -0
- package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -0
- package/node_modules/markdown-it/dist/markdown-it.d.cts +19 -0
- package/node_modules/markdown-it/dist/markdown-it.d.mts +979 -0
- package/node_modules/markdown-it/dist/{index.cjs.js → markdown-it.mjs} +1437 -1466
- package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -0
- package/node_modules/markdown-it/node_modules/argparse/README.md +46 -41
- package/node_modules/markdown-it/node_modules/argparse/lib/_colorize.js +72 -0
- package/node_modules/markdown-it/node_modules/argparse/lib/argparse.d.ts +292 -0
- package/node_modules/markdown-it/node_modules/argparse/{argparse.js → lib/argparse.js} +1124 -1027
- package/node_modules/markdown-it/node_modules/argparse/lib/difflib.js +190 -0
- package/node_modules/markdown-it/node_modules/argparse/lib/sub.js +4 -4
- package/node_modules/markdown-it/node_modules/argparse/lib/textwrap.js +28 -28
- package/node_modules/markdown-it/node_modules/argparse/package.json +17 -10
- package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.d.ts +8 -0
- package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.js +46 -0
- package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/{lib/esm → dist}/decode.d.ts +28 -45
- package/node_modules/markdown-it/node_modules/entities/dist/decode.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/{lib/esm → dist}/decode.js +189 -141
- package/node_modules/markdown-it/node_modules/entities/dist/decode.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/{lib/esm → dist}/encode.d.ts +4 -2
- package/node_modules/markdown-it/node_modules/entities/dist/encode.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/encode.js +90 -0
- package/node_modules/markdown-it/node_modules/entities/dist/encode.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/{lib → dist}/escape.d.ts +15 -10
- package/node_modules/markdown-it/node_modules/entities/dist/escape.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/escape.js +132 -0
- package/node_modules/markdown-it/node_modules/entities/dist/escape.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.js +5 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.d.ts +5 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.js +12 -0
- package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/{lib/esm → dist}/index.d.ts +14 -21
- package/node_modules/markdown-it/node_modules/entities/dist/index.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/index.js +91 -0
- package/node_modules/markdown-it/node_modules/entities/dist/index.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.d.ts +17 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.d.ts +7 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.js +17 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.d.ts +33 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.d.ts.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.js +93 -0
- package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.js.map +1 -0
- package/node_modules/markdown-it/node_modules/entities/package.json +63 -70
- package/node_modules/markdown-it/node_modules/entities/readme.md +54 -45
- package/node_modules/markdown-it/node_modules/entities/src/decode-codepoint.ts +50 -0
- package/node_modules/markdown-it/node_modules/entities/src/decode.ts +671 -0
- package/node_modules/markdown-it/node_modules/entities/src/encode.ts +95 -0
- package/node_modules/markdown-it/node_modules/entities/src/escape.ts +160 -0
- package/node_modules/markdown-it/node_modules/entities/src/generated/decode-data-html.ts +7 -0
- package/node_modules/markdown-it/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
- package/node_modules/markdown-it/node_modules/entities/src/generated/encode-html.ts +18 -0
- package/node_modules/markdown-it/node_modules/entities/src/index.ts +162 -0
- package/node_modules/markdown-it/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/node_modules/markdown-it/node_modules/entities/src/internal/decode-shared.ts +18 -0
- package/node_modules/markdown-it/node_modules/entities/src/internal/encode-shared.ts +123 -0
- package/node_modules/markdown-it/node_modules/linkify-it/README.md +49 -86
- package/node_modules/markdown-it/node_modules/linkify-it/build/index.cjs.js +636 -825
- package/node_modules/markdown-it/node_modules/linkify-it/build/index.cjs.js.map +1 -0
- package/node_modules/markdown-it/node_modules/linkify-it/build/index.d.ts +236 -0
- package/node_modules/markdown-it/node_modules/linkify-it/build/index.mjs +538 -0
- package/node_modules/markdown-it/node_modules/linkify-it/build/index.mjs.map +1 -0
- package/node_modules/markdown-it/node_modules/linkify-it/package.json +23 -20
- package/node_modules/markdown-it/node_modules/uc.micro/README.md +18 -1
- package/node_modules/markdown-it/node_modules/uc.micro/build/index.cjs.js +13 -18
- package/node_modules/markdown-it/node_modules/uc.micro/build/index.d.ts +6 -0
- package/node_modules/markdown-it/node_modules/uc.micro/build/index.mjs +8 -0
- package/node_modules/markdown-it/node_modules/uc.micro/package.json +12 -17
- package/node_modules/markdown-it/package.json +48 -30
- package/node_modules/matrix-js-sdk/CHANGELOG.md +33 -0
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.js +0 -5
- package/node_modules/matrix-js-sdk/lib/@types/PushRules.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/auth.d.ts +0 -5
- package/node_modules/matrix-js-sdk/lib/@types/auth.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/auth.js +0 -11
- package/node_modules/matrix-js-sdk/lib/@types/auth.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/beacon.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/beacon.js +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/beacon.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/crypto.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/crypto.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/event.d.ts +3 -1
- package/node_modules/matrix-js-sdk/lib/@types/event.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/event.js +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/event.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/extensible_events.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/media.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/partials.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/partials.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/requests.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/requests.js +0 -5
- package/node_modules/matrix-js-sdk/lib/@types/requests.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/search.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/search.js +0 -3
- package/node_modules/matrix-js-sdk/lib/@types/search.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/spaces.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/spaces.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/synapse.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/synapse.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/threepids.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/type-guards.d.ts +43 -0
- package/node_modules/matrix-js-sdk/lib/@types/type-guards.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/@types/type-guards.js +104 -0
- package/node_modules/matrix-js-sdk/lib/@types/type-guards.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/NamespacedValue.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/ReEmitter.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.js +0 -2
- package/node_modules/matrix-js-sdk/lib/ToDeviceMessageQueue.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/autodiscovery.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/autodiscovery.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/browser-index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/browser-index.js +3 -1
- package/node_modules/matrix-js-sdk/lib/browser-index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/capabilityPoller.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/client.d.ts +21 -20
- package/node_modules/matrix-js-sdk/lib/client.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/client.js +38 -94
- package/node_modules/matrix-js-sdk/lib/client.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.js +1 -4
- package/node_modules/matrix-js-sdk/lib/common-crypto/key-passphrase.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/content-helpers.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/base.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/base.js +0 -9
- package/node_modules/matrix-js-sdk/lib/crypto/store/base.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.js +2 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store-backend.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.js +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/indexeddb-crypto-store.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.js +0 -2
- package/node_modules/matrix-js-sdk/lib/crypto/store/localStorage-crypto-store.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto/store/memory-crypto-store.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.d.ts +13 -6
- package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/keybackup.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/verification.d.ts +23 -5
- package/node_modules/matrix-js-sdk/lib/crypto-api/verification.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/crypto-api/verification.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts +16 -0
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/embedded.js +19 -11
- package/node_modules/matrix-js-sdk/lib/embedded.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/errors.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/ExtensibleEvent.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/InvalidEventError.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/MessageEvent.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollEndEvent.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollResponseEvent.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/extensible_events_v1/PollStartEvent.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/feature.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/feature.js +0 -3
- package/node_modules/matrix-js-sdk/lib/feature.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/filter-component.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/filter-component.js +2 -5
- package/node_modules/matrix-js-sdk/lib/filter-component.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/filter.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/filter.js +0 -4
- package/node_modules/matrix-js-sdk/lib/filter.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/errors.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/index.d.ts +1 -7
- package/node_modules/matrix-js-sdk/lib/http-api/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/index.js +0 -15
- package/node_modules/matrix-js-sdk/lib/http-api/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts +0 -9
- package/node_modules/matrix-js-sdk/lib/http-api/interface.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/interface.js +0 -2
- package/node_modules/matrix-js-sdk/lib/http-api/interface.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.js +0 -3
- package/node_modules/matrix-js-sdk/lib/http-api/refresh.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/interactive-auth.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/interactive-auth.js +5 -6
- package/node_modules/matrix-js-sdk/lib/interactive-auth.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/logger.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/logger.js +0 -2
- package/node_modules/matrix-js-sdk/lib/logger.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrix.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/matrix.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrix.js +1 -1
- package/node_modules/matrix-js-sdk/lib/matrix.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts +3 -3
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js +5 -5
- package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +18 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +56 -4
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.d.ts +14 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js +20 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSessionManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +9 -6
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManagerActionScheduler.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/common.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts +6 -3
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js +7 -4
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts +19 -6
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js +11 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts +0 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js +0 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/utils.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/MSC3089Branch.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/MSC3089TreeSpace.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/beacon.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/device.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event-context.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js +3 -3
- package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event-timeline.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/event.js +0 -6
- package/node_modules/matrix-js-sdk/lib/models/event.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/invites-ignorer.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/poll.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/poll.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/read-receipt.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/read-receipt.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/related-relations.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/models/relations-container.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/relations-container.js +39 -17
- package/node_modules/matrix-js-sdk/lib/models/relations-container.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/relations.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/relations.js +1 -1
- package/node_modules/matrix-js-sdk/lib/models/relations.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-member.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-retention.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-state.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-state.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-summary.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room.js +9 -9
- package/node_modules/matrix-js-sdk/lib/models/room.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/search-result.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/thread.d.ts +5 -2
- package/node_modules/matrix-js-sdk/lib/models/thread.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/thread.js +36 -3
- package/node_modules/matrix-js-sdk/lib/models/thread.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/typed-event-emitter.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/user.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts +133 -0
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.js +193 -0
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/discover.d.ts +58 -0
- package/node_modules/matrix-js-sdk/lib/oauth/discover.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/discover.js +35 -0
- package/node_modules/matrix-js-sdk/lib/oauth/discover.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/error.d.ts +19 -0
- package/node_modules/matrix-js-sdk/lib/oauth/error.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/error.js +36 -0
- package/node_modules/matrix-js-sdk/lib/oauth/error.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts +87 -0
- package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/index.js +236 -0
- package/node_modules/matrix-js-sdk/lib/oauth/index.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/register.d.ts +136 -0
- package/node_modules/matrix-js-sdk/lib/oauth/register.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/register.js +73 -0
- package/node_modules/matrix-js-sdk/lib/oauth/register.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts +21 -0
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js +68 -0
- package/node_modules/matrix-js-sdk/lib/oauth/tokenRefresher.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/pollingCachedValue.d.ts +77 -0
- package/node_modules/matrix-js-sdk/lib/pollingCachedValue.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/pollingCachedValue.js +160 -0
- package/node_modules/matrix-js-sdk/lib/pollingCachedValue.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/pushprocessor.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/pushprocessor.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/realtime-callbacks.js +0 -1
- package/node_modules/matrix-js-sdk/lib/realtime-callbacks.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/receipt-accumulator.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts +7 -7
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js +13 -14
- package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousError.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/channels/MSC4108SecureChannel.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.js +0 -1
- package/node_modules/matrix-js-sdk/lib/rendezvous/transports/MSC4108RendezvousSession.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/retentionPolicy.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/room-hierarchy.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.d.ts +9 -0
- package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.js +38 -0
- package/node_modules/matrix-js-sdk/lib/rtcTransportsCachedValue.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/CrossSigningIdentity.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.js +11 -13
- package/node_modules/matrix-js-sdk/lib/rust-crypto/DehydratedDeviceManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/KeyClaimManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.js +0 -2
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestProcessor.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/OutgoingRequestsManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/PerSessionKeyBackupDownloader.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/RoomEncryptor.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts +23 -4
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js +62 -21
- package/node_modules/matrix-js-sdk/lib/rust-crypto/backup.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.js +1 -0
- package/node_modules/matrix-js-sdk/lib/rust-crypto/device-converter.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts +17 -4
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js +21 -4
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.js +0 -2
- package/node_modules/matrix-js-sdk/lib/rust-crypto/libolm_migration.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +0 -3
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/verification.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/scheduler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/scheduler.js +0 -3
- package/node_modules/matrix-js-sdk/lib/scheduler.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/secret-storage.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/serverCapabilities.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js +6 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sliding-sync.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sliding-sync.js +3 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.js +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-local-backend.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-remote-backend.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.js +1 -0
- package/node_modules/matrix-js-sdk/lib/store/indexeddb-store-worker.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/indexeddb.js +0 -2
- package/node_modules/matrix-js-sdk/lib/store/indexeddb.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/memory.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/memory.js +7 -9
- package/node_modules/matrix-js-sdk/lib/store/memory.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/store/stub.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sync-accumulator.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sync-accumulator.js +1 -5
- package/node_modules/matrix-js-sdk/lib/sync-accumulator.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sync.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sync.js +1 -1
- package/node_modules/matrix-js-sdk/lib/sync.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/testing.d.ts +2 -10
- package/node_modules/matrix-js-sdk/lib/testing.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/testing.js +4 -19
- package/node_modules/matrix-js-sdk/lib/testing.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/timeline-window.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/timeline-window.js +0 -1
- package/node_modules/matrix-js-sdk/lib/timeline-window.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.js +0 -1
- package/node_modules/matrix-js-sdk/lib/utils/internal/deriveKeys.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/utils.d.ts +1 -1
- package/node_modules/matrix-js-sdk/lib/utils.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/utils.js +1 -0
- package/node_modules/matrix-js-sdk/lib/utils.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/call.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/call.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventHandler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.js +0 -5
- package/node_modules/matrix-js-sdk/lib/webrtc/callEventTypes.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/callFeed.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCall.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/groupCallEventHandler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/mediaHandler.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callFeedStatsReporter.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/callStatsReportGatherer.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsBuilder.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/connectionStatsReportBuilder.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/groupCallStats.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaSsrcHandler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackHandler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStats.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/media/mediaTrackStatsHandler.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/statsReportEmitter.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/summaryStatsReportGatherer.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/trackStatsBuilder.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/transportStatsBuilder.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/webrtc/stats/valueFormatter.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.d.ts +8 -0
- package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.js +34 -0
- package/node_modules/matrix-js-sdk/lib/wellKnownCachedValue.js.map +1 -0
- package/node_modules/matrix-js-sdk/node_modules/content-type/README.md +2 -0
- package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.d.ts +20 -0
- package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js +20 -14
- package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/content-type/package.json +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/dist/api.js +227 -131
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/dist/api.min.js +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/ClientWidgetApi.d.ts +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/ClientWidgetApi.js +142 -97
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/ClientWidgetApi.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/WidgetApi.d.ts +15 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/WidgetApi.js +61 -19
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/WidgetApi.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/driver/WidgetDriver.d.ts +15 -11
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/driver/WidgetDriver.js +19 -13
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/driver/WidgetDriver.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/index.d.ts +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts +2 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js +2 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts +5 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/RtcTransportsAction.d.ts +24 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/RtcTransportsAction.js +6 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/RtcTransportsAction.js.map +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.d.ts +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/SendEventAction.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.d.ts +5 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js.map +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/package.json +1 -1
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/ClientWidgetApi.ts +37 -14
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/WidgetApi.ts +69 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/driver/WidgetDriver.ts +19 -12
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/index.ts +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/ApiVersion.ts +2 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/Capabilities.ts +4 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/RtcTransportsAction.ts +44 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/SendEventAction.ts +1 -0
- package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/src/interfaces/WidgetApiAction.ts +5 -0
- package/node_modules/matrix-js-sdk/package.json +10 -12
- package/node_modules/matrix-js-sdk/src/@types/PushRules.ts +0 -5
- package/node_modules/matrix-js-sdk/src/@types/auth.ts +0 -12
- package/node_modules/matrix-js-sdk/src/@types/beacon.ts +1 -1
- package/node_modules/matrix-js-sdk/src/@types/crypto.ts +2 -6
- package/node_modules/matrix-js-sdk/src/@types/event.ts +3 -0
- package/node_modules/matrix-js-sdk/src/@types/extensible_events.ts +5 -6
- package/node_modules/matrix-js-sdk/src/@types/matrix-sdk-crypto-wasm.d.ts +0 -1
- package/node_modules/matrix-js-sdk/src/@types/media.ts +1 -1
- package/node_modules/matrix-js-sdk/src/@types/partials.ts +0 -2
- package/node_modules/matrix-js-sdk/src/@types/requests.ts +0 -5
- package/node_modules/matrix-js-sdk/src/@types/search.ts +0 -2
- package/node_modules/matrix-js-sdk/src/@types/spaces.ts +0 -2
- package/node_modules/matrix-js-sdk/src/@types/synapse.ts +0 -2
- package/node_modules/matrix-js-sdk/src/@types/threepids.ts +2 -2
- package/node_modules/matrix-js-sdk/src/@types/type-guards.ts +126 -0
- package/node_modules/matrix-js-sdk/src/ToDeviceMessageQueue.ts +0 -2
- package/node_modules/matrix-js-sdk/src/autodiscovery.ts +2 -2
- package/node_modules/matrix-js-sdk/src/browser-index.ts +4 -4
- package/node_modules/matrix-js-sdk/src/client.ts +79 -130
- package/node_modules/matrix-js-sdk/src/common-crypto/key-passphrase.ts +1 -2
- package/node_modules/matrix-js-sdk/src/crypto/store/base.ts +1 -8
- package/node_modules/matrix-js-sdk/src/crypto/store/indexeddb-crypto-store-backend.ts +3 -2
- package/node_modules/matrix-js-sdk/src/crypto/store/indexeddb-crypto-store.ts +1 -3
- package/node_modules/matrix-js-sdk/src/crypto/store/localStorage-crypto-store.ts +0 -1
- package/node_modules/matrix-js-sdk/src/crypto/store/memory-crypto-store.ts +1 -1
- package/node_modules/matrix-js-sdk/src/crypto-api/index.ts +1 -1
- package/node_modules/matrix-js-sdk/src/crypto-api/keybackup.ts +14 -7
- package/node_modules/matrix-js-sdk/src/crypto-api/verification.ts +23 -5
- package/node_modules/matrix-js-sdk/src/embedded.ts +34 -16
- package/node_modules/matrix-js-sdk/src/feature.ts +0 -3
- package/node_modules/matrix-js-sdk/src/filter-component.ts +1 -2
- package/node_modules/matrix-js-sdk/src/filter.ts +0 -3
- package/node_modules/matrix-js-sdk/src/http-api/fetch.ts +1 -1
- package/node_modules/matrix-js-sdk/src/http-api/index.ts +1 -23
- package/node_modules/matrix-js-sdk/src/http-api/interface.ts +0 -12
- package/node_modules/matrix-js-sdk/src/http-api/refresh.ts +0 -1
- package/node_modules/matrix-js-sdk/src/interactive-auth.ts +4 -4
- package/node_modules/matrix-js-sdk/src/logger.ts +0 -2
- package/node_modules/matrix-js-sdk/src/matrix.ts +1 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/CallMembership.ts +5 -5
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +73 -6
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSessionManager.ts +21 -2
- package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +9 -6
- package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManagerActionScheduler.ts +1 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/RTCEncryptionManager.ts +2 -2
- package/node_modules/matrix-js-sdk/src/matrixrtc/ToDeviceKeyTransport.ts +3 -3
- package/node_modules/matrix-js-sdk/src/matrixrtc/index.ts +1 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/rtc.ts +19 -8
- package/node_modules/matrix-js-sdk/src/matrixrtc/types.ts +24 -7
- package/node_modules/matrix-js-sdk/src/matrixrtc/utils.ts +0 -2
- package/node_modules/matrix-js-sdk/src/models/event-timeline-set.ts +3 -3
- package/node_modules/matrix-js-sdk/src/models/event.ts +7 -13
- package/node_modules/matrix-js-sdk/src/models/invites-ignorer.ts +1 -1
- package/node_modules/matrix-js-sdk/src/models/poll.ts +1 -1
- package/node_modules/matrix-js-sdk/src/models/read-receipt.ts +1 -1
- package/node_modules/matrix-js-sdk/src/models/relations-container.ts +55 -19
- package/node_modules/matrix-js-sdk/src/models/relations.ts +1 -1
- package/node_modules/matrix-js-sdk/src/models/room-state.ts +0 -3
- package/node_modules/matrix-js-sdk/src/models/room.ts +15 -15
- package/node_modules/matrix-js-sdk/src/models/thread.ts +51 -6
- package/node_modules/matrix-js-sdk/src/oauth/authorize.ts +274 -0
- package/node_modules/matrix-js-sdk/src/oauth/discover.ts +102 -0
- package/node_modules/matrix-js-sdk/src/{oidc → oauth}/error.ts +8 -7
- package/node_modules/matrix-js-sdk/src/oauth/index.ts +297 -0
- package/node_modules/matrix-js-sdk/src/oauth/register.ts +166 -0
- package/node_modules/matrix-js-sdk/src/oauth/tokenRefresher.ts +77 -0
- package/node_modules/matrix-js-sdk/src/pollingCachedValue.ts +184 -0
- package/node_modules/matrix-js-sdk/src/pushprocessor.ts +3 -3
- package/node_modules/matrix-js-sdk/src/realtime-callbacks.ts +0 -1
- package/node_modules/matrix-js-sdk/src/receipt-accumulator.ts +1 -2
- package/node_modules/matrix-js-sdk/src/rendezvous/MSC4108SignInWithQR.ts +14 -16
- package/node_modules/matrix-js-sdk/src/rendezvous/index.ts +2 -2
- package/node_modules/matrix-js-sdk/src/rendezvous/transports/MSC4108RendezvousSession.ts +0 -1
- package/node_modules/matrix-js-sdk/src/rtcTransportsCachedValue.ts +40 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/DehydratedDeviceManager.ts +14 -13
- package/node_modules/matrix-js-sdk/src/rust-crypto/OutgoingRequestProcessor.ts +0 -1
- package/node_modules/matrix-js-sdk/src/rust-crypto/PerSessionKeyBackupDownloader.ts +1 -1
- package/node_modules/matrix-js-sdk/src/rust-crypto/backup.ts +67 -33
- package/node_modules/matrix-js-sdk/src/rust-crypto/device-converter.ts +1 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/index.ts +32 -23
- package/node_modules/matrix-js-sdk/src/rust-crypto/libolm_migration.ts +1 -3
- package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +3 -6
- package/node_modules/matrix-js-sdk/src/scheduler.ts +0 -3
- package/node_modules/matrix-js-sdk/src/sliding-sync-sdk.ts +4 -1
- package/node_modules/matrix-js-sdk/src/sliding-sync.ts +3 -1
- package/node_modules/matrix-js-sdk/src/store/indexeddb-local-backend.ts +1 -1
- package/node_modules/matrix-js-sdk/src/store/indexeddb-store-worker.ts +1 -0
- package/node_modules/matrix-js-sdk/src/store/indexeddb.ts +0 -2
- package/node_modules/matrix-js-sdk/src/store/memory.ts +7 -9
- package/node_modules/matrix-js-sdk/src/sync-accumulator.ts +1 -3
- package/node_modules/matrix-js-sdk/src/sync.ts +5 -6
- package/node_modules/matrix-js-sdk/src/testing.ts +3 -22
- package/node_modules/matrix-js-sdk/src/timeline-window.ts +0 -1
- package/node_modules/matrix-js-sdk/src/utils/internal/deriveKeys.ts +0 -1
- package/node_modules/matrix-js-sdk/src/utils.ts +3 -2
- package/node_modules/matrix-js-sdk/src/webrtc/call.ts +6 -6
- package/node_modules/matrix-js-sdk/src/webrtc/callEventTypes.ts +0 -5
- package/node_modules/matrix-js-sdk/src/webrtc/groupCall.ts +7 -7
- package/node_modules/matrix-js-sdk/src/webrtc/mediaHandler.ts +1 -1
- package/node_modules/matrix-js-sdk/src/webrtc/stats/callStatsReportGatherer.ts +2 -2
- package/node_modules/matrix-js-sdk/src/webrtc/stats/transportStatsBuilder.ts +1 -1
- package/node_modules/matrix-js-sdk/src/wellKnownCachedValue.ts +34 -0
- package/node_modules/music-metadata/LICENSE.txt +9 -9
- package/node_modules/music-metadata/README.md +878 -878
- package/node_modules/music-metadata/lib/ParseError.d.ts +1 -1
- package/node_modules/music-metadata/lib/ParseError.js +1 -1
- package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +1 -4
- package/node_modules/music-metadata/lib/asf/AsfObject.js +66 -30
- package/node_modules/music-metadata/lib/asf/AsfParser.d.ts +5 -1
- package/node_modules/music-metadata/lib/asf/AsfParser.js +94 -25
- package/node_modules/music-metadata/lib/dsf/DsfChunk.js +2 -2
- package/node_modules/music-metadata/lib/dsf/DsfParser.js +38 -13
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +2 -1
- package/node_modules/music-metadata/lib/mp4/MP4Parser.js +34 -7
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.d.ts +7 -0
- package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +13 -0
- package/node_modules/music-metadata/lib/riff/RiffChunk.js +1 -1
- package/node_modules/music-metadata/node_modules/content-type/README.md +2 -0
- package/node_modules/music-metadata/node_modules/content-type/dist/index.d.ts +20 -0
- package/node_modules/music-metadata/node_modules/content-type/dist/index.js +20 -14
- package/node_modules/music-metadata/node_modules/content-type/dist/index.js.map +1 -1
- package/node_modules/music-metadata/node_modules/content-type/package.json +1 -1
- package/node_modules/music-metadata/node_modules/file-type/package.json +1 -1
- package/node_modules/music-metadata/node_modules/file-type/readme.md +3 -0
- package/node_modules/music-metadata/node_modules/file-type/source/detectors/zip.js +6 -1
- package/node_modules/music-metadata/node_modules/file-type/source/index.d.ts +3 -0
- package/node_modules/music-metadata/node_modules/file-type/source/index.js +25 -13
- package/node_modules/music-metadata/package.json +156 -156
- package/node_modules/typebox/build/format/date.d.mts +1 -1
- package/node_modules/typebox/build/format/date.mjs +1 -1
- package/node_modules/typebox/build/format/date_time.d.mts +2 -2
- package/node_modules/typebox/build/format/date_time.mjs +3 -3
- package/node_modules/typebox/build/format/email.d.mts +1 -1
- package/node_modules/typebox/build/format/email.mjs +2 -2
- package/node_modules/typebox/build/format/hostname.mjs +2 -10
- package/node_modules/typebox/build/format/idn_email.d.mts +1 -1
- package/node_modules/typebox/build/format/idn_email.mjs +3 -3
- package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -0
- package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
- package/node_modules/typebox/build/format/idna/format/bidi.d.mts +3 -0
- package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
- package/node_modules/typebox/build/format/idna/format/puny.d.mts +3 -0
- package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
- package/node_modules/typebox/build/format/idna/hostname.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
- package/node_modules/typebox/build/format/idna/idn-hostname.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +23 -0
- package/node_modules/typebox/build/format/idna/index.d.mts +2 -0
- package/node_modules/typebox/build/format/idna/index.mjs +2 -0
- package/node_modules/typebox/build/format/idna/label/ascii.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
- package/node_modules/typebox/build/format/idna/label/puny.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
- package/node_modules/typebox/build/format/idna/label/unicode.d.mts +1 -0
- package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
- package/node_modules/typebox/build/format/idna/pattern/pattern.d.mts +30 -0
- package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
- package/node_modules/typebox/build/format/ipv4.d.mts +0 -1
- package/node_modules/typebox/build/format/ipv4.mjs +2 -32
- package/node_modules/typebox/build/format/ipv6.mjs +2 -61
- package/node_modules/typebox/build/format/iri.d.mts +2 -2
- package/node_modules/typebox/build/format/iri.mjs +26 -8
- package/node_modules/typebox/build/format/iri_reference.d.mts +2 -2
- package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
- package/node_modules/typebox/build/format/regex.d.mts +1 -2
- package/node_modules/typebox/build/format/regex.mjs +2 -6
- package/node_modules/typebox/build/format/time.d.mts +2 -2
- package/node_modules/typebox/build/format/time.mjs +19 -14
- package/node_modules/typebox/build/format/uri.d.mts +1 -1
- package/node_modules/typebox/build/format/uri.mjs +3 -130
- package/node_modules/typebox/build/format/uri_reference.d.mts +1 -1
- package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
- package/node_modules/typebox/build/format/uri_template.d.mts +2 -3
- package/node_modules/typebox/build/format/uri_template.mjs +4 -5
- package/node_modules/typebox/build/format/url.d.mts +3 -3
- package/node_modules/typebox/build/format/url.mjs +4 -5
- package/node_modules/typebox/build/guard/emit.d.mts +3 -1
- package/node_modules/typebox/build/guard/emit.mjs +12 -5
- package/node_modules/typebox/build/guard/guard.d.mts +8 -2
- package/node_modules/typebox/build/guard/guard.mjs +25 -4
- package/node_modules/typebox/build/guard/string.d.mts +2 -2
- package/node_modules/typebox/build/guard/string.mjs +7 -7
- package/node_modules/typebox/build/schema/engine/_context.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -2
- package/node_modules/typebox/build/schema/engine/_regexp.d.mts +2 -0
- package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +12 -13
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +4 -3
- package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
- package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +7 -6
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
- package/node_modules/typebox/build/schema/engine/ref.mjs +1 -7
- package/node_modules/typebox/build/schema/engine/schema.mjs +13 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
- package/node_modules/typebox/build/schema/static/propertyNames.d.mts +5 -0
- package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
- package/node_modules/typebox/build/schema/static/schema.d.mts +3 -0
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -2
- package/node_modules/typebox/build/schema/types/index.mjs +0 -2
- package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
- package/node_modules/typebox/build/system/memory/discard.mjs +6 -5
- package/node_modules/typebox/build/system/settings/settings.d.mts +9 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +6 -1
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +5 -5
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
- package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +6 -10
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +7 -4
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +4 -20
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +4 -4
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
- package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -2
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +1 -1
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +2 -2
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
- package/node_modules/typebox/build/type/script/mapping.d.mts +32 -29
- package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
- package/node_modules/typebox/build/type/script/parser.d.mts +19 -25
- package/node_modules/typebox/build/type/script/parser.mjs +27 -23
- package/node_modules/typebox/build/value/errors/errors.d.mts +2 -2
- package/node_modules/typebox/build/value/errors/errors.mjs +1 -1
- package/node_modules/typebox/package.json +27 -27
- package/node_modules/typebox/readme.md +79 -82
- package/openclaw.plugin.json +23 -1
- package/package.json +10 -10
- package/dist/env-auth-MVS-Vv41.js +0 -64
- package/dist/media-text-JudlYOSc.js +0 -146
- package/dist/probe.runtime-Dr91B_X3.js +0 -2
- package/dist/route-DY6at4qJ.js +0 -161
- package/dist/runtime-api-BGO16Fu8.js +0 -21
- package/dist/subagent-hooks-dkPAF6Et.js +0 -143
- package/dist/timeout-abort-signal-DMrgRFIy.js +0 -2
- package/node_modules/markdown-it/dist/index.cjs.js.map +0 -1
- package/node_modules/markdown-it/dist/markdown-it.js +0 -3975
- package/node_modules/markdown-it/dist/markdown-it.js.map +0 -1
- package/node_modules/markdown-it/dist/markdown-it.min.js +0 -3
- package/node_modules/markdown-it/dist/markdown-it.min.js.map +0 -1
- package/node_modules/markdown-it/index.mjs +0 -1
- package/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -67
- package/node_modules/markdown-it/lib/common/html_re.mjs +0 -25
- package/node_modules/markdown-it/lib/common/utils.mjs +0 -324
- package/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
- package/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -77
- package/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -49
- package/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -66
- package/node_modules/markdown-it/lib/index.mjs +0 -565
- package/node_modules/markdown-it/lib/parser_block.mjs +0 -134
- package/node_modules/markdown-it/lib/parser_core.mjs +0 -62
- package/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
- package/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -88
- package/node_modules/markdown-it/lib/presets/default.mjs +0 -47
- package/node_modules/markdown-it/lib/presets/zero.mjs +0 -70
- package/node_modules/markdown-it/lib/renderer.mjs +0 -322
- package/node_modules/markdown-it/lib/ruler.mjs +0 -340
- package/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -209
- package/node_modules/markdown-it/lib/rules_block/code.mjs +0 -30
- package/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -94
- package/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -51
- package/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -40
- package/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -80
- package/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -85
- package/node_modules/markdown-it/lib/rules_block/list.mjs +0 -331
- package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -48
- package/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -212
- package/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -220
- package/node_modules/markdown-it/lib/rules_block/table.mjs +0 -228
- package/node_modules/markdown-it/lib/rules_core/block.mjs +0 -13
- package/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -11
- package/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -134
- package/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -17
- package/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -101
- package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -209
- package/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -17
- package/node_modules/markdown-it/lib/rules_core/text_join.mjs +0 -43
- package/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -72
- package/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -60
- package/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -124
- package/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -123
- package/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
- package/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -83
- package/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +0 -38
- package/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -50
- package/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -138
- package/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -139
- package/node_modules/markdown-it/lib/rules_inline/linkify.mjs +0 -63
- package/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -42
- package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -154
- package/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -127
- package/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -86
- package/node_modules/markdown-it/lib/token.mjs +0 -191
- package/node_modules/markdown-it/node_modules/argparse/CHANGELOG.md +0 -216
- package/node_modules/markdown-it/node_modules/entities/lib/decode.d.ts +0 -211
- package/node_modules/markdown-it/node_modules/entities/lib/decode.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/decode.js +0 -536
- package/node_modules/markdown-it/node_modules/entities/lib/decode.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
- package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.js +0 -76
- package/node_modules/markdown-it/node_modules/entities/lib/decode_codepoint.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/encode.d.ts +0 -22
- package/node_modules/markdown-it/node_modules/entities/lib/encode.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/encode.js +0 -77
- package/node_modules/markdown-it/node_modules/entities/lib/encode.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/escape.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/escape.js +0 -122
- package/node_modules/markdown-it/node_modules/entities/lib/escape.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/decode.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
- package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
- package/node_modules/markdown-it/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/encode.js +0 -69
- package/node_modules/markdown-it/node_modules/entities/lib/esm/encode.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.d.ts +0 -43
- package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.js +0 -116
- package/node_modules/markdown-it/node_modules/entities/lib/esm/escape.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
- package/node_modules/markdown-it/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/index.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/index.js +0 -99
- package/node_modules/markdown-it/node_modules/entities/lib/esm/index.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/esm/package.json +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.js +0 -9
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
- package/node_modules/markdown-it/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
- package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.js +0 -12
- package/node_modules/markdown-it/node_modules/entities/lib/generated/encode-html.js.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/index.d.ts +0 -96
- package/node_modules/markdown-it/node_modules/entities/lib/index.d.ts.map +0 -1
- package/node_modules/markdown-it/node_modules/entities/lib/index.js +0 -126
- package/node_modules/markdown-it/node_modules/entities/lib/index.js.map +0 -1
- package/node_modules/markdown-it/node_modules/linkify-it/index.mjs +0 -646
- package/node_modules/markdown-it/node_modules/linkify-it/lib/re.mjs +0 -193
- package/node_modules/markdown-it/node_modules/uc.micro/categories/Cc/regex.mjs +0 -1
- package/node_modules/markdown-it/node_modules/uc.micro/categories/Cf/regex.mjs +0 -1
- package/node_modules/markdown-it/node_modules/uc.micro/categories/P/regex.mjs +0 -1
- package/node_modules/markdown-it/node_modules/uc.micro/categories/S/regex.mjs +0 -1
- package/node_modules/markdown-it/node_modules/uc.micro/categories/Z/regex.mjs +0 -1
- package/node_modules/markdown-it/node_modules/uc.micro/index.mjs +0 -8
- package/node_modules/markdown-it/node_modules/uc.micro/properties/Any/regex.mjs +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.d.ts +0 -157
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.d.ts.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.js +0 -365
- package/node_modules/matrix-js-sdk/lib/oidc/authorize.js.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.d.ts +0 -22
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.d.ts.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.js +0 -65
- package/node_modules/matrix-js-sdk/lib/oidc/discovery.js.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/error.d.ts +0 -18
- package/node_modules/matrix-js-sdk/lib/oidc/error.d.ts.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/error.js +0 -35
- package/node_modules/matrix-js-sdk/lib/oidc/error.js.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/index.d.ts +0 -16
- package/node_modules/matrix-js-sdk/lib/oidc/index.d.ts.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/index.js +0 -30
- package/node_modules/matrix-js-sdk/lib/oidc/index.js.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/register.d.ts +0 -70
- package/node_modules/matrix-js-sdk/lib/oidc/register.d.ts.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/register.js +0 -134
- package/node_modules/matrix-js-sdk/lib/oidc/register.js.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.d.ts +0 -91
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.d.ts.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.js +0 -173
- package/node_modules/matrix-js-sdk/lib/oidc/tokenRefresher.js.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/validate.d.ts +0 -78
- package/node_modules/matrix-js-sdk/lib/oidc/validate.d.ts.map +0 -1
- package/node_modules/matrix-js-sdk/lib/oidc/validate.js +0 -181
- package/node_modules/matrix-js-sdk/lib/oidc/validate.js.map +0 -1
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/LICENSE +0 -21
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/README.md +0 -134
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/cjs/index.d.ts +0 -23
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/cjs/index.js +0 -62
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/cjs/package.json +0 -1
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/esm/index.d.ts +0 -23
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/build/esm/index.js +0 -57
- package/node_modules/matrix-js-sdk/node_modules/jwt-decode/package.json +0 -81
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/LICENSE +0 -202
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/README.md +0 -87
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.js +0 -3751
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.js.map +0 -7
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.min.js +0 -2
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/browser/oidc-client-ts.min.js.map +0 -7
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js +0 -3671
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/esm/oidc-client-ts.js.map +0 -7
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/esm/package.json +0 -4
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/types/oidc-client-ts.d.ts +0 -2003
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/types/tsdoc-metadata.json +0 -11
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/umd/oidc-client-ts.js +0 -3719
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/dist/umd/oidc-client-ts.js.map +0 -7
- package/node_modules/matrix-js-sdk/node_modules/oidc-client-ts/package.json +0 -75
- package/node_modules/matrix-js-sdk/src/oidc/authorize.ts +0 -431
- package/node_modules/matrix-js-sdk/src/oidc/discovery.ts +0 -67
- package/node_modules/matrix-js-sdk/src/oidc/index.ts +0 -33
- package/node_modules/matrix-js-sdk/src/oidc/register.ts +0 -168
- package/node_modules/matrix-js-sdk/src/oidc/tokenRefresher.ts +0 -184
- package/node_modules/matrix-js-sdk/src/oidc/validate.ts +0 -265
- package/node_modules/typebox/build/format/_idna.d.mts +0 -2
- package/node_modules/typebox/build/format/_idna.mjs +0 -246
- package/node_modules/typebox/build/format/_puny.d.mts +0 -1
- package/node_modules/typebox/build/format/_puny.mjs +0 -77
- package/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -3
- package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
- package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
- package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/driver/WidgetDriver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDriver.js","names":["_","require","_typeof","obj","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","call","Number","WidgetDriver","value","validateCapabilities","requested","Promise","resolve","Set","sendEvent","eventType","content","stateKey","arguments","roomId","reject","Error","sendStickyEvent","stickyDurationMs","sendDelayedEvent","delay","parentDelayId","sendDelayedStickyEvent","cancelScheduledDelayedEvent","delayId","restartScheduledDelayedEvent","sendScheduledDelayedEvent","sendToDevice","encrypted","contentMap","readRoomAccountData","roomIds","readRoomEvents","msgtype","limit","since","readStateEvents","readStickyEvents","readRoomTimeline","readRoomState","MAX_SAFE_INTEGER","readEventRelations","eventId","relationType","from","to","direction","chunk","askOpenID","observer","update","state","OpenIDRequestState","Blocked","navigate","uri","getTurnServers","searchUserDirectory","searchTerm","limited","results","getMediaConfig","uploadFile","file","downloadFile","contentUri","getKnownRooms","processError","error","exports"],"sources":["../../src/driver/WidgetDriver.ts"],"sourcesContent":["/*\n * Copyright 2020 - 2024 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Capability,\n IOpenIDCredentials,\n OpenIDRequestState,\n SimpleObservable,\n IRoomEvent,\n IRoomAccountData,\n ITurnServer,\n IWidgetApiErrorResponseDataDetails,\n} from \"..\";\n\nexport interface ISendEventDetails {\n roomId: string;\n eventId: string;\n}\n\nexport interface ISendDelayedEventDetails {\n roomId: string;\n delayId: string;\n}\n\nexport interface IOpenIDUpdate {\n state: OpenIDRequestState;\n token?: IOpenIDCredentials;\n}\n\nexport interface IReadEventRelationsResult {\n chunk: IRoomEvent[];\n nextBatch?: string;\n prevBatch?: string;\n}\n\nexport interface ISearchUserDirectoryResult {\n limited: boolean;\n results: Array<{\n userId: string;\n displayName?: string;\n avatarUrl?: string;\n }>;\n}\n\nexport interface IGetMediaConfigResult {\n [key: string]: unknown;\n\n \"m.upload.size\"?: number;\n}\n\n/**\n * Represents the functions and behaviour the widget-api is unable to\n * do, such as prompting the user for information or interacting with\n * the UI. Clients are expected to implement this class and override\n * any functions they need/want to support.\n *\n * This class assumes the client will have a context of a Widget\n * instance already.\n */\nexport abstract class WidgetDriver {\n /**\n * Verifies the widget's requested capabilities, returning the ones\n * it is approved to use. Mutating the requested capabilities will\n * have no effect.\n *\n * This SHOULD result in the user being prompted to approve/deny\n * capabilities.\n *\n * By default this rejects all capabilities (returns an empty set).\n * @param {Set<Capability>} requested The set of requested capabilities.\n * @returns {Promise<Set<Capability>>} Resolves to the allowed capabilities.\n */\n public validateCapabilities(requested: Set<Capability>): Promise<Set<Capability>> {\n return Promise.resolve(new Set());\n }\n\n /**\n * Sends an event into a room. If `roomId` is falsy, the client should send the event\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {string} eventType The event type to be sent.\n * @param {*} content The content for the event.\n * @param {string|null} stateKey The state key if this is a state event, otherwise null.\n * May be an empty string.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendEventDetails>} Resolves when the event has been sent with\n * details of that event.\n * @throws Rejected when the event could not be sent.\n */\n public sendEvent(\n eventType: string,\n content: unknown,\n stateKey: string | null = null,\n roomId: string | null = null,\n ): Promise<ISendEventDetails> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4407\n * Sends a sticky event into a room. If `roomId` is falsy, the client should send the event\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {number} stickyDurationMs The length of time a sticky event may remain sticky, in milliseconds.\n * @param {string} eventType The event type to be sent.\n * @param {*} content The content for the event.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendEventDetails>} Resolves when the event has been sent with\n * details of that event.\n * @throws Rejected when the event could not be sent.\n */\n public sendStickyEvent(\n stickyDurationMs: number,\n eventType: string,\n content: unknown,\n roomId: string | null = null,\n ): Promise<ISendEventDetails> {\n throw new Error(\"Method not implemented.\");\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Sends a delayed event into a room. If `roomId` is falsy, the client should send it\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {number|null} delay How much later to send the event, or null to not send the\n * event automatically. May not be null if {@link parentDelayId} is null.\n * @param {string|null} parentDelayId The ID of the delayed event this one is grouped with,\n * or null if it will be put in a new group. May not be null if {@link delay} is null.\n * @param {string} eventType The event type of the event to be sent.\n * @param {*} content The content for the event to be sent.\n * @param {string|null} stateKey The state key if the event to be sent a state event,\n * otherwise null. May be an empty string.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendDelayedEventDetails>} Resolves when the delayed event has been\n * prepared with details of how to refer to it for updating/sending/canceling it later.\n * @throws Rejected when the delayed event could not be sent.\n */\n public sendDelayedEvent(\n delay: number | null,\n parentDelayId: string | null,\n eventType: string,\n content: unknown,\n stateKey: string | null = null,\n roomId: string | null = null,\n ): Promise<ISendDelayedEventDetails> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4140, MSC4157 and MSC4407\n * Sends a delayed sticky event into a room. If `roomId` is falsy, the client should send the event\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {number} stickyDurationMs The length of time a sticky event may remain sticky, in milliseconds.\n * @param {number|null} delay How much later to send the event, or null to not send the\n * event automatically. May not be null if {@link parentDelayId} is null.\n * @param {string|null} parentDelayId The ID of the delayed event this one is grouped with,\n * or null if it will be put in a new group. May not be null if {@link delay} is null.\n * @param {string} eventType The event type to be sent.\n * @param {*} content The content for the event.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendDelayedEventDetails>} Resolves when the event has been sent with\n * details of that event.\n * @throws Rejected when the event could not be sent.\n */\n public sendDelayedStickyEvent(\n delay: number | null,\n parentDelayId: string | null,\n stickyDurationMs: number,\n eventType: string,\n content: unknown,\n roomId: string | null = null,\n ): Promise<ISendDelayedEventDetails> {\n throw new Error(\"Method not implemented.\");\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Cancel the scheduled delivery of the delayed event matching the provided {@link delayId}.\n * @throws Rejected when there is no matching delayed event,\n * or when the delayed event failed to be cancelled.\n */\n public cancelScheduledDelayedEvent(delayId: string): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Restart the scheduled delivery of the delayed event matching the provided {@link delayId}.\n * @throws Rejected when there is no matching delayed event,\n * or when the delayed event failed to be restarted.\n */\n public restartScheduledDelayedEvent(delayId: string): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Immediately send the delayed event matching the provided {@link delayId},\n * instead of waiting for its scheduled delivery.\n * @throws Rejected when there is no matching delayed event,\n * or when the delayed event failed to be sent.\n */\n public sendScheduledDelayedEvent(delayId: string): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * Sends a to-device event. The widget API will have already verified that the widget\n * is capable of sending the event.\n * @param {string} eventType The event type to be sent.\n * @param {boolean} encrypted Whether to encrypt the message contents.\n * @param {Object} contentMap A map from user ID and device ID to event content.\n * @returns {Promise<void>} Resolves when the event has been sent.\n * @throws Rejected when the event could not be sent.\n */\n public sendToDevice(\n eventType: string,\n encrypted: boolean,\n contentMap: { [userId: string]: { [deviceId: string]: object } },\n ): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * Reads an element of room account data. The widget API will have already verified that the widget is\n * capable of receiving the `eventType` of the requested information. If `roomIds` is supplied, it may\n * contain `Symbols.AnyRoom` to denote that the piece of room account data in each of the client's known\n * rooms should be returned. When `null`, only the room the user is currently looking at should be considered.\n * @param eventType The event type to be read.\n * @param roomIds When null, the user's currently viewed room. Otherwise, the list of room IDs\n * to look within, possibly containing Symbols.AnyRoom to denote all known rooms.\n * @returns {Promise<IRoomAccountData[]>} Resolves to the element of room account data, or an empty array.\n */\n public readRoomAccountData(eventType: string, roomIds: string[] | null = null): Promise<IRoomAccountData[]> {\n return Promise.resolve([]);\n }\n\n /**\n * Reads all events of the given type, and optionally `msgtype` (if applicable/defined),\n * the user has access to. The widget API will have already verified that the widget is\n * capable of receiving the events. Less events than the limit are allowed to be returned,\n * but not more. If `roomIds` is supplied, it may contain `Symbols.AnyRoom` to denote that\n * `limit` in each of the client's known rooms should be returned. When `null`, only the\n * room the user is currently looking at should be considered. If `since` is specified but\n * the event ID isn't present in the number of events fetched by the client due to `limit`,\n * the client will return all the events.\n * @param eventType The event type to be read.\n * @param msgtype The msgtype of the events to be read, if applicable/defined.\n * @param stateKey The state key of the events to be read, if applicable/defined.\n * @param limit The maximum number of events to retrieve per room. Will be zero to denote \"as many\n * as possible\".\n * @param roomIds When null, the user's currently viewed room. Otherwise, the list of room IDs\n * to look within, possibly containing Symbols.AnyRoom to denote all known rooms.\n * @param since When null, retrieves the number of events specified by the \"limit\" parameter.\n * Otherwise, the event ID at which only subsequent events will be returned, as many as specified\n * in \"limit\".\n * @returns {Promise<IRoomEvent[]>} Resolves to the room events, or an empty array.\n * @deprecated Clients are advised to implement {@link WidgetDriver.readRoomTimeline} instead.\n */\n public readRoomEvents(\n eventType: string,\n msgtype: string | undefined,\n limit: number,\n roomIds: string[] | null = null,\n since?: string,\n ): Promise<IRoomEvent[]> {\n return Promise.resolve([]);\n }\n\n /**\n * Reads all events of the given type, and optionally state key (if applicable/defined),\n * the user has access to. The widget API will have already verified that the widget is\n * capable of receiving the events. Less events than the limit are allowed to be returned,\n * but not more. If `roomIds` is supplied, it may contain `Symbols.AnyRoom` to denote that\n * `limit` in each of the client's known rooms should be returned. When `null`, only the\n * room the user is currently looking at should be considered.\n * @param eventType The event type to be read.\n * @param stateKey The state key of the events to be read, if applicable/defined.\n * @param limit The maximum number of events to retrieve. Will be zero to denote \"as many\n * as possible\".\n * @param roomIds When null, the user's currently viewed room. Otherwise, the list of room IDs\n * to look within, possibly containing Symbols.AnyRoom to denote all known rooms.\n * @returns {Promise<IRoomEvent[]>} Resolves to the state events, or an empty array.\n * @deprecated Clients are advised to implement {@link WidgetDriver.readRoomTimeline} instead.\n */\n public readStateEvents(\n eventType: string,\n stateKey: string | undefined,\n limit: number,\n roomIds: string[] | null = null,\n ): Promise<IRoomEvent[]> {\n return Promise.resolve([]);\n }\n\n /**\n * Gets all sticky events of the given type the user has access to.\n * The widget API will have already verified that the widget is capable of receiving the events.\n *\n * This is needed because widgets will get only live messages as they appear in the timeline.\n * However, sticky events act like a state, and the current state is made by events that may have been\n * sent before the widget was loaded.\n * Events are sticky for 1h maximum, so the widget has access to the past hour of sticky events maximum.\n *\n * @experimental Part of MSC4407 - Sticky Events (Widget API)\n * @param roomId - The ID of the room.\n */\n public readStickyEvents(roomId: string): Promise<IRoomEvent[]> {\n throw new Error(\"readStickyEvents is not implemented\");\n }\n\n /**\n * Reads all events of the given type, and optionally `msgtype` (if applicable/defined),\n * the user has access to. The widget API will have already verified that the widget is\n * capable of receiving the events. Less events than the limit are allowed to be returned,\n * but not more.\n * @param roomId The ID of the room to look within.\n * @param eventType The event type to be read.\n * @param msgtype The msgtype of the events to be read, if applicable/defined.\n * @param stateKey The state key of the events to be read, if applicable/defined.\n * @param limit The maximum number of events to retrieve. Will be zero to denote \"as many as\n * possible\".\n * @param since When null, retrieves the number of events specified by the \"limit\" parameter.\n * Otherwise, the event ID at which only subsequent events will be returned, as many as specified\n * in \"limit\".\n * @returns {Promise<IRoomEvent[]>} Resolves to the room events, or an empty array.\n */\n public readRoomTimeline(\n roomId: string,\n eventType: string,\n msgtype: string | undefined,\n stateKey: string | undefined,\n limit: number,\n since: string | undefined,\n ): Promise<IRoomEvent[]> {\n // For backward compatibility we try the deprecated methods, in case\n // they're implemented\n if (stateKey === undefined) return this.readRoomEvents(eventType, msgtype, limit, [roomId], since);\n else return this.readStateEvents(eventType, stateKey, limit, [roomId]);\n }\n\n /**\n * Reads the current values of all matching room state entries.\n * @param roomId The ID of the room.\n * @param eventType The event type of the entries to be read.\n * @param stateKey The state key of the entry to be read. If undefined,\n * all room state entries with a matching event type should be returned.\n * @returns {Promise<IRoomEvent[]>} Resolves to the events representing the\n * current values of the room state entries.\n */\n public readRoomState(roomId: string, eventType: string, stateKey: string | undefined): Promise<IRoomEvent[]> {\n return this.readStateEvents(eventType, stateKey, Number.MAX_SAFE_INTEGER, [roomId]);\n }\n\n /**\n * Reads all events that are related to a given event. The widget API will\n * have already verified that the widget is capable of receiving the event,\n * or will make sure to reject access to events which are returned from this\n * function, but are not capable of receiving. If `relationType` or `eventType`\n * are set, the returned events should already be filtered. Less events than\n * the limit are allowed to be returned, but not more.\n * @param eventId The id of the parent event to be read.\n * @param roomId The room to look within. When undefined, the user's\n * currently viewed room.\n * @param relationType The relationship type of child events to search for.\n * When undefined, all relations are returned.\n * @param eventType The event type of child events to search for. When undefined,\n * all related events are returned.\n * @param from The pagination token to start returning results from, as\n * received from a previous call. If not supplied, results start at the most\n * recent topological event known to the server.\n * @param to The pagination token to stop returning results at. If not\n * supplied, results continue up to limit or until there are no more events.\n * @param limit The maximum number of events to retrieve per room. If not\n * supplied, the server will apply a default limit.\n * @param direction The direction to search for according to MSC3715\n * @returns Resolves to the room relations.\n */\n public readEventRelations(\n eventId: string,\n roomId?: string,\n relationType?: string,\n eventType?: string,\n from?: string,\n to?: string,\n limit?: number,\n direction?: \"f\" | \"b\",\n ): Promise<IReadEventRelationsResult> {\n return Promise.resolve({ chunk: [] });\n }\n\n /**\n * Asks the user for permission to validate their identity through OpenID Connect. The\n * interface for this function is an observable which accepts the state machine of the\n * OIDC exchange flow. For example, if the client/user blocks the request then it would\n * feed back a `{state: Blocked}` into the observable. Similarly, if the user already\n * approved the widget then a `{state: Allowed}` would be fed into the observable alongside\n * the token itself. If the client is asking for permission, it should feed in a\n * `{state: PendingUserConfirmation}` followed by the relevant Allowed or Blocked state.\n *\n * The widget API will reject the widget's request with an error if this contract is not\n * met properly. By default, the widget driver will block all OIDC requests.\n * @param {SimpleObservable<IOpenIDUpdate>} observer The observable to feed updates into.\n */\n public askOpenID(observer: SimpleObservable<IOpenIDUpdate>): void {\n observer.update({ state: OpenIDRequestState.Blocked });\n }\n\n /**\n * Navigates the client with a matrix.to URI. In future this function will also be provided\n * with the Matrix URIs once matrix.to is replaced. The given URI will have already been\n * lightly checked to ensure it looks like a valid URI, though the implementation is recommended\n * to do further checks on the URI.\n * @param {string} uri The URI to navigate to.\n * @returns {Promise<void>} Resolves when complete.\n * @throws Throws if there's a problem with the navigation, such as invalid format.\n */\n public navigate(uri: string): Promise<void> {\n throw new Error(\"Navigation is not implemented\");\n }\n\n /**\n * Polls for TURN server data, yielding an initial set of credentials as soon as possible, and\n * thereafter yielding new credentials whenever the previous ones expire. The widget API will\n * have already verified that the widget has permission to access TURN servers.\n * @yields {ITurnServer} The TURN server URIs and credentials currently available to the client.\n */\n public getTurnServers(): AsyncGenerator<ITurnServer> {\n throw new Error(\"TURN server support is not implemented\");\n }\n\n /**\n * Search for users in the user directory.\n * @param searchTerm The term to search for.\n * @param limit The maximum number of results to return. If not supplied, the\n * @returns Resolves to the search results.\n */\n public searchUserDirectory(searchTerm: string, limit?: number): Promise<ISearchUserDirectoryResult> {\n return Promise.resolve({ limited: false, results: [] });\n }\n\n /**\n * Get the config for the media repository.\n * @returns Promise which resolves with an object containing the config.\n */\n public getMediaConfig(): Promise<IGetMediaConfigResult> {\n throw new Error(\"Get media config is not implemented\");\n }\n\n /**\n * Upload a file to the media repository on the homeserver.\n * @param file - The object to upload. Something that can be sent to\n * XMLHttpRequest.send (typically a File).\n * @returns Resolves to the location of the uploaded file.\n */\n public uploadFile(file: XMLHttpRequestBodyInit): Promise<{ contentUri: string }> {\n throw new Error(\"Upload file is not implemented\");\n }\n\n /**\n * Download a file from the media repository on the homeserver.\n * @param contentUri - MXC URI of the file to download.\n * @returns Resolves to the contents of the file.\n */\n public downloadFile(contentUri: string): Promise<{ file: XMLHttpRequestBodyInit }> {\n throw new Error(\"Download file is not implemented\");\n }\n\n /**\n * Gets the IDs of all joined or invited rooms currently known to the\n * client.\n * @returns The room IDs.\n */\n public getKnownRooms(): string[] {\n throw new Error(\"Querying known rooms is not implemented\");\n }\n\n /**\n * Expresses an error thrown by this driver in a format compatible with the Widget API.\n * @param error The error to handle.\n * @returns The error expressed as a {@link IWidgetApiErrorResponseDataDetails},\n * or undefined if it cannot be expressed as one.\n */\n public processError(error: unknown): IWidgetApiErrorResponseDataDetails | undefined {\n return undefined;\n }\n}\n"],"mappings":";;;;;;AAgBA,IAAAA,CAAA,GAAAC,OAAA;AASY,SAAAC,QAAAC,GAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,GAAA,kBAAAA,GAAA,gBAAAA,GAAA,WAAAA,GAAA,yBAAAC,MAAA,IAAAD,GAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,GAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,GAAA,KAAAD,OAAA,CAAAC,GAAA;AAAA,SAAAK,gBAAAC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ACA;EALI;IAAA7B,GAAA;IAAAgB,KAAA,EAMA,SAAA2D,WAAkBC,IAA4B,EAAmC;MAC7E,MAAM,IAAI/C,KAAK,CAAC,gCAAgC,CAAC;IACrD;;IAEA;AACJ;AACA;AACA;AACA;EAJI;IAAA7B,GAAA;IAAAgB,KAAA,EAKA,SAAA6D,aAAoBC,UAAkB,EAA6C;MAC/E,MAAM,IAAIjD,KAAK,CAAC,kCAAkC,CAAC;IACvD;;IAEA;AACJ;AACA;AACA;AACA;EAJI;IAAA7B,GAAA;IAAAgB,KAAA,EAKA,SAAA+D,cAAA,EAAiC;MAC7B,MAAM,IAAIlD,KAAK,CAAC,yCAAyC,CAAC;IAC9D;;IAEA;AACJ;AACA;AACA;AACA;AACA;EALI;IAAA7B,GAAA;IAAAgB,KAAA,EAMA,SAAAgE,aAAoBC,KAAc,EAAkD;MAChF,OAAOtE,SAAS;IACpB;EAAC;EAAA,OAAAI,YAAA;AAAA;AAAAmE,OAAA,CAAAnE,YAAA,GAAAA,YAAA"}
|
|
1
|
+
{"version":3,"file":"WidgetDriver.js","names":["_","require","_typeof","obj","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","undefined","res","call","Number","WidgetDriver","value","validateCapabilities","requested","Promise","resolve","Set","sendEvent","eventType","content","stateKey","arguments","roomId","reject","Error","sendStickyEvent","stickyDurationMs","sendDelayedEvent","delay","sendDelayedStickyEvent","cancelScheduledDelayedEvent","delayId","restartScheduledDelayedEvent","sendScheduledDelayedEvent","sendToDevice","encrypted","contentMap","readRoomAccountData","roomIds","readRoomEvents","msgtype","limit","since","readStateEvents","readStickyEvents","readRoomTimeline","readRoomState","MAX_SAFE_INTEGER","readEventRelations","eventId","relationType","from","to","direction","chunk","askOpenID","observer","update","state","OpenIDRequestState","Blocked","navigate","uri","getTurnServers","searchUserDirectory","searchTerm","limited","results","getMediaConfig","getRtcTransports","uploadFile","file","downloadFile","contentUri","getKnownRooms","processError","error","exports"],"sources":["../../src/driver/WidgetDriver.ts"],"sourcesContent":["/*\n * Copyright 2020 - 2024 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Capability,\n IOpenIDCredentials,\n OpenIDRequestState,\n SimpleObservable,\n IRoomEvent,\n IRoomAccountData,\n ITurnServer,\n IWidgetApiErrorResponseDataDetails,\n IRtcTransport,\n} from \"..\";\n\nexport interface ISendEventDetails {\n roomId: string;\n eventId: string;\n}\n\nexport interface ISendDelayedEventDetails {\n roomId: string;\n delayId: string;\n}\n\nexport interface IOpenIDUpdate {\n state: OpenIDRequestState;\n token?: IOpenIDCredentials;\n}\n\nexport interface IReadEventRelationsResult {\n chunk: IRoomEvent[];\n nextBatch?: string;\n prevBatch?: string;\n}\n\nexport interface ISearchUserDirectoryResult {\n limited: boolean;\n results: Array<{\n userId: string;\n displayName?: string;\n avatarUrl?: string;\n }>;\n}\n\nexport interface IGetMediaConfigResult {\n [key: string]: unknown;\n\n \"m.upload.size\"?: number;\n}\n\nexport interface IRtcTransportsResult {\n rtc_transports: IRtcTransport[];\n}\n\n/**\n * Represents the functions and behaviour the widget-api is unable to\n * do, such as prompting the user for information or interacting with\n * the UI. Clients are expected to implement this class and override\n * any functions they need/want to support.\n *\n * This class assumes the client will have a context of a Widget\n * instance already.\n */\nexport abstract class WidgetDriver {\n /**\n * Verifies the widget's requested capabilities, returning the ones\n * it is approved to use. Mutating the requested capabilities will\n * have no effect.\n *\n * This SHOULD result in the user being prompted to approve/deny\n * capabilities.\n *\n * By default this rejects all capabilities (returns an empty set).\n * @param {Set<Capability>} requested The set of requested capabilities.\n * @returns {Promise<Set<Capability>>} Resolves to the allowed capabilities.\n */\n public validateCapabilities(requested: Set<Capability>): Promise<Set<Capability>> {\n return Promise.resolve(new Set());\n }\n\n /**\n * Sends an event into a room. If `roomId` is falsy, the client should send the event\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {string} eventType The event type to be sent.\n * @param {*} content The content for the event.\n * @param {string|null} stateKey The state key if this is a state event, otherwise null.\n * May be an empty string.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendEventDetails>} Resolves when the event has been sent with\n * details of that event.\n * @throws Rejected when the event could not be sent.\n */\n public sendEvent(\n eventType: string,\n content: unknown,\n stateKey: string | null = null,\n roomId: string | null = null,\n ): Promise<ISendEventDetails> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4407\n * Sends a sticky event into a room. If `roomId` is falsy, the client should send the event\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {number} stickyDurationMs The length of time a sticky event may remain sticky, in milliseconds.\n * @param {string} eventType The event type to be sent.\n * @param {*} content The content for the event.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendEventDetails>} Resolves when the event has been sent with\n * details of that event.\n * @throws Rejected when the event could not be sent.\n */\n public sendStickyEvent(\n stickyDurationMs: number,\n eventType: string,\n content: unknown,\n roomId: string | null = null,\n ): Promise<ISendEventDetails> {\n throw new Error(\"Method not implemented.\");\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Sends a delayed event into a room. If `roomId` is falsy, the client should send it\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {number} delay How much later to send the event.\n * @param {string} eventType The event type of the event to be sent.\n * @param {*} content The content for the event to be sent.\n * @param {string|null} stateKey The state key if the event to be sent a state event,\n * otherwise null. May be an empty string.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendDelayedEventDetails>} Resolves when the delayed event has been\n * prepared with details of how to refer to it for updating/sending/canceling it later.\n * @throws Rejected when the delayed event could not be sent.\n */\n public sendDelayedEvent(\n delay: number,\n eventType: string,\n content: unknown,\n stateKey: string | null = null,\n roomId: string | null = null,\n ): Promise<ISendDelayedEventDetails> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4140, MSC4157 and MSC4407\n * Sends a delayed sticky event into a room. If `roomId` is falsy, the client should send the event\n * into the room the user is currently looking at. The widget API will have already\n * verified that the widget is capable of sending the event to that room.\n * @param {number} stickyDurationMs The length of time a sticky event may remain sticky, in milliseconds.\n * @param {number} delay How much later to send the event.\n * @param {string} eventType The event type to be sent.\n * @param {*} content The content for the event.\n * @param {string|null} roomId The room ID to send the event to. If falsy, the room the\n * user is currently looking at.\n * @returns {Promise<ISendDelayedEventDetails>} Resolves when the event has been sent with\n * details of that event.\n * @throws Rejected when the event could not be sent.\n */\n public sendDelayedStickyEvent(\n delay: number,\n stickyDurationMs: number,\n eventType: string,\n content: unknown,\n roomId: string | null = null,\n ): Promise<ISendDelayedEventDetails> {\n throw new Error(\"Method not implemented.\");\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Cancel the scheduled delivery of the delayed event matching the provided {@link delayId}.\n * @throws Rejected when there is no matching delayed event,\n * or when the delayed event failed to be cancelled.\n */\n public cancelScheduledDelayedEvent(delayId: string): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Restart the scheduled delivery of the delayed event matching the provided {@link delayId}.\n * @throws Rejected when there is no matching delayed event,\n * or when the delayed event failed to be restarted.\n */\n public restartScheduledDelayedEvent(delayId: string): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * @experimental Part of MSC4140 & MSC4157\n * Immediately send the delayed event matching the provided {@link delayId},\n * instead of waiting for its scheduled delivery.\n * @throws Rejected when there is no matching delayed event,\n * or when the delayed event failed to be sent.\n */\n public sendScheduledDelayedEvent(delayId: string): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * Sends a to-device event. The widget API will have already verified that the widget\n * is capable of sending the event.\n * @param {string} eventType The event type to be sent.\n * @param {boolean} encrypted Whether to encrypt the message contents.\n * @param {Object} contentMap A map from user ID and device ID to event content.\n * @returns {Promise<void>} Resolves when the event has been sent.\n * @throws Rejected when the event could not be sent.\n */\n public sendToDevice(\n eventType: string,\n encrypted: boolean,\n contentMap: { [userId: string]: { [deviceId: string]: object } },\n ): Promise<void> {\n return Promise.reject(new Error(\"Failed to override function\"));\n }\n\n /**\n * Reads an element of room account data. The widget API will have already verified that the widget is\n * capable of receiving the `eventType` of the requested information. If `roomIds` is supplied, it may\n * contain `Symbols.AnyRoom` to denote that the piece of room account data in each of the client's known\n * rooms should be returned. When `null`, only the room the user is currently looking at should be considered.\n * @param eventType The event type to be read.\n * @param roomIds When null, the user's currently viewed room. Otherwise, the list of room IDs\n * to look within, possibly containing Symbols.AnyRoom to denote all known rooms.\n * @returns {Promise<IRoomAccountData[]>} Resolves to the element of room account data, or an empty array.\n */\n public readRoomAccountData(eventType: string, roomIds: string[] | null = null): Promise<IRoomAccountData[]> {\n return Promise.resolve([]);\n }\n\n /**\n * Reads all events of the given type, and optionally `msgtype` (if applicable/defined),\n * the user has access to. The widget API will have already verified that the widget is\n * capable of receiving the events. Less events than the limit are allowed to be returned,\n * but not more. If `roomIds` is supplied, it may contain `Symbols.AnyRoom` to denote that\n * `limit` in each of the client's known rooms should be returned. When `null`, only the\n * room the user is currently looking at should be considered. If `since` is specified but\n * the event ID isn't present in the number of events fetched by the client due to `limit`,\n * the client will return all the events.\n * @param eventType The event type to be read.\n * @param msgtype The msgtype of the events to be read, if applicable/defined.\n * @param stateKey The state key of the events to be read, if applicable/defined.\n * @param limit The maximum number of events to retrieve per room. Will be zero to denote \"as many\n * as possible\".\n * @param roomIds When null, the user's currently viewed room. Otherwise, the list of room IDs\n * to look within, possibly containing Symbols.AnyRoom to denote all known rooms.\n * @param since When null, retrieves the number of events specified by the \"limit\" parameter.\n * Otherwise, the event ID at which only subsequent events will be returned, as many as specified\n * in \"limit\".\n * @returns {Promise<IRoomEvent[]>} Resolves to the room events, or an empty array.\n * @deprecated Clients are advised to implement {@link WidgetDriver.readRoomTimeline} instead.\n */\n public readRoomEvents(\n eventType: string,\n msgtype: string | undefined,\n limit: number,\n roomIds: string[] | null = null,\n since?: string,\n ): Promise<IRoomEvent[]> {\n return Promise.resolve([]);\n }\n\n /**\n * Reads all events of the given type, and optionally state key (if applicable/defined),\n * the user has access to. The widget API will have already verified that the widget is\n * capable of receiving the events. Less events than the limit are allowed to be returned,\n * but not more. If `roomIds` is supplied, it may contain `Symbols.AnyRoom` to denote that\n * `limit` in each of the client's known rooms should be returned. When `null`, only the\n * room the user is currently looking at should be considered.\n * @param eventType The event type to be read.\n * @param stateKey The state key of the events to be read, if applicable/defined.\n * @param limit The maximum number of events to retrieve. Will be zero to denote \"as many\n * as possible\".\n * @param roomIds When null, the user's currently viewed room. Otherwise, the list of room IDs\n * to look within, possibly containing Symbols.AnyRoom to denote all known rooms.\n * @returns {Promise<IRoomEvent[]>} Resolves to the state events, or an empty array.\n * @deprecated Clients are advised to implement {@link WidgetDriver.readRoomTimeline} instead.\n */\n public readStateEvents(\n eventType: string,\n stateKey: string | undefined,\n limit: number,\n roomIds: string[] | null = null,\n ): Promise<IRoomEvent[]> {\n return Promise.resolve([]);\n }\n\n /**\n * Gets all sticky events of the given type the user has access to.\n * The widget API will have already verified that the widget is capable of receiving the events.\n *\n * This is needed because widgets will get only live messages as they appear in the timeline.\n * However, sticky events act like a state, and the current state is made by events that may have been\n * sent before the widget was loaded.\n * Events are sticky for 1h maximum, so the widget has access to the past hour of sticky events maximum.\n *\n * @experimental Part of MSC4407 - Sticky Events (Widget API)\n * @param roomId - The ID of the room.\n */\n public readStickyEvents(roomId: string): Promise<IRoomEvent[]> {\n throw new Error(\"readStickyEvents is not implemented\");\n }\n\n /**\n * Reads all events of the given type, and optionally `msgtype` (if applicable/defined),\n * the user has access to. The widget API will have already verified that the widget is\n * capable of receiving the events. Less events than the limit are allowed to be returned,\n * but not more.\n * @param roomId The ID of the room to look within.\n * @param eventType The event type to be read.\n * @param msgtype The msgtype of the events to be read, if applicable/defined.\n * @param stateKey The state key of the events to be read, if applicable/defined.\n * @param limit The maximum number of events to retrieve. Will be zero to denote \"as many as\n * possible\".\n * @param since When null, retrieves the number of events specified by the \"limit\" parameter.\n * Otherwise, the event ID at which only subsequent events will be returned, as many as specified\n * in \"limit\".\n * @returns {Promise<IRoomEvent[]>} Resolves to the room events, or an empty array.\n */\n public readRoomTimeline(\n roomId: string,\n eventType: string,\n msgtype: string | undefined,\n stateKey: string | undefined,\n limit: number,\n since: string | undefined,\n ): Promise<IRoomEvent[]> {\n // For backward compatibility we try the deprecated methods, in case\n // they're implemented\n if (stateKey === undefined) return this.readRoomEvents(eventType, msgtype, limit, [roomId], since);\n else return this.readStateEvents(eventType, stateKey, limit, [roomId]);\n }\n\n /**\n * Reads the current values of all matching room state entries.\n * @param roomId The ID of the room.\n * @param eventType The event type of the entries to be read.\n * @param stateKey The state key of the entry to be read. If undefined,\n * all room state entries with a matching event type should be returned.\n * @returns {Promise<IRoomEvent[]>} Resolves to the events representing the\n * current values of the room state entries.\n */\n public readRoomState(roomId: string, eventType: string, stateKey: string | undefined): Promise<IRoomEvent[]> {\n return this.readStateEvents(eventType, stateKey, Number.MAX_SAFE_INTEGER, [roomId]);\n }\n\n /**\n * Reads all events that are related to a given event. The widget API will\n * have already verified that the widget is capable of receiving the event,\n * or will make sure to reject access to events which are returned from this\n * function, but are not capable of receiving. If `relationType` or `eventType`\n * are set, the returned events should already be filtered. Less events than\n * the limit are allowed to be returned, but not more.\n * @param eventId The id of the parent event to be read.\n * @param roomId The room to look within. When undefined, the user's\n * currently viewed room.\n * @param relationType The relationship type of child events to search for.\n * When undefined, all relations are returned.\n * @param eventType The event type of child events to search for. When undefined,\n * all related events are returned.\n * @param from The pagination token to start returning results from, as\n * received from a previous call. If not supplied, results start at the most\n * recent topological event known to the server.\n * @param to The pagination token to stop returning results at. If not\n * supplied, results continue up to limit or until there are no more events.\n * @param limit The maximum number of events to retrieve per room. If not\n * supplied, the server will apply a default limit.\n * @param direction The direction to search for according to MSC3715\n * @returns Resolves to the room relations.\n */\n public readEventRelations(\n eventId: string,\n roomId?: string,\n relationType?: string,\n eventType?: string,\n from?: string,\n to?: string,\n limit?: number,\n direction?: \"f\" | \"b\",\n ): Promise<IReadEventRelationsResult> {\n return Promise.resolve({ chunk: [] });\n }\n\n /**\n * Asks the user for permission to validate their identity through OpenID Connect. The\n * interface for this function is an observable which accepts the state machine of the\n * OIDC exchange flow. For example, if the client/user blocks the request then it would\n * feed back a `{state: Blocked}` into the observable. Similarly, if the user already\n * approved the widget then a `{state: Allowed}` would be fed into the observable alongside\n * the token itself. If the client is asking for permission, it should feed in a\n * `{state: PendingUserConfirmation}` followed by the relevant Allowed or Blocked state.\n *\n * The widget API will reject the widget's request with an error if this contract is not\n * met properly. By default, the widget driver will block all OIDC requests.\n * @param {SimpleObservable<IOpenIDUpdate>} observer The observable to feed updates into.\n */\n public askOpenID(observer: SimpleObservable<IOpenIDUpdate>): void {\n observer.update({ state: OpenIDRequestState.Blocked });\n }\n\n /**\n * Navigates the client with a matrix.to URI. In future this function will also be provided\n * with the Matrix URIs once matrix.to is replaced. The given URI will have already been\n * lightly checked to ensure it looks like a valid URI, though the implementation is recommended\n * to do further checks on the URI.\n * @param {string} uri The URI to navigate to.\n * @returns {Promise<void>} Resolves when complete.\n * @throws Throws if there's a problem with the navigation, such as invalid format.\n */\n public navigate(uri: string): Promise<void> {\n throw new Error(\"Navigation is not implemented\");\n }\n\n /**\n * Polls for TURN server data, yielding an initial set of credentials as soon as possible, and\n * thereafter yielding new credentials whenever the previous ones expire. The widget API will\n * have already verified that the widget has permission to access TURN servers.\n * @yields {ITurnServer} The TURN server URIs and credentials currently available to the client.\n */\n public getTurnServers(): AsyncGenerator<ITurnServer> {\n throw new Error(\"TURN server support is not implemented\");\n }\n\n /**\n * Search for users in the user directory.\n * @param searchTerm The term to search for.\n * @param limit The maximum number of results to return. If not supplied, the\n * @returns Resolves to the search results.\n */\n public searchUserDirectory(searchTerm: string, limit?: number): Promise<ISearchUserDirectoryResult> {\n return Promise.resolve({ limited: false, results: [] });\n }\n\n /**\n * Get the config for the media repository.\n * @returns Promise which resolves with an object containing the config.\n */\n public getMediaConfig(): Promise<IGetMediaConfigResult> {\n throw new Error(\"Get media config is not implemented\");\n }\n\n /**\n * Discover the RTC transports (e.g. SFUs, TURN servers) the homeserver\n * supports, by delegating to the authenticated\n * `GET /_matrix/client/v1/rtc/transports` Client-Server endpoint (MSC4143).\n * @returns Promise which resolves with the available transports.\n */\n public getRtcTransports(): Promise<IRtcTransportsResult> {\n throw new Error(\"Get RTC transports is not implemented\");\n }\n\n /**\n * Upload a file to the media repository on the homeserver.\n * @param file - The object to upload. Something that can be sent to\n * XMLHttpRequest.send (typically a File).\n * @returns Resolves to the location of the uploaded file.\n */\n public uploadFile(file: XMLHttpRequestBodyInit): Promise<{ contentUri: string }> {\n throw new Error(\"Upload file is not implemented\");\n }\n\n /**\n * Download a file from the media repository on the homeserver.\n * @param contentUri - MXC URI of the file to download.\n * @returns Resolves to the contents of the file.\n */\n public downloadFile(contentUri: string): Promise<{ file: XMLHttpRequestBodyInit }> {\n throw new Error(\"Download file is not implemented\");\n }\n\n /**\n * Gets the IDs of all joined or invited rooms currently known to the\n * client.\n * @returns The room IDs.\n */\n public getKnownRooms(): string[] {\n throw new Error(\"Querying known rooms is not implemented\");\n }\n\n /**\n * Expresses an error thrown by this driver in a format compatible with the Widget API.\n * @param error The error to handle.\n * @returns The error expressed as a {@link IWidgetApiErrorResponseDataDetails},\n * or undefined if it cannot be expressed as one.\n */\n public processError(error: unknown): IWidgetApiErrorResponseDataDetails | undefined {\n return undefined;\n }\n}\n"],"mappings":";;;;;;AAgBA,IAAAA,CAAA,GAAAC,OAAA;AAUY,SAAAC,QAAAC,GAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,GAAA,kBAAAA,GAAA,gBAAAA,GAAA,WAAAA,GAAA,yBAAAC,MAAA,IAAAD,GAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,GAAA,KAAAC,MAAA,CAAAG,SAAA,qBAAAJ,GAAA,KAAAD,OAAA,CAAAC,GAAA;AAAA,SAAAK,gBAAAC,QAAA,EAAAC,WAAA,UAAAD,QAAA,YAAAC,WAAA,eAAAC,SAAA;AAAA,SAAAC,kBAAAC,MAAA,EAAAC,KAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAD,KAAA,CAAAE,MAAA,EAAAD,CAAA,UAAAE,UAAA,GAAAH,KAAA,CAAAC,CAAA,GAAAE,UAAA,CAAAC,UAAA,GAAAD,UAAA,CAAAC,UAAA,WAAAD,UAAA,CAAAE,YAAA,wBAAAF,UAAA,EAAAA,UAAA,CAAAG,QAAA,SAAAC,MAAA,CAAAC,cAAA,CAAAT,MAAA,EAAAU,cAAA,CAAAN,UAAA,CAAAO,GAAA,GAAAP,UAAA;AAAA,SAAAQ,aAAAf,WAAA,EAAAgB,UAAA,EAAAC,WAAA,QAAAD,UAAA,EAAAd,iBAAA,CAAAF,WAAA,CAAAH,SAAA,EAAAmB,UAAA,OAAAC,WAAA,EAAAf,iBAAA,CAAAF,WAAA,EAAAiB,WAAA,GAAAN,MAAA,CAAAC,cAAA,CAAAZ,WAAA,iBAAAU,QAAA,mBAAAV,WAAA;AAAA,SAAAa,eAAAK,GAAA,QAAAJ,GAAA,GAAAK,YAAA,CAAA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@ export type * from "./interfaces/NavigateAction";
|
|
|
38
38
|
export type * from "./interfaces/TurnServerActions";
|
|
39
39
|
export type * from "./interfaces/ReadRelationsAction";
|
|
40
40
|
export type * from "./interfaces/GetMediaConfigAction";
|
|
41
|
+
export type * from "./interfaces/RtcTransportsAction";
|
|
41
42
|
export * from "./interfaces/UpdateDelayedEventAction";
|
|
42
43
|
export type * from "./interfaces/UpdateStateAction";
|
|
43
44
|
export type * from "./interfaces/UploadFileAction";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_WidgetApi","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ClientWidgetApi","_Symbols","_PostmessageTransport","_WidgetType","_IWidgetApiErrorResponse","_WidgetApiAction","_WidgetApiDirection","_ApiVersion","_Capabilities","_GetOpenIDAction","_WidgetKind","_ModalButtonKind","_ModalWidgetActions","_UpdateDelayedEventAction","_WidgetEventCapability","_url","_utils","_Widget","_WidgetParser","_urlTemplate","_SimpleObservable","_WidgetDriver"],"sources":["../src/index.ts"],"sourcesContent":["/*\nCopyright 2020 - 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Primary structures\nexport * from \"./WidgetApi\";\nexport * from \"./ClientWidgetApi\";\nexport * from \"./Symbols\";\n\n// Transports (not sure why you'd use these directly, but might as well export all the things)\nexport type * from \"./transport/ITransport\";\nexport * from \"./transport/PostmessageTransport\";\n\n// Interfaces and simple models\nexport type * from \"./interfaces/ICustomWidgetData\";\nexport type * from \"./interfaces/IJitsiWidgetData\";\nexport type * from \"./interfaces/IStickerpickerWidgetData\";\nexport type * from \"./interfaces/IWidget\";\nexport * from \"./interfaces/WidgetType\";\nexport * from \"./interfaces/IWidgetApiErrorResponse\";\nexport type * from \"./interfaces/IWidgetApiRequest\";\nexport type * from \"./interfaces/IWidgetApiResponse\";\nexport * from \"./interfaces/WidgetApiAction\";\nexport * from \"./interfaces/WidgetApiDirection\";\nexport * from \"./interfaces/ApiVersion\";\nexport * from \"./interfaces/Capabilities\";\nexport type * from \"./interfaces/CapabilitiesAction\";\nexport type * from \"./interfaces/ContentLoadedAction\";\nexport type * from \"./interfaces/ScreenshotAction\";\nexport type * from \"./interfaces/StickerAction\";\nexport type * from \"./interfaces/StickyAction\";\nexport type * from \"./interfaces/SupportedVersionsAction\";\nexport type * from \"./interfaces/VisibilityAction\";\nexport * from \"./interfaces/GetOpenIDAction\";\nexport type * from \"./interfaces/OpenIDCredentialsAction\";\nexport * from \"./interfaces/WidgetKind\";\nexport * from \"./interfaces/ModalButtonKind\";\nexport * from \"./interfaces/ModalWidgetActions\";\nexport type * from \"./interfaces/SetModalButtonEnabledAction\";\nexport type * from \"./interfaces/WidgetConfigAction\";\nexport type * from \"./interfaces/SendEventAction\";\nexport type * from \"./interfaces/SendToDeviceAction\";\nexport type * from \"./interfaces/ReadEventAction\";\nexport type * from \"./interfaces/IRoomEvent\";\nexport type * from \"./interfaces/IRoomAccountData\";\nexport type * from \"./interfaces/NavigateAction\";\nexport type * from \"./interfaces/TurnServerActions\";\nexport type * from \"./interfaces/ReadRelationsAction\";\nexport type * from \"./interfaces/GetMediaConfigAction\";\nexport * from \"./interfaces/UpdateDelayedEventAction\";\nexport type * from \"./interfaces/UpdateStateAction\";\nexport type * from \"./interfaces/UploadFileAction\";\nexport type * from \"./interfaces/DownloadFileAction\";\nexport type * from \"./interfaces/ThemeChangeAction\";\nexport type * from \"./interfaces/LanguageChangeAction\";\n\n// Complex models\nexport * from \"./models/WidgetEventCapability\";\nexport * from \"./models/validation/url\";\nexport * from \"./models/validation/utils\";\nexport * from \"./models/Widget\";\nexport * from \"./models/WidgetParser\";\n\n// Utilities\nexport * from \"./templating/url-template\";\nexport * from \"./util/SimpleObservable\";\n\n// Drivers\nexport * from \"./driver/WidgetDriver\";\n"],"mappings":";;;;;AAiBA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,gBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,gBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,gBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,gBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,QAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,QAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,QAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,QAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AAIA,IAAAO,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","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ClientWidgetApi","_Symbols","_PostmessageTransport","_WidgetType","_IWidgetApiErrorResponse","_WidgetApiAction","_WidgetApiDirection","_ApiVersion","_Capabilities","_GetOpenIDAction","_WidgetKind","_ModalButtonKind","_ModalWidgetActions","_UpdateDelayedEventAction","_WidgetEventCapability","_url","_utils","_Widget","_WidgetParser","_urlTemplate","_SimpleObservable","_WidgetDriver"],"sources":["../src/index.ts"],"sourcesContent":["/*\nCopyright 2020 - 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Primary structures\nexport * from \"./WidgetApi\";\nexport * from \"./ClientWidgetApi\";\nexport * from \"./Symbols\";\n\n// Transports (not sure why you'd use these directly, but might as well export all the things)\nexport type * from \"./transport/ITransport\";\nexport * from \"./transport/PostmessageTransport\";\n\n// Interfaces and simple models\nexport type * from \"./interfaces/ICustomWidgetData\";\nexport type * from \"./interfaces/IJitsiWidgetData\";\nexport type * from \"./interfaces/IStickerpickerWidgetData\";\nexport type * from \"./interfaces/IWidget\";\nexport * from \"./interfaces/WidgetType\";\nexport * from \"./interfaces/IWidgetApiErrorResponse\";\nexport type * from \"./interfaces/IWidgetApiRequest\";\nexport type * from \"./interfaces/IWidgetApiResponse\";\nexport * from \"./interfaces/WidgetApiAction\";\nexport * from \"./interfaces/WidgetApiDirection\";\nexport * from \"./interfaces/ApiVersion\";\nexport * from \"./interfaces/Capabilities\";\nexport type * from \"./interfaces/CapabilitiesAction\";\nexport type * from \"./interfaces/ContentLoadedAction\";\nexport type * from \"./interfaces/ScreenshotAction\";\nexport type * from \"./interfaces/StickerAction\";\nexport type * from \"./interfaces/StickyAction\";\nexport type * from \"./interfaces/SupportedVersionsAction\";\nexport type * from \"./interfaces/VisibilityAction\";\nexport * from \"./interfaces/GetOpenIDAction\";\nexport type * from \"./interfaces/OpenIDCredentialsAction\";\nexport * from \"./interfaces/WidgetKind\";\nexport * from \"./interfaces/ModalButtonKind\";\nexport * from \"./interfaces/ModalWidgetActions\";\nexport type * from \"./interfaces/SetModalButtonEnabledAction\";\nexport type * from \"./interfaces/WidgetConfigAction\";\nexport type * from \"./interfaces/SendEventAction\";\nexport type * from \"./interfaces/SendToDeviceAction\";\nexport type * from \"./interfaces/ReadEventAction\";\nexport type * from \"./interfaces/IRoomEvent\";\nexport type * from \"./interfaces/IRoomAccountData\";\nexport type * from \"./interfaces/NavigateAction\";\nexport type * from \"./interfaces/TurnServerActions\";\nexport type * from \"./interfaces/ReadRelationsAction\";\nexport type * from \"./interfaces/GetMediaConfigAction\";\nexport type * from \"./interfaces/RtcTransportsAction\";\nexport * from \"./interfaces/UpdateDelayedEventAction\";\nexport type * from \"./interfaces/UpdateStateAction\";\nexport type * from \"./interfaces/UploadFileAction\";\nexport type * from \"./interfaces/DownloadFileAction\";\nexport type * from \"./interfaces/ThemeChangeAction\";\nexport type * from \"./interfaces/LanguageChangeAction\";\n\n// Complex models\nexport * from \"./models/WidgetEventCapability\";\nexport * from \"./models/validation/url\";\nexport * from \"./models/validation/utils\";\nexport * from \"./models/Widget\";\nexport * from \"./models/WidgetParser\";\n\n// Utilities\nexport * from \"./templating/url-template\";\nexport * from \"./util/SimpleObservable\";\n\n// Drivers\nexport * from \"./driver/WidgetDriver\";\n"],"mappings":";;;;;AAiBA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MA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AAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAoB,YAAA,CAAAxB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAyB,iBAAA,GAAA7B,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAA2B,iBAAA,EAAA1B,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAyB,iBAAA,CAAAzB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAqB,iBAAA,CAAAzB,GAAA;IAAA;EAAA;AAAA;AAGA,IAAA0B,aAAA,GAAA9B,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAA4B,aAAA,EAAA3B,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAA0B,aAAA,CAAA1B,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAsB,aAAA,CAAA1B,GAAA;IAAA;EAAA;AAAA"}
|
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export declare enum UnstableApiVersion {
|
|
|
14
14
|
MSC3846 = "town.robin.msc3846",
|
|
15
15
|
MSC3869 = "org.matrix.msc3869",
|
|
16
16
|
MSC3973 = "org.matrix.msc3973",
|
|
17
|
-
MSC4039 = "org.matrix.msc4039"
|
|
17
|
+
MSC4039 = "org.matrix.msc4039",
|
|
18
|
+
MSC4515 = "org.matrix.msc4515"
|
|
18
19
|
}
|
|
19
20
|
export type ApiVersion = MatrixApiVersion | UnstableApiVersion | string;
|
|
20
21
|
export declare const CurrentApiVersions: ApiVersion[];
|
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js
CHANGED
|
@@ -38,11 +38,12 @@ var UnstableApiVersion = /*#__PURE__*/function (UnstableApiVersion) {
|
|
|
38
38
|
UnstableApiVersion["MSC3869"] = "org.matrix.msc3869";
|
|
39
39
|
UnstableApiVersion["MSC3973"] = "org.matrix.msc3973";
|
|
40
40
|
UnstableApiVersion["MSC4039"] = "org.matrix.msc4039";
|
|
41
|
+
UnstableApiVersion["MSC4515"] = "org.matrix.msc4515";
|
|
41
42
|
return UnstableApiVersion;
|
|
42
43
|
}({});
|
|
43
44
|
exports.UnstableApiVersion = UnstableApiVersion;
|
|
44
45
|
var CurrentApiVersions = [MatrixApiVersion.Prerelease1, MatrixApiVersion.Prerelease2,
|
|
45
46
|
//MatrixApiVersion.V010,
|
|
46
|
-
UnstableApiVersion.MSC2762, UnstableApiVersion.MSC2762_UPDATE_STATE, UnstableApiVersion.MSC2871, UnstableApiVersion.MSC2873, UnstableApiVersion.MSC2931, UnstableApiVersion.MSC2974, UnstableApiVersion.MSC2876, UnstableApiVersion.MSC3819, UnstableApiVersion.MSC3846, UnstableApiVersion.MSC3869, UnstableApiVersion.MSC3973, UnstableApiVersion.MSC4039];
|
|
47
|
+
UnstableApiVersion.MSC2762, UnstableApiVersion.MSC2762_UPDATE_STATE, UnstableApiVersion.MSC2871, UnstableApiVersion.MSC2873, UnstableApiVersion.MSC2931, UnstableApiVersion.MSC2974, UnstableApiVersion.MSC2876, UnstableApiVersion.MSC3819, UnstableApiVersion.MSC3846, UnstableApiVersion.MSC3869, UnstableApiVersion.MSC3973, UnstableApiVersion.MSC4039, UnstableApiVersion.MSC4515];
|
|
47
48
|
exports.CurrentApiVersions = CurrentApiVersions;
|
|
48
49
|
//# sourceMappingURL=ApiVersion.js.map
|
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/ApiVersion.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiVersion.js","names":["MatrixApiVersion","exports","UnstableApiVersion","CurrentApiVersions","Prerelease1","Prerelease2","MSC2762","MSC2762_UPDATE_STATE","MSC2871","MSC2873","MSC2931","MSC2974","MSC2876","MSC3819","MSC3846","MSC3869","MSC3973","MSC4039"],"sources":["../../src/interfaces/ApiVersion.ts"],"sourcesContent":["/*\n * Copyright 2020 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum MatrixApiVersion {\n Prerelease1 = \"0.0.1\",\n Prerelease2 = \"0.0.2\",\n //V010 = \"0.1.0\", // first release\n}\n\nexport enum UnstableApiVersion {\n MSC2762 = \"org.matrix.msc2762\",\n MSC2762_UPDATE_STATE = \"org.matrix.msc2762_update_state\",\n MSC2871 = \"org.matrix.msc2871\",\n MSC2873 = \"org.matrix.msc2873\",\n MSC2931 = \"org.matrix.msc2931\",\n MSC2974 = \"org.matrix.msc2974\",\n MSC2876 = \"org.matrix.msc2876\",\n MSC3819 = \"org.matrix.msc3819\",\n MSC3846 = \"town.robin.msc3846\",\n MSC3869 = \"org.matrix.msc3869\",\n MSC3973 = \"org.matrix.msc3973\",\n MSC4039 = \"org.matrix.msc4039\",\n}\n\nexport type ApiVersion = MatrixApiVersion | UnstableApiVersion | string;\n\nexport const CurrentApiVersions: ApiVersion[] = [\n MatrixApiVersion.Prerelease1,\n MatrixApiVersion.Prerelease2,\n //MatrixApiVersion.V010,\n UnstableApiVersion.MSC2762,\n UnstableApiVersion.MSC2762_UPDATE_STATE,\n UnstableApiVersion.MSC2871,\n UnstableApiVersion.MSC2873,\n UnstableApiVersion.MSC2931,\n UnstableApiVersion.MSC2974,\n UnstableApiVersion.MSC2876,\n UnstableApiVersion.MSC3819,\n UnstableApiVersion.MSC3846,\n UnstableApiVersion.MSC3869,\n UnstableApiVersion.MSC3973,\n UnstableApiVersion.MSC4039,\n];\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,IAgBYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA,OAGxB;AAAAC,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AAAA,IAGQE,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAAAD,OAAA,CAAAC,kBAAA,GAAAA,kBAAA;
|
|
1
|
+
{"version":3,"file":"ApiVersion.js","names":["MatrixApiVersion","exports","UnstableApiVersion","CurrentApiVersions","Prerelease1","Prerelease2","MSC2762","MSC2762_UPDATE_STATE","MSC2871","MSC2873","MSC2931","MSC2974","MSC2876","MSC3819","MSC3846","MSC3869","MSC3973","MSC4039","MSC4515"],"sources":["../../src/interfaces/ApiVersion.ts"],"sourcesContent":["/*\n * Copyright 2020 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum MatrixApiVersion {\n Prerelease1 = \"0.0.1\",\n Prerelease2 = \"0.0.2\",\n //V010 = \"0.1.0\", // first release\n}\n\nexport enum UnstableApiVersion {\n MSC2762 = \"org.matrix.msc2762\",\n MSC2762_UPDATE_STATE = \"org.matrix.msc2762_update_state\",\n MSC2871 = \"org.matrix.msc2871\",\n MSC2873 = \"org.matrix.msc2873\",\n MSC2931 = \"org.matrix.msc2931\",\n MSC2974 = \"org.matrix.msc2974\",\n MSC2876 = \"org.matrix.msc2876\",\n MSC3819 = \"org.matrix.msc3819\",\n MSC3846 = \"town.robin.msc3846\",\n MSC3869 = \"org.matrix.msc3869\",\n MSC3973 = \"org.matrix.msc3973\",\n MSC4039 = \"org.matrix.msc4039\",\n MSC4515 = \"org.matrix.msc4515\",\n}\n\nexport type ApiVersion = MatrixApiVersion | UnstableApiVersion | string;\n\nexport const CurrentApiVersions: ApiVersion[] = [\n MatrixApiVersion.Prerelease1,\n MatrixApiVersion.Prerelease2,\n //MatrixApiVersion.V010,\n UnstableApiVersion.MSC2762,\n UnstableApiVersion.MSC2762_UPDATE_STATE,\n UnstableApiVersion.MSC2871,\n UnstableApiVersion.MSC2873,\n UnstableApiVersion.MSC2931,\n UnstableApiVersion.MSC2974,\n UnstableApiVersion.MSC2876,\n UnstableApiVersion.MSC3819,\n UnstableApiVersion.MSC3846,\n UnstableApiVersion.MSC3869,\n UnstableApiVersion.MSC3973,\n UnstableApiVersion.MSC4039,\n UnstableApiVersion.MSC4515,\n];\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,IAgBYA,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA,OAGxB;AAAAC,OAAA,CAAAD,gBAAA,GAAAA,gBAAA;AAAA,IAGQE,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAAAD,OAAA,CAAAC,kBAAA,GAAAA,kBAAA;AAkBvB,IAAMC,kBAAgC,GAAG,CAC5CH,gBAAgB,CAACI,WAAW,EAC5BJ,gBAAgB,CAACK,WAAW;AAC5B;AACAH,kBAAkB,CAACI,OAAO,EAC1BJ,kBAAkB,CAACK,oBAAoB,EACvCL,kBAAkB,CAACM,OAAO,EAC1BN,kBAAkB,CAACO,OAAO,EAC1BP,kBAAkB,CAACQ,OAAO,EAC1BR,kBAAkB,CAACS,OAAO,EAC1BT,kBAAkB,CAACU,OAAO,EAC1BV,kBAAkB,CAACW,OAAO,EAC1BX,kBAAkB,CAACY,OAAO,EAC1BZ,kBAAkB,CAACa,OAAO,EAC1Bb,kBAAkB,CAACc,OAAO,EAC1Bd,kBAAkB,CAACe,OAAO,EAC1Bf,kBAAkB,CAACgB,OAAO,CAC7B;AAACjB,OAAA,CAAAE,kBAAA,GAAAA,kBAAA"}
|
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.d.ts
CHANGED
|
@@ -43,7 +43,11 @@ export declare enum MatrixCapabilities {
|
|
|
43
43
|
/**
|
|
44
44
|
* @experimental It is not recommended to rely on this existing - it can be removed without notice.
|
|
45
45
|
*/
|
|
46
|
-
MSC4407ReceiveStickyEvent = "org.matrix.msc4407.receive.sticky_event"
|
|
46
|
+
MSC4407ReceiveStickyEvent = "org.matrix.msc4407.receive.sticky_event",
|
|
47
|
+
/**
|
|
48
|
+
* @experimental It is not recommended to rely on this existing - it can be removed without notice.
|
|
49
|
+
*/
|
|
50
|
+
MSC4515RtcTransports = "org.matrix.msc4515.rtc_transports"
|
|
47
51
|
}
|
|
48
52
|
export type Capability = MatrixCapabilities | string;
|
|
49
53
|
export declare const StickerpickerCapabilities: Capability[];
|
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js
CHANGED
|
@@ -36,6 +36,7 @@ var MatrixCapabilities = /*#__PURE__*/function (MatrixCapabilities) {
|
|
|
36
36
|
MatrixCapabilities["MSC4157UpdateDelayedEvent"] = "org.matrix.msc4157.update_delayed_event";
|
|
37
37
|
MatrixCapabilities["MSC4407SendStickyEvent"] = "org.matrix.msc4407.send.sticky_event";
|
|
38
38
|
MatrixCapabilities["MSC4407ReceiveStickyEvent"] = "org.matrix.msc4407.receive.sticky_event";
|
|
39
|
+
MatrixCapabilities["MSC4515RtcTransports"] = "org.matrix.msc4515.rtc_transports";
|
|
39
40
|
return MatrixCapabilities;
|
|
40
41
|
}({});
|
|
41
42
|
exports.MatrixCapabilities = MatrixCapabilities;
|
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/Capabilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Capabilities.js","names":["MatrixCapabilities","exports","StickerpickerCapabilities","StickerSending","VideoConferenceCapabilities","AlwaysOnScreen","isTimelineCapability","capability","startsWith","isTimelineCapabilityFor","roomId","concat","getTimelineRoomIDFromCapability","substring","indexOf"],"sources":["../../src/interfaces/Capabilities.ts"],"sourcesContent":["/*\n * Copyright 2020 - 2021 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Symbols } from \"../Symbols\";\n\nexport enum MatrixCapabilities {\n Screenshots = \"m.capability.screenshot\",\n StickerSending = \"m.sticker\",\n AlwaysOnScreen = \"m.always_on_screen\",\n /**\n * @deprecated It is not recommended to rely on this existing - it can be removed without notice.\n * Ask Element to not give the option to move the widget into a separate tab.\n */\n RequiresClient = \"io.element.requires_client\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2931Navigate = \"org.matrix.msc2931.navigate\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3846TurnServers = \"town.robin.msc3846.turn_servers\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3973UserDirectorySearch = \"org.matrix.msc3973.user_directory_search\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039UploadFile = \"org.matrix.msc4039.upload_file\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039DownloadFile = \"org.matrix.msc4039.download_file\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4157SendDelayedEvent = \"org.matrix.msc4157.send.delayed_event\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4157UpdateDelayedEvent = \"org.matrix.msc4157.update_delayed_event\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4407SendStickyEvent = \"org.matrix.msc4407.send.sticky_event\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4407ReceiveStickyEvent = \"org.matrix.msc4407.receive.sticky_event\",\n}\n\nexport type Capability = MatrixCapabilities | string;\n\nexport const StickerpickerCapabilities: Capability[] = [MatrixCapabilities.StickerSending];\nexport const VideoConferenceCapabilities: Capability[] = [MatrixCapabilities.AlwaysOnScreen];\n\n/**\n * Determines if a capability is a capability for a timeline.\n * @param {Capability} capability The capability to test.\n * @returns {boolean} True if a timeline capability, false otherwise.\n */\nexport function isTimelineCapability(capability: Capability): boolean {\n // TODO: Change when MSC2762 becomes stable.\n return capability?.startsWith(\"org.matrix.msc2762.timeline:\");\n}\n\n/**\n * Determines if a capability is a timeline capability for the given room.\n * @param {Capability} capability The capability to test.\n * @param {string | Symbols.AnyRoom} roomId The room ID, or `Symbols.AnyRoom` for that designation.\n * @returns {boolean} True if a matching capability, false otherwise.\n */\nexport function isTimelineCapabilityFor(capability: Capability, roomId: string | Symbols.AnyRoom): boolean {\n return capability === `org.matrix.msc2762.timeline:${roomId}`;\n}\n\n/**\n * Gets the room ID described by a timeline capability.\n * @param {string} capability The capability to parse.\n * @returns {string} The room ID.\n */\nexport function getTimelineRoomIDFromCapability(capability: Capability): string {\n return capability.substring(capability.indexOf(\":\") + 1);\n}\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,IAkBYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAAAC,OAAA,CAAAD,kBAAA,GAAAA,kBAAA;
|
|
1
|
+
{"version":3,"file":"Capabilities.js","names":["MatrixCapabilities","exports","StickerpickerCapabilities","StickerSending","VideoConferenceCapabilities","AlwaysOnScreen","isTimelineCapability","capability","startsWith","isTimelineCapabilityFor","roomId","concat","getTimelineRoomIDFromCapability","substring","indexOf"],"sources":["../../src/interfaces/Capabilities.ts"],"sourcesContent":["/*\n * Copyright 2020 - 2021 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Symbols } from \"../Symbols\";\n\nexport enum MatrixCapabilities {\n Screenshots = \"m.capability.screenshot\",\n StickerSending = \"m.sticker\",\n AlwaysOnScreen = \"m.always_on_screen\",\n /**\n * @deprecated It is not recommended to rely on this existing - it can be removed without notice.\n * Ask Element to not give the option to move the widget into a separate tab.\n */\n RequiresClient = \"io.element.requires_client\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2931Navigate = \"org.matrix.msc2931.navigate\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3846TurnServers = \"town.robin.msc3846.turn_servers\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3973UserDirectorySearch = \"org.matrix.msc3973.user_directory_search\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039UploadFile = \"org.matrix.msc4039.upload_file\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039DownloadFile = \"org.matrix.msc4039.download_file\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4157SendDelayedEvent = \"org.matrix.msc4157.send.delayed_event\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4157UpdateDelayedEvent = \"org.matrix.msc4157.update_delayed_event\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4407SendStickyEvent = \"org.matrix.msc4407.send.sticky_event\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4407ReceiveStickyEvent = \"org.matrix.msc4407.receive.sticky_event\",\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4515RtcTransports = \"org.matrix.msc4515.rtc_transports\",\n}\n\nexport type Capability = MatrixCapabilities | string;\n\nexport const StickerpickerCapabilities: Capability[] = [MatrixCapabilities.StickerSending];\nexport const VideoConferenceCapabilities: Capability[] = [MatrixCapabilities.AlwaysOnScreen];\n\n/**\n * Determines if a capability is a capability for a timeline.\n * @param {Capability} capability The capability to test.\n * @returns {boolean} True if a timeline capability, false otherwise.\n */\nexport function isTimelineCapability(capability: Capability): boolean {\n // TODO: Change when MSC2762 becomes stable.\n return capability?.startsWith(\"org.matrix.msc2762.timeline:\");\n}\n\n/**\n * Determines if a capability is a timeline capability for the given room.\n * @param {Capability} capability The capability to test.\n * @param {string | Symbols.AnyRoom} roomId The room ID, or `Symbols.AnyRoom` for that designation.\n * @returns {boolean} True if a matching capability, false otherwise.\n */\nexport function isTimelineCapabilityFor(capability: Capability, roomId: string | Symbols.AnyRoom): boolean {\n return capability === `org.matrix.msc2762.timeline:${roomId}`;\n}\n\n/**\n * Gets the room ID described by a timeline capability.\n * @param {string} capability The capability to parse.\n * @returns {string} The room ID.\n */\nexport function getTimelineRoomIDFromCapability(capability: Capability): string {\n return capability.substring(capability.indexOf(\":\") + 1);\n}\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,IAkBYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAAAC,OAAA,CAAAD,kBAAA,GAAAA,kBAAA;AAqDvB,IAAME,yBAAuC,GAAG,CAACF,kBAAkB,CAACG,cAAc,CAAC;AAACF,OAAA,CAAAC,yBAAA,GAAAA,yBAAA;AACpF,IAAME,2BAAyC,GAAG,CAACJ,kBAAkB,CAACK,cAAc,CAAC;;AAE5F;AACA;AACA;AACA;AACA;AAJAJ,OAAA,CAAAG,2BAAA,GAAAA,2BAAA;AAKO,SAASE,oBAAoBA,CAACC,UAAsB,EAAW;EAClE;EACA,OAAOA,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEC,UAAU,CAAC,8BAA8B,CAAC;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,uBAAuBA,CAACF,UAAsB,EAAEG,MAAgC,EAAW;EACvG,OAAOH,UAAU,oCAAAI,MAAA,CAAoCD,MAAM,CAAE;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASE,+BAA+BA,CAACL,UAAsB,EAAU;EAC5E,OAAOA,UAAU,CAACM,SAAS,CAACN,UAAU,CAACO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC5D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IWidgetApiRequest, IWidgetApiRequestData } from "./IWidgetApiRequest";
|
|
2
|
+
import { IWidgetApiResponseData } from "./IWidgetApiResponse";
|
|
3
|
+
import { WidgetApiFromWidgetAction } from "./WidgetApiAction";
|
|
4
|
+
export interface IRtcTransport {
|
|
5
|
+
/**
|
|
6
|
+
* The globally unique transport identifier. Follows the Common Namespaced
|
|
7
|
+
* Identifier Grammar (without the namespacing requirement).
|
|
8
|
+
*/
|
|
9
|
+
type: string;
|
|
10
|
+
/** Further transport-specific properties, defined by the transport's specification.*/
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface IRtcTransportsFromWidgetRequestData extends IWidgetApiRequestData {
|
|
14
|
+
}
|
|
15
|
+
export interface IRtcTransportsFromWidgetActionRequest extends IWidgetApiRequest {
|
|
16
|
+
action: WidgetApiFromWidgetAction.MSC4515GetRtcTransports;
|
|
17
|
+
data: IRtcTransportsFromWidgetRequestData;
|
|
18
|
+
}
|
|
19
|
+
export interface IRtcTransportsFromWidgetResponseData extends IWidgetApiResponseData {
|
|
20
|
+
rtc_transports: IRtcTransport[];
|
|
21
|
+
}
|
|
22
|
+
export interface IRtcTransportsFromWidgetActionResponse extends IRtcTransportsFromWidgetActionRequest {
|
|
23
|
+
response: IRtcTransportsFromWidgetResponseData;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RtcTransportsAction.js","names":[],"sources":["../../src/interfaces/RtcTransportsAction.ts"],"sourcesContent":["/*\n * Copyright 2026 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IWidgetApiRequest, IWidgetApiRequestData } from \"./IWidgetApiRequest\";\nimport { IWidgetApiResponseData } from \"./IWidgetApiResponse\";\nimport { WidgetApiFromWidgetAction } from \"./WidgetApiAction\";\n\nexport interface IRtcTransport {\n /**\n * The globally unique transport identifier. Follows the Common Namespaced\n * Identifier Grammar (without the namespacing requirement).\n */\n type: string;\n /** Further transport-specific properties, defined by the transport's specification.*/\n [key: string]: unknown;\n}\n\nexport interface IRtcTransportsFromWidgetRequestData extends IWidgetApiRequestData {}\n\nexport interface IRtcTransportsFromWidgetActionRequest extends IWidgetApiRequest {\n action: WidgetApiFromWidgetAction.MSC4515GetRtcTransports;\n data: IRtcTransportsFromWidgetRequestData;\n}\n\nexport interface IRtcTransportsFromWidgetResponseData extends IWidgetApiResponseData {\n rtc_transports: IRtcTransport[];\n}\n\nexport interface IRtcTransportsFromWidgetActionResponse extends IRtcTransportsFromWidgetActionRequest {\n response: IRtcTransportsFromWidgetResponseData;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendEventAction.js","names":[],"sources":["../../src/interfaces/SendEventAction.ts"],"sourcesContent":["/*\n * Copyright 2020 - 2024 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IWidgetApiRequest, IWidgetApiRequestData } from \"./IWidgetApiRequest\";\nimport { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from \"./WidgetApiAction\";\nimport { IWidgetApiResponseData } from \"./IWidgetApiResponse\";\nimport { IRoomEvent } from \"./IRoomEvent\";\n\nexport interface ISendEventFromWidgetRequestData extends IWidgetApiRequestData {\n state_key?: string; // eslint-disable-line camelcase\n type: string;\n content: unknown;\n room_id?: string; // eslint-disable-line camelcase\n\n // MSC4157\n delay?: number; // eslint-disable-line camelcase\n parent_delay_id?: string; // eslint-disable-line camelcase\n\n // MSC4407\n sticky_duration_ms?: number;\n}\n\nexport interface ISendEventFromWidgetActionRequest extends IWidgetApiRequest {\n action: WidgetApiFromWidgetAction.SendEvent;\n data: ISendEventFromWidgetRequestData;\n}\n\nexport interface ISendEventFromWidgetResponseData extends IWidgetApiResponseData {\n room_id: string; // eslint-disable-line camelcase\n event_id?: string; // eslint-disable-line camelcase\n\n // MSC4157\n delay_id?: string; // eslint-disable-line camelcase\n}\n\nexport interface ISendEventFromWidgetActionResponse extends ISendEventFromWidgetActionRequest {\n response: ISendEventFromWidgetResponseData;\n}\n\nexport interface ISendEventToWidgetRequestData extends IWidgetApiRequestData, IRoomEvent {}\n\nexport interface ISendEventToWidgetActionRequest extends IWidgetApiRequest {\n action: WidgetApiToWidgetAction.SendEvent;\n data: ISendEventToWidgetRequestData;\n}\n\nexport interface ISendEventToWidgetResponseData extends IWidgetApiResponseData {\n // nothing\n}\n\nexport interface ISendEventToWidgetActionResponse extends ISendEventToWidgetActionRequest {\n response: ISendEventToWidgetResponseData;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"SendEventAction.js","names":[],"sources":["../../src/interfaces/SendEventAction.ts"],"sourcesContent":["/*\n * Copyright 2020 - 2024 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IWidgetApiRequest, IWidgetApiRequestData } from \"./IWidgetApiRequest\";\nimport { WidgetApiFromWidgetAction, WidgetApiToWidgetAction } from \"./WidgetApiAction\";\nimport { IWidgetApiResponseData } from \"./IWidgetApiResponse\";\nimport { IRoomEvent } from \"./IRoomEvent\";\n\nexport interface ISendEventFromWidgetRequestData extends IWidgetApiRequestData {\n state_key?: string; // eslint-disable-line camelcase\n type: string;\n content: unknown;\n room_id?: string; // eslint-disable-line camelcase\n\n // MSC4157\n delay?: number; // eslint-disable-line camelcase\n /** @deprecated */\n parent_delay_id?: string; // eslint-disable-line camelcase\n\n // MSC4407\n sticky_duration_ms?: number;\n}\n\nexport interface ISendEventFromWidgetActionRequest extends IWidgetApiRequest {\n action: WidgetApiFromWidgetAction.SendEvent;\n data: ISendEventFromWidgetRequestData;\n}\n\nexport interface ISendEventFromWidgetResponseData extends IWidgetApiResponseData {\n room_id: string; // eslint-disable-line camelcase\n event_id?: string; // eslint-disable-line camelcase\n\n // MSC4157\n delay_id?: string; // eslint-disable-line camelcase\n}\n\nexport interface ISendEventFromWidgetActionResponse extends ISendEventFromWidgetActionRequest {\n response: ISendEventFromWidgetResponseData;\n}\n\nexport interface ISendEventToWidgetRequestData extends IWidgetApiRequestData, IRoomEvent {}\n\nexport interface ISendEventToWidgetActionRequest extends IWidgetApiRequest {\n action: WidgetApiToWidgetAction.SendEvent;\n data: ISendEventToWidgetRequestData;\n}\n\nexport interface ISendEventToWidgetResponseData extends IWidgetApiResponseData {\n // nothing\n}\n\nexport interface ISendEventToWidgetActionResponse extends ISendEventToWidgetActionRequest {\n response: ISendEventToWidgetResponseData;\n}\n"],"mappings":""}
|
|
@@ -64,6 +64,10 @@ export declare enum WidgetApiFromWidgetAction {
|
|
|
64
64
|
/**
|
|
65
65
|
* @experimental It is not recommended to rely on this existing - it can be removed without notice.
|
|
66
66
|
*/
|
|
67
|
-
MSC4157UpdateDelayedEvent = "org.matrix.msc4157.update_delayed_event"
|
|
67
|
+
MSC4157UpdateDelayedEvent = "org.matrix.msc4157.update_delayed_event",
|
|
68
|
+
/**
|
|
69
|
+
* @experimental It is not recommended to rely on this existing - it can be removed without notice.
|
|
70
|
+
*/
|
|
71
|
+
MSC4515GetRtcTransports = "org.matrix.msc4515.get_rtc_transports"
|
|
68
72
|
}
|
|
69
73
|
export type WidgetApiAction = WidgetApiToWidgetAction | WidgetApiFromWidgetAction | string;
|
package/node_modules/matrix-js-sdk/node_modules/matrix-widget-api/lib/interfaces/WidgetApiAction.js
CHANGED
|
@@ -61,6 +61,7 @@ var WidgetApiFromWidgetAction = /*#__PURE__*/function (WidgetApiFromWidgetAction
|
|
|
61
61
|
WidgetApiFromWidgetAction["MSC4039UploadFileAction"] = "org.matrix.msc4039.upload_file";
|
|
62
62
|
WidgetApiFromWidgetAction["MSC4039DownloadFileAction"] = "org.matrix.msc4039.download_file";
|
|
63
63
|
WidgetApiFromWidgetAction["MSC4157UpdateDelayedEvent"] = "org.matrix.msc4157.update_delayed_event";
|
|
64
|
+
WidgetApiFromWidgetAction["MSC4515GetRtcTransports"] = "org.matrix.msc4515.get_rtc_transports";
|
|
64
65
|
return WidgetApiFromWidgetAction;
|
|
65
66
|
}({});
|
|
66
67
|
exports.WidgetApiFromWidgetAction = WidgetApiFromWidgetAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetApiAction.js","names":["WidgetApiToWidgetAction","exports","WidgetApiFromWidgetAction"],"sources":["../../src/interfaces/WidgetApiAction.ts"],"sourcesContent":["/*\n * Copyright 2020 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum WidgetApiToWidgetAction {\n SupportedApiVersions = \"supported_api_versions\",\n Capabilities = \"capabilities\",\n NotifyCapabilities = \"notify_capabilities\",\n ThemeChange = \"theme_change\",\n LanguageChange = \"language_change\",\n TakeScreenshot = \"screenshot\",\n UpdateVisibility = \"visibility\",\n OpenIDCredentials = \"openid_credentials\",\n WidgetConfig = \"widget_config\",\n CloseModalWidget = \"close_modal\",\n ButtonClicked = \"button_clicked\",\n SendEvent = \"send_event\",\n SendToDevice = \"send_to_device\",\n UpdateState = \"update_state\",\n UpdateTurnServers = \"update_turn_servers\",\n}\n\nexport enum WidgetApiFromWidgetAction {\n SupportedApiVersions = \"supported_api_versions\",\n ContentLoaded = \"content_loaded\",\n SendSticker = \"m.sticker\",\n UpdateAlwaysOnScreen = \"set_always_on_screen\",\n GetOpenIDCredentials = \"get_openid\",\n CloseModalWidget = \"close_modal\",\n OpenModalWidget = \"open_modal\",\n SetModalButtonEnabled = \"set_button_enabled\",\n SendEvent = \"send_event\",\n SendToDevice = \"send_to_device\",\n WatchTurnServers = \"watch_turn_servers\",\n UnwatchTurnServers = \"unwatch_turn_servers\",\n\n BeeperReadRoomAccountData = \"com.beeper.read_room_account_data\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2876ReadEvents = \"org.matrix.msc2876.read_events\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2931Navigate = \"org.matrix.msc2931.navigate\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2974RenegotiateCapabilities = \"org.matrix.msc2974.request_capabilities\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3869ReadRelations = \"org.matrix.msc3869.read_relations\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3973UserDirectorySearch = \"org.matrix.msc3973.user_directory_search\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039GetMediaConfigAction = \"org.matrix.msc4039.get_media_config\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039UploadFileAction = \"org.matrix.msc4039.upload_file\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039DownloadFileAction = \"org.matrix.msc4039.download_file\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4157UpdateDelayedEvent = \"org.matrix.msc4157.update_delayed_event\",\n}\n\nexport type WidgetApiAction = WidgetApiToWidgetAction | WidgetApiFromWidgetAction | string;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,IAgBYA,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;AAAAC,OAAA,CAAAD,uBAAA,GAAAA,uBAAA;AAAA,IAkBvBE,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;AAAAD,OAAA,CAAAC,yBAAA,GAAAA,yBAAA"}
|
|
1
|
+
{"version":3,"file":"WidgetApiAction.js","names":["WidgetApiToWidgetAction","exports","WidgetApiFromWidgetAction"],"sources":["../../src/interfaces/WidgetApiAction.ts"],"sourcesContent":["/*\n * Copyright 2020 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport enum WidgetApiToWidgetAction {\n SupportedApiVersions = \"supported_api_versions\",\n Capabilities = \"capabilities\",\n NotifyCapabilities = \"notify_capabilities\",\n ThemeChange = \"theme_change\",\n LanguageChange = \"language_change\",\n TakeScreenshot = \"screenshot\",\n UpdateVisibility = \"visibility\",\n OpenIDCredentials = \"openid_credentials\",\n WidgetConfig = \"widget_config\",\n CloseModalWidget = \"close_modal\",\n ButtonClicked = \"button_clicked\",\n SendEvent = \"send_event\",\n SendToDevice = \"send_to_device\",\n UpdateState = \"update_state\",\n UpdateTurnServers = \"update_turn_servers\",\n}\n\nexport enum WidgetApiFromWidgetAction {\n SupportedApiVersions = \"supported_api_versions\",\n ContentLoaded = \"content_loaded\",\n SendSticker = \"m.sticker\",\n UpdateAlwaysOnScreen = \"set_always_on_screen\",\n GetOpenIDCredentials = \"get_openid\",\n CloseModalWidget = \"close_modal\",\n OpenModalWidget = \"open_modal\",\n SetModalButtonEnabled = \"set_button_enabled\",\n SendEvent = \"send_event\",\n SendToDevice = \"send_to_device\",\n WatchTurnServers = \"watch_turn_servers\",\n UnwatchTurnServers = \"unwatch_turn_servers\",\n\n BeeperReadRoomAccountData = \"com.beeper.read_room_account_data\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2876ReadEvents = \"org.matrix.msc2876.read_events\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2931Navigate = \"org.matrix.msc2931.navigate\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC2974RenegotiateCapabilities = \"org.matrix.msc2974.request_capabilities\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3869ReadRelations = \"org.matrix.msc3869.read_relations\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC3973UserDirectorySearch = \"org.matrix.msc3973.user_directory_search\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039GetMediaConfigAction = \"org.matrix.msc4039.get_media_config\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039UploadFileAction = \"org.matrix.msc4039.upload_file\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4039DownloadFileAction = \"org.matrix.msc4039.download_file\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4157UpdateDelayedEvent = \"org.matrix.msc4157.update_delayed_event\",\n\n /**\n * @experimental It is not recommended to rely on this existing - it can be removed without notice.\n */\n MSC4515GetRtcTransports = \"org.matrix.msc4515.get_rtc_transports\",\n}\n\nexport type WidgetApiAction = WidgetApiToWidgetAction | WidgetApiFromWidgetAction | string;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,IAgBYA,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA;AAAAC,OAAA,CAAAD,uBAAA,GAAAA,uBAAA;AAAA,IAkBvBE,yBAAyB,0BAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAzBA,yBAAyB;EAAA,OAAzBA,yBAAyB;AAAA;AAAAD,OAAA,CAAAC,yBAAA,GAAAA,yBAAA"}
|
|
@@ -95,6 +95,10 @@ import {
|
|
|
95
95
|
IGetMediaConfigActionFromWidgetActionRequest,
|
|
96
96
|
IGetMediaConfigActionFromWidgetResponseData,
|
|
97
97
|
} from "./interfaces/GetMediaConfigAction";
|
|
98
|
+
import {
|
|
99
|
+
IRtcTransportsFromWidgetActionRequest,
|
|
100
|
+
IRtcTransportsFromWidgetResponseData,
|
|
101
|
+
} from "./interfaces/RtcTransportsAction";
|
|
98
102
|
import {
|
|
99
103
|
IUpdateDelayedEventFromWidgetActionRequest,
|
|
100
104
|
UpdateDelayedEventAction,
|
|
@@ -626,8 +630,12 @@ export class ClientWidgetApi extends EventEmitter {
|
|
|
626
630
|
});
|
|
627
631
|
}
|
|
628
632
|
|
|
629
|
-
|
|
630
|
-
|
|
633
|
+
if (request.data.parent_delay_id !== undefined) {
|
|
634
|
+
console.warn("Data includes parent_delay_id, but the widgetDriver ignores it");
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
const delay = request.data.delay;
|
|
638
|
+
if (delay !== undefined && !this.hasCapability(MatrixCapabilities.MSC4157SendDelayedEvent)) {
|
|
631
639
|
return this.transport.reply<IWidgetApiErrorResponseData>(request, {
|
|
632
640
|
error: { message: `Missing capability for ${MatrixCapabilities.MSC4157SendDelayedEvent}` },
|
|
633
641
|
});
|
|
@@ -653,10 +661,9 @@ export class ClientWidgetApi extends EventEmitter {
|
|
|
653
661
|
});
|
|
654
662
|
}
|
|
655
663
|
|
|
656
|
-
if (
|
|
664
|
+
if (delay !== undefined) {
|
|
657
665
|
sendEventPromise = this.driver.sendDelayedEvent(
|
|
658
|
-
|
|
659
|
-
request.data.parent_delay_id ?? null,
|
|
666
|
+
delay,
|
|
660
667
|
request.data.type,
|
|
661
668
|
request.data.content || {},
|
|
662
669
|
request.data.state_key,
|
|
@@ -690,21 +697,16 @@ export class ClientWidgetApi extends EventEmitter {
|
|
|
690
697
|
request.data.room_id,
|
|
691
698
|
];
|
|
692
699
|
|
|
693
|
-
if (
|
|
700
|
+
if (delay !== undefined && request.data.sticky_duration_ms) {
|
|
694
701
|
sendEventPromise = this.driver.sendDelayedStickyEvent(
|
|
695
|
-
|
|
696
|
-
request.data.parent_delay_id ?? null,
|
|
702
|
+
delay,
|
|
697
703
|
request.data.sticky_duration_ms,
|
|
698
704
|
request.data.type,
|
|
699
705
|
content,
|
|
700
706
|
request.data.room_id,
|
|
701
707
|
);
|
|
702
|
-
} else if (
|
|
703
|
-
sendEventPromise = this.driver.sendDelayedEvent(
|
|
704
|
-
request.data.delay ?? null,
|
|
705
|
-
request.data.parent_delay_id ?? null,
|
|
706
|
-
...params,
|
|
707
|
-
);
|
|
708
|
+
} else if (delay !== undefined) {
|
|
709
|
+
sendEventPromise = this.driver.sendDelayedEvent(delay, ...params);
|
|
708
710
|
} else if (request.data.sticky_duration_ms) {
|
|
709
711
|
sendEventPromise = this.driver.sendStickyEvent(
|
|
710
712
|
request.data.sticky_duration_ms,
|
|
@@ -973,6 +975,25 @@ export class ClientWidgetApi extends EventEmitter {
|
|
|
973
975
|
}
|
|
974
976
|
}
|
|
975
977
|
|
|
978
|
+
private async handleRtcTransports(request: IRtcTransportsFromWidgetActionRequest): Promise<void> {
|
|
979
|
+
if (!this.hasCapability(MatrixCapabilities.MSC4515RtcTransports)) {
|
|
980
|
+
return this.transport.reply<IWidgetApiErrorResponseData>(request, {
|
|
981
|
+
error: { message: "Missing capability" },
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
try {
|
|
986
|
+
const result = await this.driver.getRtcTransports();
|
|
987
|
+
|
|
988
|
+
return this.transport.reply<IRtcTransportsFromWidgetResponseData>(request, {
|
|
989
|
+
rtc_transports: result.rtc_transports,
|
|
990
|
+
});
|
|
991
|
+
} catch (e) {
|
|
992
|
+
console.error("error while getting the RTC transports", e);
|
|
993
|
+
this.handleDriverError(e, request, "Unexpected error while getting the RTC transports");
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
976
997
|
private async handleUploadFile(request: IUploadFileActionFromWidgetActionRequest): Promise<void> {
|
|
977
998
|
if (!this.hasCapability(MatrixCapabilities.MSC4039UploadFile)) {
|
|
978
999
|
return this.transport.reply<IWidgetApiErrorResponseData>(request, {
|
|
@@ -1056,6 +1077,8 @@ export class ClientWidgetApi extends EventEmitter {
|
|
|
1056
1077
|
return this.handleReadRoomAccountData(<IReadRoomAccountDataFromWidgetActionRequest>ev.detail);
|
|
1057
1078
|
case WidgetApiFromWidgetAction.MSC4039GetMediaConfigAction:
|
|
1058
1079
|
return this.handleGetMediaConfig(<IGetMediaConfigActionFromWidgetActionRequest>ev.detail);
|
|
1080
|
+
case WidgetApiFromWidgetAction.MSC4515GetRtcTransports:
|
|
1081
|
+
return this.handleRtcTransports(<IRtcTransportsFromWidgetActionRequest>ev.detail);
|
|
1059
1082
|
case WidgetApiFromWidgetAction.MSC4039UploadFileAction:
|
|
1060
1083
|
return this.handleUploadFile(<IUploadFileActionFromWidgetActionRequest>ev.detail);
|
|
1061
1084
|
case WidgetApiFromWidgetAction.MSC4039DownloadFileAction:
|