@openclaw/matrix 2026.9.5 → 2026.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/icon.png +0 -0
- package/dist/.setup/account-selection-B7axQ80R.mjs +196 -0
- package/dist/.setup/accounts-WkgrIxMt.mjs +138 -0
- package/dist/.setup/approval-handler.runtime-C-pw3NvY.mjs +408 -0
- package/dist/.setup/approval-reactions-BrS5ECU0.mjs +196 -0
- package/dist/.setup/channel-DXenXmj0.mjs +1198 -0
- package/dist/.setup/channel.runtime-BXUawOno.mjs +71 -0
- package/dist/.setup/channel.setup-DWfLaXqT.mjs +372 -0
- package/dist/.setup/cli-IhZO2OEj.mjs +1300 -0
- package/dist/.setup/cli-metadata-nowEgdY0.mjs +22 -0
- package/dist/.setup/client-BXATebyo.mjs +27 -0
- package/dist/.setup/client-Ccv77kwh.mjs +916 -0
- package/dist/.setup/client-bootstrap-BiHX55is.mjs +75 -0
- package/dist/.setup/config-update-5m1Un5gJ.mjs +145 -0
- package/dist/.setup/create-client-DRZ580E3.mjs +64 -0
- package/dist/.setup/credentials-C9qDO5-2.mjs +74 -0
- package/dist/.setup/credentials-read-KD4o5biZ.mjs +77 -0
- package/dist/.setup/crypto-runtime-DPjIDF8H.mjs +1077 -0
- package/dist/.setup/crypto-snapshot-doctor.runtime-44FrCPR7.mjs +91 -0
- package/dist/.setup/deps-CLQ4EOq7.mjs +162 -0
- package/dist/.setup/device-health-U-yoVjPw.mjs +21 -0
- package/dist/.setup/direct-management-Cn2t8n1V.mjs +300 -0
- package/dist/.setup/directory-live-_sw-Q7KO.mjs +118 -0
- package/dist/.setup/doctor-DMvEBx6o.mjs +49 -0
- package/dist/.setup/doctor-contract-De6geW0h.mjs +350 -0
- package/dist/.setup/draft-stream-CdVMstpR.mjs +157 -0
- package/dist/.setup/encryption-guidance-B6797jNA.mjs +16 -0
- package/dist/.setup/exec-approvals-fsiMQ1ce.mjs +186 -0
- package/dist/.setup/file-sync-store-B-9bMb_O.mjs +187 -0
- package/dist/.setup/http-client-C1XvVD3K.mjs +362 -0
- package/dist/.setup/idb-persistence-DBvfre1X.mjs +227 -0
- package/dist/.setup/idb-persistence-lock-D_mDu4Cf.mjs +27 -0
- package/dist/.setup/inbound-dedupe-BGrMrTTu.mjs +48 -0
- package/dist/.setup/joined-room-encryption-TZoOKXgh.mjs +67 -0
- package/dist/.setup/logger-CVv56jzH.mjs +74 -0
- package/dist/.setup/logging-mhnFQGzB.mjs +96 -0
- package/dist/.setup/messages-Buz27pi5.mjs +324 -0
- package/dist/.setup/monitor-BBg5qgov.mjs +4352 -0
- package/dist/.setup/onboarding-hJaieQj5.mjs +482 -0
- package/dist/.setup/outbound-C9vBijaH.mjs +199 -0
- package/dist/.setup/profile-B3DD2jYa.mjs +100 -0
- package/dist/.setup/profile-update-CmxIAd4c.mjs +66 -0
- package/dist/.setup/reaction-events-mnzc_JvP.mjs +168 -0
- package/dist/.setup/resolve-targets-BFq3q4c9.mjs +87 -0
- package/dist/.setup/room-info-BbTGRJcR.mjs +134 -0
- package/dist/.setup/sdk-DmRVM0VA.mjs +1907 -0
- package/dist/.setup/send-GOF64QRc.mjs +2117 -0
- package/dist/.setup/send-currentness-C2rMVVIQ.mjs +87 -0
- package/dist/.setup/setup-bootstrap-AzalcuCW.mjs +62 -0
- package/dist/.setup/setup-core-BeifoeL4.mjs +377 -0
- package/dist/.setup/setup-plugin-api-Bsbdw41x.mjs +3 -0
- package/dist/.setup/startup-verification-Aiy_xVdI.mjs +204 -0
- package/dist/.setup/storage-BXS2cB2i.mjs +288 -0
- package/dist/.setup/storage-metadata-BDRZ7vpX.mjs +371 -0
- package/dist/.setup/storage-paths-B51JM-pC.mjs +53 -0
- package/dist/.setup/subagent-hooks-D5kd_kzN.mjs +52 -0
- package/dist/.setup/sync-cache-state-C6sEmvJK.mjs +192 -0
- package/dist/.setup/thread-bindings-jXu_9cHE.mjs +443 -0
- package/dist/.setup/thread-bindings-shared-hxKkYC1W.mjs +89 -0
- package/dist/.setup/tool-actions-Ce7Okg6m.mjs +746 -0
- package/dist/.setup/url-validation-CF6pG6eE.mjs +36 -0
- package/dist/.setup/verification-C45rOZkM.mjs +329 -0
- package/dist/api.js +7 -7
- package/dist/channel-plugin-api.js +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +144 -290
- package/dist/helper-api.js +3 -3
- package/dist/index.js +1 -1
- package/dist/plugin-entry.handlers.runtime.js +17 -9
- package/dist/runtime-api.js +4 -4
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/thread-bindings-runtime.js +1 -1
- package/node_modules/@babel/runtime/package.json +486 -0
- package/node_modules/@openclaw/fs-safe/CHANGELOG.md +1289 -0
- package/node_modules/@openclaw/fs-safe/LICENSE +22 -0
- package/node_modules/@openclaw/fs-safe/README.md +672 -0
- package/node_modules/@openclaw/fs-safe/SECURITY.md +45 -0
- package/node_modules/@openclaw/fs-safe/dist/absolute-path.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +323 -0
- package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +41 -0
- package/node_modules/@openclaw/fs-safe/dist/advanced.js +40 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-crc32.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-crc32.js +19 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-deadline.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-deadline.js +101 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-durability.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-durability.js +180 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-entry.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-entry.js +85 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-errors.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-errors.js +23 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.js +99 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-input.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-input.js +98 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-kind.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-kind.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-limits.d.ts +56 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-limits.js +131 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-merge.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-merge.js +282 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.js +12 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-plan.d.ts +85 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-plan.js +119 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-read.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-read.js +234 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-staging.js +308 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.d.ts +27 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.js +127 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.js +203 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.js +96 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.js +160 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.d.ts +21 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.js +267 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.js +10 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.js +150 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.js +24 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.js +149 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.js +21 -0
- package/node_modules/@openclaw/fs-safe/dist/archive.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/archive.js +332 -0
- package/node_modules/@openclaw/fs-safe/dist/async-lock.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/async-lock.js +17 -0
- package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/atomic.js +4 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.js +15 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/bounded-read.js +143 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-budget.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-budget.js +9 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-view.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/byte-view.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/clone-metadata.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/clone-metadata.js +36 -0
- package/node_modules/@openclaw/fs-safe/dist/config.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/config.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/containment.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts +21 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-file-input.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-policy.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-policy.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-publication.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-publication.js +29 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.js +245 -0
- package/node_modules/@openclaw/fs-safe/dist/copy.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/copy.js +143 -0
- package/node_modules/@openclaw/fs-safe/dist/create-owned-file.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/create-owned-file.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/create.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/create.js +388 -0
- package/node_modules/@openclaw/fs-safe/dist/creation-boundary.d.ts +60 -0
- package/node_modules/@openclaw/fs-safe/dist/creation-boundary.js +371 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutation-match.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutation-match.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutations.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/deny-mutations.js +96 -0
- package/node_modules/@openclaw/fs-safe/dist/device-path.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/device-path.js +139 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-durability.d.ts +43 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-durability.js +286 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.js +21 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-guard.d.ts +54 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-guard.js +176 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +285 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-receipt.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/directory-receipt.js +121 -0
- package/node_modules/@openclaw/fs-safe/dist/durability.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/durability.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/effective-uid.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/effective-uid.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/error-detail.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/error-detail.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/errors.js +27 -0
- package/node_modules/@openclaw/fs-safe/dist/file-cleanup.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/file-cleanup.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/file-contents.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/file-contents.js +40 -0
- package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.js +190 -0
- package/node_modules/@openclaw/fs-safe/dist/file-hash.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/file-hash.js +296 -0
- package/node_modules/@openclaw/fs-safe/dist/file-identity.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/file-identity.js +56 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.js +98 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +58 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +303 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.js +66 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.js +392 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.d.ts +40 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.js +209 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.js +275 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.js +58 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.js +90 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.js +288 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +199 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.js +341 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/file-lock.js +66 -0
- package/node_modules/@openclaw/fs-safe/dist/file-observation.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/file-observation.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +174 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +110 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +319 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +128 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +62 -0
- package/node_modules/@openclaw/fs-safe/dist/file-store.js +360 -0
- package/node_modules/@openclaw/fs-safe/dist/file-sync.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/file-sync.js +19 -0
- package/node_modules/@openclaw/fs-safe/dist/filename.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/filename.js +138 -0
- package/node_modules/@openclaw/fs-safe/dist/fs.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/fs.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +281 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.js +68 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-native-python.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +127 -0
- package/node_modules/@openclaw/fs-safe/dist/guest.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/guest.js +433 -0
- package/node_modules/@openclaw/fs-safe/dist/home-dir.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/home-dir.js +149 -0
- package/node_modules/@openclaw/fs-safe/dist/index.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/index.js +5 -0
- package/node_modules/@openclaw/fs-safe/dist/install-path.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/install-path.js +136 -0
- package/node_modules/@openclaw/fs-safe/dist/json-document-store.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/json-document-store.js +105 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.js +154 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.js +355 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.js +65 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.d.ts +44 -0
- package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.js +210 -0
- package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/json-store.js +15 -0
- package/node_modules/@openclaw/fs-safe/dist/json-stringify.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/json-stringify.js +7 -0
- package/node_modules/@openclaw/fs-safe/dist/json.d.ts +49 -0
- package/node_modules/@openclaw/fs-safe/dist/json.js +323 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-access.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-access.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.js +84 -0
- package/node_modules/@openclaw/fs-safe/dist/local-roots.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/local-roots.js +160 -0
- package/node_modules/@openclaw/fs-safe/dist/lock-config.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/lock-config.js +12 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.d.ts +30 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.js +224 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-stage.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path-stage.js +56 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/move-path.js +390 -0
- package/node_modules/@openclaw/fs-safe/dist/mutation-authority.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/mutation-authority.js +41 -0
- package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +199 -0
- package/node_modules/@openclaw/fs-safe/dist/native-binding.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/native-config.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/native-config.js +71 -0
- package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.js +37 -0
- package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.js +11 -0
- package/node_modules/@openclaw/fs-safe/dist/native-operations.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/native-operations.js +111 -0
- package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.js +147 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +252 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +478 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.js +61 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.js +209 -0
- package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +45 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +442 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-symlink.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/native-staged-symlink.js +303 -0
- package/node_modules/@openclaw/fs-safe/dist/native.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/native.js +209 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.js +46 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-realpath.d.ts +15 -0
- package/node_modules/@openclaw/fs-safe/dist/opened-realpath.js +102 -0
- package/node_modules/@openclaw/fs-safe/dist/output.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/output.js +139 -0
- package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +46 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch-worker.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch-worker.js +54 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch.js +64 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/owner-dacl.js +39 -0
- package/node_modules/@openclaw/fs-safe/dist/path-case.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/path-case.js +136 -0
- package/node_modules/@openclaw/fs-safe/dist/path-policy.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/path-policy.js +49 -0
- package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +104 -0
- package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.js +37 -0
- package/node_modules/@openclaw/fs-safe/dist/path-segment-route.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/path-segment-route.js +24 -0
- package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.js +394 -0
- package/node_modules/@openclaw/fs-safe/dist/path.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/path.js +185 -0
- package/node_modules/@openclaw/fs-safe/dist/permission-exec.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/permission-exec.js +194 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-public.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-public.js +4 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-windows.d.ts +48 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions-windows.js +319 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions.d.ts +52 -0
- package/node_modules/@openclaw/fs-safe/dist/permissions.js +131 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.js +421 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.d.ts +38 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.js +205 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.js +70 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-open.d.ts +30 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-open.js +98 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-operation.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-operation.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +35 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.js +31 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +185 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +68 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +300 -0
- package/node_modules/@openclaw/fs-safe/dist/positional-read.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/positional-read.js +36 -0
- package/node_modules/@openclaw/fs-safe/dist/private-directory.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/private-directory.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.js +72 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.d.ts +53 -0
- package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.js +358 -0
- package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +341 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +60 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.d.ts +27 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file.d.ts +19 -0
- package/node_modules/@openclaw/fs-safe/dist/publish-file.js +332 -0
- package/node_modules/@openclaw/fs-safe/dist/read-open-flags.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/read-open-flags.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/read-opened-file.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/read-opened-file.js +18 -0
- package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/realpath.js +43 -0
- package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.js +8 -0
- package/node_modules/@openclaw/fs-safe/dist/regular-file.d.ts +37 -0
- package/node_modules/@openclaw/fs-safe/dist/regular-file.js +317 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-directory.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-directory.js +275 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.js +36 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.d.ts +32 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.js +369 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.js +101 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +46 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +168 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.d.ts +21 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.js +123 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.js +10 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mutation.d.ts +26 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-mutation.js +47 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.js +30 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts +49 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.js +368 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +55 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/replace-file.js +356 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.d.ts +26 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.js +193 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file-types.d.ts +50 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/retained-file.js +121 -0
- package/node_modules/@openclaw/fs-safe/dist/root-boundary.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/root-boundary.js +186 -0
- package/node_modules/@openclaw/fs-safe/dist/root-context.d.ts +43 -0
- package/node_modules/@openclaw/fs-safe/dist/root-context.js +233 -0
- package/node_modules/@openclaw/fs-safe/dist/root-create-input.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +93 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.js +225 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.js +28 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +46 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +433 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/root-directory.js +141 -0
- package/node_modules/@openclaw/fs-safe/dist/root-entries.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/root-entries.js +61 -0
- package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-errors.js +92 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +81 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file.d.ts +46 -0
- package/node_modules/@openclaw/fs-safe/dist/root-file.js +205 -0
- package/node_modules/@openclaw/fs-safe/dist/root-handle-context.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/root-handle-context.js +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-impl.d.ts +117 -0
- package/node_modules/@openclaw/fs-safe/dist/root-impl.js +1446 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.js +205 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-observed-path.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/root-observed-path.js +90 -0
- package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts +84 -0
- package/node_modules/@openclaw/fs-safe/dist/root-options.js +18 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-errors.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-errors.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +160 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-observation.d.ts +55 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-observation.js +180 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-stat.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path-stat.js +151 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path.d.ts +53 -0
- package/node_modules/@openclaw/fs-safe/dist/root-path.js +440 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.js +22 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths.d.ts +58 -0
- package/node_modules/@openclaw/fs-safe/dist/root-paths.js +296 -0
- package/node_modules/@openclaw/fs-safe/dist/root-public-types.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/root-public-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/root-read-admission.d.ts +25 -0
- package/node_modules/@openclaw/fs-safe/dist/root-read-admission.js +86 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.js +87 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.js +37 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/root-remove.js +464 -0
- package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.js +34 -0
- package/node_modules/@openclaw/fs-safe/dist/root-walk.d.ts +48 -0
- package/node_modules/@openclaw/fs-safe/dist/root-walk.js +234 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-admission.d.ts +65 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +299 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.js +23 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.d.ts +43 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.js +180 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.js +162 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-mode.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-mode.js +72 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-publication.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-publication.js +85 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-verification.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/root-write-verification.js +95 -0
- package/node_modules/@openclaw/fs-safe/dist/root.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/root.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.d.ts +12 -0
- package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.js +80 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-file.js +333 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-async.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-async.js +58 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.js +68 -0
- package/node_modules/@openclaw/fs-safe/dist/secret.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/secret.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.js +79 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file.d.ts +31 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-file.js +298 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.d.ts +29 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.js +176 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.js +110 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +17 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +301 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +28 -0
- package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +132 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +442 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.d.ts +18 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.js +60 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.d.ts +41 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.js +113 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.d.ts +31 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.d.ts +20 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.js +48 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +113 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts +67 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.js +374 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.js +47 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.js +79 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.d.ts +34 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +228 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.js +55 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.d.ts +68 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.js +282 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-directory.d.ts +27 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-directory.js +148 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.d.ts +16 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.js +57 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-types.d.ts +55 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-file-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-symlink-types.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/staged-symlink-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/stat-observation.d.ts +10 -0
- package/node_modules/@openclaw/fs-safe/dist/stat-observation.js +57 -0
- package/node_modules/@openclaw/fs-safe/dist/store.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/store.js +3 -0
- package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.d.ts +7 -0
- package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.js +88 -0
- package/node_modules/@openclaw/fs-safe/dist/string-coerce.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/string-coerce.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/suppressed-error.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/suppressed-error.js +15 -0
- package/node_modules/@openclaw/fs-safe/dist/symlink-parents.d.ts +11 -0
- package/node_modules/@openclaw/fs-safe/dist/symlink-parents.js +109 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.js +88 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-target.d.ts +31 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-target.js +236 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +387 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +23 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +150 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.d.ts +42 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.js +341 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.js +398 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.js +52 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/temp.d.ts +3 -0
- package/node_modules/@openclaw/fs-safe/dist/temp.js +2 -0
- package/node_modules/@openclaw/fs-safe/dist/test-hooks.d.ts +35 -0
- package/node_modules/@openclaw/fs-safe/dist/test-hooks.js +13 -0
- package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +14 -0
- package/node_modules/@openclaw/fs-safe/dist/text-atomic.js +18 -0
- package/node_modules/@openclaw/fs-safe/dist/timing.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/timing.js +59 -0
- package/node_modules/@openclaw/fs-safe/dist/trash.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/trash.js +245 -0
- package/node_modules/@openclaw/fs-safe/dist/types.d.ts +22 -0
- package/node_modules/@openclaw/fs-safe/dist/types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/unicode-path.d.ts +2 -0
- package/node_modules/@openclaw/fs-safe/dist/unicode-path.js +16 -0
- package/node_modules/@openclaw/fs-safe/dist/walk.d.ts +37 -0
- package/node_modules/@openclaw/fs-safe/dist/walk.js +207 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-alias.d.ts +6 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-alias.js +88 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +93 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +36 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-native.js +73 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-scan.d.ts +28 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-scan.js +300 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-stream.d.ts +8 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-stream.js +32 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-types.d.ts +60 -0
- package/node_modules/@openclaw/fs-safe/dist/watch-types.js +1 -0
- package/node_modules/@openclaw/fs-safe/dist/watch.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/watch.js +530 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-command.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-command.js +34 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-owner.d.ts +24 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-owner.js +100 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.d.ts +39 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.js +122 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.d.ts +5 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.js +21 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.cs +336 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.ps1 +90 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-command.d.ts +33 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-command.js +414 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.d.ts +9 -0
- package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.js +112 -0
- package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +13 -0
- package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +49 -0
- package/node_modules/@openclaw/fs-safe/dist/write-open-flags.d.ts +4 -0
- package/node_modules/@openclaw/fs-safe/dist/write-open-flags.js +27 -0
- package/node_modules/@openclaw/fs-safe/dist/write-queue.d.ts +1 -0
- package/node_modules/@openclaw/fs-safe/dist/write-queue.js +15 -0
- package/node_modules/@openclaw/fs-safe/docs/advanced.md +271 -0
- package/node_modules/@openclaw/fs-safe/docs/archive.md +859 -0
- package/node_modules/@openclaw/fs-safe/docs/assets/readme-banner.jpg +0 -0
- package/node_modules/@openclaw/fs-safe/docs/atomic.md +611 -0
- package/node_modules/@openclaw/fs-safe/docs/config.md +136 -0
- package/node_modules/@openclaw/fs-safe/docs/contributing.md +360 -0
- package/node_modules/@openclaw/fs-safe/docs/copy.md +199 -0
- package/node_modules/@openclaw/fs-safe/docs/creation.md +132 -0
- package/node_modules/@openclaw/fs-safe/docs/directory-identity.md +85 -0
- package/node_modules/@openclaw/fs-safe/docs/durability.md +445 -0
- package/node_modules/@openclaw/fs-safe/docs/entries.md +109 -0
- package/node_modules/@openclaw/fs-safe/docs/errors.md +240 -0
- package/node_modules/@openclaw/fs-safe/docs/file-contents.md +68 -0
- package/node_modules/@openclaw/fs-safe/docs/file-store.md +369 -0
- package/node_modules/@openclaw/fs-safe/docs/filename.md +110 -0
- package/node_modules/@openclaw/fs-safe/docs/guest.md +152 -0
- package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +81 -0
- package/node_modules/@openclaw/fs-safe/docs/index.md +87 -0
- package/node_modules/@openclaw/fs-safe/docs/install-path.md +216 -0
- package/node_modules/@openclaw/fs-safe/docs/install.md +252 -0
- package/node_modules/@openclaw/fs-safe/docs/json-store.md +240 -0
- package/node_modules/@openclaw/fs-safe/docs/json.md +225 -0
- package/node_modules/@openclaw/fs-safe/docs/local-roots.md +150 -0
- package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +205 -0
- package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.6.md +48 -0
- package/node_modules/@openclaw/fs-safe/docs/mutation-policy-proof.md +69 -0
- package/node_modules/@openclaw/fs-safe/docs/native-helper.md +193 -0
- package/node_modules/@openclaw/fs-safe/docs/native.md +351 -0
- package/node_modules/@openclaw/fs-safe/docs/output.md +193 -0
- package/node_modules/@openclaw/fs-safe/docs/path-case.md +64 -0
- package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +74 -0
- package/node_modules/@openclaw/fs-safe/docs/path-scope.md +159 -0
- package/node_modules/@openclaw/fs-safe/docs/path-suffix-aliases.md +204 -0
- package/node_modules/@openclaw/fs-safe/docs/path.md +219 -0
- package/node_modules/@openclaw/fs-safe/docs/permissions.md +352 -0
- package/node_modules/@openclaw/fs-safe/docs/positional-read.md +63 -0
- package/node_modules/@openclaw/fs-safe/docs/private-file-store.md +68 -0
- package/node_modules/@openclaw/fs-safe/docs/public-api.md +188 -0
- package/node_modules/@openclaw/fs-safe/docs/quickstart.md +154 -0
- package/node_modules/@openclaw/fs-safe/docs/reading.md +196 -0
- package/node_modules/@openclaw/fs-safe/docs/regular-file.md +193 -0
- package/node_modules/@openclaw/fs-safe/docs/retained-file.md +115 -0
- package/node_modules/@openclaw/fs-safe/docs/root.md +571 -0
- package/node_modules/@openclaw/fs-safe/docs/secret-file.md +318 -0
- package/node_modules/@openclaw/fs-safe/docs/secure-file.md +112 -0
- package/node_modules/@openclaw/fs-safe/docs/security-model.md +272 -0
- package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +599 -0
- package/node_modules/@openclaw/fs-safe/docs/staged-file.md +192 -0
- package/node_modules/@openclaw/fs-safe/docs/staged-symlink.md +124 -0
- package/node_modules/@openclaw/fs-safe/docs/store.md +129 -0
- package/node_modules/@openclaw/fs-safe/docs/temp.md +780 -0
- package/node_modules/@openclaw/fs-safe/docs/test-hooks.md +110 -0
- package/node_modules/@openclaw/fs-safe/docs/testing.md +399 -0
- package/node_modules/@openclaw/fs-safe/docs/timing.md +123 -0
- package/node_modules/@openclaw/fs-safe/docs/types.md +217 -0
- package/node_modules/@openclaw/fs-safe/docs/walk.md +283 -0
- package/node_modules/@openclaw/fs-safe/docs/watch.md +251 -0
- package/node_modules/@openclaw/fs-safe/docs/writing.md +662 -0
- package/node_modules/@openclaw/fs-safe/package.json +204 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +29 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +29 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +32 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
- package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +29 -0
- package/node_modules/argparse/lib/argparse.js +3820 -0
- package/node_modules/argparse/package.json +38 -0
- package/node_modules/content-type/README.md +81 -0
- package/node_modules/content-type/dist/index.d.ts +54 -0
- package/node_modules/content-type/dist/index.js +291 -0
- package/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/content-type/package.json +61 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/file-type/package.json +275 -0
- package/node_modules/file-type/readme.md +605 -0
- package/node_modules/file-type/source/detectors/zip.js +653 -0
- package/node_modules/file-type/source/index.js +1956 -0
- package/node_modules/file-type/source/supported.js +370 -0
- package/node_modules/immediate/LICENSE.txt +20 -0
- package/node_modules/immediate/README.md +93 -0
- package/node_modules/immediate/dist/immediate.js +75 -0
- package/node_modules/immediate/dist/immediate.min.js +1 -0
- package/node_modules/immediate/lib/browser.js +69 -0
- package/node_modules/immediate/lib/index.js +73 -0
- package/node_modules/immediate/package.json +42 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/jszip/.codeclimate.yml +16 -0
- package/node_modules/jszip/.editorconfig +8 -0
- package/node_modules/jszip/.eslintrc.js +43 -0
- package/node_modules/jszip/.github/FUNDING.yml +1 -0
- package/node_modules/jszip/.github/actions/setup/action.yml +23 -0
- package/node_modules/jszip/.github/workflows/benchmark.yml +38 -0
- package/node_modules/jszip/.github/workflows/main.yml +55 -0
- package/node_modules/jszip/CHANGES.md +210 -0
- package/node_modules/jszip/LICENSE.markdown +651 -0
- package/node_modules/jszip/README.markdown +33 -0
- package/node_modules/jszip/dist/jszip.js +11586 -0
- package/node_modules/jszip/dist/jszip.min.js +13 -0
- package/node_modules/jszip/index.d.ts +344 -0
- package/node_modules/jszip/lib/base64.js +106 -0
- package/node_modules/jszip/lib/compressedObject.js +74 -0
- package/node_modules/jszip/lib/compressions.js +14 -0
- package/node_modules/jszip/lib/crc32.js +77 -0
- package/node_modules/jszip/lib/defaults.js +11 -0
- package/node_modules/jszip/lib/external.js +18 -0
- package/node_modules/jszip/lib/flate.js +85 -0
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
- package/node_modules/jszip/lib/generate/index.js +57 -0
- package/node_modules/jszip/lib/index.js +55 -0
- package/node_modules/jszip/lib/license_header.js +11 -0
- package/node_modules/jszip/lib/load.js +88 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
- package/node_modules/jszip/lib/nodejsUtils.js +57 -0
- package/node_modules/jszip/lib/object.js +384 -0
- package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
- package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
- package/node_modules/jszip/lib/reader/DataReader.js +116 -0
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
- package/node_modules/jszip/lib/reader/StringReader.js +38 -0
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
- package/node_modules/jszip/lib/reader/readerFor.js +28 -0
- package/node_modules/jszip/lib/signature.js +7 -0
- package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
- package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
- package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
- package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
- package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
- package/node_modules/jszip/lib/support.js +38 -0
- package/node_modules/jszip/lib/utf8.js +275 -0
- package/node_modules/jszip/lib/utils.js +510 -0
- package/node_modules/jszip/lib/zipEntries.js +261 -0
- package/node_modules/jszip/lib/zipEntry.js +293 -0
- package/node_modules/jszip/lib/zipObject.js +133 -0
- package/node_modules/jszip/package.json +67 -0
- package/node_modules/jszip/sponsors.md +21 -0
- package/node_modules/jszip/tsconfig.json +101 -0
- package/node_modules/jszip/vendor/FileSaver.js +247 -0
- package/node_modules/lie/README.md +62 -0
- package/node_modules/lie/dist/lie.js +350 -0
- package/node_modules/lie/dist/lie.min.js +1 -0
- package/node_modules/lie/dist/lie.polyfill.js +358 -0
- package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
- package/node_modules/lie/lib/browser.js +273 -0
- package/node_modules/lie/lib/index.js +298 -0
- package/node_modules/lie/license.md +7 -0
- package/node_modules/lie/lie.d.ts +244 -0
- package/node_modules/lie/package.json +69 -0
- package/node_modules/lie/polyfill.js +4 -0
- package/node_modules/matrix-js-sdk/CHANGELOG.md +20 -0
- package/node_modules/matrix-js-sdk/lib/@types/json.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/@types/json.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/client.d.ts +74 -5
- package/node_modules/matrix-js-sdk/lib/client.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/client.js +83 -7
- package/node_modules/matrix-js-sdk/lib/client.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts +42 -23
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.js +7 -0
- package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts +35 -1
- package/node_modules/matrix-js-sdk/lib/embedded.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/embedded.js +49 -1
- package/node_modules/matrix-js-sdk/lib/embedded.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts +0 -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 +3 -22
- package/node_modules/matrix-js-sdk/lib/http-api/fetch.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/http-api/logging.d.ts +10 -0
- package/node_modules/matrix-js-sdk/lib/http-api/logging.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/http-api/logging.js +46 -0
- package/node_modules/matrix-js-sdk/lib/http-api/logging.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts +5 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts +82 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js +25 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +41 -2
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +59 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +7 -4
- package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts +17 -0
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js +68 -29
- package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts +9 -3
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.js +51 -11
- package/node_modules/matrix-js-sdk/lib/models/room-receipts.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts +7 -2
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.js +10 -4
- package/node_modules/matrix-js-sdk/lib/oauth/authorize.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/fetch.d.ts +17 -0
- package/node_modules/matrix-js-sdk/lib/oauth/fetch.d.ts.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/fetch.js +47 -0
- package/node_modules/matrix-js-sdk/lib/oauth/fetch.js.map +1 -0
- package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts +15 -2
- package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/oauth/index.js +33 -12
- package/node_modules/matrix-js-sdk/lib/oauth/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts +17 -0
- 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 +4 -2
- package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.d.ts +6 -26
- 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 +19 -54
- package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js.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 +65 -27
- 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 +17 -0
- package/node_modules/matrix-js-sdk/lib/sliding-sync.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sliding-sync.js +21 -9
- package/node_modules/matrix-js-sdk/lib/sliding-sync.js.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sync.d.ts +9 -1
- package/node_modules/matrix-js-sdk/lib/sync.d.ts.map +1 -1
- package/node_modules/matrix-js-sdk/lib/sync.js +54 -29
- package/node_modules/matrix-js-sdk/lib/sync.js.map +1 -1
- package/node_modules/matrix-js-sdk/package.json +5 -5
- package/node_modules/matrix-js-sdk/src/@types/json.ts +11 -2
- package/node_modules/matrix-js-sdk/src/client.ts +126 -11
- package/node_modules/matrix-js-sdk/src/common-crypto/CryptoBackend.ts +45 -23
- package/node_modules/matrix-js-sdk/src/embedded.ts +67 -4
- package/node_modules/matrix-js-sdk/src/http-api/fetch.ts +2 -23
- package/node_modules/matrix-js-sdk/src/http-api/logging.ts +46 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/EncryptionManager.ts +6 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/LivekitTransport.ts +86 -0
- package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +81 -1
- package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +7 -7
- package/node_modules/matrix-js-sdk/src/matrixrtc/RTCEncryptionManager.ts +80 -31
- package/node_modules/matrix-js-sdk/src/models/room-receipts.ts +54 -10
- package/node_modules/matrix-js-sdk/src/oauth/authorize.ts +10 -2
- package/node_modules/matrix-js-sdk/src/oauth/fetch.ts +54 -0
- package/node_modules/matrix-js-sdk/src/oauth/index.ts +29 -10
- package/node_modules/matrix-js-sdk/src/rust-crypto/index.ts +23 -0
- package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +25 -67
- package/node_modules/matrix-js-sdk/src/sliding-sync-sdk.ts +73 -33
- package/node_modules/matrix-js-sdk/src/sliding-sync.ts +31 -14
- package/node_modules/matrix-js-sdk/src/sync.ts +58 -35
- package/node_modules/pako/CHANGELOG.md +164 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +191 -0
- package/node_modules/pako/dist/pako.js +6818 -0
- package/node_modules/pako/dist/pako.min.js +1 -0
- package/node_modules/pako/dist/pako_deflate.js +3997 -0
- package/node_modules/pako/dist/pako_deflate.min.js +1 -0
- package/node_modules/pako/dist/pako_inflate.js +3300 -0
- package/node_modules/pako/dist/pako_inflate.min.js +1 -0
- package/node_modules/pako/index.js +14 -0
- package/node_modules/pako/lib/deflate.js +400 -0
- package/node_modules/pako/lib/inflate.js +423 -0
- package/node_modules/pako/lib/utils/common.js +105 -0
- package/node_modules/pako/lib/utils/strings.js +187 -0
- package/node_modules/pako/lib/zlib/README +59 -0
- package/node_modules/pako/lib/zlib/adler32.js +51 -0
- package/node_modules/pako/lib/zlib/constants.js +68 -0
- package/node_modules/pako/lib/zlib/crc32.js +59 -0
- package/node_modules/pako/lib/zlib/deflate.js +1874 -0
- package/node_modules/pako/lib/zlib/gzheader.js +58 -0
- package/node_modules/pako/lib/zlib/inffast.js +345 -0
- package/node_modules/pako/lib/zlib/inflate.js +1556 -0
- package/node_modules/pako/lib/zlib/inftrees.js +343 -0
- package/node_modules/pako/lib/zlib/messages.js +32 -0
- package/node_modules/pako/lib/zlib/trees.js +1222 -0
- package/node_modules/pako/lib/zlib/zstream.js +47 -0
- package/node_modules/pako/package.json +44 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +52 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +30 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +31 -0
- package/node_modules/strtok3/lib/types.js +1 -0
- package/node_modules/typebox/build/compile/code.mjs +1 -2
- package/node_modules/typebox/build/compile/validator.mjs +5 -1
- package/node_modules/typebox/build/format/iri.mjs +16 -9
- package/node_modules/typebox/build/guard/emit.mjs +2 -2
- package/node_modules/typebox/build/guard/guard.d.mts +7 -5
- package/node_modules/typebox/build/guard/guard.mjs +14 -9
- package/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/typebox/build/guard/unicode/unicode.d.mts +6 -0
- package/node_modules/typebox/build/guard/unicode/unicode.mjs +35 -0
- package/node_modules/typebox/build/guard/unicode/unicode_segment.mjs +165 -0
- package/node_modules/typebox/build/schema/build.mjs +2 -3
- package/node_modules/typebox/build/schema/engine/_pathing.d.mts +1 -0
- package/node_modules/typebox/build/schema/engine/_pathing.mjs +11 -0
- package/node_modules/typebox/build/schema/engine/_refine.mjs +13 -5
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/format.mjs +9 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/properties.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -1
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/ref.d.mts +1 -1
- package/node_modules/typebox/build/schema/engine/ref.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/schema.mjs +24 -24
- package/node_modules/typebox/build/schema/parse.mjs +3 -0
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +1 -6
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +47 -64
- package/node_modules/typebox/build/system/settings/internal.d.mts +2 -0
- package/node_modules/typebox/build/system/settings/internal.mjs +20 -0
- package/node_modules/typebox/build/system/settings/settings.d.mts +11 -0
- package/node_modules/typebox/build/system/settings/settings.mjs +14 -0
- package/node_modules/typebox/build/type/extends/inference.d.mts +1 -1
- package/node_modules/typebox/build/type/extends/inference.mjs +15 -2
- package/node_modules/typebox/build/type/extends/tuple.d.mts +2 -1
- package/node_modules/typebox/build/type/extends/tuple.mjs +21 -1
- package/node_modules/typebox/build/value/parse/parse.mjs +10 -4
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +3 -1
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/zod/README.md +2 -2
- package/node_modules/zod/compile.cjs +19 -0
- package/node_modules/zod/index.cjs +19 -0
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +8 -7
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v4/classic/external.ts +2 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
- package/node_modules/zod/src/v4/classic/schemas.ts +243 -168
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +60 -9
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +265 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +40 -2
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +95 -1
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +234 -38
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
- package/node_modules/zod/src/v4/core/api.ts +44 -28
- package/node_modules/zod/src/v4/core/checks.ts +62 -102
- package/node_modules/zod/src/v4/core/compile.ts +218 -93
- package/node_modules/zod/src/v4/core/core.ts +1 -3
- package/node_modules/zod/src/v4/core/doc.ts +6 -2
- package/node_modules/zod/src/v4/core/errors.ts +3 -6
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +185 -81
- package/node_modules/zod/src/v4/core/memoizer.ts +75 -28
- package/node_modules/zod/src/v4/core/parse.ts +37 -16
- package/node_modules/zod/src/v4/core/regexes.ts +14 -4
- package/node_modules/zod/src/v4/core/schemas.ts +296 -132
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +35 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +399 -2
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +118 -16
- package/node_modules/zod/src/v4/core/to-json-schema.ts +9 -7
- package/node_modules/zod/src/v4/core/util.ts +218 -147
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/locales/ar.ts +2 -0
- package/node_modules/zod/src/v4/locales/az.ts +2 -0
- package/node_modules/zod/src/v4/locales/be.ts +2 -0
- package/node_modules/zod/src/v4/locales/bg.ts +2 -0
- package/node_modules/zod/src/v4/locales/bn.ts +2 -0
- package/node_modules/zod/src/v4/locales/ca.ts +2 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +2 -0
- package/node_modules/zod/src/v4/locales/cs.ts +2 -0
- package/node_modules/zod/src/v4/locales/da.ts +2 -0
- package/node_modules/zod/src/v4/locales/de.ts +2 -0
- package/node_modules/zod/src/v4/locales/el.ts +2 -0
- package/node_modules/zod/src/v4/locales/en.ts +2 -0
- package/node_modules/zod/src/v4/locales/eo.ts +2 -0
- package/node_modules/zod/src/v4/locales/es.ts +2 -0
- package/node_modules/zod/src/v4/locales/fa.ts +2 -0
- package/node_modules/zod/src/v4/locales/fi.ts +2 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +2 -0
- package/node_modules/zod/src/v4/locales/fr.ts +2 -0
- package/node_modules/zod/src/v4/locales/gu.ts +2 -0
- package/node_modules/zod/src/v4/locales/he.ts +2 -0
- package/node_modules/zod/src/v4/locales/hi.ts +2 -0
- package/node_modules/zod/src/v4/locales/hr.ts +2 -0
- package/node_modules/zod/src/v4/locales/hu.ts +2 -0
- package/node_modules/zod/src/v4/locales/hy.ts +2 -0
- package/node_modules/zod/src/v4/locales/id.ts +2 -0
- package/node_modules/zod/src/v4/locales/index.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +2 -0
- package/node_modules/zod/src/v4/locales/it.ts +2 -0
- package/node_modules/zod/src/v4/locales/ja.ts +2 -0
- package/node_modules/zod/src/v4/locales/ka.ts +2 -0
- package/node_modules/zod/src/v4/locales/km.ts +2 -0
- package/node_modules/zod/src/v4/locales/kn.ts +2 -0
- package/node_modules/zod/src/v4/locales/ko.ts +2 -0
- package/node_modules/zod/src/v4/locales/lt.ts +2 -0
- package/node_modules/zod/src/v4/locales/mk.ts +2 -0
- package/node_modules/zod/src/v4/locales/ms.ts +2 -0
- package/node_modules/zod/src/v4/locales/ne.ts +2 -0
- package/node_modules/zod/src/v4/locales/nl.ts +2 -0
- package/node_modules/zod/src/v4/locales/nn.ts +2 -0
- package/node_modules/zod/src/v4/locales/no.ts +2 -0
- package/node_modules/zod/src/v4/locales/ota.ts +2 -0
- package/node_modules/zod/src/v4/locales/pl.ts +2 -0
- package/node_modules/zod/src/v4/locales/ps.ts +2 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +2 -0
- package/node_modules/zod/src/v4/locales/pt.ts +2 -0
- package/node_modules/zod/src/v4/locales/ro.ts +2 -0
- package/node_modules/zod/src/v4/locales/ru.ts +2 -0
- package/node_modules/zod/src/v4/locales/sk.ts +2 -0
- package/node_modules/zod/src/v4/locales/sl.ts +2 -0
- package/node_modules/zod/src/v4/locales/sv.ts +2 -0
- package/node_modules/zod/src/v4/locales/ta.ts +2 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +2 -0
- package/node_modules/zod/src/v4/locales/tk.ts +2 -0
- package/node_modules/zod/src/v4/locales/tr.ts +2 -0
- package/node_modules/zod/src/v4/locales/uk.ts +2 -0
- package/node_modules/zod/src/v4/locales/ur.ts +2 -0
- package/node_modules/zod/src/v4/locales/uz.ts +2 -0
- package/node_modules/zod/src/v4/locales/vi.ts +2 -0
- package/node_modules/zod/src/v4/locales/yo.ts +2 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +2 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +2 -0
- package/node_modules/zod/src/v4/mini/external.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +32 -7
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +86 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +23 -0
- package/node_modules/zod/v3/ZodError.cjs +19 -0
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +19 -0
- package/node_modules/zod/v4/classic/checks.cjs +19 -0
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/classic/errors.cjs +19 -0
- package/node_modules/zod/v4/classic/external.cjs +22 -1
- package/node_modules/zod/v4/classic/external.d.cts +1 -1
- package/node_modules/zod/v4/classic/external.d.ts +1 -1
- package/node_modules/zod/v4/classic/external.js +1 -1
- package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
- package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
- package/node_modules/zod/v4/classic/in-out.cjs +19 -0
- package/node_modules/zod/v4/classic/index.cjs +19 -0
- package/node_modules/zod/v4/classic/iso.cjs +19 -0
- package/node_modules/zod/v4/classic/parse.cjs +19 -0
- package/node_modules/zod/v4/classic/schemas.cjs +100 -35
- package/node_modules/zod/v4/classic/schemas.d.cts +15 -1
- package/node_modules/zod/v4/classic/schemas.d.ts +15 -1
- package/node_modules/zod/v4/classic/schemas.js +77 -33
- package/node_modules/zod/v4/core/api.cjs +45 -22
- package/node_modules/zod/v4/core/api.d.cts +12 -6
- package/node_modules/zod/v4/core/api.d.ts +12 -6
- package/node_modules/zod/v4/core/api.js +25 -22
- package/node_modules/zod/v4/core/checks.cjs +51 -97
- package/node_modules/zod/v4/core/checks.d.cts +17 -1
- package/node_modules/zod/v4/core/checks.d.ts +17 -1
- package/node_modules/zod/v4/core/checks.js +31 -96
- package/node_modules/zod/v4/core/compile.cjs +173 -78
- package/node_modules/zod/v4/core/compile.d.cts +18 -4
- package/node_modules/zod/v4/core/compile.d.ts +18 -4
- package/node_modules/zod/v4/core/compile.js +154 -79
- package/node_modules/zod/v4/core/core.cjs +20 -1
- package/node_modules/zod/v4/core/core.js +1 -1
- package/node_modules/zod/v4/core/doc.cjs +26 -2
- package/node_modules/zod/v4/core/doc.js +7 -2
- package/node_modules/zod/v4/core/errors.cjs +21 -5
- package/node_modules/zod/v4/core/errors.js +2 -5
- package/node_modules/zod/v4/core/index.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
- package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +188 -72
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +16 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +170 -74
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/memoizer.cjs +111 -23
- package/node_modules/zod/v4/core/memoizer.js +69 -23
- package/node_modules/zod/v4/core/parse.cjs +56 -16
- package/node_modules/zod/v4/core/parse.js +37 -16
- package/node_modules/zod/v4/core/regexes.cjs +31 -6
- package/node_modules/zod/v4/core/regexes.d.cts +3 -0
- package/node_modules/zod/v4/core/regexes.d.ts +3 -0
- package/node_modules/zod/v4/core/regexes.js +10 -4
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/schemas.cjs +302 -114
- package/node_modules/zod/v4/core/schemas.d.cts +28 -8
- package/node_modules/zod/v4/core/schemas.d.ts +28 -8
- package/node_modules/zod/v4/core/schemas.js +279 -113
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +28 -7
- package/node_modules/zod/v4/core/to-json-schema.d.cts +4 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +4 -3
- package/node_modules/zod/v4/core/to-json-schema.js +7 -6
- package/node_modules/zod/v4/core/util.cjs +177 -143
- package/node_modules/zod/v4/core/util.d.cts +25 -4
- package/node_modules/zod/v4/core/util.d.ts +25 -4
- package/node_modules/zod/v4/core/util.js +156 -143
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +19 -0
- package/node_modules/zod/v4/index.cjs +19 -0
- package/node_modules/zod/v4/locales/ar.cjs +2 -0
- package/node_modules/zod/v4/locales/ar.js +2 -0
- package/node_modules/zod/v4/locales/az.cjs +2 -0
- package/node_modules/zod/v4/locales/az.js +2 -0
- package/node_modules/zod/v4/locales/be.cjs +2 -0
- package/node_modules/zod/v4/locales/be.js +2 -0
- package/node_modules/zod/v4/locales/bg.cjs +2 -0
- package/node_modules/zod/v4/locales/bg.js +2 -0
- package/node_modules/zod/v4/locales/bn.cjs +2 -0
- package/node_modules/zod/v4/locales/bn.js +2 -0
- package/node_modules/zod/v4/locales/ca.cjs +2 -0
- package/node_modules/zod/v4/locales/ca.js +2 -0
- package/node_modules/zod/v4/locales/ckb.cjs +2 -0
- package/node_modules/zod/v4/locales/ckb.js +2 -0
- package/node_modules/zod/v4/locales/cs.cjs +2 -0
- package/node_modules/zod/v4/locales/cs.js +2 -0
- package/node_modules/zod/v4/locales/da.cjs +2 -0
- package/node_modules/zod/v4/locales/da.js +2 -0
- package/node_modules/zod/v4/locales/de.cjs +2 -0
- package/node_modules/zod/v4/locales/de.js +2 -0
- package/node_modules/zod/v4/locales/el.cjs +2 -0
- package/node_modules/zod/v4/locales/el.js +2 -0
- package/node_modules/zod/v4/locales/en.cjs +2 -0
- package/node_modules/zod/v4/locales/en.js +2 -0
- package/node_modules/zod/v4/locales/eo.cjs +2 -0
- package/node_modules/zod/v4/locales/eo.js +2 -0
- package/node_modules/zod/v4/locales/es.cjs +2 -0
- package/node_modules/zod/v4/locales/es.js +2 -0
- package/node_modules/zod/v4/locales/fa.cjs +2 -0
- package/node_modules/zod/v4/locales/fa.js +2 -0
- package/node_modules/zod/v4/locales/fi.cjs +2 -0
- package/node_modules/zod/v4/locales/fi.js +2 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +2 -0
- package/node_modules/zod/v4/locales/fr-CA.js +2 -0
- package/node_modules/zod/v4/locales/fr.cjs +2 -0
- package/node_modules/zod/v4/locales/fr.js +2 -0
- package/node_modules/zod/v4/locales/gu.cjs +2 -0
- package/node_modules/zod/v4/locales/gu.js +2 -0
- package/node_modules/zod/v4/locales/he.cjs +2 -0
- package/node_modules/zod/v4/locales/he.js +2 -0
- package/node_modules/zod/v4/locales/hi.cjs +2 -0
- package/node_modules/zod/v4/locales/hi.js +2 -0
- package/node_modules/zod/v4/locales/hr.cjs +2 -0
- package/node_modules/zod/v4/locales/hr.js +2 -0
- package/node_modules/zod/v4/locales/hu.cjs +2 -0
- package/node_modules/zod/v4/locales/hu.js +2 -0
- package/node_modules/zod/v4/locales/hy.cjs +2 -0
- package/node_modules/zod/v4/locales/hy.js +2 -0
- package/node_modules/zod/v4/locales/id.cjs +2 -0
- package/node_modules/zod/v4/locales/id.js +2 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -1
- package/node_modules/zod/v4/locales/index.d.cts +1 -0
- package/node_modules/zod/v4/locales/index.d.ts +1 -0
- package/node_modules/zod/v4/locales/index.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +2 -0
- package/node_modules/zod/v4/locales/is.js +2 -0
- package/node_modules/zod/v4/locales/it.cjs +2 -0
- package/node_modules/zod/v4/locales/it.js +2 -0
- package/node_modules/zod/v4/locales/ja.cjs +2 -0
- package/node_modules/zod/v4/locales/ja.js +2 -0
- package/node_modules/zod/v4/locales/ka.cjs +2 -0
- package/node_modules/zod/v4/locales/ka.js +2 -0
- package/node_modules/zod/v4/locales/km.cjs +2 -0
- package/node_modules/zod/v4/locales/km.js +2 -0
- package/node_modules/zod/v4/locales/kn.cjs +2 -0
- package/node_modules/zod/v4/locales/kn.js +2 -0
- package/node_modules/zod/v4/locales/ko.cjs +2 -0
- package/node_modules/zod/v4/locales/ko.js +2 -0
- package/node_modules/zod/v4/locales/lt.cjs +2 -0
- package/node_modules/zod/v4/locales/lt.js +2 -0
- package/node_modules/zod/v4/locales/mk.cjs +2 -0
- package/node_modules/zod/v4/locales/mk.js +2 -0
- package/node_modules/zod/v4/locales/ms.cjs +2 -0
- package/node_modules/zod/v4/locales/ms.js +2 -0
- package/node_modules/zod/v4/locales/ne.cjs +2 -0
- package/node_modules/zod/v4/locales/ne.js +2 -0
- package/node_modules/zod/v4/locales/nl.cjs +2 -0
- package/node_modules/zod/v4/locales/nl.js +2 -0
- package/node_modules/zod/v4/locales/nn.cjs +2 -0
- package/node_modules/zod/v4/locales/nn.js +2 -0
- package/node_modules/zod/v4/locales/no.cjs +2 -0
- package/node_modules/zod/v4/locales/no.js +2 -0
- package/node_modules/zod/v4/locales/ota.cjs +2 -0
- package/node_modules/zod/v4/locales/ota.js +2 -0
- package/node_modules/zod/v4/locales/pl.cjs +2 -0
- package/node_modules/zod/v4/locales/pl.js +2 -0
- package/node_modules/zod/v4/locales/ps.cjs +2 -0
- package/node_modules/zod/v4/locales/ps.js +2 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +2 -0
- package/node_modules/zod/v4/locales/pt-BR.js +2 -0
- package/node_modules/zod/v4/locales/pt.cjs +2 -0
- package/node_modules/zod/v4/locales/pt.js +2 -0
- package/node_modules/zod/v4/locales/ro.cjs +2 -0
- package/node_modules/zod/v4/locales/ro.js +2 -0
- package/node_modules/zod/v4/locales/ru.cjs +2 -0
- package/node_modules/zod/v4/locales/ru.js +2 -0
- package/node_modules/zod/v4/locales/sk.cjs +2 -0
- package/node_modules/zod/v4/locales/sk.js +2 -0
- package/node_modules/zod/v4/locales/sl.cjs +2 -0
- package/node_modules/zod/v4/locales/sl.js +2 -0
- package/node_modules/zod/v4/locales/sv.cjs +2 -0
- package/node_modules/zod/v4/locales/sv.js +2 -0
- package/node_modules/zod/v4/locales/ta.cjs +2 -0
- package/node_modules/zod/v4/locales/ta.js +2 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +2 -0
- package/node_modules/zod/v4/locales/th.js +2 -0
- package/node_modules/zod/v4/locales/tk.cjs +2 -0
- package/node_modules/zod/v4/locales/tk.js +2 -0
- package/node_modules/zod/v4/locales/tr.cjs +2 -0
- package/node_modules/zod/v4/locales/tr.js +2 -0
- package/node_modules/zod/v4/locales/uk.cjs +2 -0
- package/node_modules/zod/v4/locales/uk.js +2 -0
- package/node_modules/zod/v4/locales/ur.cjs +2 -0
- package/node_modules/zod/v4/locales/ur.js +2 -0
- package/node_modules/zod/v4/locales/uz.cjs +2 -0
- package/node_modules/zod/v4/locales/uz.js +2 -0
- package/node_modules/zod/v4/locales/vi.cjs +2 -0
- package/node_modules/zod/v4/locales/vi.js +2 -0
- package/node_modules/zod/v4/locales/yo.cjs +2 -0
- package/node_modules/zod/v4/locales/yo.js +2 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +2 -0
- package/node_modules/zod/v4/locales/zh-CN.js +2 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +2 -0
- package/node_modules/zod/v4/locales/zh-TW.js +2 -0
- package/node_modules/zod/v4/mini/checks.cjs +19 -0
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/mini/external.cjs +22 -1
- package/node_modules/zod/v4/mini/external.d.cts +1 -1
- package/node_modules/zod/v4/mini/external.d.ts +1 -1
- package/node_modules/zod/v4/mini/external.js +1 -1
- package/node_modules/zod/v4/mini/in-out.cjs +19 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +19 -0
- package/node_modules/zod/v4/mini/schemas.cjs +44 -8
- package/node_modules/zod/v4/mini/schemas.d.cts +6 -1
- package/node_modules/zod/v4/mini/schemas.d.ts +6 -1
- package/node_modules/zod/v4/mini/schemas.js +21 -6
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/openclaw.plugin.json +24 -0
- package/package.json +11 -8
- package/dist/.setup/account-selection-5koohRSQ.mjs +0 -203
- package/dist/.setup/accounts-BF5hyc-1.mjs +0 -129
- package/dist/.setup/approval-handler.runtime-CoZCYGUH.mjs +0 -415
- package/dist/.setup/approval-ids-CZOcdJ-5.mjs +0 -7
- package/dist/.setup/approval-reaction-auth-B51E4ZDa.mjs +0 -27
- package/dist/.setup/approval-reactions-B0hfA6qz.mjs +0 -196
- package/dist/.setup/channel-q6TBKEiG.mjs +0 -1414
- package/dist/.setup/channel.runtime-DcDBdxe6.mjs +0 -71
- package/dist/.setup/channel.setup-DZQ5rf9k.mjs +0 -357
- package/dist/.setup/cli-Cx_cNaXN.mjs +0 -1410
- package/dist/.setup/cli-metadata-DHU1H-Vr.mjs +0 -22
- package/dist/.setup/client-By2B3Wz4.mjs +0 -27
- package/dist/.setup/client-DsJUnWlV.mjs +0 -863
- package/dist/.setup/client-bootstrap-DGX0f-4x.mjs +0 -78
- package/dist/.setup/config-secret-input.runtime-CwsP3--c.mjs +0 -2
- package/dist/.setup/config-update-B_4qZ5bV.mjs +0 -167
- package/dist/.setup/create-client-DQXAZjTw.mjs +0 -61
- package/dist/.setup/credentials-CeRipapZ.mjs +0 -85
- package/dist/.setup/credentials-read-Dp7BoEdm.mjs +0 -66
- package/dist/.setup/credentials-write.runtime-M_bUf3rL.mjs +0 -14
- package/dist/.setup/crypto-runtime-9oxuU30y.mjs +0 -1138
- package/dist/.setup/crypto-snapshot-doctor.runtime-DXpLbQ7y.mjs +0 -91
- package/dist/.setup/deps-mtxF2mHI.mjs +0 -169
- package/dist/.setup/device-health-CWOuIirq.mjs +0 -21
- package/dist/.setup/direct-management-B2Bno2xL.mjs +0 -346
- package/dist/.setup/directory-live-CatwztQc.mjs +0 -153
- package/dist/.setup/doctor-BLCvdOFo.mjs +0 -64
- package/dist/.setup/doctor-contract-HyWFZQVG.mjs +0 -167
- package/dist/.setup/draft-stream-DIFZDNrb.mjs +0 -159
- package/dist/.setup/encryption-guidance-DYEbeYj-.mjs +0 -16
- package/dist/.setup/http-client-BJjo-iw5.mjs +0 -395
- package/dist/.setup/idb-persistence-CIfFUjP3.mjs +0 -237
- package/dist/.setup/idb-persistence-lock-B3fZXyF_.mjs +0 -32
- package/dist/.setup/inbound-dedupe-BSlv35xl.mjs +0 -48
- package/dist/.setup/joined-room-encryption-BCtxQ3hR.mjs +0 -67
- package/dist/.setup/logger-xBjiRIp1.mjs +0 -78
- package/dist/.setup/logging-rgm8ep9H.mjs +0 -99
- package/dist/.setup/messages-SW0NPYnR.mjs +0 -317
- package/dist/.setup/monitor-DQfYX5rA.mjs +0 -4650
- package/dist/.setup/outbound-DRWtSUe-.mjs +0 -228
- package/dist/.setup/probe.runtime-qPRZE3Yf.mjs +0 -2
- package/dist/.setup/profile-ClrB3IgR.mjs +0 -108
- package/dist/.setup/profile-update-DPttQz3-.mjs +0 -70
- package/dist/.setup/reaction-events-CdAk_rh_.mjs +0 -167
- package/dist/.setup/resolve-targets-drjgAdIe.mjs +0 -140
- package/dist/.setup/resolver.runtime-Ci6ddcPh.mjs +0 -5
- package/dist/.setup/rolldown-runtime-8H4AJuhK.mjs +0 -14
- package/dist/.setup/room-info-DHd1j3qM.mjs +0 -153
- package/dist/.setup/sdk-BkKE4ANj.mjs +0 -2168
- package/dist/.setup/send-currentness-BrGXL7b8.mjs +0 -90
- package/dist/.setup/send-h0gZ_-qk.mjs +0 -2219
- package/dist/.setup/setup-bootstrap-BYgBD504.mjs +0 -62
- package/dist/.setup/setup-core-BUcDAM7q.mjs +0 -386
- package/dist/.setup/setup-plugin-api-DoTm4v2q.mjs +0 -3
- package/dist/.setup/setup-surface-V_Q-enq-.mjs +0 -482
- package/dist/.setup/startup-verification-Bq5qeEGn.mjs +0 -233
- package/dist/.setup/storage-DJ-oUgmX.mjs +0 -335
- package/dist/.setup/storage-metadata-BQJjHC_i.mjs +0 -388
- package/dist/.setup/storage-paths-DVCANXTc.mjs +0 -53
- package/dist/.setup/subagent-hooks-jFgft_Mr.mjs +0 -52
- package/dist/.setup/sync-cache-state-CFiZIPhA.mjs +0 -240
- package/dist/.setup/thread-bindings-Hy96ujd3.mjs +0 -444
- package/dist/.setup/thread-bindings-shared-oNPiyMWY.mjs +0 -92
- package/dist/.setup/tool-actions.runtime-Dckttu43.mjs +0 -854
- package/dist/.setup/url-validation-GRHde6lq.mjs +0 -36
- package/dist/.setup/verification-CKqBZ9mI.mjs +0 -346
- package/node_modules/markdown-it/node_modules/argparse/lib/argparse.js +0 -3804
- package/node_modules/markdown-it/node_modules/argparse/package.json +0 -38
- package/node_modules/matrix-js-sdk/node_modules/@babel/runtime/package.json +0 -486
- package/node_modules/matrix-js-sdk/node_modules/content-type/README.md +0 -71
- package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.d.ts +0 -46
- package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js +0 -176
- package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js.map +0 -1
- package/node_modules/matrix-js-sdk/node_modules/content-type/package.json +0 -52
- package/node_modules/music-metadata/node_modules/debug/LICENSE +0 -20
- package/node_modules/music-metadata/node_modules/debug/README.md +0 -481
- package/node_modules/music-metadata/node_modules/debug/package.json +0 -64
- package/node_modules/music-metadata/node_modules/debug/src/browser.js +0 -272
- package/node_modules/music-metadata/node_modules/debug/src/common.js +0 -292
- package/node_modules/music-metadata/node_modules/debug/src/index.js +0 -10
- package/node_modules/music-metadata/node_modules/debug/src/node.js +0 -263
- package/node_modules/music-metadata/node_modules/file-type/package.json +0 -274
- package/node_modules/music-metadata/node_modules/file-type/readme.md +0 -600
- package/node_modules/music-metadata/node_modules/file-type/source/detectors/zip.js +0 -648
- package/node_modules/music-metadata/node_modules/file-type/source/index.js +0 -1929
- package/node_modules/music-metadata/node_modules/file-type/source/supported.js +0 -368
- package/node_modules/music-metadata/node_modules/ms/index.js +0 -162
- package/node_modules/music-metadata/node_modules/ms/license.md +0 -21
- package/node_modules/music-metadata/node_modules/ms/package.json +0 -38
- package/node_modules/music-metadata/node_modules/ms/readme.md +0 -59
- package/node_modules/typebox/build/guard/string.mjs +0 -168
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/OverloadYield.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/applyDecoratedDescriptor.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/applyDecs2311.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/arrayLikeToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/arrayWithHoles.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/arrayWithoutHoles.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/assertClassBrand.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/assertThisInitialized.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/asyncGeneratorDelegate.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/asyncIterator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/asyncToGenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/awaitAsyncGenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/callSuper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/checkInRHS.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/checkPrivateRedeclaration.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classCallCheck.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classNameTDZError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldGet2.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldInitSpec.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldLooseBase.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldLooseKey.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldSet2.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateGetter.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateMethodInitSpec.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateSetter.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classStaticPrivateMethodGet.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/construct.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createClass.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createForOfIteratorHelper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createForOfIteratorHelperLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createSuper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/defaults.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/defineAccessor.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/defineProperty.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/OverloadYield.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/applyDecs2311.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/arrayLikeToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/arrayWithHoles.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/arrayWithoutHoles.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/assertClassBrand.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/assertThisInitialized.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/asyncIterator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/asyncToGenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/awaitAsyncGenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/callSuper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/checkInRHS.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classCallCheck.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classNameTDZError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldGet2.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldSet2.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateGetter.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateSetter.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/construct.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createClass.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createForOfIteratorHelper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createSuper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/defaults.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/defineAccessor.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/defineProperty.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/extends.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/get.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/getPrototypeOf.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/identity.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/importDeferProxy.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/inherits.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/inheritsLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/initializerDefineProperty.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/initializerWarningHelper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/instanceof.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/interopRequireDefault.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/interopRequireWildcard.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/isNativeFunction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/isNativeReflectConstruct.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/iterableToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/iterableToArrayLimit.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/jsx.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/maybeArrayLike.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/newArrowCheck.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/nonIterableRest.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/nonIterableSpread.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/nullishReceiverError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectDestructuringEmpty.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectSpread2.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectWithoutProperties.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/possibleConstructorReturn.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/readOnlyError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorAsync.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorAsyncGen.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorDefine.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorKeys.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorValues.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/set.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/setFunctionName.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/setPrototypeOf.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/slicedToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/superPropBase.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/superPropGet.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/superPropSet.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/taggedTemplateLiteral.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/tdz.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/temporalRef.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/temporalUndefined.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toConsumableArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toPrimitive.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toPropertyKey.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toSetter.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/typeof.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/unsupportedIterableToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/usingCtx.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/wrapAsyncGenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/wrapNativeSuper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/wrapRegExp.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/writeOnlyError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/extends.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/get.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/getPrototypeOf.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/identity.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/importDeferProxy.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/inherits.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/inheritsLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/initializerDefineProperty.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/initializerWarningHelper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/instanceof.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/interopRequireDefault.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/interopRequireWildcard.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/isNativeFunction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/isNativeReflectConstruct.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/iterableToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/iterableToArrayLimit.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/jsx.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/maybeArrayLike.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/newArrowCheck.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/nonIterableRest.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/nonIterableSpread.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/nullishReceiverError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectDestructuringEmpty.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectSpread2.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectWithoutProperties.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectWithoutPropertiesLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/possibleConstructorReturn.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/readOnlyError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorAsync.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorAsyncGen.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorAsyncIterator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorDefine.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorKeys.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorValues.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/set.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/setFunctionName.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/setPrototypeOf.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/skipFirstGeneratorNext.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/slicedToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/superPropBase.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/superPropGet.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/superPropSet.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/taggedTemplateLiteral.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/taggedTemplateLiteralLoose.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/tdz.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/temporalRef.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/temporalUndefined.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toConsumableArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toPrimitive.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toPropertyKey.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toSetter.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/typeof.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/unsupportedIterableToArray.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/usingCtx.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/wrapAsyncGenerator.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/wrapNativeSuper.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/wrapRegExp.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/writeOnlyError.js +0 -0
- /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/LICENSE.txt +0 -0
- /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/lib/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/lib/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3/lib/types.js → @openclaw/fs-safe/dist/containment.js} +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/LICENSE +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/GzipHandler.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/GzipHandler.js +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipHandler.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipHandler.js +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipToken.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipToken.js +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/token/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/token/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/token/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/package.json +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/LICENSE +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/README.md +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.d.ts +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.d.ts.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.js.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.d.ts +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.d.ts.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.js.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/.jshint +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/.npmignore +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/.travis.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/another-json.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/spec/another-json-spec.js +0 -0
- /package/node_modules/{markdown-it/node_modules/argparse → argparse}/LICENSE +0 -0
- /package/node_modules/{markdown-it/node_modules/argparse → argparse}/README.md +0 -0
- /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/_colorize.js +0 -0
- /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/argparse.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/difflib.js +0 -0
- /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/sub.js +0 -0
- /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/textwrap.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/LICENSE.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/src/cjs/index.cjs +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/src/cjs/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/src/esm/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/src/cjs/index.cjs +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/src/cjs/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/src/esm/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/content-type → content-type}/LICENSE +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/LICENSE +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/README.md +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/package.json +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/browser.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/common.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/index.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/node.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/LICENSE +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.d.ts.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.js +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/package.json +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/readme.md +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/decode-codepoint.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/decode.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/encode.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/escape.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/generated/decode-data-html.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/generated/decode-data-xml.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/generated/encode-html.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/index.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/internal/bin-trie-flags.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/entities → entities}/src/internal/decode-shared.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/.airtap.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/.github/FUNDING.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/.travis.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/History.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/Readme.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/events.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/security.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/add-listeners.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/check-listener-leaks.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/common.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/errors.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/events-list.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/events-once.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/legacy-compat.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/listener-count.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/listeners-side-effects.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/listeners.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/max-listeners.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/method-names.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/modify-in-emit.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/num-args.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/once.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/prepend.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/remove-all-listeners.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/remove-listeners.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/set-max-listeners-side-effects.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/special-event-names.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/subclass.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/symbols.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → file-type}/license +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/detectors/asf.js +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/detectors/ebml.js +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/detectors/png.js +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/index.test-d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/parser.js +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/tokens.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/LICENSE +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/README.md +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/LICENSE +0 -0
- /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/p-retry → is-network-error}/license +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/readme.md +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/LICENSE +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/README.md +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.cjs.js +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.cjs.js.map +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.mjs +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.mjs.map +0 -0
- /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/.editorconfig +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/CONTRIBUTING.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/Gruntfile.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/LICENSE-MIT +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/_config.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/bower.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/demo/index.html +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/demo/script.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/demo/styles.css +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/dist/loglevel.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/dist/loglevel.min.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/lib/loglevel.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/ExtensibleEvents.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/ExtensibleEvents.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/IPartialEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/IPartialEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/InvalidEventError.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/InvalidEventError.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedMap.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedMap.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedValue.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedValue.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/EmoteEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/EmoteEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/ExtensibleEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/ExtensibleEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/MessageEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/MessageEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/NoticeEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/NoticeEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollEndEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollEndEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollResponseEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollResponseEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollStartEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollStartEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/message_types.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/message_types.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/poll_types.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/poll_types.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/relationship_types.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/relationship_types.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/legacy/MRoomMessage.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/legacy/MRoomMessage.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MMessage.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MMessage.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MPoll.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MPoll.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/types.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/types.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/MessageMatchers.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/MessageMatchers.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/events.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/events.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/dist/api.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/dist/api.min.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/ClientWidgetApi.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/ClientWidgetApi.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/ClientWidgetApi.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/Symbols.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/Symbols.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/Symbols.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/WidgetApi.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/WidgetApi.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/WidgetApi.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/driver/WidgetDriver.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/driver/WidgetDriver.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/driver/WidgetDriver.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/index.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ApiVersion.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ApiVersion.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ApiVersion.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/Capabilities.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/Capabilities.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/Capabilities.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/CapabilitiesAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/CapabilitiesAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/CapabilitiesAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ContentLoadedAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ContentLoadedAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ContentLoadedAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/DownloadFileAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/DownloadFileAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/DownloadFileAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetMediaConfigAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetMediaConfigAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetMediaConfigAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetOpenIDAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetOpenIDAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetOpenIDAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ICustomWidgetData.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ICustomWidgetData.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ICustomWidgetData.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IJitsiWidgetData.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IJitsiWidgetData.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IJitsiWidgetData.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomAccountData.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomAccountData.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomAccountData.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomEvent.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomEvent.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomEvent.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IToDeviceMessage.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IToDeviceMessage.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IToDeviceMessage.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidget.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidget.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidget.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiRequest.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiRequest.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiRequest.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiResponse.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiResponse.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiResponse.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/LanguageChangeAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/LanguageChangeAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/LanguageChangeAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalButtonKind.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalButtonKind.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalButtonKind.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalWidgetActions.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalWidgetActions.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalWidgetActions.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/NavigateAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/NavigateAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/NavigateAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadEventAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadEventAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadEventAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRelationsAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRelationsAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRelationsAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcLivekitActions.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcLivekitActions.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcLivekitActions.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcTransportsAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcTransportsAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcTransportsAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ScreenshotAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ScreenshotAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ScreenshotAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendEventAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendEventAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendEventAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendToDeviceAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendToDeviceAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendToDeviceAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickerAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickerAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickerAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickyAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickyAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickyAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SupportedVersionsAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SupportedVersionsAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SupportedVersionsAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ThemeChangeAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ThemeChangeAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ThemeChangeAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/TurnServerActions.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/TurnServerActions.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/TurnServerActions.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateStateAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateStateAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateStateAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UploadFileAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UploadFileAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UploadFileAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/VisibilityAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/VisibilityAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/VisibilityAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiDirection.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiDirection.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiDirection.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetConfigAction.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetConfigAction.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetConfigAction.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetKind.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetKind.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetKind.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetType.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetType.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetType.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/Widget.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/Widget.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/Widget.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetEventCapability.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetEventCapability.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetEventCapability.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetParser.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetParser.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetParser.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/url.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/url.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/url.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/utils.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/utils.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/utils.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/templating/url-template.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/templating/url-template.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/templating/url-template.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/ITransport.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/ITransport.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/ITransport.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/PostmessageTransport.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/PostmessageTransport.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/PostmessageTransport.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/util/SimpleObservable.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/util/SimpleObservable.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/util/SimpleObservable.js.map +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/ClientWidgetApi.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/Symbols.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/WidgetApi.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/driver/WidgetDriver.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/index.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ApiVersion.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/Capabilities.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/CapabilitiesAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ContentLoadedAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/DownloadFileAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/GetMediaConfigAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/GetOpenIDAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ICustomWidgetData.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IJitsiWidgetData.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IRoomAccountData.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IRoomEvent.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IStickerpickerWidgetData.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IToDeviceMessage.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidget.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidgetApiErrorResponse.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidgetApiRequest.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidgetApiResponse.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/LanguageChangeAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ModalButtonKind.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ModalWidgetActions.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/NavigateAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/OpenIDCredentialsAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ReadEventAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ReadRelationsAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ReadRoomAccountDataAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/RtcLivekitActions.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/RtcTransportsAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ScreenshotAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SendEventAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SendToDeviceAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SetModalButtonEnabledAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/StickerAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/StickyAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SupportedVersionsAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ThemeChangeAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/TurnServerActions.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UpdateDelayedEventAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UpdateStateAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UploadFileAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UserDirectorySearchAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/VisibilityAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetApiAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetApiDirection.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetConfigAction.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetKind.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetType.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/Widget.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/WidgetEventCapability.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/WidgetParser.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/validation/url.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/validation/utils.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/templating/url-template.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/transport/ITransport.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/transport/PostmessageTransport.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/util/SimpleObservable.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/LICENSE +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/README.md +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/build/index.cjs.js +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/index.mjs +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/decode.mjs +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/encode.mjs +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/format.mjs +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/index.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/parse.mjs +0 -0
- /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/LICENSE +0 -0
- /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/dist/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/dist/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/dist/index.js.map +0 -0
- /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/package.json +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/index.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/license.md +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/package.json +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/readme.md +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/LICENSE +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/README.md +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/bin/helpers.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/bin/ndh +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/dist/index.js +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/package.json +0 -0
- /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/types/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/file-type → p-retry}/license +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/package.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/readme.md +0 -0
- /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/LICENSE-MIT.txt +0 -0
- /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/README.md +0 -0
- /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/package.json +0 -0
- /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/punycode.es6.js +0 -0
- /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/punycode.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.eslintrc.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/FUNDING.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/codecov.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/dependabot.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/workflows/ci.yml +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/CHANGELOG.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/checker.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/grammar.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/parser.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/writer.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/LICENSE.txt +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/AbstractTokenizer.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/AbstractTokenizer.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BlobTokenizer.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BlobTokenizer.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BufferTokenizer.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BufferTokenizer.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/FileTokenizer.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/FileTokenizer.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/ReadStreamTokenizer.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/ReadStreamTokenizer.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/core.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/core.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/AbstractStreamReader.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/AbstractStreamReader.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Deferred.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Deferred.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Errors.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Errors.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/StreamReader.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/StreamReader.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamByobReader.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamByobReader.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamDefaultReader.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamDefaultReader.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReader.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReader.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReaderFactory.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReaderFactory.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/types.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/token-types → token-types}/LICENSE.txt +0 -0
- /package/node_modules/{music-metadata/node_modules/token-types → token-types}/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/token-types → token-types}/lib/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/token-types → token-types}/lib/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/token-types → token-types}/package.json +0 -0
- /package/node_modules/typebox/build/guard/{string.d.mts → unicode/unicode_segment.d.mts} +0 -0
- /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/LICENSE.txt +0 -0
- /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/README.md +0 -0
- /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/build/index.cjs.js +0 -0
- /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/build/index.d.ts +0 -0
- /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/build/index.mjs +0 -0
- /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/index.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/index.js +0 -0
- /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/license +0 -0
- /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/readme.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/CHANGELOG.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/LICENSE +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/README.md +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/data.json +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/index.d.ts +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/index.js +0 -0
- /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/package.json +0 -0
- /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/LICENSE.txt +0 -0
- /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/README.md +0 -0
- /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/lib/guid.d.ts +0 -0
- /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/lib/guid.js +0 -0
- /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/package.json +0 -0
|
@@ -1,2168 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
|
|
2
|
-
import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
|
|
3
|
-
import { D as writeMatrixRecoveryKeyStateForPathAsync, S as readMatrixRecoveryKeyStateForPathAsync, f as migrateLegacyMatrixRecoveryKeyFilePathToStoreAsync, v as readLegacyMatrixRecoveryKeyFile } from "./storage-metadata-BQJjHC_i.mjs";
|
|
4
|
-
import { t as claimCurrentTokenStorageState } from "./storage-DJ-oUgmX.mjs";
|
|
5
|
-
import { r as withoutMatrixSendCurrentness, t as captureMatrixSendCurrentness } from "./send-currentness-BrGXL7b8.mjs";
|
|
6
|
-
import { i as parseMxc, r as matrixEventToRaw } from "./event-helpers-CspuhE9k.mjs";
|
|
7
|
-
import { i as openMatrixSyncCacheStoreOptions, l as writeMatrixSyncCacheStateToSyncStore, n as deleteMatrixSyncCacheStateFromSyncStore, o as readPersistedStoreFromSyncStore } from "./sync-cache-state-CFiZIPhA.mjs";
|
|
8
|
-
import { n as isMatrixNotFoundError, t as formatMatrixErrorReason } from "./errors-DKVS3_DO.mjs";
|
|
9
|
-
import { a as createMatrixStartupAbortError, i as awaitMatrixStartupWithAbort, s as throwIfMatrixStartupAborted } from "./client-DsJUnWlV.mjs";
|
|
10
|
-
import { n as createMatrixGuardedFetch, t as MatrixAuthedHttpClient } from "./http-client-BJjo-iw5.mjs";
|
|
11
|
-
import { n as resolveMatrixRoomKeyBackupReadinessError } from "./backup-health-Dm_YMVFT.mjs";
|
|
12
|
-
import { n as LogService, r as noop, t as ConsoleLogger } from "./logger-xBjiRIp1.mjs";
|
|
13
|
-
import { t as createMatrixJsSdkClientLogger } from "./logging-rgm8ep9H.mjs";
|
|
14
|
-
import { t as MATRIX_IDB_PERSIST_INTERVAL_MS } from "./idb-persistence-lock-B3fZXyF_.mjs";
|
|
15
|
-
import { a as isMatrixAccessTokenInvalidatedError, c as resolveMatrixLocalTimeoutMs, f as isMatrixReadySyncState, i as createMatrixExplicitBootstrapOptions, l as unresolvedMatrixDeviceVerificationStatus, n as MATRIX_INITIAL_CRYPTO_BOOTSTRAP_OPTIONS, o as resolveMatrixDiagnostic, p as isMatrixTerminalSyncState, r as MATRIX_STATUS_DIAGNOSTIC_TIMEOUT_MS, s as resolveMatrixDiagnosticResult, t as MATRIX_AUTOMATIC_REPAIR_BOOTSTRAP_OPTIONS, u as unresolvedMatrixRoomKeyBackupStatus } from "./client-support-Bn9Bk0-H.mjs";
|
|
16
|
-
import { createRequire } from "node:module";
|
|
17
|
-
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
18
|
-
import { normalizeNullableString, normalizeStringEntries, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
19
|
-
import { createHash } from "node:crypto";
|
|
20
|
-
import path from "node:path";
|
|
21
|
-
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
22
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
23
|
-
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
24
|
-
import { captureChannelReadAuthority } from "openclaw/plugin-sdk/fetch-runtime";
|
|
25
|
-
import { EventEmitter } from "node:events";
|
|
26
|
-
import { ClientEvent, EventType, Filter, MatrixError, MatrixEventEvent, MemoryStore, MsgType, Preset, SyncAccumulator, createClient } from "matrix-js-sdk/lib/matrix.js";
|
|
27
|
-
import { RoomEvent } from "matrix-js-sdk/lib/models/room.js";
|
|
28
|
-
import { VerificationMethod } from "matrix-js-sdk/lib/types.js";
|
|
29
|
-
import { SyncApi, SyncState } from "matrix-js-sdk/lib/sync.js";
|
|
30
|
-
import { decodeRecoveryKey } from "matrix-js-sdk/lib/crypto-api/recovery-key.js";
|
|
31
|
-
import { MatrixScheduler } from "matrix-js-sdk/lib/scheduler.js";
|
|
32
|
-
import { EventStatus } from "matrix-js-sdk/lib/models/event-status.js";
|
|
33
|
-
//#region extensions/matrix/src/matrix/sdk/client-device-info.ts
|
|
34
|
-
async function resolveMatrixCrossSigningPublicationStatus(params) {
|
|
35
|
-
if (!params.userId) return {
|
|
36
|
-
userId: null,
|
|
37
|
-
masterKeyPublished: false,
|
|
38
|
-
selfSigningKeyPublished: false,
|
|
39
|
-
userSigningKeyPublished: false,
|
|
40
|
-
published: false
|
|
41
|
-
};
|
|
42
|
-
try {
|
|
43
|
-
const response = await params.query();
|
|
44
|
-
const masterKeyPublished = Boolean(response.master_keys?.[params.userId]);
|
|
45
|
-
const selfSigningKeyPublished = Boolean(response.self_signing_keys?.[params.userId]);
|
|
46
|
-
const userSigningKeyPublished = Boolean(response.user_signing_keys?.[params.userId]);
|
|
47
|
-
return {
|
|
48
|
-
userId: params.userId,
|
|
49
|
-
masterKeyPublished,
|
|
50
|
-
selfSigningKeyPublished,
|
|
51
|
-
userSigningKeyPublished,
|
|
52
|
-
published: masterKeyPublished && selfSigningKeyPublished && userSigningKeyPublished
|
|
53
|
-
};
|
|
54
|
-
} catch {
|
|
55
|
-
return {
|
|
56
|
-
userId: params.userId,
|
|
57
|
-
masterKeyPublished: false,
|
|
58
|
-
selfSigningKeyPublished: false,
|
|
59
|
-
userSigningKeyPublished: false,
|
|
60
|
-
published: false
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
async function listMatrixOwnDevices(client) {
|
|
65
|
-
const currentDeviceId = client.getDeviceId()?.trim() || null;
|
|
66
|
-
const devices = await client.getDevices();
|
|
67
|
-
return (Array.isArray(devices?.devices) ? devices.devices : []).map((device) => ({
|
|
68
|
-
deviceId: device.device_id,
|
|
69
|
-
displayName: device.display_name?.trim() || null,
|
|
70
|
-
lastSeenIp: device.last_seen_ip?.trim() || null,
|
|
71
|
-
lastSeenTs: typeof device.last_seen_ts === "number" && Number.isFinite(device.last_seen_ts) ? device.last_seen_ts : null,
|
|
72
|
-
current: currentDeviceId !== null && device.device_id === currentDeviceId
|
|
73
|
-
}));
|
|
74
|
-
}
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region extensions/matrix/src/matrix/sdk/client-event-bridge.ts
|
|
77
|
-
function registerMatrixClientBridge(params) {
|
|
78
|
-
let initialSyncComplete = false;
|
|
79
|
-
const joinTransitions = /* @__PURE__ */ new WeakSet();
|
|
80
|
-
params.client.on(RoomEvent.MyMembership, (room, membership, previousMembership) => {
|
|
81
|
-
if (!initialSyncComplete || membership !== "join" || previousMembership === "join") return;
|
|
82
|
-
const event = room.currentState.getStateEvents("m.room.member", params.getSelfUserId());
|
|
83
|
-
if (event) joinTransitions.add(event);
|
|
84
|
-
});
|
|
85
|
-
params.client.on(ClientEvent.Event, (event) => {
|
|
86
|
-
const roomId = event.getRoomId();
|
|
87
|
-
if (!roomId) return;
|
|
88
|
-
const raw = matrixEventToRaw(event, { contentMode: "original" });
|
|
89
|
-
const isEncryptedEvent = raw.type === "m.room.encrypted";
|
|
90
|
-
params.emitter.emit("room.event", roomId, raw);
|
|
91
|
-
if (isEncryptedEvent) params.emitter.emit("room.encrypted_event", roomId, raw);
|
|
92
|
-
else if (params.decryptBridge.shouldEmitUnencryptedMessage(roomId, raw.event_id)) params.emitter.emit("room.message", roomId, raw);
|
|
93
|
-
const stateKey = raw.state_key ?? "";
|
|
94
|
-
const selfUserId = params.getSelfUserId();
|
|
95
|
-
const membership = raw.type === "m.room.member" ? raw.content.membership : void 0;
|
|
96
|
-
if (stateKey && selfUserId && stateKey === selfUserId) {
|
|
97
|
-
if (membership === "invite") params.emitter.emit("room.invite", roomId, raw);
|
|
98
|
-
else if (membership === "join") params.emitter.emit("room.join", roomId, {
|
|
99
|
-
...raw,
|
|
100
|
-
membershipProvenance: joinTransitions.delete(event) ? "transition" : initialSyncComplete ? "update" : "snapshot"
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
if (isEncryptedEvent) params.decryptBridge.attachEncryptedEvent(event, roomId);
|
|
104
|
-
});
|
|
105
|
-
params.client.on(ClientEvent.Room, params.emitMembershipForRoom);
|
|
106
|
-
params.client.on(ClientEvent.Sync, (state, prevState, data) => {
|
|
107
|
-
initialSyncComplete ||= state === "PREPARED" || state === "SYNCING";
|
|
108
|
-
const error = data && typeof data === "object" && "error" in data ? data.error : void 0;
|
|
109
|
-
params.setCurrentSyncState(state, error);
|
|
110
|
-
params.emitter.emit("sync.state", state, prevState, error);
|
|
111
|
-
});
|
|
112
|
-
params.client.on(ClientEvent.SyncUnexpectedError, (error) => {
|
|
113
|
-
params.emitter.emit("sync.unexpected_error", error);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function emitMatrixMembershipForRoom(params) {
|
|
117
|
-
const roomId = params.room.roomId.trim();
|
|
118
|
-
if (!roomId || !params.selfUserId) return;
|
|
119
|
-
const membership = params.room.getMyMembership();
|
|
120
|
-
const raw = {
|
|
121
|
-
event_id: `$membership-${roomId}-${Date.now()}`,
|
|
122
|
-
type: "m.room.member",
|
|
123
|
-
sender: params.selfUserId,
|
|
124
|
-
state_key: params.selfUserId,
|
|
125
|
-
content: { membership },
|
|
126
|
-
origin_server_ts: Date.now(),
|
|
127
|
-
unsigned: { age: 0 },
|
|
128
|
-
membershipProvenance: "snapshot"
|
|
129
|
-
};
|
|
130
|
-
if (membership === "invite") {
|
|
131
|
-
params.emitter.emit("room.invite", roomId, raw);
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
if (membership === "join") params.emitter.emit("room.join", roomId, raw);
|
|
135
|
-
}
|
|
136
|
-
function refreshMatrixDmRoomIds(direct, dmRoomIds) {
|
|
137
|
-
dmRoomIds.clear();
|
|
138
|
-
if (!direct || typeof direct !== "object") return false;
|
|
139
|
-
for (const value of Object.values(direct)) {
|
|
140
|
-
if (!Array.isArray(value)) continue;
|
|
141
|
-
for (const roomId of value) if (typeof roomId === "string" && roomId.trim()) dmRoomIds.add(roomId);
|
|
142
|
-
}
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
//#endregion
|
|
146
|
-
//#region extensions/matrix/src/matrix/async-lock.ts
|
|
147
|
-
function createAsyncLock() {
|
|
148
|
-
let lock = Promise.resolve();
|
|
149
|
-
return async function withLock(fn) {
|
|
150
|
-
const previous = lock;
|
|
151
|
-
let release;
|
|
152
|
-
lock = new Promise((resolve) => {
|
|
153
|
-
release = resolve;
|
|
154
|
-
});
|
|
155
|
-
await previous;
|
|
156
|
-
try {
|
|
157
|
-
return await fn();
|
|
158
|
-
} finally {
|
|
159
|
-
release?.();
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region extensions/matrix/src/matrix/client/file-sync-store.ts
|
|
165
|
-
const PERSIST_DEBOUNCE_MS = 250;
|
|
166
|
-
function cloneJson(value) {
|
|
167
|
-
return structuredClone(value);
|
|
168
|
-
}
|
|
169
|
-
function syncDataToSyncResponse(syncData) {
|
|
170
|
-
return {
|
|
171
|
-
next_batch: syncData.nextBatch,
|
|
172
|
-
rooms: syncData.roomsData,
|
|
173
|
-
account_data: { events: syncData.accountData }
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
var SqliteBackedMatrixSyncStore = class extends MemoryStore {
|
|
177
|
-
constructor(storageRootDir) {
|
|
178
|
-
super();
|
|
179
|
-
this.storageRootDir = storageRootDir;
|
|
180
|
-
this.persistLock = createAsyncLock();
|
|
181
|
-
this.accumulator = new SyncAccumulator();
|
|
182
|
-
this.savedSync = null;
|
|
183
|
-
this.cleanShutdown = false;
|
|
184
|
-
this.dirty = false;
|
|
185
|
-
this.frozen = false;
|
|
186
|
-
this.persistTimer = null;
|
|
187
|
-
this.persistPromise = null;
|
|
188
|
-
let restoredSavedSync = null;
|
|
189
|
-
let restoredClientOptions;
|
|
190
|
-
let restoredCleanShutdown = false;
|
|
191
|
-
let syncCacheStore = createNoopMatrixSyncCacheStore();
|
|
192
|
-
let syncCacheStoreUnavailableError;
|
|
193
|
-
try {
|
|
194
|
-
syncCacheStore = openMatrixSyncCacheStore(storageRootDir);
|
|
195
|
-
const persisted = readPersistedStoreFromSyncStore(syncCacheStore);
|
|
196
|
-
if (persisted) {
|
|
197
|
-
restoredSavedSync = persisted.savedSync;
|
|
198
|
-
restoredClientOptions = persisted.clientOptions;
|
|
199
|
-
restoredCleanShutdown = persisted.cleanShutdown === true;
|
|
200
|
-
}
|
|
201
|
-
} catch (err) {
|
|
202
|
-
syncCacheStoreUnavailableError = err;
|
|
203
|
-
LogService.warn("MatrixSyncCacheStore", "Failed to load Matrix sync cache:", err);
|
|
204
|
-
}
|
|
205
|
-
this.store = syncCacheStore;
|
|
206
|
-
this.storeUnavailableError = syncCacheStoreUnavailableError;
|
|
207
|
-
this.savedSync = restoredSavedSync;
|
|
208
|
-
this.savedClientOptions = restoredClientOptions;
|
|
209
|
-
this.hadSavedSyncOnLoad = restoredSavedSync !== null;
|
|
210
|
-
this.hadCleanShutdownOnLoad = this.hadSavedSyncOnLoad && restoredCleanShutdown;
|
|
211
|
-
this.cleanShutdown = this.hadCleanShutdownOnLoad;
|
|
212
|
-
if (this.savedSync) {
|
|
213
|
-
this.accumulator.accumulate(syncDataToSyncResponse(this.savedSync), true);
|
|
214
|
-
super.setSyncToken(this.savedSync.nextBatch);
|
|
215
|
-
}
|
|
216
|
-
if (this.savedClientOptions) super.storeClientOptions(this.savedClientOptions);
|
|
217
|
-
}
|
|
218
|
-
hasSavedSync() {
|
|
219
|
-
return this.hadSavedSyncOnLoad;
|
|
220
|
-
}
|
|
221
|
-
hasSavedSyncFromCleanShutdown() {
|
|
222
|
-
return this.hadCleanShutdownOnLoad;
|
|
223
|
-
}
|
|
224
|
-
getSavedSync() {
|
|
225
|
-
return Promise.resolve(this.savedSync ? cloneJson(this.savedSync) : null);
|
|
226
|
-
}
|
|
227
|
-
getSavedSyncToken() {
|
|
228
|
-
return Promise.resolve(this.savedSync?.nextBatch ?? null);
|
|
229
|
-
}
|
|
230
|
-
setSyncData(syncData) {
|
|
231
|
-
if (this.frozen) return Promise.resolve();
|
|
232
|
-
this.accumulator.accumulate(syncData);
|
|
233
|
-
this.savedSync = this.accumulator.getJSON();
|
|
234
|
-
this.markDirtyAndSchedulePersist();
|
|
235
|
-
return Promise.resolve();
|
|
236
|
-
}
|
|
237
|
-
getClientOptions() {
|
|
238
|
-
return Promise.resolve(this.savedClientOptions ? cloneJson(this.savedClientOptions) : void 0);
|
|
239
|
-
}
|
|
240
|
-
storeClientOptions(options) {
|
|
241
|
-
if (this.frozen) return Promise.resolve();
|
|
242
|
-
this.savedClientOptions = cloneJson(options);
|
|
243
|
-
super.storeClientOptions(options);
|
|
244
|
-
this.markDirtyAndSchedulePersist();
|
|
245
|
-
return Promise.resolve();
|
|
246
|
-
}
|
|
247
|
-
save(force = false) {
|
|
248
|
-
if (force) return this.flush();
|
|
249
|
-
return Promise.resolve();
|
|
250
|
-
}
|
|
251
|
-
wantsSave() {
|
|
252
|
-
return false;
|
|
253
|
-
}
|
|
254
|
-
async deleteAllData() {
|
|
255
|
-
this.assertStoreAvailable();
|
|
256
|
-
if (this.persistTimer) {
|
|
257
|
-
clearTimeout(this.persistTimer);
|
|
258
|
-
this.persistTimer = null;
|
|
259
|
-
}
|
|
260
|
-
this.dirty = false;
|
|
261
|
-
await this.persistPromise?.catch(() => void 0);
|
|
262
|
-
await super.deleteAllData();
|
|
263
|
-
this.savedSync = null;
|
|
264
|
-
this.savedClientOptions = void 0;
|
|
265
|
-
this.cleanShutdown = false;
|
|
266
|
-
await deleteMatrixSyncCacheStateFromSyncStore({
|
|
267
|
-
storageRootDir: this.storageRootDir,
|
|
268
|
-
store: this.store
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
markCleanShutdown() {
|
|
272
|
-
this.cleanShutdown = true;
|
|
273
|
-
this.dirty = true;
|
|
274
|
-
}
|
|
275
|
-
async freezeSyncCursorPersistence() {
|
|
276
|
-
this.frozen = true;
|
|
277
|
-
if (this.persistTimer) {
|
|
278
|
-
clearTimeout(this.persistTimer);
|
|
279
|
-
this.persistTimer = null;
|
|
280
|
-
}
|
|
281
|
-
await this.persistPromise;
|
|
282
|
-
}
|
|
283
|
-
discardPendingSyncCursorPersistence() {
|
|
284
|
-
this.frozen = true;
|
|
285
|
-
if (this.persistTimer) {
|
|
286
|
-
clearTimeout(this.persistTimer);
|
|
287
|
-
this.persistTimer = null;
|
|
288
|
-
}
|
|
289
|
-
this.cleanShutdown = false;
|
|
290
|
-
this.dirty = false;
|
|
291
|
-
}
|
|
292
|
-
async flush() {
|
|
293
|
-
if (this.persistTimer) {
|
|
294
|
-
clearTimeout(this.persistTimer);
|
|
295
|
-
this.persistTimer = null;
|
|
296
|
-
}
|
|
297
|
-
while (this.dirty || this.persistPromise) {
|
|
298
|
-
if (this.dirty && !this.persistPromise) this.persistPromise = this.persist().finally(() => {
|
|
299
|
-
this.persistPromise = null;
|
|
300
|
-
});
|
|
301
|
-
await this.persistPromise;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
markDirtyAndSchedulePersist() {
|
|
305
|
-
if (this.frozen) return;
|
|
306
|
-
this.cleanShutdown = false;
|
|
307
|
-
this.dirty = true;
|
|
308
|
-
if (this.persistTimer) return;
|
|
309
|
-
this.persistTimer = setTimeout(() => {
|
|
310
|
-
this.persistTimer = null;
|
|
311
|
-
this.flush().catch((err) => {
|
|
312
|
-
LogService.warn("MatrixSyncCacheStore", "Failed to persist Matrix sync store:", err);
|
|
313
|
-
});
|
|
314
|
-
}, PERSIST_DEBOUNCE_MS);
|
|
315
|
-
this.persistTimer.unref?.();
|
|
316
|
-
}
|
|
317
|
-
async persist() {
|
|
318
|
-
this.assertStoreAvailable();
|
|
319
|
-
this.dirty = false;
|
|
320
|
-
const payload = {
|
|
321
|
-
version: 1,
|
|
322
|
-
savedSync: this.savedSync ? cloneJson(this.savedSync) : null,
|
|
323
|
-
cleanShutdown: this.cleanShutdown,
|
|
324
|
-
...this.savedClientOptions ? { clientOptions: cloneJson(this.savedClientOptions) } : {}
|
|
325
|
-
};
|
|
326
|
-
try {
|
|
327
|
-
await this.persistLock(async () => {
|
|
328
|
-
writeMatrixSyncCacheStateToSyncStore({
|
|
329
|
-
payload,
|
|
330
|
-
store: this.store
|
|
331
|
-
});
|
|
332
|
-
await claimCurrentTokenStorageState({ rootDir: this.storageRootDir });
|
|
333
|
-
});
|
|
334
|
-
} catch (err) {
|
|
335
|
-
this.dirty = true;
|
|
336
|
-
throw err;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
assertStoreAvailable() {
|
|
340
|
-
if (this.storeUnavailableError == null) return;
|
|
341
|
-
throw new Error("Matrix sync cache SQLite store is unavailable; cannot persist sync state", { cause: this.storeUnavailableError });
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
function createNoopMatrixSyncCacheStore() {
|
|
345
|
-
return {
|
|
346
|
-
register: () => {},
|
|
347
|
-
registerIfAbsent: () => false,
|
|
348
|
-
lookup: () => void 0,
|
|
349
|
-
lookupMany: (keys) => keys.map(() => ({
|
|
350
|
-
ok: true,
|
|
351
|
-
value: void 0
|
|
352
|
-
})),
|
|
353
|
-
consume: () => void 0,
|
|
354
|
-
delete: () => false,
|
|
355
|
-
entries: () => [],
|
|
356
|
-
clear: () => {}
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
function openMatrixSyncCacheStore(storageRootDir) {
|
|
360
|
-
return getMatrixRuntime().state.openSyncKeyedStore(openMatrixSyncCacheStoreOptions(storageRootDir));
|
|
361
|
-
}
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region extensions/matrix/src/matrix/sdk/client-sync-quiesce.ts
|
|
364
|
-
const MATRIX_SYNC_QUIESCE_TIMEOUT_MS = 5e3;
|
|
365
|
-
const MATRIX_JS_SDK_SYNC_VERSION = "42.3.0";
|
|
366
|
-
const matrixJsSdkPackage = createRequire(import.meta.url)("matrix-js-sdk/package.json");
|
|
367
|
-
function requireMatrixClassicSyncInternals(syncApi) {
|
|
368
|
-
return syncApi;
|
|
369
|
-
}
|
|
370
|
-
function assertMatrixJsSdkSyncVersion() {
|
|
371
|
-
const version = matrixJsSdkPackage.version;
|
|
372
|
-
if (version !== MATRIX_JS_SDK_SYNC_VERSION) throw new Error(`Matrix sync quiesce requires matrix-js-sdk ${MATRIX_JS_SDK_SYNC_VERSION}; found ${String(version)}`);
|
|
373
|
-
}
|
|
374
|
-
async function quiesceMatrixClientSync(params) {
|
|
375
|
-
await params.syncStore?.freezeSyncCursorPersistence();
|
|
376
|
-
try {
|
|
377
|
-
assertMatrixJsSdkSyncVersion();
|
|
378
|
-
} catch (error) {
|
|
379
|
-
params.syncStore?.discardPendingSyncCursorPersistence();
|
|
380
|
-
throw error;
|
|
381
|
-
}
|
|
382
|
-
const syncApi = params.client.syncApi;
|
|
383
|
-
if (syncApi === void 0 && !params.started) return;
|
|
384
|
-
if (!(syncApi instanceof SyncApi)) {
|
|
385
|
-
params.syncStore?.discardPendingSyncCursorPersistence();
|
|
386
|
-
throw new Error(syncApi === void 0 ? "Matrix sync quiesce requires the classic matrix-js-sdk SyncApi, but none is active" : "Matrix sync quiesce rejected a sliding or unknown matrix-js-sdk sync implementation");
|
|
387
|
-
}
|
|
388
|
-
const syncState = syncApi.getSyncState();
|
|
389
|
-
if (syncState === SyncState.Stopped) {
|
|
390
|
-
params.markStopped();
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
const disconnectedBeforeStop = syncState === SyncState.Error || syncState === SyncState.Reconnecting;
|
|
394
|
-
const syncInternals = requireMatrixClassicSyncInternals(syncApi);
|
|
395
|
-
const keepaliveResolvers = disconnectedBeforeStop ? syncInternals.connectionReturnedResolvers : void 0;
|
|
396
|
-
await new Promise((resolve, reject) => {
|
|
397
|
-
let settled = false;
|
|
398
|
-
const settle = (error) => {
|
|
399
|
-
if (settled) return;
|
|
400
|
-
settled = true;
|
|
401
|
-
clearTimeout(timeout);
|
|
402
|
-
params.emitter.off("sync.state", onSyncState);
|
|
403
|
-
if (error) reject(error);
|
|
404
|
-
else {
|
|
405
|
-
params.markStopped();
|
|
406
|
-
resolve();
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
const onSyncState = (state) => {
|
|
410
|
-
if (state === "STOPPED") settle();
|
|
411
|
-
};
|
|
412
|
-
const timeout = setTimeout(() => {
|
|
413
|
-
params.syncStore?.discardPendingSyncCursorPersistence();
|
|
414
|
-
settle(/* @__PURE__ */ new Error(`Matrix classic sync did not reach STOPPED within 5000ms`));
|
|
415
|
-
}, MATRIX_SYNC_QUIESCE_TIMEOUT_MS);
|
|
416
|
-
timeout.unref?.();
|
|
417
|
-
params.emitter.on("sync.state", onSyncState);
|
|
418
|
-
try {
|
|
419
|
-
syncApi.stop();
|
|
420
|
-
if (keepaliveResolvers && syncInternals.connectionReturnedResolvers === keepaliveResolvers) {
|
|
421
|
-
syncInternals.connectionReturnedResolvers = void 0;
|
|
422
|
-
keepaliveResolvers.reject("SyncApi.stop() was called");
|
|
423
|
-
settle();
|
|
424
|
-
}
|
|
425
|
-
} catch (error) {
|
|
426
|
-
params.syncStore?.discardPendingSyncCursorPersistence();
|
|
427
|
-
settle(error instanceof Error ? error : new Error(String(error)));
|
|
428
|
-
}
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
//#endregion
|
|
432
|
-
//#region extensions/matrix/src/matrix/sdk/client-sync-ready.ts
|
|
433
|
-
async function waitForMatrixInitialSyncReady(params) {
|
|
434
|
-
const timeoutMs = params.timeoutMs ?? 3e4;
|
|
435
|
-
if (isMatrixReadySyncState(params.state)) return;
|
|
436
|
-
if (isMatrixAccessTokenInvalidatedError(params.error)) throw params.error instanceof Error ? params.error : new Error("Matrix access token invalidated", { cause: params.error });
|
|
437
|
-
if (isMatrixTerminalSyncState(params.state)) throw new Error(`Matrix sync entered ${params.state} during startup`);
|
|
438
|
-
await new Promise((resolve, reject) => {
|
|
439
|
-
let settled = false;
|
|
440
|
-
let timeoutId;
|
|
441
|
-
const abortSignal = params.abortSignal;
|
|
442
|
-
const cleanup = () => {
|
|
443
|
-
params.emitter.off("sync.state", onSyncState);
|
|
444
|
-
params.emitter.off("sync.unexpected_error", onUnexpectedError);
|
|
445
|
-
abortSignal?.removeEventListener("abort", onAbort);
|
|
446
|
-
if (timeoutId) {
|
|
447
|
-
clearTimeout(timeoutId);
|
|
448
|
-
timeoutId = void 0;
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
const settleResolve = () => {
|
|
452
|
-
if (settled) return;
|
|
453
|
-
settled = true;
|
|
454
|
-
cleanup();
|
|
455
|
-
resolve();
|
|
456
|
-
};
|
|
457
|
-
const settleReject = (error) => {
|
|
458
|
-
if (settled) return;
|
|
459
|
-
settled = true;
|
|
460
|
-
cleanup();
|
|
461
|
-
reject(error);
|
|
462
|
-
};
|
|
463
|
-
const onSyncState = (state, _prevState, error) => {
|
|
464
|
-
if (isMatrixReadySyncState(state)) {
|
|
465
|
-
settleResolve();
|
|
466
|
-
return;
|
|
467
|
-
}
|
|
468
|
-
if (isMatrixAccessTokenInvalidatedError(error)) {
|
|
469
|
-
settleReject(error instanceof Error ? error : /* @__PURE__ */ new Error("Matrix access token invalidated"));
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
if (isMatrixTerminalSyncState(state)) settleReject(new Error(error instanceof Error && error.message ? error.message : `Matrix sync entered ${state} during startup`));
|
|
473
|
-
};
|
|
474
|
-
const onUnexpectedError = (error) => {
|
|
475
|
-
settleReject(error);
|
|
476
|
-
};
|
|
477
|
-
const onAbort = () => {
|
|
478
|
-
settleReject(createMatrixStartupAbortError());
|
|
479
|
-
};
|
|
480
|
-
params.emitter.on("sync.state", onSyncState);
|
|
481
|
-
params.emitter.on("sync.unexpected_error", onUnexpectedError);
|
|
482
|
-
if (abortSignal?.aborted) {
|
|
483
|
-
onAbort();
|
|
484
|
-
return;
|
|
485
|
-
}
|
|
486
|
-
abortSignal?.addEventListener("abort", onAbort, { once: true });
|
|
487
|
-
timeoutId = setTimeout(() => {
|
|
488
|
-
settleReject(/* @__PURE__ */ new Error(`Matrix client did not reach a ready sync state within ${timeoutMs}ms`));
|
|
489
|
-
}, timeoutMs);
|
|
490
|
-
timeoutId.unref?.();
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
//#endregion
|
|
494
|
-
//#region extensions/matrix/src/matrix/sdk/message-wire-dispatch.ts
|
|
495
|
-
function resolveMessageWireDispatch(resource, init) {
|
|
496
|
-
if ((init?.method ?? (resource instanceof Request ? resource.method : "GET")).toUpperCase() !== "PUT") return null;
|
|
497
|
-
const rawUrl = typeof resource === "string" ? resource : resource instanceof URL ? resource.href : resource.url;
|
|
498
|
-
const segments = new URL(rawUrl).pathname.split("/").filter(Boolean);
|
|
499
|
-
const roomsIndex = segments.lastIndexOf("rooms");
|
|
500
|
-
if (roomsIndex < 0 || segments[roomsIndex + 2] !== "send" || segments.length !== roomsIndex + 5) return null;
|
|
501
|
-
const eventType = decodeURIComponent(segments[roomsIndex + 3] ?? "");
|
|
502
|
-
if (eventType !== "m.room.message" && eventType !== "m.room.encrypted") return null;
|
|
503
|
-
return {
|
|
504
|
-
roomId: decodeURIComponent(segments[roomsIndex + 1] ?? ""),
|
|
505
|
-
eventType,
|
|
506
|
-
transactionId: decodeURIComponent(segments[roomsIndex + 4] ?? ""),
|
|
507
|
-
requestPath: new URL(rawUrl).pathname
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
var MatrixMessageWireDispatchGuards = class {
|
|
511
|
-
constructor() {
|
|
512
|
-
this.guards = /* @__PURE__ */ new Map();
|
|
513
|
-
}
|
|
514
|
-
captureCurrentness(resource, init, fallback) {
|
|
515
|
-
const dispatch = resolveMessageWireDispatch(resource, init);
|
|
516
|
-
const entry = dispatch ? this.guards.get(dispatch.transactionId) : void 0;
|
|
517
|
-
if (!entry) return fallback;
|
|
518
|
-
const assertCurrent = entry.assertCurrent;
|
|
519
|
-
return assertCurrent ? () => {
|
|
520
|
-
try {
|
|
521
|
-
assertCurrent();
|
|
522
|
-
} catch (error) {
|
|
523
|
-
entry.currentnessRejected = true;
|
|
524
|
-
throw error;
|
|
525
|
-
}
|
|
526
|
-
} : void 0;
|
|
527
|
-
}
|
|
528
|
-
wasCurrentnessRejected(transactionId) {
|
|
529
|
-
return transactionId !== void 0 && this.guards.get(transactionId)?.currentnessRejected === true;
|
|
530
|
-
}
|
|
531
|
-
beforeRequest(resource, init) {
|
|
532
|
-
const dispatch = resolveMessageWireDispatch(resource, init);
|
|
533
|
-
return dispatch ? Promise.resolve(this.guards.get(dispatch.transactionId)?.guard?.(dispatch)) : void 0;
|
|
534
|
-
}
|
|
535
|
-
async run(params) {
|
|
536
|
-
if (!params.transactionId || !params.guard && !params.assertCurrent) return await params.run();
|
|
537
|
-
if (this.guards.has(params.transactionId)) throw new Error(`Matrix transaction ${params.transactionId} already has a dispatch guard`);
|
|
538
|
-
this.guards.set(params.transactionId, {
|
|
539
|
-
guard: params.guard,
|
|
540
|
-
assertCurrent: params.assertCurrent
|
|
541
|
-
});
|
|
542
|
-
try {
|
|
543
|
-
return await params.run();
|
|
544
|
-
} finally {
|
|
545
|
-
this.guards.delete(params.transactionId);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
};
|
|
549
|
-
//#endregion
|
|
550
|
-
//#region extensions/matrix/src/matrix/sdk/recovery-key-store.ts
|
|
551
|
-
function isRepairableSecretStorageAccessError(err) {
|
|
552
|
-
const message = formatMatrixErrorReason(err);
|
|
553
|
-
if (!message) return false;
|
|
554
|
-
if (message.includes("getsecretstoragekey callback returned falsey")) return true;
|
|
555
|
-
if (message.includes("decrypting secret") && message.includes("bad mac")) return true;
|
|
556
|
-
return false;
|
|
557
|
-
}
|
|
558
|
-
var MatrixRecoveryKeyStore = class {
|
|
559
|
-
constructor(recoveryKeyPath, stateRuntime) {
|
|
560
|
-
this.secretStorageKeyCache = /* @__PURE__ */ new Map();
|
|
561
|
-
this.stagedRecoveryKey = null;
|
|
562
|
-
this.stagedRecoveryKeyUsed = false;
|
|
563
|
-
this.stagedCacheKeyIds = /* @__PURE__ */ new Set();
|
|
564
|
-
this.pendingPersistence = Promise.resolve();
|
|
565
|
-
this.closed = false;
|
|
566
|
-
this.recoveryKeyPath = recoveryKeyPath;
|
|
567
|
-
this.storageRootDir = recoveryKeyPath ? path.dirname(recoveryKeyPath) : void 0;
|
|
568
|
-
if (recoveryKeyPath) {
|
|
569
|
-
this.stateRuntime = stateRuntime ?? getMatrixRuntime().state;
|
|
570
|
-
const runtime = this.stateRuntime;
|
|
571
|
-
this.enqueuePersistence(async () => {
|
|
572
|
-
try {
|
|
573
|
-
await migrateLegacyMatrixRecoveryKeyFilePathToStoreAsync(recoveryKeyPath, runtime);
|
|
574
|
-
} catch (err) {
|
|
575
|
-
this.legacyRecoveryKeyPathOnMigrationFailure = recoveryKeyPath;
|
|
576
|
-
LogService.warn("MatrixClientLite", "Failed to migrate Matrix recovery key state:", err);
|
|
577
|
-
}
|
|
578
|
-
});
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
enqueuePersistence(run) {
|
|
582
|
-
if (this.closed) return Promise.reject(/* @__PURE__ */ new Error("Matrix recovery key store is closed"));
|
|
583
|
-
const pending = this.pendingPersistence.then(run);
|
|
584
|
-
this.pendingPersistence = pending.then(() => {}, () => {});
|
|
585
|
-
return pending;
|
|
586
|
-
}
|
|
587
|
-
async afterPersistence(read) {
|
|
588
|
-
for (;;) {
|
|
589
|
-
const pending = this.pendingPersistence;
|
|
590
|
-
await pending;
|
|
591
|
-
if (pending === this.pendingPersistence) return read();
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
async drainPendingPersistence() {
|
|
595
|
-
await this.afterPersistence(() => {});
|
|
596
|
-
}
|
|
597
|
-
async close() {
|
|
598
|
-
this.closed = true;
|
|
599
|
-
await this.drainPendingPersistence();
|
|
600
|
-
}
|
|
601
|
-
buildCryptoCallbacks() {
|
|
602
|
-
const getSecretStorageKey = ({ keys }) => this.afterPersistence(async () => {
|
|
603
|
-
if (this.closed) return null;
|
|
604
|
-
const requestedKeyIds = Object.keys(keys ?? {});
|
|
605
|
-
if (requestedKeyIds.length === 0) return null;
|
|
606
|
-
const staged = this.resolveStagedSecretStorageKey(requestedKeyIds);
|
|
607
|
-
if (staged) return staged;
|
|
608
|
-
for (const keyId of requestedKeyIds) {
|
|
609
|
-
const cached = this.secretStorageKeyCache.get(keyId);
|
|
610
|
-
if (cached) return [keyId, new Uint8Array(cached.key)];
|
|
611
|
-
}
|
|
612
|
-
const pending = this.pendingPersistence;
|
|
613
|
-
const stored = await this.loadStoredRecoveryKey();
|
|
614
|
-
if (this.closed) return null;
|
|
615
|
-
if (pending !== this.pendingPersistence) return getSecretStorageKey({ keys });
|
|
616
|
-
if (!stored?.privateKeyBase64) return null;
|
|
617
|
-
const privateKey = new Uint8Array(Buffer.from(stored.privateKeyBase64, "base64"));
|
|
618
|
-
if (privateKey.length === 0) return null;
|
|
619
|
-
if (stored.keyId && requestedKeyIds.includes(stored.keyId)) {
|
|
620
|
-
this.rememberSecretStorageKey(stored.keyId, privateKey, stored.keyInfo);
|
|
621
|
-
return [stored.keyId, privateKey];
|
|
622
|
-
}
|
|
623
|
-
const firstRequestedKeyId = requestedKeyIds[0];
|
|
624
|
-
if (!firstRequestedKeyId) return null;
|
|
625
|
-
this.rememberSecretStorageKey(firstRequestedKeyId, privateKey, stored.keyInfo);
|
|
626
|
-
return [firstRequestedKeyId, privateKey];
|
|
627
|
-
});
|
|
628
|
-
return {
|
|
629
|
-
getSecretStorageKey,
|
|
630
|
-
cacheSecretStorageKey: (keyId, keyInfo, key) => {
|
|
631
|
-
if (this.closed) return;
|
|
632
|
-
const privateKey = new Uint8Array(key);
|
|
633
|
-
const normalizedKeyInfo = {
|
|
634
|
-
passphrase: keyInfo?.passphrase,
|
|
635
|
-
name: typeof keyInfo?.name === "string" ? keyInfo.name : void 0
|
|
636
|
-
};
|
|
637
|
-
this.rememberSecretStorageKey(keyId, privateKey, normalizedKeyInfo);
|
|
638
|
-
this.saveRecoveryKeyToDisk({
|
|
639
|
-
keyId,
|
|
640
|
-
keyInfo: normalizedKeyInfo,
|
|
641
|
-
privateKey
|
|
642
|
-
}, true);
|
|
643
|
-
}
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
|
-
async getRecoveryKeySummary() {
|
|
647
|
-
const stored = await this.afterPersistence(() => this.loadStoredRecoveryKey());
|
|
648
|
-
if (!stored) return null;
|
|
649
|
-
return {
|
|
650
|
-
encodedPrivateKey: stored.encodedPrivateKey,
|
|
651
|
-
keyId: stored.keyId,
|
|
652
|
-
createdAt: stored.createdAt
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
getSecretStorageKeyCandidate(keyId) {
|
|
656
|
-
return this.afterPersistence(async () => {
|
|
657
|
-
if (this.closed) return null;
|
|
658
|
-
const normalizedKeyId = keyId.trim();
|
|
659
|
-
if (!normalizedKeyId) return null;
|
|
660
|
-
const staged = this.resolveStagedSecretStorageKey([normalizedKeyId]);
|
|
661
|
-
if (staged) return staged[1];
|
|
662
|
-
const pending = this.pendingPersistence;
|
|
663
|
-
const stored = await this.loadStoredRecoveryKey();
|
|
664
|
-
if (this.closed) return null;
|
|
665
|
-
if (pending !== this.pendingPersistence) return this.getSecretStorageKeyCandidate(keyId);
|
|
666
|
-
if (!stored?.privateKeyBase64) return null;
|
|
667
|
-
const privateKey = new Uint8Array(Buffer.from(stored.privateKeyBase64, "base64"));
|
|
668
|
-
if (privateKey.length === 0) return null;
|
|
669
|
-
this.rememberSecretStorageKey(normalizedKeyId, privateKey, stored.keyInfo);
|
|
670
|
-
return privateKey;
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
resolveEncodedRecoveryKeyInput(params) {
|
|
674
|
-
const encodedPrivateKey = params.encodedPrivateKey.trim();
|
|
675
|
-
if (!encodedPrivateKey) throw new Error("Matrix recovery key is required");
|
|
676
|
-
let privateKey;
|
|
677
|
-
try {
|
|
678
|
-
privateKey = decodeRecoveryKey(encodedPrivateKey);
|
|
679
|
-
} catch (err) {
|
|
680
|
-
throw new Error(`Invalid Matrix recovery key: ${formatErrorMessage(err)}`, { cause: err });
|
|
681
|
-
}
|
|
682
|
-
const keyId = typeof params.keyId === "string" && params.keyId.trim() ? params.keyId.trim() : null;
|
|
683
|
-
return {
|
|
684
|
-
encodedPrivateKey,
|
|
685
|
-
privateKey,
|
|
686
|
-
keyId,
|
|
687
|
-
keyInfo: params.keyInfo
|
|
688
|
-
};
|
|
689
|
-
}
|
|
690
|
-
stageEncodedRecoveryKey(params) {
|
|
691
|
-
const prepared = this.resolveEncodedRecoveryKeyInput(params);
|
|
692
|
-
return this.enqueuePersistence(async () => {
|
|
693
|
-
const keyInfo = prepared.keyInfo ?? (await this.loadStoredRecoveryKey())?.keyInfo;
|
|
694
|
-
this.clearStagedCache();
|
|
695
|
-
this.stagedRecoveryKey = {
|
|
696
|
-
version: 1,
|
|
697
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
698
|
-
keyId: prepared.keyId,
|
|
699
|
-
encodedPrivateKey: prepared.encodedPrivateKey,
|
|
700
|
-
privateKeyBase64: Buffer.from(prepared.privateKey).toString("base64"),
|
|
701
|
-
keyInfo
|
|
702
|
-
};
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
hasStagedRecoveryKeyBeenUsed() {
|
|
706
|
-
return this.stagedRecoveryKeyUsed;
|
|
707
|
-
}
|
|
708
|
-
async commitStagedRecoveryKey(params) {
|
|
709
|
-
await this.enqueuePersistence(async () => {
|
|
710
|
-
if (!this.stagedRecoveryKey) return;
|
|
711
|
-
const staged = this.stagedRecoveryKey;
|
|
712
|
-
const privateKey = new Uint8Array(Buffer.from(staged.privateKeyBase64, "base64"));
|
|
713
|
-
const keyId = typeof params?.keyId === "string" && params.keyId.trim() ? params.keyId.trim() : staged.keyId;
|
|
714
|
-
await this.persistRecoveryKey({
|
|
715
|
-
keyId,
|
|
716
|
-
keyInfo: params?.keyInfo ?? staged.keyInfo,
|
|
717
|
-
privateKey,
|
|
718
|
-
encodedPrivateKey: staged.encodedPrivateKey
|
|
719
|
-
});
|
|
720
|
-
this.clearStagedRecoveryKeyTracking();
|
|
721
|
-
});
|
|
722
|
-
return this.getRecoveryKeySummary();
|
|
723
|
-
}
|
|
724
|
-
discardStagedRecoveryKey() {
|
|
725
|
-
return this.enqueuePersistence(async () => this.clearStagedCache());
|
|
726
|
-
}
|
|
727
|
-
clearStagedCache() {
|
|
728
|
-
for (const keyId of this.stagedCacheKeyIds) this.secretStorageKeyCache.delete(keyId);
|
|
729
|
-
this.clearStagedRecoveryKeyTracking();
|
|
730
|
-
}
|
|
731
|
-
async bootstrapSecretStorageWithRecoveryKey(crypto, options = {}) {
|
|
732
|
-
await this.drainPendingPersistence();
|
|
733
|
-
let status = null;
|
|
734
|
-
const getSecretStorageStatus = crypto.getSecretStorageStatus;
|
|
735
|
-
if (typeof getSecretStorageStatus === "function") try {
|
|
736
|
-
status = await getSecretStorageStatus.call(crypto);
|
|
737
|
-
} catch (err) {
|
|
738
|
-
LogService.warn("MatrixClientLite", "Failed to read secret storage status:", err);
|
|
739
|
-
}
|
|
740
|
-
const hasDefaultSecretStorageKey = Boolean(status?.defaultKeyId);
|
|
741
|
-
const hasKnownInvalidSecrets = Object.values(status?.secretStorageKeyValidityMap ?? {}).some((valid) => !valid);
|
|
742
|
-
let generatedRecoveryKey = false;
|
|
743
|
-
const storedRecovery = await this.afterPersistence(() => this.loadStoredRecoveryKey());
|
|
744
|
-
const stagedRecovery = this.stagedRecoveryKey;
|
|
745
|
-
const sourceRecovery = options.forceNewRecoveryKey === true ? null : stagedRecovery ?? storedRecovery;
|
|
746
|
-
let recoveryKey = sourceRecovery ? {
|
|
747
|
-
keyInfo: sourceRecovery.keyInfo,
|
|
748
|
-
privateKey: new Uint8Array(Buffer.from(sourceRecovery.privateKeyBase64, "base64")),
|
|
749
|
-
encodedPrivateKey: sourceRecovery.encodedPrivateKey
|
|
750
|
-
} : null;
|
|
751
|
-
if (recoveryKey && status?.defaultKeyId) {
|
|
752
|
-
const defaultKeyId = status.defaultKeyId;
|
|
753
|
-
if (!stagedRecovery) {
|
|
754
|
-
this.rememberSecretStorageKey(defaultKeyId, recoveryKey.privateKey, recoveryKey.keyInfo);
|
|
755
|
-
if (storedRecovery && storedRecovery.keyId !== defaultKeyId) await this.saveRecoveryKeyToDisk({
|
|
756
|
-
keyId: defaultKeyId,
|
|
757
|
-
keyInfo: recoveryKey.keyInfo,
|
|
758
|
-
privateKey: recoveryKey.privateKey,
|
|
759
|
-
encodedPrivateKey: recoveryKey.encodedPrivateKey
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
const ensureRecoveryKey = async () => {
|
|
764
|
-
if (recoveryKey) {
|
|
765
|
-
if (stagedRecovery) this.stagedRecoveryKeyUsed = true;
|
|
766
|
-
return recoveryKey;
|
|
767
|
-
}
|
|
768
|
-
if (typeof crypto.createRecoveryKeyFromPassphrase !== "function") throw new Error("Matrix crypto backend does not support recovery key generation (createRecoveryKeyFromPassphrase missing)");
|
|
769
|
-
recoveryKey = await crypto.createRecoveryKeyFromPassphrase();
|
|
770
|
-
await this.saveRecoveryKeyToDisk(recoveryKey);
|
|
771
|
-
generatedRecoveryKey = true;
|
|
772
|
-
return recoveryKey;
|
|
773
|
-
};
|
|
774
|
-
const shouldRecreateSecretStorage = options.forceNewSecretStorage === true || !hasDefaultSecretStorageKey || !recoveryKey && status?.ready === false || hasKnownInvalidSecrets;
|
|
775
|
-
if (hasKnownInvalidSecrets) recoveryKey = null;
|
|
776
|
-
const secretStorageOptions = { setupNewKeyBackup: options.setupNewKeyBackup === true };
|
|
777
|
-
if (shouldRecreateSecretStorage) {
|
|
778
|
-
secretStorageOptions.setupNewSecretStorage = true;
|
|
779
|
-
secretStorageOptions.createSecretStorageKey = ensureRecoveryKey;
|
|
780
|
-
}
|
|
781
|
-
try {
|
|
782
|
-
try {
|
|
783
|
-
await crypto.bootstrapSecretStorage(secretStorageOptions);
|
|
784
|
-
} finally {
|
|
785
|
-
await this.drainPendingPersistence();
|
|
786
|
-
}
|
|
787
|
-
} catch (err) {
|
|
788
|
-
if (!(options.allowSecretStorageRecreateWithoutRecoveryKey === true && hasDefaultSecretStorageKey && isRepairableSecretStorageAccessError(err))) throw err;
|
|
789
|
-
recoveryKey = null;
|
|
790
|
-
LogService.warn("MatrixClientLite", "Secret storage exists on the server but local recovery material cannot unlock it; recreating secret storage during explicit bootstrap.");
|
|
791
|
-
try {
|
|
792
|
-
await crypto.bootstrapSecretStorage({
|
|
793
|
-
setupNewSecretStorage: true,
|
|
794
|
-
setupNewKeyBackup: options.setupNewKeyBackup === true,
|
|
795
|
-
createSecretStorageKey: ensureRecoveryKey
|
|
796
|
-
});
|
|
797
|
-
} finally {
|
|
798
|
-
await this.drainPendingPersistence();
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
if (generatedRecoveryKey && this.storageRootDir) LogService.warn("MatrixClientLite", "Generated Matrix recovery key and saved it to Matrix SQLite state. Keep the displayed recovery key secure.");
|
|
802
|
-
}
|
|
803
|
-
clearStagedRecoveryKeyTracking() {
|
|
804
|
-
this.stagedRecoveryKey = null;
|
|
805
|
-
this.stagedRecoveryKeyUsed = false;
|
|
806
|
-
this.stagedCacheKeyIds.clear();
|
|
807
|
-
}
|
|
808
|
-
resolveStagedSecretStorageKey(requestedKeyIds) {
|
|
809
|
-
const staged = this.stagedRecoveryKey;
|
|
810
|
-
if (!staged?.privateKeyBase64) return null;
|
|
811
|
-
const privateKey = new Uint8Array(Buffer.from(staged.privateKeyBase64, "base64"));
|
|
812
|
-
if (privateKey.length === 0) return null;
|
|
813
|
-
const keyId = staged.keyId && requestedKeyIds.includes(staged.keyId) ? staged.keyId : requestedKeyIds[0];
|
|
814
|
-
if (!keyId) return null;
|
|
815
|
-
this.rememberStagedSecretStorageKey(keyId, privateKey, staged.keyInfo);
|
|
816
|
-
this.stagedCacheKeyIds.add(keyId);
|
|
817
|
-
return [keyId, privateKey];
|
|
818
|
-
}
|
|
819
|
-
rememberStagedSecretStorageKey(keyId, key, keyInfo) {
|
|
820
|
-
this.stagedRecoveryKeyUsed = true;
|
|
821
|
-
this.rememberSecretStorageKey(keyId, key, keyInfo);
|
|
822
|
-
}
|
|
823
|
-
rememberSecretStorageKey(keyId, key, keyInfo) {
|
|
824
|
-
if (!keyId.trim()) return;
|
|
825
|
-
this.secretStorageKeyCache.set(keyId, {
|
|
826
|
-
key: new Uint8Array(key),
|
|
827
|
-
keyInfo
|
|
828
|
-
});
|
|
829
|
-
}
|
|
830
|
-
async loadStoredRecoveryKey() {
|
|
831
|
-
if (!this.recoveryKeyPath || !this.stateRuntime) return null;
|
|
832
|
-
try {
|
|
833
|
-
const stored = await readMatrixRecoveryKeyStateForPathAsync(this.recoveryKeyPath, this.stateRuntime);
|
|
834
|
-
if (stored) return stored;
|
|
835
|
-
} catch {}
|
|
836
|
-
if (this.legacyRecoveryKeyPathOnMigrationFailure) return readLegacyMatrixRecoveryKeyFile(this.legacyRecoveryKeyPathOnMigrationFailure);
|
|
837
|
-
return null;
|
|
838
|
-
}
|
|
839
|
-
saveRecoveryKeyToDisk(params, preserveEncodedPrivateKey = false) {
|
|
840
|
-
return this.enqueuePersistence(() => this.persistRecoveryKey(params, preserveEncodedPrivateKey));
|
|
841
|
-
}
|
|
842
|
-
async persistRecoveryKey(params, preserveEncodedPrivateKey = false) {
|
|
843
|
-
if (!this.recoveryKeyPath || !this.stateRuntime) return;
|
|
844
|
-
try {
|
|
845
|
-
const payload = {
|
|
846
|
-
version: 1,
|
|
847
|
-
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
848
|
-
keyId: typeof params.keyId === "string" ? params.keyId : null,
|
|
849
|
-
encodedPrivateKey: params.encodedPrivateKey,
|
|
850
|
-
privateKeyBase64: Buffer.from(params.privateKey).toString("base64"),
|
|
851
|
-
keyInfo: params.keyInfo ? {
|
|
852
|
-
passphrase: params.keyInfo.passphrase,
|
|
853
|
-
name: params.keyInfo.name
|
|
854
|
-
} : void 0
|
|
855
|
-
};
|
|
856
|
-
await writeMatrixRecoveryKeyStateForPathAsync({
|
|
857
|
-
recoveryKeyPath: this.recoveryKeyPath,
|
|
858
|
-
payload,
|
|
859
|
-
stateRuntime: this.stateRuntime,
|
|
860
|
-
preserveEncodedPrivateKey
|
|
861
|
-
});
|
|
862
|
-
} catch (err) {
|
|
863
|
-
LogService.warn("MatrixClientLite", "Failed to persist recovery key:", err);
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
};
|
|
867
|
-
//#endregion
|
|
868
|
-
//#region extensions/matrix/src/matrix/sdk/send-scheduler.ts
|
|
869
|
-
/** Keep SDK FIFO/backoff while settling a caller's pre-request rejection only for its event. */
|
|
870
|
-
var MatrixSendScheduler = class extends MatrixScheduler {
|
|
871
|
-
constructor(wasCurrentnessRejected) {
|
|
872
|
-
super();
|
|
873
|
-
this.wasCurrentnessRejected = wasCurrentnessRejected;
|
|
874
|
-
this.queue = new MatrixScheduler();
|
|
875
|
-
}
|
|
876
|
-
setProcessFunction(processEvent) {
|
|
877
|
-
this.queue.setProcessFunction(async (event) => {
|
|
878
|
-
try {
|
|
879
|
-
return {
|
|
880
|
-
kind: "sent",
|
|
881
|
-
result: await withoutMatrixSendCurrentness(() => processEvent(event))
|
|
882
|
-
};
|
|
883
|
-
} catch (error) {
|
|
884
|
-
if (!this.wasCurrentnessRejected(event)) throw error;
|
|
885
|
-
return {
|
|
886
|
-
kind: "rejected",
|
|
887
|
-
error
|
|
888
|
-
};
|
|
889
|
-
}
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
queueEvent(event) {
|
|
893
|
-
const queued = this.queue.queueEvent(event);
|
|
894
|
-
return queued ? queued.then((outcome) => {
|
|
895
|
-
if (outcome.kind === "rejected") throw outcome.error;
|
|
896
|
-
return outcome.result;
|
|
897
|
-
}) : null;
|
|
898
|
-
}
|
|
899
|
-
getQueueForEvent(event) {
|
|
900
|
-
return this.queue.getQueueForEvent(event);
|
|
901
|
-
}
|
|
902
|
-
removeEventFromQueue(event) {
|
|
903
|
-
return this.queue.removeEventFromQueue(event);
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
|
-
//#endregion
|
|
907
|
-
//#region extensions/matrix/src/matrix/sdk/client-base.ts
|
|
908
|
-
const MATRIX_ENCRYPTED_STARTUP_TIMEOUT_MS = 6e4;
|
|
909
|
-
let loadedMatrixCryptoRuntime = null;
|
|
910
|
-
const loadMatrixCryptoRuntime = createLazyRuntimeModule(() => import("./crypto-runtime-9oxuU30y.mjs").then((runtime) => {
|
|
911
|
-
loadedMatrixCryptoRuntime = runtime;
|
|
912
|
-
return runtime;
|
|
913
|
-
}));
|
|
914
|
-
var MatrixClientBase = class {
|
|
915
|
-
withClientCryptoWork(run, requestSignal) {
|
|
916
|
-
this.assertClientActive();
|
|
917
|
-
return withoutMatrixSendCurrentness(() => this.cryptoRequestOwner.run({
|
|
918
|
-
callerAuthority: captureChannelReadAuthority(),
|
|
919
|
-
requestSignal
|
|
920
|
-
}, run));
|
|
921
|
-
}
|
|
922
|
-
constructor(homeserver, accessToken, opts = {}) {
|
|
923
|
-
this.emitter = new EventEmitter();
|
|
924
|
-
this.bridgeRegistered = false;
|
|
925
|
-
this.started = false;
|
|
926
|
-
this.cryptoBootstrapped = false;
|
|
927
|
-
this.dmRoomIds = /* @__PURE__ */ new Set();
|
|
928
|
-
this.cryptoInitialized = false;
|
|
929
|
-
this.sendQueue = new KeyedAsyncQueue();
|
|
930
|
-
this.syncQuiescePromise = null;
|
|
931
|
-
this.stopPersistPromise = null;
|
|
932
|
-
this.verificationSummaryListenerBound = false;
|
|
933
|
-
this.currentSyncState = null;
|
|
934
|
-
this.currentSyncError = void 0;
|
|
935
|
-
this.transactionScopeId = null;
|
|
936
|
-
this.transactionScopePromise = null;
|
|
937
|
-
this.messageWireDispatchGuards = new MatrixMessageWireDispatchGuards();
|
|
938
|
-
this.requestAbortController = new AbortController();
|
|
939
|
-
this.cryptoRequestOwner = new AsyncLocalStorage();
|
|
940
|
-
this.startupPromise = null;
|
|
941
|
-
this.cryptoInitializationPromise = null;
|
|
942
|
-
this.sdkStopped = false;
|
|
943
|
-
this.stopDiscardPromise = null;
|
|
944
|
-
this.idbPersistPromise = null;
|
|
945
|
-
this.idbPersistAbortController = null;
|
|
946
|
-
this.assertClientActive = () => {
|
|
947
|
-
this.requestAbortController.signal.throwIfAborted();
|
|
948
|
-
};
|
|
949
|
-
this.captureRequestAuthority = () => {
|
|
950
|
-
const readAuthority = captureChannelReadAuthority();
|
|
951
|
-
const cryptoOwner = this.cryptoRequestOwner.getStore();
|
|
952
|
-
return cryptoOwner && cryptoOwner.callerAuthority === readAuthority ? this.assertClientActive : readAuthority;
|
|
953
|
-
};
|
|
954
|
-
this.dms = {
|
|
955
|
-
update: async () => {
|
|
956
|
-
return await this.refreshDmCache();
|
|
957
|
-
},
|
|
958
|
-
isDm: (roomId) => this.dmRoomIds.has(roomId)
|
|
959
|
-
};
|
|
960
|
-
this.idbPersistTimer = null;
|
|
961
|
-
this.transactionScopeHomeserver = homeserver;
|
|
962
|
-
this.transactionScopeAccessTokenHash = createHash("sha256").update(accessToken).digest("hex");
|
|
963
|
-
this.transactionScopeDeviceId = opts.deviceId?.trim() || null;
|
|
964
|
-
this.httpClient = new MatrixAuthedHttpClient({
|
|
965
|
-
homeserver,
|
|
966
|
-
accessToken,
|
|
967
|
-
ssrfPolicy: opts.ssrfPolicy,
|
|
968
|
-
dispatcherPolicy: opts.dispatcherPolicy,
|
|
969
|
-
captureRequestAuthority: this.captureRequestAuthority,
|
|
970
|
-
captureSendCurrentness: () => captureMatrixSendCurrentness(this),
|
|
971
|
-
signal: this.requestAbortController.signal
|
|
972
|
-
});
|
|
973
|
-
this.localTimeoutMs = resolveMatrixLocalTimeoutMs(opts.localTimeoutMs);
|
|
974
|
-
this.initialSyncLimit = opts.initialSyncLimit;
|
|
975
|
-
this.syncFilter = opts.syncFilter;
|
|
976
|
-
this.encryptionEnabled = opts.encryption === true;
|
|
977
|
-
const { password: loginPassword } = opts;
|
|
978
|
-
this.password = loginPassword;
|
|
979
|
-
this.syncStore = opts.storageRootDir ? new SqliteBackedMatrixSyncStore(opts.storageRootDir) : void 0;
|
|
980
|
-
this.idbSnapshotPath = opts.idbSnapshotPath;
|
|
981
|
-
this.cryptoDatabasePrefix = opts.cryptoDatabasePrefix;
|
|
982
|
-
this.stateRuntime = opts.stateRuntime;
|
|
983
|
-
this.selfUserId = opts.userId?.trim() || null;
|
|
984
|
-
this.autoBootstrapCrypto = opts.autoBootstrapCrypto !== false;
|
|
985
|
-
this.recoveryKeyStore = new MatrixRecoveryKeyStore(opts.recoveryKeyPath, opts.stateRuntime);
|
|
986
|
-
const cryptoCallbacks = this.encryptionEnabled ? this.recoveryKeyStore.buildCryptoCallbacks() : void 0;
|
|
987
|
-
const guardedFetch = createMatrixGuardedFetch({
|
|
988
|
-
captureRequestSignal: () => this.cryptoRequestOwner.getStore()?.requestSignal,
|
|
989
|
-
ssrfPolicy: opts.ssrfPolicy,
|
|
990
|
-
dispatcherPolicy: opts.dispatcherPolicy,
|
|
991
|
-
captureRequestAuthority: this.captureRequestAuthority,
|
|
992
|
-
captureSendCurrentness: (resource, init) => this.messageWireDispatchGuards.captureCurrentness(resource, init, captureMatrixSendCurrentness(this)),
|
|
993
|
-
signal: this.requestAbortController.signal,
|
|
994
|
-
beforeRequest: async (resource, init) => {
|
|
995
|
-
await this.recoveryKeyStore.drainPendingPersistence();
|
|
996
|
-
await this.messageWireDispatchGuards.beforeRequest(resource, init);
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
this.client = createClient({
|
|
1000
|
-
baseUrl: homeserver,
|
|
1001
|
-
accessToken,
|
|
1002
|
-
userId: opts.userId,
|
|
1003
|
-
deviceId: opts.deviceId,
|
|
1004
|
-
logger: createMatrixJsSdkClientLogger("MatrixClient"),
|
|
1005
|
-
localTimeoutMs: this.localTimeoutMs,
|
|
1006
|
-
fetchFn: guardedFetch,
|
|
1007
|
-
scheduler: new MatrixSendScheduler((event) => this.messageWireDispatchGuards.wasCurrentnessRejected(event.getTxnId())),
|
|
1008
|
-
store: this.syncStore,
|
|
1009
|
-
cryptoCallbacks,
|
|
1010
|
-
verificationMethods: [
|
|
1011
|
-
VerificationMethod.Sas,
|
|
1012
|
-
VerificationMethod.ShowQrCode,
|
|
1013
|
-
VerificationMethod.ScanQrCode,
|
|
1014
|
-
VerificationMethod.Reciprocate
|
|
1015
|
-
]
|
|
1016
|
-
});
|
|
1017
|
-
const decryptEventIfNeeded = this.client.decryptEventIfNeeded.bind(this.client);
|
|
1018
|
-
this.client.decryptEventIfNeeded = (event, options) => {
|
|
1019
|
-
this.captureRequestAuthority()?.();
|
|
1020
|
-
return this.withClientCryptoWork(() => decryptEventIfNeeded(event, options));
|
|
1021
|
-
};
|
|
1022
|
-
}
|
|
1023
|
-
on(eventName, listener) {
|
|
1024
|
-
this.emitter.on(eventName, listener);
|
|
1025
|
-
return this;
|
|
1026
|
-
}
|
|
1027
|
-
off(eventName, listener) {
|
|
1028
|
-
this.emitter.off(eventName, listener);
|
|
1029
|
-
return this;
|
|
1030
|
-
}
|
|
1031
|
-
async ensureCryptoSupportInitialized() {
|
|
1032
|
-
if (this.decryptBridge && (!this.encryptionEnabled || this.verificationManager && this.cryptoBootstrapper && this.crypto)) return;
|
|
1033
|
-
const runtime = await loadMatrixCryptoRuntime();
|
|
1034
|
-
this.decryptBridge ??= new runtime.MatrixDecryptBridge({
|
|
1035
|
-
client: this.client,
|
|
1036
|
-
toRaw: (event) => matrixEventToRaw(event, { contentMode: "original" }),
|
|
1037
|
-
emitDecryptedEvent: (roomId, event) => {
|
|
1038
|
-
this.emitter.emit("room.decrypted_event", roomId, event);
|
|
1039
|
-
},
|
|
1040
|
-
emitMessage: (roomId, event) => {
|
|
1041
|
-
this.emitter.emit("room.message", roomId, event);
|
|
1042
|
-
},
|
|
1043
|
-
emitFailedDecryption: (roomId, event, error) => {
|
|
1044
|
-
this.emitter.emit("room.failed_decryption", roomId, event, error);
|
|
1045
|
-
}
|
|
1046
|
-
});
|
|
1047
|
-
if (!this.encryptionEnabled) return;
|
|
1048
|
-
this.verificationManager ??= new runtime.MatrixVerificationManager({ trustOwnDeviceAfterSas: async (deviceId) => {
|
|
1049
|
-
const crypto = this.client.getCrypto();
|
|
1050
|
-
if (typeof crypto?.crossSignDevice !== "function") return;
|
|
1051
|
-
await crypto.crossSignDevice(deviceId);
|
|
1052
|
-
} });
|
|
1053
|
-
this.cryptoBootstrapper ??= new runtime.MatrixCryptoBootstrapper({
|
|
1054
|
-
getUserId: () => this.getUserId(),
|
|
1055
|
-
getPassword: () => this.password,
|
|
1056
|
-
canUnlockSecretStorage: async () => {
|
|
1057
|
-
const secretStorage = this.client.secretStorage;
|
|
1058
|
-
if (!secretStorage || typeof secretStorage.getDefaultKeyId !== "function" || typeof secretStorage.getKey !== "function" || typeof secretStorage.checkKey !== "function") return false;
|
|
1059
|
-
const defaultKeyId = await secretStorage.getDefaultKeyId();
|
|
1060
|
-
if (!defaultKeyId) return false;
|
|
1061
|
-
const keyTuple = await secretStorage.getKey(defaultKeyId);
|
|
1062
|
-
const key = await this.recoveryKeyStore.getSecretStorageKeyCandidate(defaultKeyId);
|
|
1063
|
-
if (!keyTuple || !key) return false;
|
|
1064
|
-
const keyInfo = keyTuple[1];
|
|
1065
|
-
if (!keyInfo.iv?.trim() || !keyInfo.mac?.trim()) return false;
|
|
1066
|
-
return await secretStorage.checkKey(key, keyInfo);
|
|
1067
|
-
},
|
|
1068
|
-
getDeviceId: () => this.client.getDeviceId(),
|
|
1069
|
-
verificationManager: this.verificationManager,
|
|
1070
|
-
recoveryKeyStore: this.recoveryKeyStore,
|
|
1071
|
-
decryptBridge: this.decryptBridge
|
|
1072
|
-
});
|
|
1073
|
-
if (!this.crypto) this.crypto = runtime.createMatrixCryptoFacade({
|
|
1074
|
-
client: this.client,
|
|
1075
|
-
verificationManager: this.verificationManager,
|
|
1076
|
-
recoveryKeyStore: this.recoveryKeyStore,
|
|
1077
|
-
isRoomEncrypted: async (roomId) => await this.getMessageWireEventType(roomId) === "m.room.encrypted",
|
|
1078
|
-
downloadContent: (mxcUrl, opts) => this.downloadContent(mxcUrl, opts)
|
|
1079
|
-
});
|
|
1080
|
-
if (!this.verificationSummaryListenerBound) {
|
|
1081
|
-
this.verificationSummaryListenerBound = true;
|
|
1082
|
-
this.verificationManager.onSummaryChanged((summary) => {
|
|
1083
|
-
this.emitter.emit("verification.summary", summary);
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
async start(opts = {}) {
|
|
1088
|
-
await this.startSyncSession({
|
|
1089
|
-
bootstrapCrypto: true,
|
|
1090
|
-
abortSignal: opts.abortSignal,
|
|
1091
|
-
readyTimeoutMs: opts.readyTimeoutMs
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
async waitForInitialSyncReady(params = {}) {
|
|
1095
|
-
await waitForMatrixInitialSyncReady({
|
|
1096
|
-
...params,
|
|
1097
|
-
emitter: this.emitter,
|
|
1098
|
-
state: this.currentSyncState,
|
|
1099
|
-
error: this.currentSyncError
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
async startSyncSession(opts) {
|
|
1103
|
-
if (this.started) return;
|
|
1104
|
-
if (this.sdkStopped) throw new Error("Matrix client has been fully stopped and cannot be restarted; acquire a new shared client generation");
|
|
1105
|
-
const assertCurrent = this.captureRequestAuthority();
|
|
1106
|
-
assertCurrent?.();
|
|
1107
|
-
this.assertClientActive();
|
|
1108
|
-
if (this.startupPromise) {
|
|
1109
|
-
await awaitMatrixStartupWithAbort(this.startupPromise, opts.abortSignal);
|
|
1110
|
-
return;
|
|
1111
|
-
}
|
|
1112
|
-
const deadline = new AbortController();
|
|
1113
|
-
const signal = AbortSignal.any([
|
|
1114
|
-
this.requestAbortController.signal,
|
|
1115
|
-
deadline.signal,
|
|
1116
|
-
...opts.abortSignal ? [opts.abortSignal] : []
|
|
1117
|
-
]);
|
|
1118
|
-
const timeout = this.encryptionEnabled ? setTimeout(() => deadline.abort(), opts.readyTimeoutMs ?? MATRIX_ENCRYPTED_STARTUP_TIMEOUT_MS) : void 0;
|
|
1119
|
-
timeout?.unref?.();
|
|
1120
|
-
const checkActive = () => {
|
|
1121
|
-
throwIfMatrixStartupAborted(signal);
|
|
1122
|
-
assertCurrent?.();
|
|
1123
|
-
this.assertClientActive();
|
|
1124
|
-
};
|
|
1125
|
-
const startup = (async () => {
|
|
1126
|
-
throwIfMatrixStartupAborted(signal);
|
|
1127
|
-
await this.ensureCryptoSupportInitialized();
|
|
1128
|
-
checkActive();
|
|
1129
|
-
throwIfMatrixStartupAborted(signal);
|
|
1130
|
-
this.registerBridge();
|
|
1131
|
-
await this.withClientCryptoWork(() => this.initializeCryptoIfNeeded(signal), signal);
|
|
1132
|
-
checkActive();
|
|
1133
|
-
throwIfMatrixStartupAborted(signal);
|
|
1134
|
-
await this.withClientCryptoWork(() => this.client.startClient({
|
|
1135
|
-
initialSyncLimit: this.initialSyncLimit,
|
|
1136
|
-
...this.syncFilter ? { filter: Filter.fromJson(this.selfUserId, "", this.syncFilter) } : {}
|
|
1137
|
-
}));
|
|
1138
|
-
await this.waitForInitialSyncReady({
|
|
1139
|
-
abortSignal: signal,
|
|
1140
|
-
timeoutMs: opts.readyTimeoutMs
|
|
1141
|
-
});
|
|
1142
|
-
checkActive();
|
|
1143
|
-
throwIfMatrixStartupAborted(signal);
|
|
1144
|
-
if (this.encryptionEnabled && this.cryptoInitialized) {
|
|
1145
|
-
const { reconcileJoinedRoomEncryption } = await import("./joined-room-encryption-BCtxQ3hR.mjs");
|
|
1146
|
-
checkActive();
|
|
1147
|
-
await this.withClientCryptoWork(() => reconcileJoinedRoomEncryption(this.client, signal, checkActive), signal);
|
|
1148
|
-
checkActive();
|
|
1149
|
-
}
|
|
1150
|
-
clearTimeout(timeout);
|
|
1151
|
-
if (opts.bootstrapCrypto && this.autoBootstrapCrypto) await this.bootstrapCryptoIfNeeded(signal);
|
|
1152
|
-
throwIfMatrixStartupAborted(signal);
|
|
1153
|
-
this.started = true;
|
|
1154
|
-
this.emitOutstandingInviteEvents();
|
|
1155
|
-
await this.refreshDmCache().catch(noop);
|
|
1156
|
-
})();
|
|
1157
|
-
this.startupPromise = startup;
|
|
1158
|
-
startup.finally(() => {
|
|
1159
|
-
clearTimeout(timeout);
|
|
1160
|
-
if (this.startupPromise === startup) this.startupPromise = null;
|
|
1161
|
-
}).catch(noop);
|
|
1162
|
-
await awaitMatrixStartupWithAbort(startup, signal);
|
|
1163
|
-
}
|
|
1164
|
-
async prepareForOneOff() {
|
|
1165
|
-
const assertCurrent = this.captureRequestAuthority();
|
|
1166
|
-
assertCurrent?.();
|
|
1167
|
-
this.assertClientActive();
|
|
1168
|
-
if (!this.encryptionEnabled) return;
|
|
1169
|
-
await this.ensureCryptoSupportInitialized();
|
|
1170
|
-
assertCurrent?.();
|
|
1171
|
-
await this.withClientCryptoWork(() => this.initializeCryptoIfNeeded());
|
|
1172
|
-
assertCurrent?.();
|
|
1173
|
-
}
|
|
1174
|
-
hasPersistedSyncState() {
|
|
1175
|
-
return this.syncStore?.hasSavedSyncFromCleanShutdown() === true;
|
|
1176
|
-
}
|
|
1177
|
-
async ensureStartedForCryptoControlPlane() {
|
|
1178
|
-
if (this.started) return;
|
|
1179
|
-
await this.startSyncSession({ bootstrapCrypto: false });
|
|
1180
|
-
}
|
|
1181
|
-
stopSdkClient() {
|
|
1182
|
-
if (this.sdkStopped) return;
|
|
1183
|
-
this.currentSyncState = null;
|
|
1184
|
-
this.currentSyncError = void 0;
|
|
1185
|
-
this.sdkStopped = true;
|
|
1186
|
-
this.client.stopClient();
|
|
1187
|
-
this.started = false;
|
|
1188
|
-
}
|
|
1189
|
-
async quiesceSync() {
|
|
1190
|
-
this.syncQuiescePromise ??= quiesceMatrixClientSync({
|
|
1191
|
-
client: this.client,
|
|
1192
|
-
emitter: this.emitter,
|
|
1193
|
-
markStopped: () => {
|
|
1194
|
-
this.started = false;
|
|
1195
|
-
},
|
|
1196
|
-
started: this.started,
|
|
1197
|
-
syncStore: this.syncStore
|
|
1198
|
-
});
|
|
1199
|
-
await this.syncQuiescePromise;
|
|
1200
|
-
}
|
|
1201
|
-
async drainPendingDecryptions(reason = "matrix client shutdown") {
|
|
1202
|
-
await this.withClientCryptoWork(() => this.decryptBridge?.drainPendingDecryptions(reason));
|
|
1203
|
-
}
|
|
1204
|
-
stop() {
|
|
1205
|
-
this.stopAndPersist().catch(() => this.stopWithoutPersist()).catch(noop);
|
|
1206
|
-
}
|
|
1207
|
-
async stopClientGeneration(persist) {
|
|
1208
|
-
try {
|
|
1209
|
-
if (persist) await this.quiesceSync();
|
|
1210
|
-
else {
|
|
1211
|
-
await this.quiesceSync().catch(noop);
|
|
1212
|
-
this.syncStore?.discardPendingSyncCursorPersistence();
|
|
1213
|
-
}
|
|
1214
|
-
this.requestAbortController.abort(/* @__PURE__ */ new Error("Matrix client generation is no longer active."));
|
|
1215
|
-
await this.startupPromise?.catch(noop);
|
|
1216
|
-
await this.cryptoInitializationPromise?.catch(noop);
|
|
1217
|
-
clearInterval(this.idbPersistTimer ?? void 0);
|
|
1218
|
-
this.idbPersistTimer = null;
|
|
1219
|
-
this.idbPersistAbortController?.abort();
|
|
1220
|
-
const activePeriodicPersist = this.idbPersistPromise;
|
|
1221
|
-
try {
|
|
1222
|
-
this.stopSdkClient();
|
|
1223
|
-
this.decryptBridge?.stop();
|
|
1224
|
-
} finally {
|
|
1225
|
-
this.cryptoRequestOwner.disable();
|
|
1226
|
-
}
|
|
1227
|
-
await Promise.all([this.recoveryKeyStore.close(), activePeriodicPersist]);
|
|
1228
|
-
if (persist) {
|
|
1229
|
-
await (loadedMatrixCryptoRuntime ?? await loadMatrixCryptoRuntime()).persistIdbToDisk({
|
|
1230
|
-
snapshotPath: this.idbSnapshotPath,
|
|
1231
|
-
databasePrefix: this.cryptoDatabasePrefix,
|
|
1232
|
-
strict: true,
|
|
1233
|
-
stateRuntime: this.stateRuntime
|
|
1234
|
-
});
|
|
1235
|
-
this.syncStore?.markCleanShutdown();
|
|
1236
|
-
await this.syncStore?.flush();
|
|
1237
|
-
}
|
|
1238
|
-
} finally {
|
|
1239
|
-
await this.recoveryKeyStore.close();
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
async stopAndPersist() {
|
|
1243
|
-
this.stopPersistPromise ??= this.stopClientGeneration(true);
|
|
1244
|
-
await this.stopPersistPromise;
|
|
1245
|
-
}
|
|
1246
|
-
stopWithoutPersist() {
|
|
1247
|
-
if (!this.stopPersistPromise) this.stopPersistPromise = this.stopDiscardPromise = this.stopClientGeneration(false);
|
|
1248
|
-
return this.stopDiscardPromise ??= this.stopPersistPromise.catch(() => this.stopClientGeneration(false));
|
|
1249
|
-
}
|
|
1250
|
-
async bootstrapCryptoIfNeeded(abortSignal) {
|
|
1251
|
-
if (!this.encryptionEnabled || !this.cryptoInitialized || this.cryptoBootstrapped) return;
|
|
1252
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1253
|
-
await this.ensureCryptoSupportInitialized();
|
|
1254
|
-
const crypto = this.client.getCrypto();
|
|
1255
|
-
if (!crypto) return;
|
|
1256
|
-
const cryptoBootstrapper = this.cryptoBootstrapper;
|
|
1257
|
-
if (!cryptoBootstrapper) return;
|
|
1258
|
-
const initial = await cryptoBootstrapper.bootstrap(crypto, MATRIX_INITIAL_CRYPTO_BOOTSTRAP_OPTIONS);
|
|
1259
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1260
|
-
if (!initial.crossSigningPublished || initial.ownDeviceVerified === false) {
|
|
1261
|
-
if ((await this.getOwnDeviceVerificationStatus()).signedByOwner) LogService.warn("MatrixClientLite", "Cross-signing/bootstrap is incomplete for an already owner-signed device; skipping automatic reset and preserving the current identity. Restore the recovery key or run an explicit verification bootstrap if repair is needed.");
|
|
1262
|
-
else try {
|
|
1263
|
-
const repaired = await cryptoBootstrapper.bootstrap(crypto, MATRIX_AUTOMATIC_REPAIR_BOOTSTRAP_OPTIONS);
|
|
1264
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1265
|
-
if (repaired.crossSigningPublished && repaired.ownDeviceVerified !== false) LogService.info("MatrixClientLite", "Cross-signing/bootstrap recovered after forced reset");
|
|
1266
|
-
} catch (err) {
|
|
1267
|
-
LogService.warn("MatrixClientLite", "Failed to recover cross-signing/bootstrap with forced reset:", err);
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
this.cryptoBootstrapped = true;
|
|
1271
|
-
}
|
|
1272
|
-
async initializeCryptoIfNeeded(abortSignal) {
|
|
1273
|
-
if (!this.encryptionEnabled) return;
|
|
1274
|
-
if (this.cryptoInitializationPromise) {
|
|
1275
|
-
await this.cryptoInitializationPromise;
|
|
1276
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1277
|
-
return;
|
|
1278
|
-
}
|
|
1279
|
-
if (this.cryptoInitialized) return;
|
|
1280
|
-
const initialization = this.initializeCrypto(abortSignal ? AbortSignal.any([abortSignal, this.requestAbortController.signal]) : this.requestAbortController.signal);
|
|
1281
|
-
this.cryptoInitializationPromise = initialization;
|
|
1282
|
-
try {
|
|
1283
|
-
await initialization;
|
|
1284
|
-
} finally {
|
|
1285
|
-
if (this.cryptoInitializationPromise === initialization) this.cryptoInitializationPromise = null;
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
async initializeCrypto(abortSignal) {
|
|
1289
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1290
|
-
const { persistIdbToDisk, restoreIdbFromDisk } = await loadMatrixCryptoRuntime();
|
|
1291
|
-
await restoreIdbFromDisk(this.idbSnapshotPath, this.stateRuntime);
|
|
1292
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1293
|
-
try {
|
|
1294
|
-
await this.client.initRustCrypto({ cryptoDatabasePrefix: this.cryptoDatabasePrefix });
|
|
1295
|
-
this.cryptoInitialized = true;
|
|
1296
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1297
|
-
await persistIdbToDisk({
|
|
1298
|
-
snapshotPath: this.idbSnapshotPath,
|
|
1299
|
-
databasePrefix: this.cryptoDatabasePrefix,
|
|
1300
|
-
abortSignal,
|
|
1301
|
-
stateRuntime: this.stateRuntime
|
|
1302
|
-
});
|
|
1303
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1304
|
-
this.idbPersistTimer = setInterval(() => {
|
|
1305
|
-
if (this.idbPersistPromise) return;
|
|
1306
|
-
const abortController = new AbortController();
|
|
1307
|
-
this.idbPersistAbortController = abortController;
|
|
1308
|
-
this.idbPersistPromise = persistIdbToDisk({
|
|
1309
|
-
snapshotPath: this.idbSnapshotPath,
|
|
1310
|
-
databasePrefix: this.cryptoDatabasePrefix,
|
|
1311
|
-
abortSignal: abortController.signal,
|
|
1312
|
-
stateRuntime: this.stateRuntime
|
|
1313
|
-
}).catch(noop).finally(() => {
|
|
1314
|
-
this.idbPersistPromise = null;
|
|
1315
|
-
this.idbPersistAbortController = null;
|
|
1316
|
-
});
|
|
1317
|
-
}, MATRIX_IDB_PERSIST_INTERVAL_MS);
|
|
1318
|
-
this.idbPersistTimer.unref?.();
|
|
1319
|
-
} catch (err) {
|
|
1320
|
-
throwIfMatrixStartupAborted(abortSignal);
|
|
1321
|
-
LogService.warn("MatrixClientLite", "Failed to initialize rust crypto:", err);
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
|
-
//#endregion
|
|
1326
|
-
//#region extensions/matrix/src/matrix/sdk/client-core.ts
|
|
1327
|
-
function isUnsupportedAuthenticatedMediaEndpointError(err) {
|
|
1328
|
-
const statusCode = err?.statusCode;
|
|
1329
|
-
if (statusCode === 404 || statusCode === 405 || statusCode === 501) return true;
|
|
1330
|
-
const message = formatMatrixErrorReason(err);
|
|
1331
|
-
return message.includes("m_unrecognized") || message.includes("unrecognized request") || message.includes("method not allowed") || message.includes("not implemented");
|
|
1332
|
-
}
|
|
1333
|
-
var MatrixClientCore = class extends MatrixClientBase {
|
|
1334
|
-
async getUserId() {
|
|
1335
|
-
const fromClient = this.client.getUserId();
|
|
1336
|
-
if (fromClient) {
|
|
1337
|
-
this.selfUserId = fromClient;
|
|
1338
|
-
return fromClient;
|
|
1339
|
-
}
|
|
1340
|
-
if (this.selfUserId) return this.selfUserId;
|
|
1341
|
-
const resolved = (await this.doRequest("GET", "/_matrix/client/v3/account/whoami")).user_id?.trim();
|
|
1342
|
-
if (!resolved) throw new Error("Matrix whoami did not return user_id");
|
|
1343
|
-
this.selfUserId = resolved;
|
|
1344
|
-
return resolved;
|
|
1345
|
-
}
|
|
1346
|
-
async getJoinedRooms() {
|
|
1347
|
-
const joined = await this.doRequest("GET", "/_matrix/client/v3/joined_rooms");
|
|
1348
|
-
return Array.isArray(joined.joined_rooms) ? joined.joined_rooms : [];
|
|
1349
|
-
}
|
|
1350
|
-
async getTransactionScopeId() {
|
|
1351
|
-
captureMatrixSendCurrentness(this)?.();
|
|
1352
|
-
if (this.transactionScopeId) return this.transactionScopeId;
|
|
1353
|
-
const active = this.transactionScopePromise ?? withoutMatrixSendCurrentness(async () => {
|
|
1354
|
-
const configuredUserId = this.client.getUserId()?.trim() || this.selfUserId;
|
|
1355
|
-
const configuredDeviceId = this.transactionScopeDeviceId || this.client.getDeviceId()?.trim() || null;
|
|
1356
|
-
const whoami = await this.doRequest("GET", "/_matrix/client/v3/account/whoami");
|
|
1357
|
-
const userId = whoami.user_id?.trim() || null;
|
|
1358
|
-
const deviceId = whoami.device_id?.trim() || null;
|
|
1359
|
-
if (!userId) throw new Error("Matrix whoami did not return user_id");
|
|
1360
|
-
if (configuredUserId && configuredUserId !== userId) throw new Error("Matrix access token user does not match the configured userId");
|
|
1361
|
-
if (configuredDeviceId && deviceId && configuredDeviceId !== deviceId) throw new Error("Matrix access token device does not match the configured deviceId");
|
|
1362
|
-
this.selfUserId = userId;
|
|
1363
|
-
this.transactionScopeDeviceId = deviceId;
|
|
1364
|
-
return createHash("sha256").update(this.transactionScopeHomeserver).update("\0").update(userId).update("\0").update(deviceId ?? "").update("\0").update(this.transactionScopeAccessTokenHash).digest("hex");
|
|
1365
|
-
});
|
|
1366
|
-
this.transactionScopePromise = active;
|
|
1367
|
-
try {
|
|
1368
|
-
const resolved = await active;
|
|
1369
|
-
this.transactionScopeId = resolved;
|
|
1370
|
-
return resolved;
|
|
1371
|
-
} finally {
|
|
1372
|
-
if (this.transactionScopePromise === active) this.transactionScopePromise = null;
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
async getJoinedRoomMembers(roomId) {
|
|
1376
|
-
const joined = (await this.client.getJoinedRoomMembers(roomId))?.joined;
|
|
1377
|
-
if (!joined || typeof joined !== "object") return [];
|
|
1378
|
-
return Object.keys(joined);
|
|
1379
|
-
}
|
|
1380
|
-
hasSyncedJoinedRoomMember(roomId, userId) {
|
|
1381
|
-
return this.client.getRoom(roomId)?.getMember(userId)?.membership === "join";
|
|
1382
|
-
}
|
|
1383
|
-
async getRoomStateEvent(roomId, eventType, stateKey = "") {
|
|
1384
|
-
return await this.client.getStateEvent(roomId, eventType, stateKey) ?? {};
|
|
1385
|
-
}
|
|
1386
|
-
async getAccountData(eventType) {
|
|
1387
|
-
return await this.client.getAccountDataFromServer(eventType) ?? void 0;
|
|
1388
|
-
}
|
|
1389
|
-
async setAccountData(eventType, content) {
|
|
1390
|
-
await this.client.setAccountData(eventType, content);
|
|
1391
|
-
await this.refreshDmCache().catch(noop);
|
|
1392
|
-
}
|
|
1393
|
-
async resolveRoom(aliasOrRoomId) {
|
|
1394
|
-
if (aliasOrRoomId.startsWith("!")) return aliasOrRoomId;
|
|
1395
|
-
if (!aliasOrRoomId.startsWith("#")) return aliasOrRoomId;
|
|
1396
|
-
try {
|
|
1397
|
-
return (await this.client.getRoomIdForAlias(aliasOrRoomId)).room_id ?? null;
|
|
1398
|
-
} catch {
|
|
1399
|
-
return null;
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
async createDirectRoom(remoteUserId, opts = {}) {
|
|
1403
|
-
const initialState = opts.encrypted ? [{
|
|
1404
|
-
type: "m.room.encryption",
|
|
1405
|
-
state_key: "",
|
|
1406
|
-
content: { algorithm: "m.megolm.v1.aes-sha2" }
|
|
1407
|
-
}] : void 0;
|
|
1408
|
-
return (await this.client.createRoom({
|
|
1409
|
-
invite: [remoteUserId],
|
|
1410
|
-
is_direct: true,
|
|
1411
|
-
preset: Preset.TrustedPrivateChat,
|
|
1412
|
-
initial_state: initialState
|
|
1413
|
-
})).room_id;
|
|
1414
|
-
}
|
|
1415
|
-
async sendMessage(roomId, content, transactionId, beforeWireDispatch) {
|
|
1416
|
-
const assertCurrent = captureMatrixSendCurrentness(this);
|
|
1417
|
-
const wireTransactionId = transactionId ?? (beforeWireDispatch || assertCurrent ? this.client.makeTxnId() : void 0);
|
|
1418
|
-
return await this.runSerializedRoomSend(roomId, async () => {
|
|
1419
|
-
return await this.messageWireDispatchGuards.run({
|
|
1420
|
-
transactionId: wireTransactionId,
|
|
1421
|
-
guard: beforeWireDispatch,
|
|
1422
|
-
assertCurrent,
|
|
1423
|
-
run: async () => {
|
|
1424
|
-
if (wireTransactionId) {
|
|
1425
|
-
const room = this.client.getRoom(roomId);
|
|
1426
|
-
const existing = room?.getEventForTxnId?.(wireTransactionId);
|
|
1427
|
-
if (existing) {
|
|
1428
|
-
const existingId = existing.getId();
|
|
1429
|
-
if (existing.status === EventStatus.SENT && existingId && !existingId.startsWith("~")) return existingId;
|
|
1430
|
-
if (existing.status === EventStatus.NOT_SENT && room) {
|
|
1431
|
-
await this.prepareRoomForMessageSend(roomId, existing.getContent());
|
|
1432
|
-
return (await this.client.resendEvent(existing, room)).event_id;
|
|
1433
|
-
}
|
|
1434
|
-
throw new Error(`Matrix transaction ${wireTransactionId} is already active with status ${existing.status ?? "unknown"}`);
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
await this.prepareRoomForMessageSend(roomId, content);
|
|
1438
|
-
return (await this.client.sendMessage(roomId, content, wireTransactionId)).event_id;
|
|
1439
|
-
}
|
|
1440
|
-
});
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
async getMessageWireEventType(roomId) {
|
|
1444
|
-
if (this.client.getRoom(roomId)?.hasEncryptionStateEvent() === true) return "m.room.encrypted";
|
|
1445
|
-
const crypto = this.client.getCrypto();
|
|
1446
|
-
if (crypto && await crypto.isEncryptionEnabledInRoom(roomId)) return "m.room.encrypted";
|
|
1447
|
-
try {
|
|
1448
|
-
await this.getRoomStateEvent(roomId, "m.room.encryption", "");
|
|
1449
|
-
return "m.room.encrypted";
|
|
1450
|
-
} catch (error) {
|
|
1451
|
-
if (error instanceof MatrixError && error.httpStatus === 404 && error.errcode === "M_NOT_FOUND") return "m.room.message";
|
|
1452
|
-
throw error;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
async prepareRoomForMessageSend(roomId, content) {
|
|
1456
|
-
if (await this.getMessageWireEventType(roomId) === "m.room.message") return "m.room.message";
|
|
1457
|
-
const crypto = this.client.getCrypto();
|
|
1458
|
-
if (!crypto) throw new Error("Encrypted Matrix room: enable encryption before sending messages");
|
|
1459
|
-
const room = this.client.getRoom(roomId);
|
|
1460
|
-
if (!room || !room.hasEncryptionStateEvent() && !await crypto.isEncryptionEnabledInRoom(roomId)) throw new Error("Encrypted Matrix room is not ready: wait for room sync before sending");
|
|
1461
|
-
if (content && ((content.msgtype === MsgType.Image || content.msgtype === MsgType.Audio || content.msgtype === MsgType.Video || content.msgtype === MsgType.File) && typeof content.url === "string" || content.info && "thumbnail_url" in content.info && typeof content.info.thumbnail_url === "string")) throw new Error("Encrypted Matrix room contains unencrypted media; retry the send");
|
|
1462
|
-
return "m.room.encrypted";
|
|
1463
|
-
}
|
|
1464
|
-
async sendEvent(roomId, eventType, content) {
|
|
1465
|
-
return await this.runSerializedRoomSend(roomId, async () => {
|
|
1466
|
-
if (eventType === EventType.RoomMessageEncrypted.toString() || eventType === EventType.RoomRedaction.toString()) throw new Error(eventType === EventType.RoomRedaction.toString() ? "Matrix redaction wire events must use redactEvent" : "Matrix encrypted wire events must be generated by the SDK");
|
|
1467
|
-
if (eventType !== "m.reaction") await this.prepareRoomForMessageSend(roomId, content);
|
|
1468
|
-
return (await this.client.sendEvent(roomId, eventType, content)).event_id;
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
async runSerializedRoomSend(roomId, task) {
|
|
1472
|
-
return await this.sendQueue.enqueue(roomId, task);
|
|
1473
|
-
}
|
|
1474
|
-
async sendStateEvent(roomId, eventType, stateKey, content) {
|
|
1475
|
-
return (await this.client.sendStateEvent(roomId, eventType, content, stateKey)).event_id;
|
|
1476
|
-
}
|
|
1477
|
-
async redactEvent(roomId, eventId, reason) {
|
|
1478
|
-
return (await this.client.redactEvent(roomId, eventId, void 0, reason?.trim() ? { reason } : void 0)).event_id;
|
|
1479
|
-
}
|
|
1480
|
-
async doRequest(method, endpoint, qs, body, opts) {
|
|
1481
|
-
return await this.httpClient.requestJson({
|
|
1482
|
-
method,
|
|
1483
|
-
endpoint,
|
|
1484
|
-
qs,
|
|
1485
|
-
body,
|
|
1486
|
-
timeoutMs: this.localTimeoutMs,
|
|
1487
|
-
allowAbsoluteEndpoint: opts?.allowAbsoluteEndpoint
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
async getUserProfile(userId) {
|
|
1491
|
-
return await this.client.getProfileInfo(userId);
|
|
1492
|
-
}
|
|
1493
|
-
async setDisplayName(displayName) {
|
|
1494
|
-
await this.client.setDisplayName(displayName);
|
|
1495
|
-
}
|
|
1496
|
-
async setAvatarUrl(avatarUrl) {
|
|
1497
|
-
await this.client.setAvatarUrl(avatarUrl);
|
|
1498
|
-
}
|
|
1499
|
-
async joinRoom(roomId) {
|
|
1500
|
-
await this.client.joinRoom(roomId);
|
|
1501
|
-
}
|
|
1502
|
-
mxcToHttp(mxcUrl) {
|
|
1503
|
-
return this.client.mxcUrlToHttp(mxcUrl, void 0, void 0, void 0, true, false, true);
|
|
1504
|
-
}
|
|
1505
|
-
async downloadContent(mxcUrl, opts = {}) {
|
|
1506
|
-
const parsed = parseMxc(mxcUrl);
|
|
1507
|
-
if (!parsed) throw new Error(`Invalid Matrix content URI: ${mxcUrl}`);
|
|
1508
|
-
const encodedServer = encodeURIComponent(parsed.server);
|
|
1509
|
-
const encodedMediaId = encodeURIComponent(parsed.mediaId);
|
|
1510
|
-
const request = async (endpoint) => await this.httpClient.requestRaw({
|
|
1511
|
-
method: "GET",
|
|
1512
|
-
endpoint,
|
|
1513
|
-
qs: { allow_remote: opts.allowRemote ?? true },
|
|
1514
|
-
timeoutMs: this.localTimeoutMs,
|
|
1515
|
-
maxBytes: opts.maxBytes,
|
|
1516
|
-
readIdleTimeoutMs: opts.readIdleTimeoutMs
|
|
1517
|
-
});
|
|
1518
|
-
const authenticatedEndpoint = `/_matrix/client/v1/media/download/${encodedServer}/${encodedMediaId}`;
|
|
1519
|
-
try {
|
|
1520
|
-
return await request(authenticatedEndpoint);
|
|
1521
|
-
} catch (err) {
|
|
1522
|
-
if (!isUnsupportedAuthenticatedMediaEndpointError(err)) throw err;
|
|
1523
|
-
}
|
|
1524
|
-
return await request(`/_matrix/media/v3/download/${encodedServer}/${encodedMediaId}`);
|
|
1525
|
-
}
|
|
1526
|
-
async uploadContent(file, contentType, filename) {
|
|
1527
|
-
return (await this.client.uploadContent(new Uint8Array(file), {
|
|
1528
|
-
type: contentType || "application/octet-stream",
|
|
1529
|
-
name: filename,
|
|
1530
|
-
includeFilename: Boolean(filename)
|
|
1531
|
-
})).content_uri;
|
|
1532
|
-
}
|
|
1533
|
-
async getEvent(roomId, eventId) {
|
|
1534
|
-
const rawEvent = await this.client.fetchRoomEvent(roomId, eventId);
|
|
1535
|
-
if (rawEvent.type !== "m.room.encrypted") return rawEvent;
|
|
1536
|
-
const event = this.client.getEventMapper()(rawEvent);
|
|
1537
|
-
let decryptedEvent;
|
|
1538
|
-
const onDecrypted = (candidate) => {
|
|
1539
|
-
decryptedEvent = candidate;
|
|
1540
|
-
};
|
|
1541
|
-
event.once(MatrixEventEvent.Decrypted, onDecrypted);
|
|
1542
|
-
try {
|
|
1543
|
-
await this.client.decryptEventIfNeeded(event);
|
|
1544
|
-
} finally {
|
|
1545
|
-
event.off(MatrixEventEvent.Decrypted, onDecrypted);
|
|
1546
|
-
}
|
|
1547
|
-
return matrixEventToRaw(decryptedEvent ?? event);
|
|
1548
|
-
}
|
|
1549
|
-
async getRelations(roomId, eventId, relationType, eventType, opts = {}) {
|
|
1550
|
-
const result = await this.client.relations(roomId, eventId, relationType, eventType, opts);
|
|
1551
|
-
const events = result.originalEvent ? [result.originalEvent, ...result.events] : result.events;
|
|
1552
|
-
await Promise.all(events.map((event) => this.client.decryptEventIfNeeded(event)));
|
|
1553
|
-
return {
|
|
1554
|
-
originalEvent: result.originalEvent ? matrixEventToRaw(result.originalEvent) : null,
|
|
1555
|
-
events: result.events.map((event) => matrixEventToRaw(event)),
|
|
1556
|
-
nextBatch: result.nextBatch ?? null,
|
|
1557
|
-
prevBatch: result.prevBatch ?? null
|
|
1558
|
-
};
|
|
1559
|
-
}
|
|
1560
|
-
async hydrateEvents(roomId, events) {
|
|
1561
|
-
if (events.length === 0) return [];
|
|
1562
|
-
const mapper = this.client.getEventMapper();
|
|
1563
|
-
const mappedEvents = events.map((event) => mapper({
|
|
1564
|
-
room_id: roomId,
|
|
1565
|
-
...event
|
|
1566
|
-
}));
|
|
1567
|
-
await Promise.all(mappedEvents.map((event) => this.client.decryptEventIfNeeded(event)));
|
|
1568
|
-
return mappedEvents.map((event) => matrixEventToRaw(event));
|
|
1569
|
-
}
|
|
1570
|
-
async setTyping(roomId, typing, timeoutMs) {
|
|
1571
|
-
await this.client.sendTyping(roomId, typing, timeoutMs);
|
|
1572
|
-
}
|
|
1573
|
-
async sendReadReceipt(roomId, eventId) {
|
|
1574
|
-
await this.httpClient.requestJson({
|
|
1575
|
-
method: "POST",
|
|
1576
|
-
endpoint: `/_matrix/client/v3/rooms/${encodeURIComponent(roomId)}/receipt/m.read/${encodeURIComponent(eventId)}`,
|
|
1577
|
-
body: {},
|
|
1578
|
-
timeoutMs: this.localTimeoutMs
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
};
|
|
1582
|
-
//#endregion
|
|
1583
|
-
//#region extensions/matrix/src/matrix/sdk/client-verification.ts
|
|
1584
|
-
const normalizeNullableVerificationString = normalizeNullableString;
|
|
1585
|
-
var MatrixClientVerification = class extends MatrixClientCore {
|
|
1586
|
-
async refreshOwnDeviceKeys() {
|
|
1587
|
-
await this.client.getCrypto()?.userHasCrossSigningKeys(await this.getUserId(), true);
|
|
1588
|
-
}
|
|
1589
|
-
async getRoomKeyBackupStatus() {
|
|
1590
|
-
if (!this.encryptionEnabled) return {
|
|
1591
|
-
serverVersion: null,
|
|
1592
|
-
activeVersion: null,
|
|
1593
|
-
trusted: null,
|
|
1594
|
-
matchesDecryptionKey: null,
|
|
1595
|
-
decryptionKeyCached: null,
|
|
1596
|
-
keyLoadAttempted: false,
|
|
1597
|
-
keyLoadError: null
|
|
1598
|
-
};
|
|
1599
|
-
const crypto = this.client.getCrypto();
|
|
1600
|
-
const serverVersionFallback = await this.resolveRoomKeyBackupVersion();
|
|
1601
|
-
if (!crypto) return {
|
|
1602
|
-
serverVersion: serverVersionFallback,
|
|
1603
|
-
activeVersion: null,
|
|
1604
|
-
trusted: null,
|
|
1605
|
-
matchesDecryptionKey: null,
|
|
1606
|
-
decryptionKeyCached: null,
|
|
1607
|
-
keyLoadAttempted: false,
|
|
1608
|
-
keyLoadError: null
|
|
1609
|
-
};
|
|
1610
|
-
let { activeVersion, decryptionKeyCached } = await this.resolveRoomKeyBackupLocalState(crypto);
|
|
1611
|
-
let { serverVersion, trusted, matchesDecryptionKey } = await this.resolveRoomKeyBackupTrustState(crypto, serverVersionFallback);
|
|
1612
|
-
const shouldLoadBackupKey = Boolean(serverVersion) && (decryptionKeyCached === false || matchesDecryptionKey === false);
|
|
1613
|
-
const shouldActivateBackup = Boolean(serverVersion) && !activeVersion;
|
|
1614
|
-
let keyLoadAttempted = false;
|
|
1615
|
-
let keyLoadError = null;
|
|
1616
|
-
if (serverVersion && (shouldLoadBackupKey || shouldActivateBackup)) {
|
|
1617
|
-
if (shouldLoadBackupKey) {
|
|
1618
|
-
if (typeof crypto.loadSessionBackupPrivateKeyFromSecretStorage === "function") {
|
|
1619
|
-
keyLoadAttempted = true;
|
|
1620
|
-
try {
|
|
1621
|
-
await crypto.loadSessionBackupPrivateKeyFromSecretStorage();
|
|
1622
|
-
} catch (err) {
|
|
1623
|
-
keyLoadError = formatErrorMessage(err);
|
|
1624
|
-
}
|
|
1625
|
-
} else keyLoadError = "Matrix crypto backend does not support loading backup keys from secret storage";
|
|
1626
|
-
}
|
|
1627
|
-
if (!keyLoadError) await this.enableTrustedRoomKeyBackupIfPossible(crypto);
|
|
1628
|
-
({activeVersion, decryptionKeyCached} = await this.resolveRoomKeyBackupLocalState(crypto));
|
|
1629
|
-
({serverVersion, trusted, matchesDecryptionKey} = await this.resolveRoomKeyBackupTrustState(crypto, serverVersion));
|
|
1630
|
-
}
|
|
1631
|
-
return {
|
|
1632
|
-
serverVersion,
|
|
1633
|
-
activeVersion,
|
|
1634
|
-
trusted,
|
|
1635
|
-
matchesDecryptionKey,
|
|
1636
|
-
decryptionKeyCached,
|
|
1637
|
-
keyLoadAttempted,
|
|
1638
|
-
keyLoadError
|
|
1639
|
-
};
|
|
1640
|
-
}
|
|
1641
|
-
async getDeviceVerificationStatus(userId, deviceId) {
|
|
1642
|
-
const normalizedUserId = userId?.trim() || null;
|
|
1643
|
-
const normalizedDeviceId = deviceId?.trim() || null;
|
|
1644
|
-
if (!this.encryptionEnabled) return {
|
|
1645
|
-
encryptionEnabled: false,
|
|
1646
|
-
userId: normalizedUserId,
|
|
1647
|
-
deviceId: normalizedDeviceId,
|
|
1648
|
-
verified: false,
|
|
1649
|
-
localVerified: false,
|
|
1650
|
-
crossSigningVerified: false,
|
|
1651
|
-
signedByOwner: false
|
|
1652
|
-
};
|
|
1653
|
-
const crypto = this.client.getCrypto();
|
|
1654
|
-
let deviceStatus = null;
|
|
1655
|
-
if (crypto && normalizedUserId && normalizedDeviceId && typeof crypto.getDeviceVerificationStatus === "function") deviceStatus = await crypto.getDeviceVerificationStatus(normalizedUserId, normalizedDeviceId).catch(() => null);
|
|
1656
|
-
const { isMatrixDeviceVerifiedInCurrentClient } = await loadMatrixCryptoRuntime();
|
|
1657
|
-
return {
|
|
1658
|
-
encryptionEnabled: true,
|
|
1659
|
-
userId: normalizedUserId,
|
|
1660
|
-
deviceId: normalizedDeviceId,
|
|
1661
|
-
verified: isMatrixDeviceVerifiedInCurrentClient(deviceStatus),
|
|
1662
|
-
localVerified: deviceStatus?.localVerified === true,
|
|
1663
|
-
crossSigningVerified: deviceStatus?.crossSigningVerified === true,
|
|
1664
|
-
signedByOwner: deviceStatus?.signedByOwner === true
|
|
1665
|
-
};
|
|
1666
|
-
}
|
|
1667
|
-
async getOwnDeviceVerificationStatus() {
|
|
1668
|
-
const recoveryKey = await this.recoveryKeyStore.getRecoveryKeySummary();
|
|
1669
|
-
const userId = this.client.getUserId() ?? this.selfUserId ?? null;
|
|
1670
|
-
const deviceId = this.client.getDeviceId()?.trim() || null;
|
|
1671
|
-
const diagnosticTimeoutMs = Math.min(this.localTimeoutMs, MATRIX_STATUS_DIAGNOSTIC_TIMEOUT_MS);
|
|
1672
|
-
const [backup, deviceVerification, ownDevices] = await Promise.all([
|
|
1673
|
-
resolveMatrixDiagnostic(this.getRoomKeyBackupStatus(), diagnosticTimeoutMs),
|
|
1674
|
-
resolveMatrixDiagnostic(this.getDeviceVerificationStatus(userId, deviceId), diagnosticTimeoutMs),
|
|
1675
|
-
resolveMatrixDiagnosticResult(this.listOwnDevices(), diagnosticTimeoutMs)
|
|
1676
|
-
]);
|
|
1677
|
-
const resolvedBackup = backup ?? unresolvedMatrixRoomKeyBackupStatus();
|
|
1678
|
-
const resolvedDeviceVerification = deviceVerification ?? unresolvedMatrixDeviceVerificationStatus({
|
|
1679
|
-
userId,
|
|
1680
|
-
deviceId
|
|
1681
|
-
});
|
|
1682
|
-
const serverDeviceKnown = deviceId ? ownDevices.value ? ownDevices.value.some((device) => device.deviceId === deviceId) : isMatrixAccessTokenInvalidatedError(ownDevices.error) ? false : null : null;
|
|
1683
|
-
return {
|
|
1684
|
-
...resolvedDeviceVerification,
|
|
1685
|
-
verified: resolvedDeviceVerification.crossSigningVerified,
|
|
1686
|
-
recoveryKeyStored: Boolean(recoveryKey),
|
|
1687
|
-
recoveryKeyCreatedAt: recoveryKey?.createdAt ?? null,
|
|
1688
|
-
recoveryKeyId: recoveryKey?.keyId ?? null,
|
|
1689
|
-
backupVersion: resolvedBackup.serverVersion,
|
|
1690
|
-
backup: resolvedBackup,
|
|
1691
|
-
serverDeviceKnown
|
|
1692
|
-
};
|
|
1693
|
-
}
|
|
1694
|
-
async getOwnDeviceIdentityVerificationStatus() {
|
|
1695
|
-
const userId = this.client.getUserId() ?? this.selfUserId ?? null;
|
|
1696
|
-
const deviceId = this.client.getDeviceId()?.trim() || null;
|
|
1697
|
-
const deviceVerification = await this.getDeviceVerificationStatus(userId, deviceId);
|
|
1698
|
-
return {
|
|
1699
|
-
...deviceVerification,
|
|
1700
|
-
verified: deviceVerification.crossSigningVerified
|
|
1701
|
-
};
|
|
1702
|
-
}
|
|
1703
|
-
async trustOwnIdentityAfterSelfVerification() {
|
|
1704
|
-
if (!this.encryptionEnabled) return;
|
|
1705
|
-
await this.ensureStartedForCryptoControlPlane();
|
|
1706
|
-
await this.ensureCryptoSupportInitialized();
|
|
1707
|
-
const crypto = this.client.getCrypto();
|
|
1708
|
-
const ownIdentity = crypto && typeof crypto.getOwnIdentity === "function" ? await crypto.getOwnIdentity().catch(() => void 0) : void 0;
|
|
1709
|
-
if (!ownIdentity) return;
|
|
1710
|
-
try {
|
|
1711
|
-
if (typeof ownIdentity.isVerified === "function" && ownIdentity.isVerified()) return;
|
|
1712
|
-
if (typeof ownIdentity.verify !== "function") return;
|
|
1713
|
-
await ownIdentity.verify();
|
|
1714
|
-
} finally {
|
|
1715
|
-
ownIdentity.free?.();
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
async resolveActiveRoomKeyBackupVersion(crypto) {
|
|
1719
|
-
if (typeof crypto.getActiveSessionBackupVersion !== "function") return null;
|
|
1720
|
-
const version = await crypto.getActiveSessionBackupVersion().catch(() => null);
|
|
1721
|
-
return normalizeNullableVerificationString(version);
|
|
1722
|
-
}
|
|
1723
|
-
async resolveCachedRoomKeyBackupDecryptionKey(crypto) {
|
|
1724
|
-
const read = Reflect.get(crypto, "getSessionBackupPrivateKey");
|
|
1725
|
-
if (typeof read !== "function") return null;
|
|
1726
|
-
const key = await read.call(crypto).catch(() => null);
|
|
1727
|
-
return key ? key.length > 0 : false;
|
|
1728
|
-
}
|
|
1729
|
-
async resolveRoomKeyBackupLocalState(crypto) {
|
|
1730
|
-
const [activeVersion, decryptionKeyCached] = await Promise.all([this.resolveActiveRoomKeyBackupVersion(crypto), this.resolveCachedRoomKeyBackupDecryptionKey(crypto)]);
|
|
1731
|
-
return {
|
|
1732
|
-
activeVersion,
|
|
1733
|
-
decryptionKeyCached
|
|
1734
|
-
};
|
|
1735
|
-
}
|
|
1736
|
-
async shouldForceSecretStorageRecreationForBackupReset(crypto) {
|
|
1737
|
-
if (await this.resolveCachedRoomKeyBackupDecryptionKey(crypto) !== false) return false;
|
|
1738
|
-
const loadSessionBackupPrivateKeyFromSecretStorage = crypto.loadSessionBackupPrivateKeyFromSecretStorage;
|
|
1739
|
-
if (typeof loadSessionBackupPrivateKeyFromSecretStorage !== "function") return false;
|
|
1740
|
-
try {
|
|
1741
|
-
await loadSessionBackupPrivateKeyFromSecretStorage.call(crypto);
|
|
1742
|
-
return false;
|
|
1743
|
-
} catch (err) {
|
|
1744
|
-
return isRepairableSecretStorageAccessError(err);
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
async resolveRoomKeyBackupTrustState(crypto, fallbackVersion) {
|
|
1748
|
-
let serverVersion = fallbackVersion;
|
|
1749
|
-
let trusted = null;
|
|
1750
|
-
let matchesDecryptionKey = null;
|
|
1751
|
-
if (typeof crypto.getKeyBackupInfo === "function") {
|
|
1752
|
-
const info = await crypto.getKeyBackupInfo().catch(() => null);
|
|
1753
|
-
serverVersion = normalizeNullableVerificationString(info?.version) ?? serverVersion;
|
|
1754
|
-
if (info && typeof crypto.isKeyBackupTrusted === "function") {
|
|
1755
|
-
const trustInfo = await crypto.isKeyBackupTrusted(info).catch(() => null);
|
|
1756
|
-
trusted = typeof trustInfo?.trusted === "boolean" ? trustInfo.trusted : null;
|
|
1757
|
-
matchesDecryptionKey = typeof trustInfo?.matchesDecryptionKey === "boolean" ? trustInfo.matchesDecryptionKey : null;
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
return {
|
|
1761
|
-
serverVersion,
|
|
1762
|
-
trusted,
|
|
1763
|
-
matchesDecryptionKey
|
|
1764
|
-
};
|
|
1765
|
-
}
|
|
1766
|
-
async resolveDefaultSecretStorageKeyId(crypto) {
|
|
1767
|
-
const getSecretStorageStatus = crypto?.getSecretStorageStatus;
|
|
1768
|
-
if (typeof getSecretStorageStatus !== "function") return;
|
|
1769
|
-
return (await getSecretStorageStatus.call(crypto).catch(() => null))?.defaultKeyId;
|
|
1770
|
-
}
|
|
1771
|
-
async resolveRoomKeyBackupVersion() {
|
|
1772
|
-
try {
|
|
1773
|
-
const response = await this.doRequest("GET", "/_matrix/client/v3/room_keys/version");
|
|
1774
|
-
return normalizeNullableVerificationString(response.version);
|
|
1775
|
-
} catch {
|
|
1776
|
-
return null;
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
async enableTrustedRoomKeyBackupIfPossible(crypto) {
|
|
1780
|
-
if (typeof crypto.checkKeyBackupAndEnable !== "function") return;
|
|
1781
|
-
await crypto.checkKeyBackupAndEnable();
|
|
1782
|
-
}
|
|
1783
|
-
async ensureRoomKeyBackupEnabled(crypto) {
|
|
1784
|
-
if (await this.resolveRoomKeyBackupVersion()) return;
|
|
1785
|
-
LogService.info("MatrixClientLite", "No room key backup version found on server, creating one via secret storage bootstrap");
|
|
1786
|
-
await this.recoveryKeyStore.bootstrapSecretStorageWithRecoveryKey(crypto, { setupNewKeyBackup: true });
|
|
1787
|
-
const createdVersion = await this.resolveRoomKeyBackupVersion();
|
|
1788
|
-
if (!createdVersion) throw new Error("Matrix room key backup is still missing after bootstrap");
|
|
1789
|
-
LogService.info("MatrixClientLite", `Room key backup enabled (version ${createdVersion})`);
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
//#endregion
|
|
1793
|
-
//#region extensions/matrix/src/matrix/sdk.ts
|
|
1794
|
-
var sdk_exports = /* @__PURE__ */ __exportAll({
|
|
1795
|
-
ConsoleLogger: () => ConsoleLogger,
|
|
1796
|
-
LogService: () => LogService,
|
|
1797
|
-
MatrixClient: () => MatrixClient
|
|
1798
|
-
});
|
|
1799
|
-
var MatrixClient = class extends MatrixClientVerification {
|
|
1800
|
-
async verifyWithRecoveryKey(rawRecoveryKey) {
|
|
1801
|
-
const fail = async (error, fields = {}) => {
|
|
1802
|
-
const status = await this.getOwnDeviceVerificationStatus();
|
|
1803
|
-
return {
|
|
1804
|
-
success: false,
|
|
1805
|
-
recoveryKeyAccepted: fields.recoveryKeyAccepted ?? false,
|
|
1806
|
-
backupUsable: fields.backupUsable ?? false,
|
|
1807
|
-
deviceOwnerVerified: fields.deviceOwnerVerified ?? status.verified,
|
|
1808
|
-
error,
|
|
1809
|
-
...status
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
if (!this.encryptionEnabled) return await fail("Matrix encryption is disabled for this client");
|
|
1813
|
-
await this.ensureStartedForCryptoControlPlane();
|
|
1814
|
-
await this.ensureCryptoSupportInitialized();
|
|
1815
|
-
const crypto = this.client.getCrypto();
|
|
1816
|
-
if (!crypto) return await fail("Matrix crypto is not available (start client with encryption enabled)");
|
|
1817
|
-
const backupUsableBeforeStagedRecovery = resolveMatrixRoomKeyBackupReadinessError(await this.getRoomKeyBackupStatus(), { requireServerBackup: true }) === null;
|
|
1818
|
-
const trimmedRecoveryKey = rawRecoveryKey.trim();
|
|
1819
|
-
if (!trimmedRecoveryKey) return await fail("Matrix recovery key is required");
|
|
1820
|
-
let stagedKeyId;
|
|
1821
|
-
try {
|
|
1822
|
-
stagedKeyId = await this.resolveDefaultSecretStorageKeyId(crypto) ?? null;
|
|
1823
|
-
await this.recoveryKeyStore.stageEncodedRecoveryKey({
|
|
1824
|
-
encodedPrivateKey: trimmedRecoveryKey,
|
|
1825
|
-
keyId: stagedKeyId
|
|
1826
|
-
});
|
|
1827
|
-
} catch (err) {
|
|
1828
|
-
return await fail(formatErrorMessage(err));
|
|
1829
|
-
}
|
|
1830
|
-
const storedRecoveryKeyMatches = (await this.recoveryKeyStore.getRecoveryKeySummary())?.encodedPrivateKey?.trim() === trimmedRecoveryKey;
|
|
1831
|
-
if (backupUsableBeforeStagedRecovery && storedRecoveryKeyMatches) {
|
|
1832
|
-
const status = await this.getOwnDeviceVerificationStatus();
|
|
1833
|
-
const backupUsable = resolveMatrixRoomKeyBackupReadinessError(status.backup, { requireServerBackup: true }) === null;
|
|
1834
|
-
const backupError = resolveMatrixRoomKeyBackupReadinessError(status.backup, { requireServerBackup: false });
|
|
1835
|
-
const recoveryKeyAccepted = backupUsable;
|
|
1836
|
-
if (!status.verified) {
|
|
1837
|
-
if (recoveryKeyAccepted) await this.recoveryKeyStore.commitStagedRecoveryKey({ keyId: stagedKeyId });
|
|
1838
|
-
else await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1839
|
-
return {
|
|
1840
|
-
success: false,
|
|
1841
|
-
recoveryKeyAccepted,
|
|
1842
|
-
backupUsable,
|
|
1843
|
-
deviceOwnerVerified: false,
|
|
1844
|
-
error: "Matrix recovery key was applied, but this device still lacks full Matrix identity trust. The recovery key can unlock usable backup material only when 'Backup usable' is yes; full identity trust still requires Matrix cross-signing verification.",
|
|
1845
|
-
...status
|
|
1846
|
-
};
|
|
1847
|
-
}
|
|
1848
|
-
if (backupError) {
|
|
1849
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1850
|
-
return {
|
|
1851
|
-
success: false,
|
|
1852
|
-
recoveryKeyAccepted,
|
|
1853
|
-
backupUsable,
|
|
1854
|
-
deviceOwnerVerified: true,
|
|
1855
|
-
error: backupError,
|
|
1856
|
-
...status
|
|
1857
|
-
};
|
|
1858
|
-
}
|
|
1859
|
-
await this.recoveryKeyStore.commitStagedRecoveryKey({ keyId: stagedKeyId });
|
|
1860
|
-
return {
|
|
1861
|
-
success: true,
|
|
1862
|
-
recoveryKeyAccepted: true,
|
|
1863
|
-
backupUsable,
|
|
1864
|
-
deviceOwnerVerified: true,
|
|
1865
|
-
verifiedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1866
|
-
...status
|
|
1867
|
-
};
|
|
1868
|
-
}
|
|
1869
|
-
try {
|
|
1870
|
-
const cryptoBootstrapper = this.cryptoBootstrapper;
|
|
1871
|
-
if (!cryptoBootstrapper) return await fail("Matrix crypto bootstrapper is not available");
|
|
1872
|
-
await cryptoBootstrapper.bootstrap(crypto, { allowAutomaticCrossSigningReset: false });
|
|
1873
|
-
await this.enableTrustedRoomKeyBackupIfPossible(crypto);
|
|
1874
|
-
const status = await this.getOwnDeviceVerificationStatus();
|
|
1875
|
-
const backupError = resolveMatrixRoomKeyBackupReadinessError(status.backup, { requireServerBackup: false });
|
|
1876
|
-
const backupUsable = resolveMatrixRoomKeyBackupReadinessError(status.backup, { requireServerBackup: true }) === null;
|
|
1877
|
-
const stagedRecoveryKeyUsed = this.recoveryKeyStore.hasStagedRecoveryKeyBeenUsed();
|
|
1878
|
-
const secretStorageStatus = typeof crypto.getSecretStorageStatus === "function" ? await crypto.getSecretStorageStatus().catch(() => null) : null;
|
|
1879
|
-
const stagedRecoveryKeyConfirmedBySecretStorage = Boolean(stagedKeyId) && secretStorageStatus?.secretStorageKeyValidityMap?.[stagedKeyId ?? ""] === true;
|
|
1880
|
-
const stagedRecoveryKeyRejectedBySecretStorage = Boolean(stagedKeyId) && secretStorageStatus?.secretStorageKeyValidityMap?.[stagedKeyId ?? ""] === false;
|
|
1881
|
-
const stagedRecoveryKeyValidated = stagedRecoveryKeyUsed && (stagedRecoveryKeyConfirmedBySecretStorage || stagedRecoveryKeyUsed && !stagedRecoveryKeyRejectedBySecretStorage && !stagedRecoveryKeyConfirmedBySecretStorage && !backupUsableBeforeStagedRecovery && backupUsable) || storedRecoveryKeyMatches && backupUsable;
|
|
1882
|
-
const recoveryKeyAccepted = stagedRecoveryKeyValidated && (status.verified || backupUsable);
|
|
1883
|
-
if (!status.verified) {
|
|
1884
|
-
if (backupUsable && stagedRecoveryKeyValidated) await this.recoveryKeyStore.commitStagedRecoveryKey({ keyId: stagedKeyId });
|
|
1885
|
-
else await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1886
|
-
return {
|
|
1887
|
-
success: false,
|
|
1888
|
-
recoveryKeyAccepted,
|
|
1889
|
-
backupUsable,
|
|
1890
|
-
deviceOwnerVerified: false,
|
|
1891
|
-
error: "Matrix recovery key was applied, but this device still lacks full Matrix identity trust. The recovery key can unlock usable backup material only when 'Backup usable' is yes; full identity trust still requires Matrix cross-signing verification.",
|
|
1892
|
-
...recoveryKeyAccepted ? await this.getOwnDeviceVerificationStatus() : status
|
|
1893
|
-
};
|
|
1894
|
-
}
|
|
1895
|
-
if (backupError) {
|
|
1896
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1897
|
-
return {
|
|
1898
|
-
success: false,
|
|
1899
|
-
recoveryKeyAccepted,
|
|
1900
|
-
backupUsable,
|
|
1901
|
-
deviceOwnerVerified: true,
|
|
1902
|
-
error: backupError,
|
|
1903
|
-
...status
|
|
1904
|
-
};
|
|
1905
|
-
}
|
|
1906
|
-
if (!stagedRecoveryKeyValidated) {
|
|
1907
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1908
|
-
return {
|
|
1909
|
-
success: false,
|
|
1910
|
-
recoveryKeyAccepted: false,
|
|
1911
|
-
backupUsable,
|
|
1912
|
-
deviceOwnerVerified: true,
|
|
1913
|
-
error: "Matrix recovery key could not be verified against active Matrix backup material; existing backup may be usable from previously loaded recovery material.",
|
|
1914
|
-
...status
|
|
1915
|
-
};
|
|
1916
|
-
}
|
|
1917
|
-
await this.recoveryKeyStore.commitStagedRecoveryKey({ keyId: stagedKeyId });
|
|
1918
|
-
const committedStatus = await this.getOwnDeviceVerificationStatus();
|
|
1919
|
-
return {
|
|
1920
|
-
success: true,
|
|
1921
|
-
recoveryKeyAccepted: true,
|
|
1922
|
-
backupUsable,
|
|
1923
|
-
deviceOwnerVerified: true,
|
|
1924
|
-
verifiedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1925
|
-
...committedStatus
|
|
1926
|
-
};
|
|
1927
|
-
} catch (err) {
|
|
1928
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1929
|
-
return await fail(formatErrorMessage(err));
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
async restoreRoomKeyBackup(params = {}) {
|
|
1933
|
-
let loadedFromSecretStorage = false;
|
|
1934
|
-
const fail = async (error) => {
|
|
1935
|
-
const backup = await this.getRoomKeyBackupStatus();
|
|
1936
|
-
return {
|
|
1937
|
-
success: false,
|
|
1938
|
-
error,
|
|
1939
|
-
backupVersion: backup.serverVersion,
|
|
1940
|
-
imported: 0,
|
|
1941
|
-
total: 0,
|
|
1942
|
-
loadedFromSecretStorage,
|
|
1943
|
-
backup
|
|
1944
|
-
};
|
|
1945
|
-
};
|
|
1946
|
-
if (!this.encryptionEnabled) return await fail("Matrix encryption is disabled for this client");
|
|
1947
|
-
await this.ensureStartedForCryptoControlPlane();
|
|
1948
|
-
const crypto = this.client.getCrypto();
|
|
1949
|
-
if (!crypto) return await fail("Matrix crypto is not available (start client with encryption enabled)");
|
|
1950
|
-
try {
|
|
1951
|
-
const rawRecoveryKey = params.recoveryKey?.trim();
|
|
1952
|
-
if (rawRecoveryKey) await this.recoveryKeyStore.stageEncodedRecoveryKey({
|
|
1953
|
-
encodedPrivateKey: rawRecoveryKey,
|
|
1954
|
-
keyId: await this.resolveDefaultSecretStorageKeyId(crypto)
|
|
1955
|
-
});
|
|
1956
|
-
const backup = await this.getRoomKeyBackupStatus();
|
|
1957
|
-
loadedFromSecretStorage = backup.keyLoadAttempted && !backup.keyLoadError;
|
|
1958
|
-
const backupError = resolveMatrixRoomKeyBackupReadinessError(backup, {
|
|
1959
|
-
allowUntrustedMatchingKey: true,
|
|
1960
|
-
requireServerBackup: true
|
|
1961
|
-
});
|
|
1962
|
-
if (backupError) {
|
|
1963
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1964
|
-
return await fail(backupError);
|
|
1965
|
-
}
|
|
1966
|
-
if (typeof crypto.restoreKeyBackup !== "function") {
|
|
1967
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1968
|
-
return await fail("Matrix crypto backend does not support full key backup restore");
|
|
1969
|
-
}
|
|
1970
|
-
const restore = await crypto.restoreKeyBackup();
|
|
1971
|
-
if (rawRecoveryKey) await this.recoveryKeyStore.commitStagedRecoveryKey({ keyId: await this.resolveDefaultSecretStorageKeyId(crypto) });
|
|
1972
|
-
const finalBackup = await this.getRoomKeyBackupStatus();
|
|
1973
|
-
return {
|
|
1974
|
-
success: true,
|
|
1975
|
-
backupVersion: backup.serverVersion,
|
|
1976
|
-
imported: typeof restore.imported === "number" ? restore.imported : 0,
|
|
1977
|
-
total: typeof restore.total === "number" ? restore.total : 0,
|
|
1978
|
-
loadedFromSecretStorage,
|
|
1979
|
-
restoredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1980
|
-
backup: finalBackup
|
|
1981
|
-
};
|
|
1982
|
-
} catch (err) {
|
|
1983
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
1984
|
-
return await fail(formatErrorMessage(err));
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1987
|
-
async resetRoomKeyBackup(options = {}) {
|
|
1988
|
-
let previousVersion = null;
|
|
1989
|
-
let deletedVersion = null;
|
|
1990
|
-
const fail = async (error) => {
|
|
1991
|
-
const backup = await this.getRoomKeyBackupStatus();
|
|
1992
|
-
return {
|
|
1993
|
-
success: false,
|
|
1994
|
-
error,
|
|
1995
|
-
previousVersion,
|
|
1996
|
-
deletedVersion,
|
|
1997
|
-
createdVersion: backup.serverVersion,
|
|
1998
|
-
backup
|
|
1999
|
-
};
|
|
2000
|
-
};
|
|
2001
|
-
if (!this.encryptionEnabled) return await fail("Matrix encryption is disabled for this client");
|
|
2002
|
-
await this.ensureStartedForCryptoControlPlane();
|
|
2003
|
-
const crypto = this.client.getCrypto();
|
|
2004
|
-
if (!crypto) return await fail("Matrix crypto is not available (start client with encryption enabled)");
|
|
2005
|
-
await this.recoveryKeyStore.drainPendingPersistence();
|
|
2006
|
-
previousVersion = await this.resolveRoomKeyBackupVersion();
|
|
2007
|
-
const forceNewSecretStorage = options.rotateRecoveryKey === true || await this.shouldForceSecretStorageRecreationForBackupReset(crypto);
|
|
2008
|
-
try {
|
|
2009
|
-
if (previousVersion) {
|
|
2010
|
-
try {
|
|
2011
|
-
await this.doRequest("DELETE", `/_matrix/client/v3/room_keys/version/${encodeURIComponent(previousVersion)}`);
|
|
2012
|
-
} catch (err) {
|
|
2013
|
-
if (!isMatrixNotFoundError(err)) throw err;
|
|
2014
|
-
}
|
|
2015
|
-
deletedVersion = previousVersion;
|
|
2016
|
-
}
|
|
2017
|
-
await this.recoveryKeyStore.bootstrapSecretStorageWithRecoveryKey(crypto, {
|
|
2018
|
-
setupNewKeyBackup: true,
|
|
2019
|
-
forceNewSecretStorage,
|
|
2020
|
-
forceNewRecoveryKey: options.rotateRecoveryKey === true,
|
|
2021
|
-
allowSecretStorageRecreateWithoutRecoveryKey: true
|
|
2022
|
-
});
|
|
2023
|
-
await this.enableTrustedRoomKeyBackupIfPossible(crypto);
|
|
2024
|
-
const backup = await this.getRoomKeyBackupStatus();
|
|
2025
|
-
const createdVersion = backup.serverVersion;
|
|
2026
|
-
if (!createdVersion) return await fail("Matrix room key backup is still missing after reset.");
|
|
2027
|
-
if (backup.activeVersion !== createdVersion) return await fail("Matrix room key backup was recreated on the server but is not active on this device.");
|
|
2028
|
-
if (backup.decryptionKeyCached === false) return await fail("Matrix room key backup was recreated but its decryption key is not cached on this device.");
|
|
2029
|
-
if (backup.matchesDecryptionKey === false) return await fail("Matrix room key backup was recreated but this device does not have the matching backup decryption key.");
|
|
2030
|
-
if (backup.trusted === false) return await fail("Matrix room key backup was recreated but is not trusted on this device.");
|
|
2031
|
-
return {
|
|
2032
|
-
success: true,
|
|
2033
|
-
previousVersion,
|
|
2034
|
-
deletedVersion,
|
|
2035
|
-
createdVersion,
|
|
2036
|
-
resetAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2037
|
-
backup
|
|
2038
|
-
};
|
|
2039
|
-
} catch (err) {
|
|
2040
|
-
return await fail(formatErrorMessage(err));
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
async getOwnCrossSigningPublicationStatus() {
|
|
2044
|
-
const userId = this.client.getUserId() ?? this.selfUserId ?? null;
|
|
2045
|
-
return await resolveMatrixCrossSigningPublicationStatus({
|
|
2046
|
-
userId,
|
|
2047
|
-
query: async () => await this.doRequest("POST", "/_matrix/client/v3/keys/query", void 0, { device_keys: userId ? { [userId]: [] } : {} })
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
async bootstrapOwnDeviceVerification(params) {
|
|
2051
|
-
const pendingVerifications = async () => this.crypto ? (await this.crypto.listVerifications()).length : 0;
|
|
2052
|
-
if (!this.encryptionEnabled) return {
|
|
2053
|
-
success: false,
|
|
2054
|
-
error: "Matrix encryption is disabled for this client",
|
|
2055
|
-
verification: await this.getOwnDeviceVerificationStatus(),
|
|
2056
|
-
crossSigning: await this.getOwnCrossSigningPublicationStatus(),
|
|
2057
|
-
pendingVerifications: await pendingVerifications(),
|
|
2058
|
-
cryptoBootstrap: null
|
|
2059
|
-
};
|
|
2060
|
-
let bootstrapError;
|
|
2061
|
-
let bootstrapSummary = null;
|
|
2062
|
-
let rawRecoveryKey;
|
|
2063
|
-
try {
|
|
2064
|
-
await this.ensureStartedForCryptoControlPlane();
|
|
2065
|
-
await this.ensureCryptoSupportInitialized();
|
|
2066
|
-
const crypto = this.client.getCrypto();
|
|
2067
|
-
if (!crypto) throw new Error("Matrix crypto is not available (start client with encryption enabled)");
|
|
2068
|
-
rawRecoveryKey = params?.recoveryKey?.trim();
|
|
2069
|
-
if (rawRecoveryKey) await this.recoveryKeyStore.stageEncodedRecoveryKey({
|
|
2070
|
-
encodedPrivateKey: rawRecoveryKey,
|
|
2071
|
-
keyId: await this.resolveDefaultSecretStorageKeyId(crypto)
|
|
2072
|
-
});
|
|
2073
|
-
const cryptoBootstrapper = this.cryptoBootstrapper;
|
|
2074
|
-
if (!cryptoBootstrapper) throw new Error("Matrix crypto bootstrapper is not available");
|
|
2075
|
-
bootstrapSummary = await cryptoBootstrapper.bootstrap(crypto, createMatrixExplicitBootstrapOptions({
|
|
2076
|
-
...params,
|
|
2077
|
-
allowAutomaticCrossSigningReset: rawRecoveryKey ? false : params?.allowAutomaticCrossSigningReset
|
|
2078
|
-
}));
|
|
2079
|
-
await this.ensureRoomKeyBackupEnabled(crypto);
|
|
2080
|
-
} catch (err) {
|
|
2081
|
-
await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
2082
|
-
bootstrapError = formatErrorMessage(err);
|
|
2083
|
-
}
|
|
2084
|
-
const verification = await this.getOwnDeviceVerificationStatus();
|
|
2085
|
-
const crossSigning = await this.getOwnCrossSigningPublicationStatus();
|
|
2086
|
-
const verificationError = verification.verified && crossSigning.published ? null : bootstrapError ?? "Matrix verification bootstrap did not produce a device verified by its owner with published cross-signing keys";
|
|
2087
|
-
const backupError = verificationError === null ? resolveMatrixRoomKeyBackupReadinessError(verification.backup, {
|
|
2088
|
-
allowUntrustedMatchingKey: Boolean(rawRecoveryKey),
|
|
2089
|
-
requireServerBackup: true
|
|
2090
|
-
}) : null;
|
|
2091
|
-
const success = verificationError === null && backupError === null;
|
|
2092
|
-
if (success) await this.recoveryKeyStore.commitStagedRecoveryKey({ keyId: await this.resolveDefaultSecretStorageKeyId(this.client.getCrypto()) });
|
|
2093
|
-
else await this.recoveryKeyStore.discardStagedRecoveryKey();
|
|
2094
|
-
return {
|
|
2095
|
-
success,
|
|
2096
|
-
error: success ? void 0 : backupError ?? verificationError ?? void 0,
|
|
2097
|
-
verification: success ? await this.getOwnDeviceVerificationStatus() : verification,
|
|
2098
|
-
crossSigning,
|
|
2099
|
-
pendingVerifications: await pendingVerifications(),
|
|
2100
|
-
cryptoBootstrap: bootstrapSummary
|
|
2101
|
-
};
|
|
2102
|
-
}
|
|
2103
|
-
async listOwnDevices() {
|
|
2104
|
-
return await listMatrixOwnDevices(this.client);
|
|
2105
|
-
}
|
|
2106
|
-
async deleteOwnDevices(deviceIds) {
|
|
2107
|
-
const uniqueDeviceIds = uniqueStrings(normalizeStringEntries(deviceIds));
|
|
2108
|
-
const currentDeviceId = this.client.getDeviceId()?.trim() || null;
|
|
2109
|
-
const protectedDeviceIds = uniqueDeviceIds.filter((deviceId) => deviceId === currentDeviceId);
|
|
2110
|
-
if (protectedDeviceIds.length > 0) throw new Error(`Refusing to delete the current Matrix device: ${protectedDeviceIds[0]}`);
|
|
2111
|
-
const deleteWithAuth = async (authData) => {
|
|
2112
|
-
await this.client.deleteMultipleDevices(uniqueDeviceIds, authData);
|
|
2113
|
-
};
|
|
2114
|
-
if (uniqueDeviceIds.length > 0) try {
|
|
2115
|
-
await deleteWithAuth();
|
|
2116
|
-
} catch (err) {
|
|
2117
|
-
const session = err && typeof err === "object" && "data" in err && err.data && typeof err.data === "object" && "session" in err.data && typeof err.data.session === "string" ? err.data.session : null;
|
|
2118
|
-
const userId = await this.getUserId().catch(() => this.selfUserId);
|
|
2119
|
-
if (!session || !userId || !this.password?.trim()) throw err;
|
|
2120
|
-
await deleteWithAuth({
|
|
2121
|
-
type: "m.login.password",
|
|
2122
|
-
session,
|
|
2123
|
-
identifier: {
|
|
2124
|
-
type: "m.id.user",
|
|
2125
|
-
user: userId
|
|
2126
|
-
},
|
|
2127
|
-
password: this.password
|
|
2128
|
-
});
|
|
2129
|
-
}
|
|
2130
|
-
return {
|
|
2131
|
-
currentDeviceId,
|
|
2132
|
-
deletedDeviceIds: uniqueDeviceIds,
|
|
2133
|
-
remainingDevices: await this.listOwnDevices()
|
|
2134
|
-
};
|
|
2135
|
-
}
|
|
2136
|
-
registerBridge() {
|
|
2137
|
-
const decryptBridge = this.decryptBridge;
|
|
2138
|
-
if (this.bridgeRegistered || !decryptBridge) return;
|
|
2139
|
-
this.bridgeRegistered = true;
|
|
2140
|
-
registerMatrixClientBridge({
|
|
2141
|
-
client: this.client,
|
|
2142
|
-
decryptBridge,
|
|
2143
|
-
emitter: this.emitter,
|
|
2144
|
-
emitMembershipForRoom: (room) => this.emitMembershipForRoom(room),
|
|
2145
|
-
getSelfUserId: () => this.client.getUserId() ?? this.selfUserId ?? "",
|
|
2146
|
-
setCurrentSyncState: (state, error) => {
|
|
2147
|
-
this.currentSyncState = state;
|
|
2148
|
-
this.currentSyncError = error;
|
|
2149
|
-
}
|
|
2150
|
-
});
|
|
2151
|
-
}
|
|
2152
|
-
emitMembershipForRoom(room) {
|
|
2153
|
-
emitMatrixMembershipForRoom({
|
|
2154
|
-
client: this.client,
|
|
2155
|
-
emitter: this.emitter,
|
|
2156
|
-
room,
|
|
2157
|
-
selfUserId: this.client.getUserId() ?? this.selfUserId ?? ""
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
emitOutstandingInviteEvents() {
|
|
2161
|
-
for (const room of this.client.getRooms()) this.emitMembershipForRoom(room);
|
|
2162
|
-
}
|
|
2163
|
-
async refreshDmCache() {
|
|
2164
|
-
return refreshMatrixDmRoomIds(await this.getAccountData("m.direct"), this.dmRoomIds);
|
|
2165
|
-
}
|
|
2166
|
-
};
|
|
2167
|
-
//#endregion
|
|
2168
|
-
export { ConsoleLogger, LogService, MatrixClient, isRepairableSecretStorageAccessError as n, sdk_exports as t };
|