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