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/client.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SnapshotRef } from "./snapshot-ref.js";
|
|
1
2
|
/**
|
|
2
3
|
* JazzClient - High-level TypeScript client for Jazz.
|
|
3
4
|
*
|
|
@@ -5,53 +6,361 @@
|
|
|
5
6
|
* subscriptions, and sync.
|
|
6
7
|
*/
|
|
7
8
|
import type { AppContext, Session } from "./context.js";
|
|
8
|
-
import type {
|
|
9
|
-
import {
|
|
9
|
+
import type { InsertValues, RuntimeSubscriptionDelta, Value, WasmSchema } from "../drivers/types.js";
|
|
10
|
+
import type { AuthFailureReason } from "./auth-state.js";
|
|
11
|
+
import type { RemoteLinkState } from "./remote-link-state.js";
|
|
12
|
+
import type { LinkStatus } from "./sync-status.js";
|
|
13
|
+
/** @internal Runtime operations bound to the currently executing preparation. */
|
|
14
|
+
export type TransactionPreparationIO = Pick<JazzClient, "queryInternal" | "insertInternal" | "updateInternal" | "upsertInternal" | "restoreInternal">;
|
|
10
15
|
/**
|
|
11
|
-
* Minimal request shape supported by
|
|
16
|
+
* Minimal request shape supported by backend request helpers.
|
|
12
17
|
*
|
|
13
18
|
* Works with common server frameworks (Express, Fastify, Hono, Web Request wrappers)
|
|
14
19
|
* as long as Authorization headers are exposed through `header(name)` or `headers`.
|
|
20
|
+
* Plain-record `headers` keys are matched case-insensitively; conflicting case variants
|
|
21
|
+
* are rejected. Web `Headers` objects retain their native lookup behavior.
|
|
15
22
|
*/
|
|
16
23
|
export interface RequestLike {
|
|
17
24
|
header?: (name: string) => string | undefined;
|
|
18
25
|
headers?: Headers | Record<string, string | string[] | undefined>;
|
|
19
26
|
}
|
|
27
|
+
export type AuthUpdate = {
|
|
28
|
+
mode: "bearer";
|
|
29
|
+
jwtToken?: string;
|
|
30
|
+
trustedReservedSession?: Session;
|
|
31
|
+
} | {
|
|
32
|
+
mode: "cookie";
|
|
33
|
+
cookieSession?: Session;
|
|
34
|
+
};
|
|
20
35
|
/**
|
|
21
|
-
* Common interface for
|
|
22
|
-
*
|
|
23
|
-
* Both `WasmRuntime` (from jazz-wasm) and `NapiRuntime` (from jazz-napi)
|
|
24
|
-
* satisfy this interface, allowing `JazzClient` to work with either backend.
|
|
36
|
+
* Common interface for the runtime backing `JazzClient`.
|
|
25
37
|
*/
|
|
26
38
|
export interface Runtime {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
/**
|
|
40
|
+
* @internal The Db handed over to a successor: end reads not sent yet with
|
|
41
|
+
* a `RuntimeClosedError` cause, so they ask the successor instead.
|
|
42
|
+
*/
|
|
43
|
+
endUnsentReads?(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Wait until every write committed so far reaches `tier`. `throughOutage`
|
|
46
|
+
* keeps the wait pending through outages until a terminal failure.
|
|
47
|
+
*/
|
|
48
|
+
waitForPendingWrites?(tier?: string, options?: {
|
|
49
|
+
throughOutage?: boolean;
|
|
50
|
+
signal?: AbortSignal;
|
|
51
|
+
}): Promise<void>;
|
|
52
|
+
/** @internal Close mutation admission and report the foreground TxTime high-water. */
|
|
53
|
+
quiesceForegroundTxTimeHighWater?(): Promise<bigint>;
|
|
54
|
+
beginTransaction(transactionKind: TransactionKind, id: OpenTransactionId, sessionJson?: string | null): OpenTransactionId;
|
|
55
|
+
/** Completion may include asynchronous preparation before physical submission. */
|
|
56
|
+
commitTransaction(id: OpenTransactionId): TxId | Promise<TxId>;
|
|
57
|
+
rollbackTransaction(id: OpenTransactionId): Promise<boolean>;
|
|
58
|
+
/** Capture behind earlier owner operations without waiting for server acceptance. */
|
|
59
|
+
captureSnapshot?(): Promise<SnapshotRef>;
|
|
60
|
+
readonly preparationOwner?: object;
|
|
61
|
+
readCanEstablishAbsence?(sessionJson?: string, transaction?: OpenTransactionId): boolean;
|
|
62
|
+
/** @internal Live reachability of the upstream server, for read scheduling only. */
|
|
63
|
+
remoteLinkState?(): RemoteLinkState;
|
|
64
|
+
/** @internal Observe {@link Runtime.remoteLinkState} changes. */
|
|
65
|
+
onRemoteLinkStateChange?(listener: (state: RemoteLinkState) => void, signal: AbortSignal): void;
|
|
66
|
+
/** @internal Report the host's view of the server link to the core read gate. */
|
|
67
|
+
setRemoteLinkHint?(state: RemoteLinkState): void;
|
|
68
|
+
/** @internal The upstream link as the app sees it. */
|
|
69
|
+
upstreamLinkStatus?(): LinkStatus;
|
|
70
|
+
/** @internal How many local commits still wait for the server's verdict. */
|
|
71
|
+
pendingUploadCount?(): number;
|
|
72
|
+
/** @internal Observe changes of the link status or the pending count. */
|
|
73
|
+
onSyncStatusChange?(listener: () => void, signal: AbortSignal): void;
|
|
74
|
+
/** @internal Construct a provisional row without staging or accepting a write. */
|
|
75
|
+
previewInsert?(table: string, values: InsertValues, objectId?: string): Row;
|
|
76
|
+
insert(table: string, values: InsertValues, write_context_json?: string | null, object_id?: string | null): InsertResult;
|
|
77
|
+
streamingMutation?(mutation: StreamingMutationKind, table: string, values: InsertValues, column: string, source: StreamingValueSource, write_context_json?: string | null, object_id?: string | null): Promise<StreamingInsertResult>;
|
|
78
|
+
restore(table: string, object_id: string, values: InsertValues, write_context_json?: string | null): InsertResult;
|
|
79
|
+
update(table: string, object_id: string, values: Record<string, Value>, write_context_json?: string | null): MutationResult;
|
|
80
|
+
/** Internal binding entrypoint for the typed page-edit update DSL. */
|
|
81
|
+
updateLargeValues?(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], writeContextJson?: string | null): MutationResult;
|
|
82
|
+
upsert(table: string, object_id: string, values: InsertValues, write_context_json?: string | null): MutationResult;
|
|
83
|
+
delete(table: string, object_id: string, write_context_json?: string | null): MutationResult;
|
|
84
|
+
canInsertLocally?(table: string, values: InsertValues, session?: Session): PermissionAdvice;
|
|
85
|
+
canReadLocally?(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
86
|
+
canUpdateLocally?(table: string, objectId: string, values: Record<string, Value>, session?: Session): PermissionAdvice;
|
|
87
|
+
canDeleteLocally?(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
88
|
+
requestInsertPermissionAdvice?(table: string, values: InsertValues, session?: Session): Promise<PermissionAdvice>;
|
|
89
|
+
requestReadPermissionAdvice?(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
90
|
+
requestUpdatePermissionAdvice?(table: string, objectId: string, values: Record<string, Value>, session?: Session): Promise<PermissionAdvice>;
|
|
91
|
+
requestDeletePermissionAdvice?(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
92
|
+
onMutationError(callback: (event: MutationErrorEvent) => void): void;
|
|
93
|
+
waitForTransaction(txId: TxId | Promise<TxId>, tier: string, options?: RuntimeWriteWaitOptions): Promise<void>;
|
|
94
|
+
query(query_json: string, session_json?: string | null, tier?: string | null, options_json?: string | null): Promise<any>;
|
|
95
|
+
createSubscription(query_json: string, session_json?: string | null, tier?: string | null, options_json?: string | null): number;
|
|
96
|
+
/** Install the subscription's callback and start delivery. May only be called once per handle. */
|
|
97
|
+
executeSubscription(handle: number, onUpdate: (result: RuntimeSubscriptionDelta | Error) => void): void;
|
|
32
98
|
unsubscribe(handle: number): void;
|
|
33
|
-
insertWithAck(table: string, values: any, tier: string): Promise<string>;
|
|
34
|
-
updateWithAck(object_id: string, values: any, tier: string): Promise<void>;
|
|
35
|
-
deleteWithAck(object_id: string, tier: string): Promise<void>;
|
|
36
|
-
onSyncMessageReceived(message_json: string): void;
|
|
37
|
-
onSyncMessageToSend(callback: Function): void;
|
|
38
|
-
addServer(): void;
|
|
39
|
-
removeServer(): void;
|
|
40
|
-
addClient(): string;
|
|
41
|
-
getSchema(): any;
|
|
42
|
-
getSchemaHash(): string;
|
|
43
99
|
close?(): void | Promise<void>;
|
|
44
|
-
|
|
45
|
-
|
|
100
|
+
/** Abandon a runtime whose backing persistence epoch was invalidated. */
|
|
101
|
+
discard?(): void;
|
|
102
|
+
clearClientStorage?(): Promise<void>;
|
|
103
|
+
/** Connect to a Jazz server over WebSocket (Rust transport). */
|
|
104
|
+
connect(url: string, auth_json: string): void;
|
|
105
|
+
/**
|
|
106
|
+
* Disconnect from the Jazz server and drop the transport handle.
|
|
107
|
+
*
|
|
108
|
+
* Resolves once the runtime has completed the disconnect. For worker-backed
|
|
109
|
+
* runtimes, this includes a round-trip in which the worker performs the
|
|
110
|
+
* disconnect before replying.
|
|
111
|
+
*/
|
|
112
|
+
disconnect(options?: {
|
|
113
|
+
rejectWaiters?: boolean;
|
|
114
|
+
}): Promise<void>;
|
|
115
|
+
/** Native admission owns its upstream independently of a JavaScript URL. */
|
|
116
|
+
nativeUpstreamConfigured?(): boolean;
|
|
117
|
+
/** Push updated auth credentials into the live Rust transport. */
|
|
118
|
+
updateAuth(auth_json: string): void;
|
|
119
|
+
/**
|
|
120
|
+
* The session this client resolved from its credentials, set before it
|
|
121
|
+
* connects and again whenever its auth changes. A runtime that serves
|
|
122
|
+
* only its connection's session (thin) compares calls against it.
|
|
123
|
+
*/
|
|
124
|
+
useSession?(session: Session | null): void;
|
|
125
|
+
/** End waits held for a refused credential that nothing will renew. */
|
|
126
|
+
endCredentialWait?(): void;
|
|
127
|
+
/** Register a callback invoked when the Rust transport rejects the JWT. */
|
|
128
|
+
onAuthFailure(callback: (reason: string) => void): void;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Advisory result for a permission preflight. `allowed` and `denied` are
|
|
132
|
+
* final only when a trusted-serving authority evaluated the request;
|
|
133
|
+
* `unknown` means that a local replica or unavailable authority cannot decide.
|
|
134
|
+
*/
|
|
135
|
+
export type PermissionAdvice = "allowed" | "denied" | "unknown";
|
|
136
|
+
declare const openTransactionIdBrand: unique symbol;
|
|
137
|
+
declare const txIdBrand: unique symbol;
|
|
138
|
+
/** Identity of a mutable transaction. Invalid after commit or rollback. */
|
|
139
|
+
export type OpenTransactionId = string & {
|
|
140
|
+
readonly [openTransactionIdBrand]: true;
|
|
141
|
+
};
|
|
142
|
+
/** Immutable identity assigned to a successfully committed transaction. */
|
|
143
|
+
export type TxId = string & {
|
|
144
|
+
readonly [txIdBrand]: true;
|
|
145
|
+
};
|
|
146
|
+
/** Generate a coordination-free UUIDv7 identity for a new mutable transaction. */
|
|
147
|
+
export declare function createOpenTransactionId(): OpenTransactionId;
|
|
148
|
+
/**
|
|
149
|
+
* Authentication configuration for connecting to a Jazz server.
|
|
150
|
+
*
|
|
151
|
+
* Maps directly to the Rust `AuthConfig` struct in `jazz-tools/src/websocket_prelude_auth.rs`.
|
|
152
|
+
* All fields are optional; supply only the ones relevant to your auth mode.
|
|
153
|
+
*/
|
|
154
|
+
export interface AuthConfig {
|
|
155
|
+
/** JWT bearer token for user authentication. */
|
|
156
|
+
jwt_token?: string;
|
|
157
|
+
/** Backend service secret for server-to-server calls. */
|
|
158
|
+
backend_secret?: string;
|
|
159
|
+
/** Admin secret for privileged sync and `/admin/*` catalogue operations. */
|
|
160
|
+
admin_secret?: string;
|
|
161
|
+
/** Opaque session payload forwarded by a backend proxy. */
|
|
162
|
+
backend_session?: unknown;
|
|
163
|
+
/** The published permissions bundle the session is pinned to. */
|
|
164
|
+
bundle?: string;
|
|
46
165
|
}
|
|
47
166
|
/**
|
|
48
167
|
* Persistence tier for durability guarantees.
|
|
49
168
|
*
|
|
50
|
-
* - `
|
|
51
|
-
* - `
|
|
52
|
-
|
|
169
|
+
* - `local`: Persisted in local durable storage
|
|
170
|
+
* - `global`: Authorized and durably accepted by Core
|
|
171
|
+
*/
|
|
172
|
+
export type DurabilityTier = "local" | "global";
|
|
173
|
+
/**
|
|
174
|
+
* Product-facing policy for reads. It deliberately does not change write durability.
|
|
175
|
+
*
|
|
176
|
+
* There are two tiers: `LocalFirst` and `Remote`. A local-first read can also
|
|
177
|
+
* wait a bounded time for the server on its initial load; see
|
|
178
|
+
* {@link QueryExecutionOptions.firstLoadRemoteWaitMs}.
|
|
179
|
+
*/
|
|
180
|
+
export declare const ReadTier: {
|
|
181
|
+
/**
|
|
182
|
+
* Cached local knowledge and pending writes; still syncs while connected.
|
|
183
|
+
* Set `firstLoadRemoteWaitMs` to let the initial load wait for the server first.
|
|
184
|
+
*/
|
|
185
|
+
readonly LocalFirst: "local-first";
|
|
186
|
+
/** Current remote query scope, without pending local writes; waits offline. */
|
|
187
|
+
readonly Remote: "remote";
|
|
188
|
+
};
|
|
189
|
+
export type ReadTier = (typeof ReadTier)[keyof typeof ReadTier];
|
|
190
|
+
/**
|
|
191
|
+
* @internal A local-first read's server wait in whole milliseconds, or
|
|
192
|
+
* `undefined` when the caller gave none. An explicit `0` stays `0`: it opts
|
|
193
|
+
* out of the client default wait. Throws for a value that is not a
|
|
194
|
+
* non-negative number of milliseconds.
|
|
195
|
+
*/
|
|
196
|
+
export declare function normalizeFirstLoadRemoteWaitMs(value: unknown): number | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* How long a read that names no tier waits for the server on its first load
|
|
199
|
+
* in browsers and React Native, when a server is configured. It never waits
|
|
200
|
+
* offline or after `db.disconnect()`; pass `firstLoadRemoteWaitMs: 0` to show
|
|
201
|
+
* local data at once.
|
|
202
|
+
*/
|
|
203
|
+
export declare const DEFAULT_CLIENT_FIRST_LOAD_REMOTE_WAIT_MS = 5000;
|
|
204
|
+
/**
|
|
205
|
+
* @internal Throw for anything but a product read tier. Read options accept
|
|
206
|
+
* only `ReadTier.LocalFirst` and `ReadTier.Remote`; removed names get a
|
|
207
|
+
* migration message.
|
|
208
|
+
*/
|
|
209
|
+
export declare function rejectRemovedReadTier(tier: unknown): void;
|
|
210
|
+
/**
|
|
211
|
+
* @internal Tiers internal callers may pass: the product tiers and the
|
|
212
|
+
* inspector-only tier that never subscribes upstream.
|
|
213
|
+
*/
|
|
214
|
+
export type InternalReadTier = ReadTier | "local-only";
|
|
215
|
+
/**
|
|
216
|
+
* Whether this query should be shown in the inspector.
|
|
217
|
+
* Useful for helpers and framework internals that create subscriptions
|
|
218
|
+
* but should stay out of the DB inspector.
|
|
219
|
+
* Defaults to `"public"`.
|
|
220
|
+
*/
|
|
221
|
+
export type QueryVisibility = "public" | "hidden_from_live_query_list";
|
|
222
|
+
/** Named values selecting one exact branch-local row coordinate. */
|
|
223
|
+
export interface BranchSelector {
|
|
224
|
+
values: Record<string, Value>;
|
|
225
|
+
}
|
|
226
|
+
/** A live or application-resolved frozen base underneath a branch head. */
|
|
227
|
+
export type BranchViewBase = {
|
|
228
|
+
kind: "current";
|
|
229
|
+
branch: BranchSelector;
|
|
230
|
+
} | {
|
|
231
|
+
kind: "snapshot";
|
|
232
|
+
branch: BranchSelector;
|
|
233
|
+
snapshot: SnapshotRef;
|
|
234
|
+
};
|
|
235
|
+
/** User-facing head-over-base branch view. */
|
|
236
|
+
export interface BranchView {
|
|
237
|
+
head: BranchSelector;
|
|
238
|
+
base?: BranchViewBase;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* The read tier and the options only that tier accepts: `tier` discriminates
|
|
242
|
+
* the shape, so a first-load wait on a `ReadTier.Remote` read does not type-check.
|
|
243
|
+
*/
|
|
244
|
+
export type ReadTierOptions = {
|
|
245
|
+
/**
|
|
246
|
+
* Read tier: {@link ReadTier.LocalFirst} or {@link ReadTier.Remote}.
|
|
247
|
+
*
|
|
248
|
+
* Reads default to local-first in browsers and React Native (with a brief
|
|
249
|
+
* first-load server wait when a server is configured), and without a
|
|
250
|
+
* configured server; other environments with a server default to remote.
|
|
251
|
+
*/
|
|
252
|
+
tier?: typeof ReadTier.LocalFirst;
|
|
253
|
+
/**
|
|
254
|
+
* How long the initial load may wait for the server's answer, in
|
|
255
|
+
* milliseconds. A read that names no tier in a browser or React Native
|
|
256
|
+
* with a server defaults to {@link DEFAULT_CLIENT_FIRST_LOAD_REMOTE_WAIT_MS};
|
|
257
|
+
* an explicit `tier: "local-first"` defaults to `0`. `0` shows local
|
|
258
|
+
* data at once.
|
|
259
|
+
*
|
|
260
|
+
* While the client is online (connected, or its connection attempt is still
|
|
261
|
+
* young), a subscription's first callback, or a one-shot read, waits up to
|
|
262
|
+
* this long for the server's answer and then shows it; if the server has not
|
|
263
|
+
* answered in time, it shows the local result. Offline, without a server,
|
|
264
|
+
* or after `db.disconnect()` it never waits. Later changes behave as usual
|
|
265
|
+
* for local-first: local writes show immediately and remote changes as
|
|
266
|
+
* they arrive.
|
|
267
|
+
*/
|
|
268
|
+
firstLoadRemoteWaitMs?: number;
|
|
269
|
+
} | {
|
|
270
|
+
/** Read tier: `ReadTier.LocalFirst` or `ReadTier.Remote`. */
|
|
271
|
+
tier: typeof ReadTier.Remote;
|
|
272
|
+
/**
|
|
273
|
+
* Only local-first reads wait for the server on their first load; a
|
|
274
|
+
* remote read always waits for the server. Ignored at runtime if given.
|
|
275
|
+
*/
|
|
276
|
+
firstLoadRemoteWaitMs?: never;
|
|
277
|
+
};
|
|
278
|
+
export type QueryExecutionOptions = ReadTierOptions & {
|
|
279
|
+
/** Admit exact-head history, falling back to an optional live or frozen base. */
|
|
280
|
+
branch?: BranchView;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Copy the product-facing subset of query options before crossing a public
|
|
284
|
+
* JavaScript boundary. TypeScript declarations are useful guidance, but a
|
|
285
|
+
* caller can always supply an object through `as any` (or plain JavaScript).
|
|
286
|
+
* In particular, transport propagation and own-write delivery are runtime
|
|
287
|
+
* controls, not product API switches.
|
|
288
|
+
*
|
|
289
|
+
* @internal Db uses the analogous conversion when it lowers typed builders.
|
|
53
290
|
*/
|
|
54
|
-
export
|
|
291
|
+
export declare function publicQueryExecutionOptions(options?: QueryExecutionOptions): QueryExecutionOptions | undefined;
|
|
292
|
+
/** @internal `local-only` is deliberately excluded from the product surface. */
|
|
293
|
+
export declare function isPublicQueryReadTier(value: unknown): value is ReadTier;
|
|
294
|
+
/** @internal Low-level read controls that are not part of the product-facing query API. */
|
|
295
|
+
export type InternalQueryExecutionOptions = Omit<QueryExecutionOptions, "tier"> & {
|
|
296
|
+
tier?: InternalReadTier;
|
|
297
|
+
visibility?: QueryVisibility;
|
|
298
|
+
openTransactionId?: OpenTransactionId;
|
|
299
|
+
/** Columns whose updates a subscription also delivers as splices. */
|
|
300
|
+
splices?: readonly string[];
|
|
301
|
+
};
|
|
302
|
+
export interface ResolvedQueryExecutionOptions {
|
|
303
|
+
tier: InternalReadTier;
|
|
304
|
+
/** Server wait of a local-first read; absent when it does not wait. */
|
|
305
|
+
firstLoadRemoteWaitMs?: number;
|
|
306
|
+
visibility: QueryVisibility;
|
|
307
|
+
branch?: BranchView;
|
|
308
|
+
splices?: readonly string[];
|
|
309
|
+
}
|
|
310
|
+
interface TimestampOverrideOptions {
|
|
311
|
+
updatedAt?: number;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Selects the transaction semantics used for grouped writes.
|
|
315
|
+
*
|
|
316
|
+
* - `mergeable`: eventually-consistent writes that merge with concurrent writes.
|
|
317
|
+
* - `serializable`: serializable writes that are validated as one unit by the authority.
|
|
318
|
+
*/
|
|
319
|
+
export type TransactionKind = "mergeable" | "serializable";
|
|
320
|
+
export type TransactionFate = {
|
|
321
|
+
kind: "missing";
|
|
322
|
+
transactionId: TxId;
|
|
323
|
+
} | {
|
|
324
|
+
kind: "rejected";
|
|
325
|
+
transactionId: TxId;
|
|
326
|
+
code: string;
|
|
327
|
+
reason: string;
|
|
328
|
+
} | {
|
|
329
|
+
kind: "accepted";
|
|
330
|
+
transactionId: TxId;
|
|
331
|
+
confirmedTier: DurabilityTier;
|
|
332
|
+
};
|
|
333
|
+
export interface LocalTransactionRecord {
|
|
334
|
+
transactionId: TxId;
|
|
335
|
+
kind: TransactionKind;
|
|
336
|
+
sealed: boolean;
|
|
337
|
+
latestSettlement: TransactionFate;
|
|
338
|
+
encodedRecord?: Uint8Array;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* A rejected write emitted by {@link JazzClient.onMutationError}.
|
|
342
|
+
*
|
|
343
|
+
* The event is a fallback for writes whose rejection was not handled by an
|
|
344
|
+
* active {@link WriteHandle.wait} call.
|
|
345
|
+
*/
|
|
346
|
+
export interface MutationErrorEvent {
|
|
347
|
+
code: string;
|
|
348
|
+
reason: string;
|
|
349
|
+
transaction: LocalTransactionRecord;
|
|
350
|
+
}
|
|
351
|
+
export interface InsertOptions extends TimestampOverrideOptions {
|
|
352
|
+
id?: string;
|
|
353
|
+
branch?: BranchSelector;
|
|
354
|
+
}
|
|
355
|
+
export interface UpdateOptions extends TimestampOverrideOptions {
|
|
356
|
+
branch?: BranchView;
|
|
357
|
+
}
|
|
358
|
+
export interface DeleteOptions extends TimestampOverrideOptions {
|
|
359
|
+
branch?: BranchView;
|
|
360
|
+
}
|
|
361
|
+
export interface RestoreOptions extends TimestampOverrideOptions {
|
|
362
|
+
branch?: BranchSelector;
|
|
363
|
+
}
|
|
55
364
|
/**
|
|
56
365
|
* Query row result.
|
|
57
366
|
*/
|
|
@@ -59,252 +368,376 @@ export interface Row {
|
|
|
59
368
|
id: string;
|
|
60
369
|
values: Value[];
|
|
61
370
|
}
|
|
371
|
+
export type WriteReceipt = {
|
|
372
|
+
readonly kind: "committed";
|
|
373
|
+
readonly txId: TxId | Promise<TxId>;
|
|
374
|
+
} | {
|
|
375
|
+
readonly kind: "staged";
|
|
376
|
+
readonly openTransactionId: OpenTransactionId;
|
|
377
|
+
};
|
|
378
|
+
export type InsertResult = Row & WriteReceipt;
|
|
379
|
+
export type StreamingValueChunk = Uint8Array | string;
|
|
380
|
+
export type StreamingValueSource = ReadableStream<StreamingValueChunk> | AsyncIterable<StreamingValueChunk>;
|
|
381
|
+
export type StreamingInsertResult = {
|
|
382
|
+
id: string;
|
|
383
|
+
} & WriteReceipt;
|
|
384
|
+
export type StreamingMutationKind = "insert" | "update" | "upsert";
|
|
385
|
+
export type MutationResult = WriteReceipt;
|
|
62
386
|
/**
|
|
63
387
|
* Subscription callback type.
|
|
388
|
+
*
|
|
389
|
+
* The function form is retained for compatibility. Prefer
|
|
390
|
+
* {@link SubscriptionCallbacks} so terminal failures are handled explicitly;
|
|
391
|
+
* otherwise they are reported to `console.error`.
|
|
64
392
|
*/
|
|
65
|
-
export type SubscriptionCallback = (delta:
|
|
66
|
-
export interface
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
393
|
+
export type SubscriptionCallback = (delta: RuntimeSubscriptionDelta) => void;
|
|
394
|
+
export interface SubscriptionCallbacks {
|
|
395
|
+
/** Called for each native subscription delta. */
|
|
396
|
+
onUpdate: SubscriptionCallback;
|
|
397
|
+
/** Called once when the native subscription or update callback fails. */
|
|
398
|
+
onError?: (error: Error) => void;
|
|
70
399
|
}
|
|
71
|
-
export
|
|
400
|
+
export interface ConnectRuntimeOptions {
|
|
401
|
+
onAuthFailure?: (reason: AuthFailureReason) => void;
|
|
402
|
+
}
|
|
403
|
+
type QueryExecutionDefaultsContext = {
|
|
404
|
+
serverUrl?: string;
|
|
405
|
+
};
|
|
406
|
+
export declare function resolveEffectiveQueryExecutionOptions(context: QueryExecutionDefaultsContext, options?: InternalQueryExecutionOptions): ResolvedQueryExecutionOptions;
|
|
72
407
|
/**
|
|
73
|
-
*
|
|
408
|
+
* Error returned when a write fails to be persisted at a given durability tier.
|
|
74
409
|
*/
|
|
75
|
-
export
|
|
76
|
-
|
|
410
|
+
export declare class PersistedWriteRejectedError extends Error {
|
|
411
|
+
readonly transactionId: TxId;
|
|
412
|
+
readonly code: string;
|
|
413
|
+
readonly reason: string;
|
|
414
|
+
readonly name = "PersistedWriteRejectedError";
|
|
415
|
+
constructor(transactionId: TxId, code: string, reason: string);
|
|
77
416
|
}
|
|
78
417
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* to perform operations as a specific user via header-based authentication.
|
|
418
|
+
* Error returned when waiting for a write reaches the `timeoutMs` its caller
|
|
419
|
+
* set. The write itself is not rejected: it stays queued and may still be
|
|
420
|
+
* persisted, so retrying it can duplicate it.
|
|
83
421
|
*/
|
|
84
|
-
export declare class
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
422
|
+
export declare class WriteWaitTimeoutError extends Error {
|
|
423
|
+
readonly tier: DurabilityTier;
|
|
424
|
+
readonly timeoutMs: number;
|
|
425
|
+
readonly name = "WriteWaitTimeoutError";
|
|
426
|
+
readonly code = "timeout";
|
|
427
|
+
constructor(tier: DurabilityTier, timeoutMs: number);
|
|
428
|
+
}
|
|
429
|
+
/** Options for waiting on a write. */
|
|
430
|
+
export interface WriteWaitOptions {
|
|
431
|
+
tier: DurabilityTier;
|
|
88
432
|
/**
|
|
89
|
-
*
|
|
433
|
+
* Stop waiting after this many milliseconds with a
|
|
434
|
+
* {@link WriteWaitTimeoutError}. Without it, a wait lasts until the write
|
|
435
|
+
* is persisted or rejected, through any network outage and reconnect.
|
|
90
436
|
*/
|
|
91
|
-
|
|
437
|
+
timeoutMs?: number;
|
|
438
|
+
}
|
|
439
|
+
/** @internal Validate a caller's `timeoutMs` before any wait work starts. */
|
|
440
|
+
export declare function validateWriteWaitTimeout(timeoutMs: unknown): void;
|
|
441
|
+
/** Internal wait controls; not part of the public WriteHandle.wait options. */
|
|
442
|
+
export interface RuntimeWriteWaitOptions {
|
|
443
|
+
ready?: Promise<void>;
|
|
444
|
+
observeOnly?: boolean;
|
|
445
|
+
/** Ends the wait with `signal.reason`; the write itself is unaffected. */
|
|
446
|
+
signal?: AbortSignal;
|
|
447
|
+
}
|
|
448
|
+
/** @internal Configure host readiness without delaying native wait registration. */
|
|
449
|
+
export declare function setWriteWaitReadiness<T extends WriteHandle<unknown, unknown>>(handle: T, ready: (tier: DurabilityTier) => Promise<void>): T;
|
|
450
|
+
/**
|
|
451
|
+
* Returned by upsert, update, delete, and transaction operations.
|
|
452
|
+
* Allows waiting for the write to be persisted at a given durability tier.
|
|
453
|
+
*/
|
|
454
|
+
export declare class WriteHandle<T = void, WaitResult = void> {
|
|
455
|
+
#private;
|
|
456
|
+
readonly value: T;
|
|
457
|
+
readonly txId: Promise<TxId>;
|
|
458
|
+
constructor(txId: TxId | Promise<TxId>, client: JazzClient, value?: T);
|
|
92
459
|
/**
|
|
93
|
-
*
|
|
460
|
+
* Wait for the write to be persisted at a given durability tier.
|
|
461
|
+
*
|
|
462
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the write is rejected,
|
|
463
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes. Without
|
|
464
|
+
* `timeoutMs`, a Global wait lasts through network outages and reconnects.
|
|
94
465
|
*/
|
|
95
|
-
|
|
466
|
+
wait(options: WriteWaitOptions): Promise<WaitResult>;
|
|
467
|
+
protected client(): JazzClient;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Returned by insert operations and auto-committed transactions.
|
|
471
|
+
* Allows getting the inserted value and waiting for the write
|
|
472
|
+
* to be persisted at a given durability tier.
|
|
473
|
+
*/
|
|
474
|
+
export declare class WriteResult<T> extends WriteHandle<T, T> {
|
|
475
|
+
constructor(value: T, txId: TxId | Promise<TxId>, client: JazzClient);
|
|
96
476
|
/**
|
|
97
|
-
*
|
|
477
|
+
* Wait for the write to be persisted at a given durability tier.
|
|
478
|
+
*
|
|
479
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the write is rejected,
|
|
480
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes.
|
|
481
|
+
* @returns the inserted row.
|
|
98
482
|
*/
|
|
99
|
-
|
|
483
|
+
wait(options: WriteWaitOptions): Promise<T>;
|
|
484
|
+
mapValue<U>(transformValue: (value: T) => U): WriteResult<U>;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Returned by explicitly-committed serializable transactions.
|
|
488
|
+
*
|
|
489
|
+
* Serializable transactions are accepted or rejected by the global authority, so
|
|
490
|
+
* callers do not choose a durability tier when waiting for confirmation.
|
|
491
|
+
*/
|
|
492
|
+
export declare class SerializableWriteHandle extends WriteHandle<void> {
|
|
100
493
|
/**
|
|
101
|
-
*
|
|
494
|
+
* Wait for the serializable transaction to be accepted or rejected by the authority.
|
|
495
|
+
*
|
|
496
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the transaction is rejected,
|
|
497
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes. Without
|
|
498
|
+
* `timeoutMs`, the wait lasts through network outages and reconnects.
|
|
102
499
|
*/
|
|
103
|
-
|
|
500
|
+
wait(options?: {
|
|
501
|
+
timeoutMs?: number;
|
|
502
|
+
}): Promise<void>;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Returned by auto-committed serializable transactions.
|
|
506
|
+
*/
|
|
507
|
+
export declare class SerializableWriteResult<T> extends WriteResult<T> {
|
|
104
508
|
/**
|
|
105
|
-
*
|
|
509
|
+
* Wait for the serializable transaction to be accepted or rejected by the authority.
|
|
510
|
+
*
|
|
511
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the transaction is rejected,
|
|
512
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes.
|
|
513
|
+
* @returns the callback result.
|
|
106
514
|
*/
|
|
107
|
-
|
|
515
|
+
wait(options?: {
|
|
516
|
+
timeoutMs?: number;
|
|
517
|
+
}): Promise<T>;
|
|
518
|
+
mapValue<U>(transformValue: (value: T) => U): SerializableWriteResult<U>;
|
|
108
519
|
}
|
|
520
|
+
/** @internal A prerequisite retained by the transaction until native opening. */
|
|
521
|
+
export type TransactionAdmission = () => Promise<void>;
|
|
109
522
|
/**
|
|
110
|
-
*
|
|
523
|
+
* @internal Tell a client whether something renews its credential after a
|
|
524
|
+
* refusal. Without it, a refusal ends the client's Global waits (#3923).
|
|
111
525
|
*/
|
|
526
|
+
export declare function setCredentialRenewal(client: object, renews: (reason: AuthFailureReason) => boolean): void;
|
|
527
|
+
/** @internal Report a refusal that reached the host rather than the client's runtime. */
|
|
528
|
+
export declare function reportCredentialRefusal(client: object, reason: AuthFailureReason): void;
|
|
529
|
+
/** @internal Explicit opening path without per-client ambient state. */
|
|
530
|
+
export declare function beginClientTransactionAfter(client: JazzClient, kind: TransactionKind, session: Session | undefined, attribution: string | undefined, reservedId: OpenTransactionId | undefined, prerequisite: TransactionAdmission | undefined): OpenTransactionId;
|
|
531
|
+
/** High-level Jazz client. */
|
|
112
532
|
export declare class JazzClient {
|
|
533
|
+
private readonly transactionPreparations;
|
|
113
534
|
private runtime;
|
|
114
|
-
private
|
|
115
|
-
private serverClientId;
|
|
116
|
-
private subscriptions;
|
|
535
|
+
private scheduler;
|
|
117
536
|
private context;
|
|
537
|
+
private resolvedSession;
|
|
538
|
+
private shutdownPromise;
|
|
539
|
+
private discarded;
|
|
540
|
+
/** Facade-owned subscription releases, fenced against terminal reentrancy. */
|
|
541
|
+
private activeSubscriptionReleases;
|
|
542
|
+
private registerSubscriptionRelease;
|
|
543
|
+
private releaseSubscription;
|
|
544
|
+
private resolveSessionFromContext;
|
|
545
|
+
private buildTransportAuthPayload;
|
|
118
546
|
private constructor();
|
|
119
547
|
/**
|
|
120
|
-
*
|
|
548
|
+
* Create client from a pre-constructed runtime.
|
|
121
549
|
*
|
|
122
|
-
*
|
|
123
|
-
* @returns Connected JazzClient instance
|
|
124
|
-
*/
|
|
125
|
-
static connect(context: AppContext): Promise<JazzClient>;
|
|
126
|
-
/**
|
|
127
|
-
* Create client synchronously with a pre-loaded WASM module.
|
|
128
|
-
*
|
|
129
|
-
* Use this after loading WASM via `loadWasmModule()` to avoid
|
|
130
|
-
* async client creation. This enables sync mutations in the Db class.
|
|
131
|
-
*
|
|
132
|
-
* @param wasmModule Pre-loaded WASM module from loadWasmModule()
|
|
133
|
-
* @param context Application context with driver and schema
|
|
134
|
-
* @returns Connected JazzClient instance (created synchronously)
|
|
135
|
-
*/
|
|
136
|
-
static connectSync(wasmModule: WasmModule, context: AppContext): JazzClient;
|
|
137
|
-
/**
|
|
138
|
-
* Create client from a pre-constructed runtime (e.g., NapiRuntime).
|
|
139
|
-
*
|
|
140
|
-
* This allows server-side apps to use the native NAPI backend directly
|
|
141
|
-
* without WASM loading.
|
|
550
|
+
* RuntimeSource implementations use this after selecting the platform runtime.
|
|
142
551
|
*
|
|
143
552
|
* @param runtime A runtime implementing the Runtime interface
|
|
144
553
|
* @param context Application context
|
|
145
554
|
* @returns Connected JazzClient instance
|
|
146
555
|
*/
|
|
147
|
-
static connectWithRuntime(runtime: Runtime, context: AppContext): JazzClient;
|
|
556
|
+
static connectWithRuntime(runtime: Runtime, context: AppContext, runtimeOptions?: ConnectRuntimeOptions): JazzClient;
|
|
557
|
+
captureSnapshot(): Promise<SnapshotRef>;
|
|
558
|
+
beginTransaction(kind: TransactionKind, session?: Session, attribution?: string, reservedId?: OpenTransactionId): OpenTransactionId;
|
|
559
|
+
/** @internal Explicit prerequisite opening; named so unused clients can be tree-shaken. */
|
|
560
|
+
openTransaction(kind: TransactionKind, session: Session | undefined, attribution: string | undefined, reservedId: OpenTransactionId | undefined, prerequisite?: TransactionAdmission): OpenTransactionId;
|
|
561
|
+
/** @internal Shared across schema clients attached to one runtime owner. */
|
|
562
|
+
preparationOwner(): object;
|
|
563
|
+
/** @internal An empty policy-filtered result does not establish that a row is absent. */
|
|
564
|
+
readCanEstablishAbsence(session?: Session, transaction?: OpenTransactionId): boolean;
|
|
565
|
+
onMutationError(listener: (event: MutationErrorEvent) => void): void;
|
|
148
566
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* Requires `backendSecret` to be configured in the `AppContext`.
|
|
153
|
-
*
|
|
154
|
-
* @param session Session to impersonate
|
|
155
|
-
* @returns SessionClient for performing operations as the given user
|
|
156
|
-
* @throws Error if backendSecret is not configured
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```typescript
|
|
160
|
-
* const userSession = { user_id: "user-123", claims: {} };
|
|
161
|
-
* const userClient = client.forSession(userSession);
|
|
162
|
-
* const id = await userClient.create("todos", [{ type: "Text", value: "Buy milk" }]);
|
|
163
|
-
* ```
|
|
567
|
+
* @internal Register deferred physical preparation before returning a mutation.
|
|
568
|
+
* Callbacks must use the underlying runtime, not re-enter this client's
|
|
569
|
+
* transaction reads or commit (which wait for the registered preparation).
|
|
164
570
|
*/
|
|
165
|
-
|
|
571
|
+
prepareTransaction(id: OpenTransactionId, prepare: (io: TransactionPreparationIO) => Promise<void>): Promise<void>;
|
|
572
|
+
private stageMutation;
|
|
573
|
+
private stageRowMutation;
|
|
574
|
+
/** @internal Prepare a return value without publishing or staging a physical row. */
|
|
575
|
+
previewInsertInternal(table: string, values: InsertValues, objectId?: string): Row;
|
|
576
|
+
commitTransaction(id: OpenTransactionId): WriteHandle;
|
|
577
|
+
rollbackTransaction(id: OpenTransactionId): Promise<boolean>;
|
|
166
578
|
/**
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* Extracts `Authorization: Bearer <jwt>` and maps payload fields:
|
|
170
|
-
* - `sub` -> `session.user_id`
|
|
171
|
-
* - `claims` -> `session.claims` (defaults to `{}`)
|
|
579
|
+
* Enable backend-scoped sync auth for this client.
|
|
172
580
|
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
581
|
+
* In backend mode, sync/event transport uses `X-Jazz-Backend-Secret` instead
|
|
582
|
+
* of end-user auth headers and intentionally does not send admin headers.
|
|
175
583
|
*/
|
|
176
|
-
|
|
584
|
+
asBackend(): JazzClient;
|
|
177
585
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
* @returns The new row's ID (UUID string)
|
|
586
|
+
* @internal The server refused this client's credential. A refusal the app
|
|
587
|
+
* renews holds Global waits until the new credential reconnects, as an
|
|
588
|
+
* outage does; with nothing to renew it, the runtime ends them and its
|
|
589
|
+
* remote subscriptions as a terminal failure (#3923).
|
|
183
590
|
*/
|
|
184
|
-
|
|
591
|
+
handleCredentialRefusal(reason: AuthFailureReason): void;
|
|
592
|
+
private updateAuthSnapshot;
|
|
593
|
+
updateAuthToken(jwtToken?: string): void;
|
|
594
|
+
/** @internal Accept an auth update already applied by the owning connection. */
|
|
595
|
+
acceptAuthUpdate(update: AuthUpdate): void;
|
|
596
|
+
/** @internal Update a token minted by a dedicated first-party reserved auth flow. */
|
|
597
|
+
updateTrustedAuthToken(jwtToken: string, session: Session): void;
|
|
598
|
+
updateCookieSession(cookieSession?: Session): void;
|
|
599
|
+
private normalizeQueryExecutionOptions;
|
|
185
600
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* @param table Table name
|
|
189
|
-
* @param values Array of column values
|
|
190
|
-
* @param tier Acknowledgement tier to wait for
|
|
191
|
-
* @returns Promise resolving to the new row's ID when the tier acknowledges
|
|
601
|
+
* Resolve the writing session and encode the runtime write context. An
|
|
602
|
+
* insert/restore branch selector is lowered to a head-only branch view.
|
|
192
603
|
*/
|
|
193
|
-
|
|
604
|
+
private writeContext;
|
|
194
605
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* @param query Query builder or JSON-encoded query specification
|
|
198
|
-
* @param settledTier Optional tier to hold delivery until confirmed
|
|
199
|
-
* @returns Array of matching rows
|
|
606
|
+
* Insert a new row into a table without waiting for durability.
|
|
200
607
|
*/
|
|
201
|
-
|
|
608
|
+
insert(table: string, values: InsertValues, options?: InsertOptions, session?: Session, attribution?: string): WriteResult<Row>;
|
|
202
609
|
/**
|
|
203
|
-
*
|
|
204
|
-
*
|
|
610
|
+
* Consume one host byte/text stream and atomically insert the resulting
|
|
611
|
+
* scalar with the other row values. The streamed value is intentionally not
|
|
612
|
+
* copied back into the returned handle.
|
|
205
613
|
*/
|
|
206
|
-
|
|
614
|
+
insertStreaming(table: string, values: InsertValues, column: string, source: StreamingValueSource, options?: InsertOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
|
|
615
|
+
id: string;
|
|
616
|
+
}>>;
|
|
617
|
+
updateStreaming(table: string, objectId: string, values: InsertValues, column: string, source: StreamingValueSource, options?: UpdateOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
|
|
618
|
+
id: string;
|
|
619
|
+
}>>;
|
|
620
|
+
upsertStreaming(table: string, objectId: string, values: InsertValues, column: string, source: StreamingValueSource, options?: UpdateOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
|
|
621
|
+
id: string;
|
|
622
|
+
}>>;
|
|
623
|
+
private streamingMutation;
|
|
207
624
|
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
* @param objectId Row ID (UUID string)
|
|
211
|
-
* @param updates Object mapping column names to new values
|
|
625
|
+
* @internal Stage a streamed mutation in open transaction
|
|
626
|
+
* `openTransactionId`; it commits with the transaction.
|
|
212
627
|
*/
|
|
213
|
-
|
|
628
|
+
streamingMutationInTransaction(mutation: StreamingMutationKind, table: string, values: InsertValues, column: string, source: StreamingValueSource, openTransactionId: OpenTransactionId, options?: InsertOptions | UpdateOptions, session?: Session, attribution?: string, objectId?: string): Promise<{
|
|
629
|
+
id: string;
|
|
630
|
+
}>;
|
|
631
|
+
private runStreamingMutation;
|
|
214
632
|
/**
|
|
215
|
-
*
|
|
633
|
+
* @internal
|
|
216
634
|
*/
|
|
217
|
-
|
|
635
|
+
insertInternal(table: string, values: InsertValues, options?: InsertOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): InsertResult;
|
|
218
636
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
* @param objectId Row ID (UUID string)
|
|
637
|
+
* Restore a soft-deleted row with a caller-supplied id without waiting for durability.
|
|
222
638
|
*/
|
|
223
|
-
|
|
639
|
+
restore(table: string, objectId: string, values: InsertValues, options?: RestoreOptions, session?: Session, attribution?: string): WriteResult<Row>;
|
|
224
640
|
/**
|
|
225
|
-
*
|
|
641
|
+
* @internal
|
|
226
642
|
*/
|
|
227
|
-
|
|
643
|
+
restoreInternal(table: string, objectId: string, values: InsertValues, options?: RestoreOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): InsertResult;
|
|
228
644
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* @param query Query builder or JSON-encoded query specification
|
|
232
|
-
* @param callback Called with delta whenever results change
|
|
233
|
-
* @param settledTier Optional tier to hold initial delivery until confirmed
|
|
234
|
-
* @returns Subscription ID for unsubscribing
|
|
645
|
+
* Create or update a row with a caller-supplied id without waiting for durability.
|
|
235
646
|
*/
|
|
236
|
-
|
|
647
|
+
upsert(table: string, objectId: string, values: InsertValues, options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
|
|
237
648
|
/**
|
|
238
|
-
* Internal subscribe with optional session and settled tier.
|
|
239
649
|
* @internal
|
|
240
650
|
*/
|
|
241
|
-
|
|
651
|
+
upsertInternal(table: string, objectId: string, values: InsertValues, options?: UpdateOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): MutationResult;
|
|
242
652
|
/**
|
|
243
|
-
*
|
|
653
|
+
* Execute a query and return all matching rows.
|
|
244
654
|
*
|
|
245
|
-
* @param
|
|
655
|
+
* @param query JSON-encoded runtime query specification
|
|
656
|
+
* @param options Optional read durability options
|
|
657
|
+
* @returns Array of matching rows
|
|
246
658
|
*/
|
|
247
|
-
|
|
659
|
+
query(query: string, options?: QueryExecutionOptions, session?: Session): Promise<Row[]>;
|
|
660
|
+
/** @internal */
|
|
661
|
+
queryInternal(query: string, options?: InternalQueryExecutionOptions, session?: Session): Promise<Row[]>;
|
|
662
|
+
private queryWithoutPreparation;
|
|
248
663
|
/**
|
|
249
|
-
*
|
|
664
|
+
* Update a row by ID without waiting for durability.
|
|
250
665
|
*/
|
|
251
|
-
|
|
666
|
+
update(table: string, objectId: string, updates: Record<string, Value>, options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
|
|
667
|
+
/** @internal Typed `Db.update` diff lowering; not exposed as an imperative API. */
|
|
668
|
+
updateLargeValues(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
|
|
669
|
+
/** @internal */
|
|
670
|
+
updateLargeValuesInternal(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
|
|
252
671
|
/**
|
|
253
|
-
* Get the underlying runtime (for WorkerBridge).
|
|
254
672
|
* @internal
|
|
255
673
|
*/
|
|
256
|
-
|
|
674
|
+
updateInternal(table: string, objectId: string, updates: Record<string, Value>, updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
|
|
257
675
|
/**
|
|
258
|
-
*
|
|
259
|
-
* @internal
|
|
676
|
+
* Delete a row by ID without waiting for durability.
|
|
260
677
|
*/
|
|
261
|
-
|
|
678
|
+
delete(table: string, objectId: string, options?: DeleteOptions, session?: Session, attribution?: string): WriteHandle;
|
|
679
|
+
canInsertLocally(table: string, values: InsertValues, session?: Session): PermissionAdvice;
|
|
680
|
+
canReadLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
681
|
+
canUpdateLocally(table: string, objectId: string, values: Record<string, Value>, session?: Session): PermissionAdvice;
|
|
682
|
+
canDeleteLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
683
|
+
requestInsertPermissionAdvice(table: string, values: InsertValues, session?: Session): Promise<PermissionAdvice>;
|
|
684
|
+
requestReadPermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
685
|
+
requestUpdatePermissionAdvice(table: string, objectId: string, values: Record<string, Value>, session?: Session): Promise<PermissionAdvice>;
|
|
686
|
+
requestDeletePermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
262
687
|
/**
|
|
263
|
-
* Build a fully-qualified endpoint URL against the configured server.
|
|
264
688
|
* @internal
|
|
265
689
|
*/
|
|
266
|
-
|
|
690
|
+
deleteInternal(table: string, objectId: string, updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
|
|
267
691
|
/**
|
|
268
|
-
*
|
|
269
|
-
*
|
|
692
|
+
* Subscribe to a query and receive updates when results change.
|
|
693
|
+
*
|
|
694
|
+
* @param callbacks Delta callback, or callbacks object with terminal error handling.
|
|
695
|
+
* Legacy function-form subscriptions report terminal failures to `console.error`.
|
|
696
|
+
* @param options Optional read durability options
|
|
697
|
+
* @returns Subscription ID for unsubscribing
|
|
270
698
|
*/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
user_branch: string;
|
|
275
|
-
};
|
|
699
|
+
subscribe(query: string, callbacks: SubscriptionCallback | SubscriptionCallbacks, options?: QueryExecutionOptions, session?: Session): number;
|
|
700
|
+
/** @internal */
|
|
701
|
+
subscribeInternal(query: string, callbacks: SubscriptionCallback | SubscriptionCallbacks, options?: InternalQueryExecutionOptions, session?: Session): number;
|
|
276
702
|
/**
|
|
277
|
-
*
|
|
278
|
-
*
|
|
703
|
+
* Unsubscribe from a query.
|
|
704
|
+
*
|
|
705
|
+
* @param subscriptionId ID returned from subscribe()
|
|
279
706
|
*/
|
|
280
|
-
|
|
707
|
+
unsubscribe(subscriptionId: number): void;
|
|
281
708
|
/**
|
|
282
|
-
*
|
|
709
|
+
* Connect to a Jazz server over WebSocket using the Rust transport layer.
|
|
283
710
|
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* -
|
|
287
|
-
*
|
|
711
|
+
* Accepts an HTTP/HTTPS server URL (e.g. "http://localhost:4000") and
|
|
712
|
+
* converts it to the corresponding WebSocket `/ws` endpoint URL before
|
|
713
|
+
* passing it to the underlying Rust runtime's `connect()`. Already-WS URLs
|
|
714
|
+
* are passed through unchanged.
|
|
288
715
|
*
|
|
289
|
-
*
|
|
716
|
+
* @param url Server URL — http(s):// or ws(s)://. `/apps/<appId>/ws` is appended automatically.
|
|
717
|
+
* @param auth Authentication credentials for the connection.
|
|
290
718
|
*/
|
|
291
|
-
|
|
719
|
+
connectTransport(url: string, auth: AuthConfig): void;
|
|
720
|
+
/**
|
|
721
|
+
* Temporarily disconnect from the Jazz server without closing local runtime state.
|
|
722
|
+
*/
|
|
723
|
+
disconnectTransport(): Promise<void>;
|
|
724
|
+
/**
|
|
725
|
+
* Get the current schema.
|
|
726
|
+
*/
|
|
727
|
+
getSchema(): WasmSchema;
|
|
728
|
+
/** @internal Connection managers use this to attach native peer transports. */
|
|
729
|
+
getRuntime(): Runtime;
|
|
730
|
+
waitForTransaction(txId: TxId | Promise<TxId>, tier: DurabilityTier, ready?: Promise<void>, timeoutMs?: number): Promise<void>;
|
|
731
|
+
/** @internal */
|
|
732
|
+
waitForSerializableTransaction(txId: TxId | Promise<TxId>, timeoutMs?: number): Promise<void>;
|
|
733
|
+
private normalizeTransactionWaitError;
|
|
292
734
|
/**
|
|
293
735
|
* Shutdown the client and release resources.
|
|
294
736
|
*/
|
|
295
737
|
shutdown(): Promise<void>;
|
|
296
|
-
|
|
297
|
-
|
|
738
|
+
/** @internal Abandon runtime work after external storage invalidation/reset. */
|
|
739
|
+
discard(): void;
|
|
740
|
+
clearClientStorage(): Promise<void>;
|
|
298
741
|
}
|
|
299
|
-
|
|
300
|
-
* WASM module type for sync client creation.
|
|
301
|
-
* This is the type of the jazz-wasm module after dynamic import.
|
|
302
|
-
*/
|
|
303
|
-
export type WasmModule = typeof import("jazz-wasm");
|
|
304
|
-
/**
|
|
305
|
-
* Load and initialize the WASM module.
|
|
306
|
-
*
|
|
307
|
-
* Exported so that `createDb()` can pre-load the module for sync mutations.
|
|
308
|
-
*/
|
|
309
|
-
export declare function loadWasmModule(): Promise<WasmModule>;
|
|
742
|
+
export {};
|
|
310
743
|
//# sourceMappingURL=client.d.ts.map
|