jazz-tools 2.0.0-alpha.9 → 2.0.0-beta.0
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 +134 -7
- package/bin/jazz-tools.js +95 -68
- 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 +87 -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/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 +12 -0
- package/dist/backend/api.d.ts.map +1 -0
- package/dist/backend/api.js +11 -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 +94 -28
- package/dist/backend/create-jazz-context.d.ts.map +1 -1
- package/dist/backend/create-jazz-context.js +661 -67
- package/dist/backend/create-jazz-context.js.map +1 -1
- 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 +677 -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 -3
- package/dist/backend/index.d.ts.map +1 -1
- package/dist/backend/index.js +18 -2
- 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 +38 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +457 -265
- package/dist/cli.js.map +1 -1
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +5 -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 +53 -64
- 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 +127 -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-DUKUt96e.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz-broker-worker-C_mr9Omd.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm-BOvbCHn3.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm_bg-BG8gazqt.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 +191 -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 +19 -3
- package/dist/drivers/schema-wire.d.ts.map +1 -1
- package/dist/drivers/schema-wire.js +61 -11
- package/dist/drivers/schema-wire.js.map +1 -1
- package/dist/drivers/types.d.ts +166 -29
- package/dist/drivers/types.d.ts.map +1 -1
- package/dist/drivers/types.js +5 -2
- 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 +12 -0
- package/dist/expo/index.d.ts.map +1 -0
- package/dist/expo/index.js +10 -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 +21 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -12
- 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 +43 -7
- 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/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 +51 -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 -11
- package/dist/react/create-jazz-client.d.ts.map +1 -1
- package/dist/react/create-jazz-client.js +1 -47
- package/dist/react/create-jazz-client.js.map +1 -1
- package/dist/react/index.d.ts +14 -7
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +8 -6
- 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 -15
- package/dist/react/provider.d.ts.map +1 -1
- package/dist/react/provider.js +25 -5
- 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 +9 -4
- package/dist/react-core/index.d.ts.map +1 -1
- package/dist/react-core/index.js +10 -2
- package/dist/react-core/index.js.map +1 -1
- package/dist/react-core/provider.d.ts +48 -12
- package/dist/react-core/provider.d.ts.map +1 -1
- package/dist/react-core/provider.js +117 -13
- 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 +19 -9
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +13 -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 +19 -13
- package/dist/react-native/provider.d.ts.map +1 -1
- package/dist/react-native/provider.js +25 -5
- 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/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 -14
- package/dist/runtime/client-session.d.ts.map +1 -1
- package/dist/runtime/client-session.js +211 -195
- package/dist/runtime/client-session.js.map +1 -1
- package/dist/runtime/client.d.ts +721 -194
- package/dist/runtime/client.d.ts.map +1 -1
- package/dist/runtime/client.js +1213 -434
- 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 +857 -215
- package/dist/runtime/db.d.ts.map +1 -1
- package/dist/runtime/db.js +3474 -834
- 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 -13
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +14 -12
- 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 +390 -110
- 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 +163 -38
- 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 +156 -42
- 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 +48 -0
- package/dist/schema-builders.d.ts.map +1 -0
- package/dist/schema-builders.js +26 -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/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 +13 -0
- package/dist/solid/index.d.ts.map +1 -0
- package/dist/solid/index.js +9 -0
- package/dist/solid/index.ssr.js +9 -0
- package/dist/solid/provider.d.ts +25 -0
- package/dist/solid/provider.d.ts.map +1 -0
- package/dist/solid/provider.js +48 -0
- package/dist/solid/provider.js.map +1 -0
- package/dist/solid/provider.ssr.js +48 -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 +92 -14
- package/dist/subscriptions-orchestrator.d.ts.map +1 -1
- package/dist/subscriptions-orchestrator.js +390 -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/context.svelte.d.ts +19 -3
- package/dist/svelte/context.svelte.d.ts.map +1 -1
- package/dist/svelte/context.svelte.js +21 -5
- 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 -7
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +10 -7
- 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 +80 -0
- package/dist/thin/index.d.ts.map +1 -0
- package/dist/thin/index.js +219 -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/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 +13 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/index.js +9 -0
- package/dist/vue/index.js.map +1 -0
- package/dist/vue/provider.d.ts +50 -0
- package/dist/vue/provider.d.ts.map +1 -0
- package/dist/vue/provider.js +97 -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 +5 -0
- package/dist/web/lazy-local-first.d.ts.map +1 -0
- package/dist/web/lazy-local-first.js +8 -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 +299 -37
- 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/backend/create-jazz-context.test.d.ts +0 -2
- package/dist/backend/create-jazz-context.test.d.ts.map +0 -1
- package/dist/backend/create-jazz-context.test.js +0 -141
- package/dist/backend/create-jazz-context.test.js.map +0 -1
- 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 -914
- 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 -342
- 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 -180
- 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/dev-tools/dev-tools.d.ts +0 -15
- package/dist/dev-tools/dev-tools.d.ts.map +0 -1
- package/dist/dev-tools/dev-tools.js +0 -297
- package/dist/dev-tools/dev-tools.js.map +0 -1
- package/dist/dev-tools/extension-panel.d.ts +0 -19
- package/dist/dev-tools/extension-panel.d.ts.map +0 -1
- package/dist/dev-tools/extension-panel.js +0 -419
- package/dist/dev-tools/extension-panel.js.map +0 -1
- package/dist/dev-tools/index.d.ts +0 -3
- package/dist/dev-tools/index.d.ts.map +0 -1
- package/dist/dev-tools/index.js +0 -3
- package/dist/dev-tools/index.js.map +0 -1
- package/dist/dev-tools/protocol.d.ts +0 -49
- package/dist/dev-tools/protocol.d.ts.map +0 -1
- package/dist/dev-tools/protocol.js +0 -40
- package/dist/dev-tools/protocol.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.d.ts +0 -146
- package/dist/permissions/index.d.ts.map +0 -1
- package/dist/permissions/index.js +0 -1211
- package/dist/permissions/index.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 -149
- 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 -82
- 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 -135
- 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 -148
- 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 -191
- 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 -1210
- package/dist/runtime/cloud-server.integration.test.js.map +0 -1
- package/dist/runtime/dynamic-query.d.ts +0 -10
- package/dist/runtime/dynamic-query.d.ts.map +0 -1
- package/dist/runtime/dynamic-query.js +0 -11
- package/dist/runtime/dynamic-query.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 -1249
- 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 -385
- package/dist/runtime/row-transformer.test.js.map +0 -1
- package/dist/runtime/schema-fetch.d.ts +0 -17
- package/dist/runtime/schema-fetch.d.ts.map +0 -1
- package/dist/runtime/schema-fetch.js +0 -33
- package/dist/runtime/schema-fetch.js.map +0 -1
- package/dist/runtime/schema-fetch.test.d.ts +0 -2
- package/dist/runtime/schema-fetch.test.d.ts.map +0 -1
- package/dist/runtime/schema-fetch.test.js +0 -87
- package/dist/runtime/schema-fetch.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 -76
- 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 -222
- package/dist/runtime/value-converter.test.js.map +0 -1
- package/dist/runtime/worker-bridge.d.ts +0 -82
- package/dist/runtime/worker-bridge.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.js +0 -308
- 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 -284
- 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 -192
- 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/JazzSvelteProvider.svelte +0 -49
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts +0 -13
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts.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 -55
- 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 -158
- 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 -174
- 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/testing/relation-ir-test-helpers.d.ts +0 -3
- package/dist/testing/relation-ir-test-helpers.d.ts.map +0 -1
- package/dist/testing/relation-ir-test-helpers.js +0 -258
- package/dist/testing/relation-ir-test-helpers.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 -555
- package/dist/worker/jazz-worker.js.map +0 -1
- package/dist/worker/jazz-worker.ts +0 -630
- 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
package/dist/runtime/db.d.ts
CHANGED
|
@@ -1,54 +1,113 @@
|
|
|
1
|
+
import type { ConnectionRequirement } from "./connection-manager/types.js";
|
|
2
|
+
import type { DbAccessContext } from "./db-access-context.js";
|
|
3
|
+
import { type SnapshotRef } from "./snapshot-ref.js";
|
|
4
|
+
import type { AccountHandle } from "../accounts/state.js";
|
|
1
5
|
/**
|
|
2
6
|
* High-level database class for typed queries and mutations.
|
|
3
7
|
*
|
|
4
8
|
* Connects QueryBuilder to JazzClient for actual query execution.
|
|
5
9
|
* Handles query translation, execution, and result transformation.
|
|
6
10
|
*
|
|
7
|
-
* Key design:
|
|
8
|
-
* - createDb() is async (pre-loads
|
|
9
|
-
* - insert/update/
|
|
11
|
+
* Key design:
|
|
12
|
+
* - createDb() is async (pre-loads the runtime source)
|
|
13
|
+
* - insert/update/delete are sync (local-first immediate writes, no durability wait)
|
|
10
14
|
* - all/one are async (need storage I/O for queries)
|
|
11
15
|
*/
|
|
12
16
|
import type { WasmSchema, StorageDriver } from "../drivers/types.js";
|
|
13
|
-
import type { Session } from "./context.js";
|
|
14
|
-
import { JazzClient, type
|
|
15
|
-
import { type
|
|
17
|
+
import type { RuntimeSourcesConfig, Session } from "./context.js";
|
|
18
|
+
import { SerializableWriteHandle, SerializableWriteResult, WriteResult, JazzClient, type TransactionAdmission, type MutationErrorEvent, WriteHandle, type TransactionKind, type Runtime, type ReadTierOptions, type InternalReadTier, type OpenTransactionId, type ExplainedRows, type PermissionAdvice } from "./client.js";
|
|
19
|
+
import { type SyncStatus } from "./sync-status.js";
|
|
20
|
+
import type { TextAnchors } from "./text-anchors.js";
|
|
21
|
+
import { type BrowserForegroundNodeLease, type RuntimeSource } from "./runtime-source.js";
|
|
22
|
+
import type { AuthFailureReason } from "./auth-state.js";
|
|
23
|
+
import { type ColumnTransformMap, type ColumnTransformRegistry } from "./column-transforms.js";
|
|
24
|
+
export type { ColumnTransform, ColumnTransformMap, ColumnTransformRegistry, } from "./column-transforms.js";
|
|
25
|
+
import { type SubscriptionDelta, type ValueSplices } from "./subscription-manager.js";
|
|
26
|
+
import { type AuthState, type AuthStateStoreOptions } from "./auth-state.js";
|
|
27
|
+
import { type LocalFirstLoader } from "./local-first-upgrade.js";
|
|
28
|
+
import { type DbReplacedReason } from "./db-replaced-error.js";
|
|
29
|
+
type WasmLogLevel = "error" | "warn" | "info" | "debug" | "trace";
|
|
30
|
+
type AnyRuntimeSource = RuntimeSource<any>;
|
|
16
31
|
/**
|
|
17
32
|
* Configuration for creating a Db instance.
|
|
18
33
|
*/
|
|
19
|
-
export
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
/**
|
|
34
|
+
export type DbConfig = {
|
|
35
|
+
/** @internal Assigned by validated account-handle context creation. */
|
|
36
|
+
accountId?: string;
|
|
37
|
+
/** @internal Handle-derived enrollment authority, independent of active transport. */
|
|
38
|
+
accountRegistryAuthority?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Application identifier. Backend and test code only: a browser client
|
|
41
|
+
* leaves it out, and its local data, secret and identity are scoped by the
|
|
42
|
+
* endpoint it syncs with (see `clientScope`).
|
|
43
|
+
*/
|
|
44
|
+
appId?: string;
|
|
45
|
+
/**
|
|
46
|
+
* For apps that already have local-first users: the app id their secrets
|
|
47
|
+
* and accounts were created under, so they keep them. New apps leave it out.
|
|
48
|
+
*/
|
|
49
|
+
scope?: string;
|
|
50
|
+
/** Storage driver mode (defaults to persistent). */
|
|
23
51
|
driver?: StorageDriver;
|
|
24
52
|
/** Optional server URL for sync */
|
|
25
53
|
serverUrl?: string;
|
|
26
|
-
/** Optional
|
|
27
|
-
|
|
54
|
+
/** Optional runtime source overrides for WASM loading. */
|
|
55
|
+
runtimeSources?: RuntimeSourcesConfig;
|
|
28
56
|
/** Environment (e.g., "dev", "prod") */
|
|
29
57
|
env?: string;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
|
|
58
|
+
/** Admin secret for catalogue sync */
|
|
59
|
+
adminSecret?: string;
|
|
60
|
+
/** @internal Server-only admission credential; client DbConfig must never carry it. */
|
|
61
|
+
backendSecret?: never;
|
|
62
|
+
/** IndexedDB database name for browser persistence (default: appId). */
|
|
63
|
+
dbName?: string;
|
|
34
64
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
65
|
+
* Initial-sync durability boundary, in writes (default: 512 for clients).
|
|
66
|
+
* A crash can lose up to M - 1 writes since the previous durable IndexedDB
|
|
67
|
+
* page commit.
|
|
38
68
|
*/
|
|
39
|
-
|
|
69
|
+
initialSyncFlushEvery?: number;
|
|
70
|
+
/** Optional WASM tracing level for benchmark/debug scenarios (default: "warn"). */
|
|
71
|
+
logLevel?: WasmLogLevel;
|
|
72
|
+
/** Optional OTLP/HTTP collector URL for WASM trace telemetry. */
|
|
73
|
+
telemetryCollectorUrl?: string;
|
|
74
|
+
/** Enable runtime tracing for DevTools-only diagnostics. */
|
|
75
|
+
devMode?: boolean;
|
|
40
76
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
77
|
+
* Slow-query log: queries whose runs take at least this many milliseconds
|
|
78
|
+
* are reported with `console.warn`, one line per query shape with its plan
|
|
79
|
+
* and the index that would likely make it fast (default 50; 0 turns the
|
|
80
|
+
* log off).
|
|
45
81
|
*/
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
82
|
+
slowQueryThresholdMs?: number;
|
|
83
|
+
/**
|
|
84
|
+
* How many changed rows a subscription's undelivered deltas may hold before
|
|
85
|
+
* they are coalesced into one update of its current result, marked
|
|
86
|
+
* `reason: "backlog"` (default 10000). It bounds the memory a subscriber
|
|
87
|
+
* that falls behind a fast writer holds, and cannot be turned off. A query
|
|
88
|
+
* can set its own with `backlogRows`.
|
|
89
|
+
*/
|
|
90
|
+
subscriptionBacklogRows?: number;
|
|
91
|
+
} & ({
|
|
92
|
+
/** Local-first auth via a local seed. */
|
|
93
|
+
secret?: string;
|
|
94
|
+
jwtToken?: never;
|
|
95
|
+
cookieSession?: never;
|
|
96
|
+
} | {
|
|
97
|
+
secret?: never;
|
|
98
|
+
/** JWT token for server authentication. */
|
|
99
|
+
jwtToken?: string;
|
|
100
|
+
cookieSession?: never;
|
|
101
|
+
} | {
|
|
102
|
+
secret?: never;
|
|
103
|
+
jwtToken?: never;
|
|
104
|
+
/** Mirrored session for local permission evaluation when sync auth uses cookies. */
|
|
105
|
+
cookieSession?: Session;
|
|
106
|
+
});
|
|
107
|
+
/** @internal Resolve the caller-selected logical base for browser persistence. */
|
|
108
|
+
export declare function resolvePersistentDbBaseName(config: DbConfig): string;
|
|
109
|
+
/** @internal Derive the physical browser persistence namespace for this Db config. */
|
|
110
|
+
export declare function resolveDefaultPersistentDbName(config: DbConfig): string;
|
|
52
111
|
/**
|
|
53
112
|
* Interface that QueryBuilder classes implement.
|
|
54
113
|
* Generated builders expose these internal properties for Db to use.
|
|
@@ -58,14 +117,160 @@ export interface QueryBuilder<T> {
|
|
|
58
117
|
readonly _table: string;
|
|
59
118
|
/** Schema reference for translation and transformation */
|
|
60
119
|
readonly _schema: WasmSchema;
|
|
120
|
+
/** Optional TypeScript-only per-column transforms carried by typed query handles. */
|
|
121
|
+
readonly _columnTransforms?: ColumnTransformMap;
|
|
122
|
+
/** All app transforms, retained outside the serialised query representation. */
|
|
123
|
+
readonly _columnTransformsByTable?: ColumnTransformRegistry;
|
|
61
124
|
/** Build and return the query as JSON */
|
|
62
125
|
_build(): string;
|
|
63
126
|
/** @internal Phantom brand — enables TypeScript to infer T from usage */
|
|
64
127
|
readonly _rowType: T;
|
|
65
128
|
}
|
|
66
|
-
export
|
|
67
|
-
|
|
129
|
+
export type BranchValue = string | number | bigint;
|
|
130
|
+
export type QualifiedBranch = Record<string, BranchValue>;
|
|
131
|
+
export type Branch = BranchValue | QualifiedBranch;
|
|
132
|
+
export type BranchBase = Branch | readonly [branch: Branch, snapshot: SnapshotRef];
|
|
133
|
+
export type QueryOptions = ReadTierOptions & {
|
|
134
|
+
/** Current branch coordinate. A scalar selects a table with one `branchBy` column. */
|
|
135
|
+
branch?: Branch;
|
|
136
|
+
/** Optional live base, or `[base, snapshotRef]` for a frozen base. */
|
|
137
|
+
base?: BranchBase;
|
|
138
|
+
/**
|
|
139
|
+
* TEXT or BYTEA columns whose changes a subscription also delivers as splices
|
|
140
|
+
* (see {@link DbSubscriptionUpdate}). One-shot reads ignore it.
|
|
141
|
+
*/
|
|
142
|
+
splices?: readonly string[];
|
|
143
|
+
/**
|
|
144
|
+
* How many changed rows a subscription's undelivered deltas may hold before
|
|
145
|
+
* they are replaced by one update of the current result (marked
|
|
146
|
+
* `reason: "backlog"`). Overrides {@link DbConfig.subscriptionBacklogRows}
|
|
147
|
+
* (default 10000). A whole number, at least 1. One-shot reads ignore it.
|
|
148
|
+
*/
|
|
149
|
+
backlogRows?: number;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Callbacks for a public live query subscription.
|
|
153
|
+
*
|
|
154
|
+
* The function form of {@link Db.subscribe} remains supported for compatibility,
|
|
155
|
+
* but the object form is preferred because it makes terminal failures explicit.
|
|
156
|
+
* After `onError` runs, that subscription will not publish further values.
|
|
157
|
+
*/
|
|
158
|
+
export interface DbSubscriptionCallbacks<T extends {
|
|
159
|
+
id: string;
|
|
160
|
+
}> {
|
|
161
|
+
/** Called with the complete current result whenever the query changes. */
|
|
162
|
+
onUpdate: (rows: T[], update: DbSubscriptionUpdate) => void;
|
|
163
|
+
/** Called once when the subscription terminates with an error. */
|
|
164
|
+
onError?: (error: Error) => void;
|
|
165
|
+
}
|
|
166
|
+
/** What changed in one subscription update, beyond the complete result. */
|
|
167
|
+
export interface DbSubscriptionUpdate {
|
|
168
|
+
/**
|
|
169
|
+
* Per updated row id, the splices of each column named in the `splices`
|
|
170
|
+
* option. They turn the value the previous update showed into the new one,
|
|
171
|
+
* and apply in order: each splice's offsets are in the value the earlier ones
|
|
172
|
+
* produced. TEXT splices count UTF-16 code units and insert a string; BYTEA
|
|
173
|
+
* splices count bytes and insert a `Uint8Array`. On a range select they are
|
|
174
|
+
* relative to the selected window. A column the update left unchanged has
|
|
175
|
+
* an empty list. A row or column without an entry has splices that could
|
|
176
|
+
* not be computed on this device (its previous version is no longer held,
|
|
177
|
+
* say): read its new value from the rows instead.
|
|
178
|
+
*/
|
|
179
|
+
splices: ReadonlyMap<string, ValueSplices>;
|
|
180
|
+
/**
|
|
181
|
+
* `"backlog"` when this update replaced the result wholesale because the
|
|
182
|
+
* subscriber fell too far behind to be told every change (more than
|
|
183
|
+
* `backlogRows` changed rows waited undelivered): the rows are current,
|
|
184
|
+
* the intermediate states were skipped, and `splices` is empty.
|
|
185
|
+
*/
|
|
186
|
+
reason?: "backlog";
|
|
187
|
+
}
|
|
188
|
+
/** Package-internal callbacks for incremental subscription consumers. */
|
|
189
|
+
export interface DbDeltaSubscriptionCallbacks<T extends {
|
|
190
|
+
id: string;
|
|
191
|
+
}> {
|
|
192
|
+
onDelta: (delta: SubscriptionDelta<T>) => void;
|
|
193
|
+
onError?: (error: Error) => void;
|
|
194
|
+
}
|
|
195
|
+
/** Package-internal subscription surface used by Jazz's UI bindings. */
|
|
196
|
+
export interface DbSubscriptionSource {
|
|
197
|
+
/**
|
|
198
|
+
* Prepare public query options before they become part of a subscription
|
|
199
|
+
* cache key. The Inspector attachment uses this private seam to add its
|
|
200
|
+
* local-read capability; applications never receive a constructor for it.
|
|
201
|
+
*/
|
|
202
|
+
prepareQueryOptions?(options?: QueryOptions): QueryOptions | undefined;
|
|
203
|
+
all?<T extends {
|
|
204
|
+
id: string;
|
|
205
|
+
}>(query: QueryBuilder<T>, options?: QueryOptions): Promise<T[]> | T[];
|
|
206
|
+
subscribeDelta<T extends {
|
|
207
|
+
id: string;
|
|
208
|
+
}>(query: QueryBuilder<T>, callbacks: ((delta: SubscriptionDelta<T>) => void) | DbDeltaSubscriptionCallbacks<T>, options?: QueryOptions): SubscriptionHandle;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Cancels a subscription. Browser-worker followers also expose the initial
|
|
212
|
+
* admission boundary so framework bindings can surface an asynchronous open
|
|
213
|
+
* failure through their ordinary subscription error state rather than as an
|
|
214
|
+
* ambient exception.
|
|
215
|
+
*
|
|
216
|
+
* @internal
|
|
217
|
+
*/
|
|
218
|
+
export type SubscriptionHandle = (() => void) & {
|
|
219
|
+
readonly ready?: Promise<void>;
|
|
220
|
+
};
|
|
221
|
+
/** @internal Retrieve the incremental source associated with a public Db. */
|
|
222
|
+
export declare function getDbSubscriptionSource(db: Db): DbSubscriptionSource;
|
|
223
|
+
interface TimestampOverrideOptions {
|
|
224
|
+
updatedAt?: number;
|
|
225
|
+
}
|
|
226
|
+
export interface InsertOptions extends TimestampOverrideOptions {
|
|
227
|
+
id?: string;
|
|
228
|
+
branch?: Branch;
|
|
229
|
+
}
|
|
230
|
+
export type StreamingInsertOptions = Omit<InsertOptions, "branch">;
|
|
231
|
+
export interface RestoreOptions extends TimestampOverrideOptions {
|
|
232
|
+
branch?: Branch;
|
|
233
|
+
}
|
|
234
|
+
export interface UpdateOptions extends TimestampOverrideOptions {
|
|
235
|
+
branch?: Branch;
|
|
236
|
+
base?: BranchBase;
|
|
237
|
+
}
|
|
238
|
+
/** `update` options, with `editedFrom` for the columns `TReplacements` writes. */
|
|
239
|
+
export type UpdateEditOptions<TReplacements extends object> = UpdateOptions & {
|
|
240
|
+
/**
|
|
241
|
+
* For text-merge columns written whole by an editor: the value each was
|
|
242
|
+
* edited from, which the editor last showed or wrote. When the column
|
|
243
|
+
* holds a newer value (a merge that reached this store before the editor
|
|
244
|
+
* showed it), the write is merged over it instead of undoing it. A column
|
|
245
|
+
* left `undefined` here is written as usual.
|
|
246
|
+
*/
|
|
247
|
+
editedFrom?: {
|
|
248
|
+
readonly [TColumn in keyof TReplacements]?: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
type TypedUpdateOptionsWithDiffs<TReplacements extends object, TDiffs> = UpdateEditOptions<TReplacements> & {
|
|
252
|
+
applyDiffs?: TDiffs & {
|
|
253
|
+
[TColumn in keyof TReplacements]?: never;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
export interface DeleteOptions extends TimestampOverrideOptions {
|
|
257
|
+
branch?: Branch;
|
|
258
|
+
base?: BranchBase;
|
|
259
|
+
}
|
|
260
|
+
export declare function limitQueryToOne<T>(query: QueryBuilder<T>): QueryBuilder<T>;
|
|
261
|
+
export interface ActiveQuerySubscriptionTrace {
|
|
262
|
+
id: string;
|
|
263
|
+
query: string;
|
|
264
|
+
table: string;
|
|
265
|
+
branches: string[];
|
|
266
|
+
tier: InternalReadTier;
|
|
267
|
+
createdAt: string;
|
|
268
|
+
stack?: string;
|
|
68
269
|
}
|
|
270
|
+
export interface LogoutOptions {
|
|
271
|
+
wipeData?: boolean;
|
|
272
|
+
}
|
|
273
|
+
type ActiveQuerySubscriptionTraceListener = (traces: readonly ActiveQuerySubscriptionTrace[]) => void;
|
|
69
274
|
/**
|
|
70
275
|
* Interface for table proxies used with mutations.
|
|
71
276
|
* Generated table constants implement this interface.
|
|
@@ -73,16 +278,159 @@ export interface QueryOptions extends QueryExecutionOptions {
|
|
|
73
278
|
* @typeParam T - The row type (e.g., `{ id: string; title: string; done: boolean }`)
|
|
74
279
|
* @typeParam Init - The init type for inserts (e.g., `{ title: string; done: boolean }`)
|
|
75
280
|
*/
|
|
76
|
-
export interface TableProxy<T, Init> {
|
|
281
|
+
export interface TableProxy<T, Init, StreamingInit = unknown, StreamingUpdate = unknown, LargeValueUpdate = unknown> {
|
|
77
282
|
/** Table name */
|
|
78
283
|
readonly _table: string;
|
|
79
284
|
/** Schema reference */
|
|
80
285
|
readonly _schema: WasmSchema;
|
|
286
|
+
/** Optional TypeScript-only per-column transforms carried by typed table handles. */
|
|
287
|
+
readonly _columnTransforms?: ColumnTransformMap;
|
|
81
288
|
/** @internal Phantom brand — enables TypeScript to infer T from usage */
|
|
82
289
|
readonly _rowType: T;
|
|
83
290
|
/** @internal Phantom brand — enables TypeScript to infer Init from usage */
|
|
84
291
|
readonly _initType: Init;
|
|
292
|
+
/** @internal Phantom brand — enables exact streaming-insert inference. */
|
|
293
|
+
readonly _streamingInitType?: StreamingInit;
|
|
294
|
+
/** @internal Phantom brand — enables exact streaming update/upsert inference. */
|
|
295
|
+
readonly _streamingUpdateType?: StreamingUpdate;
|
|
296
|
+
/** @internal Phantom — preserves typed page-edit descriptors on table handles. */
|
|
297
|
+
readonly _largeValueUpdateType?: LargeValueUpdate;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* @internal The row an insert or restore of `data` as row `id` writes, as
|
|
301
|
+
* the table's schema alone decides it: for writes made before a client
|
|
302
|
+
* exists (`createJazz`'s `db` while its store opens).
|
|
303
|
+
*/
|
|
304
|
+
export declare function previewWrittenRow<T, Init>(table: TableProxy<T, Init>, operation: "Insert" | "Restore", id: string, data: Init): T;
|
|
305
|
+
/** @internal A fresh row id, as an insert without one would get. */
|
|
306
|
+
export declare function reserveRowId(): string;
|
|
307
|
+
export type { TransactionKind } from "./client.js";
|
|
308
|
+
type TransactionCommitHandle<TKind extends TransactionKind> = TKind extends "serializable" ? SerializableWriteHandle : WriteHandle;
|
|
309
|
+
type TransactionWriteResult<TResult, TKind extends TransactionKind> = TKind extends "serializable" ? SerializableWriteResult<TResult> : WriteResult<TResult>;
|
|
310
|
+
type RunInTransactionResult<TResult, TKind extends TransactionKind> = Promise<TransactionWriteResult<Awaited<TResult>, TKind>>;
|
|
311
|
+
export type Scoped<TTransaction> = Omit<TTransaction, "commit" | "rollback">;
|
|
312
|
+
export declare function runInTransaction<TResult, TKind extends TransactionKind>(transaction: Transaction<TKind>, callback: (target: Scoped<Transaction<TKind>>) => TResult, client: JazzClient | (() => JazzClient)): RunInTransactionResult<TResult, TKind>;
|
|
313
|
+
/**
|
|
314
|
+
* Groups a set of writes as either a mergeable or serializable transaction (see {@link TransactionKind}).
|
|
315
|
+
*/
|
|
316
|
+
export declare class Transaction<TKind extends TransactionKind = TransactionKind> {
|
|
317
|
+
readonly kind: TKind;
|
|
318
|
+
private readonly resolveClient;
|
|
319
|
+
private readonly context;
|
|
320
|
+
/** @internal Install the prerequisite before binding the owner. */
|
|
321
|
+
static createWithAdmission<TKind extends TransactionKind>(kind: TKind, resolveClient: (schema: WasmSchema) => JazzClient, context: DbAccessContext | null, ownerClient: JazzClient | undefined, prerequisite: TransactionAdmission | undefined): Transaction<TKind>;
|
|
322
|
+
private openingPrerequisite?;
|
|
323
|
+
private readonly pendingReads;
|
|
324
|
+
private committing;
|
|
325
|
+
constructor(kind: TKind, resolveClient: (schema: WasmSchema) => JazzClient, context?: DbAccessContext | null, ownerClient?: JazzClient);
|
|
326
|
+
private bindTable;
|
|
327
|
+
private bindQuery;
|
|
328
|
+
private requireBinding;
|
|
329
|
+
private bindOwnerClient;
|
|
330
|
+
openTransactionId(): OpenTransactionId;
|
|
331
|
+
/**
|
|
332
|
+
* Commit this transaction.
|
|
333
|
+
*/
|
|
334
|
+
commit(): TransactionCommitHandle<TKind>;
|
|
335
|
+
/**
|
|
336
|
+
* @internal The callback form's commit: a mergeable transaction that staged
|
|
337
|
+
* no write is rolled back instead, as there is nothing to commit, and
|
|
338
|
+
* `"empty"` is returned. Anything else commits as {@link commit} does.
|
|
339
|
+
*/
|
|
340
|
+
commitUnlessEmpty(): Promise<TransactionCommitHandle<TKind> | "empty">;
|
|
341
|
+
/**
|
|
342
|
+
* Roll back this transaction locally.
|
|
343
|
+
*
|
|
344
|
+
* Pending rows remain pending, but this transaction can no longer be committed.
|
|
345
|
+
*
|
|
346
|
+
* Only available on transactions created with {@link Db.beginTransaction}.
|
|
347
|
+
* When using {@link Db.transaction}, throw an error inside the callback to roll back.
|
|
348
|
+
*/
|
|
349
|
+
rollback(): Promise<boolean>;
|
|
350
|
+
/**
|
|
351
|
+
* Stream one Text, Json, or Bytea column into a new row, staged in this
|
|
352
|
+
* transaction. Resolves with the row id once the stream is consumed; the
|
|
353
|
+
* commit waits for it and fails if the stream did.
|
|
354
|
+
*
|
|
355
|
+
* The streamed value is held for the transaction for at most the store's
|
|
356
|
+
* staging max age (10 minutes by default) after the stream finishes. A
|
|
357
|
+
* transaction left open longer than that is refused at commit, with
|
|
358
|
+
* `streaming upload expired`, so its storage is never held indefinitely;
|
|
359
|
+
* start it again. The same applies to `updateStreaming` and
|
|
360
|
+
* `upsertStreaming`.
|
|
361
|
+
*/
|
|
362
|
+
insertStreaming<T, Init, StreamingInit>(table: TableProxy<T, Init, StreamingInit>, data: StreamingInit, options?: StreamingInsertOptions): Promise<{
|
|
363
|
+
id: string;
|
|
364
|
+
}>;
|
|
365
|
+
/** Stream one large column of an existing row, staged in this transaction. */
|
|
366
|
+
updateStreaming<T, Init, StreamingInit, StreamingUpdate>(table: TableProxy<T, Init, StreamingInit, StreamingUpdate>, id: string, data: StreamingUpdate, options?: UpdateOptions): Promise<{
|
|
367
|
+
id: string;
|
|
368
|
+
}>;
|
|
369
|
+
/** Stream one large column of a row, creating it if absent, staged in this transaction. */
|
|
370
|
+
upsertStreaming<T, Init, StreamingInit, StreamingUpdate>(table: TableProxy<T, Init, StreamingInit, StreamingUpdate>, id: string, data: StreamingUpdate, options?: UpdateOptions): Promise<{
|
|
371
|
+
id: string;
|
|
372
|
+
}>;
|
|
373
|
+
private streamingMutation;
|
|
374
|
+
/**
|
|
375
|
+
* Insert a new row into a table.
|
|
376
|
+
*
|
|
377
|
+
* The insert is scoped to this transaction, and will only be globally visible
|
|
378
|
+
* once it's committed.
|
|
379
|
+
*/
|
|
380
|
+
insert<T, Init>(table: TableProxy<T, Init>, data: Init, options?: InsertOptions): T;
|
|
381
|
+
/**
|
|
382
|
+
* Restore a soft-deleted row.
|
|
383
|
+
*
|
|
384
|
+
* The restore is scoped to this transaction, and will only be globally visible
|
|
385
|
+
* once it's committed.
|
|
386
|
+
*/
|
|
387
|
+
restore<T, Init>(table: TableProxy<T, Init>, id: string, data: Init, options?: RestoreOptions): T;
|
|
388
|
+
private prepareCreation;
|
|
389
|
+
/**
|
|
390
|
+
* Create or update a row with a caller-supplied id.
|
|
391
|
+
*
|
|
392
|
+
* The upsert is scoped to this transaction, and will only be globally visible
|
|
393
|
+
* once it's committed.
|
|
394
|
+
*/
|
|
395
|
+
upsert<T, Init>(table: TableProxy<T, Init>, id: string, data: Partial<Init>, options?: UpdateOptions): void;
|
|
396
|
+
/**
|
|
397
|
+
* Update an existing row in a table.
|
|
398
|
+
*
|
|
399
|
+
* The update is scoped to this transaction, and will only be globally visible
|
|
400
|
+
* once it's committed.
|
|
401
|
+
*/
|
|
402
|
+
update<T, Init, StreamingInit, StreamingUpdate, LargeValueUpdate, TReplacements extends Partial<Init>>(table: TableProxy<T, Init, StreamingInit, StreamingUpdate, LargeValueUpdate> & {
|
|
403
|
+
readonly _largeValueUpdateType: LargeValueUpdate;
|
|
404
|
+
}, id: string, data: TReplacements, options?: TypedUpdateOptionsWithDiffs<TReplacements, LargeValueUpdate>): void;
|
|
405
|
+
update<T, Init>(table: TableProxy<T, Init>, id: string, data: Partial<Init>, options?: UpdateEditOptions<Partial<Init>>): void;
|
|
406
|
+
private prepareMutation;
|
|
407
|
+
/**
|
|
408
|
+
* Delete an existing row from a table.
|
|
409
|
+
*
|
|
410
|
+
* The delete is scoped to this transaction, and will only be globally visible
|
|
411
|
+
* once it's committed.
|
|
412
|
+
*/
|
|
413
|
+
delete<T, Init>(table: TableProxy<T, Init>, id: string, options?: DeleteOptions): void;
|
|
414
|
+
/**
|
|
415
|
+
* Execute a query and return all matching rows.
|
|
416
|
+
*
|
|
417
|
+
* Read data is scoped to this transaction.
|
|
418
|
+
*/
|
|
419
|
+
all<T>(query: QueryBuilder<T>, options?: QueryOptions): Promise<T[]>;
|
|
420
|
+
private readAll;
|
|
421
|
+
/**
|
|
422
|
+
* Execute a query with a limit of one and return the first matching row, or null.
|
|
423
|
+
*
|
|
424
|
+
* Read data is scoped to this transaction.
|
|
425
|
+
*/
|
|
426
|
+
one<T>(query: QueryBuilder<T>, options?: QueryOptions): Promise<T | null>;
|
|
85
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
* Transaction object available inside {@link Db.transaction}'s callback.
|
|
430
|
+
*/
|
|
431
|
+
export type TransactionScope<TKind extends TransactionKind = TransactionKind> = Scoped<Transaction<TKind>>;
|
|
432
|
+
/** @internal The compiler opts in before staging any operations. */
|
|
433
|
+
export declare function beginDbTransactionAfter(db: Db, prepare: TransactionAdmission): Transaction<"serializable">;
|
|
86
434
|
/**
|
|
87
435
|
* High-level database interface for typed queries and mutations.
|
|
88
436
|
*
|
|
@@ -90,209 +438,409 @@ export interface TableProxy<T, Init> {
|
|
|
90
438
|
* ```typescript
|
|
91
439
|
* const db = await createDb({ appId: "my-app", driver });
|
|
92
440
|
*
|
|
93
|
-
* //
|
|
94
|
-
* const
|
|
95
|
-
* db.update(app.todos, id, { done: true });
|
|
96
|
-
* db.
|
|
441
|
+
* // Mutations
|
|
442
|
+
* const { value: inserted } = db.insert(app.todos, { title: "Buy milk", done: false });
|
|
443
|
+
* db.update(app.todos, inserted.id, { done: true });
|
|
444
|
+
* db.delete(app.todos, inserted.id);
|
|
97
445
|
*
|
|
98
446
|
* // Async queries (need storage I/O)
|
|
99
447
|
* const todos = await db.all(app.todos.where({ done: false }));
|
|
100
|
-
* const todo = await db.one(app.todos.where({ id }));
|
|
448
|
+
* const todo = await db.one(app.todos.where({ id: inserted.id }));
|
|
101
449
|
*
|
|
102
450
|
* // Subscriptions
|
|
103
|
-
* const unsubscribe = db.
|
|
104
|
-
* console.log("All todos:",
|
|
105
|
-
* console.log("Changes:", delta.delta);
|
|
451
|
+
* const unsubscribe = db.subscribe(app.todos, (todos) => {
|
|
452
|
+
* console.log("All todos:", todos);
|
|
106
453
|
* });
|
|
107
454
|
* ```
|
|
108
455
|
*/
|
|
456
|
+
export interface ShutdownOptions {
|
|
457
|
+
/** Wait for pending writes to reach the core before releasing resources. */
|
|
458
|
+
waitForSync?: boolean;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Where a {@link Db} is in its life. It only moves forward:
|
|
462
|
+
*
|
|
463
|
+
* - `open`: it reads and writes. A graceful shutdown (`waitForSync`) drains
|
|
464
|
+
* here first: while it waits for pending writes to upload, the Db takes no
|
|
465
|
+
* new work, but its connection stays up and keeps recovering, since the
|
|
466
|
+
* upload needs it. A drain that fails or is cancelled rejects with a
|
|
467
|
+
* {@link GracefulShutdownSyncError} and leaves the Db open: the shutdown
|
|
468
|
+
* never started, so nothing moved back, and the app may retry it (an
|
|
469
|
+
* offline sign-out does).
|
|
470
|
+
* - `closing`: teardown started. Final: nothing reopens the Db, and its
|
|
471
|
+
* connection manager stops recovering its connection.
|
|
472
|
+
* - `closed`: teardown ended. If it failed, the shutdown promise says so;
|
|
473
|
+
* the Db stays closed either way.
|
|
474
|
+
*/
|
|
475
|
+
export type DbPhase = "open" | "closing" | "closed";
|
|
109
476
|
export declare class Db {
|
|
110
|
-
private
|
|
477
|
+
#private;
|
|
111
478
|
private config;
|
|
112
|
-
private
|
|
113
|
-
private
|
|
114
|
-
private
|
|
115
|
-
private
|
|
116
|
-
private
|
|
117
|
-
private
|
|
118
|
-
private
|
|
119
|
-
|
|
120
|
-
private
|
|
121
|
-
|
|
122
|
-
private
|
|
123
|
-
|
|
124
|
-
private
|
|
125
|
-
|
|
126
|
-
private
|
|
127
|
-
|
|
128
|
-
private
|
|
129
|
-
|
|
130
|
-
private
|
|
131
|
-
|
|
132
|
-
private readonly
|
|
133
|
-
private readonly
|
|
134
|
-
private
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
479
|
+
private readonly runtimeSource;
|
|
480
|
+
private readonly authStateStore;
|
|
481
|
+
private connection;
|
|
482
|
+
private _localFirstSecret;
|
|
483
|
+
private localFirstRefreshOwned;
|
|
484
|
+
private readonly localFirstRenewals;
|
|
485
|
+
private localFirstRefreshTimer;
|
|
486
|
+
/** See {@link DbPhase}. Only {@link beginTeardown} and its end move it. */
|
|
487
|
+
private phase;
|
|
488
|
+
/** A graceful shutdown waiting for pending writes, while still `open`. */
|
|
489
|
+
private gracefulDrain;
|
|
490
|
+
/** Teardown's outcome, from the moment the Db enters `closing`. */
|
|
491
|
+
private teardown;
|
|
492
|
+
/** Set once the session that owned this Db moved on to another one. */
|
|
493
|
+
private replaced;
|
|
494
|
+
/** Ends each live subscription with a terminal error. */
|
|
495
|
+
private readonly liveSubscriptionEnders;
|
|
496
|
+
/** The Db this one hands its work to after the local-first upgrade. */
|
|
497
|
+
private successor;
|
|
498
|
+
/** Queries and listeners that move to the successor with the upgrade. */
|
|
499
|
+
private readonly movable;
|
|
500
|
+
private readonly shutdownAbort;
|
|
501
|
+
private syncStatusSnapshot;
|
|
502
|
+
private pendingUploadRowsSnapshots;
|
|
503
|
+
private readonly activeQuerySubscriptionTraces;
|
|
504
|
+
private readonly activeQuerySubscriptionTraceListeners;
|
|
505
|
+
private readonly mutationErrorListeners;
|
|
506
|
+
private readonly pendingMutationErrorEvents;
|
|
507
|
+
private nextActiveQuerySubscriptionTraceId;
|
|
508
|
+
/**
|
|
509
|
+
* Protected constructor - use {@link createDb} in regular app code.
|
|
510
|
+
*/
|
|
511
|
+
protected constructor(config: DbConfig, runtimeSource: AnyRuntimeSource, authStateOptions?: AuthStateStoreOptions);
|
|
512
|
+
private dbForConnection;
|
|
513
|
+
private inspectorAttachmentOptions;
|
|
514
|
+
private allFromInspectorAttachment;
|
|
515
|
+
private subscribeFromInspectorAttachment;
|
|
516
|
+
/** @internal Store the seed used for local-first auth and optionally schedule token refresh. */
|
|
517
|
+
initLocalFirstAuth(seed: string, ttlSeconds: number, refresh?: boolean): void;
|
|
518
|
+
private scheduleLocalFirstRefresh;
|
|
519
|
+
private refreshLocalFirstToken;
|
|
520
|
+
private mintLocalFirstToken;
|
|
521
|
+
protected markUnauthenticated(reason: AuthFailureReason): void;
|
|
522
|
+
private renewExpiredLocalFirstToken;
|
|
523
|
+
private publishAuthStateWithInternalSession;
|
|
524
|
+
protected applyAuthUpdate(token: string | null, trustedReservedSession?: Session): boolean;
|
|
525
|
+
private publishAuthUpdate;
|
|
526
|
+
protected applyCookieSessionUpdate(session: Session | null): boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Create a Db instance with a loaded runtime source.
|
|
529
|
+
* @internal Use {@link createDb()} instead.
|
|
530
|
+
*/
|
|
531
|
+
static create(config: DbConfig, runtimeSource: AnyRuntimeSource): Db;
|
|
532
|
+
/** @internal Create a direct Db after its pre-runtime identity bootstrap. */
|
|
533
|
+
static createWithDirectConnection(config: DbConfig, runtimeSource: AnyRuntimeSource): Promise<Db>;
|
|
534
|
+
/** @internal Create a Db whose durable peer lives in a dedicated browser worker. */
|
|
535
|
+
static createWithBrowserWorker(config: DbConfig, runtimeSource: AnyRuntimeSource, earlyLease?: Promise<BrowserForegroundNodeLease>): Promise<Db>;
|
|
154
536
|
/**
|
|
155
537
|
* Get or create a JazzClient for the given schema.
|
|
156
|
-
* Synchronous because
|
|
538
|
+
* Synchronous because the runtime source is loaded before Db is created.
|
|
157
539
|
*
|
|
158
|
-
* In worker mode, the first call per schema also initializes the
|
|
159
|
-
* WorkerBridge (async). Subsequent calls are sync.
|
|
160
540
|
*/
|
|
161
541
|
protected getClient(schema: WasmSchema): JazzClient;
|
|
542
|
+
protected getCurrentClient(): JazzClient | null;
|
|
543
|
+
/** @internal The runtime behind this Db's client, once it exists. */
|
|
544
|
+
currentRuntime(): Runtime | null;
|
|
545
|
+
/**
|
|
546
|
+
* @internal Read each runtime query at the remote tier, so that this Db's
|
|
547
|
+
* store holds what the server holds for it before anything subscribes.
|
|
548
|
+
*/
|
|
549
|
+
prefetchRuntimeQueries(schema: WasmSchema, queryJsons: readonly string[]): Promise<void>;
|
|
550
|
+
protected ensureReady(requirement: ConnectionRequirement, signal?: AbortSignal): Promise<void>;
|
|
551
|
+
private wrapWriteWait;
|
|
552
|
+
protected getAccessContext(): DbAccessContext | null;
|
|
553
|
+
private handleMutationError;
|
|
554
|
+
/** @internal Refresh only through the immutable handle that owns this context. */
|
|
555
|
+
refreshAccountAuth(account: AccountHandle): Promise<string>;
|
|
162
556
|
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
private postSyncChannelMessage;
|
|
173
|
-
private attachLifecycleHooks;
|
|
174
|
-
private detachLifecycleHooks;
|
|
175
|
-
private sendLifecycleHint;
|
|
176
|
-
private logLeaderDebug;
|
|
177
|
-
private handleSyncChannelMessage;
|
|
178
|
-
private handleFollowerSync;
|
|
179
|
-
private handleLeaderSync;
|
|
180
|
-
private handleFollowerClose;
|
|
181
|
-
private handleWorkerPeerSync;
|
|
182
|
-
private sendFollowerClose;
|
|
183
|
-
private applyBridgeRoutingForCurrentLeader;
|
|
184
|
-
private onLeaderElectionChange;
|
|
185
|
-
private enqueueWorkerReconfigure;
|
|
186
|
-
private restartWorkerWithCurrentDbName;
|
|
187
|
-
private currentWorkerNamespace;
|
|
188
|
-
private shutdownWorkerAndClientsForStorageReset;
|
|
189
|
-
private removeOpfsNamespaceFile;
|
|
190
|
-
private static resolveWorkerDbNameForSnapshot;
|
|
191
|
-
private static spawnWorker;
|
|
557
|
+
* @internal Renew this Db's own runtime's credential. Its account context
|
|
558
|
+
* calls this rather than {@link refreshAccountAuth}, which after the
|
|
559
|
+
* local-first upgrade renews the successor: the thin runtime still needs
|
|
560
|
+
* its own credential to finish uploading.
|
|
561
|
+
*/
|
|
562
|
+
refreshOwnAccountAuth(account: AccountHandle): Promise<string>;
|
|
563
|
+
updateAuthToken(jwtToken: string | null): void;
|
|
564
|
+
updateCookieSession(cookieSession: Session | null): void;
|
|
565
|
+
getAuthState(): AuthState;
|
|
192
566
|
/**
|
|
193
|
-
*
|
|
567
|
+
* A short-lived JWT proving possession of the current device account: what
|
|
568
|
+
* a device account sends its own backend's routes as
|
|
569
|
+
* `Authorization: Bearer` (`jazz.forReqUser(request)` there). Returns
|
|
570
|
+
* `null` if the current session is not a device account.
|
|
194
571
|
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
572
|
+
* A Db opened by a session (`createJazzClient`, a provider) doesn't hold the
|
|
573
|
+
* device key: it returns the session's current sync proof, which lasts up
|
|
574
|
+
* to an hour and is for this app, so `ttlSeconds` doesn't apply and any
|
|
575
|
+
* other `audience` returns `null`, as does one with under 30 seconds left
|
|
576
|
+
* (the session renews it). Ask for one per request, and don't log or
|
|
577
|
+
* forward it: until it expires it also opens this account's sync.
|
|
578
|
+
*/
|
|
579
|
+
getDeviceAccountProof(options?: {
|
|
580
|
+
ttlSeconds?: number;
|
|
581
|
+
audience?: string;
|
|
582
|
+
}): string | null;
|
|
583
|
+
/** @internal This Db's own runtime's auth state changes, which never move to a successor. */
|
|
584
|
+
onOwnAuthChanged(listener: (state: AuthState) => void): () => void;
|
|
585
|
+
onAuthChanged(listener: (state: AuthState) => void): () => void;
|
|
586
|
+
/**
|
|
587
|
+
* Register something on this Db that moves to its successor when the
|
|
588
|
+
* session upgrades it to the local-first client, so code holding the
|
|
589
|
+
* returned handle keeps hearing from whichever Db does the work.
|
|
590
|
+
*/
|
|
591
|
+
private registerMovable;
|
|
592
|
+
/**
|
|
593
|
+
* Attach a fallback listener for write rejections that are not handled by an
|
|
594
|
+
* active {@link WriteHandle.wait} call.
|
|
197
595
|
*
|
|
198
|
-
* @
|
|
199
|
-
|
|
200
|
-
|
|
596
|
+
* @returns an unsubscribe callback
|
|
597
|
+
*/
|
|
598
|
+
onMutationError(listener: (event: MutationErrorEvent) => void): () => void;
|
|
599
|
+
/**
|
|
600
|
+
* Stateless anchors and ranges into text values, such as cursors,
|
|
601
|
+
* selections and comments on a text column: captured from one value and
|
|
602
|
+
* found again in later ones by the text around them.
|
|
603
|
+
*/
|
|
604
|
+
textAnchors(): TextAnchors;
|
|
605
|
+
/**
|
|
606
|
+
* Whether this Db's writes have reached the server: the upstream
|
|
607
|
+
* connection, and how many committed transactions the server has not
|
|
608
|
+
* accepted or rejected yet. The same object is returned until the status
|
|
609
|
+
* changes, so it can back `useSyncExternalStore` directly. In a browser,
|
|
610
|
+
* agents and tests read the same through `window.__jazz.status()`.
|
|
611
|
+
*/
|
|
612
|
+
getSyncStatus(): SyncStatus;
|
|
613
|
+
/**
|
|
614
|
+
* Call `listener` whenever {@link getSyncStatus} changes.
|
|
201
615
|
*
|
|
202
|
-
* @
|
|
203
|
-
* ```typescript
|
|
204
|
-
* const id = db.insert(app.todos, { title: "Buy milk", done: false });
|
|
205
|
-
* ```
|
|
616
|
+
* @returns an unsubscribe callback
|
|
206
617
|
*/
|
|
207
|
-
|
|
618
|
+
onSyncStatusChange(listener: (status: SyncStatus) => void): () => void;
|
|
619
|
+
/** How this Db reports sync status changes: its own, or combined with its successor's. */
|
|
620
|
+
private syncStatusChangeRegistration;
|
|
621
|
+
private onSyncStatusChangeHere;
|
|
208
622
|
/**
|
|
209
|
-
*
|
|
623
|
+
* Ids of `table`'s rows with a write the server has neither accepted nor
|
|
624
|
+
* refused yet, sorted: the rows to show as "not sent yet". In Node and
|
|
625
|
+
* React Native this includes writes recovered from local storage after a
|
|
626
|
+
* restart; a browser tab names its own writes, as
|
|
627
|
+
* {@link SyncStatus.pendingUploads} counts them.
|
|
210
628
|
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
629
|
+
* `null` when this Db cannot tell (its client is not created yet, or its
|
|
630
|
+
* runtime does not report rows), which is not "none pending". The same
|
|
631
|
+
* array is returned until the rows change, so it can back
|
|
632
|
+
* `useSyncExternalStore` directly.
|
|
633
|
+
*/
|
|
634
|
+
getPendingUploadRows<T, Init>(table: TableProxy<T, Init>): readonly string[] | null;
|
|
635
|
+
private pendingUploadRowsSnapshot;
|
|
636
|
+
/**
|
|
637
|
+
* Call `listener` whenever {@link getPendingUploadRows} of `table` changes.
|
|
215
638
|
*
|
|
216
|
-
* @
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
639
|
+
* @returns an unsubscribe callback
|
|
640
|
+
*/
|
|
641
|
+
onPendingUploadRowsChange<T, Init>(table: TableProxy<T, Init>, listener: (ids: readonly string[] | null) => void): () => void;
|
|
642
|
+
/** How this Db reports pending row changes: its own, or combined with its successor's. */
|
|
643
|
+
private pendingUploadRowsChangeRegistration;
|
|
644
|
+
private onPendingUploadRowsChangeHere;
|
|
645
|
+
/**
|
|
646
|
+
* Resolve once every write committed on this Db before the call has been
|
|
647
|
+
* accepted by the server.
|
|
648
|
+
*
|
|
649
|
+
* Like `write.wait({ tier: "global" })`, the wait lasts through network
|
|
650
|
+
* outages, reconnects and credential renewal. It rejects with the
|
|
651
|
+
* server's error for the first of those writes it rejected, when the link
|
|
652
|
+
* stops for good, with a {@link WriteWaitTimeoutError} once `timeoutMs`
|
|
653
|
+
* passes, or with `signal.reason` when `signal` aborts. Ending the wait
|
|
654
|
+
* never cancels the writes: they stay queued. In a browser tab it covers
|
|
655
|
+
* that tab's own writes, not ones the shared worker recovered from storage.
|
|
656
|
+
*/
|
|
657
|
+
waitForSync(options?: {
|
|
658
|
+
timeoutMs?: number;
|
|
659
|
+
signal?: AbortSignal;
|
|
660
|
+
}): Promise<void>;
|
|
661
|
+
/** @internal How {@link waitForSync} waits; a backend `Db` waits on its client. */
|
|
662
|
+
protected waitForUpstreamSync(signal: AbortSignal): Promise<void>;
|
|
663
|
+
getConfig(): DbConfig;
|
|
664
|
+
setDevMode(enabled: boolean): void;
|
|
665
|
+
/**
|
|
666
|
+
* Temporarily disconnect this Db from its configured Jazz sync server.
|
|
667
|
+
*
|
|
668
|
+
* Local reads and writes can continue while disconnected. Call
|
|
669
|
+
* {@link reconnect} to resume sync using the same Db instance.
|
|
670
|
+
*/
|
|
671
|
+
disconnect(): Promise<void>;
|
|
672
|
+
/**
|
|
673
|
+
* Reconnect this Db to its configured Jazz sync server after
|
|
674
|
+
* {@link disconnect}.
|
|
220
675
|
*/
|
|
221
|
-
|
|
676
|
+
reconnect(): Promise<void>;
|
|
222
677
|
/**
|
|
223
|
-
* @
|
|
678
|
+
* @internal
|
|
224
679
|
*/
|
|
225
|
-
|
|
680
|
+
getActiveQuerySubscriptions(): ActiveQuerySubscriptionTrace[];
|
|
226
681
|
/**
|
|
227
|
-
*
|
|
682
|
+
* @internal
|
|
683
|
+
*/
|
|
684
|
+
onActiveQuerySubscriptionsChange(listener: ActiveQuerySubscriptionTraceListener): () => void;
|
|
685
|
+
/**
|
|
686
|
+
* The engine-normalized runtime schema of this Db's live client, or null
|
|
687
|
+
* before the client exists. This is a dev-introspection accessor (inspector
|
|
688
|
+
* host handle, devtools bridge), not a general schema API.
|
|
689
|
+
*/
|
|
690
|
+
getRuntimeSchema(): WasmSchema | null;
|
|
691
|
+
/** @internal Open a control channel for the same-origin embedded inspector. */
|
|
692
|
+
openInspectorControlPort(signal?: AbortSignal): Promise<MessagePort>;
|
|
693
|
+
/**
|
|
694
|
+
* Insert a new row into a table without waiting for durability.
|
|
228
695
|
*
|
|
229
|
-
*
|
|
230
|
-
* in the local WASM runtime. Sync to server happens asynchronously.
|
|
696
|
+
* Use {@link WriteResult.wait} to wait for durable confirmation.
|
|
231
697
|
*
|
|
232
698
|
* @param table Table proxy from generated app module
|
|
233
|
-
* @param
|
|
234
|
-
* @
|
|
699
|
+
* @param data Init object with column values
|
|
700
|
+
* @returns Write result containing the inserted row
|
|
701
|
+
*/
|
|
702
|
+
insert<T, Init>(table: TableProxy<T, Init>, data: Init, options?: InsertOptions): WriteResult<T>;
|
|
703
|
+
/**
|
|
704
|
+
* Stream one Text, Json, or Bytea column into a new row. The column's runtime
|
|
705
|
+
* schema determines encoding; callers never pass a large-value kind.
|
|
235
706
|
*
|
|
236
|
-
* @
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
* ```
|
|
707
|
+
* Unlike {@link insert}, this is asynchronous because it consumes the source
|
|
708
|
+
* before publishing. Its handle returns only the generated id so the complete
|
|
709
|
+
* streamed value is not copied back into JavaScript memory.
|
|
240
710
|
*/
|
|
241
|
-
|
|
711
|
+
insertStreaming<T, Init, StreamingInit>(table: TableProxy<T, Init, StreamingInit>, data: StreamingInit, options?: StreamingInsertOptions): Promise<WriteHandle<{
|
|
712
|
+
id: string;
|
|
713
|
+
}>>;
|
|
714
|
+
updateStreaming<T, Init, StreamingInit, StreamingUpdate>(table: TableProxy<T, Init, StreamingInit, StreamingUpdate>, id: string, data: StreamingUpdate, options?: UpdateOptions): Promise<WriteHandle<{
|
|
715
|
+
id: string;
|
|
716
|
+
}>>;
|
|
717
|
+
upsertStreaming<T, Init, StreamingInit, StreamingUpdate>(table: TableProxy<T, Init, StreamingInit, StreamingUpdate>, id: string, data: StreamingUpdate, options?: UpdateOptions): Promise<WriteHandle<{
|
|
718
|
+
id: string;
|
|
719
|
+
}>>;
|
|
242
720
|
/**
|
|
243
|
-
*
|
|
721
|
+
* Restore a soft-deleted row without waiting for durability.
|
|
244
722
|
*
|
|
245
|
-
* @
|
|
246
|
-
* @param id Row ID to update
|
|
247
|
-
* @param data Partial object with fields to update
|
|
248
|
-
* @param tier Acknowledgement tier to wait for
|
|
723
|
+
* Use {@link WriteResult.wait} to wait for durable confirmation.
|
|
249
724
|
*/
|
|
250
|
-
|
|
725
|
+
restore<T, Init>(table: TableProxy<T, Init>, id: string, data: Init, options?: RestoreOptions): WriteResult<T>;
|
|
251
726
|
/**
|
|
252
|
-
*
|
|
727
|
+
* Create or update a row with a caller-supplied id without waiting for durability.
|
|
728
|
+
*
|
|
729
|
+
* Use {@link WriteHandle.wait} to wait for durable confirmation.
|
|
253
730
|
*/
|
|
254
|
-
|
|
731
|
+
upsert<T, Init>(table: TableProxy<T, Init>, id: string, data: Partial<Init>, options?: UpdateOptions): WriteHandle;
|
|
732
|
+
private prepareMutation;
|
|
255
733
|
/**
|
|
256
|
-
*
|
|
734
|
+
* Update an existing row without waiting for durability.
|
|
257
735
|
*
|
|
258
|
-
*
|
|
259
|
-
|
|
736
|
+
* Use {@link WriteHandle.wait} to wait for durable confirmation.
|
|
737
|
+
*/
|
|
738
|
+
update<T, Init, StreamingInit, StreamingUpdate, LargeValueUpdate, TReplacements extends Partial<Init>>(table: TableProxy<T, Init, StreamingInit, StreamingUpdate, LargeValueUpdate> & {
|
|
739
|
+
readonly _largeValueUpdateType: LargeValueUpdate;
|
|
740
|
+
}, id: string, data: TReplacements, options?: TypedUpdateOptionsWithDiffs<TReplacements, LargeValueUpdate>): WriteHandle;
|
|
741
|
+
update<T, Init>(table: TableProxy<T, Init>, id: string, data: Partial<Init>, options?: UpdateEditOptions<Partial<Init>>): WriteHandle;
|
|
742
|
+
/**
|
|
743
|
+
* Delete a row without waiting for durability.
|
|
260
744
|
*
|
|
261
|
-
* @
|
|
262
|
-
|
|
745
|
+
* Use {@link WriteHandle.wait} to wait for durable confirmation.
|
|
746
|
+
*/
|
|
747
|
+
delete<T, Init>(table: TableProxy<T, Init>, id: string, options?: DeleteOptions): WriteHandle;
|
|
748
|
+
/** Request authoritative permission advice for inserting a row. */
|
|
749
|
+
canInsert<T, Init>(table: TableProxy<T, Init>, data: Init): Promise<PermissionAdvice>;
|
|
750
|
+
/**
|
|
751
|
+
* @internal The Inspector's `explain`: for each of `ids` of `table`, which
|
|
752
|
+
* clauses of its read policy (the arms of its top-level `Or`) hold for
|
|
753
|
+
* this Db's session. Backend only.
|
|
754
|
+
*/
|
|
755
|
+
explainReadClauses<T, Init>(table: TableProxy<T, Init>, ids: string[]): ExplainedRows;
|
|
756
|
+
/** Request authoritative permission advice for reading a row. */
|
|
757
|
+
canRead<T, Init>(table: TableProxy<T, Init>, id: string): Promise<PermissionAdvice>;
|
|
758
|
+
/** Request authoritative permission advice for updating a row. */
|
|
759
|
+
canUpdate<T, Init>(table: TableProxy<T, Init>, id: string, data: Partial<Init>): Promise<PermissionAdvice>;
|
|
760
|
+
/** Request authoritative permission advice for deleting a row. */
|
|
761
|
+
canDelete<T, Init>(table: TableProxy<T, Init>, id: string): Promise<PermissionAdvice>;
|
|
762
|
+
/** @internal Shared construction path; admission remains owned by the transaction. */
|
|
763
|
+
createTransaction<TKind extends TransactionKind>(kind: TKind, prerequisite?: TransactionAdmission): Transaction<TKind>;
|
|
764
|
+
/**
|
|
765
|
+
* Capture this database's local read frontier for a frozen branch base.
|
|
263
766
|
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
767
|
+
* Includes earlier locally committed writes, including pending server
|
|
768
|
+
* acceptance, and excludes uncommitted transaction changes and later writes.
|
|
769
|
+
* Works offline after the first query or mutation has attached a schema.
|
|
770
|
+
* The reference does not retain history or grant permission. Persist it with
|
|
771
|
+
* `serializeSnapshotRef`; restoring it requires the same dataset and enough
|
|
772
|
+
* retained history to answer the requested read.
|
|
268
773
|
*/
|
|
269
|
-
|
|
774
|
+
captureSnapshot(): Promise<SnapshotRef>;
|
|
270
775
|
/**
|
|
271
|
-
*
|
|
776
|
+
* Begin a mergeable transaction.
|
|
272
777
|
*
|
|
273
|
-
* @
|
|
274
|
-
*
|
|
275
|
-
* @
|
|
778
|
+
* Use {@link Transaction.commit} to commit the transaction.
|
|
779
|
+
*
|
|
780
|
+
* Prefer using {@link Db.transaction} when an explicit commit is not required.
|
|
276
781
|
*/
|
|
277
|
-
|
|
782
|
+
beginTransaction(): Transaction<"mergeable">;
|
|
278
783
|
/**
|
|
279
|
-
*
|
|
784
|
+
* Begin a serializable transaction for writes that need serializable validation by the authority.
|
|
785
|
+
*
|
|
786
|
+
* Use {@link Transaction.commit} to commit the transaction.
|
|
787
|
+
*
|
|
788
|
+
* Prefer using {@link Db.serializableTransaction} when an explicit commit is not required.
|
|
280
789
|
*/
|
|
281
|
-
|
|
790
|
+
beginSerializableTransaction(): Transaction<"serializable">;
|
|
282
791
|
/**
|
|
283
|
-
*
|
|
792
|
+
* Run {@link callback} inside a mergeable transaction and commit it once the callback returns.
|
|
284
793
|
*
|
|
285
|
-
*
|
|
286
|
-
|
|
794
|
+
* @returns a write result containing the result of the callback
|
|
795
|
+
*/
|
|
796
|
+
transaction<TResult>(callback: (tx: TransactionScope<"mergeable">) => TResult | Promise<TResult>): Promise<WriteResult<Awaited<TResult>>>;
|
|
797
|
+
/**
|
|
798
|
+
* Run {@link callback} inside a serializable transaction and commit it once the callback returns.
|
|
287
799
|
*
|
|
288
|
-
*
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
*
|
|
293
|
-
*
|
|
800
|
+
* @returns a write result containing the result of the callback
|
|
801
|
+
*/
|
|
802
|
+
serializableTransaction<TResult>(callback: (tx: TransactionScope<"serializable">) => TResult | Promise<TResult>): Promise<SerializableWriteResult<Awaited<TResult>>>;
|
|
803
|
+
/**
|
|
804
|
+
* Move this app from the thin client to the local-first one, loading it with
|
|
805
|
+
* `loader` (for example `() => import("jazz-tools/local-first")`). Under a
|
|
806
|
+
* Jazz provider the provider swaps in the local-first `Db` once it holds the
|
|
807
|
+
* app's live queries, and this resolves then. A local-first `Db` resolves at
|
|
808
|
+
* once. (A thin `Db` opened directly, outside a session, upgrades with
|
|
809
|
+
* `upgradeToLocalFirst(thin, open)` from `jazz-tools/thin`, which returns
|
|
810
|
+
* the new `Db` for the app to swap in itself.)
|
|
811
|
+
*/
|
|
812
|
+
upgradeToLocalFirst(loader: LocalFirstLoader): Promise<void>;
|
|
813
|
+
/**
|
|
814
|
+
* Whether this `Db` reads and writes through a local store: true for a
|
|
815
|
+
* local-first `Db`, and for a thin one once its session has upgraded it
|
|
816
|
+
* (the same `Db` carries on), false for a thin one before. To wait for the
|
|
817
|
+
* upgrade, `await db.upgradeToLocalFirst(loader)`.
|
|
818
|
+
*/
|
|
819
|
+
isLocalFirst(): boolean;
|
|
820
|
+
/**
|
|
821
|
+
* Delete browser IndexedDB storage for this Db's active namespace.
|
|
294
822
|
*/
|
|
295
823
|
deleteClientStorage(): Promise<void>;
|
|
824
|
+
/**
|
|
825
|
+
* @internal How many writes the server hasn't confirmed in this Db's
|
|
826
|
+
* store: every tab's in the browser, where the worker can say; otherwise
|
|
827
|
+
* this Db's own.
|
|
828
|
+
*/
|
|
829
|
+
storePendingUploads(): Promise<number>;
|
|
830
|
+
/**
|
|
831
|
+
* @internal Whether this Db still reads and writes: it isn't shutting down
|
|
832
|
+
* or replaced, and its storage wasn't reset under it. A session whose
|
|
833
|
+
* sign-out or sign-in failed keeps a usable Db rather than ending in error.
|
|
834
|
+
*/
|
|
835
|
+
isUsable(): boolean;
|
|
836
|
+
/**
|
|
837
|
+
* Release the current Db instance for logout flows.
|
|
838
|
+
*
|
|
839
|
+
* When `wipeData` is enabled, Jazz clears local client storage before shutting this Db down.
|
|
840
|
+
* Callers should still sign out of their external auth provider separately and recreate
|
|
841
|
+
* `JazzProvider` / `Db` after logout.
|
|
842
|
+
*/
|
|
843
|
+
logout(options?: LogoutOptions): Promise<void>;
|
|
296
844
|
/**
|
|
297
845
|
* Execute a query and return all matching rows as typed objects.
|
|
298
846
|
*
|
|
@@ -300,32 +848,49 @@ export declare class Db {
|
|
|
300
848
|
* @returns Array of typed objects matching the query
|
|
301
849
|
*/
|
|
302
850
|
all<T>(query: QueryBuilder<T>, options?: QueryOptions): Promise<T[]>;
|
|
851
|
+
private allInternal;
|
|
303
852
|
/**
|
|
304
|
-
* Execute a query and return the first matching row, or null.
|
|
853
|
+
* Execute a query with a limit of one and return the first matching row, or null.
|
|
305
854
|
*
|
|
306
855
|
* @param query QueryBuilder instance
|
|
307
|
-
* @param
|
|
856
|
+
* @param options Optional read durability options
|
|
308
857
|
* @returns First matching typed object, or null if none found
|
|
309
858
|
*/
|
|
310
859
|
one<T>(query: QueryBuilder<T>, options?: QueryOptions): Promise<T | null>;
|
|
860
|
+
/**
|
|
861
|
+
* Subscribe to a query and receive its complete current result whenever it changes.
|
|
862
|
+
* Each update receives a fresh result array. Prefer the object form when the
|
|
863
|
+
* subscription's terminal errors must be handled explicitly. The legacy
|
|
864
|
+
* function form reports unhandled terminal errors to `console.error`.
|
|
865
|
+
*/
|
|
866
|
+
subscribe<T extends {
|
|
867
|
+
id: string;
|
|
868
|
+
}>(query: QueryBuilder<T>, callbacks: ((rows: T[]) => void) | DbSubscriptionCallbacks<T>, options?: QueryOptions, session?: Session): () => void;
|
|
311
869
|
/**
|
|
312
870
|
* Subscribe to a query and receive updates when results change.
|
|
313
871
|
*
|
|
314
872
|
* The callback receives a SubscriptionDelta with:
|
|
315
|
-
* - `all`: Complete current result set
|
|
316
|
-
*
|
|
873
|
+
* - `all`: Complete current result set. Freshly allocated on every delta —
|
|
874
|
+
* the rows are new object references each time, so diffing `all` by identity
|
|
875
|
+
* sees every row as changed. Reactive-framework consumers should reconcile
|
|
876
|
+
* with `applyDelta`/`reconcileArray` from `reconcile-array.js` to preserve
|
|
877
|
+
* identity for unchanged rows.
|
|
878
|
+
* - `delta`: Ordered list of row-level changes (see `RowDelta`)
|
|
317
879
|
*
|
|
318
880
|
* @param query QueryBuilder instance
|
|
319
|
-
* @param
|
|
881
|
+
* @param callbacks Called with deltas and, in object form, terminal subscription errors
|
|
882
|
+
* @param options Optional read durability options
|
|
320
883
|
* @returns Unsubscribe function
|
|
321
884
|
*
|
|
322
885
|
* @example
|
|
323
886
|
* ```typescript
|
|
324
|
-
*
|
|
887
|
+
* import { RowChangeKind } from "jazz-tools";
|
|
888
|
+
*
|
|
889
|
+
* const unsubscribe = db.subscribeDelta(app.todos, (delta) => {
|
|
325
890
|
* setTodos(delta.all);
|
|
326
891
|
* for (const change of delta.delta) {
|
|
327
|
-
* if (change.kind ===
|
|
328
|
-
* console.log("New row:", change.
|
|
892
|
+
* if (change.kind === RowChangeKind.Added) {
|
|
893
|
+
* console.log("New row:", change.item);
|
|
329
894
|
* }
|
|
330
895
|
* }
|
|
331
896
|
* });
|
|
@@ -334,34 +899,111 @@ export declare class Db {
|
|
|
334
899
|
* unsubscribe();
|
|
335
900
|
* ```
|
|
336
901
|
*/
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
902
|
+
private subscribeDelta;
|
|
903
|
+
private subscribeDeltaHere;
|
|
904
|
+
/**
|
|
905
|
+
* @internal The session that owned this Db replaced it. Its live queries
|
|
906
|
+
* end with a {@link DbReplacedError} naming the fix, and its reads, writes
|
|
907
|
+
* and listeners throw it, so code that kept the handle fails loudly instead
|
|
908
|
+
* of going silent.
|
|
909
|
+
*/
|
|
910
|
+
markReplaced(reason: DbReplacedReason): void;
|
|
911
|
+
/**
|
|
912
|
+
* @internal The session upgraded this Db to `next`, the local-first Db of
|
|
913
|
+
* the same account. This Db becomes a handle on `next`: its live queries
|
|
914
|
+
* and listeners move there (each query's first result there replaces what
|
|
915
|
+
* it had, so nothing goes back to loading), and its reads and writes go
|
|
916
|
+
* there from now on. Only its own runtime stays behind, for the session to
|
|
917
|
+
* shut down once its writes are uploaded.
|
|
918
|
+
*/
|
|
919
|
+
adoptSuccessor(next: Db): void;
|
|
920
|
+
/**
|
|
921
|
+
* Wait for this Db's own runtime's writes, as {@link waitForSync} does
|
|
922
|
+
* (rejecting with the server's error for a rejected one), while it drains
|
|
923
|
+
* after the upgrade. The drain ending is the wait ending.
|
|
924
|
+
*/
|
|
925
|
+
private waitForOwnSync;
|
|
926
|
+
/** The app's last {@link disconnect} (true) or {@link reconnect} (false). */
|
|
927
|
+
private offlineRequested;
|
|
928
|
+
/** Set once this Db adopted a successor: its own runtime's last uploads. */
|
|
929
|
+
private drain;
|
|
930
|
+
/** Set by {@link letStreamsFinish}. */
|
|
931
|
+
private streamsMayFinish;
|
|
932
|
+
/**
|
|
933
|
+
* @internal This Db's graceful shutdown lets streaming writes in flight on
|
|
934
|
+
* its own runtime finish (and waits for their writes) before closing it,
|
|
935
|
+
* until the returned controller aborts. Only the drain after the
|
|
936
|
+
* local-first upgrade asks for this: the app didn't ask for that shutdown,
|
|
937
|
+
* so it must not cut off an upload the app is making. A shutdown the app
|
|
938
|
+
* asks for (a sign-out, an account switch, a close) aborts it, so it is
|
|
939
|
+
* never held by a slow or stalled stream; the stream then fails saying why.
|
|
940
|
+
*/
|
|
941
|
+
letStreamsFinish(): AbortController;
|
|
942
|
+
/**
|
|
943
|
+
* @internal Stop this Db's own runtime after the upgrade. With
|
|
944
|
+
* `waitForSync`, its writes upload first, the way a local-first client's
|
|
945
|
+
* do when it shuts down; without, they are dropped, as when a thin client
|
|
946
|
+
* closes. Either way a streaming write still sending its value is cut off
|
|
947
|
+
* (it fails saying why) rather than holding the app's shutdown.
|
|
948
|
+
*/
|
|
949
|
+
stopOwnRuntime(options?: ShutdownOptions): Promise<void>;
|
|
950
|
+
/** @internal The Db that does this one's work now: itself, or its successor. */
|
|
951
|
+
current(): Db;
|
|
340
952
|
/**
|
|
341
953
|
* Shutdown the Db and release all resources.
|
|
342
|
-
* Closes
|
|
954
|
+
* Closes the Db's runtime client.
|
|
955
|
+
*
|
|
956
|
+
* With `waitForSync`, pending writes upload first (see {@link DbPhase}): if
|
|
957
|
+
* that fails, this rejects with a `GracefulShutdownSyncError` and the Db
|
|
958
|
+
* stays open. Otherwise, or once they uploaded, the Db moves to `closing`
|
|
959
|
+
* and on to `closed`, for good.
|
|
960
|
+
*
|
|
961
|
+
* A plain shutdown (no `waitForSync`) always ends `closed`. One asked for
|
|
962
|
+
* while a drain runs waits for that drain, as before, but if the drain
|
|
963
|
+
* fails it tears down anyway: the drain's own caller still gets the
|
|
964
|
+
* `GracefulShutdownSyncError`, but the Db no longer stays open.
|
|
965
|
+
*
|
|
966
|
+
* Idempotent: concurrent or repeated calls share the same in-flight promise.
|
|
343
967
|
*/
|
|
344
|
-
shutdown(): Promise<void>;
|
|
968
|
+
shutdown(options?: ShutdownOptions): Promise<void>;
|
|
969
|
+
/** @internal Credential invalidation must interrupt a graceful sync wait. */
|
|
970
|
+
abortGracefulShutdown(): void;
|
|
971
|
+
/** Whether the Db takes no new work: it is draining for a shutdown, or past `open`. */
|
|
972
|
+
private get stopping();
|
|
973
|
+
protected assertOpen(): void;
|
|
974
|
+
private readonly shutdownListeners;
|
|
975
|
+
/** @internal Dispose account refresh and invalidation observers with the context. */
|
|
976
|
+
onShutdown(listener: () => void): () => void;
|
|
977
|
+
/** Move `open` → `closing`, and to `closed` once teardown ends, however it ends. */
|
|
978
|
+
private beginTeardown;
|
|
979
|
+
private runTeardown;
|
|
980
|
+
private notifyActiveQuerySubscriptionTraceListeners;
|
|
981
|
+
private registerActiveQuerySubscriptionTrace;
|
|
982
|
+
private unregisterActiveQuerySubscriptionTrace;
|
|
983
|
+
private clearActiveQuerySubscriptionTraces;
|
|
984
|
+
private parseRuntimeQueryTracePayload;
|
|
345
985
|
}
|
|
346
986
|
/**
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
* @
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
*
|
|
987
|
+
* @internal Start the persistent browser worker for an account context before
|
|
988
|
+
* its runtime and credential are ready. An account's browser root and worker
|
|
989
|
+
* are named by its account id and registry alone, so the SharedWorker can boot
|
|
990
|
+
* and compile its WASM while the page loads its own runtime and resolves auth.
|
|
991
|
+
* Returns undefined when the root depends on a credential or no worker is used.
|
|
992
|
+
*/
|
|
993
|
+
export declare function startBrowserWorkerLease(config: DbConfig, runtimeSource: RuntimeSource<any>): Promise<BrowserForegroundNodeLease> | undefined;
|
|
994
|
+
/**
|
|
995
|
+
* @internal Return a lease that no Db adopted, keeping its node reusable.
|
|
996
|
+
* Resolves once the worker has the lease back (or it never issued one), so a
|
|
997
|
+
* replacement acquired afterwards never queues behind it.
|
|
998
|
+
*/
|
|
999
|
+
export declare function releaseUnusedLease(lease: Promise<BrowserForegroundNodeLease> | undefined): Promise<void>;
|
|
1000
|
+
export declare function createDbWithRuntimeSource<RuntimeConfig extends DbConfig>(config: RuntimeConfig, runtimeSource: RuntimeSource<RuntimeConfig>, earlyLease?: Promise<BrowserForegroundNodeLease>): Promise<Db>;
|
|
1001
|
+
/** Keep server-only admission credentials out of every client runtime factory. */
|
|
1002
|
+
export declare function assertNoClientBackendSecret(config: object): void;
|
|
1003
|
+
/**
|
|
1004
|
+
* @internal Declare that the caller renews this Db's credential whenever the
|
|
1005
|
+
* server refuses it, until the returned release is called. Global write waits
|
|
1006
|
+
* then outlast a renewable refusal instead of failing (#3923).
|
|
365
1007
|
*/
|
|
366
|
-
export declare function
|
|
1008
|
+
export declare function holdCredentialRenewal(db: object): () => void;
|
|
367
1009
|
//# sourceMappingURL=db.d.ts.map
|