jazz-tools 2.0.0-alpha.7 → 2.0.0-alpha.70
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/LICENSE +21 -0
- package/README.md +135 -7
- package/bin/jazz-tools.js +101 -45
- package/dist/_dev/inspector-cache-runtime.d.ts +8 -0
- package/dist/_dev/inspector-cache-runtime.d.ts.map +1 -0
- package/dist/_dev/inspector-cache-runtime.js +246 -0
- package/dist/_dev/inspector-cache-runtime.js.map +1 -0
- package/dist/_dev/inspector-client.d.ts +15 -0
- package/dist/_dev/inspector-client.d.ts.map +1 -0
- package/dist/_dev/inspector-client.js +134 -0
- package/dist/_dev/inspector-client.js.map +1 -0
- package/dist/_dev/native-account-session.d.ts +23 -0
- package/dist/_dev/native-account-session.d.ts.map +1 -0
- package/dist/_dev/native-account-session.js +61 -0
- package/dist/_dev/native-account-session.js.map +1 -0
- package/dist/_dev/native-binding-codec.d.ts +9 -0
- package/dist/_dev/native-binding-codec.d.ts.map +1 -0
- package/dist/_dev/native-binding-codec.js +9 -0
- package/dist/_dev/native-binding-codec.js.map +1 -0
- package/dist/accounts/account-manager-core.d.ts +34 -0
- package/dist/accounts/account-manager-core.d.ts.map +1 -0
- package/dist/accounts/account-manager-core.js +236 -0
- package/dist/accounts/account-manager-core.js.map +1 -0
- package/dist/accounts/browser-host.d.ts +8 -0
- package/dist/accounts/browser-host.d.ts.map +1 -0
- package/dist/accounts/browser-host.js +16 -0
- package/dist/accounts/browser-host.js.map +1 -0
- package/dist/accounts/config-capability.d.ts +26 -0
- package/dist/accounts/config-capability.d.ts.map +1 -0
- package/dist/accounts/config-capability.js +58 -0
- package/dist/accounts/config-capability.js.map +1 -0
- package/dist/accounts/context.d.ts +14 -0
- package/dist/accounts/context.d.ts.map +1 -0
- package/dist/accounts/context.js +214 -0
- package/dist/accounts/context.js.map +1 -0
- package/dist/accounts/create-account-manager.d.ts +57 -0
- package/dist/accounts/create-account-manager.d.ts.map +1 -0
- package/dist/accounts/create-account-manager.js +17 -0
- package/dist/accounts/create-account-manager.js.map +1 -0
- package/dist/accounts/enrollment.d.ts +95 -0
- package/dist/accounts/enrollment.d.ts.map +1 -0
- package/dist/accounts/enrollment.js +314 -0
- package/dist/accounts/enrollment.js.map +1 -0
- package/dist/accounts/exports.d.ts +3 -0
- package/dist/accounts/exports.d.ts.map +1 -0
- package/dist/accounts/exports.js +5 -0
- package/dist/accounts/exports.js.map +1 -0
- package/dist/accounts/local-first.d.ts +17 -0
- package/dist/accounts/local-first.d.ts.map +1 -0
- package/dist/accounts/local-first.js +62 -0
- package/dist/accounts/local-first.js.map +1 -0
- package/dist/accounts/persistence.d.ts +79 -0
- package/dist/accounts/persistence.d.ts.map +1 -0
- package/dist/accounts/persistence.js +533 -0
- package/dist/accounts/persistence.js.map +1 -0
- package/dist/accounts/process-store.d.ts +27 -0
- package/dist/accounts/process-store.d.ts.map +1 -0
- package/dist/accounts/process-store.js +49 -0
- package/dist/accounts/process-store.js.map +1 -0
- package/dist/accounts/registry-client.d.ts +79 -0
- package/dist/accounts/registry-client.d.ts.map +1 -0
- package/dist/accounts/registry-client.js +153 -0
- package/dist/accounts/registry-client.js.map +1 -0
- package/dist/accounts/state.d.ts +76 -0
- package/dist/accounts/state.d.ts.map +1 -0
- package/dist/accounts/state.js +172 -0
- package/dist/accounts/state.js.map +1 -0
- package/dist/app-file-enums.d.ts +9 -0
- package/dist/app-file-enums.d.ts.map +1 -0
- package/dist/app-file-enums.js +34 -0
- package/dist/app-file-enums.js.map +1 -0
- package/dist/authoring.d.ts +9 -0
- package/dist/authoring.d.ts.map +1 -0
- package/dist/authoring.js +9 -0
- package/dist/authoring.js.map +1 -0
- package/dist/backend/admission.d.ts +28 -0
- package/dist/backend/admission.d.ts.map +1 -0
- package/dist/backend/admission.js +146 -0
- package/dist/backend/admission.js.map +1 -0
- package/dist/backend/api.d.ts +13 -0
- package/dist/backend/api.d.ts.map +1 -0
- package/dist/backend/api.js +13 -0
- package/dist/backend/api.js.map +1 -0
- package/dist/backend/backend-clients.d.ts +76 -0
- package/dist/backend/backend-clients.d.ts.map +1 -0
- package/dist/backend/backend-clients.js +237 -0
- package/dist/backend/backend-clients.js.map +1 -0
- package/dist/backend/backend-issuer.d.ts +6 -0
- package/dist/backend/backend-issuer.d.ts.map +1 -0
- package/dist/backend/backend-issuer.js +6 -0
- package/dist/backend/backend-issuer.js.map +1 -0
- package/dist/backend/backend-native.d.ts +40 -0
- package/dist/backend/backend-native.d.ts.map +1 -0
- package/dist/backend/backend-native.js +37 -0
- package/dist/backend/backend-native.js.map +1 -0
- package/dist/backend/blobs.d.ts +130 -0
- package/dist/backend/blobs.d.ts.map +1 -0
- package/dist/backend/blobs.js +132 -0
- package/dist/backend/blobs.js.map +1 -0
- package/dist/backend/core-transport.d.ts +61 -0
- package/dist/backend/core-transport.d.ts.map +1 -0
- package/dist/backend/core-transport.js +106 -0
- package/dist/backend/core-transport.js.map +1 -0
- package/dist/backend/create-jazz-context.d.ts +123 -0
- package/dist/backend/create-jazz-context.d.ts.map +1 -0
- package/dist/backend/create-jazz-context.js +716 -0
- package/dist/backend/create-jazz-context.js.map +1 -0
- package/dist/backend/create-jazz-session.d.ts +125 -0
- package/dist/backend/create-jazz-session.d.ts.map +1 -0
- package/dist/backend/create-jazz-session.js +528 -0
- package/dist/backend/create-jazz-session.js.map +1 -0
- package/dist/backend/create-jazz.d.ts +683 -0
- package/dist/backend/create-jazz.d.ts.map +1 -0
- package/dist/backend/create-jazz.js +4076 -0
- package/dist/backend/create-jazz.js.map +1 -0
- package/dist/backend/early-db.d.ts +29 -0
- package/dist/backend/early-db.d.ts.map +1 -0
- package/dist/backend/early-db.js +203 -0
- package/dist/backend/early-db.js.map +1 -0
- package/dist/backend/external-jwt.d.ts +27 -0
- package/dist/backend/external-jwt.d.ts.map +1 -0
- package/dist/backend/external-jwt.js +404 -0
- package/dist/backend/external-jwt.js.map +1 -0
- package/dist/backend/from-jwt.d.ts +64 -0
- package/dist/backend/from-jwt.d.ts.map +1 -0
- package/dist/backend/from-jwt.js +104 -0
- package/dist/backend/from-jwt.js.map +1 -0
- package/dist/backend/index.d.ts +6 -1
- package/dist/backend/index.d.ts.map +1 -1
- package/dist/backend/index.js +18 -1
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/inspect-ui.d.ts +14 -0
- package/dist/backend/inspect-ui.d.ts.map +1 -0
- package/dist/backend/inspect-ui.js +156 -0
- package/dist/backend/inspect-ui.js.map +1 -0
- package/dist/backend/inspect.d.ts +133 -0
- package/dist/backend/inspect.d.ts.map +1 -0
- package/dist/backend/inspect.js +1001 -0
- package/dist/backend/inspect.js.map +1 -0
- package/dist/backend/inspector-ui/0.js +2 -0
- package/dist/backend/inspector-ui/1.js +2 -0
- package/dist/backend/inspector-ui/10.js +2 -0
- package/dist/backend/inspector-ui/11.js +2 -0
- package/dist/backend/inspector-ui/12.js +2 -0
- package/dist/backend/inspector-ui/13.js +2 -0
- package/dist/backend/inspector-ui/14.js +2 -0
- package/dist/backend/inspector-ui/15.js +2 -0
- package/dist/backend/inspector-ui/16.js +2 -0
- package/dist/backend/inspector-ui/17.js +2 -0
- package/dist/backend/inspector-ui/18.js +2 -0
- package/dist/backend/inspector-ui/19.js +2 -0
- package/dist/backend/inspector-ui/2.js +2 -0
- package/dist/backend/inspector-ui/20.js +2 -0
- package/dist/backend/inspector-ui/21.js +2 -0
- package/dist/backend/inspector-ui/3.js +2 -0
- package/dist/backend/inspector-ui/4.js +2 -0
- package/dist/backend/inspector-ui/5.js +2 -0
- package/dist/backend/inspector-ui/6.js +2 -0
- package/dist/backend/inspector-ui/7.js +2 -0
- package/dist/backend/inspector-ui/8.js +2 -0
- package/dist/backend/inspector-ui/9.js +2 -0
- package/dist/backend/inspector-ui-files.d.ts +4 -0
- package/dist/backend/inspector-ui-files.d.ts.map +1 -0
- package/dist/backend/inspector-ui-files.js +26 -0
- package/dist/backend/no-account-error.d.ts +23 -0
- package/dist/backend/no-account-error.d.ts.map +1 -0
- package/dist/backend/no-account-error.js +30 -0
- package/dist/backend/no-account-error.js.map +1 -0
- package/dist/backend/node-native.d.ts +3 -0
- package/dist/backend/node-native.d.ts.map +1 -0
- package/dist/backend/node-native.js +19 -0
- package/dist/backend/node-native.js.map +1 -0
- package/dist/backend/node-peers.d.ts +10 -0
- package/dist/backend/node-peers.d.ts.map +1 -0
- package/dist/backend/node-peers.js +37 -0
- package/dist/backend/node-peers.js.map +1 -0
- package/dist/backend/optional-peer.d.ts +9 -0
- package/dist/backend/optional-peer.d.ts.map +1 -0
- package/dist/backend/optional-peer.js +24 -0
- package/dist/backend/optional-peer.js.map +1 -0
- package/dist/backend/request-auth.d.ts +69 -0
- package/dist/backend/request-auth.d.ts.map +1 -0
- package/dist/backend/request-auth.js +122 -0
- package/dist/backend/request-auth.js.map +1 -0
- package/dist/backend/session-expiry.d.ts +61 -0
- package/dist/backend/session-expiry.d.ts.map +1 -0
- package/dist/backend/session-expiry.js +102 -0
- package/dist/backend/session-expiry.js.map +1 -0
- package/dist/backend/signing-key.d.ts +32 -0
- package/dist/backend/signing-key.d.ts.map +1 -0
- package/dist/backend/signing-key.js +63 -0
- package/dist/backend/signing-key.js.map +1 -0
- package/dist/backend/socket-deadline.d.ts +23 -0
- package/dist/backend/socket-deadline.d.ts.map +1 -0
- package/dist/backend/socket-deadline.js +70 -0
- package/dist/backend/socket-deadline.js.map +1 -0
- package/dist/backend/store-log.d.ts +3 -0
- package/dist/backend/store-log.d.ts.map +1 -0
- package/dist/backend/store-log.js +16 -0
- package/dist/backend/store-log.js.map +1 -0
- package/dist/backend/thin-relay.d.ts +66 -0
- package/dist/backend/thin-relay.d.ts.map +1 -0
- package/dist/backend/thin-relay.js +204 -0
- package/dist/backend/thin-relay.js.map +1 -0
- package/dist/backend/thin-session-client.d.ts +23 -0
- package/dist/backend/thin-session-client.d.ts.map +1 -0
- package/dist/backend/thin-session-client.js +69 -0
- package/dist/backend/thin-session-client.js.map +1 -0
- package/dist/backend/upgrade-status.d.ts +19 -0
- package/dist/backend/upgrade-status.d.ts.map +1 -0
- package/dist/backend/upgrade-status.js +55 -0
- package/dist/backend/upgrade-status.js.map +1 -0
- package/dist/backend/vercel-store.d.ts +345 -0
- package/dist/backend/vercel-store.d.ts.map +1 -0
- package/dist/backend/vercel-store.js +1387 -0
- package/dist/backend/vercel-store.js.map +1 -0
- package/dist/backend/workerd-backend.d.ts +36 -0
- package/dist/backend/workerd-backend.d.ts.map +1 -0
- package/dist/backend/workerd-backend.js +97 -0
- package/dist/backend/workerd-backend.js.map +1 -0
- package/dist/backend/workerd.d.ts +3 -0
- package/dist/backend/workerd.d.ts.map +1 -0
- package/dist/backend/workerd.js +39 -0
- package/dist/backend/workerd.js.map +1 -0
- package/dist/backend/ws-peer.d.ts +32 -0
- package/dist/backend/ws-peer.d.ts.map +1 -0
- package/dist/backend/ws-peer.js +41 -0
- package/dist/backend/ws-peer.js.map +1 -0
- package/dist/better-auth-adapter/fixtures/app.d.ts +151 -0
- package/dist/better-auth-adapter/fixtures/app.d.ts.map +1 -0
- package/dist/better-auth-adapter/fixtures/app.js +13 -0
- package/dist/better-auth-adapter/fixtures/app.js.map +1 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts +20 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts.map +1 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.js +27 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.js.map +1 -0
- package/dist/better-auth-adapter/index.d.ts +13 -0
- package/dist/better-auth-adapter/index.d.ts.map +1 -0
- package/dist/better-auth-adapter/index.js +406 -0
- package/dist/better-auth-adapter/index.js.map +1 -0
- package/dist/better-auth-adapter/indexes.d.ts +9 -0
- package/dist/better-auth-adapter/indexes.d.ts.map +1 -0
- package/dist/better-auth-adapter/indexes.js +40 -0
- package/dist/better-auth-adapter/indexes.js.map +1 -0
- package/dist/better-auth-adapter/schema.d.ts +88 -0
- package/dist/better-auth-adapter/schema.d.ts.map +1 -0
- package/dist/better-auth-adapter/schema.js +332 -0
- package/dist/better-auth-adapter/schema.js.map +1 -0
- package/dist/better-auth-adapter/types.d.ts +13 -0
- package/dist/better-auth-adapter/types.d.ts.map +1 -0
- package/dist/better-auth-adapter/types.js +2 -0
- package/dist/better-auth-adapter/types.js.map +1 -0
- package/dist/better-auth-adapter/utils.d.ts +53 -0
- package/dist/better-auth-adapter/utils.d.ts.map +1 -0
- package/dist/better-auth-adapter/utils.js +126 -0
- package/dist/better-auth-adapter/utils.js.map +1 -0
- package/dist/browser-benchmark-mode.d.ts +6 -0
- package/dist/browser-benchmark-mode.d.ts.map +1 -0
- package/dist/browser-benchmark-mode.js +13 -0
- package/dist/browser-benchmark-mode.js.map +1 -0
- package/dist/classic-api.d.ts +59 -0
- package/dist/classic-api.d.ts.map +1 -0
- package/dist/classic-api.js +122 -0
- package/dist/classic-api.js.map +1 -0
- package/dist/cli.d.ts +39 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +471 -265
- package/dist/cli.js.map +1 -1
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/cloud/api.d.ts +11 -0
- package/dist/cloud/api.d.ts.map +1 -0
- package/dist/cloud/api.js +46 -0
- package/dist/cloud/api.js.map +1 -0
- package/dist/cloud/commands.d.ts +13 -0
- package/dist/cloud/commands.d.ts.map +1 -0
- package/dist/cloud/commands.js +425 -0
- package/dist/cloud/commands.js.map +1 -0
- package/dist/cloud/credentials.d.ts +49 -0
- package/dist/cloud/credentials.d.ts.map +1 -0
- package/dist/cloud/credentials.js +219 -0
- package/dist/cloud/credentials.js.map +1 -0
- package/dist/cloud/session.d.ts +57 -0
- package/dist/cloud/session.d.ts.map +1 -0
- package/dist/cloud/session.js +269 -0
- package/dist/cloud/session.js.map +1 -0
- package/dist/codegen/relation-analyzer.d.ts +5 -12
- package/dist/codegen/relation-analyzer.d.ts.map +1 -1
- package/dist/codegen/relation-analyzer.js +54 -65
- package/dist/codegen/relation-analyzer.js.map +1 -1
- package/dist/dev/app-files.d.ts +32 -0
- package/dist/dev/app-files.d.ts.map +1 -0
- package/dist/dev/app-files.js +72 -0
- package/dist/dev/app-files.js.map +1 -0
- package/dist/dev/catalogue-api.d.ts +147 -0
- package/dist/dev/catalogue-api.d.ts.map +1 -0
- package/dist/dev/catalogue-api.js +130 -0
- package/dist/dev/catalogue-api.js.map +1 -0
- package/dist/dev/catalogue.d.ts +69 -0
- package/dist/dev/catalogue.d.ts.map +1 -0
- package/dist/dev/catalogue.js +70 -0
- package/dist/dev/catalogue.js.map +1 -0
- package/dist/dev/codegen-napi.d.ts +139 -0
- package/dist/dev/codegen-napi.d.ts.map +1 -0
- package/dist/dev/codegen-napi.js +157 -0
- package/dist/dev/codegen-napi.js.map +1 -0
- package/dist/dev/dev-server.d.ts +62 -0
- package/dist/dev/dev-server.d.ts.map +1 -0
- package/dist/dev/dev-server.js +164 -0
- package/dist/dev/dev-server.js.map +1 -0
- package/dist/dev/index.d.ts +3 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +3 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/inspector-overlay/browser-control-registry.d.ts +10 -0
- package/dist/dev/inspector-overlay/browser-control-registry.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/browser-control-registry.js +188 -0
- package/dist/dev/inspector-overlay/browser-control-registry.js.map +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/ExportResult-C0ZojfNk.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/backend-0Idv0niF.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/backend-DHeT1LCS.css +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/create-legacy-browser-delegate-DeI8PAZ5.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/diag-api-3Z_Eel3W.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-BB6DtWpZ.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-B_xpsQL2.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-CE7mSo95.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-CcBEG-yV.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-DZrCzNXM.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-k373aadI.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/index-D3RK8wNj.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz-broker-worker-EyaWhBtz.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm-O10pptvY.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm_bg-wI43fvvq.wasm +0 -0
- package/dist/dev/inspector-overlay/embedded/assets/node-foreground-node-lease.browser-2mfp13Qb.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/src-4JwhxZaW.js +16 -0
- package/dist/dev/inspector-overlay/embedded/assets/src-Cq8gSOLx.css +1 -0
- package/dist/dev/inspector-overlay/embedded/backend.html +17 -0
- package/dist/dev/inspector-overlay/embedded/embedded.html +15 -0
- package/dist/dev/inspector-overlay/embedded/favicon.ico +0 -0
- package/dist/dev/inspector-overlay/host-bridge.d.ts +8 -0
- package/dist/dev/inspector-overlay/host-bridge.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/host-bridge.js +139 -0
- package/dist/dev/inspector-overlay/host-bridge.js.map +1 -0
- package/dist/dev/inspector-overlay/inspector-host-types.d.ts +35 -0
- package/dist/dev/inspector-overlay/inspector-host-types.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/inspector-host-types.js +10 -0
- package/dist/dev/inspector-overlay/inspector-host-types.js.map +1 -0
- package/dist/dev/inspector-overlay/loader.d.ts +24 -0
- package/dist/dev/inspector-overlay/loader.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/loader.js +533 -0
- package/dist/dev/inspector-overlay/loader.js.map +1 -0
- package/dist/dev/migration-graph.d.ts +32 -0
- package/dist/dev/migration-graph.d.ts.map +1 -0
- package/dist/dev/migration-graph.js +136 -0
- package/dist/dev/migration-graph.js.map +1 -0
- package/dist/dev/migrations.d.ts +145 -0
- package/dist/dev/migrations.d.ts.map +1 -0
- package/dist/dev/migrations.js +700 -0
- package/dist/dev/migrations.js.map +1 -0
- package/dist/dev/project.d.ts +65 -0
- package/dist/dev/project.d.ts.map +1 -0
- package/dist/dev/project.js +179 -0
- package/dist/dev/project.js.map +1 -0
- package/dist/dev/schema-utils.d.ts +8 -0
- package/dist/dev/schema-utils.d.ts.map +1 -0
- package/dist/dev/schema-utils.js +75 -0
- package/dist/dev/schema-utils.js.map +1 -0
- package/dist/dev/schema-validation.d.ts +5 -0
- package/dist/dev/schema-validation.d.ts.map +1 -0
- package/dist/dev/schema-validation.js +11 -0
- package/dist/dev/schema-validation.js.map +1 -0
- package/dist/dev/ts-project.d.ts +77 -0
- package/dist/dev/ts-project.d.ts.map +1 -0
- package/dist/dev/ts-project.js +190 -0
- package/dist/dev/ts-project.js.map +1 -0
- package/dist/drivers/index.d.ts +1 -1
- package/dist/drivers/index.d.ts.map +1 -1
- package/dist/drivers/index.js.map +1 -1
- package/dist/drivers/schema-wire.d.ts +21 -0
- package/dist/drivers/schema-wire.d.ts.map +1 -0
- package/dist/drivers/schema-wire.js +67 -0
- package/dist/drivers/schema-wire.js.map +1 -0
- package/dist/drivers/types.d.ts +315 -45
- package/dist/drivers/types.d.ts.map +1 -1
- package/dist/drivers/types.js +5 -4
- package/dist/drivers/types.js.map +1 -1
- package/dist/dsl.d.ts +276 -121
- package/dist/dsl.d.ts.map +1 -1
- package/dist/dsl.js +196 -160
- package/dist/dsl.js.map +1 -1
- package/dist/durable-object/index.d.ts +26 -0
- package/dist/durable-object/index.d.ts.map +1 -0
- package/dist/durable-object/index.js +26 -0
- package/dist/durable-object/index.js.map +1 -0
- package/dist/e2ee/SODIUM-LICENSE.txt +36 -0
- package/dist/e2ee/SODIUM-SOURCES.json +4 -0
- package/dist/e2ee/browser.d.ts +18 -0
- package/dist/e2ee/browser.d.ts.map +1 -0
- package/dist/e2ee/browser.js +111 -0
- package/dist/e2ee/browser.js.map +1 -0
- package/dist/e2ee/context.d.ts +23 -0
- package/dist/e2ee/context.d.ts.map +1 -0
- package/dist/e2ee/context.js +49 -0
- package/dist/e2ee/context.js.map +1 -0
- package/dist/e2ee/crypto.d.ts +10 -0
- package/dist/e2ee/crypto.d.ts.map +1 -0
- package/dist/e2ee/crypto.js +22 -0
- package/dist/e2ee/crypto.js.map +1 -0
- package/dist/e2ee/envelope.d.ts +22 -0
- package/dist/e2ee/envelope.d.ts.map +1 -0
- package/dist/e2ee/envelope.js +52 -0
- package/dist/e2ee/envelope.js.map +1 -0
- package/dist/e2ee/index.d.ts +14 -0
- package/dist/e2ee/index.d.ts.map +1 -0
- package/dist/e2ee/index.js +3 -0
- package/dist/e2ee/index.js.map +1 -0
- package/dist/e2ee/large-value.d.ts +20 -0
- package/dist/e2ee/large-value.d.ts.map +1 -0
- package/dist/e2ee/large-value.js +204 -0
- package/dist/e2ee/large-value.js.map +1 -0
- package/dist/e2ee/native.d.ts +18 -0
- package/dist/e2ee/native.d.ts.map +1 -0
- package/dist/e2ee/native.js +91 -0
- package/dist/e2ee/native.js.map +1 -0
- package/dist/e2ee/record-frame.d.ts +3 -0
- package/dist/e2ee/record-frame.d.ts.map +1 -0
- package/dist/e2ee/record-frame.js +18 -0
- package/dist/e2ee/record-frame.js.map +1 -0
- package/dist/e2ee/signer.d.ts +10 -0
- package/dist/e2ee/signer.d.ts.map +1 -0
- package/dist/e2ee/signer.js +54 -0
- package/dist/e2ee/signer.js.map +1 -0
- package/dist/e2ee/sodium-browser.d.ts +2 -0
- package/dist/e2ee/sodium-browser.d.ts.map +1 -0
- package/dist/e2ee/sodium-browser.js +3432 -0
- package/dist/e2ee/sodium.d.ts +20 -0
- package/dist/e2ee/sodium.d.ts.map +1 -0
- package/dist/e2ee/sodium.js +165 -0
- package/dist/e2ee/sodium.js.map +1 -0
- package/dist/e2ee/types.d.ts +92 -0
- package/dist/e2ee/types.d.ts.map +1 -0
- package/dist/e2ee/types.js +2 -0
- package/dist/e2ee/types.js.map +1 -0
- package/dist/effect/backend/index.d.ts +8 -0
- package/dist/effect/backend/index.d.ts.map +1 -0
- package/dist/effect/backend/index.js +8 -0
- package/dist/effect/backend/index.js.map +1 -0
- package/dist/effect/errors.d.ts +53 -0
- package/dist/effect/errors.d.ts.map +1 -0
- package/dist/effect/errors.js +61 -0
- package/dist/effect/errors.js.map +1 -0
- package/dist/effect/index.d.ts +9 -0
- package/dist/effect/index.d.ts.map +1 -0
- package/dist/effect/index.js +9 -0
- package/dist/effect/index.js.map +1 -0
- package/dist/effect/jazz-backend.d.ts +69 -0
- package/dist/effect/jazz-backend.d.ts.map +1 -0
- package/dist/effect/jazz-backend.js +95 -0
- package/dist/effect/jazz-backend.js.map +1 -0
- package/dist/effect/jazz.d.ts +129 -0
- package/dist/effect/jazz.d.ts.map +1 -0
- package/dist/effect/jazz.js +182 -0
- package/dist/effect/jazz.js.map +1 -0
- package/dist/expo/create-account-manager.d.ts +28 -0
- package/dist/expo/create-account-manager.d.ts.map +1 -0
- package/dist/expo/create-account-manager.js +35 -0
- package/dist/expo/create-account-manager.js.map +1 -0
- package/dist/expo/create-jazz-session.d.ts +66 -0
- package/dist/expo/create-jazz-session.d.ts.map +1 -0
- package/dist/expo/create-jazz-session.js +96 -0
- package/dist/expo/create-jazz-session.js.map +1 -0
- package/dist/expo/index.d.ts +13 -0
- package/dist/expo/index.d.ts.map +1 -0
- package/dist/expo/index.js +12 -0
- package/dist/expo/index.js.map +1 -0
- package/dist/expo/metro.d.ts +20 -0
- package/dist/expo/metro.d.ts.map +1 -0
- package/dist/expo/metro.js +58 -0
- package/dist/expo/metro.js.map +1 -0
- package/dist/expo/polyfills.d.ts +2 -0
- package/dist/expo/polyfills.d.ts.map +1 -0
- package/dist/expo/polyfills.js +5 -0
- package/dist/expo/polyfills.js.map +1 -0
- package/dist/expo/provider.d.ts +10 -0
- package/dist/expo/provider.d.ts.map +1 -0
- package/dist/expo/provider.js +11 -0
- package/dist/expo/provider.js.map +1 -0
- package/dist/index.d.ts +23 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/inspect/cli.d.ts +12 -0
- package/dist/inspect/cli.d.ts.map +1 -0
- package/dist/inspect/cli.js +320 -0
- package/dist/inspect/cli.js.map +1 -0
- package/dist/inspect/client.d.ts +67 -0
- package/dist/inspect/client.d.ts.map +1 -0
- package/dist/inspect/client.js +254 -0
- package/dist/inspect/client.js.map +1 -0
- package/dist/inspect/mcp.d.ts +28 -0
- package/dist/inspect/mcp.d.ts.map +1 -0
- package/dist/inspect/mcp.js +441 -0
- package/dist/inspect/mcp.js.map +1 -0
- package/dist/inspect/protocol.d.ts +317 -0
- package/dist/inspect/protocol.d.ts.map +1 -0
- package/dist/inspect/protocol.js +544 -0
- package/dist/inspect/protocol.js.map +1 -0
- package/dist/inspector/index.d.ts +10 -0
- package/dist/inspector/index.d.ts.map +1 -0
- package/dist/inspector/index.js +27 -0
- package/dist/inspector/index.js.map +1 -0
- package/dist/internal/inspector-query.d.ts +6 -0
- package/dist/internal/inspector-query.d.ts.map +1 -0
- package/dist/internal/inspector-query.js +20 -0
- package/dist/internal/inspector-query.js.map +1 -0
- package/dist/ir.d.ts +143 -115
- package/dist/ir.d.ts.map +1 -1
- package/dist/ir.js +509 -1
- package/dist/ir.js.map +1 -1
- package/dist/json-value.d.ts +6 -0
- package/dist/json-value.d.ts.map +1 -0
- package/dist/json-value.js +2 -0
- package/dist/json-value.js.map +1 -0
- package/dist/local-first/index.d.ts +18 -0
- package/dist/local-first/index.d.ts.map +1 -0
- package/dist/local-first/index.js +17 -0
- package/dist/local-first/index.js.map +1 -0
- package/dist/local-first-auth/browser.d.ts +18 -0
- package/dist/local-first-auth/browser.d.ts.map +1 -0
- package/dist/local-first-auth/browser.js +26 -0
- package/dist/local-first-auth/browser.js.map +1 -0
- package/dist/local-first-auth/encoding.d.ts +10 -0
- package/dist/local-first-auth/encoding.d.ts.map +1 -0
- package/dist/local-first-auth/encoding.js +38 -0
- package/dist/local-first-auth/encoding.js.map +1 -0
- package/dist/local-first-auth/identity.d.ts +73 -0
- package/dist/local-first-auth/identity.d.ts.map +1 -0
- package/dist/local-first-auth/identity.js +258 -0
- package/dist/local-first-auth/identity.js.map +1 -0
- package/dist/local-first-auth/index.d.ts +6 -0
- package/dist/local-first-auth/index.d.ts.map +1 -0
- package/dist/local-first-auth/index.js +4 -0
- package/dist/local-first-auth/index.js.map +1 -0
- package/dist/local-first-auth/passkey.d.ts +22 -0
- package/dist/local-first-auth/passkey.d.ts.map +1 -0
- package/dist/local-first-auth/passkey.js +116 -0
- package/dist/local-first-auth/passkey.js.map +1 -0
- package/dist/local-first-auth/recovery-phrase.d.ts +10 -0
- package/dist/local-first-auth/recovery-phrase.d.ts.map +1 -0
- package/dist/local-first-auth/recovery-phrase.js +59 -0
- package/dist/local-first-auth/recovery-phrase.js.map +1 -0
- package/dist/local-first-auth/secret.d.ts +25 -0
- package/dist/local-first-auth/secret.d.ts.map +1 -0
- package/dist/local-first-auth/secret.js +68 -0
- package/dist/local-first-auth/secret.js.map +1 -0
- package/dist/local-first-auth/server.d.ts +13 -0
- package/dist/local-first-auth/server.d.ts.map +1 -0
- package/dist/local-first-auth/server.js +32 -0
- package/dist/local-first-auth/server.js.map +1 -0
- package/dist/local-first-auth/store.d.ts +51 -0
- package/dist/local-first-auth/store.d.ts.map +1 -0
- package/dist/local-first-auth/store.js +112 -0
- package/dist/local-first-auth/store.js.map +1 -0
- package/dist/magic-columns.d.ts +40 -0
- package/dist/magic-columns.d.ts.map +1 -0
- package/dist/magic-columns.js +110 -0
- package/dist/magic-columns.js.map +1 -0
- package/dist/migration-namespace.d.ts +12 -0
- package/dist/migration-namespace.d.ts.map +1 -0
- package/dist/migration-namespace.js +13 -0
- package/dist/migration-namespace.js.map +1 -0
- package/dist/migrations.d.ts +286 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +188 -0
- package/dist/migrations.js.map +1 -0
- package/dist/module-interop.d.ts +17 -0
- package/dist/module-interop.d.ts.map +1 -0
- package/dist/module-interop.js +32 -0
- package/dist/module-interop.js.map +1 -0
- package/dist/observed-jazz-client.d.ts +15 -0
- package/dist/observed-jazz-client.d.ts.map +1 -0
- package/dist/observed-jazz-client.js +47 -0
- package/dist/observed-jazz-client.js.map +1 -0
- package/dist/passkey-backup.d.ts +3 -0
- package/dist/passkey-backup.d.ts.map +1 -0
- package/dist/passkey-backup.js +2 -0
- package/dist/passkey-backup.js.map +1 -0
- package/dist/passphrase.d.ts +2 -0
- package/dist/passphrase.d.ts.map +1 -0
- package/dist/passphrase.js +2 -0
- package/dist/passphrase.js.map +1 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.d.ts +89 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.js +62 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.js.map +1 -0
- package/dist/permissions/__fixtures__/big-label.d.ts +332 -0
- package/dist/permissions/__fixtures__/big-label.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/big-label.js +177 -0
- package/dist/permissions/__fixtures__/big-label.js.map +1 -0
- package/dist/permissions/__fixtures__/chat-react.d.ts +112 -0
- package/dist/permissions/__fixtures__/chat-react.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/chat-react.js +51 -0
- package/dist/permissions/__fixtures__/chat-react.js.map +1 -0
- package/dist/permissions/compile.d.ts +182 -0
- package/dist/permissions/compile.d.ts.map +1 -0
- package/dist/permissions/compile.js +715 -0
- package/dist/permissions/compile.js.map +1 -0
- package/dist/permissions/dsl.d.ts +158 -0
- package/dist/permissions/dsl.d.ts.map +1 -0
- package/dist/permissions/dsl.js +391 -0
- package/dist/permissions/dsl.js.map +1 -0
- package/dist/permissions/index.d.ts +4 -145
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +10 -1185
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/relation.d.ts +84 -0
- package/dist/permissions/relation.d.ts.map +1 -0
- package/dist/permissions/relation.js +150 -0
- package/dist/permissions/relation.js.map +1 -0
- package/dist/permissions/types.d.ts +357 -0
- package/dist/permissions/types.d.ts.map +1 -0
- package/dist/permissions/types.js +5 -0
- package/dist/permissions/types.js.map +1 -0
- package/dist/printer/app-json.d.ts +96 -0
- package/dist/printer/app-json.d.ts.map +1 -0
- package/dist/printer/app-json.js +18 -0
- package/dist/printer/app-json.js.map +1 -0
- package/dist/printer/cli.d.ts +15 -0
- package/dist/printer/cli.d.ts.map +1 -0
- package/dist/printer/cli.js +76 -0
- package/dist/printer/cli.js.map +1 -0
- package/dist/printer/defs.d.ts +11 -0
- package/dist/printer/defs.d.ts.map +1 -0
- package/dist/printer/defs.js +123 -0
- package/dist/printer/defs.js.map +1 -0
- package/dist/printer/expr.d.ts +281 -0
- package/dist/printer/expr.d.ts.map +1 -0
- package/dist/printer/expr.js +940 -0
- package/dist/printer/expr.js.map +1 -0
- package/dist/printer/format.d.ts +17 -0
- package/dist/printer/format.d.ts.map +1 -0
- package/dist/printer/format.js +315 -0
- package/dist/printer/format.js.map +1 -0
- package/dist/printer/index.d.ts +31 -0
- package/dist/printer/index.d.ts.map +1 -0
- package/dist/printer/index.js +48 -0
- package/dist/printer/index.js.map +1 -0
- package/dist/printer/migrations.d.ts +28 -0
- package/dist/printer/migrations.d.ts.map +1 -0
- package/dist/printer/migrations.js +179 -0
- package/dist/printer/migrations.js.map +1 -0
- package/dist/printer/names.d.ts +17 -0
- package/dist/printer/names.d.ts.map +1 -0
- package/dist/printer/names.js +124 -0
- package/dist/printer/names.js.map +1 -0
- package/dist/printer/permissions.d.ts +60 -0
- package/dist/printer/permissions.d.ts.map +1 -0
- package/dist/printer/permissions.js +1167 -0
- package/dist/printer/permissions.js.map +1 -0
- package/dist/printer/schema.d.ts +18 -0
- package/dist/printer/schema.d.ts.map +1 -0
- package/dist/printer/schema.js +132 -0
- package/dist/printer/schema.js.map +1 -0
- package/dist/prosemirror/anchors.d.ts +30 -0
- package/dist/prosemirror/anchors.d.ts.map +1 -0
- package/dist/prosemirror/anchors.js +28 -0
- package/dist/prosemirror/anchors.js.map +1 -0
- package/dist/prosemirror/index.d.ts +7 -0
- package/dist/prosemirror/index.d.ts.map +1 -0
- package/dist/prosemirror/index.js +7 -0
- package/dist/prosemirror/index.js.map +1 -0
- package/dist/prosemirror/markdown.d.ts +95 -0
- package/dist/prosemirror/markdown.d.ts.map +1 -0
- package/dist/prosemirror/markdown.js +428 -0
- package/dist/prosemirror/markdown.js.map +1 -0
- package/dist/prosemirror/overlays.d.ts +69 -0
- package/dist/prosemirror/overlays.d.ts.map +1 -0
- package/dist/prosemirror/overlays.js +143 -0
- package/dist/prosemirror/overlays.js.map +1 -0
- package/dist/prosemirror/presence.d.ts +39 -0
- package/dist/prosemirror/presence.d.ts.map +1 -0
- package/dist/prosemirror/presence.js +88 -0
- package/dist/prosemirror/presence.js.map +1 -0
- package/dist/prosemirror/sync.d.ts +60 -0
- package/dist/prosemirror/sync.d.ts.map +1 -0
- package/dist/prosemirror/sync.js +196 -0
- package/dist/prosemirror/sync.js.map +1 -0
- package/dist/prosemirror/text-map.d.ts +21 -0
- package/dist/prosemirror/text-map.d.ts.map +1 -0
- package/dist/prosemirror/text-map.js +85 -0
- package/dist/prosemirror/text-map.js.map +1 -0
- package/dist/react/create-jazz-client.d.ts +2 -10
- package/dist/react/create-jazz-client.d.ts.map +1 -1
- package/dist/react/create-jazz-client.js +1 -25
- package/dist/react/create-jazz-client.js.map +1 -1
- package/dist/react/index.d.ts +15 -6
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +10 -5
- package/dist/react/index.js.map +1 -1
- package/dist/react/provider-props.d.ts +7 -0
- package/dist/react/provider-props.d.ts.map +1 -0
- package/dist/react/provider-props.js +15 -0
- package/dist/react/provider-props.js.map +1 -0
- package/dist/react/provider.d.ts +19 -13
- package/dist/react/provider.d.ts.map +1 -1
- package/dist/react/provider.js +25 -4
- package/dist/react/provider.js.map +1 -1
- package/dist/react/use-all.d.ts +1 -1
- package/dist/react/use-all.d.ts.map +1 -1
- package/dist/react/use-all.js +1 -1
- package/dist/react/use-all.js.map +1 -1
- package/dist/react/use-one.d.ts +2 -0
- package/dist/react/use-one.d.ts.map +1 -0
- package/dist/react/use-one.js +2 -0
- package/dist/react/use-one.js.map +1 -0
- package/dist/react-core/index.d.ts +10 -4
- package/dist/react-core/index.d.ts.map +1 -1
- package/dist/react-core/index.js +12 -2
- package/dist/react-core/index.js.map +1 -1
- package/dist/react-core/provider.d.ts +56 -12
- package/dist/react-core/provider.d.ts.map +1 -1
- package/dist/react-core/provider.js +128 -11
- package/dist/react-core/provider.js.map +1 -1
- package/dist/react-core/session-context.d.ts +7 -0
- package/dist/react-core/session-context.d.ts.map +1 -0
- package/dist/react-core/session-context.js +8 -0
- package/dist/react-core/session-context.js.map +1 -0
- package/dist/react-core/session.d.ts +63 -0
- package/dist/react-core/session.d.ts.map +1 -0
- package/dist/react-core/session.js +97 -0
- package/dist/react-core/session.js.map +1 -0
- package/dist/react-core/use-all.d.ts +95 -3
- package/dist/react-core/use-all.d.ts.map +1 -1
- package/dist/react-core/use-all.js +126 -52
- package/dist/react-core/use-all.js.map +1 -1
- package/dist/react-core/use-auth-state.d.ts +13 -0
- package/dist/react-core/use-auth-state.d.ts.map +1 -0
- package/dist/react-core/use-auth-state.js +15 -0
- package/dist/react-core/use-auth-state.js.map +1 -0
- package/dist/react-core/use-one.d.ts +58 -0
- package/dist/react-core/use-one.d.ts.map +1 -0
- package/dist/react-core/use-one.js +19 -0
- package/dist/react-core/use-one.js.map +1 -0
- package/dist/react-core/use-sync-status.d.ts +8 -0
- package/dist/react-core/use-sync-status.d.ts.map +1 -0
- package/dist/react-core/use-sync-status.js +12 -0
- package/dist/react-core/use-sync-status.js.map +1 -0
- package/dist/react-native/abort-signal.d.ts +9 -0
- package/dist/react-native/abort-signal.d.ts.map +1 -0
- package/dist/react-native/abort-signal.js +51 -0
- package/dist/react-native/abort-signal.js.map +1 -0
- package/dist/react-native/account-session.d.ts +11 -0
- package/dist/react-native/account-session.d.ts.map +1 -0
- package/dist/react-native/account-session.js +59 -0
- package/dist/react-native/account-session.js.map +1 -0
- package/dist/react-native/create-account-manager.d.ts +28 -0
- package/dist/react-native/create-account-manager.d.ts.map +1 -0
- package/dist/react-native/create-account-manager.js +30 -0
- package/dist/react-native/create-account-manager.js.map +1 -0
- package/dist/react-native/create-db.d.ts +8 -0
- package/dist/react-native/create-db.d.ts.map +1 -0
- package/dist/react-native/create-db.js +9 -0
- package/dist/react-native/create-db.js.map +1 -0
- package/dist/react-native/create-jazz-client.d.ts +12 -10
- package/dist/react-native/create-jazz-client.d.ts.map +1 -1
- package/dist/react-native/create-jazz-client.js +6 -21
- package/dist/react-native/create-jazz-client.js.map +1 -1
- package/dist/react-native/create-jazz-session.d.ts +66 -0
- package/dist/react-native/create-jazz-session.d.ts.map +1 -0
- package/dist/react-native/create-jazz-session.js +96 -0
- package/dist/react-native/create-jazz-session.js.map +1 -0
- package/dist/react-native/errors.d.ts +6 -0
- package/dist/react-native/errors.d.ts.map +1 -0
- package/dist/react-native/errors.js +6 -0
- package/dist/react-native/errors.js.map +1 -0
- package/dist/react-native/index.d.ts +21 -9
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +17 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/native-foreground-db.d.ts +227 -0
- package/dist/react-native/native-foreground-db.d.ts.map +1 -0
- package/dist/react-native/native-foreground-db.js +905 -0
- package/dist/react-native/native-foreground-db.js.map +1 -0
- package/dist/react-native/native-relay.d.ts +7 -0
- package/dist/react-native/native-relay.d.ts.map +1 -0
- package/dist/react-native/native-relay.js +14 -0
- package/dist/react-native/native-relay.js.map +1 -0
- package/dist/react-native/provider.d.ts +20 -12
- package/dist/react-native/provider.d.ts.map +1 -1
- package/dist/react-native/provider.js +25 -4
- package/dist/react-native/provider.js.map +1 -1
- package/dist/react-native/runtime-source.d.ts +62 -0
- package/dist/react-native/runtime-source.d.ts.map +1 -0
- package/dist/react-native/runtime-source.js +314 -0
- package/dist/react-native/runtime-source.js.map +1 -0
- package/dist/react-native/use-all.d.ts +1 -1
- package/dist/react-native/use-all.d.ts.map +1 -1
- package/dist/react-native/use-all.js +1 -1
- package/dist/react-native/use-all.js.map +1 -1
- package/dist/react-native/use-one.d.ts +2 -0
- package/dist/react-native/use-one.d.ts.map +1 -0
- package/dist/react-native/use-one.js +2 -0
- package/dist/react-native/use-one.js.map +1 -0
- package/dist/reconcile-array.d.ts +45 -0
- package/dist/reconcile-array.d.ts.map +1 -0
- package/dist/reconcile-array.js +252 -0
- package/dist/reconcile-array.js.map +1 -0
- package/dist/relationships.d.ts +18 -0
- package/dist/relationships.d.ts.map +1 -0
- package/dist/relationships.js +28 -0
- package/dist/relationships.js.map +1 -0
- package/dist/removed-api.d.ts +87 -0
- package/dist/removed-api.d.ts.map +1 -0
- package/dist/removed-api.js +95 -0
- package/dist/removed-api.js.map +1 -0
- package/dist/removed-schema-api.d.ts +80 -0
- package/dist/removed-schema-api.d.ts.map +1 -0
- package/dist/removed-schema-api.js +128 -0
- package/dist/removed-schema-api.js.map +1 -0
- package/dist/runtime/auth-renewal-backoff.d.ts +14 -0
- package/dist/runtime/auth-renewal-backoff.d.ts.map +1 -0
- package/dist/runtime/auth-renewal-backoff.js +23 -0
- package/dist/runtime/auth-renewal-backoff.js.map +1 -0
- package/dist/runtime/auth-request-deadline.d.ts +3 -0
- package/dist/runtime/auth-request-deadline.d.ts.map +1 -0
- package/dist/runtime/auth-request-deadline.js +24 -0
- package/dist/runtime/auth-request-deadline.js.map +1 -0
- package/dist/runtime/auth-secret-codec.d.ts +21 -0
- package/dist/runtime/auth-secret-codec.d.ts.map +1 -0
- package/dist/runtime/auth-secret-codec.js +32 -0
- package/dist/runtime/auth-secret-codec.js.map +1 -0
- package/dist/runtime/auth-secret-store.d.ts +7 -0
- package/dist/runtime/auth-secret-store.d.ts.map +1 -0
- package/dist/runtime/auth-secret-store.js +12 -0
- package/dist/runtime/auth-secret-store.js.map +1 -0
- package/dist/runtime/auth-state.d.ts +47 -0
- package/dist/runtime/auth-state.d.ts.map +1 -0
- package/dist/runtime/auth-state.js +161 -0
- package/dist/runtime/auth-state.js.map +1 -0
- package/dist/runtime/author-id.d.ts +42 -0
- package/dist/runtime/author-id.d.ts.map +1 -0
- package/dist/runtime/author-id.js +172 -0
- package/dist/runtime/author-id.js.map +1 -0
- package/dist/runtime/authority-changed-error.d.ts +56 -0
- package/dist/runtime/authority-changed-error.d.ts.map +1 -0
- package/dist/runtime/authority-changed-error.js +74 -0
- package/dist/runtime/authority-changed-error.js.map +1 -0
- package/dist/runtime/backlog-rows.d.ts +3 -0
- package/dist/runtime/backlog-rows.d.ts.map +1 -0
- package/dist/runtime/backlog-rows.js +7 -0
- package/dist/runtime/backlog-rows.js.map +1 -0
- package/dist/runtime/browser-physical-database-epoch.d.ts +37 -0
- package/dist/runtime/browser-physical-database-epoch.d.ts.map +1 -0
- package/dist/runtime/browser-physical-database-epoch.js +89 -0
- package/dist/runtime/browser-physical-database-epoch.js.map +1 -0
- package/dist/runtime/browser-storage-invalidation.d.ts +8 -0
- package/dist/runtime/browser-storage-invalidation.d.ts.map +1 -0
- package/dist/runtime/browser-storage-invalidation.js +20 -0
- package/dist/runtime/browser-storage-invalidation.js.map +1 -0
- package/dist/runtime/browser-store-generation.d.ts +15 -0
- package/dist/runtime/browser-store-generation.d.ts.map +1 -0
- package/dist/runtime/browser-store-generation.js +48 -0
- package/dist/runtime/browser-store-generation.js.map +1 -0
- package/dist/runtime/browser-worker-assets.d.ts +31 -0
- package/dist/runtime/browser-worker-assets.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.js +40 -0
- package/dist/runtime/browser-worker-assets.js.map +1 -0
- package/dist/runtime/browser-worker-assets.metro.d.ts +28 -0
- package/dist/runtime/browser-worker-assets.metro.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.metro.js +52 -0
- package/dist/runtime/browser-worker-assets.metro.js.map +1 -0
- package/dist/runtime/browser-worker-assets.native.d.ts +7 -0
- package/dist/runtime/browser-worker-assets.native.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.native.js +8 -0
- package/dist/runtime/browser-worker-assets.native.js.map +1 -0
- package/dist/runtime/browser-worker-config.d.ts +78 -0
- package/dist/runtime/browser-worker-config.d.ts.map +1 -0
- package/dist/runtime/browser-worker-config.js +299 -0
- package/dist/runtime/browser-worker-config.js.map +1 -0
- package/dist/runtime/client-config-key.d.ts +6 -0
- package/dist/runtime/client-config-key.d.ts.map +1 -0
- package/dist/runtime/client-config-key.js +83 -0
- package/dist/runtime/client-config-key.js.map +1 -0
- package/dist/runtime/client-migrations.d.ts +27 -0
- package/dist/runtime/client-migrations.d.ts.map +1 -0
- package/dist/runtime/client-migrations.js +25 -0
- package/dist/runtime/client-migrations.js.map +1 -0
- package/dist/runtime/client-registry.d.ts +21 -0
- package/dist/runtime/client-registry.d.ts.map +1 -0
- package/dist/runtime/client-registry.js +169 -0
- package/dist/runtime/client-registry.js.map +1 -0
- package/dist/runtime/client-scope.d.ts +38 -0
- package/dist/runtime/client-scope.d.ts.map +1 -0
- package/dist/runtime/client-scope.js +64 -0
- package/dist/runtime/client-scope.js.map +1 -0
- package/dist/runtime/client-session.d.ts +56 -13
- package/dist/runtime/client-session.d.ts.map +1 -1
- package/dist/runtime/client-session.js +212 -196
- package/dist/runtime/client-session.js.map +1 -1
- package/dist/runtime/client.d.ts +723 -190
- package/dist/runtime/client.d.ts.map +1 -1
- package/dist/runtime/client.js +1220 -416
- package/dist/runtime/client.js.map +1 -1
- package/dist/runtime/column-transforms.d.ts +26 -0
- package/dist/runtime/column-transforms.d.ts.map +1 -0
- package/dist/runtime/column-transforms.js +186 -0
- package/dist/runtime/column-transforms.js.map +1 -0
- package/dist/runtime/connection-manager/browser-connection-manager.d.ts +178 -0
- package/dist/runtime/connection-manager/browser-connection-manager.d.ts.map +1 -0
- package/dist/runtime/connection-manager/browser-connection-manager.js +1030 -0
- package/dist/runtime/connection-manager/browser-connection-manager.js.map +1 -0
- package/dist/runtime/connection-manager/direct-connection-manager.d.ts +28 -0
- package/dist/runtime/connection-manager/direct-connection-manager.d.ts.map +1 -0
- package/dist/runtime/connection-manager/direct-connection-manager.js +202 -0
- package/dist/runtime/connection-manager/direct-connection-manager.js.map +1 -0
- package/dist/runtime/connection-manager/index.d.ts +5 -0
- package/dist/runtime/connection-manager/index.d.ts.map +1 -0
- package/dist/runtime/connection-manager/index.js +4 -0
- package/dist/runtime/connection-manager/index.js.map +1 -0
- package/dist/runtime/connection-manager/types.d.ts +174 -0
- package/dist/runtime/connection-manager/types.d.ts.map +1 -0
- package/dist/runtime/connection-manager/types.js +396 -0
- package/dist/runtime/connection-manager/types.js.map +1 -0
- package/dist/runtime/context.d.ts +100 -30
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/core-tick-failed-error.d.ts +31 -0
- package/dist/runtime/core-tick-failed-error.d.ts.map +1 -0
- package/dist/runtime/core-tick-failed-error.js +45 -0
- package/dist/runtime/core-tick-failed-error.js.map +1 -0
- package/dist/runtime/credentialed-transport.d.ts +42 -0
- package/dist/runtime/credentialed-transport.d.ts.map +1 -0
- package/dist/runtime/credentialed-transport.js +178 -0
- package/dist/runtime/credentialed-transport.js.map +1 -0
- package/dist/runtime/db-access-context.d.ts +14 -0
- package/dist/runtime/db-access-context.d.ts.map +1 -0
- package/dist/runtime/db-access-context.js +26 -0
- package/dist/runtime/db-access-context.js.map +1 -0
- package/dist/runtime/db-internal-session.d.ts +7 -0
- package/dist/runtime/db-internal-session.d.ts.map +1 -0
- package/dist/runtime/db-internal-session.js +21 -0
- package/dist/runtime/db-internal-session.js.map +1 -0
- package/dist/runtime/db-replaced-error.d.ts +21 -0
- package/dist/runtime/db-replaced-error.d.ts.map +1 -0
- package/dist/runtime/db-replaced-error.js +22 -0
- package/dist/runtime/db-replaced-error.js.map +1 -0
- package/dist/runtime/db.d.ts +869 -201
- package/dist/runtime/db.d.ts.map +1 -1
- package/dist/runtime/db.js +3491 -758
- package/dist/runtime/db.js.map +1 -1
- package/dist/runtime/default-create-db.d.ts +5 -0
- package/dist/runtime/default-create-db.d.ts.map +1 -0
- package/dist/runtime/default-create-db.js +7 -0
- package/dist/runtime/default-create-db.js.map +1 -0
- package/dist/runtime/default-runtime-source.d.ts +41 -0
- package/dist/runtime/default-runtime-source.d.ts.map +1 -0
- package/dist/runtime/default-runtime-source.js +326 -0
- package/dist/runtime/default-runtime-source.js.map +1 -0
- package/dist/runtime/delete-local-first-store.d.ts +12 -0
- package/dist/runtime/delete-local-first-store.d.ts.map +1 -0
- package/dist/runtime/delete-local-first-store.js +12 -0
- package/dist/runtime/delete-local-first-store.js.map +1 -0
- package/dist/runtime/deterministic-bytes.d.ts +6 -0
- package/dist/runtime/deterministic-bytes.d.ts.map +1 -0
- package/dist/runtime/deterministic-bytes.js +18 -0
- package/dist/runtime/deterministic-bytes.js.map +1 -0
- package/dist/runtime/graceful-shutdown-error.d.ts +17 -0
- package/dist/runtime/graceful-shutdown-error.d.ts.map +1 -0
- package/dist/runtime/graceful-shutdown-error.js +31 -0
- package/dist/runtime/graceful-shutdown-error.js.map +1 -0
- package/dist/runtime/hex.d.ts +21 -0
- package/dist/runtime/hex.d.ts.map +1 -0
- package/dist/runtime/hex.js +62 -0
- package/dist/runtime/hex.js.map +1 -0
- package/dist/runtime/history-relation.d.ts +8 -0
- package/dist/runtime/history-relation.d.ts.map +1 -0
- package/dist/runtime/history-relation.js +44 -0
- package/dist/runtime/history-relation.js.map +1 -0
- package/dist/runtime/in-process-transport.d.ts +18 -0
- package/dist/runtime/in-process-transport.d.ts.map +1 -0
- package/dist/runtime/in-process-transport.js +32 -0
- package/dist/runtime/in-process-transport.js.map +1 -0
- package/dist/runtime/index.d.ts +22 -11
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +14 -10
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/indexeddb-page-store.d.ts +214 -0
- package/dist/runtime/indexeddb-page-store.d.ts.map +1 -0
- package/dist/runtime/indexeddb-page-store.js +848 -0
- package/dist/runtime/indexeddb-page-store.js.map +1 -0
- package/dist/runtime/introspection-fetch.d.ts +18 -0
- package/dist/runtime/introspection-fetch.d.ts.map +1 -0
- package/dist/runtime/introspection-fetch.js +12 -0
- package/dist/runtime/introspection-fetch.js.map +1 -0
- package/dist/runtime/json-schema-evaluate.d.ts +55 -0
- package/dist/runtime/json-schema-evaluate.d.ts.map +1 -0
- package/dist/runtime/json-schema-evaluate.js +946 -0
- package/dist/runtime/json-schema-evaluate.js.map +1 -0
- package/dist/runtime/json-schema-formats.d.ts +14 -0
- package/dist/runtime/json-schema-formats.d.ts.map +1 -0
- package/dist/runtime/json-schema-formats.js +555 -0
- package/dist/runtime/json-schema-formats.js.map +1 -0
- package/dist/runtime/json-schema-json.d.ts +41 -0
- package/dist/runtime/json-schema-json.d.ts.map +1 -0
- package/dist/runtime/json-schema-json.js +309 -0
- package/dist/runtime/json-schema-json.js.map +1 -0
- package/dist/runtime/json-schema-metaschemas.d.ts +1403 -0
- package/dist/runtime/json-schema-metaschemas.d.ts.map +1 -0
- package/dist/runtime/json-schema-metaschemas.js +64 -0
- package/dist/runtime/json-schema-metaschemas.js.map +1 -0
- package/dist/runtime/json-schema-regex.d.ts +32 -0
- package/dist/runtime/json-schema-regex.d.ts.map +1 -0
- package/dist/runtime/json-schema-regex.js +895 -0
- package/dist/runtime/json-schema-regex.js.map +1 -0
- package/dist/runtime/json-schema-validator.d.ts +50 -0
- package/dist/runtime/json-schema-validator.d.ts.map +1 -0
- package/dist/runtime/json-schema-validator.js +404 -0
- package/dist/runtime/json-schema-validator.js.map +1 -0
- package/dist/runtime/json-text.js.map +1 -1
- package/dist/runtime/local-first-token.d.ts +11 -0
- package/dist/runtime/local-first-token.d.ts.map +1 -0
- package/dist/runtime/local-first-token.js +20 -0
- package/dist/runtime/local-first-token.js.map +1 -0
- package/dist/runtime/local-first-unavailable.d.ts +40 -0
- package/dist/runtime/local-first-unavailable.d.ts.map +1 -0
- package/dist/runtime/local-first-unavailable.js +81 -0
- package/dist/runtime/local-first-unavailable.js.map +1 -0
- package/dist/runtime/local-first-upgrade.d.ts +36 -0
- package/dist/runtime/local-first-upgrade.d.ts.map +1 -0
- package/dist/runtime/local-first-upgrade.js +31 -0
- package/dist/runtime/local-first-upgrade.js.map +1 -0
- package/dist/runtime/local-write-observer.d.ts +5 -0
- package/dist/runtime/local-write-observer.d.ts.map +1 -0
- package/dist/runtime/local-write-observer.js +31 -0
- package/dist/runtime/local-write-observer.js.map +1 -0
- package/dist/runtime/metro-setup-error.d.ts +20 -0
- package/dist/runtime/metro-setup-error.d.ts.map +1 -0
- package/dist/runtime/metro-setup-error.js +22 -0
- package/dist/runtime/metro-setup-error.js.map +1 -0
- package/dist/runtime/native-artifact-compatibility.d.ts +12 -0
- package/dist/runtime/native-artifact-compatibility.d.ts.map +1 -0
- package/dist/runtime/native-artifact-compatibility.js +26 -0
- package/dist/runtime/native-artifact-compatibility.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-napi.d.ts +2 -0
- package/dist/runtime/native-artifact-fingerprint-napi.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-napi.js +3 -0
- package/dist/runtime/native-artifact-fingerprint-napi.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.d.ts +2 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.js +3 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprints.d.ts +5 -0
- package/dist/runtime/native-artifact-fingerprints.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprints.js +7 -0
- package/dist/runtime/native-artifact-fingerprints.js.map +1 -0
- package/dist/runtime/native-artifact-mismatch-error.d.ts +25 -0
- package/dist/runtime/native-artifact-mismatch-error.d.ts.map +1 -0
- package/dist/runtime/native-artifact-mismatch-error.js +34 -0
- package/dist/runtime/native-artifact-mismatch-error.js.map +1 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts +23 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.js +45 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.js.map +1 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts +15 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts.map +1 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.js +64 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.js.map +1 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts +34 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts.map +1 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.js +61 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.js.map +1 -0
- package/dist/runtime/native-runtime/browser-follower-connection.d.ts +109 -0
- package/dist/runtime/native-runtime/browser-follower-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-follower-connection.js +558 -0
- package/dist/runtime/native-runtime/browser-follower-connection.js.map +1 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts +130 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.js +988 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.js.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.d.ts +527 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.js +296 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.js.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-transport.d.ts +56 -0
- package/dist/runtime/native-runtime/browser-worker-transport.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-transport.js +305 -0
- package/dist/runtime/native-runtime/browser-worker-transport.js.map +1 -0
- package/dist/runtime/native-runtime/exact-integer.d.ts +7 -0
- package/dist/runtime/native-runtime/exact-integer.d.ts.map +1 -0
- package/dist/runtime/native-runtime/exact-integer.js +18 -0
- package/dist/runtime/native-runtime/exact-integer.js.map +1 -0
- package/dist/runtime/native-runtime/http-stream-socket.d.ts +103 -0
- package/dist/runtime/native-runtime/http-stream-socket.d.ts.map +1 -0
- package/dist/runtime/native-runtime/http-stream-socket.js +554 -0
- package/dist/runtime/native-runtime/http-stream-socket.js.map +1 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts +4 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts.map +1 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.js +33 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.js.map +1 -0
- package/dist/runtime/native-runtime/native-codec.d.ts +172 -0
- package/dist/runtime/native-runtime/native-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-codec.js +629 -0
- package/dist/runtime/native-runtime/native-codec.js.map +1 -0
- package/dist/runtime/native-runtime/native-error-code.d.ts +39 -0
- package/dist/runtime/native-runtime/native-error-code.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-error-code.js +64 -0
- package/dist/runtime/native-runtime/native-error-code.js.map +1 -0
- package/dist/runtime/native-runtime/native-row-codec.d.ts +161 -0
- package/dist/runtime/native-runtime/native-row-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-row-codec.js +903 -0
- package/dist/runtime/native-runtime/native-row-codec.js.map +1 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts +15 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.js +25 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.js.map +1 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.d.ts +913 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.js +5999 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.js.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts +17 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js +4 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts +19 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.js +297 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.js.map +1 -0
- package/dist/runtime/native-runtime/row-values-transport.d.ts +2 -0
- package/dist/runtime/native-runtime/row-values-transport.d.ts.map +1 -0
- package/dist/runtime/native-runtime/row-values-transport.js +21 -0
- package/dist/runtime/native-runtime/row-values-transport.js.map +1 -0
- package/dist/runtime/native-runtime/schema-codec.d.ts +10 -0
- package/dist/runtime/native-runtime/schema-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/schema-codec.js +13 -0
- package/dist/runtime/native-runtime/schema-codec.js.map +1 -0
- package/dist/runtime/native-runtime/session-renewal-wire.d.ts +48 -0
- package/dist/runtime/native-runtime/session-renewal-wire.d.ts.map +1 -0
- package/dist/runtime/native-runtime/session-renewal-wire.js +107 -0
- package/dist/runtime/native-runtime/session-renewal-wire.js.map +1 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts +34 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts.map +1 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.js +146 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.js.map +1 -0
- package/dist/runtime/native-runtime/websocket.d.ts +327 -0
- package/dist/runtime/native-runtime/websocket.d.ts.map +1 -0
- package/dist/runtime/native-runtime/websocket.js +1112 -0
- package/dist/runtime/native-runtime/websocket.js.map +1 -0
- package/dist/runtime/newer-build-reload.d.ts +30 -0
- package/dist/runtime/newer-build-reload.d.ts.map +1 -0
- package/dist/runtime/newer-build-reload.js +59 -0
- package/dist/runtime/newer-build-reload.js.map +1 -0
- package/dist/runtime/page-cache.d.ts +44 -0
- package/dist/runtime/page-cache.d.ts.map +1 -0
- package/dist/runtime/page-cache.js +104 -0
- package/dist/runtime/page-cache.js.map +1 -0
- package/dist/runtime/page-handle.d.ts +83 -0
- package/dist/runtime/page-handle.d.ts.map +1 -0
- package/dist/runtime/page-handle.js +151 -0
- package/dist/runtime/page-handle.js.map +1 -0
- package/dist/runtime/passkey-backup.d.ts +3 -0
- package/dist/runtime/passkey-backup.d.ts.map +1 -0
- package/dist/runtime/passkey-backup.js +2 -0
- package/dist/runtime/passkey-backup.js.map +1 -0
- package/dist/runtime/platform-url.d.ts +10 -0
- package/dist/runtime/platform-url.d.ts.map +1 -0
- package/dist/runtime/platform-url.js +3 -0
- package/dist/runtime/platform-url.js.map +1 -0
- package/dist/runtime/platform-url.native.d.ts +6 -0
- package/dist/runtime/platform-url.native.d.ts.map +1 -0
- package/dist/runtime/platform-url.native.js +38 -0
- package/dist/runtime/platform-url.native.js.map +1 -0
- package/dist/runtime/query-adapter.d.ts +7 -15
- package/dist/runtime/query-adapter.d.ts.map +1 -1
- package/dist/runtime/query-adapter.js +477 -185
- package/dist/runtime/query-adapter.js.map +1 -1
- package/dist/runtime/query-builder-shape.d.ts +75 -0
- package/dist/runtime/query-builder-shape.d.ts.map +1 -0
- package/dist/runtime/query-builder-shape.js +225 -0
- package/dist/runtime/query-builder-shape.js.map +1 -0
- package/dist/runtime/query-column-name.d.ts +3 -0
- package/dist/runtime/query-column-name.d.ts.map +1 -0
- package/dist/runtime/query-column-name.js +10 -0
- package/dist/runtime/query-column-name.js.map +1 -0
- package/dist/runtime/query-output-table.d.ts +5 -0
- package/dist/runtime/query-output-table.d.ts.map +1 -0
- package/dist/runtime/query-output-table.js +30 -0
- package/dist/runtime/query-output-table.js.map +1 -0
- package/dist/runtime/recovery-phrase.d.ts +3 -0
- package/dist/runtime/recovery-phrase.d.ts.map +1 -0
- package/dist/runtime/recovery-phrase.js +2 -0
- package/dist/runtime/recovery-phrase.js.map +1 -0
- package/dist/runtime/remote-link-state.d.ts +20 -0
- package/dist/runtime/remote-link-state.d.ts.map +1 -0
- package/dist/runtime/remote-link-state.js +5 -0
- package/dist/runtime/remote-link-state.js.map +1 -0
- package/dist/runtime/removed-provider-props.d.ts +17 -0
- package/dist/runtime/removed-provider-props.d.ts.map +1 -0
- package/dist/runtime/removed-provider-props.js +16 -0
- package/dist/runtime/removed-provider-props.js.map +1 -0
- package/dist/runtime/row-transformer.d.ts +17 -3
- package/dist/runtime/row-transformer.d.ts.map +1 -1
- package/dist/runtime/row-transformer.js +182 -39
- package/dist/runtime/row-transformer.js.map +1 -1
- package/dist/runtime/run-cleanup-steps.d.ts +5 -0
- package/dist/runtime/run-cleanup-steps.d.ts.map +1 -0
- package/dist/runtime/run-cleanup-steps.js +19 -0
- package/dist/runtime/run-cleanup-steps.js.map +1 -0
- package/dist/runtime/runtime-closed-error.d.ts +9 -0
- package/dist/runtime/runtime-closed-error.d.ts.map +1 -0
- package/dist/runtime/runtime-closed-error.js +12 -0
- package/dist/runtime/runtime-closed-error.js.map +1 -0
- package/dist/runtime/runtime-config.d.ts +13 -0
- package/dist/runtime/runtime-config.d.ts.map +1 -0
- package/dist/runtime/runtime-config.js +115 -0
- package/dist/runtime/runtime-config.js.map +1 -0
- package/dist/runtime/runtime-entropy.d.ts +14 -0
- package/dist/runtime/runtime-entropy.d.ts.map +1 -0
- package/dist/runtime/runtime-entropy.js +43 -0
- package/dist/runtime/runtime-entropy.js.map +1 -0
- package/dist/runtime/runtime-source.d.ts +206 -0
- package/dist/runtime/runtime-source.d.ts.map +1 -0
- package/dist/runtime/runtime-source.js +64 -0
- package/dist/runtime/runtime-source.js.map +1 -0
- package/dist/runtime/schema-metadata.d.ts +22 -0
- package/dist/runtime/schema-metadata.d.ts.map +1 -0
- package/dist/runtime/schema-metadata.js +70 -0
- package/dist/runtime/schema-metadata.js.map +1 -0
- package/dist/runtime/select-projection.d.ts +5 -0
- package/dist/runtime/select-projection.d.ts.map +1 -0
- package/dist/runtime/select-projection.js +47 -0
- package/dist/runtime/select-projection.js.map +1 -0
- package/dist/runtime/snapshot-ref.d.ts +24 -0
- package/dist/runtime/snapshot-ref.d.ts.map +1 -0
- package/dist/runtime/snapshot-ref.js +43 -0
- package/dist/runtime/snapshot-ref.js.map +1 -0
- package/dist/runtime/store-held-by-another-tab-error.d.ts +53 -0
- package/dist/runtime/store-held-by-another-tab-error.d.ts.map +1 -0
- package/dist/runtime/store-held-by-another-tab-error.js +55 -0
- package/dist/runtime/store-held-by-another-tab-error.js.map +1 -0
- package/dist/runtime/streaming-source.d.ts +4 -0
- package/dist/runtime/streaming-source.d.ts.map +1 -0
- package/dist/runtime/streaming-source.js +53 -0
- package/dist/runtime/streaming-source.js.map +1 -0
- package/dist/runtime/structural-values.d.ts +6 -0
- package/dist/runtime/structural-values.d.ts.map +1 -0
- package/dist/runtime/structural-values.js +51 -0
- package/dist/runtime/structural-values.js.map +1 -0
- package/dist/runtime/subscription-manager.d.ts +103 -14
- package/dist/runtime/subscription-manager.d.ts.map +1 -1
- package/dist/runtime/subscription-manager.js +1051 -25
- package/dist/runtime/subscription-manager.js.map +1 -1
- package/dist/runtime/sync-status.d.ts +178 -0
- package/dist/runtime/sync-status.d.ts.map +1 -0
- package/dist/runtime/sync-status.js +163 -0
- package/dist/runtime/sync-status.js.map +1 -0
- package/dist/runtime/sync-telemetry.d.ts +35 -0
- package/dist/runtime/sync-telemetry.d.ts.map +1 -0
- package/dist/runtime/sync-telemetry.js +354 -0
- package/dist/runtime/sync-telemetry.js.map +1 -0
- package/dist/runtime/system-identity.d.ts +5 -0
- package/dist/runtime/system-identity.d.ts.map +1 -0
- package/dist/runtime/system-identity.js +10 -0
- package/dist/runtime/system-identity.js.map +1 -0
- package/dist/runtime/telemetry-env.d.ts +2 -0
- package/dist/runtime/telemetry-env.d.ts.map +1 -0
- package/dist/runtime/telemetry-env.js +16 -0
- package/dist/runtime/telemetry-env.js.map +1 -0
- package/dist/runtime/telemetry-env.native.d.ts +3 -0
- package/dist/runtime/telemetry-env.native.d.ts.map +1 -0
- package/dist/runtime/telemetry-env.native.js +7 -0
- package/dist/runtime/telemetry-env.native.js.map +1 -0
- package/dist/runtime/text-anchors.d.ts +58 -0
- package/dist/runtime/text-anchors.d.ts.map +1 -0
- package/dist/runtime/text-anchors.js +9 -0
- package/dist/runtime/text-anchors.js.map +1 -0
- package/dist/runtime/unsupported-storage-codecs-error.d.ts +53 -0
- package/dist/runtime/unsupported-storage-codecs-error.d.ts.map +1 -0
- package/dist/runtime/unsupported-storage-codecs-error.js +74 -0
- package/dist/runtime/unsupported-storage-codecs-error.js.map +1 -0
- package/dist/runtime/url.d.ts +32 -0
- package/dist/runtime/url.d.ts.map +1 -0
- package/dist/runtime/url.js +96 -0
- package/dist/runtime/url.js.map +1 -0
- package/dist/runtime/utf8.d.ts +10 -0
- package/dist/runtime/utf8.d.ts.map +1 -0
- package/dist/runtime/utf8.js +93 -0
- package/dist/runtime/utf8.js.map +1 -0
- package/dist/runtime/util.d.ts +18 -0
- package/dist/runtime/util.d.ts.map +1 -0
- package/dist/runtime/util.js +59 -0
- package/dist/runtime/util.js.map +1 -0
- package/dist/runtime/value-converter.d.ts +9 -17
- package/dist/runtime/value-converter.d.ts.map +1 -1
- package/dist/runtime/value-converter.js +157 -43
- package/dist/runtime/value-converter.js.map +1 -1
- package/dist/runtime/wasm-loader.d.ts +6 -0
- package/dist/runtime/wasm-loader.d.ts.map +1 -0
- package/dist/runtime/wasm-loader.js +127 -0
- package/dist/runtime/wasm-loader.js.map +1 -0
- package/dist/runtime/write-preparation.d.ts +24 -0
- package/dist/runtime/write-preparation.d.ts.map +1 -0
- package/dist/runtime/write-preparation.js +63 -0
- package/dist/runtime/write-preparation.js.map +1 -0
- package/dist/runtime/write-row.d.ts +8 -0
- package/dist/runtime/write-row.d.ts.map +1 -0
- package/dist/runtime/write-row.js +17 -0
- package/dist/runtime/write-row.js.map +1 -0
- package/dist/schema-builders.d.ts +55 -0
- package/dist/schema-builders.d.ts.map +1 -0
- package/dist/schema-builders.js +33 -0
- package/dist/schema-builders.js.map +1 -0
- package/dist/schema-dsl/define-schema.d.ts +32 -0
- package/dist/schema-dsl/define-schema.d.ts.map +1 -0
- package/dist/schema-dsl/define-schema.js +80 -0
- package/dist/schema-dsl/define-schema.js.map +1 -0
- package/dist/schema-dsl/readable-app.d.ts +30 -0
- package/dist/schema-dsl/readable-app.d.ts.map +1 -0
- package/dist/schema-dsl/readable-app.js +139 -0
- package/dist/schema-dsl/readable-app.js.map +1 -0
- package/dist/schema-dsl/table.d.ts +101 -0
- package/dist/schema-dsl/table.d.ts.map +1 -0
- package/dist/schema-dsl/table.js +153 -0
- package/dist/schema-dsl/table.js.map +1 -0
- package/dist/schema-errors.d.ts +6 -0
- package/dist/schema-errors.d.ts.map +1 -0
- package/dist/schema-errors.js +6 -0
- package/dist/schema-errors.js.map +1 -0
- package/dist/schema-loader.d.ts +16 -0
- package/dist/schema-loader.d.ts.map +1 -0
- package/dist/schema-loader.js +108 -0
- package/dist/schema-loader.js.map +1 -0
- package/dist/schema-name.d.ts +2 -0
- package/dist/schema-name.d.ts.map +1 -0
- package/dist/schema-name.js +19 -0
- package/dist/schema-name.js.map +1 -0
- package/dist/schema-namespace.d.ts +7 -0
- package/dist/schema-namespace.d.ts.map +1 -0
- package/dist/schema-namespace.js +7 -0
- package/dist/schema-namespace.js.map +1 -0
- package/dist/schema-permissions.d.ts +12 -0
- package/dist/schema-permissions.d.ts.map +1 -0
- package/dist/schema-permissions.js +17 -0
- package/dist/schema-permissions.js.map +1 -0
- package/dist/schema-source.d.ts +11 -0
- package/dist/schema-source.d.ts.map +1 -0
- package/dist/schema-source.js +53 -0
- package/dist/schema-source.js.map +1 -0
- package/dist/schema.d.ts +95 -38
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -16
- package/dist/schema.js.map +1 -1
- package/dist/session/backend-watch.d.ts +186 -0
- package/dist/session/backend-watch.d.ts.map +1 -0
- package/dist/session/backend-watch.js +698 -0
- package/dist/session/backend-watch.js.map +1 -0
- package/dist/session/config-options.d.ts +15 -0
- package/dist/session/config-options.d.ts.map +1 -0
- package/dist/session/config-options.js +55 -0
- package/dist/session/config-options.js.map +1 -0
- package/dist/session/consumer.d.ts +3 -0
- package/dist/session/consumer.d.ts.map +1 -0
- package/dist/session/consumer.js +3 -0
- package/dist/session/consumer.js.map +1 -0
- package/dist/session/create-jazz-session.d.ts +123 -0
- package/dist/session/create-jazz-session.d.ts.map +1 -0
- package/dist/session/create-jazz-session.js +542 -0
- package/dist/session/create-jazz-session.js.map +1 -0
- package/dist/session/deprecated-session-hook.d.ts +8 -0
- package/dist/session/deprecated-session-hook.d.ts.map +1 -0
- package/dist/session/deprecated-session-hook.js +28 -0
- package/dist/session/deprecated-session-hook.js.map +1 -0
- package/dist/session/follow-user.d.ts +72 -0
- package/dist/session/follow-user.d.ts.map +1 -0
- package/dist/session/follow-user.js +147 -0
- package/dist/session/follow-user.js.map +1 -0
- package/dist/session/jazz-session.d.ts +234 -0
- package/dist/session/jazz-session.d.ts.map +1 -0
- package/dist/session/jazz-session.js +528 -0
- package/dist/session/jazz-session.js.map +1 -0
- package/dist/session/native-backend-watch.d.ts +4 -0
- package/dist/session/native-backend-watch.d.ts.map +1 -0
- package/dist/session/native-backend-watch.js +14 -0
- package/dist/session/native-backend-watch.js.map +1 -0
- package/dist/session/no-kept-device-account-error.d.ts +6 -0
- package/dist/session/no-kept-device-account-error.d.ts.map +1 -0
- package/dist/session/no-kept-device-account-error.js +8 -0
- package/dist/session/no-kept-device-account-error.js.map +1 -0
- package/dist/session/replica-ledger.d.ts +164 -0
- package/dist/session/replica-ledger.d.ts.map +1 -0
- package/dist/session/replica-ledger.js +496 -0
- package/dist/session/replica-ledger.js.map +1 -0
- package/dist/session/state.d.ts +135 -0
- package/dist/session/state.d.ts.map +1 -0
- package/dist/session/state.js +535 -0
- package/dist/session/state.js.map +1 -0
- package/dist/shared/index.d.ts +20 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +17 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.d.ts +13 -0
- package/dist/solid/create-solid-jazz-client-internal.d.ts.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.js +82 -0
- package/dist/solid/create-solid-jazz-client-internal.js.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.ssr.js +101 -0
- package/dist/solid/create-solid-jazz-client-internal.ssr.js.map +1 -0
- package/dist/solid/create-solid-jazz-client.d.ts +24 -0
- package/dist/solid/create-solid-jazz-client.d.ts.map +1 -0
- package/dist/solid/create-solid-jazz-client.js +42 -0
- package/dist/solid/create-solid-jazz-client.js.map +1 -0
- package/dist/solid/create-solid-jazz-client.ssr.js +45 -0
- package/dist/solid/create-solid-jazz-client.ssr.js.map +1 -0
- package/dist/solid/index.d.ts +14 -0
- package/dist/solid/index.d.ts.map +1 -0
- package/dist/solid/index.js +10 -0
- package/dist/solid/index.ssr.js +10 -0
- package/dist/solid/provider.d.ts +36 -0
- package/dist/solid/provider.d.ts.map +1 -0
- package/dist/solid/provider.js +54 -0
- package/dist/solid/provider.js.map +1 -0
- package/dist/solid/provider.ssr.js +58 -0
- package/dist/solid/provider.ssr.js.map +1 -0
- package/dist/solid/session-context.d.ts +14 -0
- package/dist/solid/session-context.d.ts.map +1 -0
- package/dist/solid/session-context.js +6 -0
- package/dist/solid/session-context.js.map +1 -0
- package/dist/solid/session-context.ssr.js +10 -0
- package/dist/solid/session-context.ssr.js.map +1 -0
- package/dist/solid/session.d.ts +55 -0
- package/dist/solid/session.d.ts.map +1 -0
- package/dist/solid/session.js +130 -0
- package/dist/solid/session.js.map +1 -0
- package/dist/solid/session.ssr.js +156 -0
- package/dist/solid/session.ssr.js.map +1 -0
- package/dist/solid/solid-jazz-client-store.d.ts +11 -0
- package/dist/solid/solid-jazz-client-store.d.ts.map +1 -0
- package/dist/solid/solid-jazz-client-store.js +38 -0
- package/dist/solid/solid-jazz-client-store.js.map +1 -0
- package/dist/solid/solid-jazz-client-store.ssr.js +39 -0
- package/dist/solid/solid-jazz-client-store.ssr.js.map +1 -0
- package/dist/solid/use-all.d.ts +18 -0
- package/dist/solid/use-all.d.ts.map +1 -0
- package/dist/solid/use-all.js +71 -0
- package/dist/solid/use-all.js.map +1 -0
- package/dist/solid/use-all.ssr.js +84 -0
- package/dist/solid/use-all.ssr.js.map +1 -0
- package/dist/solid/use-one.d.ts +18 -0
- package/dist/solid/use-one.d.ts.map +1 -0
- package/dist/solid/use-one.js +27 -0
- package/dist/solid/use-one.js.map +1 -0
- package/dist/solid/use-one.ssr.js +27 -0
- package/dist/solid/use-one.ssr.js.map +1 -0
- package/dist/solid/use-sync-status.d.ts +8 -0
- package/dist/solid/use-sync-status.d.ts.map +1 -0
- package/dist/solid/use-sync-status.js +13 -0
- package/dist/solid/use-sync-status.js.map +1 -0
- package/dist/solid/use-sync-status.ssr.js +20 -0
- package/dist/solid/use-sync-status.ssr.js.map +1 -0
- package/dist/subscription-store-internal.d.ts +11 -0
- package/dist/subscription-store-internal.d.ts.map +1 -0
- package/dist/subscription-store-internal.js +18 -0
- package/dist/subscription-store-internal.js.map +1 -0
- package/dist/subscriptions-orchestrator.d.ts +93 -13
- package/dist/subscriptions-orchestrator.d.ts.map +1 -1
- package/dist/subscriptions-orchestrator.js +392 -75
- package/dist/subscriptions-orchestrator.js.map +1 -1
- package/dist/svelte/JazzProvider.svelte +110 -0
- package/dist/svelte/JazzProvider.svelte.d.ts +24 -0
- package/dist/svelte/JazzProvider.svelte.d.ts.map +1 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte +83 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts +15 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts.map +1 -0
- package/dist/svelte/JazzSvelteProvider.svelte +160 -28
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts +4 -3
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts.map +1 -1
- package/dist/svelte/context.svelte.d.ts +30 -3
- package/dist/svelte/context.svelte.d.ts.map +1 -1
- package/dist/svelte/context.svelte.js +37 -3
- package/dist/svelte/create-jazz-client.d.ts +2 -8
- package/dist/svelte/create-jazz-client.d.ts.map +1 -1
- package/dist/svelte/create-jazz-client.js +1 -17
- package/dist/svelte/index.d.ts +14 -6
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +11 -6
- package/dist/svelte/query-subscription.svelte.d.ts +60 -0
- package/dist/svelte/query-subscription.svelte.d.ts.map +1 -0
- package/dist/svelte/query-subscription.svelte.js +135 -0
- package/dist/svelte/session-state.d.ts +27 -0
- package/dist/svelte/session-state.d.ts.map +1 -0
- package/dist/svelte/session-state.js +49 -0
- package/dist/svelte/sync-status.d.ts +11 -0
- package/dist/svelte/sync-status.d.ts.map +1 -0
- package/dist/svelte/sync-status.js +15 -0
- package/dist/testing/fixtures/with-bigint/schema.d.ts +18 -0
- package/dist/testing/fixtures/with-bigint/schema.d.ts.map +1 -0
- package/dist/testing/fixtures/with-bigint/schema.js +15 -0
- package/dist/testing/fixtures/with-bigint/schema.js.map +1 -0
- package/dist/testing/index.d.ts +6 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +5 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/policy-test-app.d.ts +129 -0
- package/dist/testing/policy-test-app.d.ts.map +1 -0
- package/dist/testing/policy-test-app.js +229 -0
- package/dist/testing/policy-test-app.js.map +1 -0
- package/dist/testing/test-app.d.ts +272 -0
- package/dist/testing/test-app.d.ts.map +1 -0
- package/dist/testing/test-app.js +62 -0
- package/dist/testing/test-app.js.map +1 -0
- package/dist/testing/test-jazz.d.ts +119 -0
- package/dist/testing/test-jazz.d.ts.map +1 -0
- package/dist/testing/test-jazz.js +162 -0
- package/dist/testing/test-jazz.js.map +1 -0
- package/dist/testing/test-jwt-issuer.d.ts +19 -0
- package/dist/testing/test-jwt-issuer.d.ts.map +1 -0
- package/dist/testing/test-jwt-issuer.js +40 -0
- package/dist/testing/test-jwt-issuer.js.map +1 -0
- package/dist/text-field/index.d.ts +40 -0
- package/dist/text-field/index.d.ts.map +1 -0
- package/dist/text-field/index.js +129 -0
- package/dist/text-field/index.js.map +1 -0
- package/dist/thin/index.d.ts +81 -0
- package/dist/thin/index.d.ts.map +1 -0
- package/dist/thin/index.js +221 -0
- package/dist/thin/index.js.map +1 -0
- package/dist/thin/self-signed-token.d.ts +13 -0
- package/dist/thin/self-signed-token.d.ts.map +1 -0
- package/dist/thin/self-signed-token.js +100 -0
- package/dist/thin/self-signed-token.js.map +1 -0
- package/dist/thin/thin-runtime-source.d.ts +19 -0
- package/dist/thin/thin-runtime-source.d.ts.map +1 -0
- package/dist/thin/thin-runtime-source.js +66 -0
- package/dist/thin/thin-runtime-source.js.map +1 -0
- package/dist/thin/thin-runtime.d.ts +294 -0
- package/dist/thin/thin-runtime.d.ts.map +1 -0
- package/dist/thin/thin-runtime.js +1492 -0
- package/dist/thin/thin-runtime.js.map +1 -0
- package/dist/thin/wire.d.ts +160 -0
- package/dist/thin/wire.d.ts.map +1 -0
- package/dist/thin/wire.js +304 -0
- package/dist/thin/wire.js.map +1 -0
- package/dist/typed-app.d.ts +644 -0
- package/dist/typed-app.d.ts.map +1 -0
- package/dist/typed-app.js +549 -0
- package/dist/typed-app.js.map +1 -0
- package/dist/upgrade/aliases.d.ts +25 -0
- package/dist/upgrade/aliases.d.ts.map +1 -0
- package/dist/upgrade/aliases.js +80 -0
- package/dist/upgrade/aliases.js.map +1 -0
- package/dist/upgrade/app-json.d.ts +32 -0
- package/dist/upgrade/app-json.d.ts.map +1 -0
- package/dist/upgrade/app-json.js +145 -0
- package/dist/upgrade/app-json.js.map +1 -0
- package/dist/upgrade/constants.d.ts +25 -0
- package/dist/upgrade/constants.d.ts.map +1 -0
- package/dist/upgrade/constants.js +136 -0
- package/dist/upgrade/constants.js.map +1 -0
- package/dist/upgrade/edits.d.ts +10 -0
- package/dist/upgrade/edits.d.ts.map +1 -0
- package/dist/upgrade/edits.js +21 -0
- package/dist/upgrade/edits.js.map +1 -0
- package/dist/upgrade/errors.d.ts +12 -0
- package/dist/upgrade/errors.d.ts.map +1 -0
- package/dist/upgrade/errors.js +18 -0
- package/dist/upgrade/errors.js.map +1 -0
- package/dist/upgrade/extras.d.ts +42 -0
- package/dist/upgrade/extras.d.ts.map +1 -0
- package/dist/upgrade/extras.js +487 -0
- package/dist/upgrade/extras.js.map +1 -0
- package/dist/upgrade/fresh.d.ts +36 -0
- package/dist/upgrade/fresh.d.ts.map +1 -0
- package/dist/upgrade/fresh.js +154 -0
- package/dist/upgrade/fresh.js.map +1 -0
- package/dist/upgrade/index.d.ts +79 -0
- package/dist/upgrade/index.d.ts.map +1 -0
- package/dist/upgrade/index.js +806 -0
- package/dist/upgrade/index.js.map +1 -0
- package/dist/upgrade/json-only.d.ts +24 -0
- package/dist/upgrade/json-only.d.ts.map +1 -0
- package/dist/upgrade/json-only.js +124 -0
- package/dist/upgrade/json-only.js.map +1 -0
- package/dist/upgrade/names.d.ts +29 -0
- package/dist/upgrade/names.d.ts.map +1 -0
- package/dist/upgrade/names.js +105 -0
- package/dist/upgrade/names.js.map +1 -0
- package/dist/upgrade/payload-enums.d.ts +18 -0
- package/dist/upgrade/payload-enums.d.ts.map +1 -0
- package/dist/upgrade/payload-enums.js +52 -0
- package/dist/upgrade/payload-enums.js.map +1 -0
- package/dist/upgrade/permissions-check.d.ts +10 -0
- package/dist/upgrade/permissions-check.d.ts.map +1 -0
- package/dist/upgrade/permissions-check.js +85 -0
- package/dist/upgrade/permissions-check.js.map +1 -0
- package/dist/upgrade/program.d.ts +18 -0
- package/dist/upgrade/program.d.ts.map +1 -0
- package/dist/upgrade/program.js +56 -0
- package/dist/upgrade/program.js.map +1 -0
- package/dist/upgrade/project.d.ts +56 -0
- package/dist/upgrade/project.d.ts.map +1 -0
- package/dist/upgrade/project.js +254 -0
- package/dist/upgrade/project.js.map +1 -0
- package/dist/upgrade/rewrite.d.ts +34 -0
- package/dist/upgrade/rewrite.d.ts.map +1 -0
- package/dist/upgrade/rewrite.js +500 -0
- package/dist/upgrade/rewrite.js.map +1 -0
- package/dist/upgrade/schema-ts.d.ts +59 -0
- package/dist/upgrade/schema-ts.d.ts.map +1 -0
- package/dist/upgrade/schema-ts.js +582 -0
- package/dist/upgrade/schema-ts.js.map +1 -0
- package/dist/upgrade/snapshot.d.ts +11 -0
- package/dist/upgrade/snapshot.d.ts.map +1 -0
- package/dist/upgrade/snapshot.js +90 -0
- package/dist/upgrade/snapshot.js.map +1 -0
- package/dist/upgrade/upgrade-test-helpers.d.ts +12 -0
- package/dist/upgrade/upgrade-test-helpers.d.ts.map +1 -0
- package/dist/upgrade/upgrade-test-helpers.js +72 -0
- package/dist/upgrade/upgrade-test-helpers.js.map +1 -0
- package/dist/vue/create-jazz-client.d.ts +3 -0
- package/dist/vue/create-jazz-client.d.ts.map +1 -0
- package/dist/vue/create-jazz-client.js +2 -0
- package/dist/vue/create-jazz-client.js.map +1 -0
- package/dist/vue/index.d.ts +14 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/index.js +11 -0
- package/dist/vue/index.js.map +1 -0
- package/dist/vue/provider.d.ts +83 -0
- package/dist/vue/provider.d.ts.map +1 -0
- package/dist/vue/provider.js +231 -0
- package/dist/vue/provider.js.map +1 -0
- package/dist/vue/session-key.d.ts +15 -0
- package/dist/vue/session-key.d.ts.map +1 -0
- package/dist/vue/session-key.js +7 -0
- package/dist/vue/session-key.js.map +1 -0
- package/dist/vue/session.d.ts +40 -0
- package/dist/vue/session.d.ts.map +1 -0
- package/dist/vue/session.js +112 -0
- package/dist/vue/session.js.map +1 -0
- package/dist/vue/use-all.d.ts +61 -0
- package/dist/vue/use-all.d.ts.map +1 -0
- package/dist/vue/use-all.js +104 -0
- package/dist/vue/use-all.js.map +1 -0
- package/dist/vue/use-one.d.ts +24 -0
- package/dist/vue/use-one.d.ts.map +1 -0
- package/dist/vue/use-one.js +17 -0
- package/dist/vue/use-one.js.map +1 -0
- package/dist/vue/use-sync-status.d.ts +9 -0
- package/dist/vue/use-sync-status.d.ts.map +1 -0
- package/dist/vue/use-sync-status.js +16 -0
- package/dist/vue/use-sync-status.js.map +1 -0
- package/dist/web/create-jazz-client.d.ts +12 -0
- package/dist/web/create-jazz-client.d.ts.map +1 -0
- package/dist/web/create-jazz-client.js +35 -0
- package/dist/web/create-jazz-client.js.map +1 -0
- package/dist/web/lazy-local-first.d.ts +8 -0
- package/dist/web/lazy-local-first.d.ts.map +1 -0
- package/dist/web/lazy-local-first.js +13 -0
- package/dist/web/lazy-local-first.js.map +1 -0
- package/dist/web/registered-jazz-client.d.ts +15 -0
- package/dist/web/registered-jazz-client.d.ts.map +1 -0
- package/dist/web/registered-jazz-client.js +35 -0
- package/dist/web/registered-jazz-client.js.map +1 -0
- package/dist/where-operators.d.ts +13 -0
- package/dist/where-operators.d.ts.map +1 -0
- package/dist/where-operators.js +66 -0
- package/dist/where-operators.js.map +1 -0
- package/dist/window-client-storage.d.ts +7 -0
- package/dist/window-client-storage.d.ts.map +1 -0
- package/dist/window-client-storage.js +27 -0
- package/dist/window-client-storage.js.map +1 -0
- package/dist/worker/jazz-broker-worker-core.d.ts +34 -0
- package/dist/worker/jazz-broker-worker-core.d.ts.map +1 -0
- package/dist/worker/jazz-broker-worker-core.js +2241 -0
- package/dist/worker/jazz-broker-worker-core.js.map +1 -0
- package/dist/worker/jazz-broker-worker.d.ts +3 -0
- package/dist/worker/jazz-broker-worker.d.ts.map +1 -0
- package/dist/worker/jazz-broker-worker.js +5 -0
- package/dist/worker/jazz_wasm_bg.wasm +0 -0
- package/dist/worker/mutation-error-delivery.d.ts +8 -0
- package/dist/worker/mutation-error-delivery.d.ts.map +1 -0
- package/dist/worker/mutation-error-delivery.js +10 -0
- package/dist/worker/mutation-error-delivery.js.map +1 -0
- package/dist/worker/runtime-admission.d.ts +34 -0
- package/dist/worker/runtime-admission.d.ts.map +1 -0
- package/dist/worker/runtime-admission.js +60 -0
- package/dist/worker/runtime-admission.js.map +1 -0
- package/dist/worker/vite-dev-broker.d.ts +2 -0
- package/dist/worker/vite-dev-broker.d.ts.map +1 -0
- package/dist/worker/vite-dev-broker.js +8 -0
- package/dist/worker/vite-dev-broker.js.map +1 -0
- package/package.json +301 -35
- package/bin/native/.gitkeep +0 -0
- package/bin/native/jazz-tools-darwin-arm64 +0 -0
- package/bin/native/jazz-tools-darwin-x64 +0 -0
- package/bin/native/jazz-tools-linux-arm64 +0 -0
- package/bin/native/jazz-tools-linux-x64 +0 -0
- package/bin/native/jazz-tools-windows-x64.exe +0 -0
- package/dist/cli.test.d.ts +0 -2
- package/dist/cli.test.d.ts.map +0 -1
- package/dist/cli.test.js +0 -154
- package/dist/cli.test.js.map +0 -1
- package/dist/codegen/codegen.test.d.ts +0 -2
- package/dist/codegen/codegen.test.d.ts.map +0 -1
- package/dist/codegen/codegen.test.js +0 -925
- package/dist/codegen/codegen.test.js.map +0 -1
- package/dist/codegen/index.d.ts +0 -18
- package/dist/codegen/index.d.ts.map +0 -1
- package/dist/codegen/index.js +0 -22
- package/dist/codegen/index.js.map +0 -1
- package/dist/codegen/query-builder-generator.d.ts +0 -26
- package/dist/codegen/query-builder-generator.d.ts.map +0 -1
- package/dist/codegen/query-builder-generator.js +0 -334
- package/dist/codegen/query-builder-generator.js.map +0 -1
- package/dist/codegen/schema-reader.d.ts +0 -12
- package/dist/codegen/schema-reader.d.ts.map +0 -1
- package/dist/codegen/schema-reader.js +0 -195
- package/dist/codegen/schema-reader.js.map +0 -1
- package/dist/codegen/type-generator.d.ts +0 -29
- package/dist/codegen/type-generator.d.ts.map +0 -1
- package/dist/codegen/type-generator.js +0 -296
- package/dist/codegen/type-generator.js.map +0 -1
- package/dist/dsl.test.d.ts +0 -2
- package/dist/dsl.test.d.ts.map +0 -1
- package/dist/dsl.test.js +0 -51
- package/dist/dsl.test.js.map +0 -1
- package/dist/permissions/index.test.d.ts +0 -2
- package/dist/permissions/index.test.d.ts.map +0 -1
- package/dist/permissions/index.test.js +0 -830
- package/dist/permissions/index.test.js.map +0 -1
- package/dist/permissions/type-inference.test.d.ts +0 -2
- package/dist/permissions/type-inference.test.d.ts.map +0 -1
- package/dist/permissions/type-inference.test.js +0 -151
- package/dist/permissions/type-inference.test.js.map +0 -1
- package/dist/react/create-jazz-client.integration.test.d.ts +0 -2
- package/dist/react/create-jazz-client.integration.test.d.ts.map +0 -1
- package/dist/react/create-jazz-client.integration.test.js +0 -84
- package/dist/react/create-jazz-client.integration.test.js.map +0 -1
- package/dist/react/create-jazz-client.test.d.ts +0 -2
- package/dist/react/create-jazz-client.test.d.ts.map +0 -1
- package/dist/react/create-jazz-client.test.js +0 -133
- package/dist/react/create-jazz-client.test.js.map +0 -1
- package/dist/react/synthetic-user-switcher.d.ts +0 -9
- package/dist/react/synthetic-user-switcher.d.ts.map +0 -1
- package/dist/react/synthetic-user-switcher.js +0 -65
- package/dist/react/synthetic-user-switcher.js.map +0 -1
- package/dist/react/synthetic-users.d.ts +0 -2
- package/dist/react/synthetic-users.d.ts.map +0 -1
- package/dist/react/synthetic-users.js +0 -2
- package/dist/react/synthetic-users.js.map +0 -1
- package/dist/react/synthetic-users.test.d.ts +0 -2
- package/dist/react/synthetic-users.test.d.ts.map +0 -1
- package/dist/react/synthetic-users.test.js +0 -43
- package/dist/react/synthetic-users.test.js.map +0 -1
- package/dist/react/use-link-external-identity.d.ts +0 -25
- package/dist/react/use-link-external-identity.d.ts.map +0 -1
- package/dist/react/use-link-external-identity.js +0 -45
- package/dist/react/use-link-external-identity.js.map +0 -1
- package/dist/react-native/create-jazz-client.test.d.ts +0 -2
- package/dist/react-native/create-jazz-client.test.d.ts.map +0 -1
- package/dist/react-native/create-jazz-client.test.js +0 -162
- package/dist/react-native/create-jazz-client.test.js.map +0 -1
- package/dist/react-native/create-jazz-rn-runtime.d.ts +0 -13
- package/dist/react-native/create-jazz-rn-runtime.d.ts.map +0 -1
- package/dist/react-native/create-jazz-rn-runtime.js +0 -7
- package/dist/react-native/create-jazz-rn-runtime.js.map +0 -1
- package/dist/react-native/db.d.ts +0 -16
- package/dist/react-native/db.d.ts.map +0 -1
- package/dist/react-native/db.js +0 -50
- package/dist/react-native/db.js.map +0 -1
- package/dist/react-native/db.test.d.ts +0 -2
- package/dist/react-native/db.test.d.ts.map +0 -1
- package/dist/react-native/db.test.js +0 -150
- package/dist/react-native/db.test.js.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.d.ts +0 -56
- package/dist/react-native/jazz-rn-runtime-adapter.d.ts.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.js +0 -192
- package/dist/react-native/jazz-rn-runtime-adapter.js.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts +0 -2
- package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.test.js +0 -165
- package/dist/react-native/jazz-rn-runtime-adapter.test.js.map +0 -1
- package/dist/runtime/client-session.test.d.ts +0 -2
- package/dist/runtime/client-session.test.d.ts.map +0 -1
- package/dist/runtime/client-session.test.js +0 -84
- package/dist/runtime/client-session.test.js.map +0 -1
- package/dist/runtime/client.for-request.test.d.ts +0 -2
- package/dist/runtime/client.for-request.test.d.ts.map +0 -1
- package/dist/runtime/client.for-request.test.js +0 -171
- package/dist/runtime/client.for-request.test.js.map +0 -1
- package/dist/runtime/cloud-server.integration.test.d.ts +0 -2
- package/dist/runtime/cloud-server.integration.test.d.ts.map +0 -1
- package/dist/runtime/cloud-server.integration.test.js +0 -985
- package/dist/runtime/cloud-server.integration.test.js.map +0 -1
- package/dist/runtime/leader-lock.d.ts +0 -15
- package/dist/runtime/leader-lock.d.ts.map +0 -1
- package/dist/runtime/leader-lock.js +0 -49
- package/dist/runtime/leader-lock.js.map +0 -1
- package/dist/runtime/local-auth.d.ts +0 -32
- package/dist/runtime/local-auth.d.ts.map +0 -1
- package/dist/runtime/local-auth.js +0 -93
- package/dist/runtime/local-auth.js.map +0 -1
- package/dist/runtime/local-auth.test.d.ts +0 -2
- package/dist/runtime/local-auth.test.d.ts.map +0 -1
- package/dist/runtime/local-auth.test.js +0 -50
- package/dist/runtime/local-auth.test.js.map +0 -1
- package/dist/runtime/query-adapter.test.d.ts +0 -5
- package/dist/runtime/query-adapter.test.d.ts.map +0 -1
- package/dist/runtime/query-adapter.test.js +0 -1276
- package/dist/runtime/query-adapter.test.js.map +0 -1
- package/dist/runtime/row-transformer.test.d.ts +0 -5
- package/dist/runtime/row-transformer.test.d.ts.map +0 -1
- package/dist/runtime/row-transformer.test.js +0 -389
- package/dist/runtime/row-transformer.test.js.map +0 -1
- package/dist/runtime/subscription-manager.test.d.ts +0 -5
- package/dist/runtime/subscription-manager.test.d.ts.map +0 -1
- package/dist/runtime/subscription-manager.test.js +0 -120
- package/dist/runtime/subscription-manager.test.js.map +0 -1
- package/dist/runtime/sync-transport.d.ts +0 -163
- package/dist/runtime/sync-transport.d.ts.map +0 -1
- package/dist/runtime/sync-transport.js +0 -477
- package/dist/runtime/sync-transport.js.map +0 -1
- package/dist/runtime/sync-transport.test.d.ts +0 -2
- package/dist/runtime/sync-transport.test.d.ts.map +0 -1
- package/dist/runtime/sync-transport.test.js +0 -310
- package/dist/runtime/sync-transport.test.js.map +0 -1
- package/dist/runtime/tab-leader-election.d.ts +0 -97
- package/dist/runtime/tab-leader-election.d.ts.map +0 -1
- package/dist/runtime/tab-leader-election.js +0 -339
- package/dist/runtime/tab-leader-election.js.map +0 -1
- package/dist/runtime/tab-leader-election.test.d.ts +0 -2
- package/dist/runtime/tab-leader-election.test.d.ts.map +0 -1
- package/dist/runtime/tab-leader-election.test.js +0 -278
- package/dist/runtime/tab-leader-election.test.js.map +0 -1
- package/dist/runtime/testing/wasm-runtime-test-utils.d.ts +0 -13
- package/dist/runtime/testing/wasm-runtime-test-utils.d.ts.map +0 -1
- package/dist/runtime/testing/wasm-runtime-test-utils.js +0 -75
- package/dist/runtime/testing/wasm-runtime-test-utils.js.map +0 -1
- package/dist/runtime/utils.d.ts +0 -2
- package/dist/runtime/utils.d.ts.map +0 -1
- package/dist/runtime/utils.js +0 -16
- package/dist/runtime/utils.js.map +0 -1
- package/dist/runtime/value-converter.test.d.ts +0 -5
- package/dist/runtime/value-converter.test.d.ts.map +0 -1
- package/dist/runtime/value-converter.test.js +0 -226
- package/dist/runtime/value-converter.test.js.map +0 -1
- package/dist/runtime/worker-bridge.d.ts +0 -86
- package/dist/runtime/worker-bridge.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.js +0 -250
- package/dist/runtime/worker-bridge.js.map +0 -1
- package/dist/runtime/worker-bridge.race-harness.test.d.ts +0 -2
- package/dist/runtime/worker-bridge.race-harness.test.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.race-harness.test.js +0 -265
- package/dist/runtime/worker-bridge.race-harness.test.js.map +0 -1
- package/dist/runtime/worker-bridge.test.d.ts +0 -2
- package/dist/runtime/worker-bridge.test.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.test.js +0 -233
- package/dist/runtime/worker-bridge.test.js.map +0 -1
- package/dist/sql-gen.d.ts +0 -4
- package/dist/sql-gen.d.ts.map +0 -1
- package/dist/sql-gen.js +0 -163
- package/dist/sql-gen.js.map +0 -1
- package/dist/sql-gen.test.d.ts +0 -2
- package/dist/sql-gen.test.d.ts.map +0 -1
- package/dist/sql-gen.test.js +0 -412
- package/dist/sql-gen.test.js.map +0 -1
- package/dist/subscriptions-orchestrator.integration.test.d.ts +0 -2
- package/dist/subscriptions-orchestrator.integration.test.d.ts.map +0 -1
- package/dist/subscriptions-orchestrator.integration.test.js +0 -194
- package/dist/subscriptions-orchestrator.integration.test.js.map +0 -1
- package/dist/subscriptions-orchestrator.test.d.ts +0 -2
- package/dist/subscriptions-orchestrator.test.d.ts.map +0 -1
- package/dist/subscriptions-orchestrator.test.js +0 -367
- package/dist/subscriptions-orchestrator.test.js.map +0 -1
- package/dist/svelte/SyntheticUserSwitcher.svelte +0 -121
- package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts +0 -11
- package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts.map +0 -1
- package/dist/svelte/context.test.d.ts +0 -2
- package/dist/svelte/context.test.d.ts.map +0 -1
- package/dist/svelte/context.test.js +0 -51
- package/dist/svelte/create-jazz-client.test.d.ts +0 -2
- package/dist/svelte/create-jazz-client.test.d.ts.map +0 -1
- package/dist/svelte/create-jazz-client.test.js +0 -50
- package/dist/svelte/use-all.svelte.d.ts +0 -32
- package/dist/svelte/use-all.svelte.d.ts.map +0 -1
- package/dist/svelte/use-all.svelte.js +0 -61
- package/dist/svelte/use-all.test.d.ts +0 -2
- package/dist/svelte/use-all.test.d.ts.map +0 -1
- package/dist/svelte/use-all.test.js +0 -154
- package/dist/svelte/use-link-external-identity.d.ts +0 -25
- package/dist/svelte/use-link-external-identity.d.ts.map +0 -1
- package/dist/svelte/use-link-external-identity.js +0 -33
- package/dist/svelte/use-link-external-identity.test.d.ts +0 -2
- package/dist/svelte/use-link-external-identity.test.d.ts.map +0 -1
- package/dist/svelte/use-link-external-identity.test.js +0 -97
- package/dist/synthetic-user-switcher.d.ts +0 -16
- package/dist/synthetic-user-switcher.d.ts.map +0 -1
- package/dist/synthetic-user-switcher.js +0 -134
- package/dist/synthetic-user-switcher.js.map +0 -1
- package/dist/synthetic-users.d.ts +0 -32
- package/dist/synthetic-users.d.ts.map +0 -1
- package/dist/synthetic-users.js +0 -124
- package/dist/synthetic-users.js.map +0 -1
- package/dist/testing/fixtures/basic/app.d.ts +0 -55
- package/dist/testing/fixtures/basic/app.d.ts.map +0 -1
- package/dist/testing/fixtures/basic/app.js +0 -176
- package/dist/testing/fixtures/basic/app.js.map +0 -1
- package/dist/testing/fixtures/basic/current.d.ts +0 -2
- package/dist/testing/fixtures/basic/current.d.ts.map +0 -1
- package/dist/testing/fixtures/basic/current.js +0 -6
- package/dist/testing/fixtures/basic/current.js.map +0 -1
- package/dist/testing/index.test.d.ts +0 -2
- package/dist/testing/index.test.d.ts.map +0 -1
- package/dist/testing/index.test.js +0 -234
- package/dist/testing/index.test.js.map +0 -1
- package/dist/testing/local-jazz-server.d.ts +0 -34
- package/dist/testing/local-jazz-server.d.ts.map +0 -1
- package/dist/testing/local-jazz-server.js +0 -313
- package/dist/testing/local-jazz-server.js.map +0 -1
- package/dist/worker/jazz-worker.d.ts +0 -9
- package/dist/worker/jazz-worker.d.ts.map +0 -1
- package/dist/worker/jazz-worker.js +0 -516
- package/dist/worker/jazz-worker.js.map +0 -1
- package/dist/worker/jazz-worker.ts +0 -581
- package/dist/worker/worker-protocol.d.ts +0 -136
- package/dist/worker/worker-protocol.d.ts.map +0 -1
- package/dist/worker/worker-protocol.js +0 -7
- package/dist/worker/worker-protocol.js.map +0 -1
|
@@ -0,0 +1,905 @@
|
|
|
1
|
+
import { UnsupportedSnapshotError } from "../runtime/snapshot-ref.js";
|
|
2
|
+
import { NO_UPLOADS, uploadStatusFromCount } from "../runtime/sync-status.js";
|
|
3
|
+
import { formatUuid } from "../runtime/hex.js";
|
|
4
|
+
import { REACT_NATIVE_UNSUPPORTED_ERROR } from "./errors.js";
|
|
5
|
+
/**
|
|
6
|
+
* Narrow NativeDb consumer for the first JSI foreground slice.
|
|
7
|
+
*
|
|
8
|
+
* Rows and subscription deltas stay in the ordinary binding byte format, so
|
|
9
|
+
* NativeRuntimeAdapter remains the sole schema-aware decoder. This is not a
|
|
10
|
+
* second object-shaped database facade and intentionally grows only as the
|
|
11
|
+
* shared Rust command ABI grows.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Thin `NativeDb` adapter over the native foreground command ABI.
|
|
15
|
+
*
|
|
16
|
+
* This deliberately contains no row, query, or mutation interpretation: the
|
|
17
|
+
* normal `NativeRuntimeAdapter` owns the public API and existing codecs. A
|
|
18
|
+
* direct mutation is represented by one ordinary native mergeable transaction;
|
|
19
|
+
* explicit public transactions retain their native transaction handle until
|
|
20
|
+
* commit/rollback.
|
|
21
|
+
*/
|
|
22
|
+
export class NativeForegroundDb {
|
|
23
|
+
runtime;
|
|
24
|
+
commands;
|
|
25
|
+
/**
|
|
26
|
+
* Only moves forward: `open`, then `storeDeleted` (the relay closed this
|
|
27
|
+
* foreground with its store; the JSI handle is still held), then `closed`
|
|
28
|
+
* (the handle is released).
|
|
29
|
+
*/
|
|
30
|
+
phase = "open";
|
|
31
|
+
get closed() {
|
|
32
|
+
return this.phase !== "open";
|
|
33
|
+
}
|
|
34
|
+
mutationErrorCallback;
|
|
35
|
+
authRejectedCallback;
|
|
36
|
+
/** The sequence of the refusal last reported, so each is reported once. */
|
|
37
|
+
reportedAuthRejection = 0;
|
|
38
|
+
upstreamFailureCallback;
|
|
39
|
+
/** The upstream failure last reported, so each change is reported once. */
|
|
40
|
+
reportedUpstreamFailure = null;
|
|
41
|
+
transactions = new Map();
|
|
42
|
+
/** A native build without the (append-only) slow-query commands. */
|
|
43
|
+
slowQueryLogUnsupported = false;
|
|
44
|
+
pendingUploadCountUnsupported = false;
|
|
45
|
+
uploadStatusUnsupported = false;
|
|
46
|
+
pendingUploadRowsUnsupported = false;
|
|
47
|
+
constructor(runtime, commands) {
|
|
48
|
+
this.runtime = runtime;
|
|
49
|
+
this.commands = commands;
|
|
50
|
+
}
|
|
51
|
+
setTickScheduler(callback) {
|
|
52
|
+
if (!this.runtime.setTickScheduler) {
|
|
53
|
+
throw new Error("React Native native foreground runtime does not expose owner wake scheduling");
|
|
54
|
+
}
|
|
55
|
+
this.runtime.setTickScheduler((urgency) => {
|
|
56
|
+
// Native invalidation clears the JSI registration first, but a
|
|
57
|
+
// CallInvoker task may already have crossed into JS when close races
|
|
58
|
+
// teardown. Do not let that stale task re-enter the adapter after its
|
|
59
|
+
// foreground facade has become unusable.
|
|
60
|
+
if (!this.closed)
|
|
61
|
+
callback(urgency);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
onMutationError(callback) {
|
|
65
|
+
this.assertOpen();
|
|
66
|
+
this.mutationErrorCallback = callback;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Observe the upstream refusing the scope's credential. The refusal is auth
|
|
70
|
+
* state, not a failed tick: local ticks keep running, and the tick that
|
|
71
|
+
* first sees a refusal reports it once, so the app can renew the
|
|
72
|
+
* credential (#4248, #4296).
|
|
73
|
+
*/
|
|
74
|
+
onAuthRejected(callback) {
|
|
75
|
+
this.assertOpen();
|
|
76
|
+
this.authRejectedCallback = callback;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Observe the scope's upstream connection failing for a reason other than
|
|
80
|
+
* its credential, and recovering (`null`). A failure is connection state,
|
|
81
|
+
* not a failed tick: local ticks keep running (#4337).
|
|
82
|
+
*/
|
|
83
|
+
onUpstreamFailure(callback) {
|
|
84
|
+
this.assertOpen();
|
|
85
|
+
this.upstreamFailureCallback = callback;
|
|
86
|
+
}
|
|
87
|
+
all(query, opts, openTransactionId) {
|
|
88
|
+
const transaction = openTransactionId === undefined
|
|
89
|
+
? undefined
|
|
90
|
+
: this.openTransaction(openTransactionId, "read").handle;
|
|
91
|
+
// No tick here: the native relay owner applies admitted writes and pumps
|
|
92
|
+
// on its own thread. The read is fenced natively behind every write
|
|
93
|
+
// admitted before it, so it resolves (possibly as pending) with them.
|
|
94
|
+
const response = this.execute({
|
|
95
|
+
type: "all",
|
|
96
|
+
query,
|
|
97
|
+
optionsJson: JSON.stringify(opts ?? {}),
|
|
98
|
+
transaction,
|
|
99
|
+
});
|
|
100
|
+
if (response.type === "rows")
|
|
101
|
+
return response.rows;
|
|
102
|
+
if (response.type === "operationError")
|
|
103
|
+
throw foregroundOperationError(response);
|
|
104
|
+
if (response.type === "pending")
|
|
105
|
+
return this.pendingRows(response.operation);
|
|
106
|
+
return unexpected("all", response.type);
|
|
107
|
+
}
|
|
108
|
+
captureSnapshot() {
|
|
109
|
+
this.assertOpen();
|
|
110
|
+
if (this.runtime.supportsSnapshotCapture !== true) {
|
|
111
|
+
throw new UnsupportedSnapshotError("Capturing snapshots requires a newer Jazz native build; rebuild the native app to use captureSnapshot()");
|
|
112
|
+
}
|
|
113
|
+
const response = this.execute({ type: "captureSnapshot" });
|
|
114
|
+
if (response.type === "operationError")
|
|
115
|
+
throw foregroundOperationError(response);
|
|
116
|
+
if (response.type === "rows")
|
|
117
|
+
return response.rows;
|
|
118
|
+
if (response.type === "pending")
|
|
119
|
+
return this.pendingRows(response.operation);
|
|
120
|
+
return unexpected("captureSnapshot", response.type);
|
|
121
|
+
}
|
|
122
|
+
// The shared mutation adapter needs one exact local row, without coverage
|
|
123
|
+
// registration or hydration, to merge staged patches synchronously.
|
|
124
|
+
localCurrentRow(table, rowId) {
|
|
125
|
+
const response = this.execute({ type: "localCurrentRow", table, rowId });
|
|
126
|
+
if (response.type === "operationError")
|
|
127
|
+
throw foregroundOperationError(response);
|
|
128
|
+
if (response.type !== "rows")
|
|
129
|
+
return unexpected("localCurrentRow", response.type);
|
|
130
|
+
return response.rows;
|
|
131
|
+
}
|
|
132
|
+
subscribe(query, opts) {
|
|
133
|
+
// Fenced natively like `all()`: the first frame reflects earlier writes.
|
|
134
|
+
const response = this.execute({
|
|
135
|
+
type: "subscribe",
|
|
136
|
+
query,
|
|
137
|
+
optionsJson: JSON.stringify(opts ?? {}),
|
|
138
|
+
});
|
|
139
|
+
if (response.type === "operationError")
|
|
140
|
+
throw foregroundOperationError(response);
|
|
141
|
+
if (response.type !== "subscribed")
|
|
142
|
+
return unexpected("subscribe", response.type);
|
|
143
|
+
return new NativeForegroundSubscription(response.subscription, this);
|
|
144
|
+
}
|
|
145
|
+
tick() {
|
|
146
|
+
this.assertOpen();
|
|
147
|
+
this.runtime.tick();
|
|
148
|
+
if (!this.mutationErrorCallback && !this.authRejectedCallback && !this.upstreamFailureCallback)
|
|
149
|
+
return;
|
|
150
|
+
// One call drains everything a tick reports.
|
|
151
|
+
const response = this.execute({ type: "drainTickEvents" });
|
|
152
|
+
if (response.type === "operationError")
|
|
153
|
+
throw foregroundOperationError(response);
|
|
154
|
+
if (response.type !== "tickEvents")
|
|
155
|
+
return unexpected("drainTickEvents", response.type);
|
|
156
|
+
const rejection = response.authRejection;
|
|
157
|
+
if (rejection && rejection.sequence !== this.reportedAuthRejection) {
|
|
158
|
+
this.reportedAuthRejection = rejection.sequence;
|
|
159
|
+
queueMicrotask(() => {
|
|
160
|
+
if (!this.closed)
|
|
161
|
+
this.authRejectedCallback?.(rejection.reason);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
const failure = response.upstreamFailure;
|
|
165
|
+
const reported = this.reportedUpstreamFailure;
|
|
166
|
+
if (failure
|
|
167
|
+
? failure.sequence !== reported?.sequence || failure.retrying !== reported.retrying
|
|
168
|
+
: reported) {
|
|
169
|
+
this.reportedUpstreamFailure = failure && {
|
|
170
|
+
sequence: failure.sequence,
|
|
171
|
+
retrying: failure.retrying,
|
|
172
|
+
};
|
|
173
|
+
const change = failure && {
|
|
174
|
+
reason: failure.reason,
|
|
175
|
+
retrying: failure.retrying,
|
|
176
|
+
code: failure.code,
|
|
177
|
+
};
|
|
178
|
+
queueMicrotask(() => {
|
|
179
|
+
if (!this.closed)
|
|
180
|
+
this.upstreamFailureCallback?.(change);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
// The drain claims mutation errors; with no observer they are dropped.
|
|
184
|
+
if (!this.mutationErrorCallback)
|
|
185
|
+
return;
|
|
186
|
+
const events = JSON.parse(response.eventsJson);
|
|
187
|
+
for (const event of events)
|
|
188
|
+
queueMicrotask(() => {
|
|
189
|
+
if (!this.closed)
|
|
190
|
+
this.mutationErrorCallback?.(event);
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
close() {
|
|
194
|
+
if (this.phase === "closed")
|
|
195
|
+
return false;
|
|
196
|
+
const storeDeleted = this.phase === "storeDeleted";
|
|
197
|
+
this.phase = "closed";
|
|
198
|
+
this.transactions.clear();
|
|
199
|
+
if (storeDeleted) {
|
|
200
|
+
// The relay already closed this foreground with its store: only the
|
|
201
|
+
// JSI handle is left to release.
|
|
202
|
+
this.runtime.close();
|
|
203
|
+
return false;
|
|
204
|
+
}
|
|
205
|
+
try {
|
|
206
|
+
const response = this.executeAllowClosed("close");
|
|
207
|
+
if (response.type !== "closed")
|
|
208
|
+
return unexpected("close", response.type);
|
|
209
|
+
return response.closed;
|
|
210
|
+
}
|
|
211
|
+
finally {
|
|
212
|
+
// The command owns logical Db closure. The HostObject close releases the
|
|
213
|
+
// JSI handle and is deliberately safe to call after that transition.
|
|
214
|
+
// It must also run when command execution fails (for example, because a
|
|
215
|
+
// platform logout revoked the capability just before this call).
|
|
216
|
+
this.runtime.close();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* The slow-query report due now: one line per slow query shape, naming
|
|
221
|
+
* `app`. An older native build without the command reports nothing.
|
|
222
|
+
*/
|
|
223
|
+
takeSlowQueryReport(app) {
|
|
224
|
+
if (this.slowQueryLogUnsupported || this.closed)
|
|
225
|
+
return [];
|
|
226
|
+
let response;
|
|
227
|
+
try {
|
|
228
|
+
response = this.execute({ type: "takeSlowQueryReport", app });
|
|
229
|
+
}
|
|
230
|
+
catch {
|
|
231
|
+
this.slowQueryLogUnsupported = true;
|
|
232
|
+
return [];
|
|
233
|
+
}
|
|
234
|
+
if (response.type !== "slowQueryReport") {
|
|
235
|
+
this.slowQueryLogUnsupported = true;
|
|
236
|
+
return [];
|
|
237
|
+
}
|
|
238
|
+
return response.lines;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* This foreground's uploads. An older native build without the command
|
|
242
|
+
* reports the pending count alone, and one older still reports none.
|
|
243
|
+
*/
|
|
244
|
+
uploadStatus() {
|
|
245
|
+
if (this.closed)
|
|
246
|
+
return NO_UPLOADS;
|
|
247
|
+
if (this.uploadStatusUnsupported)
|
|
248
|
+
return uploadStatusFromCount(this.pendingUploadCount());
|
|
249
|
+
let response;
|
|
250
|
+
try {
|
|
251
|
+
response = this.execute({ type: "uploadStatus" });
|
|
252
|
+
}
|
|
253
|
+
catch (error) {
|
|
254
|
+
// As for the count: only a host that rejects the command lacks it.
|
|
255
|
+
if (rejectsCommand(error))
|
|
256
|
+
this.uploadStatusUnsupported = true;
|
|
257
|
+
return this.uploadStatusUnsupported
|
|
258
|
+
? uploadStatusFromCount(this.pendingUploadCount())
|
|
259
|
+
: NO_UPLOADS;
|
|
260
|
+
}
|
|
261
|
+
if (response.type !== "uploadStatus") {
|
|
262
|
+
this.uploadStatusUnsupported = true;
|
|
263
|
+
return uploadStatusFromCount(this.pendingUploadCount());
|
|
264
|
+
}
|
|
265
|
+
return JSON.parse(response.statusJson);
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Ids of `table`'s rows with a write the server has neither accepted nor
|
|
269
|
+
* refused yet: this foreground's and the ones its scope's store recovered
|
|
270
|
+
* after a restart. `null` from an older native build without the command:
|
|
271
|
+
* it cannot tell, which is not "none pending".
|
|
272
|
+
*/
|
|
273
|
+
pendingUploadRows(table) {
|
|
274
|
+
if (this.closed || this.pendingUploadRowsUnsupported)
|
|
275
|
+
return null;
|
|
276
|
+
let response;
|
|
277
|
+
try {
|
|
278
|
+
response = this.execute({ type: "pendingUploadRows", table });
|
|
279
|
+
}
|
|
280
|
+
catch (error) {
|
|
281
|
+
if (rejectsCommand(error)) {
|
|
282
|
+
this.pendingUploadRowsUnsupported = true;
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
throw error;
|
|
286
|
+
}
|
|
287
|
+
// A core error (an unknown table) is this call's, not a missing command:
|
|
288
|
+
// it must not turn the report off for the rest of the session.
|
|
289
|
+
if (response.type === "operationError")
|
|
290
|
+
throw foregroundOperationError(response);
|
|
291
|
+
if (response.type !== "pendingUploadRows") {
|
|
292
|
+
this.pendingUploadRowsUnsupported = true;
|
|
293
|
+
return null;
|
|
294
|
+
}
|
|
295
|
+
return response.rows.map(formatUuid);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Delete this foreground's scope store: the native relay closes every
|
|
299
|
+
* foreground of the scope (this one too) and its relay, then deletes the
|
|
300
|
+
* store's files, keeping the account. Returns how many writes the server
|
|
301
|
+
* had not confirmed it dropped.
|
|
302
|
+
*/
|
|
303
|
+
deleteNativeStore() {
|
|
304
|
+
if (this.closed)
|
|
305
|
+
throw new Error("React Native native foreground runtime is closed");
|
|
306
|
+
const response = this.execute({ type: "deleteStore" });
|
|
307
|
+
if (response.type !== "storeDeleted")
|
|
308
|
+
return unexpected("deleteStore", response.type);
|
|
309
|
+
this.phase = "storeDeleted";
|
|
310
|
+
return { pendingUploads: response.pendingUploads };
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* How many of this foreground's commits still wait for the server's
|
|
314
|
+
* verdict. An older native build without the command reports none.
|
|
315
|
+
*/
|
|
316
|
+
pendingUploadCount() {
|
|
317
|
+
if (this.pendingUploadCountUnsupported || this.closed)
|
|
318
|
+
return 0;
|
|
319
|
+
let response;
|
|
320
|
+
try {
|
|
321
|
+
response = this.execute({ type: "pendingUploadCount" });
|
|
322
|
+
}
|
|
323
|
+
catch (error) {
|
|
324
|
+
// An older host rejects the unknown command (InvalidCommand). A busy
|
|
325
|
+
// host or a revoked handle is transient and must not disable the count.
|
|
326
|
+
if (rejectsCommand(error))
|
|
327
|
+
this.pendingUploadCountUnsupported = true;
|
|
328
|
+
return 0;
|
|
329
|
+
}
|
|
330
|
+
if (response.type !== "pendingUploadCount") {
|
|
331
|
+
this.pendingUploadCountUnsupported = true;
|
|
332
|
+
return 0;
|
|
333
|
+
}
|
|
334
|
+
return response.count;
|
|
335
|
+
}
|
|
336
|
+
/** Report query runs of at least `ms` milliseconds; 0 turns the log off. */
|
|
337
|
+
setSlowQueryThresholdMs(ms) {
|
|
338
|
+
if (this.slowQueryLogUnsupported || this.closed)
|
|
339
|
+
return;
|
|
340
|
+
let response;
|
|
341
|
+
try {
|
|
342
|
+
response = this.execute({ type: "setSlowQueryThresholdMs", ms: Math.round(ms) });
|
|
343
|
+
}
|
|
344
|
+
catch {
|
|
345
|
+
this.slowQueryLogUnsupported = true;
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
if (response.type !== "slowQueryThresholdSet")
|
|
349
|
+
this.slowQueryLogUnsupported = true;
|
|
350
|
+
}
|
|
351
|
+
isNativeForegroundClosed() {
|
|
352
|
+
// Only a typed native closed/revoked receipt suppresses a stale wake.
|
|
353
|
+
// Missing support or any unexpected native/probe failure is not closure.
|
|
354
|
+
return this.closed || this.runtime.isClosed?.() === true;
|
|
355
|
+
}
|
|
356
|
+
nativeSessionMetadata() {
|
|
357
|
+
const response = this.execute({ type: "nativeSessionMetadata" });
|
|
358
|
+
if (response.type !== "nativeSessionMetadata")
|
|
359
|
+
return unexpected("nativeSessionMetadata", response.type);
|
|
360
|
+
return response;
|
|
361
|
+
}
|
|
362
|
+
disconnectNativeUpstream() {
|
|
363
|
+
const response = this.execute({ type: "disconnectNativeUpstream" });
|
|
364
|
+
if (response.type !== "nativeConnectionStatus")
|
|
365
|
+
return unexpected("disconnectNativeUpstream", response.type);
|
|
366
|
+
}
|
|
367
|
+
reconnectNativeUpstream() {
|
|
368
|
+
const response = this.execute({ type: "reconnectNativeUpstream" });
|
|
369
|
+
if (response.type !== "nativeConnectionStatus")
|
|
370
|
+
return unexpected("reconnectNativeUpstream", response.type);
|
|
371
|
+
}
|
|
372
|
+
nativeConnectionStatus() {
|
|
373
|
+
const response = this.execute({ type: "nativeConnectionStatus" });
|
|
374
|
+
if (response.type !== "nativeConnectionStatus")
|
|
375
|
+
return unexpected("nativeConnectionStatus", response.type);
|
|
376
|
+
return response;
|
|
377
|
+
}
|
|
378
|
+
rejectAuthUpdate() {
|
|
379
|
+
throw new Error("React Native native foreground cannot rotate authentication in place; keep the existing admitted session or revoke the old native capability and create a new Db for the newly admitted session");
|
|
380
|
+
}
|
|
381
|
+
drain(subscription, operation) {
|
|
382
|
+
const response = operation === undefined
|
|
383
|
+
? this.execute({ type: "drainSubscription", subscription })
|
|
384
|
+
: this.execute({ type: "poll", operation });
|
|
385
|
+
if (response.type === "pending")
|
|
386
|
+
return { pendingOperation: response.operation };
|
|
387
|
+
if (response.type === "operationError") {
|
|
388
|
+
throw foregroundOperationError({
|
|
389
|
+
...response,
|
|
390
|
+
reason: `React Native native foreground subscription failed: ${response.reason}`,
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
if (response.type !== "subscriptionEvents")
|
|
394
|
+
return unexpected("drainSubscription", response.type);
|
|
395
|
+
return response.events.map((event) => {
|
|
396
|
+
if (event.type === "delta")
|
|
397
|
+
return event;
|
|
398
|
+
if (event.type === "closed")
|
|
399
|
+
return event;
|
|
400
|
+
return {
|
|
401
|
+
type: "rejected",
|
|
402
|
+
reason: { type: "ServerFailure", code: event.reason },
|
|
403
|
+
};
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
unsubscribe(subscription) {
|
|
407
|
+
if (this.closed)
|
|
408
|
+
return false;
|
|
409
|
+
const response = this.execute({ type: "unsubscribe", subscription });
|
|
410
|
+
if (response.type !== "unsubscribed")
|
|
411
|
+
return unexpected("unsubscribe", response.type);
|
|
412
|
+
// Native unsubscribe retires the stream handle synchronously but queues
|
|
413
|
+
// its core cleanup for the following ordinary turn. Drive that turn here:
|
|
414
|
+
// after the JS reader stops polling there may be no unrelated operation
|
|
415
|
+
// to do it for us.
|
|
416
|
+
if (response.closed)
|
|
417
|
+
this.tick();
|
|
418
|
+
return response.closed;
|
|
419
|
+
}
|
|
420
|
+
requestInsertPermissionAdvice(table, cells) {
|
|
421
|
+
return this.requestPermissionAdvice({ type: "insert", table, cells });
|
|
422
|
+
}
|
|
423
|
+
requestReadPermissionAdvice(table, rowId) {
|
|
424
|
+
return this.requestPermissionAdvice({ type: "read", table, rowId });
|
|
425
|
+
}
|
|
426
|
+
requestUpdatePermissionAdvice(table, rowId, patch) {
|
|
427
|
+
return this.requestPermissionAdvice({ type: "update", table, rowId, patch });
|
|
428
|
+
}
|
|
429
|
+
requestDeletePermissionAdvice(table, rowId) {
|
|
430
|
+
return this.requestPermissionAdvice({ type: "delete", table, rowId });
|
|
431
|
+
}
|
|
432
|
+
requestPermissionAdvice(action) {
|
|
433
|
+
let response = this.execute({ type: "permissionAdvice", action });
|
|
434
|
+
if (response.type === "permissionAdvice")
|
|
435
|
+
return response.advice;
|
|
436
|
+
if (response.type === "operationError")
|
|
437
|
+
throw foregroundOperationError(response);
|
|
438
|
+
if (response.type !== "pending")
|
|
439
|
+
return unexpected("permissionAdvice", response.type);
|
|
440
|
+
const operation = response.operation;
|
|
441
|
+
let completed = false;
|
|
442
|
+
return {
|
|
443
|
+
poll: () => {
|
|
444
|
+
if (completed || this.closed)
|
|
445
|
+
return "unknown";
|
|
446
|
+
this.tick();
|
|
447
|
+
response = this.execute({ type: "poll", operation });
|
|
448
|
+
if (response.type === "pending")
|
|
449
|
+
return null;
|
|
450
|
+
completed = true;
|
|
451
|
+
if (response.type === "operationError")
|
|
452
|
+
throw foregroundOperationError(response);
|
|
453
|
+
if (response.type !== "permissionAdvice")
|
|
454
|
+
return unexpected("permissionAdvice", response.type);
|
|
455
|
+
return response.advice;
|
|
456
|
+
},
|
|
457
|
+
cancel: () => {
|
|
458
|
+
if (completed || this.closed)
|
|
459
|
+
return false;
|
|
460
|
+
completed = true;
|
|
461
|
+
const cancelled = this.execute({ type: "cancel", operation });
|
|
462
|
+
if (cancelled.type !== "cancelled")
|
|
463
|
+
return unexpected("permissionAdvice cancellation", cancelled.type);
|
|
464
|
+
return cancelled.cancelled;
|
|
465
|
+
},
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Resolve once every local write so far reached `tier`. A wait that does
|
|
470
|
+
* not settle at once is a pollable read, so a caller that stops waiting
|
|
471
|
+
* cancels it.
|
|
472
|
+
*/
|
|
473
|
+
waitForPendingWrites(tier) {
|
|
474
|
+
let response = this.execute({ type: "waitForPendingWrites", tier });
|
|
475
|
+
const settle = () => {
|
|
476
|
+
if (response.type === "operationError")
|
|
477
|
+
throw foregroundOperationError(response);
|
|
478
|
+
if (response.type !== "rows" || response.rows.length !== 0)
|
|
479
|
+
return unexpected("waitForPendingWrites", response.type);
|
|
480
|
+
return response.rows;
|
|
481
|
+
};
|
|
482
|
+
if (response.type !== "pending")
|
|
483
|
+
return settle();
|
|
484
|
+
const operation = response.operation;
|
|
485
|
+
let completed = false;
|
|
486
|
+
return {
|
|
487
|
+
poll: () => {
|
|
488
|
+
if (completed || this.closed)
|
|
489
|
+
throw new Error("waitForPendingWrites was cancelled");
|
|
490
|
+
this.tick();
|
|
491
|
+
response = this.execute({ type: "poll", operation });
|
|
492
|
+
if (response.type === "pending")
|
|
493
|
+
return null;
|
|
494
|
+
completed = true;
|
|
495
|
+
return settle();
|
|
496
|
+
},
|
|
497
|
+
cancel: () => {
|
|
498
|
+
if (completed || this.closed)
|
|
499
|
+
return false;
|
|
500
|
+
completed = true;
|
|
501
|
+
const cancelled = this.execute({ type: "cancel", operation });
|
|
502
|
+
if (cancelled.type !== "cancelled")
|
|
503
|
+
return unexpected("waitForPendingWrites cancellation", cancelled.type);
|
|
504
|
+
return cancelled.cancelled;
|
|
505
|
+
},
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
async waitForTransaction(txId, tier, observeOnly = false) {
|
|
509
|
+
if (!["local", "global"].includes(tier)) {
|
|
510
|
+
throw new Error(`Unsupported write durability tier: ${tier}`);
|
|
511
|
+
}
|
|
512
|
+
let response = this.execute({ type: "waitForTransaction", txId, tier, observeOnly });
|
|
513
|
+
while (response.type === "pending") {
|
|
514
|
+
const operation = response.operation;
|
|
515
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
516
|
+
this.tick();
|
|
517
|
+
response = this.execute({ type: "poll", operation });
|
|
518
|
+
}
|
|
519
|
+
if (response.type === "operationError")
|
|
520
|
+
throw foregroundOperationError(response);
|
|
521
|
+
if (response.type !== "transactionSettled")
|
|
522
|
+
return unexpected("waitForTransaction", response.type);
|
|
523
|
+
}
|
|
524
|
+
execute(command) {
|
|
525
|
+
this.assertOpen();
|
|
526
|
+
return this.executeAllowClosed(command);
|
|
527
|
+
}
|
|
528
|
+
pendingRows(operation) {
|
|
529
|
+
let completed = false;
|
|
530
|
+
return {
|
|
531
|
+
poll: () => {
|
|
532
|
+
if (completed)
|
|
533
|
+
throw new Error("Native foreground read is already complete");
|
|
534
|
+
this.tick();
|
|
535
|
+
const response = this.execute({ type: "poll", operation });
|
|
536
|
+
if (response.type === "pending")
|
|
537
|
+
return null;
|
|
538
|
+
completed = true;
|
|
539
|
+
if (response.type === "operationError") {
|
|
540
|
+
throw foregroundOperationError({
|
|
541
|
+
...response,
|
|
542
|
+
reason: `React Native native foreground read failed: ${response.reason}`,
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
if (response.type !== "rows")
|
|
546
|
+
return unexpected("poll", response.type);
|
|
547
|
+
return response.rows;
|
|
548
|
+
},
|
|
549
|
+
cancel: () => {
|
|
550
|
+
if (completed || this.closed)
|
|
551
|
+
return;
|
|
552
|
+
completed = true;
|
|
553
|
+
const response = this.execute({ type: "cancel", operation });
|
|
554
|
+
if (response.type !== "cancelled")
|
|
555
|
+
return unexpected("read cancellation", response.type);
|
|
556
|
+
},
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
executeAllowClosed(command) {
|
|
560
|
+
return this.commands.decodeNativeForegroundResponse(this.runtime.execute(this.commands.encodeNativeForegroundCommand(command)));
|
|
561
|
+
}
|
|
562
|
+
assertOpen() {
|
|
563
|
+
if (this.closed)
|
|
564
|
+
throw new Error("React Native native foreground runtime is closed");
|
|
565
|
+
}
|
|
566
|
+
// The admitted native host already owns and validates the schema. A schema
|
|
567
|
+
// view therefore shares this foreground rather than opening a second store.
|
|
568
|
+
registerSchema() {
|
|
569
|
+
return this;
|
|
570
|
+
}
|
|
571
|
+
beginTransaction(openTransactionId, kind) {
|
|
572
|
+
this.assertOpen();
|
|
573
|
+
if (this.transactions.has(openTransactionId)) {
|
|
574
|
+
throw new Error(`React Native native foreground transaction ${openTransactionId} is already open`);
|
|
575
|
+
}
|
|
576
|
+
const response = this.execute({ type: "beginTransaction", kind });
|
|
577
|
+
if (response.type !== "transactionOpened")
|
|
578
|
+
return unexpected("beginTransaction", response.type);
|
|
579
|
+
this.transactions.set(openTransactionId, {
|
|
580
|
+
handle: response.transaction,
|
|
581
|
+
kind,
|
|
582
|
+
closed: false,
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
commitTransaction(openTransactionId) {
|
|
586
|
+
const transaction = this.openTransaction(openTransactionId, "commit");
|
|
587
|
+
const response = this.execute({
|
|
588
|
+
type: "commitTransaction",
|
|
589
|
+
transaction: transaction.handle,
|
|
590
|
+
});
|
|
591
|
+
if (response.type === "operationError")
|
|
592
|
+
throw foregroundOperationError(response);
|
|
593
|
+
if (response.type !== "transactionCommitted")
|
|
594
|
+
return unexpected("commitTransaction", response.type);
|
|
595
|
+
this.transactions.delete(openTransactionId);
|
|
596
|
+
transaction.closed = true;
|
|
597
|
+
return nativeWrite(this, response.txId);
|
|
598
|
+
}
|
|
599
|
+
rollbackTransaction(openTransactionId) {
|
|
600
|
+
const transaction = this.openTransaction(openTransactionId, "rollback");
|
|
601
|
+
const response = this.execute({
|
|
602
|
+
type: "rollbackTransaction",
|
|
603
|
+
transaction: transaction.handle,
|
|
604
|
+
});
|
|
605
|
+
if (response.type !== "transactionRolledBack")
|
|
606
|
+
return unexpected("rollbackTransaction", response.type);
|
|
607
|
+
this.transactions.delete(openTransactionId);
|
|
608
|
+
transaction.closed = true;
|
|
609
|
+
}
|
|
610
|
+
insert(table, cells, options) {
|
|
611
|
+
return this.directMutation("insert", table, options?.rowId, cells, options);
|
|
612
|
+
}
|
|
613
|
+
insertInTransaction(openTransactionId, table, cells, options) {
|
|
614
|
+
return this.stageMutation(this.openTransaction(openTransactionId, "insert into"), "insert", table, options?.rowId, cells, options);
|
|
615
|
+
}
|
|
616
|
+
update(table, rowId, patch, options) {
|
|
617
|
+
return this.directMutation("update", table, rowId, patch, options);
|
|
618
|
+
}
|
|
619
|
+
updateInTransaction(openTransactionId, table, rowId, patch, options) {
|
|
620
|
+
this.stageMutation(this.openTransaction(openTransactionId, "update in"), "update", table, rowId, patch, options);
|
|
621
|
+
}
|
|
622
|
+
upsert(table, rowId, cells, options) {
|
|
623
|
+
return this.directMutation("upsert", table, rowId, cells, options);
|
|
624
|
+
}
|
|
625
|
+
upsertInTransaction(openTransactionId, table, rowId, cells, options) {
|
|
626
|
+
this.stageMutation(this.openTransaction(openTransactionId, "upsert into"), "upsert", table, rowId, cells, options);
|
|
627
|
+
}
|
|
628
|
+
delete(table, rowId, options) {
|
|
629
|
+
return this.directMutation("delete", table, rowId, new Uint8Array(), options);
|
|
630
|
+
}
|
|
631
|
+
deleteInTransaction(openTransactionId, table, rowId, options) {
|
|
632
|
+
this.stageMutation(this.openTransaction(openTransactionId, "delete from"), "delete", table, rowId, new Uint8Array(), options);
|
|
633
|
+
}
|
|
634
|
+
restore(table, rowId, cells, options) {
|
|
635
|
+
return this.directMutation("restore", table, rowId, cells, options);
|
|
636
|
+
}
|
|
637
|
+
restoreInTransaction(openTransactionId, table, rowId, cells, options) {
|
|
638
|
+
this.stageMutation(this.openTransaction(openTransactionId, "restore in"), "restore", table, rowId, cells, options);
|
|
639
|
+
}
|
|
640
|
+
connectUpstream() {
|
|
641
|
+
return unsupported("JavaScript upstream transport");
|
|
642
|
+
}
|
|
643
|
+
writeState(txId) {
|
|
644
|
+
const response = this.execute({ type: "writeState", txId });
|
|
645
|
+
if (response.type === "operationError")
|
|
646
|
+
throw foregroundOperationError(response);
|
|
647
|
+
if (response.type !== "writeState")
|
|
648
|
+
return unexpected("writeState", response.type);
|
|
649
|
+
return JSON.parse(response.stateJson);
|
|
650
|
+
}
|
|
651
|
+
updateLargeValues(table, rowId, patch, descriptors, updatedAtMs) {
|
|
652
|
+
const response = this.execute({
|
|
653
|
+
type: "updateLargeValues",
|
|
654
|
+
table,
|
|
655
|
+
rowId,
|
|
656
|
+
patch,
|
|
657
|
+
descriptorsJson: JSON.stringify(descriptors),
|
|
658
|
+
updatedAtMs,
|
|
659
|
+
});
|
|
660
|
+
if (response.type === "operationError")
|
|
661
|
+
throw foregroundOperationError(response);
|
|
662
|
+
if (response.type !== "transactionCommitted")
|
|
663
|
+
return unexpected("updateLargeValues", response.type);
|
|
664
|
+
return nativeWrite(this, response.txId, rowId);
|
|
665
|
+
}
|
|
666
|
+
beginStreamingMutation(table, rowId, cells, column, mutation = "insert", _author, _attribution, updatedAtMs, head, base, transaction) {
|
|
667
|
+
if (updatedAtMs !== undefined && (!Number.isSafeInteger(updatedAtMs) || updatedAtMs < 0)) {
|
|
668
|
+
throw new Error("updatedAtMs must be a non-negative safe integer");
|
|
669
|
+
}
|
|
670
|
+
const response = this.execute({
|
|
671
|
+
type: "beginStreamingMutation",
|
|
672
|
+
mutation,
|
|
673
|
+
table,
|
|
674
|
+
rowId,
|
|
675
|
+
cells,
|
|
676
|
+
column,
|
|
677
|
+
optionsJson: JSON.stringify({ updatedAtMs, head, base, transaction }),
|
|
678
|
+
});
|
|
679
|
+
if (response.type === "operationError")
|
|
680
|
+
throw foregroundOperationError(response);
|
|
681
|
+
if (response.type !== "streamingMutationOpened")
|
|
682
|
+
return unexpected("beginStreamingMutation", response.type);
|
|
683
|
+
const upload = response.upload;
|
|
684
|
+
let closed = false;
|
|
685
|
+
const assertOpen = () => {
|
|
686
|
+
if (closed)
|
|
687
|
+
throw new Error("streaming mutation is closed");
|
|
688
|
+
this.assertOpen();
|
|
689
|
+
};
|
|
690
|
+
return {
|
|
691
|
+
push: async (chunk) => {
|
|
692
|
+
assertOpen();
|
|
693
|
+
const pushed = await this.completeMutationOperation(this.execute({ type: "pushStreamingMutation", upload, chunk }));
|
|
694
|
+
if (pushed.type === "operationError")
|
|
695
|
+
throw foregroundOperationError(pushed);
|
|
696
|
+
if (pushed.type !== "streamingMutationPushed")
|
|
697
|
+
return unexpected("pushStreamingMutation", pushed.type);
|
|
698
|
+
},
|
|
699
|
+
finishInTransaction: async () => {
|
|
700
|
+
assertOpen();
|
|
701
|
+
const finished = await this.completeMutationOperation(this.execute({ type: "finishStreamingMutation", upload }));
|
|
702
|
+
closed = true;
|
|
703
|
+
if (finished.type === "operationError")
|
|
704
|
+
throw foregroundOperationError(finished);
|
|
705
|
+
if (finished.type !== "mutationStaged")
|
|
706
|
+
return unexpected("finishStreamingMutation", finished.type);
|
|
707
|
+
},
|
|
708
|
+
finish: async () => {
|
|
709
|
+
assertOpen();
|
|
710
|
+
let finished = this.execute({ type: "finishStreamingMutation", upload });
|
|
711
|
+
if (finished.type === "operationError")
|
|
712
|
+
throw foregroundOperationError(finished);
|
|
713
|
+
closed = true;
|
|
714
|
+
while (finished.type === "pending") {
|
|
715
|
+
const operation = finished.operation;
|
|
716
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
717
|
+
this.tick();
|
|
718
|
+
finished = this.execute({ type: "poll", operation });
|
|
719
|
+
}
|
|
720
|
+
if (finished.type === "operationError")
|
|
721
|
+
throw foregroundOperationError(finished);
|
|
722
|
+
if (finished.type !== "transactionCommitted")
|
|
723
|
+
return unexpected("finishStreamingMutation", finished.type);
|
|
724
|
+
return nativeWrite(this, finished.txId, rowId);
|
|
725
|
+
},
|
|
726
|
+
abort: async () => {
|
|
727
|
+
if (closed || this.closed)
|
|
728
|
+
return false;
|
|
729
|
+
const admitted = this.execute({ type: "abortStreamingMutation", upload });
|
|
730
|
+
if (admitted.type === "operationError")
|
|
731
|
+
throw foregroundOperationError(admitted);
|
|
732
|
+
closed = true;
|
|
733
|
+
const aborted = await this.completeMutationOperation(admitted);
|
|
734
|
+
if (aborted.type === "operationError")
|
|
735
|
+
throw foregroundOperationError(aborted);
|
|
736
|
+
if (aborted.type !== "streamingMutationAborted")
|
|
737
|
+
return unexpected("abortStreamingMutation", aborted.type);
|
|
738
|
+
return aborted.aborted;
|
|
739
|
+
},
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
async completeMutationOperation(response) {
|
|
743
|
+
while (response.type === "pending") {
|
|
744
|
+
const operation = response.operation;
|
|
745
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
746
|
+
this.tick();
|
|
747
|
+
response = this.execute({ type: "poll", operation });
|
|
748
|
+
}
|
|
749
|
+
return response;
|
|
750
|
+
}
|
|
751
|
+
directMutation(mutation, table, rowId, cells, options) {
|
|
752
|
+
if (mutation === "upsert" && options && "branch" in options)
|
|
753
|
+
throw new Error("upsert option `branch` is not supported; use `head`");
|
|
754
|
+
if (options?.updatedAtMs !== undefined &&
|
|
755
|
+
(!Number.isSafeInteger(options.updatedAtMs) || options.updatedAtMs < 0))
|
|
756
|
+
throw new Error("updatedAtMs must be a non-negative safe integer");
|
|
757
|
+
const { rowId: _rowId, author: _author, attribution: _attribution, ...wireOptions } = options ?? {};
|
|
758
|
+
const response = this.execute({
|
|
759
|
+
type: "directMutation",
|
|
760
|
+
mutation,
|
|
761
|
+
table,
|
|
762
|
+
rowId,
|
|
763
|
+
cells,
|
|
764
|
+
optionsJson: JSON.stringify(wireOptions),
|
|
765
|
+
});
|
|
766
|
+
if (response.type === "operationError")
|
|
767
|
+
throw foregroundOperationError(response);
|
|
768
|
+
if (response.type !== "mutationCommitted")
|
|
769
|
+
return unexpected(mutation, response.type);
|
|
770
|
+
return nativeWrite(this, response.txId, response.rowId);
|
|
771
|
+
}
|
|
772
|
+
stageMutation(transaction, mutation, table, rowId, cells, options) {
|
|
773
|
+
if (transaction.closed)
|
|
774
|
+
throw new Error("React Native native foreground transaction is closed");
|
|
775
|
+
if (mutation === "upsert" && options && "branch" in options) {
|
|
776
|
+
throw new Error("upsert option `branch` is not supported; use `head` (and optional `base`) for a branch view");
|
|
777
|
+
}
|
|
778
|
+
if (options?.updatedAtMs !== undefined &&
|
|
779
|
+
(!Number.isSafeInteger(options.updatedAtMs) || options.updatedAtMs < 0)) {
|
|
780
|
+
throw new Error("updatedAtMs must be a non-negative safe integer");
|
|
781
|
+
}
|
|
782
|
+
// Identity belongs to the admitted native capability, never the command.
|
|
783
|
+
const { rowId: _rowId, author: _author, attribution: _attribution, ...wireOptions } = options ?? {};
|
|
784
|
+
const response = this.execute({
|
|
785
|
+
type: "stageMutation",
|
|
786
|
+
transaction: transaction.handle,
|
|
787
|
+
mutation,
|
|
788
|
+
table,
|
|
789
|
+
rowId,
|
|
790
|
+
cells,
|
|
791
|
+
optionsJson: JSON.stringify(wireOptions),
|
|
792
|
+
});
|
|
793
|
+
if (response.type === "operationError")
|
|
794
|
+
throw foregroundOperationError(response);
|
|
795
|
+
if (mutation === "insert" && response.type === "inserted")
|
|
796
|
+
return response.rowId;
|
|
797
|
+
if (mutation !== "insert" && response.type === "mutationStaged")
|
|
798
|
+
return rowId;
|
|
799
|
+
return unexpected(mutation, response.type);
|
|
800
|
+
}
|
|
801
|
+
openTransaction(id, operation) {
|
|
802
|
+
const transaction = this.transactions.get(id);
|
|
803
|
+
if (!transaction || transaction.closed) {
|
|
804
|
+
throw new Error(`React Native native foreground cannot ${operation} unknown transaction ${id}`);
|
|
805
|
+
}
|
|
806
|
+
return transaction;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
function nativeWrite(db, txId, rowId = new Uint8Array(16)) {
|
|
810
|
+
const id = formatTransactionId(txId);
|
|
811
|
+
let closed = false;
|
|
812
|
+
return {
|
|
813
|
+
txId: id,
|
|
814
|
+
payload: new Uint8Array(),
|
|
815
|
+
rowId: rowId.slice(),
|
|
816
|
+
async wait(tier, observeOnly = false) {
|
|
817
|
+
if (closed)
|
|
818
|
+
throw new Error("write state is unavailable");
|
|
819
|
+
await db.waitForTransaction(txId, tier, observeOnly);
|
|
820
|
+
},
|
|
821
|
+
writeState: () => {
|
|
822
|
+
if (closed)
|
|
823
|
+
throw new Error("write state is unavailable");
|
|
824
|
+
return db.writeState(txId);
|
|
825
|
+
},
|
|
826
|
+
close: () => {
|
|
827
|
+
if (closed)
|
|
828
|
+
return false;
|
|
829
|
+
closed = true;
|
|
830
|
+
return true;
|
|
831
|
+
},
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
class NativeForegroundSubscription {
|
|
835
|
+
handle;
|
|
836
|
+
db;
|
|
837
|
+
closed = false;
|
|
838
|
+
pendingOperation;
|
|
839
|
+
constructor(handle, db) {
|
|
840
|
+
this.handle = handle;
|
|
841
|
+
this.db = db;
|
|
842
|
+
}
|
|
843
|
+
readAll() {
|
|
844
|
+
if (this.closed)
|
|
845
|
+
return [];
|
|
846
|
+
// Native core publication already materializes the canonical event before
|
|
847
|
+
// waking this owner. Keep this pull delivery-only: a foreground read must
|
|
848
|
+
// never run a full relay tick while the JS mutation call is returning.
|
|
849
|
+
const events = this.db.drain(this.handle, this.pendingOperation);
|
|
850
|
+
if (!Array.isArray(events)) {
|
|
851
|
+
this.pendingOperation = events.pendingOperation;
|
|
852
|
+
return { retryAfterMs: () => 0 };
|
|
853
|
+
}
|
|
854
|
+
this.pendingOperation = undefined;
|
|
855
|
+
// An empty batch is a ready native pull with no current event. Returning
|
|
856
|
+
// it lets NativeRuntimeAdapter finish the reader so the next native wake
|
|
857
|
+
// can restart it; a timer here recreates the old relay-polling latency.
|
|
858
|
+
return events;
|
|
859
|
+
}
|
|
860
|
+
close() {
|
|
861
|
+
if (this.closed)
|
|
862
|
+
return false;
|
|
863
|
+
this.closed = true;
|
|
864
|
+
return this.db.unsubscribe(this.handle);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* The error a failed foreground operation throws: the unchanged reason text as
|
|
869
|
+
* the message, plus the stable core `code` when a core error caused it.
|
|
870
|
+
*/
|
|
871
|
+
function foregroundOperationError(response) {
|
|
872
|
+
const error = new Error(response.reason);
|
|
873
|
+
if (response.code !== undefined)
|
|
874
|
+
Object.assign(error, { code: response.code });
|
|
875
|
+
if (response.reasonName !== undefined)
|
|
876
|
+
Object.assign(error, { reason: response.reasonName });
|
|
877
|
+
return error;
|
|
878
|
+
}
|
|
879
|
+
function unsupported(operation) {
|
|
880
|
+
throw new Error(`${REACT_NATIVE_UNSUPPORTED_ERROR}; ${operation} is unavailable`);
|
|
881
|
+
}
|
|
882
|
+
function unexpected(operation, response) {
|
|
883
|
+
throw new Error(`React Native native foreground ${operation} returned unexpected ${response} response`);
|
|
884
|
+
}
|
|
885
|
+
function formatTransactionId(bytes) {
|
|
886
|
+
if (bytes.byteLength !== 16)
|
|
887
|
+
throw new Error("React Native native foreground returned malformed transaction id");
|
|
888
|
+
const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
889
|
+
return hex;
|
|
890
|
+
}
|
|
891
|
+
/**
|
|
892
|
+
* Whether the native host refused a command it does not know. A native build
|
|
893
|
+
* sets the relay status as `error.code` (`invalid_command` for an unknown
|
|
894
|
+
* command); a lifecycle or encode failure is not a missing command. A build
|
|
895
|
+
* older than the code threw the same text for every failure, so without a
|
|
896
|
+
* code only that text says so.
|
|
897
|
+
*/
|
|
898
|
+
function rejectsCommand(error) {
|
|
899
|
+
const code = typeof error === "object" && error !== null ? error.code : undefined;
|
|
900
|
+
if (typeof code === "string")
|
|
901
|
+
return code === "invalid_command";
|
|
902
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
903
|
+
return message.includes("runtime failed during execute");
|
|
904
|
+
}
|
|
905
|
+
//# sourceMappingURL=native-foreground-db.js.map
|