jazz-tools 2.0.0-alpha.9 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +134 -7
- package/bin/jazz-tools.js +95 -68
- package/dist/_dev/inspector-cache-runtime.d.ts +8 -0
- package/dist/_dev/inspector-cache-runtime.d.ts.map +1 -0
- package/dist/_dev/inspector-cache-runtime.js +246 -0
- package/dist/_dev/inspector-cache-runtime.js.map +1 -0
- package/dist/_dev/inspector-client.d.ts +15 -0
- package/dist/_dev/inspector-client.d.ts.map +1 -0
- package/dist/_dev/inspector-client.js +134 -0
- package/dist/_dev/inspector-client.js.map +1 -0
- package/dist/_dev/native-account-session.d.ts +23 -0
- package/dist/_dev/native-account-session.d.ts.map +1 -0
- package/dist/_dev/native-account-session.js +61 -0
- package/dist/_dev/native-account-session.js.map +1 -0
- package/dist/_dev/native-binding-codec.d.ts +9 -0
- package/dist/_dev/native-binding-codec.d.ts.map +1 -0
- package/dist/_dev/native-binding-codec.js +9 -0
- package/dist/_dev/native-binding-codec.js.map +1 -0
- package/dist/accounts/account-manager-core.d.ts +87 -0
- package/dist/accounts/account-manager-core.d.ts.map +1 -0
- package/dist/accounts/account-manager-core.js +236 -0
- package/dist/accounts/account-manager-core.js.map +1 -0
- package/dist/accounts/browser-host.d.ts +8 -0
- package/dist/accounts/browser-host.d.ts.map +1 -0
- package/dist/accounts/browser-host.js +16 -0
- package/dist/accounts/browser-host.js.map +1 -0
- package/dist/accounts/config-capability.d.ts +26 -0
- package/dist/accounts/config-capability.d.ts.map +1 -0
- package/dist/accounts/config-capability.js +58 -0
- package/dist/accounts/config-capability.js.map +1 -0
- package/dist/accounts/context.d.ts +14 -0
- package/dist/accounts/context.d.ts.map +1 -0
- package/dist/accounts/context.js +214 -0
- package/dist/accounts/context.js.map +1 -0
- package/dist/accounts/enrollment.d.ts +95 -0
- package/dist/accounts/enrollment.d.ts.map +1 -0
- package/dist/accounts/enrollment.js +314 -0
- package/dist/accounts/enrollment.js.map +1 -0
- package/dist/accounts/exports.d.ts +3 -0
- package/dist/accounts/exports.d.ts.map +1 -0
- package/dist/accounts/exports.js +5 -0
- package/dist/accounts/exports.js.map +1 -0
- package/dist/accounts/local-first.d.ts +17 -0
- package/dist/accounts/local-first.d.ts.map +1 -0
- package/dist/accounts/local-first.js +62 -0
- package/dist/accounts/local-first.js.map +1 -0
- package/dist/accounts/persistence.d.ts +79 -0
- package/dist/accounts/persistence.d.ts.map +1 -0
- package/dist/accounts/persistence.js +533 -0
- package/dist/accounts/persistence.js.map +1 -0
- package/dist/accounts/process-store.d.ts +27 -0
- package/dist/accounts/process-store.d.ts.map +1 -0
- package/dist/accounts/process-store.js +49 -0
- package/dist/accounts/process-store.js.map +1 -0
- package/dist/accounts/registry-client.d.ts +79 -0
- package/dist/accounts/registry-client.d.ts.map +1 -0
- package/dist/accounts/registry-client.js +153 -0
- package/dist/accounts/registry-client.js.map +1 -0
- package/dist/accounts/state.d.ts +76 -0
- package/dist/accounts/state.d.ts.map +1 -0
- package/dist/accounts/state.js +172 -0
- package/dist/accounts/state.js.map +1 -0
- package/dist/app-file-enums.d.ts +9 -0
- package/dist/app-file-enums.d.ts.map +1 -0
- package/dist/app-file-enums.js +34 -0
- package/dist/app-file-enums.js.map +1 -0
- package/dist/authoring.d.ts +9 -0
- package/dist/authoring.d.ts.map +1 -0
- package/dist/authoring.js +9 -0
- package/dist/authoring.js.map +1 -0
- package/dist/backend/admission.d.ts +28 -0
- package/dist/backend/admission.d.ts.map +1 -0
- package/dist/backend/admission.js +146 -0
- package/dist/backend/admission.js.map +1 -0
- package/dist/backend/api.d.ts +12 -0
- package/dist/backend/api.d.ts.map +1 -0
- package/dist/backend/api.js +11 -0
- package/dist/backend/api.js.map +1 -0
- package/dist/backend/backend-clients.d.ts +76 -0
- package/dist/backend/backend-clients.d.ts.map +1 -0
- package/dist/backend/backend-clients.js +237 -0
- package/dist/backend/backend-clients.js.map +1 -0
- package/dist/backend/backend-issuer.d.ts +6 -0
- package/dist/backend/backend-issuer.d.ts.map +1 -0
- package/dist/backend/backend-issuer.js +6 -0
- package/dist/backend/backend-issuer.js.map +1 -0
- package/dist/backend/backend-native.d.ts +40 -0
- package/dist/backend/backend-native.d.ts.map +1 -0
- package/dist/backend/backend-native.js +37 -0
- package/dist/backend/backend-native.js.map +1 -0
- package/dist/backend/blobs.d.ts +130 -0
- package/dist/backend/blobs.d.ts.map +1 -0
- package/dist/backend/blobs.js +132 -0
- package/dist/backend/blobs.js.map +1 -0
- package/dist/backend/core-transport.d.ts +61 -0
- package/dist/backend/core-transport.d.ts.map +1 -0
- package/dist/backend/core-transport.js +106 -0
- package/dist/backend/core-transport.js.map +1 -0
- package/dist/backend/create-jazz-context.d.ts +94 -28
- package/dist/backend/create-jazz-context.d.ts.map +1 -1
- package/dist/backend/create-jazz-context.js +661 -67
- package/dist/backend/create-jazz-context.js.map +1 -1
- package/dist/backend/create-jazz-session.d.ts +125 -0
- package/dist/backend/create-jazz-session.d.ts.map +1 -0
- package/dist/backend/create-jazz-session.js +528 -0
- package/dist/backend/create-jazz-session.js.map +1 -0
- package/dist/backend/create-jazz.d.ts +677 -0
- package/dist/backend/create-jazz.d.ts.map +1 -0
- package/dist/backend/create-jazz.js +4076 -0
- package/dist/backend/create-jazz.js.map +1 -0
- package/dist/backend/early-db.d.ts +29 -0
- package/dist/backend/early-db.d.ts.map +1 -0
- package/dist/backend/early-db.js +203 -0
- package/dist/backend/early-db.js.map +1 -0
- package/dist/backend/external-jwt.d.ts +27 -0
- package/dist/backend/external-jwt.d.ts.map +1 -0
- package/dist/backend/external-jwt.js +404 -0
- package/dist/backend/external-jwt.js.map +1 -0
- package/dist/backend/from-jwt.d.ts +64 -0
- package/dist/backend/from-jwt.d.ts.map +1 -0
- package/dist/backend/from-jwt.js +104 -0
- package/dist/backend/from-jwt.js.map +1 -0
- package/dist/backend/index.d.ts +6 -3
- package/dist/backend/index.d.ts.map +1 -1
- package/dist/backend/index.js +18 -2
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/inspect-ui.d.ts +14 -0
- package/dist/backend/inspect-ui.d.ts.map +1 -0
- package/dist/backend/inspect-ui.js +156 -0
- package/dist/backend/inspect-ui.js.map +1 -0
- package/dist/backend/inspect.d.ts +133 -0
- package/dist/backend/inspect.d.ts.map +1 -0
- package/dist/backend/inspect.js +1001 -0
- package/dist/backend/inspect.js.map +1 -0
- package/dist/backend/inspector-ui/0.js +2 -0
- package/dist/backend/inspector-ui/1.js +2 -0
- package/dist/backend/inspector-ui/10.js +2 -0
- package/dist/backend/inspector-ui/11.js +2 -0
- package/dist/backend/inspector-ui/12.js +2 -0
- package/dist/backend/inspector-ui/13.js +2 -0
- package/dist/backend/inspector-ui/14.js +2 -0
- package/dist/backend/inspector-ui/15.js +2 -0
- package/dist/backend/inspector-ui/16.js +2 -0
- package/dist/backend/inspector-ui/17.js +2 -0
- package/dist/backend/inspector-ui/18.js +2 -0
- package/dist/backend/inspector-ui/19.js +2 -0
- package/dist/backend/inspector-ui/2.js +2 -0
- package/dist/backend/inspector-ui/20.js +2 -0
- package/dist/backend/inspector-ui/21.js +2 -0
- package/dist/backend/inspector-ui/3.js +2 -0
- package/dist/backend/inspector-ui/4.js +2 -0
- package/dist/backend/inspector-ui/5.js +2 -0
- package/dist/backend/inspector-ui/6.js +2 -0
- package/dist/backend/inspector-ui/7.js +2 -0
- package/dist/backend/inspector-ui/8.js +2 -0
- package/dist/backend/inspector-ui/9.js +2 -0
- package/dist/backend/inspector-ui-files.d.ts +4 -0
- package/dist/backend/inspector-ui-files.d.ts.map +1 -0
- package/dist/backend/inspector-ui-files.js +26 -0
- package/dist/backend/no-account-error.d.ts +23 -0
- package/dist/backend/no-account-error.d.ts.map +1 -0
- package/dist/backend/no-account-error.js +30 -0
- package/dist/backend/no-account-error.js.map +1 -0
- package/dist/backend/node-native.d.ts +3 -0
- package/dist/backend/node-native.d.ts.map +1 -0
- package/dist/backend/node-native.js +19 -0
- package/dist/backend/node-native.js.map +1 -0
- package/dist/backend/node-peers.d.ts +10 -0
- package/dist/backend/node-peers.d.ts.map +1 -0
- package/dist/backend/node-peers.js +37 -0
- package/dist/backend/node-peers.js.map +1 -0
- package/dist/backend/optional-peer.d.ts +9 -0
- package/dist/backend/optional-peer.d.ts.map +1 -0
- package/dist/backend/optional-peer.js +24 -0
- package/dist/backend/optional-peer.js.map +1 -0
- package/dist/backend/request-auth.d.ts +69 -0
- package/dist/backend/request-auth.d.ts.map +1 -0
- package/dist/backend/request-auth.js +122 -0
- package/dist/backend/request-auth.js.map +1 -0
- package/dist/backend/session-expiry.d.ts +61 -0
- package/dist/backend/session-expiry.d.ts.map +1 -0
- package/dist/backend/session-expiry.js +102 -0
- package/dist/backend/session-expiry.js.map +1 -0
- package/dist/backend/signing-key.d.ts +32 -0
- package/dist/backend/signing-key.d.ts.map +1 -0
- package/dist/backend/signing-key.js +63 -0
- package/dist/backend/signing-key.js.map +1 -0
- package/dist/backend/socket-deadline.d.ts +23 -0
- package/dist/backend/socket-deadline.d.ts.map +1 -0
- package/dist/backend/socket-deadline.js +70 -0
- package/dist/backend/socket-deadline.js.map +1 -0
- package/dist/backend/store-log.d.ts +3 -0
- package/dist/backend/store-log.d.ts.map +1 -0
- package/dist/backend/store-log.js +16 -0
- package/dist/backend/store-log.js.map +1 -0
- package/dist/backend/thin-relay.d.ts +66 -0
- package/dist/backend/thin-relay.d.ts.map +1 -0
- package/dist/backend/thin-relay.js +204 -0
- package/dist/backend/thin-relay.js.map +1 -0
- package/dist/backend/thin-session-client.d.ts +23 -0
- package/dist/backend/thin-session-client.d.ts.map +1 -0
- package/dist/backend/thin-session-client.js +69 -0
- package/dist/backend/thin-session-client.js.map +1 -0
- package/dist/backend/upgrade-status.d.ts +19 -0
- package/dist/backend/upgrade-status.d.ts.map +1 -0
- package/dist/backend/upgrade-status.js +55 -0
- package/dist/backend/upgrade-status.js.map +1 -0
- package/dist/backend/vercel-store.d.ts +345 -0
- package/dist/backend/vercel-store.d.ts.map +1 -0
- package/dist/backend/vercel-store.js +1387 -0
- package/dist/backend/vercel-store.js.map +1 -0
- package/dist/backend/workerd-backend.d.ts +36 -0
- package/dist/backend/workerd-backend.d.ts.map +1 -0
- package/dist/backend/workerd-backend.js +97 -0
- package/dist/backend/workerd-backend.js.map +1 -0
- package/dist/backend/workerd.d.ts +3 -0
- package/dist/backend/workerd.d.ts.map +1 -0
- package/dist/backend/workerd.js +39 -0
- package/dist/backend/workerd.js.map +1 -0
- package/dist/backend/ws-peer.d.ts +32 -0
- package/dist/backend/ws-peer.d.ts.map +1 -0
- package/dist/backend/ws-peer.js +41 -0
- package/dist/backend/ws-peer.js.map +1 -0
- package/dist/better-auth-adapter/fixtures/app.d.ts +151 -0
- package/dist/better-auth-adapter/fixtures/app.d.ts.map +1 -0
- package/dist/better-auth-adapter/fixtures/app.js +13 -0
- package/dist/better-auth-adapter/fixtures/app.js.map +1 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts +20 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.d.ts.map +1 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.js +27 -0
- package/dist/better-auth-adapter/fixtures/issuer-upgrade.js.map +1 -0
- package/dist/better-auth-adapter/index.d.ts +13 -0
- package/dist/better-auth-adapter/index.d.ts.map +1 -0
- package/dist/better-auth-adapter/index.js +406 -0
- package/dist/better-auth-adapter/index.js.map +1 -0
- package/dist/better-auth-adapter/indexes.d.ts +9 -0
- package/dist/better-auth-adapter/indexes.d.ts.map +1 -0
- package/dist/better-auth-adapter/indexes.js +40 -0
- package/dist/better-auth-adapter/indexes.js.map +1 -0
- package/dist/better-auth-adapter/schema.d.ts +88 -0
- package/dist/better-auth-adapter/schema.d.ts.map +1 -0
- package/dist/better-auth-adapter/schema.js +332 -0
- package/dist/better-auth-adapter/schema.js.map +1 -0
- package/dist/better-auth-adapter/types.d.ts +13 -0
- package/dist/better-auth-adapter/types.d.ts.map +1 -0
- package/dist/better-auth-adapter/types.js +2 -0
- package/dist/better-auth-adapter/types.js.map +1 -0
- package/dist/better-auth-adapter/utils.d.ts +53 -0
- package/dist/better-auth-adapter/utils.d.ts.map +1 -0
- package/dist/better-auth-adapter/utils.js +126 -0
- package/dist/better-auth-adapter/utils.js.map +1 -0
- package/dist/browser-benchmark-mode.d.ts +6 -0
- package/dist/browser-benchmark-mode.d.ts.map +1 -0
- package/dist/browser-benchmark-mode.js +13 -0
- package/dist/browser-benchmark-mode.js.map +1 -0
- package/dist/classic-api.d.ts +59 -0
- package/dist/classic-api.d.ts.map +1 -0
- package/dist/classic-api.js +122 -0
- package/dist/classic-api.js.map +1 -0
- package/dist/cli.d.ts +38 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +457 -265
- package/dist/cli.js.map +1 -1
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -0
- package/dist/cloud/api.d.ts +11 -0
- package/dist/cloud/api.d.ts.map +1 -0
- package/dist/cloud/api.js +46 -0
- package/dist/cloud/api.js.map +1 -0
- package/dist/cloud/commands.d.ts +13 -0
- package/dist/cloud/commands.d.ts.map +1 -0
- package/dist/cloud/commands.js +425 -0
- package/dist/cloud/commands.js.map +1 -0
- package/dist/cloud/credentials.d.ts +49 -0
- package/dist/cloud/credentials.d.ts.map +1 -0
- package/dist/cloud/credentials.js +219 -0
- package/dist/cloud/credentials.js.map +1 -0
- package/dist/cloud/session.d.ts +57 -0
- package/dist/cloud/session.d.ts.map +1 -0
- package/dist/cloud/session.js +269 -0
- package/dist/cloud/session.js.map +1 -0
- package/dist/codegen/relation-analyzer.d.ts +5 -12
- package/dist/codegen/relation-analyzer.d.ts.map +1 -1
- package/dist/codegen/relation-analyzer.js +53 -64
- package/dist/codegen/relation-analyzer.js.map +1 -1
- package/dist/dev/app-files.d.ts +32 -0
- package/dist/dev/app-files.d.ts.map +1 -0
- package/dist/dev/app-files.js +72 -0
- package/dist/dev/app-files.js.map +1 -0
- package/dist/dev/catalogue-api.d.ts +147 -0
- package/dist/dev/catalogue-api.d.ts.map +1 -0
- package/dist/dev/catalogue-api.js +127 -0
- package/dist/dev/catalogue-api.js.map +1 -0
- package/dist/dev/catalogue.d.ts +69 -0
- package/dist/dev/catalogue.d.ts.map +1 -0
- package/dist/dev/catalogue.js +70 -0
- package/dist/dev/catalogue.js.map +1 -0
- package/dist/dev/codegen-napi.d.ts +139 -0
- package/dist/dev/codegen-napi.d.ts.map +1 -0
- package/dist/dev/codegen-napi.js +157 -0
- package/dist/dev/codegen-napi.js.map +1 -0
- package/dist/dev/dev-server.d.ts +62 -0
- package/dist/dev/dev-server.d.ts.map +1 -0
- package/dist/dev/dev-server.js +164 -0
- package/dist/dev/dev-server.js.map +1 -0
- package/dist/dev/index.d.ts +3 -0
- package/dist/dev/index.d.ts.map +1 -0
- package/dist/dev/index.js +3 -0
- package/dist/dev/index.js.map +1 -0
- package/dist/dev/inspector-overlay/browser-control-registry.d.ts +10 -0
- package/dist/dev/inspector-overlay/browser-control-registry.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/browser-control-registry.js +188 -0
- package/dist/dev/inspector-overlay/browser-control-registry.js.map +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/ExportResult-C0ZojfNk.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/backend-0Idv0niF.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/backend-DHeT1LCS.css +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/create-legacy-browser-delegate-DeI8PAZ5.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/diag-api-3Z_Eel3W.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-BB6DtWpZ.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-B_xpsQL2.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-CE7mSo95.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-CcBEG-yV.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-DZrCzNXM.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/esm-k373aadI.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/index-DUKUt96e.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz-broker-worker-C_mr9Omd.js +5 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm-BOvbCHn3.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/jazz_wasm_bg-BG8gazqt.wasm +0 -0
- package/dist/dev/inspector-overlay/embedded/assets/node-foreground-node-lease.browser-2mfp13Qb.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/dev/inspector-overlay/embedded/assets/src-4JwhxZaW.js +16 -0
- package/dist/dev/inspector-overlay/embedded/assets/src-Cq8gSOLx.css +1 -0
- package/dist/dev/inspector-overlay/embedded/backend.html +17 -0
- package/dist/dev/inspector-overlay/embedded/embedded.html +15 -0
- package/dist/dev/inspector-overlay/embedded/favicon.ico +0 -0
- package/dist/dev/inspector-overlay/host-bridge.d.ts +8 -0
- package/dist/dev/inspector-overlay/host-bridge.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/host-bridge.js +139 -0
- package/dist/dev/inspector-overlay/host-bridge.js.map +1 -0
- package/dist/dev/inspector-overlay/inspector-host-types.d.ts +35 -0
- package/dist/dev/inspector-overlay/inspector-host-types.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/inspector-host-types.js +10 -0
- package/dist/dev/inspector-overlay/inspector-host-types.js.map +1 -0
- package/dist/dev/inspector-overlay/loader.d.ts +24 -0
- package/dist/dev/inspector-overlay/loader.d.ts.map +1 -0
- package/dist/dev/inspector-overlay/loader.js +533 -0
- package/dist/dev/inspector-overlay/loader.js.map +1 -0
- package/dist/dev/migration-graph.d.ts +32 -0
- package/dist/dev/migration-graph.d.ts.map +1 -0
- package/dist/dev/migration-graph.js +136 -0
- package/dist/dev/migration-graph.js.map +1 -0
- package/dist/dev/migrations.d.ts +145 -0
- package/dist/dev/migrations.d.ts.map +1 -0
- package/dist/dev/migrations.js +700 -0
- package/dist/dev/migrations.js.map +1 -0
- package/dist/dev/project.d.ts +65 -0
- package/dist/dev/project.d.ts.map +1 -0
- package/dist/dev/project.js +179 -0
- package/dist/dev/project.js.map +1 -0
- package/dist/dev/schema-utils.d.ts +8 -0
- package/dist/dev/schema-utils.d.ts.map +1 -0
- package/dist/dev/schema-utils.js +75 -0
- package/dist/dev/schema-utils.js.map +1 -0
- package/dist/dev/schema-validation.d.ts +5 -0
- package/dist/dev/schema-validation.d.ts.map +1 -0
- package/dist/dev/schema-validation.js +11 -0
- package/dist/dev/schema-validation.js.map +1 -0
- package/dist/dev/ts-project.d.ts +77 -0
- package/dist/dev/ts-project.d.ts.map +1 -0
- package/dist/dev/ts-project.js +191 -0
- package/dist/dev/ts-project.js.map +1 -0
- package/dist/drivers/index.d.ts +1 -1
- package/dist/drivers/index.d.ts.map +1 -1
- package/dist/drivers/index.js.map +1 -1
- package/dist/drivers/schema-wire.d.ts +19 -3
- package/dist/drivers/schema-wire.d.ts.map +1 -1
- package/dist/drivers/schema-wire.js +61 -11
- package/dist/drivers/schema-wire.js.map +1 -1
- package/dist/drivers/types.d.ts +166 -29
- package/dist/drivers/types.d.ts.map +1 -1
- package/dist/drivers/types.js +5 -2
- package/dist/drivers/types.js.map +1 -1
- package/dist/dsl.d.ts +276 -121
- package/dist/dsl.d.ts.map +1 -1
- package/dist/dsl.js +196 -160
- package/dist/dsl.js.map +1 -1
- package/dist/durable-object/index.d.ts +26 -0
- package/dist/durable-object/index.d.ts.map +1 -0
- package/dist/durable-object/index.js +26 -0
- package/dist/durable-object/index.js.map +1 -0
- package/dist/e2ee/SODIUM-LICENSE.txt +36 -0
- package/dist/e2ee/SODIUM-SOURCES.json +4 -0
- package/dist/e2ee/browser.d.ts +18 -0
- package/dist/e2ee/browser.d.ts.map +1 -0
- package/dist/e2ee/browser.js +111 -0
- package/dist/e2ee/browser.js.map +1 -0
- package/dist/e2ee/context.d.ts +23 -0
- package/dist/e2ee/context.d.ts.map +1 -0
- package/dist/e2ee/context.js +49 -0
- package/dist/e2ee/context.js.map +1 -0
- package/dist/e2ee/crypto.d.ts +10 -0
- package/dist/e2ee/crypto.d.ts.map +1 -0
- package/dist/e2ee/crypto.js +22 -0
- package/dist/e2ee/crypto.js.map +1 -0
- package/dist/e2ee/envelope.d.ts +22 -0
- package/dist/e2ee/envelope.d.ts.map +1 -0
- package/dist/e2ee/envelope.js +52 -0
- package/dist/e2ee/envelope.js.map +1 -0
- package/dist/e2ee/index.d.ts +14 -0
- package/dist/e2ee/index.d.ts.map +1 -0
- package/dist/e2ee/index.js +3 -0
- package/dist/e2ee/index.js.map +1 -0
- package/dist/e2ee/large-value.d.ts +20 -0
- package/dist/e2ee/large-value.d.ts.map +1 -0
- package/dist/e2ee/large-value.js +204 -0
- package/dist/e2ee/large-value.js.map +1 -0
- package/dist/e2ee/native.d.ts +18 -0
- package/dist/e2ee/native.d.ts.map +1 -0
- package/dist/e2ee/native.js +91 -0
- package/dist/e2ee/native.js.map +1 -0
- package/dist/e2ee/record-frame.d.ts +3 -0
- package/dist/e2ee/record-frame.d.ts.map +1 -0
- package/dist/e2ee/record-frame.js +18 -0
- package/dist/e2ee/record-frame.js.map +1 -0
- package/dist/e2ee/signer.d.ts +10 -0
- package/dist/e2ee/signer.d.ts.map +1 -0
- package/dist/e2ee/signer.js +54 -0
- package/dist/e2ee/signer.js.map +1 -0
- package/dist/e2ee/sodium-browser.d.ts +2 -0
- package/dist/e2ee/sodium-browser.d.ts.map +1 -0
- package/dist/e2ee/sodium-browser.js +3432 -0
- package/dist/e2ee/sodium.d.ts +20 -0
- package/dist/e2ee/sodium.d.ts.map +1 -0
- package/dist/e2ee/sodium.js +165 -0
- package/dist/e2ee/sodium.js.map +1 -0
- package/dist/e2ee/types.d.ts +92 -0
- package/dist/e2ee/types.d.ts.map +1 -0
- package/dist/e2ee/types.js +2 -0
- package/dist/e2ee/types.js.map +1 -0
- package/dist/effect/backend/index.d.ts +8 -0
- package/dist/effect/backend/index.d.ts.map +1 -0
- package/dist/effect/backend/index.js +8 -0
- package/dist/effect/backend/index.js.map +1 -0
- package/dist/effect/errors.d.ts +53 -0
- package/dist/effect/errors.d.ts.map +1 -0
- package/dist/effect/errors.js +61 -0
- package/dist/effect/errors.js.map +1 -0
- package/dist/effect/index.d.ts +9 -0
- package/dist/effect/index.d.ts.map +1 -0
- package/dist/effect/index.js +9 -0
- package/dist/effect/index.js.map +1 -0
- package/dist/effect/jazz-backend.d.ts +69 -0
- package/dist/effect/jazz-backend.d.ts.map +1 -0
- package/dist/effect/jazz-backend.js +95 -0
- package/dist/effect/jazz-backend.js.map +1 -0
- package/dist/effect/jazz.d.ts +129 -0
- package/dist/effect/jazz.d.ts.map +1 -0
- package/dist/effect/jazz.js +182 -0
- package/dist/effect/jazz.js.map +1 -0
- package/dist/expo/create-account-manager.d.ts +28 -0
- package/dist/expo/create-account-manager.d.ts.map +1 -0
- package/dist/expo/create-account-manager.js +35 -0
- package/dist/expo/create-account-manager.js.map +1 -0
- package/dist/expo/create-jazz-session.d.ts +66 -0
- package/dist/expo/create-jazz-session.d.ts.map +1 -0
- package/dist/expo/create-jazz-session.js +96 -0
- package/dist/expo/create-jazz-session.js.map +1 -0
- package/dist/expo/index.d.ts +12 -0
- package/dist/expo/index.d.ts.map +1 -0
- package/dist/expo/index.js +10 -0
- package/dist/expo/index.js.map +1 -0
- package/dist/expo/metro.d.ts +20 -0
- package/dist/expo/metro.d.ts.map +1 -0
- package/dist/expo/metro.js +58 -0
- package/dist/expo/metro.js.map +1 -0
- package/dist/expo/polyfills.d.ts +2 -0
- package/dist/expo/polyfills.d.ts.map +1 -0
- package/dist/expo/polyfills.js +5 -0
- package/dist/expo/polyfills.js.map +1 -0
- package/dist/expo/provider.d.ts +10 -0
- package/dist/expo/provider.d.ts.map +1 -0
- package/dist/expo/provider.js +11 -0
- package/dist/expo/provider.js.map +1 -0
- package/dist/index.d.ts +21 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -12
- package/dist/index.js.map +1 -1
- package/dist/inspect/cli.d.ts +12 -0
- package/dist/inspect/cli.d.ts.map +1 -0
- package/dist/inspect/cli.js +320 -0
- package/dist/inspect/cli.js.map +1 -0
- package/dist/inspect/client.d.ts +67 -0
- package/dist/inspect/client.d.ts.map +1 -0
- package/dist/inspect/client.js +254 -0
- package/dist/inspect/client.js.map +1 -0
- package/dist/inspect/mcp.d.ts +28 -0
- package/dist/inspect/mcp.d.ts.map +1 -0
- package/dist/inspect/mcp.js +441 -0
- package/dist/inspect/mcp.js.map +1 -0
- package/dist/inspect/protocol.d.ts +317 -0
- package/dist/inspect/protocol.d.ts.map +1 -0
- package/dist/inspect/protocol.js +544 -0
- package/dist/inspect/protocol.js.map +1 -0
- package/dist/inspector/index.d.ts +10 -0
- package/dist/inspector/index.d.ts.map +1 -0
- package/dist/inspector/index.js +27 -0
- package/dist/inspector/index.js.map +1 -0
- package/dist/internal/inspector-query.d.ts +6 -0
- package/dist/internal/inspector-query.d.ts.map +1 -0
- package/dist/internal/inspector-query.js +20 -0
- package/dist/internal/inspector-query.js.map +1 -0
- package/dist/ir.d.ts +43 -7
- package/dist/ir.d.ts.map +1 -1
- package/dist/ir.js +509 -1
- package/dist/ir.js.map +1 -1
- package/dist/json-value.d.ts +6 -0
- package/dist/json-value.d.ts.map +1 -0
- package/dist/json-value.js +2 -0
- package/dist/json-value.js.map +1 -0
- package/dist/local-first/index.d.ts +18 -0
- package/dist/local-first/index.d.ts.map +1 -0
- package/dist/local-first/index.js +17 -0
- package/dist/local-first/index.js.map +1 -0
- package/dist/local-first-auth/browser.d.ts +18 -0
- package/dist/local-first-auth/browser.d.ts.map +1 -0
- package/dist/local-first-auth/browser.js +26 -0
- package/dist/local-first-auth/browser.js.map +1 -0
- package/dist/local-first-auth/encoding.d.ts +10 -0
- package/dist/local-first-auth/encoding.d.ts.map +1 -0
- package/dist/local-first-auth/encoding.js +38 -0
- package/dist/local-first-auth/encoding.js.map +1 -0
- package/dist/local-first-auth/identity.d.ts +73 -0
- package/dist/local-first-auth/identity.d.ts.map +1 -0
- package/dist/local-first-auth/identity.js +258 -0
- package/dist/local-first-auth/identity.js.map +1 -0
- package/dist/local-first-auth/index.d.ts +6 -0
- package/dist/local-first-auth/index.d.ts.map +1 -0
- package/dist/local-first-auth/index.js +4 -0
- package/dist/local-first-auth/index.js.map +1 -0
- package/dist/local-first-auth/passkey.d.ts +22 -0
- package/dist/local-first-auth/passkey.d.ts.map +1 -0
- package/dist/local-first-auth/passkey.js +116 -0
- package/dist/local-first-auth/passkey.js.map +1 -0
- package/dist/local-first-auth/recovery-phrase.d.ts +10 -0
- package/dist/local-first-auth/recovery-phrase.d.ts.map +1 -0
- package/dist/local-first-auth/recovery-phrase.js +59 -0
- package/dist/local-first-auth/recovery-phrase.js.map +1 -0
- package/dist/local-first-auth/secret.d.ts +25 -0
- package/dist/local-first-auth/secret.d.ts.map +1 -0
- package/dist/local-first-auth/secret.js +68 -0
- package/dist/local-first-auth/secret.js.map +1 -0
- package/dist/local-first-auth/server.d.ts +13 -0
- package/dist/local-first-auth/server.d.ts.map +1 -0
- package/dist/local-first-auth/server.js +32 -0
- package/dist/local-first-auth/server.js.map +1 -0
- package/dist/local-first-auth/store.d.ts +51 -0
- package/dist/local-first-auth/store.d.ts.map +1 -0
- package/dist/local-first-auth/store.js +112 -0
- package/dist/local-first-auth/store.js.map +1 -0
- package/dist/magic-columns.d.ts +40 -0
- package/dist/magic-columns.d.ts.map +1 -0
- package/dist/magic-columns.js +110 -0
- package/dist/magic-columns.js.map +1 -0
- package/dist/migration-namespace.d.ts +12 -0
- package/dist/migration-namespace.d.ts.map +1 -0
- package/dist/migration-namespace.js +13 -0
- package/dist/migration-namespace.js.map +1 -0
- package/dist/migrations.d.ts +286 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +188 -0
- package/dist/migrations.js.map +1 -0
- package/dist/module-interop.d.ts +17 -0
- package/dist/module-interop.d.ts.map +1 -0
- package/dist/module-interop.js +32 -0
- package/dist/module-interop.js.map +1 -0
- package/dist/observed-jazz-client.d.ts +15 -0
- package/dist/observed-jazz-client.d.ts.map +1 -0
- package/dist/observed-jazz-client.js +47 -0
- package/dist/observed-jazz-client.js.map +1 -0
- package/dist/passkey-backup.d.ts +3 -0
- package/dist/passkey-backup.d.ts.map +1 -0
- package/dist/passkey-backup.js +2 -0
- package/dist/passkey-backup.js.map +1 -0
- package/dist/passphrase.d.ts +2 -0
- package/dist/passphrase.d.ts.map +1 -0
- package/dist/passphrase.js +2 -0
- package/dist/passphrase.js.map +1 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.d.ts +89 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.js +62 -0
- package/dist/permissions/__fixtures__/big-label-better-auth.js.map +1 -0
- package/dist/permissions/__fixtures__/big-label.d.ts +332 -0
- package/dist/permissions/__fixtures__/big-label.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/big-label.js +177 -0
- package/dist/permissions/__fixtures__/big-label.js.map +1 -0
- package/dist/permissions/__fixtures__/chat-react.d.ts +112 -0
- package/dist/permissions/__fixtures__/chat-react.d.ts.map +1 -0
- package/dist/permissions/__fixtures__/chat-react.js +51 -0
- package/dist/permissions/__fixtures__/chat-react.js.map +1 -0
- package/dist/permissions/compile.d.ts +182 -0
- package/dist/permissions/compile.d.ts.map +1 -0
- package/dist/permissions/compile.js +715 -0
- package/dist/permissions/compile.js.map +1 -0
- package/dist/permissions/dsl.d.ts +158 -0
- package/dist/permissions/dsl.d.ts.map +1 -0
- package/dist/permissions/dsl.js +391 -0
- package/dist/permissions/dsl.js.map +1 -0
- package/dist/permissions/relation.d.ts +84 -0
- package/dist/permissions/relation.d.ts.map +1 -0
- package/dist/permissions/relation.js +150 -0
- package/dist/permissions/relation.js.map +1 -0
- package/dist/permissions/types.d.ts +357 -0
- package/dist/permissions/types.d.ts.map +1 -0
- package/dist/permissions/types.js +5 -0
- package/dist/permissions/types.js.map +1 -0
- package/dist/printer/app-json.d.ts +96 -0
- package/dist/printer/app-json.d.ts.map +1 -0
- package/dist/printer/app-json.js +18 -0
- package/dist/printer/app-json.js.map +1 -0
- package/dist/printer/cli.d.ts +15 -0
- package/dist/printer/cli.d.ts.map +1 -0
- package/dist/printer/cli.js +76 -0
- package/dist/printer/cli.js.map +1 -0
- package/dist/printer/defs.d.ts +11 -0
- package/dist/printer/defs.d.ts.map +1 -0
- package/dist/printer/defs.js +123 -0
- package/dist/printer/defs.js.map +1 -0
- package/dist/printer/expr.d.ts +281 -0
- package/dist/printer/expr.d.ts.map +1 -0
- package/dist/printer/expr.js +940 -0
- package/dist/printer/expr.js.map +1 -0
- package/dist/printer/format.d.ts +17 -0
- package/dist/printer/format.d.ts.map +1 -0
- package/dist/printer/format.js +315 -0
- package/dist/printer/format.js.map +1 -0
- package/dist/printer/index.d.ts +31 -0
- package/dist/printer/index.d.ts.map +1 -0
- package/dist/printer/index.js +51 -0
- package/dist/printer/index.js.map +1 -0
- package/dist/printer/migrations.d.ts +28 -0
- package/dist/printer/migrations.d.ts.map +1 -0
- package/dist/printer/migrations.js +179 -0
- package/dist/printer/migrations.js.map +1 -0
- package/dist/printer/names.d.ts +17 -0
- package/dist/printer/names.d.ts.map +1 -0
- package/dist/printer/names.js +124 -0
- package/dist/printer/names.js.map +1 -0
- package/dist/printer/permissions.d.ts +60 -0
- package/dist/printer/permissions.d.ts.map +1 -0
- package/dist/printer/permissions.js +1167 -0
- package/dist/printer/permissions.js.map +1 -0
- package/dist/printer/schema.d.ts +18 -0
- package/dist/printer/schema.d.ts.map +1 -0
- package/dist/printer/schema.js +132 -0
- package/dist/printer/schema.js.map +1 -0
- package/dist/prosemirror/anchors.d.ts +30 -0
- package/dist/prosemirror/anchors.d.ts.map +1 -0
- package/dist/prosemirror/anchors.js +28 -0
- package/dist/prosemirror/anchors.js.map +1 -0
- package/dist/prosemirror/index.d.ts +7 -0
- package/dist/prosemirror/index.d.ts.map +1 -0
- package/dist/prosemirror/index.js +7 -0
- package/dist/prosemirror/index.js.map +1 -0
- package/dist/prosemirror/markdown.d.ts +95 -0
- package/dist/prosemirror/markdown.d.ts.map +1 -0
- package/dist/prosemirror/markdown.js +428 -0
- package/dist/prosemirror/markdown.js.map +1 -0
- package/dist/prosemirror/overlays.d.ts +69 -0
- package/dist/prosemirror/overlays.d.ts.map +1 -0
- package/dist/prosemirror/overlays.js +143 -0
- package/dist/prosemirror/overlays.js.map +1 -0
- package/dist/prosemirror/presence.d.ts +39 -0
- package/dist/prosemirror/presence.d.ts.map +1 -0
- package/dist/prosemirror/presence.js +88 -0
- package/dist/prosemirror/presence.js.map +1 -0
- package/dist/prosemirror/sync.d.ts +60 -0
- package/dist/prosemirror/sync.d.ts.map +1 -0
- package/dist/prosemirror/sync.js +196 -0
- package/dist/prosemirror/sync.js.map +1 -0
- package/dist/prosemirror/text-map.d.ts +21 -0
- package/dist/prosemirror/text-map.d.ts.map +1 -0
- package/dist/prosemirror/text-map.js +85 -0
- package/dist/prosemirror/text-map.js.map +1 -0
- package/dist/react/create-jazz-client.d.ts +2 -11
- package/dist/react/create-jazz-client.d.ts.map +1 -1
- package/dist/react/create-jazz-client.js +1 -47
- package/dist/react/create-jazz-client.js.map +1 -1
- package/dist/react/index.d.ts +14 -7
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +8 -6
- package/dist/react/index.js.map +1 -1
- package/dist/react/provider-props.d.ts +7 -0
- package/dist/react/provider-props.d.ts.map +1 -0
- package/dist/react/provider-props.js +15 -0
- package/dist/react/provider-props.js.map +1 -0
- package/dist/react/provider.d.ts +19 -15
- package/dist/react/provider.d.ts.map +1 -1
- package/dist/react/provider.js +25 -5
- package/dist/react/provider.js.map +1 -1
- package/dist/react/use-all.d.ts +1 -1
- package/dist/react/use-all.d.ts.map +1 -1
- package/dist/react/use-all.js +1 -1
- package/dist/react/use-all.js.map +1 -1
- package/dist/react/use-one.d.ts +2 -0
- package/dist/react/use-one.d.ts.map +1 -0
- package/dist/react/use-one.js +2 -0
- package/dist/react/use-one.js.map +1 -0
- package/dist/react-core/index.d.ts +9 -4
- package/dist/react-core/index.d.ts.map +1 -1
- package/dist/react-core/index.js +10 -2
- package/dist/react-core/index.js.map +1 -1
- package/dist/react-core/provider.d.ts +48 -12
- package/dist/react-core/provider.d.ts.map +1 -1
- package/dist/react-core/provider.js +117 -13
- package/dist/react-core/provider.js.map +1 -1
- package/dist/react-core/session-context.d.ts +7 -0
- package/dist/react-core/session-context.d.ts.map +1 -0
- package/dist/react-core/session-context.js +8 -0
- package/dist/react-core/session-context.js.map +1 -0
- package/dist/react-core/session.d.ts +63 -0
- package/dist/react-core/session.d.ts.map +1 -0
- package/dist/react-core/session.js +97 -0
- package/dist/react-core/session.js.map +1 -0
- package/dist/react-core/use-all.d.ts +95 -3
- package/dist/react-core/use-all.d.ts.map +1 -1
- package/dist/react-core/use-all.js +126 -52
- package/dist/react-core/use-all.js.map +1 -1
- package/dist/react-core/use-auth-state.d.ts +13 -0
- package/dist/react-core/use-auth-state.d.ts.map +1 -0
- package/dist/react-core/use-auth-state.js +15 -0
- package/dist/react-core/use-auth-state.js.map +1 -0
- package/dist/react-core/use-one.d.ts +58 -0
- package/dist/react-core/use-one.d.ts.map +1 -0
- package/dist/react-core/use-one.js +19 -0
- package/dist/react-core/use-one.js.map +1 -0
- package/dist/react-core/use-sync-status.d.ts +8 -0
- package/dist/react-core/use-sync-status.d.ts.map +1 -0
- package/dist/react-core/use-sync-status.js +12 -0
- package/dist/react-core/use-sync-status.js.map +1 -0
- package/dist/react-native/abort-signal.d.ts +9 -0
- package/dist/react-native/abort-signal.d.ts.map +1 -0
- package/dist/react-native/abort-signal.js +51 -0
- package/dist/react-native/abort-signal.js.map +1 -0
- package/dist/react-native/account-session.d.ts +11 -0
- package/dist/react-native/account-session.d.ts.map +1 -0
- package/dist/react-native/account-session.js +59 -0
- package/dist/react-native/account-session.js.map +1 -0
- package/dist/react-native/create-account-manager.d.ts +28 -0
- package/dist/react-native/create-account-manager.d.ts.map +1 -0
- package/dist/react-native/create-account-manager.js +30 -0
- package/dist/react-native/create-account-manager.js.map +1 -0
- package/dist/react-native/create-db.d.ts +8 -0
- package/dist/react-native/create-db.d.ts.map +1 -0
- package/dist/react-native/create-db.js +9 -0
- package/dist/react-native/create-db.js.map +1 -0
- package/dist/react-native/create-jazz-client.d.ts +12 -10
- package/dist/react-native/create-jazz-client.d.ts.map +1 -1
- package/dist/react-native/create-jazz-client.js +6 -21
- package/dist/react-native/create-jazz-client.js.map +1 -1
- package/dist/react-native/create-jazz-session.d.ts +66 -0
- package/dist/react-native/create-jazz-session.d.ts.map +1 -0
- package/dist/react-native/create-jazz-session.js +96 -0
- package/dist/react-native/create-jazz-session.js.map +1 -0
- package/dist/react-native/errors.d.ts +6 -0
- package/dist/react-native/errors.d.ts.map +1 -0
- package/dist/react-native/errors.js +6 -0
- package/dist/react-native/errors.js.map +1 -0
- package/dist/react-native/index.d.ts +19 -9
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +13 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/native-foreground-db.d.ts +227 -0
- package/dist/react-native/native-foreground-db.d.ts.map +1 -0
- package/dist/react-native/native-foreground-db.js +905 -0
- package/dist/react-native/native-foreground-db.js.map +1 -0
- package/dist/react-native/native-relay.d.ts +7 -0
- package/dist/react-native/native-relay.d.ts.map +1 -0
- package/dist/react-native/native-relay.js +14 -0
- package/dist/react-native/native-relay.js.map +1 -0
- package/dist/react-native/provider.d.ts +19 -13
- package/dist/react-native/provider.d.ts.map +1 -1
- package/dist/react-native/provider.js +25 -5
- package/dist/react-native/provider.js.map +1 -1
- package/dist/react-native/runtime-source.d.ts +62 -0
- package/dist/react-native/runtime-source.d.ts.map +1 -0
- package/dist/react-native/runtime-source.js +314 -0
- package/dist/react-native/runtime-source.js.map +1 -0
- package/dist/react-native/use-all.d.ts +1 -1
- package/dist/react-native/use-all.d.ts.map +1 -1
- package/dist/react-native/use-all.js +1 -1
- package/dist/react-native/use-all.js.map +1 -1
- package/dist/react-native/use-one.d.ts +2 -0
- package/dist/react-native/use-one.d.ts.map +1 -0
- package/dist/react-native/use-one.js +2 -0
- package/dist/react-native/use-one.js.map +1 -0
- package/dist/reconcile-array.d.ts +45 -0
- package/dist/reconcile-array.d.ts.map +1 -0
- package/dist/reconcile-array.js +252 -0
- package/dist/reconcile-array.js.map +1 -0
- package/dist/relationships.d.ts +18 -0
- package/dist/relationships.d.ts.map +1 -0
- package/dist/relationships.js +28 -0
- package/dist/relationships.js.map +1 -0
- package/dist/runtime/auth-renewal-backoff.d.ts +14 -0
- package/dist/runtime/auth-renewal-backoff.d.ts.map +1 -0
- package/dist/runtime/auth-renewal-backoff.js +23 -0
- package/dist/runtime/auth-renewal-backoff.js.map +1 -0
- package/dist/runtime/auth-request-deadline.d.ts +3 -0
- package/dist/runtime/auth-request-deadline.d.ts.map +1 -0
- package/dist/runtime/auth-request-deadline.js +24 -0
- package/dist/runtime/auth-request-deadline.js.map +1 -0
- package/dist/runtime/auth-secret-codec.d.ts +21 -0
- package/dist/runtime/auth-secret-codec.d.ts.map +1 -0
- package/dist/runtime/auth-secret-codec.js +32 -0
- package/dist/runtime/auth-secret-codec.js.map +1 -0
- package/dist/runtime/auth-secret-store.d.ts +7 -0
- package/dist/runtime/auth-secret-store.d.ts.map +1 -0
- package/dist/runtime/auth-secret-store.js +12 -0
- package/dist/runtime/auth-secret-store.js.map +1 -0
- package/dist/runtime/auth-state.d.ts +47 -0
- package/dist/runtime/auth-state.d.ts.map +1 -0
- package/dist/runtime/auth-state.js +161 -0
- package/dist/runtime/auth-state.js.map +1 -0
- package/dist/runtime/author-id.d.ts +42 -0
- package/dist/runtime/author-id.d.ts.map +1 -0
- package/dist/runtime/author-id.js +172 -0
- package/dist/runtime/author-id.js.map +1 -0
- package/dist/runtime/authority-changed-error.d.ts +56 -0
- package/dist/runtime/authority-changed-error.d.ts.map +1 -0
- package/dist/runtime/authority-changed-error.js +74 -0
- package/dist/runtime/authority-changed-error.js.map +1 -0
- package/dist/runtime/backlog-rows.d.ts +3 -0
- package/dist/runtime/backlog-rows.d.ts.map +1 -0
- package/dist/runtime/backlog-rows.js +7 -0
- package/dist/runtime/backlog-rows.js.map +1 -0
- package/dist/runtime/browser-physical-database-epoch.d.ts +37 -0
- package/dist/runtime/browser-physical-database-epoch.d.ts.map +1 -0
- package/dist/runtime/browser-physical-database-epoch.js +89 -0
- package/dist/runtime/browser-physical-database-epoch.js.map +1 -0
- package/dist/runtime/browser-storage-invalidation.d.ts +8 -0
- package/dist/runtime/browser-storage-invalidation.d.ts.map +1 -0
- package/dist/runtime/browser-storage-invalidation.js +20 -0
- package/dist/runtime/browser-storage-invalidation.js.map +1 -0
- package/dist/runtime/browser-store-generation.d.ts +15 -0
- package/dist/runtime/browser-store-generation.d.ts.map +1 -0
- package/dist/runtime/browser-store-generation.js +48 -0
- package/dist/runtime/browser-store-generation.js.map +1 -0
- package/dist/runtime/browser-worker-assets.d.ts +31 -0
- package/dist/runtime/browser-worker-assets.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.js +40 -0
- package/dist/runtime/browser-worker-assets.js.map +1 -0
- package/dist/runtime/browser-worker-assets.metro.d.ts +28 -0
- package/dist/runtime/browser-worker-assets.metro.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.metro.js +52 -0
- package/dist/runtime/browser-worker-assets.metro.js.map +1 -0
- package/dist/runtime/browser-worker-assets.native.d.ts +7 -0
- package/dist/runtime/browser-worker-assets.native.d.ts.map +1 -0
- package/dist/runtime/browser-worker-assets.native.js +8 -0
- package/dist/runtime/browser-worker-assets.native.js.map +1 -0
- package/dist/runtime/browser-worker-config.d.ts +78 -0
- package/dist/runtime/browser-worker-config.d.ts.map +1 -0
- package/dist/runtime/browser-worker-config.js +299 -0
- package/dist/runtime/browser-worker-config.js.map +1 -0
- package/dist/runtime/client-config-key.d.ts +6 -0
- package/dist/runtime/client-config-key.d.ts.map +1 -0
- package/dist/runtime/client-config-key.js +83 -0
- package/dist/runtime/client-config-key.js.map +1 -0
- package/dist/runtime/client-migrations.d.ts +27 -0
- package/dist/runtime/client-migrations.d.ts.map +1 -0
- package/dist/runtime/client-migrations.js +25 -0
- package/dist/runtime/client-migrations.js.map +1 -0
- package/dist/runtime/client-registry.d.ts +21 -0
- package/dist/runtime/client-registry.d.ts.map +1 -0
- package/dist/runtime/client-registry.js +169 -0
- package/dist/runtime/client-registry.js.map +1 -0
- package/dist/runtime/client-scope.d.ts +38 -0
- package/dist/runtime/client-scope.d.ts.map +1 -0
- package/dist/runtime/client-scope.js +64 -0
- package/dist/runtime/client-scope.js.map +1 -0
- package/dist/runtime/client-session.d.ts +56 -14
- package/dist/runtime/client-session.d.ts.map +1 -1
- package/dist/runtime/client-session.js +211 -195
- package/dist/runtime/client-session.js.map +1 -1
- package/dist/runtime/client.d.ts +721 -194
- package/dist/runtime/client.d.ts.map +1 -1
- package/dist/runtime/client.js +1213 -434
- package/dist/runtime/client.js.map +1 -1
- package/dist/runtime/column-transforms.d.ts +26 -0
- package/dist/runtime/column-transforms.d.ts.map +1 -0
- package/dist/runtime/column-transforms.js +186 -0
- package/dist/runtime/column-transforms.js.map +1 -0
- package/dist/runtime/connection-manager/browser-connection-manager.d.ts +178 -0
- package/dist/runtime/connection-manager/browser-connection-manager.d.ts.map +1 -0
- package/dist/runtime/connection-manager/browser-connection-manager.js +1030 -0
- package/dist/runtime/connection-manager/browser-connection-manager.js.map +1 -0
- package/dist/runtime/connection-manager/direct-connection-manager.d.ts +28 -0
- package/dist/runtime/connection-manager/direct-connection-manager.d.ts.map +1 -0
- package/dist/runtime/connection-manager/direct-connection-manager.js +202 -0
- package/dist/runtime/connection-manager/direct-connection-manager.js.map +1 -0
- package/dist/runtime/connection-manager/index.d.ts +5 -0
- package/dist/runtime/connection-manager/index.d.ts.map +1 -0
- package/dist/runtime/connection-manager/index.js +4 -0
- package/dist/runtime/connection-manager/index.js.map +1 -0
- package/dist/runtime/connection-manager/types.d.ts +174 -0
- package/dist/runtime/connection-manager/types.d.ts.map +1 -0
- package/dist/runtime/connection-manager/types.js +396 -0
- package/dist/runtime/connection-manager/types.js.map +1 -0
- package/dist/runtime/context.d.ts +100 -30
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/context.js.map +1 -1
- package/dist/runtime/core-tick-failed-error.d.ts +31 -0
- package/dist/runtime/core-tick-failed-error.d.ts.map +1 -0
- package/dist/runtime/core-tick-failed-error.js +45 -0
- package/dist/runtime/core-tick-failed-error.js.map +1 -0
- package/dist/runtime/credentialed-transport.d.ts +42 -0
- package/dist/runtime/credentialed-transport.d.ts.map +1 -0
- package/dist/runtime/credentialed-transport.js +178 -0
- package/dist/runtime/credentialed-transport.js.map +1 -0
- package/dist/runtime/db-access-context.d.ts +14 -0
- package/dist/runtime/db-access-context.d.ts.map +1 -0
- package/dist/runtime/db-access-context.js +26 -0
- package/dist/runtime/db-access-context.js.map +1 -0
- package/dist/runtime/db-internal-session.d.ts +7 -0
- package/dist/runtime/db-internal-session.d.ts.map +1 -0
- package/dist/runtime/db-internal-session.js +21 -0
- package/dist/runtime/db-internal-session.js.map +1 -0
- package/dist/runtime/db-replaced-error.d.ts +21 -0
- package/dist/runtime/db-replaced-error.d.ts.map +1 -0
- package/dist/runtime/db-replaced-error.js +22 -0
- package/dist/runtime/db-replaced-error.js.map +1 -0
- package/dist/runtime/db.d.ts +857 -215
- package/dist/runtime/db.d.ts.map +1 -1
- package/dist/runtime/db.js +3474 -834
- package/dist/runtime/db.js.map +1 -1
- package/dist/runtime/default-create-db.d.ts +5 -0
- package/dist/runtime/default-create-db.d.ts.map +1 -0
- package/dist/runtime/default-create-db.js +7 -0
- package/dist/runtime/default-create-db.js.map +1 -0
- package/dist/runtime/default-runtime-source.d.ts +41 -0
- package/dist/runtime/default-runtime-source.d.ts.map +1 -0
- package/dist/runtime/default-runtime-source.js +326 -0
- package/dist/runtime/default-runtime-source.js.map +1 -0
- package/dist/runtime/delete-local-first-store.d.ts +12 -0
- package/dist/runtime/delete-local-first-store.d.ts.map +1 -0
- package/dist/runtime/delete-local-first-store.js +12 -0
- package/dist/runtime/delete-local-first-store.js.map +1 -0
- package/dist/runtime/deterministic-bytes.d.ts +6 -0
- package/dist/runtime/deterministic-bytes.d.ts.map +1 -0
- package/dist/runtime/deterministic-bytes.js +18 -0
- package/dist/runtime/deterministic-bytes.js.map +1 -0
- package/dist/runtime/graceful-shutdown-error.d.ts +17 -0
- package/dist/runtime/graceful-shutdown-error.d.ts.map +1 -0
- package/dist/runtime/graceful-shutdown-error.js +31 -0
- package/dist/runtime/graceful-shutdown-error.js.map +1 -0
- package/dist/runtime/hex.d.ts +21 -0
- package/dist/runtime/hex.d.ts.map +1 -0
- package/dist/runtime/hex.js +62 -0
- package/dist/runtime/hex.js.map +1 -0
- package/dist/runtime/history-relation.d.ts +8 -0
- package/dist/runtime/history-relation.d.ts.map +1 -0
- package/dist/runtime/history-relation.js +44 -0
- package/dist/runtime/history-relation.js.map +1 -0
- package/dist/runtime/in-process-transport.d.ts +18 -0
- package/dist/runtime/in-process-transport.d.ts.map +1 -0
- package/dist/runtime/in-process-transport.js +32 -0
- package/dist/runtime/in-process-transport.js.map +1 -0
- package/dist/runtime/index.d.ts +22 -13
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +14 -12
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/indexeddb-page-store.d.ts +214 -0
- package/dist/runtime/indexeddb-page-store.d.ts.map +1 -0
- package/dist/runtime/indexeddb-page-store.js +848 -0
- package/dist/runtime/indexeddb-page-store.js.map +1 -0
- package/dist/runtime/introspection-fetch.d.ts +18 -0
- package/dist/runtime/introspection-fetch.d.ts.map +1 -0
- package/dist/runtime/introspection-fetch.js +12 -0
- package/dist/runtime/introspection-fetch.js.map +1 -0
- package/dist/runtime/json-schema-evaluate.d.ts +55 -0
- package/dist/runtime/json-schema-evaluate.d.ts.map +1 -0
- package/dist/runtime/json-schema-evaluate.js +946 -0
- package/dist/runtime/json-schema-evaluate.js.map +1 -0
- package/dist/runtime/json-schema-formats.d.ts +14 -0
- package/dist/runtime/json-schema-formats.d.ts.map +1 -0
- package/dist/runtime/json-schema-formats.js +555 -0
- package/dist/runtime/json-schema-formats.js.map +1 -0
- package/dist/runtime/json-schema-json.d.ts +41 -0
- package/dist/runtime/json-schema-json.d.ts.map +1 -0
- package/dist/runtime/json-schema-json.js +309 -0
- package/dist/runtime/json-schema-json.js.map +1 -0
- package/dist/runtime/json-schema-metaschemas.d.ts +1403 -0
- package/dist/runtime/json-schema-metaschemas.d.ts.map +1 -0
- package/dist/runtime/json-schema-metaschemas.js +64 -0
- package/dist/runtime/json-schema-metaschemas.js.map +1 -0
- package/dist/runtime/json-schema-regex.d.ts +32 -0
- package/dist/runtime/json-schema-regex.d.ts.map +1 -0
- package/dist/runtime/json-schema-regex.js +895 -0
- package/dist/runtime/json-schema-regex.js.map +1 -0
- package/dist/runtime/json-schema-validator.d.ts +50 -0
- package/dist/runtime/json-schema-validator.d.ts.map +1 -0
- package/dist/runtime/json-schema-validator.js +404 -0
- package/dist/runtime/json-schema-validator.js.map +1 -0
- package/dist/runtime/json-text.js.map +1 -1
- package/dist/runtime/local-first-token.d.ts +11 -0
- package/dist/runtime/local-first-token.d.ts.map +1 -0
- package/dist/runtime/local-first-token.js +20 -0
- package/dist/runtime/local-first-token.js.map +1 -0
- package/dist/runtime/local-first-unavailable.d.ts +40 -0
- package/dist/runtime/local-first-unavailable.d.ts.map +1 -0
- package/dist/runtime/local-first-unavailable.js +81 -0
- package/dist/runtime/local-first-unavailable.js.map +1 -0
- package/dist/runtime/local-first-upgrade.d.ts +36 -0
- package/dist/runtime/local-first-upgrade.d.ts.map +1 -0
- package/dist/runtime/local-first-upgrade.js +31 -0
- package/dist/runtime/local-first-upgrade.js.map +1 -0
- package/dist/runtime/local-write-observer.d.ts +5 -0
- package/dist/runtime/local-write-observer.d.ts.map +1 -0
- package/dist/runtime/local-write-observer.js +31 -0
- package/dist/runtime/local-write-observer.js.map +1 -0
- package/dist/runtime/metro-setup-error.d.ts +20 -0
- package/dist/runtime/metro-setup-error.d.ts.map +1 -0
- package/dist/runtime/metro-setup-error.js +22 -0
- package/dist/runtime/metro-setup-error.js.map +1 -0
- package/dist/runtime/native-artifact-compatibility.d.ts +12 -0
- package/dist/runtime/native-artifact-compatibility.d.ts.map +1 -0
- package/dist/runtime/native-artifact-compatibility.js +26 -0
- package/dist/runtime/native-artifact-compatibility.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-napi.d.ts +2 -0
- package/dist/runtime/native-artifact-fingerprint-napi.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-napi.js +3 -0
- package/dist/runtime/native-artifact-fingerprint-napi.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.d.ts +2 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.js +3 -0
- package/dist/runtime/native-artifact-fingerprint-wasm.js.map +1 -0
- package/dist/runtime/native-artifact-fingerprints.d.ts +5 -0
- package/dist/runtime/native-artifact-fingerprints.d.ts.map +1 -0
- package/dist/runtime/native-artifact-fingerprints.js +7 -0
- package/dist/runtime/native-artifact-fingerprints.js.map +1 -0
- package/dist/runtime/native-artifact-mismatch-error.d.ts +25 -0
- package/dist/runtime/native-artifact-mismatch-error.d.ts.map +1 -0
- package/dist/runtime/native-artifact-mismatch-error.js +34 -0
- package/dist/runtime/native-artifact-mismatch-error.js.map +1 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts +23 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.js +45 -0
- package/dist/runtime/native-runtime/attached-browser-worker-connection.js.map +1 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts +15 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.d.ts.map +1 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.js +64 -0
- package/dist/runtime/native-runtime/auxiliary-receive-deadline.js.map +1 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts +34 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.d.ts.map +1 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.js +61 -0
- package/dist/runtime/native-runtime/broker-worker-load-failure.js.map +1 -0
- package/dist/runtime/native-runtime/browser-follower-connection.d.ts +109 -0
- package/dist/runtime/native-runtime/browser-follower-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-follower-connection.js +558 -0
- package/dist/runtime/native-runtime/browser-follower-connection.js.map +1 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts +130 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.js +988 -0
- package/dist/runtime/native-runtime/browser-shared-worker-connection.js.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.d.ts +527 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.js +296 -0
- package/dist/runtime/native-runtime/browser-worker-protocol.js.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-transport.d.ts +56 -0
- package/dist/runtime/native-runtime/browser-worker-transport.d.ts.map +1 -0
- package/dist/runtime/native-runtime/browser-worker-transport.js +305 -0
- package/dist/runtime/native-runtime/browser-worker-transport.js.map +1 -0
- package/dist/runtime/native-runtime/exact-integer.d.ts +7 -0
- package/dist/runtime/native-runtime/exact-integer.d.ts.map +1 -0
- package/dist/runtime/native-runtime/exact-integer.js +18 -0
- package/dist/runtime/native-runtime/exact-integer.js.map +1 -0
- package/dist/runtime/native-runtime/http-stream-socket.d.ts +103 -0
- package/dist/runtime/native-runtime/http-stream-socket.d.ts.map +1 -0
- package/dist/runtime/native-runtime/http-stream-socket.js +554 -0
- package/dist/runtime/native-runtime/http-stream-socket.js.map +1 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts +4 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.d.ts.map +1 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.js +33 -0
- package/dist/runtime/native-runtime/inspector-control-lifecycle.js.map +1 -0
- package/dist/runtime/native-runtime/native-codec.d.ts +172 -0
- package/dist/runtime/native-runtime/native-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-codec.js +629 -0
- package/dist/runtime/native-runtime/native-codec.js.map +1 -0
- package/dist/runtime/native-runtime/native-error-code.d.ts +39 -0
- package/dist/runtime/native-runtime/native-error-code.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-error-code.js +64 -0
- package/dist/runtime/native-runtime/native-error-code.js.map +1 -0
- package/dist/runtime/native-runtime/native-row-codec.d.ts +161 -0
- package/dist/runtime/native-runtime/native-row-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-row-codec.js +903 -0
- package/dist/runtime/native-runtime/native-row-codec.js.map +1 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts +15 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.js +25 -0
- package/dist/runtime/native-runtime/native-row-descriptor-key.js.map +1 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.d.ts +913 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.d.ts.map +1 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.js +5999 -0
- package/dist/runtime/native-runtime/native-runtime-adapter.js.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts +17 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.d.ts.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js +4 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.browser.js.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts +19 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.d.ts.map +1 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.js +297 -0
- package/dist/runtime/native-runtime/node-foreground-node-lease.js.map +1 -0
- package/dist/runtime/native-runtime/row-values-transport.d.ts +2 -0
- package/dist/runtime/native-runtime/row-values-transport.d.ts.map +1 -0
- package/dist/runtime/native-runtime/row-values-transport.js +21 -0
- package/dist/runtime/native-runtime/row-values-transport.js.map +1 -0
- package/dist/runtime/native-runtime/schema-codec.d.ts +10 -0
- package/dist/runtime/native-runtime/schema-codec.d.ts.map +1 -0
- package/dist/runtime/native-runtime/schema-codec.js +13 -0
- package/dist/runtime/native-runtime/schema-codec.js.map +1 -0
- package/dist/runtime/native-runtime/session-renewal-wire.d.ts +48 -0
- package/dist/runtime/native-runtime/session-renewal-wire.d.ts.map +1 -0
- package/dist/runtime/native-runtime/session-renewal-wire.js +107 -0
- package/dist/runtime/native-runtime/session-renewal-wire.js.map +1 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts +34 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.d.ts.map +1 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.js +146 -0
- package/dist/runtime/native-runtime/stream-endpoint-memory.js.map +1 -0
- package/dist/runtime/native-runtime/websocket.d.ts +327 -0
- package/dist/runtime/native-runtime/websocket.d.ts.map +1 -0
- package/dist/runtime/native-runtime/websocket.js +1112 -0
- package/dist/runtime/native-runtime/websocket.js.map +1 -0
- package/dist/runtime/newer-build-reload.d.ts +30 -0
- package/dist/runtime/newer-build-reload.d.ts.map +1 -0
- package/dist/runtime/newer-build-reload.js +59 -0
- package/dist/runtime/newer-build-reload.js.map +1 -0
- package/dist/runtime/page-cache.d.ts +44 -0
- package/dist/runtime/page-cache.d.ts.map +1 -0
- package/dist/runtime/page-cache.js +104 -0
- package/dist/runtime/page-cache.js.map +1 -0
- package/dist/runtime/page-handle.d.ts +83 -0
- package/dist/runtime/page-handle.d.ts.map +1 -0
- package/dist/runtime/page-handle.js +151 -0
- package/dist/runtime/page-handle.js.map +1 -0
- package/dist/runtime/passkey-backup.d.ts +3 -0
- package/dist/runtime/passkey-backup.d.ts.map +1 -0
- package/dist/runtime/passkey-backup.js +2 -0
- package/dist/runtime/passkey-backup.js.map +1 -0
- package/dist/runtime/platform-url.d.ts +10 -0
- package/dist/runtime/platform-url.d.ts.map +1 -0
- package/dist/runtime/platform-url.js +3 -0
- package/dist/runtime/platform-url.js.map +1 -0
- package/dist/runtime/platform-url.native.d.ts +6 -0
- package/dist/runtime/platform-url.native.d.ts.map +1 -0
- package/dist/runtime/platform-url.native.js +38 -0
- package/dist/runtime/platform-url.native.js.map +1 -0
- package/dist/runtime/query-adapter.d.ts +7 -15
- package/dist/runtime/query-adapter.d.ts.map +1 -1
- package/dist/runtime/query-adapter.js +390 -110
- package/dist/runtime/query-adapter.js.map +1 -1
- package/dist/runtime/query-builder-shape.d.ts +75 -0
- package/dist/runtime/query-builder-shape.d.ts.map +1 -0
- package/dist/runtime/query-builder-shape.js +225 -0
- package/dist/runtime/query-builder-shape.js.map +1 -0
- package/dist/runtime/query-column-name.d.ts +3 -0
- package/dist/runtime/query-column-name.d.ts.map +1 -0
- package/dist/runtime/query-column-name.js +10 -0
- package/dist/runtime/query-column-name.js.map +1 -0
- package/dist/runtime/query-output-table.d.ts +5 -0
- package/dist/runtime/query-output-table.d.ts.map +1 -0
- package/dist/runtime/query-output-table.js +30 -0
- package/dist/runtime/query-output-table.js.map +1 -0
- package/dist/runtime/recovery-phrase.d.ts +3 -0
- package/dist/runtime/recovery-phrase.d.ts.map +1 -0
- package/dist/runtime/recovery-phrase.js +2 -0
- package/dist/runtime/recovery-phrase.js.map +1 -0
- package/dist/runtime/remote-link-state.d.ts +20 -0
- package/dist/runtime/remote-link-state.d.ts.map +1 -0
- package/dist/runtime/remote-link-state.js +5 -0
- package/dist/runtime/remote-link-state.js.map +1 -0
- package/dist/runtime/removed-provider-props.d.ts +17 -0
- package/dist/runtime/removed-provider-props.d.ts.map +1 -0
- package/dist/runtime/removed-provider-props.js +16 -0
- package/dist/runtime/removed-provider-props.js.map +1 -0
- package/dist/runtime/row-transformer.d.ts +17 -3
- package/dist/runtime/row-transformer.d.ts.map +1 -1
- package/dist/runtime/row-transformer.js +163 -38
- package/dist/runtime/row-transformer.js.map +1 -1
- package/dist/runtime/run-cleanup-steps.d.ts +5 -0
- package/dist/runtime/run-cleanup-steps.d.ts.map +1 -0
- package/dist/runtime/run-cleanup-steps.js +19 -0
- package/dist/runtime/run-cleanup-steps.js.map +1 -0
- package/dist/runtime/runtime-closed-error.d.ts +9 -0
- package/dist/runtime/runtime-closed-error.d.ts.map +1 -0
- package/dist/runtime/runtime-closed-error.js +12 -0
- package/dist/runtime/runtime-closed-error.js.map +1 -0
- package/dist/runtime/runtime-config.d.ts +13 -0
- package/dist/runtime/runtime-config.d.ts.map +1 -0
- package/dist/runtime/runtime-config.js +115 -0
- package/dist/runtime/runtime-config.js.map +1 -0
- package/dist/runtime/runtime-entropy.d.ts +14 -0
- package/dist/runtime/runtime-entropy.d.ts.map +1 -0
- package/dist/runtime/runtime-entropy.js +43 -0
- package/dist/runtime/runtime-entropy.js.map +1 -0
- package/dist/runtime/runtime-source.d.ts +206 -0
- package/dist/runtime/runtime-source.d.ts.map +1 -0
- package/dist/runtime/runtime-source.js +64 -0
- package/dist/runtime/runtime-source.js.map +1 -0
- package/dist/runtime/schema-metadata.d.ts +22 -0
- package/dist/runtime/schema-metadata.d.ts.map +1 -0
- package/dist/runtime/schema-metadata.js +70 -0
- package/dist/runtime/schema-metadata.js.map +1 -0
- package/dist/runtime/select-projection.d.ts +5 -0
- package/dist/runtime/select-projection.d.ts.map +1 -0
- package/dist/runtime/select-projection.js +47 -0
- package/dist/runtime/select-projection.js.map +1 -0
- package/dist/runtime/snapshot-ref.d.ts +24 -0
- package/dist/runtime/snapshot-ref.d.ts.map +1 -0
- package/dist/runtime/snapshot-ref.js +43 -0
- package/dist/runtime/snapshot-ref.js.map +1 -0
- package/dist/runtime/store-held-by-another-tab-error.d.ts +53 -0
- package/dist/runtime/store-held-by-another-tab-error.d.ts.map +1 -0
- package/dist/runtime/store-held-by-another-tab-error.js +55 -0
- package/dist/runtime/store-held-by-another-tab-error.js.map +1 -0
- package/dist/runtime/streaming-source.d.ts +4 -0
- package/dist/runtime/streaming-source.d.ts.map +1 -0
- package/dist/runtime/streaming-source.js +53 -0
- package/dist/runtime/streaming-source.js.map +1 -0
- package/dist/runtime/structural-values.d.ts +6 -0
- package/dist/runtime/structural-values.d.ts.map +1 -0
- package/dist/runtime/structural-values.js +51 -0
- package/dist/runtime/structural-values.js.map +1 -0
- package/dist/runtime/subscription-manager.d.ts +103 -14
- package/dist/runtime/subscription-manager.d.ts.map +1 -1
- package/dist/runtime/subscription-manager.js +1051 -25
- package/dist/runtime/subscription-manager.js.map +1 -1
- package/dist/runtime/sync-status.d.ts +178 -0
- package/dist/runtime/sync-status.d.ts.map +1 -0
- package/dist/runtime/sync-status.js +163 -0
- package/dist/runtime/sync-status.js.map +1 -0
- package/dist/runtime/sync-telemetry.d.ts +35 -0
- package/dist/runtime/sync-telemetry.d.ts.map +1 -0
- package/dist/runtime/sync-telemetry.js +354 -0
- package/dist/runtime/sync-telemetry.js.map +1 -0
- package/dist/runtime/system-identity.d.ts +5 -0
- package/dist/runtime/system-identity.d.ts.map +1 -0
- package/dist/runtime/system-identity.js +10 -0
- package/dist/runtime/system-identity.js.map +1 -0
- package/dist/runtime/telemetry-env.d.ts +2 -0
- package/dist/runtime/telemetry-env.d.ts.map +1 -0
- package/dist/runtime/telemetry-env.js +16 -0
- package/dist/runtime/telemetry-env.js.map +1 -0
- package/dist/runtime/telemetry-env.native.d.ts +3 -0
- package/dist/runtime/telemetry-env.native.d.ts.map +1 -0
- package/dist/runtime/telemetry-env.native.js +7 -0
- package/dist/runtime/telemetry-env.native.js.map +1 -0
- package/dist/runtime/text-anchors.d.ts +58 -0
- package/dist/runtime/text-anchors.d.ts.map +1 -0
- package/dist/runtime/text-anchors.js +9 -0
- package/dist/runtime/text-anchors.js.map +1 -0
- package/dist/runtime/unsupported-storage-codecs-error.d.ts +53 -0
- package/dist/runtime/unsupported-storage-codecs-error.d.ts.map +1 -0
- package/dist/runtime/unsupported-storage-codecs-error.js +74 -0
- package/dist/runtime/unsupported-storage-codecs-error.js.map +1 -0
- package/dist/runtime/url.d.ts +32 -0
- package/dist/runtime/url.d.ts.map +1 -0
- package/dist/runtime/url.js +96 -0
- package/dist/runtime/url.js.map +1 -0
- package/dist/runtime/utf8.d.ts +10 -0
- package/dist/runtime/utf8.d.ts.map +1 -0
- package/dist/runtime/utf8.js +93 -0
- package/dist/runtime/utf8.js.map +1 -0
- package/dist/runtime/util.d.ts +18 -0
- package/dist/runtime/util.d.ts.map +1 -0
- package/dist/runtime/util.js +59 -0
- package/dist/runtime/util.js.map +1 -0
- package/dist/runtime/value-converter.d.ts +9 -17
- package/dist/runtime/value-converter.d.ts.map +1 -1
- package/dist/runtime/value-converter.js +156 -42
- package/dist/runtime/value-converter.js.map +1 -1
- package/dist/runtime/wasm-loader.d.ts +6 -0
- package/dist/runtime/wasm-loader.d.ts.map +1 -0
- package/dist/runtime/wasm-loader.js +127 -0
- package/dist/runtime/wasm-loader.js.map +1 -0
- package/dist/runtime/write-preparation.d.ts +24 -0
- package/dist/runtime/write-preparation.d.ts.map +1 -0
- package/dist/runtime/write-preparation.js +63 -0
- package/dist/runtime/write-preparation.js.map +1 -0
- package/dist/runtime/write-row.d.ts +8 -0
- package/dist/runtime/write-row.d.ts.map +1 -0
- package/dist/runtime/write-row.js +17 -0
- package/dist/runtime/write-row.js.map +1 -0
- package/dist/schema-builders.d.ts +48 -0
- package/dist/schema-builders.d.ts.map +1 -0
- package/dist/schema-builders.js +26 -0
- package/dist/schema-builders.js.map +1 -0
- package/dist/schema-dsl/define-schema.d.ts +32 -0
- package/dist/schema-dsl/define-schema.d.ts.map +1 -0
- package/dist/schema-dsl/define-schema.js +80 -0
- package/dist/schema-dsl/define-schema.js.map +1 -0
- package/dist/schema-dsl/readable-app.d.ts +30 -0
- package/dist/schema-dsl/readable-app.d.ts.map +1 -0
- package/dist/schema-dsl/readable-app.js +139 -0
- package/dist/schema-dsl/readable-app.js.map +1 -0
- package/dist/schema-dsl/table.d.ts +101 -0
- package/dist/schema-dsl/table.d.ts.map +1 -0
- package/dist/schema-dsl/table.js +153 -0
- package/dist/schema-dsl/table.js.map +1 -0
- package/dist/schema-errors.d.ts +6 -0
- package/dist/schema-errors.d.ts.map +1 -0
- package/dist/schema-errors.js +6 -0
- package/dist/schema-errors.js.map +1 -0
- package/dist/schema-loader.d.ts +16 -0
- package/dist/schema-loader.d.ts.map +1 -0
- package/dist/schema-loader.js +108 -0
- package/dist/schema-loader.js.map +1 -0
- package/dist/schema-name.d.ts +2 -0
- package/dist/schema-name.d.ts.map +1 -0
- package/dist/schema-name.js +19 -0
- package/dist/schema-name.js.map +1 -0
- package/dist/schema-namespace.d.ts +7 -0
- package/dist/schema-namespace.d.ts.map +1 -0
- package/dist/schema-namespace.js +7 -0
- package/dist/schema-namespace.js.map +1 -0
- package/dist/schema-permissions.d.ts +12 -0
- package/dist/schema-permissions.d.ts.map +1 -0
- package/dist/schema-permissions.js +17 -0
- package/dist/schema-permissions.js.map +1 -0
- package/dist/schema-source.d.ts +11 -0
- package/dist/schema-source.d.ts.map +1 -0
- package/dist/schema-source.js +53 -0
- package/dist/schema-source.js.map +1 -0
- package/dist/schema.d.ts +95 -38
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -16
- package/dist/schema.js.map +1 -1
- package/dist/session/backend-watch.d.ts +186 -0
- package/dist/session/backend-watch.d.ts.map +1 -0
- package/dist/session/backend-watch.js +698 -0
- package/dist/session/backend-watch.js.map +1 -0
- package/dist/session/config-options.d.ts +15 -0
- package/dist/session/config-options.d.ts.map +1 -0
- package/dist/session/config-options.js +55 -0
- package/dist/session/config-options.js.map +1 -0
- package/dist/session/consumer.d.ts +3 -0
- package/dist/session/consumer.d.ts.map +1 -0
- package/dist/session/consumer.js +3 -0
- package/dist/session/consumer.js.map +1 -0
- package/dist/session/create-jazz-session.d.ts +123 -0
- package/dist/session/create-jazz-session.d.ts.map +1 -0
- package/dist/session/create-jazz-session.js +542 -0
- package/dist/session/create-jazz-session.js.map +1 -0
- package/dist/session/follow-user.d.ts +72 -0
- package/dist/session/follow-user.d.ts.map +1 -0
- package/dist/session/follow-user.js +147 -0
- package/dist/session/follow-user.js.map +1 -0
- package/dist/session/jazz-session.d.ts +234 -0
- package/dist/session/jazz-session.d.ts.map +1 -0
- package/dist/session/jazz-session.js +528 -0
- package/dist/session/jazz-session.js.map +1 -0
- package/dist/session/native-backend-watch.d.ts +4 -0
- package/dist/session/native-backend-watch.d.ts.map +1 -0
- package/dist/session/native-backend-watch.js +14 -0
- package/dist/session/native-backend-watch.js.map +1 -0
- package/dist/session/no-kept-device-account-error.d.ts +6 -0
- package/dist/session/no-kept-device-account-error.d.ts.map +1 -0
- package/dist/session/no-kept-device-account-error.js +8 -0
- package/dist/session/no-kept-device-account-error.js.map +1 -0
- package/dist/session/replica-ledger.d.ts +164 -0
- package/dist/session/replica-ledger.d.ts.map +1 -0
- package/dist/session/replica-ledger.js +496 -0
- package/dist/session/replica-ledger.js.map +1 -0
- package/dist/session/state.d.ts +135 -0
- package/dist/session/state.d.ts.map +1 -0
- package/dist/session/state.js +535 -0
- package/dist/session/state.js.map +1 -0
- package/dist/shared/index.d.ts +20 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +17 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.d.ts +13 -0
- package/dist/solid/create-solid-jazz-client-internal.d.ts.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.js +82 -0
- package/dist/solid/create-solid-jazz-client-internal.js.map +1 -0
- package/dist/solid/create-solid-jazz-client-internal.ssr.js +101 -0
- package/dist/solid/create-solid-jazz-client-internal.ssr.js.map +1 -0
- package/dist/solid/create-solid-jazz-client.d.ts +24 -0
- package/dist/solid/create-solid-jazz-client.d.ts.map +1 -0
- package/dist/solid/create-solid-jazz-client.js +42 -0
- package/dist/solid/create-solid-jazz-client.js.map +1 -0
- package/dist/solid/create-solid-jazz-client.ssr.js +45 -0
- package/dist/solid/create-solid-jazz-client.ssr.js.map +1 -0
- package/dist/solid/index.d.ts +13 -0
- package/dist/solid/index.d.ts.map +1 -0
- package/dist/solid/index.js +9 -0
- package/dist/solid/index.ssr.js +9 -0
- package/dist/solid/provider.d.ts +25 -0
- package/dist/solid/provider.d.ts.map +1 -0
- package/dist/solid/provider.js +48 -0
- package/dist/solid/provider.js.map +1 -0
- package/dist/solid/provider.ssr.js +48 -0
- package/dist/solid/provider.ssr.js.map +1 -0
- package/dist/solid/session-context.d.ts +14 -0
- package/dist/solid/session-context.d.ts.map +1 -0
- package/dist/solid/session-context.js +6 -0
- package/dist/solid/session-context.js.map +1 -0
- package/dist/solid/session-context.ssr.js +10 -0
- package/dist/solid/session-context.ssr.js.map +1 -0
- package/dist/solid/session.d.ts +55 -0
- package/dist/solid/session.d.ts.map +1 -0
- package/dist/solid/session.js +130 -0
- package/dist/solid/session.js.map +1 -0
- package/dist/solid/session.ssr.js +156 -0
- package/dist/solid/session.ssr.js.map +1 -0
- package/dist/solid/solid-jazz-client-store.d.ts +11 -0
- package/dist/solid/solid-jazz-client-store.d.ts.map +1 -0
- package/dist/solid/solid-jazz-client-store.js +38 -0
- package/dist/solid/solid-jazz-client-store.js.map +1 -0
- package/dist/solid/solid-jazz-client-store.ssr.js +39 -0
- package/dist/solid/solid-jazz-client-store.ssr.js.map +1 -0
- package/dist/solid/use-all.d.ts +18 -0
- package/dist/solid/use-all.d.ts.map +1 -0
- package/dist/solid/use-all.js +71 -0
- package/dist/solid/use-all.js.map +1 -0
- package/dist/solid/use-all.ssr.js +84 -0
- package/dist/solid/use-all.ssr.js.map +1 -0
- package/dist/solid/use-one.d.ts +18 -0
- package/dist/solid/use-one.d.ts.map +1 -0
- package/dist/solid/use-one.js +27 -0
- package/dist/solid/use-one.js.map +1 -0
- package/dist/solid/use-one.ssr.js +27 -0
- package/dist/solid/use-one.ssr.js.map +1 -0
- package/dist/solid/use-sync-status.d.ts +8 -0
- package/dist/solid/use-sync-status.d.ts.map +1 -0
- package/dist/solid/use-sync-status.js +13 -0
- package/dist/solid/use-sync-status.js.map +1 -0
- package/dist/solid/use-sync-status.ssr.js +20 -0
- package/dist/solid/use-sync-status.ssr.js.map +1 -0
- package/dist/subscription-store-internal.d.ts +11 -0
- package/dist/subscription-store-internal.d.ts.map +1 -0
- package/dist/subscription-store-internal.js +18 -0
- package/dist/subscription-store-internal.js.map +1 -0
- package/dist/subscriptions-orchestrator.d.ts +92 -14
- package/dist/subscriptions-orchestrator.d.ts.map +1 -1
- package/dist/subscriptions-orchestrator.js +390 -75
- package/dist/subscriptions-orchestrator.js.map +1 -1
- package/dist/svelte/JazzProvider.svelte +110 -0
- package/dist/svelte/JazzProvider.svelte.d.ts +24 -0
- package/dist/svelte/JazzProvider.svelte.d.ts.map +1 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte +83 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts +15 -0
- package/dist/svelte/JazzSvelteClientProvider.svelte.d.ts.map +1 -0
- package/dist/svelte/context.svelte.d.ts +19 -3
- package/dist/svelte/context.svelte.d.ts.map +1 -1
- package/dist/svelte/context.svelte.js +21 -5
- package/dist/svelte/create-jazz-client.d.ts +2 -8
- package/dist/svelte/create-jazz-client.d.ts.map +1 -1
- package/dist/svelte/create-jazz-client.js +1 -17
- package/dist/svelte/index.d.ts +14 -7
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +10 -7
- package/dist/svelte/query-subscription.svelte.d.ts +60 -0
- package/dist/svelte/query-subscription.svelte.d.ts.map +1 -0
- package/dist/svelte/query-subscription.svelte.js +135 -0
- package/dist/svelte/session-state.d.ts +27 -0
- package/dist/svelte/session-state.d.ts.map +1 -0
- package/dist/svelte/session-state.js +49 -0
- package/dist/svelte/sync-status.d.ts +11 -0
- package/dist/svelte/sync-status.d.ts.map +1 -0
- package/dist/svelte/sync-status.js +15 -0
- package/dist/testing/fixtures/with-bigint/schema.d.ts +18 -0
- package/dist/testing/fixtures/with-bigint/schema.d.ts.map +1 -0
- package/dist/testing/fixtures/with-bigint/schema.js +15 -0
- package/dist/testing/fixtures/with-bigint/schema.js.map +1 -0
- package/dist/testing/index.d.ts +6 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +5 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/policy-test-app.d.ts +129 -0
- package/dist/testing/policy-test-app.d.ts.map +1 -0
- package/dist/testing/policy-test-app.js +229 -0
- package/dist/testing/policy-test-app.js.map +1 -0
- package/dist/testing/test-app.d.ts +272 -0
- package/dist/testing/test-app.d.ts.map +1 -0
- package/dist/testing/test-app.js +62 -0
- package/dist/testing/test-app.js.map +1 -0
- package/dist/testing/test-jazz.d.ts +119 -0
- package/dist/testing/test-jazz.d.ts.map +1 -0
- package/dist/testing/test-jazz.js +162 -0
- package/dist/testing/test-jazz.js.map +1 -0
- package/dist/testing/test-jwt-issuer.d.ts +19 -0
- package/dist/testing/test-jwt-issuer.d.ts.map +1 -0
- package/dist/testing/test-jwt-issuer.js +40 -0
- package/dist/testing/test-jwt-issuer.js.map +1 -0
- package/dist/text-field/index.d.ts +40 -0
- package/dist/text-field/index.d.ts.map +1 -0
- package/dist/text-field/index.js +129 -0
- package/dist/text-field/index.js.map +1 -0
- package/dist/thin/index.d.ts +80 -0
- package/dist/thin/index.d.ts.map +1 -0
- package/dist/thin/index.js +219 -0
- package/dist/thin/index.js.map +1 -0
- package/dist/thin/self-signed-token.d.ts +13 -0
- package/dist/thin/self-signed-token.d.ts.map +1 -0
- package/dist/thin/self-signed-token.js +100 -0
- package/dist/thin/self-signed-token.js.map +1 -0
- package/dist/thin/thin-runtime-source.d.ts +19 -0
- package/dist/thin/thin-runtime-source.d.ts.map +1 -0
- package/dist/thin/thin-runtime-source.js +66 -0
- package/dist/thin/thin-runtime-source.js.map +1 -0
- package/dist/thin/thin-runtime.d.ts +294 -0
- package/dist/thin/thin-runtime.d.ts.map +1 -0
- package/dist/thin/thin-runtime.js +1492 -0
- package/dist/thin/thin-runtime.js.map +1 -0
- package/dist/thin/wire.d.ts +160 -0
- package/dist/thin/wire.d.ts.map +1 -0
- package/dist/thin/wire.js +304 -0
- package/dist/thin/wire.js.map +1 -0
- package/dist/typed-app.d.ts +644 -0
- package/dist/typed-app.d.ts.map +1 -0
- package/dist/typed-app.js +549 -0
- package/dist/typed-app.js.map +1 -0
- package/dist/vue/create-jazz-client.d.ts +3 -0
- package/dist/vue/create-jazz-client.d.ts.map +1 -0
- package/dist/vue/create-jazz-client.js +2 -0
- package/dist/vue/create-jazz-client.js.map +1 -0
- package/dist/vue/index.d.ts +13 -0
- package/dist/vue/index.d.ts.map +1 -0
- package/dist/vue/index.js +9 -0
- package/dist/vue/index.js.map +1 -0
- package/dist/vue/provider.d.ts +50 -0
- package/dist/vue/provider.d.ts.map +1 -0
- package/dist/vue/provider.js +97 -0
- package/dist/vue/provider.js.map +1 -0
- package/dist/vue/session-key.d.ts +15 -0
- package/dist/vue/session-key.d.ts.map +1 -0
- package/dist/vue/session-key.js +7 -0
- package/dist/vue/session-key.js.map +1 -0
- package/dist/vue/session.d.ts +40 -0
- package/dist/vue/session.d.ts.map +1 -0
- package/dist/vue/session.js +112 -0
- package/dist/vue/session.js.map +1 -0
- package/dist/vue/use-all.d.ts +61 -0
- package/dist/vue/use-all.d.ts.map +1 -0
- package/dist/vue/use-all.js +104 -0
- package/dist/vue/use-all.js.map +1 -0
- package/dist/vue/use-one.d.ts +24 -0
- package/dist/vue/use-one.d.ts.map +1 -0
- package/dist/vue/use-one.js +17 -0
- package/dist/vue/use-one.js.map +1 -0
- package/dist/vue/use-sync-status.d.ts +9 -0
- package/dist/vue/use-sync-status.d.ts.map +1 -0
- package/dist/vue/use-sync-status.js +16 -0
- package/dist/vue/use-sync-status.js.map +1 -0
- package/dist/web/create-jazz-client.d.ts +12 -0
- package/dist/web/create-jazz-client.d.ts.map +1 -0
- package/dist/web/create-jazz-client.js +35 -0
- package/dist/web/create-jazz-client.js.map +1 -0
- package/dist/web/lazy-local-first.d.ts +5 -0
- package/dist/web/lazy-local-first.d.ts.map +1 -0
- package/dist/web/lazy-local-first.js +8 -0
- package/dist/web/lazy-local-first.js.map +1 -0
- package/dist/web/registered-jazz-client.d.ts +15 -0
- package/dist/web/registered-jazz-client.d.ts.map +1 -0
- package/dist/web/registered-jazz-client.js +35 -0
- package/dist/web/registered-jazz-client.js.map +1 -0
- package/dist/where-operators.d.ts +13 -0
- package/dist/where-operators.d.ts.map +1 -0
- package/dist/where-operators.js +66 -0
- package/dist/where-operators.js.map +1 -0
- package/dist/window-client-storage.d.ts +7 -0
- package/dist/window-client-storage.d.ts.map +1 -0
- package/dist/window-client-storage.js +27 -0
- package/dist/window-client-storage.js.map +1 -0
- package/dist/worker/jazz-broker-worker-core.d.ts +34 -0
- package/dist/worker/jazz-broker-worker-core.d.ts.map +1 -0
- package/dist/worker/jazz-broker-worker-core.js +2241 -0
- package/dist/worker/jazz-broker-worker-core.js.map +1 -0
- package/dist/worker/jazz-broker-worker.d.ts +3 -0
- package/dist/worker/jazz-broker-worker.d.ts.map +1 -0
- package/dist/worker/jazz-broker-worker.js +5 -0
- package/dist/worker/jazz_wasm_bg.wasm +0 -0
- package/dist/worker/mutation-error-delivery.d.ts +8 -0
- package/dist/worker/mutation-error-delivery.d.ts.map +1 -0
- package/dist/worker/mutation-error-delivery.js +10 -0
- package/dist/worker/mutation-error-delivery.js.map +1 -0
- package/dist/worker/runtime-admission.d.ts +34 -0
- package/dist/worker/runtime-admission.d.ts.map +1 -0
- package/dist/worker/runtime-admission.js +60 -0
- package/dist/worker/runtime-admission.js.map +1 -0
- package/dist/worker/vite-dev-broker.d.ts +2 -0
- package/dist/worker/vite-dev-broker.d.ts.map +1 -0
- package/dist/worker/vite-dev-broker.js +8 -0
- package/dist/worker/vite-dev-broker.js.map +1 -0
- package/package.json +299 -37
- package/bin/native/.gitkeep +0 -0
- package/bin/native/jazz-tools-darwin-arm64 +0 -0
- package/bin/native/jazz-tools-darwin-x64 +0 -0
- package/bin/native/jazz-tools-linux-arm64 +0 -0
- package/bin/native/jazz-tools-linux-x64 +0 -0
- package/bin/native/jazz-tools-windows-x64.exe +0 -0
- package/dist/backend/create-jazz-context.test.d.ts +0 -2
- package/dist/backend/create-jazz-context.test.d.ts.map +0 -1
- package/dist/backend/create-jazz-context.test.js +0 -141
- package/dist/backend/create-jazz-context.test.js.map +0 -1
- package/dist/cli.test.d.ts +0 -2
- package/dist/cli.test.d.ts.map +0 -1
- package/dist/cli.test.js +0 -154
- package/dist/cli.test.js.map +0 -1
- package/dist/codegen/codegen.test.d.ts +0 -2
- package/dist/codegen/codegen.test.d.ts.map +0 -1
- package/dist/codegen/codegen.test.js +0 -914
- package/dist/codegen/codegen.test.js.map +0 -1
- package/dist/codegen/index.d.ts +0 -18
- package/dist/codegen/index.d.ts.map +0 -1
- package/dist/codegen/index.js +0 -22
- package/dist/codegen/index.js.map +0 -1
- package/dist/codegen/query-builder-generator.d.ts +0 -26
- package/dist/codegen/query-builder-generator.d.ts.map +0 -1
- package/dist/codegen/query-builder-generator.js +0 -342
- package/dist/codegen/query-builder-generator.js.map +0 -1
- package/dist/codegen/schema-reader.d.ts +0 -12
- package/dist/codegen/schema-reader.d.ts.map +0 -1
- package/dist/codegen/schema-reader.js +0 -180
- package/dist/codegen/schema-reader.js.map +0 -1
- package/dist/codegen/type-generator.d.ts +0 -29
- package/dist/codegen/type-generator.d.ts.map +0 -1
- package/dist/codegen/type-generator.js +0 -296
- package/dist/codegen/type-generator.js.map +0 -1
- package/dist/dev-tools/dev-tools.d.ts +0 -15
- package/dist/dev-tools/dev-tools.d.ts.map +0 -1
- package/dist/dev-tools/dev-tools.js +0 -297
- package/dist/dev-tools/dev-tools.js.map +0 -1
- package/dist/dev-tools/extension-panel.d.ts +0 -19
- package/dist/dev-tools/extension-panel.d.ts.map +0 -1
- package/dist/dev-tools/extension-panel.js +0 -419
- package/dist/dev-tools/extension-panel.js.map +0 -1
- package/dist/dev-tools/index.d.ts +0 -3
- package/dist/dev-tools/index.d.ts.map +0 -1
- package/dist/dev-tools/index.js +0 -3
- package/dist/dev-tools/index.js.map +0 -1
- package/dist/dev-tools/protocol.d.ts +0 -49
- package/dist/dev-tools/protocol.d.ts.map +0 -1
- package/dist/dev-tools/protocol.js +0 -40
- package/dist/dev-tools/protocol.js.map +0 -1
- package/dist/dsl.test.d.ts +0 -2
- package/dist/dsl.test.d.ts.map +0 -1
- package/dist/dsl.test.js +0 -51
- package/dist/dsl.test.js.map +0 -1
- package/dist/permissions/index.d.ts +0 -146
- package/dist/permissions/index.d.ts.map +0 -1
- package/dist/permissions/index.js +0 -1211
- package/dist/permissions/index.js.map +0 -1
- package/dist/permissions/index.test.d.ts +0 -2
- package/dist/permissions/index.test.d.ts.map +0 -1
- package/dist/permissions/index.test.js +0 -830
- package/dist/permissions/index.test.js.map +0 -1
- package/dist/permissions/type-inference.test.d.ts +0 -2
- package/dist/permissions/type-inference.test.d.ts.map +0 -1
- package/dist/permissions/type-inference.test.js +0 -149
- package/dist/permissions/type-inference.test.js.map +0 -1
- package/dist/react/create-jazz-client.integration.test.d.ts +0 -2
- package/dist/react/create-jazz-client.integration.test.d.ts.map +0 -1
- package/dist/react/create-jazz-client.integration.test.js +0 -82
- package/dist/react/create-jazz-client.integration.test.js.map +0 -1
- package/dist/react/create-jazz-client.test.d.ts +0 -2
- package/dist/react/create-jazz-client.test.d.ts.map +0 -1
- package/dist/react/create-jazz-client.test.js +0 -135
- package/dist/react/create-jazz-client.test.js.map +0 -1
- package/dist/react/synthetic-user-switcher.d.ts +0 -9
- package/dist/react/synthetic-user-switcher.d.ts.map +0 -1
- package/dist/react/synthetic-user-switcher.js +0 -65
- package/dist/react/synthetic-user-switcher.js.map +0 -1
- package/dist/react/synthetic-users.d.ts +0 -2
- package/dist/react/synthetic-users.d.ts.map +0 -1
- package/dist/react/synthetic-users.js +0 -2
- package/dist/react/synthetic-users.js.map +0 -1
- package/dist/react/synthetic-users.test.d.ts +0 -2
- package/dist/react/synthetic-users.test.d.ts.map +0 -1
- package/dist/react/synthetic-users.test.js +0 -43
- package/dist/react/synthetic-users.test.js.map +0 -1
- package/dist/react/use-link-external-identity.d.ts +0 -25
- package/dist/react/use-link-external-identity.d.ts.map +0 -1
- package/dist/react/use-link-external-identity.js +0 -45
- package/dist/react/use-link-external-identity.js.map +0 -1
- package/dist/react-native/create-jazz-client.test.d.ts +0 -2
- package/dist/react-native/create-jazz-client.test.d.ts.map +0 -1
- package/dist/react-native/create-jazz-client.test.js +0 -162
- package/dist/react-native/create-jazz-client.test.js.map +0 -1
- package/dist/react-native/create-jazz-rn-runtime.d.ts +0 -13
- package/dist/react-native/create-jazz-rn-runtime.d.ts.map +0 -1
- package/dist/react-native/create-jazz-rn-runtime.js +0 -7
- package/dist/react-native/create-jazz-rn-runtime.js.map +0 -1
- package/dist/react-native/db.d.ts +0 -16
- package/dist/react-native/db.d.ts.map +0 -1
- package/dist/react-native/db.js +0 -50
- package/dist/react-native/db.js.map +0 -1
- package/dist/react-native/db.test.d.ts +0 -2
- package/dist/react-native/db.test.d.ts.map +0 -1
- package/dist/react-native/db.test.js +0 -148
- package/dist/react-native/db.test.js.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.d.ts +0 -56
- package/dist/react-native/jazz-rn-runtime-adapter.d.ts.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.js +0 -192
- package/dist/react-native/jazz-rn-runtime-adapter.js.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts +0 -2
- package/dist/react-native/jazz-rn-runtime-adapter.test.d.ts.map +0 -1
- package/dist/react-native/jazz-rn-runtime-adapter.test.js +0 -165
- package/dist/react-native/jazz-rn-runtime-adapter.test.js.map +0 -1
- package/dist/runtime/client-session.test.d.ts +0 -2
- package/dist/runtime/client-session.test.d.ts.map +0 -1
- package/dist/runtime/client-session.test.js +0 -84
- package/dist/runtime/client-session.test.js.map +0 -1
- package/dist/runtime/client.for-request.test.d.ts +0 -2
- package/dist/runtime/client.for-request.test.d.ts.map +0 -1
- package/dist/runtime/client.for-request.test.js +0 -191
- package/dist/runtime/client.for-request.test.js.map +0 -1
- package/dist/runtime/cloud-server.integration.test.d.ts +0 -2
- package/dist/runtime/cloud-server.integration.test.d.ts.map +0 -1
- package/dist/runtime/cloud-server.integration.test.js +0 -1210
- package/dist/runtime/cloud-server.integration.test.js.map +0 -1
- package/dist/runtime/dynamic-query.d.ts +0 -10
- package/dist/runtime/dynamic-query.d.ts.map +0 -1
- package/dist/runtime/dynamic-query.js +0 -11
- package/dist/runtime/dynamic-query.js.map +0 -1
- package/dist/runtime/leader-lock.d.ts +0 -15
- package/dist/runtime/leader-lock.d.ts.map +0 -1
- package/dist/runtime/leader-lock.js +0 -49
- package/dist/runtime/leader-lock.js.map +0 -1
- package/dist/runtime/local-auth.d.ts +0 -32
- package/dist/runtime/local-auth.d.ts.map +0 -1
- package/dist/runtime/local-auth.js +0 -93
- package/dist/runtime/local-auth.js.map +0 -1
- package/dist/runtime/local-auth.test.d.ts +0 -2
- package/dist/runtime/local-auth.test.d.ts.map +0 -1
- package/dist/runtime/local-auth.test.js +0 -50
- package/dist/runtime/local-auth.test.js.map +0 -1
- package/dist/runtime/query-adapter.test.d.ts +0 -5
- package/dist/runtime/query-adapter.test.d.ts.map +0 -1
- package/dist/runtime/query-adapter.test.js +0 -1249
- package/dist/runtime/query-adapter.test.js.map +0 -1
- package/dist/runtime/row-transformer.test.d.ts +0 -5
- package/dist/runtime/row-transformer.test.d.ts.map +0 -1
- package/dist/runtime/row-transformer.test.js +0 -385
- package/dist/runtime/row-transformer.test.js.map +0 -1
- package/dist/runtime/schema-fetch.d.ts +0 -17
- package/dist/runtime/schema-fetch.d.ts.map +0 -1
- package/dist/runtime/schema-fetch.js +0 -33
- package/dist/runtime/schema-fetch.js.map +0 -1
- package/dist/runtime/schema-fetch.test.d.ts +0 -2
- package/dist/runtime/schema-fetch.test.d.ts.map +0 -1
- package/dist/runtime/schema-fetch.test.js +0 -87
- package/dist/runtime/schema-fetch.test.js.map +0 -1
- package/dist/runtime/subscription-manager.test.d.ts +0 -5
- package/dist/runtime/subscription-manager.test.d.ts.map +0 -1
- package/dist/runtime/subscription-manager.test.js +0 -120
- package/dist/runtime/subscription-manager.test.js.map +0 -1
- package/dist/runtime/sync-transport.d.ts +0 -163
- package/dist/runtime/sync-transport.d.ts.map +0 -1
- package/dist/runtime/sync-transport.js +0 -477
- package/dist/runtime/sync-transport.js.map +0 -1
- package/dist/runtime/sync-transport.test.d.ts +0 -2
- package/dist/runtime/sync-transport.test.d.ts.map +0 -1
- package/dist/runtime/sync-transport.test.js +0 -310
- package/dist/runtime/sync-transport.test.js.map +0 -1
- package/dist/runtime/tab-leader-election.d.ts +0 -97
- package/dist/runtime/tab-leader-election.d.ts.map +0 -1
- package/dist/runtime/tab-leader-election.js +0 -339
- package/dist/runtime/tab-leader-election.js.map +0 -1
- package/dist/runtime/tab-leader-election.test.d.ts +0 -2
- package/dist/runtime/tab-leader-election.test.d.ts.map +0 -1
- package/dist/runtime/tab-leader-election.test.js +0 -278
- package/dist/runtime/tab-leader-election.test.js.map +0 -1
- package/dist/runtime/testing/wasm-runtime-test-utils.d.ts +0 -13
- package/dist/runtime/testing/wasm-runtime-test-utils.d.ts.map +0 -1
- package/dist/runtime/testing/wasm-runtime-test-utils.js +0 -76
- package/dist/runtime/testing/wasm-runtime-test-utils.js.map +0 -1
- package/dist/runtime/utils.d.ts +0 -2
- package/dist/runtime/utils.d.ts.map +0 -1
- package/dist/runtime/utils.js +0 -16
- package/dist/runtime/utils.js.map +0 -1
- package/dist/runtime/value-converter.test.d.ts +0 -5
- package/dist/runtime/value-converter.test.d.ts.map +0 -1
- package/dist/runtime/value-converter.test.js +0 -222
- package/dist/runtime/value-converter.test.js.map +0 -1
- package/dist/runtime/worker-bridge.d.ts +0 -82
- package/dist/runtime/worker-bridge.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.js +0 -308
- package/dist/runtime/worker-bridge.js.map +0 -1
- package/dist/runtime/worker-bridge.race-harness.test.d.ts +0 -2
- package/dist/runtime/worker-bridge.race-harness.test.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.race-harness.test.js +0 -284
- package/dist/runtime/worker-bridge.race-harness.test.js.map +0 -1
- package/dist/runtime/worker-bridge.test.d.ts +0 -2
- package/dist/runtime/worker-bridge.test.d.ts.map +0 -1
- package/dist/runtime/worker-bridge.test.js +0 -233
- package/dist/runtime/worker-bridge.test.js.map +0 -1
- package/dist/sql-gen.d.ts +0 -4
- package/dist/sql-gen.d.ts.map +0 -1
- package/dist/sql-gen.js +0 -163
- package/dist/sql-gen.js.map +0 -1
- package/dist/sql-gen.test.d.ts +0 -2
- package/dist/sql-gen.test.d.ts.map +0 -1
- package/dist/sql-gen.test.js +0 -412
- package/dist/sql-gen.test.js.map +0 -1
- package/dist/subscriptions-orchestrator.integration.test.d.ts +0 -2
- package/dist/subscriptions-orchestrator.integration.test.d.ts.map +0 -1
- package/dist/subscriptions-orchestrator.integration.test.js +0 -192
- package/dist/subscriptions-orchestrator.integration.test.js.map +0 -1
- package/dist/subscriptions-orchestrator.test.d.ts +0 -2
- package/dist/subscriptions-orchestrator.test.d.ts.map +0 -1
- package/dist/subscriptions-orchestrator.test.js +0 -367
- package/dist/subscriptions-orchestrator.test.js.map +0 -1
- package/dist/svelte/JazzSvelteProvider.svelte +0 -49
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts +0 -13
- package/dist/svelte/JazzSvelteProvider.svelte.d.ts.map +0 -1
- package/dist/svelte/SyntheticUserSwitcher.svelte +0 -121
- package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts +0 -11
- package/dist/svelte/SyntheticUserSwitcher.svelte.d.ts.map +0 -1
- package/dist/svelte/context.test.d.ts +0 -2
- package/dist/svelte/context.test.d.ts.map +0 -1
- package/dist/svelte/context.test.js +0 -55
- package/dist/svelte/create-jazz-client.test.d.ts +0 -2
- package/dist/svelte/create-jazz-client.test.d.ts.map +0 -1
- package/dist/svelte/create-jazz-client.test.js +0 -50
- package/dist/svelte/use-all.svelte.d.ts +0 -32
- package/dist/svelte/use-all.svelte.d.ts.map +0 -1
- package/dist/svelte/use-all.svelte.js +0 -61
- package/dist/svelte/use-all.test.d.ts +0 -2
- package/dist/svelte/use-all.test.d.ts.map +0 -1
- package/dist/svelte/use-all.test.js +0 -158
- package/dist/svelte/use-link-external-identity.d.ts +0 -25
- package/dist/svelte/use-link-external-identity.d.ts.map +0 -1
- package/dist/svelte/use-link-external-identity.js +0 -33
- package/dist/svelte/use-link-external-identity.test.d.ts +0 -2
- package/dist/svelte/use-link-external-identity.test.d.ts.map +0 -1
- package/dist/svelte/use-link-external-identity.test.js +0 -97
- package/dist/synthetic-user-switcher.d.ts +0 -16
- package/dist/synthetic-user-switcher.d.ts.map +0 -1
- package/dist/synthetic-user-switcher.js +0 -134
- package/dist/synthetic-user-switcher.js.map +0 -1
- package/dist/synthetic-users.d.ts +0 -32
- package/dist/synthetic-users.d.ts.map +0 -1
- package/dist/synthetic-users.js +0 -124
- package/dist/synthetic-users.js.map +0 -1
- package/dist/testing/fixtures/basic/app.d.ts +0 -55
- package/dist/testing/fixtures/basic/app.d.ts.map +0 -1
- package/dist/testing/fixtures/basic/app.js +0 -174
- package/dist/testing/fixtures/basic/app.js.map +0 -1
- package/dist/testing/fixtures/basic/current.d.ts +0 -2
- package/dist/testing/fixtures/basic/current.d.ts.map +0 -1
- package/dist/testing/fixtures/basic/current.js +0 -6
- package/dist/testing/fixtures/basic/current.js.map +0 -1
- package/dist/testing/index.test.d.ts +0 -2
- package/dist/testing/index.test.d.ts.map +0 -1
- package/dist/testing/index.test.js +0 -234
- package/dist/testing/index.test.js.map +0 -1
- package/dist/testing/local-jazz-server.d.ts +0 -34
- package/dist/testing/local-jazz-server.d.ts.map +0 -1
- package/dist/testing/local-jazz-server.js +0 -313
- package/dist/testing/local-jazz-server.js.map +0 -1
- package/dist/testing/relation-ir-test-helpers.d.ts +0 -3
- package/dist/testing/relation-ir-test-helpers.d.ts.map +0 -1
- package/dist/testing/relation-ir-test-helpers.js +0 -258
- package/dist/testing/relation-ir-test-helpers.js.map +0 -1
- package/dist/worker/jazz-worker.d.ts +0 -9
- package/dist/worker/jazz-worker.d.ts.map +0 -1
- package/dist/worker/jazz-worker.js +0 -555
- package/dist/worker/jazz-worker.js.map +0 -1
- package/dist/worker/jazz-worker.ts +0 -630
- package/dist/worker/worker-protocol.d.ts +0 -136
- package/dist/worker/worker-protocol.d.ts.map +0 -1
- package/dist/worker/worker-protocol.js +0 -7
- package/dist/worker/worker-protocol.js.map +0 -1
package/dist/runtime/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,57 +6,405 @@
|
|
|
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 { LinkFailure, LinkStatus, UploadStatus } 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
|
+
* `inFlightStreams` (the drain after the local-first upgrade) first lets
|
|
48
|
+
* streaming writes still sending their value finish, and waits for their
|
|
49
|
+
* writes too, until that signal aborts.
|
|
50
|
+
*/
|
|
51
|
+
waitForPendingWrites?(tier?: string, options?: {
|
|
52
|
+
throughOutage?: boolean;
|
|
53
|
+
inFlightStreams?: AbortSignal;
|
|
54
|
+
signal?: AbortSignal;
|
|
55
|
+
/** Wait as `waitForSync` for this session's writes (none: the runtime's own). */
|
|
56
|
+
sync?: {
|
|
57
|
+
writeContext?: string | null;
|
|
58
|
+
};
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
/** @internal Close mutation admission and report the foreground TxTime high-water. */
|
|
61
|
+
quiesceForegroundTxTimeHighWater?(): Promise<bigint>;
|
|
62
|
+
beginTransaction(transactionKind: TransactionKind, id: OpenTransactionId, sessionJson?: string | null): OpenTransactionId;
|
|
63
|
+
/** Completion may include asynchronous preparation before physical submission. */
|
|
64
|
+
commitTransaction(id: OpenTransactionId): TxId | Promise<TxId>;
|
|
65
|
+
rollbackTransaction(id: OpenTransactionId): Promise<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* @internal Whether open transaction `id` staged any write; `undefined`
|
|
68
|
+
* when this runtime can't tell (the transaction then commits as asked).
|
|
69
|
+
*/
|
|
70
|
+
hasStagedTransactionWrites?(id: OpenTransactionId): boolean | undefined;
|
|
71
|
+
/** Capture behind earlier owner operations without waiting for server acceptance. */
|
|
72
|
+
captureSnapshot?(): Promise<SnapshotRef>;
|
|
73
|
+
/** @internal A thin session's transaction request, served by its backend's client (NAPI). */
|
|
74
|
+
serveThinTransaction?(request: Uint8Array): Promise<Uint8Array>;
|
|
75
|
+
/** @internal End the thin session's open transactions (NAPI). */
|
|
76
|
+
releaseThinTransactions?(): Promise<void>;
|
|
77
|
+
readonly preparationOwner?: object;
|
|
78
|
+
/** @internal Live reachability of the upstream server, for read scheduling only. */
|
|
79
|
+
remoteLinkState?(): RemoteLinkState;
|
|
80
|
+
/** @internal Observe {@link Runtime.remoteLinkState} changes. */
|
|
81
|
+
onRemoteLinkStateChange?(listener: (state: RemoteLinkState) => void, signal: AbortSignal): void;
|
|
82
|
+
/** @internal Report the host's view of the server link to the core read gate. */
|
|
83
|
+
setRemoteLinkHint?(state: RemoteLinkState): void;
|
|
84
|
+
/** @internal The upstream link as the app sees it. */
|
|
85
|
+
upstreamLinkStatus?(): LinkStatus;
|
|
86
|
+
/** @internal This client's uploads: pending, since when, and refusals. */
|
|
87
|
+
uploadStatus?(): UploadStatus;
|
|
88
|
+
/**
|
|
89
|
+
* @internal Ids of `table`'s rows with a write the server has not decided
|
|
90
|
+
* yet, sorted; `null` when this runtime cannot tell.
|
|
91
|
+
*/
|
|
92
|
+
pendingUploadRows?(table: string): readonly string[] | null;
|
|
93
|
+
/** @internal The latest link failure this client saw, if any. */
|
|
94
|
+
lastLinkFailure?(): LinkFailure | null;
|
|
95
|
+
/** @internal Observe changes of the link status or the upload status. */
|
|
96
|
+
onSyncStatusChange?(listener: () => void, signal: AbortSignal): void;
|
|
97
|
+
/** @internal Construct a provisional row without staging or accepting a write. */
|
|
98
|
+
previewInsert?(table: string, values: InsertValues, objectId?: string): Row;
|
|
99
|
+
insert(table: string, values: InsertValues, write_context_json?: string | null, object_id?: string | null): InsertResult;
|
|
100
|
+
streamingMutation?(mutation: StreamingMutationKind, table: string, values: InsertValues, column: string, source: StreamingValueSource, write_context_json?: string | null, object_id?: string | null): Promise<StreamingInsertResult>;
|
|
101
|
+
restore(table: string, object_id: string, values: InsertValues, write_context_json?: string | null): InsertResult;
|
|
102
|
+
update(table: string, object_id: string, values: Record<string, Value>, write_context_json?: string | null): MutationResult;
|
|
103
|
+
/** Internal binding entrypoint for the typed page-edit update DSL. */
|
|
104
|
+
updateLargeValues?(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], writeContextJson?: string | null): MutationResult;
|
|
105
|
+
upsert(table: string, object_id: string, values: InsertValues, write_context_json?: string | null): MutationResult;
|
|
106
|
+
delete(table: string, object_id: string, write_context_json?: string | null): MutationResult;
|
|
107
|
+
canInsertLocally?(table: string, values: InsertValues, session?: Session): PermissionAdvice;
|
|
108
|
+
canReadLocally?(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
109
|
+
canUpdateLocally?(table: string, objectId: string, values: Record<string, Value>, session?: Session): PermissionAdvice;
|
|
110
|
+
canDeleteLocally?(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
111
|
+
requestInsertPermissionAdvice?(table: string, values: InsertValues, session?: Session): Promise<PermissionAdvice>;
|
|
112
|
+
requestReadPermissionAdvice?(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
113
|
+
explainReadClauses?(table: string, rows: string[], session: Session): ExplainedRows;
|
|
114
|
+
requestUpdatePermissionAdvice?(table: string, objectId: string, values: Record<string, Value>, session?: Session): Promise<PermissionAdvice>;
|
|
115
|
+
requestDeletePermissionAdvice?(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
116
|
+
onMutationError(callback: (event: MutationErrorEvent) => void): void;
|
|
117
|
+
waitForTransaction(txId: TxId | Promise<TxId>, tier: string, options?: RuntimeWriteWaitOptions): Promise<void>;
|
|
118
|
+
query(query_json: string, session_json?: string | null, tier?: string | null, options_json?: string | null): Promise<any>;
|
|
119
|
+
createSubscription(query_json: string, session_json?: string | null, tier?: string | null, options_json?: string | null): number;
|
|
120
|
+
/** Install the subscription's callback and start delivery. May only be called once per handle. */
|
|
121
|
+
executeSubscription(handle: number, onUpdate: (result: RuntimeSubscriptionDelta | Error) => void): void;
|
|
32
122
|
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
123
|
close?(): void | Promise<void>;
|
|
44
|
-
|
|
45
|
-
|
|
124
|
+
/** Abandon a runtime whose backing persistence epoch was invalidated. */
|
|
125
|
+
discard?(): void;
|
|
126
|
+
/** Delete the local store, saying how many unconfirmed writes it dropped when it can. */
|
|
127
|
+
clearClientStorage?(): Promise<{
|
|
128
|
+
pendingUploads?: number;
|
|
129
|
+
} | void>;
|
|
130
|
+
/** Whether {@link clearClientStorage} works here (a React Native relay's store). */
|
|
131
|
+
canClearClientStorage?(): boolean;
|
|
132
|
+
/** Connect to a Jazz server over WebSocket (Rust transport). */
|
|
133
|
+
connect(url: string, auth_json: string): void;
|
|
134
|
+
/**
|
|
135
|
+
* Disconnect from the Jazz server and drop the transport handle.
|
|
136
|
+
*
|
|
137
|
+
* Resolves once the runtime has completed the disconnect. For worker-backed
|
|
138
|
+
* runtimes, this includes a round-trip in which the worker performs the
|
|
139
|
+
* disconnect before replying.
|
|
140
|
+
*/
|
|
141
|
+
disconnect(options?: {
|
|
142
|
+
rejectWaiters?: boolean;
|
|
143
|
+
}): Promise<void>;
|
|
144
|
+
/** Native admission owns its upstream independently of a JavaScript URL. */
|
|
145
|
+
nativeUpstreamConfigured?(): boolean;
|
|
146
|
+
/** Push updated auth credentials into the live Rust transport. */
|
|
147
|
+
updateAuth(auth_json: string): void;
|
|
148
|
+
/**
|
|
149
|
+
* The session this client resolved from its credentials, set before it
|
|
150
|
+
* connects and again whenever its auth changes. A runtime that serves
|
|
151
|
+
* only its connection's session (thin) compares calls against it.
|
|
152
|
+
*/
|
|
153
|
+
useSession?(session: Session | null): void;
|
|
154
|
+
/** End waits held for a refused credential that nothing will renew. */
|
|
155
|
+
endCredentialWait?(): void;
|
|
156
|
+
/** Register a callback invoked when the Rust transport rejects the JWT. */
|
|
157
|
+
onAuthFailure(callback: (reason: string) => void): void;
|
|
158
|
+
/** Register a callback invoked when the server admits this client's link again. */
|
|
159
|
+
onAuthRestored?(callback: () => void): void;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Advisory result for a permission preflight. `allowed` and `denied` are
|
|
163
|
+
* final only when a trusted-serving authority evaluated the request;
|
|
164
|
+
* `unknown` means that a local replica or unavailable authority cannot decide.
|
|
165
|
+
*/
|
|
166
|
+
export type PermissionAdvice = "allowed" | "denied" | "unknown";
|
|
167
|
+
/**
|
|
168
|
+
* The engine's answer to the Inspector's `explain`: how many clauses the
|
|
169
|
+
* table's read policy has, and for each row found which of them hold.
|
|
170
|
+
*/
|
|
171
|
+
export interface ExplainedRows {
|
|
172
|
+
clauses: number;
|
|
173
|
+
rows: {
|
|
174
|
+
id: string;
|
|
175
|
+
holds: boolean[];
|
|
176
|
+
}[];
|
|
177
|
+
}
|
|
178
|
+
declare const openTransactionIdBrand: unique symbol;
|
|
179
|
+
declare const txIdBrand: unique symbol;
|
|
180
|
+
/** Identity of a mutable transaction. Invalid after commit or rollback. */
|
|
181
|
+
export type OpenTransactionId = string & {
|
|
182
|
+
readonly [openTransactionIdBrand]: true;
|
|
183
|
+
};
|
|
184
|
+
/** Immutable identity assigned to a successfully committed transaction. */
|
|
185
|
+
export type TxId = string & {
|
|
186
|
+
readonly [txIdBrand]: true;
|
|
187
|
+
};
|
|
188
|
+
/** Generate a coordination-free UUIDv7 identity for a new mutable transaction. */
|
|
189
|
+
export declare function createOpenTransactionId(): OpenTransactionId;
|
|
190
|
+
/**
|
|
191
|
+
* Authentication configuration for connecting to a Jazz server.
|
|
192
|
+
*
|
|
193
|
+
* Maps directly to the Rust `AuthConfig` struct in `jazz-tools/src/websocket_prelude_auth.rs`.
|
|
194
|
+
* All fields are optional; supply only the ones relevant to your auth mode.
|
|
195
|
+
*/
|
|
196
|
+
export interface AuthConfig {
|
|
197
|
+
/** JWT bearer token for user authentication. */
|
|
198
|
+
jwt_token?: string;
|
|
199
|
+
/** Backend service secret for server-to-server calls. */
|
|
200
|
+
backend_secret?: string;
|
|
201
|
+
/** Admin secret for privileged sync and `/admin/*` catalogue operations. */
|
|
202
|
+
admin_secret?: string;
|
|
203
|
+
/** Opaque session payload forwarded by a backend proxy. */
|
|
204
|
+
backend_session?: unknown;
|
|
205
|
+
/** The published permissions bundle the session is pinned to. */
|
|
206
|
+
bundle?: string;
|
|
46
207
|
}
|
|
47
208
|
/**
|
|
48
209
|
* Persistence tier for durability guarantees.
|
|
49
210
|
*
|
|
50
|
-
* - `
|
|
51
|
-
* - `
|
|
52
|
-
|
|
211
|
+
* - `local`: Persisted in local durable storage
|
|
212
|
+
* - `global`: Authorized and durably accepted by Core
|
|
213
|
+
*/
|
|
214
|
+
export type DurabilityTier = "local" | "global";
|
|
215
|
+
/**
|
|
216
|
+
* Product-facing policy for reads. It deliberately does not change write durability.
|
|
217
|
+
*
|
|
218
|
+
* There are two tiers: `LocalFirst` and `Remote`. A local-first read can also
|
|
219
|
+
* wait a bounded time for the server on its initial load; see
|
|
220
|
+
* {@link QueryExecutionOptions.firstLoadRemoteWaitMs}.
|
|
221
|
+
*/
|
|
222
|
+
export declare const ReadTier: {
|
|
223
|
+
/**
|
|
224
|
+
* Cached local knowledge and pending writes; still syncs while connected.
|
|
225
|
+
* Set `firstLoadRemoteWaitMs` to let the initial load wait for the server first.
|
|
226
|
+
*/
|
|
227
|
+
readonly LocalFirst: "local-first";
|
|
228
|
+
/** Current remote query scope, without pending local writes; waits offline. */
|
|
229
|
+
readonly Remote: "remote";
|
|
230
|
+
};
|
|
231
|
+
export type ReadTier = (typeof ReadTier)[keyof typeof ReadTier];
|
|
232
|
+
/**
|
|
233
|
+
* @internal A local-first read's server wait in whole milliseconds, or
|
|
234
|
+
* `undefined` when the caller gave none. An explicit `0` stays `0`: it opts
|
|
235
|
+
* out of the client default wait. Throws for a value that is not a
|
|
236
|
+
* non-negative number of milliseconds.
|
|
237
|
+
*/
|
|
238
|
+
export declare function normalizeFirstLoadRemoteWaitMs(value: unknown): number | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* How long a read that names no tier waits for the server on its first load
|
|
241
|
+
* in browsers and React Native, when a server is configured. It never waits
|
|
242
|
+
* offline or after `db.disconnect()`; pass `firstLoadRemoteWaitMs: 0` to show
|
|
243
|
+
* local data at once.
|
|
244
|
+
*/
|
|
245
|
+
export declare const DEFAULT_CLIENT_FIRST_LOAD_REMOTE_WAIT_MS = 5000;
|
|
246
|
+
/**
|
|
247
|
+
* @internal Throw for anything but a product read tier. Read options accept
|
|
248
|
+
* only `ReadTier.LocalFirst` and `ReadTier.Remote`; removed names get a
|
|
249
|
+
* migration message.
|
|
250
|
+
*/
|
|
251
|
+
export declare function rejectRemovedReadTier(tier: unknown): void;
|
|
252
|
+
/**
|
|
253
|
+
* @internal Tiers internal callers may pass: the product tiers and the
|
|
254
|
+
* inspector-only tier that never subscribes upstream.
|
|
255
|
+
*/
|
|
256
|
+
export type InternalReadTier = ReadTier | "local-only";
|
|
257
|
+
/**
|
|
258
|
+
* Whether this query should be shown in the inspector.
|
|
259
|
+
* Useful for helpers and framework internals that create subscriptions
|
|
260
|
+
* but should stay out of the DB inspector.
|
|
261
|
+
* Defaults to `"public"`.
|
|
262
|
+
*/
|
|
263
|
+
export type QueryVisibility = "public" | "hidden_from_live_query_list";
|
|
264
|
+
/** Named values selecting one exact branch-local row coordinate. */
|
|
265
|
+
export interface BranchSelector {
|
|
266
|
+
values: Record<string, Value>;
|
|
267
|
+
}
|
|
268
|
+
/** A live or application-resolved frozen base underneath a branch head. */
|
|
269
|
+
export type BranchViewBase = {
|
|
270
|
+
kind: "current";
|
|
271
|
+
branch: BranchSelector;
|
|
272
|
+
} | {
|
|
273
|
+
kind: "snapshot";
|
|
274
|
+
branch: BranchSelector;
|
|
275
|
+
snapshot: SnapshotRef;
|
|
276
|
+
};
|
|
277
|
+
/** User-facing head-over-base branch view. */
|
|
278
|
+
export interface BranchView {
|
|
279
|
+
head: BranchSelector;
|
|
280
|
+
base?: BranchViewBase;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* The read tier and the options only that tier accepts: `tier` discriminates
|
|
284
|
+
* the shape, so a first-load wait on a `ReadTier.Remote` read does not type-check.
|
|
285
|
+
*/
|
|
286
|
+
export type ReadTierOptions = {
|
|
287
|
+
/**
|
|
288
|
+
* Read tier: {@link ReadTier.LocalFirst} or {@link ReadTier.Remote}.
|
|
289
|
+
*
|
|
290
|
+
* Reads default to local-first in browsers and React Native (with a brief
|
|
291
|
+
* first-load server wait when a server is configured), and without a
|
|
292
|
+
* configured server; other environments with a server default to remote.
|
|
293
|
+
*/
|
|
294
|
+
tier?: typeof ReadTier.LocalFirst;
|
|
295
|
+
/**
|
|
296
|
+
* How long the initial load may wait for the server's answer, in
|
|
297
|
+
* milliseconds. A read that names no tier in a browser or React Native
|
|
298
|
+
* with a server defaults to {@link DEFAULT_CLIENT_FIRST_LOAD_REMOTE_WAIT_MS};
|
|
299
|
+
* an explicit `tier: "local-first"` defaults to `0`. `0` shows local
|
|
300
|
+
* data at once.
|
|
301
|
+
*
|
|
302
|
+
* While the client is online (connected, or its connection attempt is still
|
|
303
|
+
* young), a subscription's first callback, or a one-shot read, waits up to
|
|
304
|
+
* this long for the server's answer and then shows it; if the server has not
|
|
305
|
+
* answered in time, it shows the local result. Offline, without a server,
|
|
306
|
+
* or after `db.disconnect()` it never waits. Later changes behave as usual
|
|
307
|
+
* for local-first: local writes show immediately and remote changes as
|
|
308
|
+
* they arrive.
|
|
309
|
+
*/
|
|
310
|
+
firstLoadRemoteWaitMs?: number;
|
|
311
|
+
} | {
|
|
312
|
+
/** Read tier: `ReadTier.LocalFirst` or `ReadTier.Remote`. */
|
|
313
|
+
tier: typeof ReadTier.Remote;
|
|
314
|
+
/**
|
|
315
|
+
* Only local-first reads wait for the server on their first load; a
|
|
316
|
+
* remote read always waits for the server. Ignored at runtime if given.
|
|
317
|
+
*/
|
|
318
|
+
firstLoadRemoteWaitMs?: never;
|
|
319
|
+
};
|
|
320
|
+
export type QueryExecutionOptions = ReadTierOptions & {
|
|
321
|
+
/** Admit exact-head history, falling back to an optional live or frozen base. */
|
|
322
|
+
branch?: BranchView;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Copy the product-facing subset of query options before crossing a public
|
|
326
|
+
* JavaScript boundary. TypeScript declarations are useful guidance, but a
|
|
327
|
+
* caller can always supply an object through `as any` (or plain JavaScript).
|
|
328
|
+
* In particular, transport propagation and own-write delivery are runtime
|
|
329
|
+
* controls, not product API switches.
|
|
330
|
+
*
|
|
331
|
+
* @internal Db uses the analogous conversion when it lowers typed builders.
|
|
332
|
+
*/
|
|
333
|
+
export declare function publicQueryExecutionOptions(options?: QueryExecutionOptions): QueryExecutionOptions | undefined;
|
|
334
|
+
/** @internal `local-only` is deliberately excluded from the product surface. */
|
|
335
|
+
export declare function isPublicQueryReadTier(value: unknown): value is ReadTier;
|
|
336
|
+
/** @internal Low-level read controls that are not part of the product-facing query API. */
|
|
337
|
+
export type InternalQueryExecutionOptions = Omit<QueryExecutionOptions, "tier"> & {
|
|
338
|
+
tier?: InternalReadTier;
|
|
339
|
+
visibility?: QueryVisibility;
|
|
340
|
+
openTransactionId?: OpenTransactionId;
|
|
341
|
+
/** Columns whose updates a subscription also delivers as splices. */
|
|
342
|
+
splices?: readonly string[];
|
|
343
|
+
/** A subscription's backlog limit, in changed rows (see `QueryOptions.backlogRows`). */
|
|
344
|
+
backlogRows?: number;
|
|
345
|
+
};
|
|
346
|
+
export interface ResolvedQueryExecutionOptions {
|
|
347
|
+
tier: InternalReadTier;
|
|
348
|
+
/** Server wait of a local-first read; absent when it does not wait. */
|
|
349
|
+
firstLoadRemoteWaitMs?: number;
|
|
350
|
+
visibility: QueryVisibility;
|
|
351
|
+
branch?: BranchView;
|
|
352
|
+
splices?: readonly string[];
|
|
353
|
+
backlogRows?: number;
|
|
354
|
+
}
|
|
355
|
+
interface TimestampOverrideOptions {
|
|
356
|
+
updatedAt?: number;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Selects the transaction semantics used for grouped writes.
|
|
360
|
+
*
|
|
361
|
+
* - `mergeable`: eventually-consistent writes that merge with concurrent writes.
|
|
362
|
+
* - `serializable`: serializable writes that are validated as one unit by the authority.
|
|
53
363
|
*/
|
|
54
|
-
export type
|
|
55
|
-
export type
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
364
|
+
export type TransactionKind = "mergeable" | "serializable";
|
|
365
|
+
export type TransactionFate = {
|
|
366
|
+
kind: "missing";
|
|
367
|
+
transactionId: TxId;
|
|
368
|
+
} | {
|
|
369
|
+
kind: "rejected";
|
|
370
|
+
transactionId: TxId;
|
|
371
|
+
code: string;
|
|
372
|
+
reason: string;
|
|
373
|
+
} | {
|
|
374
|
+
kind: "accepted";
|
|
375
|
+
transactionId: TxId;
|
|
376
|
+
confirmedTier: DurabilityTier;
|
|
377
|
+
};
|
|
378
|
+
export interface LocalTransactionRecord {
|
|
379
|
+
transactionId: TxId;
|
|
380
|
+
kind: TransactionKind;
|
|
381
|
+
sealed: boolean;
|
|
382
|
+
latestSettlement: TransactionFate;
|
|
383
|
+
encodedRecord?: Uint8Array;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* A rejected write emitted by {@link JazzClient.onMutationError}.
|
|
387
|
+
*
|
|
388
|
+
* The event is a fallback for writes whose rejection was not handled by an
|
|
389
|
+
* active {@link WriteHandle.wait} call.
|
|
390
|
+
*/
|
|
391
|
+
export interface MutationErrorEvent {
|
|
392
|
+
code: string;
|
|
393
|
+
reason: string;
|
|
394
|
+
transaction: LocalTransactionRecord;
|
|
395
|
+
}
|
|
396
|
+
export interface InsertOptions extends TimestampOverrideOptions {
|
|
397
|
+
id?: string;
|
|
398
|
+
branch?: BranchSelector;
|
|
399
|
+
}
|
|
400
|
+
export interface UpdateOptions extends TimestampOverrideOptions {
|
|
401
|
+
branch?: BranchView;
|
|
402
|
+
}
|
|
403
|
+
export interface DeleteOptions extends TimestampOverrideOptions {
|
|
404
|
+
branch?: BranchView;
|
|
405
|
+
}
|
|
406
|
+
export interface RestoreOptions extends TimestampOverrideOptions {
|
|
407
|
+
branch?: BranchSelector;
|
|
59
408
|
}
|
|
60
409
|
/**
|
|
61
410
|
* Query row result.
|
|
@@ -64,253 +413,431 @@ export interface Row {
|
|
|
64
413
|
id: string;
|
|
65
414
|
values: Value[];
|
|
66
415
|
}
|
|
416
|
+
export type WriteReceipt = {
|
|
417
|
+
readonly kind: "committed";
|
|
418
|
+
readonly txId: TxId | Promise<TxId>;
|
|
419
|
+
} | {
|
|
420
|
+
readonly kind: "staged";
|
|
421
|
+
readonly openTransactionId: OpenTransactionId;
|
|
422
|
+
};
|
|
423
|
+
export type InsertResult = Row & WriteReceipt;
|
|
424
|
+
export type StreamingValueChunk = Uint8Array | string;
|
|
425
|
+
export type StreamingValueSource = ReadableStream<StreamingValueChunk> | AsyncIterable<StreamingValueChunk>;
|
|
426
|
+
export type StreamingInsertResult = {
|
|
427
|
+
id: string;
|
|
428
|
+
} & WriteReceipt;
|
|
429
|
+
export type StreamingMutationKind = "insert" | "update" | "upsert";
|
|
430
|
+
export type MutationResult = WriteReceipt;
|
|
67
431
|
/**
|
|
68
432
|
* Subscription callback type.
|
|
433
|
+
*
|
|
434
|
+
* The function form is retained for compatibility. Prefer
|
|
435
|
+
* {@link SubscriptionCallbacks} so terminal failures are handled explicitly;
|
|
436
|
+
* otherwise they are reported to `console.error`.
|
|
69
437
|
*/
|
|
70
|
-
export type SubscriptionCallback = (delta:
|
|
71
|
-
export interface
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
438
|
+
export type SubscriptionCallback = (delta: RuntimeSubscriptionDelta) => void;
|
|
439
|
+
export interface SubscriptionCallbacks {
|
|
440
|
+
/** Called for each native subscription delta. */
|
|
441
|
+
onUpdate: SubscriptionCallback;
|
|
442
|
+
/** Called once when the native subscription or update callback fails. */
|
|
443
|
+
onError?: (error: Error) => void;
|
|
444
|
+
}
|
|
445
|
+
export interface ConnectRuntimeOptions {
|
|
446
|
+
onAuthFailure?: (reason: AuthFailureReason) => void;
|
|
447
|
+
/** The server admitted this client's link (again), so an earlier refusal no longer holds. */
|
|
448
|
+
onAuthRestored?: () => void;
|
|
75
449
|
}
|
|
76
|
-
|
|
450
|
+
type QueryExecutionDefaultsContext = {
|
|
451
|
+
serverUrl?: string;
|
|
452
|
+
};
|
|
453
|
+
export declare function resolveEffectiveQueryExecutionOptions(context: QueryExecutionDefaultsContext, options?: InternalQueryExecutionOptions): ResolvedQueryExecutionOptions;
|
|
77
454
|
/**
|
|
78
|
-
*
|
|
455
|
+
* Error returned when a write fails to be persisted at a given durability tier.
|
|
79
456
|
*/
|
|
80
|
-
export
|
|
81
|
-
|
|
457
|
+
export declare class PersistedWriteRejectedError extends Error {
|
|
458
|
+
readonly transactionId: TxId;
|
|
459
|
+
readonly code: string;
|
|
460
|
+
readonly reason: string;
|
|
461
|
+
readonly name = "PersistedWriteRejectedError";
|
|
462
|
+
constructor(transactionId: TxId, code: string, reason: string);
|
|
82
463
|
}
|
|
83
464
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* to perform operations as a specific user via header-based authentication.
|
|
465
|
+
* Error returned when waiting for a write reaches the `timeoutMs` its caller
|
|
466
|
+
* set. The write itself is not rejected: it stays queued and may still be
|
|
467
|
+
* persisted, so retrying it can duplicate it.
|
|
88
468
|
*/
|
|
89
|
-
export declare class
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
469
|
+
export declare class WriteWaitTimeoutError extends Error {
|
|
470
|
+
readonly tier: DurabilityTier;
|
|
471
|
+
readonly timeoutMs: number;
|
|
472
|
+
readonly name = "WriteWaitTimeoutError";
|
|
473
|
+
readonly code = "timeout";
|
|
474
|
+
constructor(tier: DurabilityTier, timeoutMs: number);
|
|
475
|
+
}
|
|
476
|
+
/** Options for waiting on a write. */
|
|
477
|
+
export interface WriteWaitOptions {
|
|
478
|
+
tier: DurabilityTier;
|
|
93
479
|
/**
|
|
94
|
-
*
|
|
480
|
+
* Stop waiting after this many milliseconds with a
|
|
481
|
+
* {@link WriteWaitTimeoutError}. Without it, a wait lasts until the write
|
|
482
|
+
* is persisted or rejected, through any network outage and reconnect.
|
|
95
483
|
*/
|
|
96
|
-
|
|
484
|
+
timeoutMs?: number;
|
|
485
|
+
}
|
|
486
|
+
/** @internal Validate a caller's `timeoutMs` before any wait work starts. */
|
|
487
|
+
export declare function validateWriteWaitTimeout(timeoutMs: unknown): void;
|
|
488
|
+
/** Internal wait controls; not part of the public WriteHandle.wait options. */
|
|
489
|
+
export interface RuntimeWriteWaitOptions {
|
|
490
|
+
ready?: Promise<void>;
|
|
491
|
+
observeOnly?: boolean;
|
|
492
|
+
/** Ends the wait with `signal.reason`; the write itself is unaffected. */
|
|
493
|
+
signal?: AbortSignal;
|
|
494
|
+
}
|
|
495
|
+
/** @internal Configure host readiness without delaying native wait registration. */
|
|
496
|
+
export declare function setWriteWaitReadiness<T extends WriteHandle<unknown, unknown>>(handle: T, ready: (tier: DurabilityTier) => Promise<void>): T;
|
|
497
|
+
/**
|
|
498
|
+
* Returned by upsert, update, delete, and transaction operations.
|
|
499
|
+
* Allows waiting for the write to be persisted at a given durability tier.
|
|
500
|
+
*/
|
|
501
|
+
export declare class WriteHandle<T = void, WaitResult = void> {
|
|
502
|
+
#private;
|
|
503
|
+
readonly value: T;
|
|
504
|
+
readonly txId: Promise<TxId>;
|
|
505
|
+
constructor(txId: TxId | Promise<TxId>, client: JazzClient, value?: T);
|
|
97
506
|
/**
|
|
98
|
-
*
|
|
507
|
+
* Wait for the write to be persisted at a given durability tier.
|
|
508
|
+
*
|
|
509
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the write is rejected,
|
|
510
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes. Without
|
|
511
|
+
* `timeoutMs`, a Global wait lasts through network outages and reconnects.
|
|
99
512
|
*/
|
|
100
|
-
|
|
513
|
+
wait(options: WriteWaitOptions): Promise<WaitResult>;
|
|
514
|
+
protected client(): JazzClient;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Returned by insert operations and auto-committed transactions.
|
|
518
|
+
* Allows getting the inserted value and waiting for the write
|
|
519
|
+
* to be persisted at a given durability tier.
|
|
520
|
+
*/
|
|
521
|
+
export declare class WriteResult<T> extends WriteHandle<T, T> {
|
|
522
|
+
constructor(value: T, txId: TxId | Promise<TxId>, client: JazzClient);
|
|
101
523
|
/**
|
|
102
|
-
*
|
|
524
|
+
* Wait for the write to be persisted at a given durability tier.
|
|
525
|
+
*
|
|
526
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the write is rejected,
|
|
527
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes.
|
|
528
|
+
* @returns the inserted row.
|
|
103
529
|
*/
|
|
104
|
-
|
|
530
|
+
wait(options: WriteWaitOptions): Promise<T>;
|
|
531
|
+
mapValue<U>(transformValue: (value: T) => U): WriteResult<U>;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* The `txId` of a transaction that wrote nothing: it committed nothing, so
|
|
535
|
+
* it has no transaction id.
|
|
536
|
+
*/
|
|
537
|
+
export declare class EmptyTransactionError extends Error {
|
|
538
|
+
readonly name = "EmptyTransactionError";
|
|
539
|
+
readonly code = "empty_transaction";
|
|
540
|
+
constructor();
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Returned by a `db.transaction(callback)` whose callback wrote nothing: the
|
|
544
|
+
* transaction was rolled back, as there was nothing to commit, so `wait()`
|
|
545
|
+
* resolves at once with the callback's value. It has no transaction id:
|
|
546
|
+
* `txId` rejects.
|
|
547
|
+
*/
|
|
548
|
+
export declare class EmptyTransactionWriteResult<T> extends WriteResult<T> {
|
|
549
|
+
constructor(value: T, client: JazzClient);
|
|
550
|
+
wait(options: WriteWaitOptions): Promise<T>;
|
|
551
|
+
mapValue<U>(transformValue: (value: T) => U): WriteResult<U>;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Returned by explicitly-committed serializable transactions.
|
|
555
|
+
*
|
|
556
|
+
* Serializable transactions are accepted or rejected by the global authority, so
|
|
557
|
+
* callers do not choose a durability tier when waiting for confirmation.
|
|
558
|
+
*/
|
|
559
|
+
export declare class SerializableWriteHandle extends WriteHandle<void> {
|
|
105
560
|
/**
|
|
106
|
-
*
|
|
561
|
+
* Wait for the serializable transaction to be accepted or rejected by the authority.
|
|
562
|
+
*
|
|
563
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the transaction is rejected,
|
|
564
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes. Without
|
|
565
|
+
* `timeoutMs`, the wait lasts through network outages and reconnects.
|
|
107
566
|
*/
|
|
108
|
-
|
|
567
|
+
wait(options?: {
|
|
568
|
+
timeoutMs?: number;
|
|
569
|
+
}): Promise<void>;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Returned by auto-committed serializable transactions.
|
|
573
|
+
*/
|
|
574
|
+
export declare class SerializableWriteResult<T> extends WriteResult<T> {
|
|
109
575
|
/**
|
|
110
|
-
*
|
|
576
|
+
* Wait for the serializable transaction to be accepted or rejected by the authority.
|
|
577
|
+
*
|
|
578
|
+
* Rejects with a {@link PersistedWriteRejectedError} if the transaction is rejected,
|
|
579
|
+
* or a {@link WriteWaitTimeoutError} once `timeoutMs` passes.
|
|
580
|
+
* @returns the callback result.
|
|
111
581
|
*/
|
|
112
|
-
|
|
582
|
+
wait(options?: {
|
|
583
|
+
timeoutMs?: number;
|
|
584
|
+
}): Promise<T>;
|
|
585
|
+
mapValue<U>(transformValue: (value: T) => U): SerializableWriteResult<U>;
|
|
113
586
|
}
|
|
587
|
+
/** @internal A prerequisite retained by the transaction until native opening. */
|
|
588
|
+
export type TransactionAdmission = () => Promise<void>;
|
|
114
589
|
/**
|
|
115
|
-
*
|
|
590
|
+
* @internal Tell a client whether something renews its credential after a
|
|
591
|
+
* refusal. Without it, a refusal ends the client's Global waits (#3923).
|
|
116
592
|
*/
|
|
593
|
+
export declare function setCredentialRenewal(client: object, renews: (reason: AuthFailureReason) => boolean): void;
|
|
594
|
+
/** @internal Report a refusal that reached the host rather than the client's runtime. */
|
|
595
|
+
export declare function reportCredentialRefusal(client: object, reason: AuthFailureReason): void;
|
|
596
|
+
/** @internal Explicit opening path without per-client ambient state. */
|
|
597
|
+
export declare function beginClientTransactionAfter(client: JazzClient, kind: TransactionKind, session: Session | undefined, attribution: string | undefined, reservedId: OpenTransactionId | undefined, prerequisite: TransactionAdmission | undefined): OpenTransactionId;
|
|
598
|
+
/** @internal Sees a committed write's id and the identity it was made with. */
|
|
599
|
+
export type CommittedWriteObserver = (txId: TxId, session: Session | undefined, attribution: string | undefined) => void;
|
|
600
|
+
/** High-level Jazz client. */
|
|
117
601
|
export declare class JazzClient {
|
|
602
|
+
private readonly transactionPreparations;
|
|
603
|
+
private committedWriteObserver;
|
|
118
604
|
private runtime;
|
|
119
|
-
private
|
|
120
|
-
private serverClientId;
|
|
121
|
-
private subscriptions;
|
|
605
|
+
private scheduler;
|
|
122
606
|
private context;
|
|
123
607
|
private resolvedSession;
|
|
608
|
+
private shutdownPromise;
|
|
609
|
+
private discarded;
|
|
610
|
+
private writesRefused;
|
|
611
|
+
/** Facade-owned subscription releases, fenced against terminal reentrancy. */
|
|
612
|
+
private activeSubscriptionReleases;
|
|
613
|
+
private registerSubscriptionRelease;
|
|
614
|
+
private releaseSubscription;
|
|
615
|
+
private resolveSessionFromContext;
|
|
616
|
+
private buildTransportAuthPayload;
|
|
124
617
|
private constructor();
|
|
125
618
|
/**
|
|
126
|
-
*
|
|
619
|
+
* Create client from a pre-constructed runtime.
|
|
620
|
+
*
|
|
621
|
+
* RuntimeSource implementations use this after selecting the platform runtime.
|
|
127
622
|
*
|
|
128
|
-
* @param
|
|
623
|
+
* @param runtime A runtime implementing the Runtime interface
|
|
624
|
+
* @param context Application context
|
|
129
625
|
* @returns Connected JazzClient instance
|
|
130
626
|
*/
|
|
131
|
-
static
|
|
627
|
+
static connectWithRuntime(runtime: Runtime, context: AppContext, runtimeOptions?: ConnectRuntimeOptions): JazzClient;
|
|
628
|
+
/** @internal See {@link Runtime.serveThinTransaction}. */
|
|
629
|
+
serveThinTransaction(request: Uint8Array): Promise<Uint8Array>;
|
|
630
|
+
/** @internal See {@link Runtime.releaseThinTransactions}. */
|
|
631
|
+
releaseThinTransactions(): Promise<void>;
|
|
632
|
+
captureSnapshot(): Promise<SnapshotRef>;
|
|
633
|
+
beginTransaction(kind: TransactionKind, session?: Session, attribution?: string, reservedId?: OpenTransactionId): OpenTransactionId;
|
|
634
|
+
/** @internal Explicit prerequisite opening; named so unused clients can be tree-shaken. */
|
|
635
|
+
openTransaction(kind: TransactionKind, session: Session | undefined, attribution: string | undefined, reservedId: OpenTransactionId | undefined, prerequisite?: TransactionAdmission): OpenTransactionId;
|
|
636
|
+
/** @internal Shared across schema clients attached to one runtime owner. */
|
|
637
|
+
preparationOwner(): object;
|
|
638
|
+
onMutationError(listener: (event: MutationErrorEvent) => void): void;
|
|
132
639
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @param wasmModule Pre-loaded WASM module from loadWasmModule()
|
|
139
|
-
* @param context Application context with driver and schema
|
|
140
|
-
* @returns Connected JazzClient instance (created synchronously)
|
|
640
|
+
* @internal Observe every write this client commits, with the explicit
|
|
641
|
+
* session and attribution it was made with. A backend context shares one
|
|
642
|
+
* client between many `Db`s and uses this to route each rejection back to
|
|
643
|
+
* the `Db` that made the write.
|
|
141
644
|
*/
|
|
142
|
-
|
|
645
|
+
observeCommittedWrites(observer: CommittedWriteObserver): void;
|
|
646
|
+
private reportCommittedWrite;
|
|
143
647
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* without WASM loading.
|
|
148
|
-
*
|
|
149
|
-
* @param runtime A runtime implementing the Runtime interface
|
|
150
|
-
* @param context Application context
|
|
151
|
-
* @returns Connected JazzClient instance
|
|
648
|
+
* @internal Register deferred physical preparation before returning a mutation.
|
|
649
|
+
* Callbacks must use the underlying runtime, not re-enter this client's
|
|
650
|
+
* transaction reads or commit (which wait for the registered preparation).
|
|
152
651
|
*/
|
|
153
|
-
|
|
652
|
+
prepareTransaction(id: OpenTransactionId, prepare: (io: TransactionPreparationIO) => Promise<void>): Promise<void>;
|
|
653
|
+
private stageMutation;
|
|
654
|
+
private stageRowMutation;
|
|
655
|
+
/** @internal Prepare a return value without publishing or staging a physical row. */
|
|
656
|
+
previewInsertInternal(table: string, values: InsertValues, objectId?: string): Row;
|
|
657
|
+
commitTransaction(id: OpenTransactionId): WriteHandle;
|
|
658
|
+
/** @internal See {@link Runtime.hasStagedTransactionWrites}. */
|
|
659
|
+
hasStagedTransactionWrites(id: OpenTransactionId): boolean | undefined;
|
|
660
|
+
rollbackTransaction(id: OpenTransactionId): Promise<boolean>;
|
|
154
661
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* This allows backend applications to perform operations as a specific user.
|
|
158
|
-
* Requires `backendSecret` to be configured in the `AppContext`.
|
|
662
|
+
* Enable backend-scoped sync auth for this client.
|
|
159
663
|
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* @throws Error if backendSecret is not configured
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* const userSession = { user_id: "user-123", claims: {} };
|
|
167
|
-
* const userClient = client.forSession(userSession);
|
|
168
|
-
* const id = await userClient.create("todos", [{ type: "Text", value: "Buy milk" }]);
|
|
169
|
-
* ```
|
|
664
|
+
* In backend mode, sync/event transport uses `X-Jazz-Backend-Secret` instead
|
|
665
|
+
* of end-user auth headers and intentionally does not send admin headers.
|
|
170
666
|
*/
|
|
171
|
-
|
|
667
|
+
asBackend(): JazzClient;
|
|
172
668
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* - `claims` -> `session.claims` (defaults to `{}`)
|
|
178
|
-
*
|
|
179
|
-
* This helper only extracts payload fields and does not validate JWT signatures.
|
|
180
|
-
* JWT verification should happen in your auth middleware before request handling.
|
|
669
|
+
* @internal The server refused this client's credential. A refusal the app
|
|
670
|
+
* renews holds Global waits until the new credential reconnects, as an
|
|
671
|
+
* outage does; with nothing to renew it, the runtime ends them and its
|
|
672
|
+
* remote subscriptions as a terminal failure (#3923).
|
|
181
673
|
*/
|
|
182
|
-
|
|
674
|
+
handleCredentialRefusal(reason: AuthFailureReason): void;
|
|
675
|
+
private updateAuthSnapshot;
|
|
676
|
+
updateAuthToken(jwtToken?: string): void;
|
|
677
|
+
/** @internal Accept an auth update already applied by the owning connection. */
|
|
678
|
+
acceptAuthUpdate(update: AuthUpdate): void;
|
|
679
|
+
/** @internal Update a token minted by a dedicated first-party reserved auth flow. */
|
|
680
|
+
updateTrustedAuthToken(jwtToken: string, session: Session): void;
|
|
681
|
+
updateCookieSession(cookieSession?: Session): void;
|
|
682
|
+
private normalizeQueryExecutionOptions;
|
|
183
683
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* @param table Table name
|
|
187
|
-
* @param values Array of column values
|
|
188
|
-
* @returns The new row's ID (UUID string)
|
|
684
|
+
* @internal `db.waitForSync` for the writes `session` makes through this
|
|
685
|
+
* client (none: its own), on the runtime's native path.
|
|
189
686
|
*/
|
|
190
|
-
|
|
687
|
+
waitForSyncAs(session: Session | undefined, signal?: AbortSignal): Promise<void>;
|
|
191
688
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* @param table Table name
|
|
195
|
-
* @param values Array of column values
|
|
196
|
-
* @param tier Acknowledgement tier to wait for
|
|
197
|
-
* @returns Promise resolving to the new row's ID when the tier acknowledges
|
|
689
|
+
* Resolve the writing session and encode the runtime write context. An
|
|
690
|
+
* insert/restore branch selector is lowered to a head-only branch view.
|
|
198
691
|
*/
|
|
199
|
-
|
|
692
|
+
private writeContext;
|
|
200
693
|
/**
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
* @param query Query builder or JSON-encoded query specification
|
|
204
|
-
* @param settledTier Optional tier to hold delivery until confirmed
|
|
205
|
-
* @returns Array of matching rows
|
|
694
|
+
* Insert a new row into a table without waiting for durability.
|
|
206
695
|
*/
|
|
207
|
-
|
|
696
|
+
insert(table: string, values: InsertValues, options?: InsertOptions, session?: Session, attribution?: string): WriteResult<Row>;
|
|
208
697
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
698
|
+
* Consume one host byte/text stream and atomically insert the resulting
|
|
699
|
+
* scalar with the other row values. The streamed value is intentionally not
|
|
700
|
+
* copied back into the returned handle.
|
|
211
701
|
*/
|
|
212
|
-
|
|
702
|
+
insertStreaming(table: string, values: InsertValues, column: string, source: StreamingValueSource, options?: InsertOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
|
|
703
|
+
id: string;
|
|
704
|
+
}>>;
|
|
705
|
+
updateStreaming(table: string, objectId: string, values: InsertValues, column: string, source: StreamingValueSource, options?: UpdateOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
|
|
706
|
+
id: string;
|
|
707
|
+
}>>;
|
|
708
|
+
upsertStreaming(table: string, objectId: string, values: InsertValues, column: string, source: StreamingValueSource, options?: UpdateOptions, session?: Session, attribution?: string): Promise<WriteHandle<{
|
|
709
|
+
id: string;
|
|
710
|
+
}>>;
|
|
711
|
+
private streamingMutation;
|
|
213
712
|
/**
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* @param objectId Row ID (UUID string)
|
|
217
|
-
* @param updates Object mapping column names to new values
|
|
713
|
+
* @internal Stage a streamed mutation in open transaction
|
|
714
|
+
* `openTransactionId`; it commits with the transaction.
|
|
218
715
|
*/
|
|
219
|
-
|
|
716
|
+
streamingMutationInTransaction(mutation: StreamingMutationKind, table: string, values: InsertValues, column: string, source: StreamingValueSource, openTransactionId: OpenTransactionId, options?: InsertOptions | UpdateOptions, session?: Session, attribution?: string, objectId?: string): Promise<{
|
|
717
|
+
id: string;
|
|
718
|
+
}>;
|
|
719
|
+
private runStreamingMutation;
|
|
220
720
|
/**
|
|
221
|
-
*
|
|
721
|
+
* @internal
|
|
222
722
|
*/
|
|
223
|
-
|
|
723
|
+
insertInternal(table: string, values: InsertValues, options?: InsertOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): InsertResult;
|
|
224
724
|
/**
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* @param objectId Row ID (UUID string)
|
|
725
|
+
* Restore a soft-deleted row with a caller-supplied id without waiting for durability.
|
|
228
726
|
*/
|
|
229
|
-
|
|
727
|
+
restore(table: string, objectId: string, values: InsertValues, options?: RestoreOptions, session?: Session, attribution?: string): WriteResult<Row>;
|
|
230
728
|
/**
|
|
231
|
-
*
|
|
729
|
+
* @internal
|
|
232
730
|
*/
|
|
233
|
-
|
|
731
|
+
restoreInternal(table: string, objectId: string, values: InsertValues, options?: RestoreOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): InsertResult;
|
|
234
732
|
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
* @param query Query builder or JSON-encoded query specification
|
|
238
|
-
* @param callback Called with delta whenever results change
|
|
239
|
-
* @param settledTier Optional tier to hold initial delivery until confirmed
|
|
240
|
-
* @returns Subscription ID for unsubscribing
|
|
733
|
+
* Create or update a row with a caller-supplied id without waiting for durability.
|
|
241
734
|
*/
|
|
242
|
-
|
|
735
|
+
upsert(table: string, objectId: string, values: InsertValues, options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
|
|
243
736
|
/**
|
|
244
|
-
* Internal subscribe with optional session and settled tier.
|
|
245
737
|
* @internal
|
|
246
738
|
*/
|
|
247
|
-
|
|
739
|
+
upsertInternal(table: string, objectId: string, values: InsertValues, options?: UpdateOptions, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId): MutationResult;
|
|
248
740
|
/**
|
|
249
|
-
*
|
|
741
|
+
* Execute a query and return all matching rows.
|
|
250
742
|
*
|
|
251
|
-
* @param
|
|
743
|
+
* @param query JSON-encoded runtime query specification
|
|
744
|
+
* @param options Optional read durability options
|
|
745
|
+
* @returns Array of matching rows
|
|
252
746
|
*/
|
|
253
|
-
|
|
747
|
+
query(query: string, options?: QueryExecutionOptions, session?: Session): Promise<Row[]>;
|
|
748
|
+
/** @internal */
|
|
749
|
+
queryInternal(query: string, options?: InternalQueryExecutionOptions, session?: Session): Promise<Row[]>;
|
|
750
|
+
private queryWithoutPreparation;
|
|
254
751
|
/**
|
|
255
|
-
*
|
|
752
|
+
* Update a row by ID without waiting for durability.
|
|
256
753
|
*/
|
|
257
|
-
|
|
754
|
+
update(table: string, objectId: string, updates: Record<string, Value>, options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
|
|
755
|
+
/** @internal Typed `Db.update` diff lowering; not exposed as an imperative API. */
|
|
756
|
+
updateLargeValues(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], options?: UpdateOptions, session?: Session, attribution?: string): WriteHandle;
|
|
757
|
+
/** @internal */
|
|
758
|
+
updateLargeValuesInternal(table: string, objectId: string, updates: Record<string, Value>, descriptors: readonly unknown[], updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
|
|
258
759
|
/**
|
|
259
|
-
* Get the underlying runtime (for WorkerBridge).
|
|
260
760
|
* @internal
|
|
261
761
|
*/
|
|
262
|
-
|
|
762
|
+
updateInternal(table: string, objectId: string, updates: Record<string, Value>, updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
|
|
263
763
|
/**
|
|
264
|
-
*
|
|
265
|
-
* @internal
|
|
764
|
+
* Delete a row by ID without waiting for durability.
|
|
266
765
|
*/
|
|
267
|
-
|
|
766
|
+
delete(table: string, objectId: string, options?: DeleteOptions, session?: Session, attribution?: string): WriteHandle;
|
|
767
|
+
canInsertLocally(table: string, values: InsertValues, session?: Session): PermissionAdvice;
|
|
768
|
+
canReadLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
769
|
+
canUpdateLocally(table: string, objectId: string, values: Record<string, Value>, session?: Session): PermissionAdvice;
|
|
770
|
+
canDeleteLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
771
|
+
requestInsertPermissionAdvice(table: string, values: InsertValues, session?: Session): Promise<PermissionAdvice>;
|
|
772
|
+
/** For the Inspector's `explain`; see {@link Runtime.explainReadClauses}. */
|
|
773
|
+
explainReadClauses(table: string, rows: string[], session: Session): ExplainedRows;
|
|
774
|
+
requestReadPermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
775
|
+
requestUpdatePermissionAdvice(table: string, objectId: string, values: Record<string, Value>, session?: Session): Promise<PermissionAdvice>;
|
|
776
|
+
requestDeletePermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
268
777
|
/**
|
|
269
|
-
* Build a fully-qualified endpoint URL against the configured server.
|
|
270
778
|
* @internal
|
|
271
779
|
*/
|
|
272
|
-
|
|
780
|
+
deleteInternal(table: string, objectId: string, updatedAt?: number, session?: Session, attribution?: string, openTransactionId?: OpenTransactionId, branch?: BranchView): MutationResult;
|
|
273
781
|
/**
|
|
274
|
-
*
|
|
275
|
-
*
|
|
782
|
+
* Subscribe to a query and receive updates when results change.
|
|
783
|
+
*
|
|
784
|
+
* @param callbacks Delta callback, or callbacks object with terminal error handling.
|
|
785
|
+
* Legacy function-form subscriptions report terminal failures to `console.error`.
|
|
786
|
+
* @param options Optional read durability options
|
|
787
|
+
* @returns Subscription ID for unsubscribing
|
|
276
788
|
*/
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
user_branch: string;
|
|
281
|
-
};
|
|
789
|
+
subscribe(query: string, callbacks: SubscriptionCallback | SubscriptionCallbacks, options?: QueryExecutionOptions, session?: Session): number;
|
|
790
|
+
/** @internal */
|
|
791
|
+
subscribeInternal(query: string, callbacks: SubscriptionCallback | SubscriptionCallbacks, options?: InternalQueryExecutionOptions, session?: Session): number;
|
|
282
792
|
/**
|
|
283
|
-
*
|
|
284
|
-
*
|
|
793
|
+
* Unsubscribe from a query.
|
|
794
|
+
*
|
|
795
|
+
* @param subscriptionId ID returned from subscribe()
|
|
285
796
|
*/
|
|
286
|
-
|
|
797
|
+
unsubscribe(subscriptionId: number): void;
|
|
287
798
|
/**
|
|
288
|
-
*
|
|
799
|
+
* Connect to a Jazz server over WebSocket using the Rust transport layer.
|
|
289
800
|
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
* -
|
|
293
|
-
*
|
|
801
|
+
* Accepts an HTTP/HTTPS server URL (e.g. "http://localhost:4000") and
|
|
802
|
+
* converts it to the corresponding WebSocket `/ws` endpoint URL before
|
|
803
|
+
* passing it to the underlying Rust runtime's `connect()`. Already-WS URLs
|
|
804
|
+
* are passed through unchanged.
|
|
294
805
|
*
|
|
295
|
-
*
|
|
806
|
+
* @param url Server URL — http(s):// or ws(s)://. `/apps/<appId>/ws` is appended automatically.
|
|
807
|
+
* @param auth Authentication credentials for the connection.
|
|
296
808
|
*/
|
|
297
|
-
|
|
809
|
+
connectTransport(url: string, auth: AuthConfig): void;
|
|
810
|
+
/**
|
|
811
|
+
* Temporarily disconnect from the Jazz server without closing local runtime state.
|
|
812
|
+
*/
|
|
813
|
+
disconnectTransport(): Promise<void>;
|
|
814
|
+
/**
|
|
815
|
+
* Get the current schema.
|
|
816
|
+
*/
|
|
817
|
+
getSchema(): WasmSchema;
|
|
818
|
+
/** @internal Connection managers use this to attach native peer transports. */
|
|
819
|
+
getRuntime(): Runtime;
|
|
820
|
+
waitForTransaction(txId: TxId | Promise<TxId>, tier: DurabilityTier, ready?: Promise<void>, timeoutMs?: number): Promise<void>;
|
|
821
|
+
/** @internal */
|
|
822
|
+
waitForSerializableTransaction(txId: TxId | Promise<TxId>, timeoutMs?: number): Promise<void>;
|
|
823
|
+
private normalizeTransactionWaitError;
|
|
298
824
|
/**
|
|
299
825
|
* Shutdown the client and release resources.
|
|
300
826
|
*/
|
|
301
827
|
shutdown(): Promise<void>;
|
|
302
|
-
|
|
303
|
-
|
|
828
|
+
/** @internal Abandon runtime work after external storage invalidation/reset. */
|
|
829
|
+
discard(): void;
|
|
830
|
+
/**
|
|
831
|
+
* @internal Refuse every later commit with `error`: this tab yielded its
|
|
832
|
+
* store to a newer build of the app and reloads, which would lose them.
|
|
833
|
+
* A transaction opened before commits through here, not through the Db.
|
|
834
|
+
*/
|
|
835
|
+
refuseWrites(error: Error): void;
|
|
836
|
+
/** Whether this client's runtime can delete its local store. */
|
|
837
|
+
supportsClientStorageReset(): boolean;
|
|
838
|
+
clearClientStorage(): Promise<{
|
|
839
|
+
pendingUploads?: number;
|
|
840
|
+
} | void>;
|
|
304
841
|
}
|
|
305
|
-
|
|
306
|
-
* WASM module type for sync client creation.
|
|
307
|
-
* This is the type of the jazz-wasm module after dynamic import.
|
|
308
|
-
*/
|
|
309
|
-
export type WasmModule = typeof import("jazz-wasm");
|
|
310
|
-
/**
|
|
311
|
-
* Load and initialize the WASM module.
|
|
312
|
-
*
|
|
313
|
-
* Exported so that `createDb()` can pre-load the module for sync mutations.
|
|
314
|
-
*/
|
|
315
|
-
export declare function loadWasmModule(): Promise<WasmModule>;
|
|
842
|
+
export {};
|
|
316
843
|
//# sourceMappingURL=client.d.ts.map
|