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
|
@@ -0,0 +1,913 @@
|
|
|
1
|
+
import type { ClientMigrations } from "../client-migrations.js";
|
|
2
|
+
import { type SnapshotRef } from "../snapshot-ref.js";
|
|
3
|
+
import { formatUuid } from "../hex.js";
|
|
4
|
+
export { formatUuid };
|
|
5
|
+
import { type RemoteLinkState } from "../remote-link-state.js";
|
|
6
|
+
import { type LinkFailure, type LinkStatus, type UploadStatus } from "../sync-status.js";
|
|
7
|
+
import type { ColumnDescriptor, InsertValues, RuntimeSubscriptionDelta, TablePolicies, Value, WasmRow, WasmSchema } from "../../drivers/types.js";
|
|
8
|
+
import type { TxId, InsertResult, MutationErrorEvent, MutationResult, OpenTransactionId, ExplainedRows, PermissionAdvice, Runtime, RuntimeWriteWaitOptions, StreamingInsertResult, StreamingMutationKind, StreamingValueSource, TransactionKind } from "../client.js";
|
|
9
|
+
import type { Session } from "../context.js";
|
|
10
|
+
import { type NativeRelationSubscriptionSnapshot, type NativeRowBatch, type NativeSubscriptionDelta, type NativeSelfSignedClientProof, type DescriptorField } from "./native-codec.js";
|
|
11
|
+
import { type WebSocketConstructor } from "./websocket.js";
|
|
12
|
+
export { encodeSchema } from "./schema-codec.js";
|
|
13
|
+
type ReadAuthorizationHost = "client-local" | "trusted-serving";
|
|
14
|
+
type NativeDbConstructor = {
|
|
15
|
+
openMemory(schema: Uint8Array, config: Uint8Array): NativeDb;
|
|
16
|
+
openMemoryAsBackend?(schema: Uint8Array, config: Uint8Array): NativeDb;
|
|
17
|
+
openPersistent?(dataPath: string, schema: Uint8Array, config: Uint8Array): NativeDb;
|
|
18
|
+
openPersistentAsBackend?(dataPath: string, schema: Uint8Array, config: Uint8Array): NativeDb;
|
|
19
|
+
openMemoryWithSelfSignedProof?(schema: Uint8Array, config: Uint8Array, token: string, appId: string, claimedAuthor: string): NativeDb;
|
|
20
|
+
openPersistentWithSelfSignedProof?(dataPath: string, schema: Uint8Array, config: Uint8Array, token: string, appId: string, claimedAuthor: string): NativeDb;
|
|
21
|
+
};
|
|
22
|
+
type NativeWriteOptions = {
|
|
23
|
+
author?: Uint8Array;
|
|
24
|
+
attribution?: Uint8Array;
|
|
25
|
+
updatedAtMs?: number;
|
|
26
|
+
};
|
|
27
|
+
type PendingNativeRead = {
|
|
28
|
+
poll(): Uint8Array | null;
|
|
29
|
+
cancel(): void;
|
|
30
|
+
};
|
|
31
|
+
type NativeReadResult = Uint8Array | PendingNativeRead;
|
|
32
|
+
type PendingNativeSubscriptionBatch = {
|
|
33
|
+
retryAfterMs?(): number | null;
|
|
34
|
+
};
|
|
35
|
+
type PendingNativePermissionAdvice = {
|
|
36
|
+
poll(): string | null;
|
|
37
|
+
cancel(): void;
|
|
38
|
+
};
|
|
39
|
+
type NativeInsertOptions = NativeWriteOptions & {
|
|
40
|
+
rowId?: Uint8Array;
|
|
41
|
+
branch?: unknown;
|
|
42
|
+
};
|
|
43
|
+
type NativeUpdateOptions = NativeWriteOptions & {
|
|
44
|
+
head?: unknown;
|
|
45
|
+
base?: unknown;
|
|
46
|
+
};
|
|
47
|
+
type NativeUpsertOptions = NativeUpdateOptions;
|
|
48
|
+
type NativeDeleteOptions = NativeUpdateOptions;
|
|
49
|
+
type NativeRestoreOptions = NativeWriteOptions & {
|
|
50
|
+
branch?: unknown;
|
|
51
|
+
};
|
|
52
|
+
type NativeDb = {
|
|
53
|
+
captureSnapshot?(): NativeReadResult | Promise<NativeReadResult>;
|
|
54
|
+
/** A thin session's transaction request, as its backend's client serves it. */
|
|
55
|
+
serveThinTransaction?(request: Uint8Array): NativeReadResult;
|
|
56
|
+
/** End the thin session's open transactions. */
|
|
57
|
+
releaseThinTransactions?(): NativeReadResult;
|
|
58
|
+
/** WASM settles its promise-shaped wait early once `cancelled` settles. */
|
|
59
|
+
waitForPendingWrites?(tier: string, cancelled?: Promise<void>,
|
|
60
|
+
/** WASM: wait as `waitForSync` (see `waitForSync` below). */
|
|
61
|
+
forSync?: boolean): NativeReadResult | Promise<NativeReadResult | void>;
|
|
62
|
+
/**
|
|
63
|
+
* NAPI: `waitForSync` for `writer`'s writes (a trusted session's author,
|
|
64
|
+
* or none for the database's own), failing also with a rejection of
|
|
65
|
+
* theirs that settled before and no wait reported.
|
|
66
|
+
*/
|
|
67
|
+
waitForSync?(tier: string, writer?: Uint8Array | null,
|
|
68
|
+
/** WASM: settling it stops the wait (napi ignores it). */
|
|
69
|
+
cancelled?: Promise<void>): NativeReadResult | Promise<NativeReadResult | void>;
|
|
70
|
+
close?(): void | boolean | Promise<void | boolean>;
|
|
71
|
+
/** Native foreground capabilities are bound to admission-time auth. */
|
|
72
|
+
rejectAuthUpdate?(): never;
|
|
73
|
+
isNativeForegroundClosed?(): boolean;
|
|
74
|
+
disconnectNativeUpstream?(): void;
|
|
75
|
+
reconnectNativeUpstream?(): void;
|
|
76
|
+
/** Tell the core Db what the host knows about its path to the server. */
|
|
77
|
+
setRemoteLinkHint?(state: string): void;
|
|
78
|
+
/** A fresh upstream link machine for this runtime's server WebSocket. */
|
|
79
|
+
createUpstreamLink?(seed: number): NativeUpstreamLink;
|
|
80
|
+
/** How many local commits still wait for the server's verdict. */
|
|
81
|
+
/** This store's uploads; see {@link UploadStatus}. */
|
|
82
|
+
uploadStatus?(): UploadStatus;
|
|
83
|
+
/** Ids of `table`'s rows with an undecided write; `null` when the host cannot tell. */
|
|
84
|
+
pendingUploadRows?(table: string): string[] | null;
|
|
85
|
+
/**
|
|
86
|
+
* A React Native foreground's scope store, deleted by its native relay
|
|
87
|
+
* (see `NativeForegroundDb.deleteNativeStore`), with the writes it dropped.
|
|
88
|
+
*/
|
|
89
|
+
deleteNativeStore?(): {
|
|
90
|
+
pendingUploads: number;
|
|
91
|
+
};
|
|
92
|
+
nativeConnectionStatus?(): {
|
|
93
|
+
configured: boolean;
|
|
94
|
+
explicitlyOffline: boolean;
|
|
95
|
+
connected: boolean;
|
|
96
|
+
/** The upstream refused the scope's credential, with its reason. */
|
|
97
|
+
authRejected?: string | null;
|
|
98
|
+
};
|
|
99
|
+
registerSchema(schema: Uint8Array, migrations?: Uint8Array): NativeDb;
|
|
100
|
+
beginTransaction(openTransactionId: string, kind: TransactionKind, author?: Uint8Array, attribution?: Uint8Array): void;
|
|
101
|
+
commitTransaction(openTransactionId: string, kind?: TransactionKind): Write;
|
|
102
|
+
rollbackTransaction(openTransactionId: string): void;
|
|
103
|
+
all(query: Uint8Array, opts: unknown, openTransactionId?: OpenTransactionId, author?: Uint8Array, claims?: Record<string, unknown>): NativeReadResult | Promise<NativeReadResult>;
|
|
104
|
+
admitLocalFirstSession?(token: string, appId: string, claimedAuthor: string): void;
|
|
105
|
+
setSessionClaims?(claims: Record<string, unknown> | undefined | null): void | Promise<void>;
|
|
106
|
+
setIdentityClaims?(author: Uint8Array, claims: Record<string, unknown> | undefined | null): void;
|
|
107
|
+
/** Native bindings answer synchronously; the browser binding resolves on the event loop. */
|
|
108
|
+
foregroundTxTimeHighWater?(): bigint | Promise<bigint>;
|
|
109
|
+
seedForegroundTxTimeHighWater?(highWater: bigint): void;
|
|
110
|
+
/** A pool whose single `drain()` reads every subscription that joined it. */
|
|
111
|
+
createSubscriptionPool?(): SubscriptionPool;
|
|
112
|
+
subscribe?(query: Uint8Array, opts: unknown, author?: Uint8Array, claims?: Record<string, unknown>): ReadableStream<unknown> | Subscription | PendingNativeOperation<ReadableStream<unknown> | Subscription>;
|
|
113
|
+
insert(table: string, cells: Uint8Array, options?: NativeInsertOptions): Write;
|
|
114
|
+
insertInTransaction(openTransactionId: OpenTransactionId, table: string, cells: Uint8Array, options?: NativeInsertOptions): Uint8Array;
|
|
115
|
+
update(table: string, rowId: Uint8Array, patch: Uint8Array, options?: NativeUpdateOptions): Write;
|
|
116
|
+
updateInTransaction(openTransactionId: OpenTransactionId, table: string, rowId: Uint8Array, patch: Uint8Array, options?: NativeUpdateOptions): void;
|
|
117
|
+
upsert(table: string, rowId: Uint8Array, cells: Uint8Array, options?: NativeUpsertOptions): Write;
|
|
118
|
+
upsertInTransaction(openTransactionId: OpenTransactionId, table: string, rowId: Uint8Array, cells: Uint8Array, options?: NativeUpsertOptions): void;
|
|
119
|
+
delete(table: string, rowId: Uint8Array, options?: NativeDeleteOptions): Write;
|
|
120
|
+
deleteInTransaction(openTransactionId: OpenTransactionId, table: string, rowId: Uint8Array, options?: NativeDeleteOptions): void;
|
|
121
|
+
restore(table: string, rowId: Uint8Array, cells: Uint8Array, options?: NativeRestoreOptions): Write;
|
|
122
|
+
restoreInTransaction(openTransactionId: OpenTransactionId, table: string, rowId: Uint8Array, cells: Uint8Array, options?: NativeRestoreOptions): void;
|
|
123
|
+
beginStreamingMutation?(table: string, rowId: Uint8Array, cells: Uint8Array, column: string, mutation?: StreamingMutationKind, author?: Uint8Array, attribution?: Uint8Array, updatedAtMs?: number, head?: unknown, base?: unknown, transaction?: OpenTransactionId): NativeStreamingMutation;
|
|
124
|
+
requestInsertPermissionAdvice?(table: string, cells: Uint8Array, author?: Uint8Array, claims?: Record<string, unknown>): NativePermissionAdviceResult;
|
|
125
|
+
requestReadPermissionAdvice?(table: string, rowId: Uint8Array, author?: Uint8Array, claims?: Record<string, unknown>): NativePermissionAdviceResult;
|
|
126
|
+
explainReadClauses?(table: string, rows: string[], author: Uint8Array, claims?: Record<string, unknown>): ExplainedRows;
|
|
127
|
+
requestUpdatePermissionAdvice?(table: string, rowId: Uint8Array, patch: Uint8Array, author?: Uint8Array, claims?: Record<string, unknown>): NativePermissionAdviceResult;
|
|
128
|
+
requestDeletePermissionAdvice?(table: string, rowId: Uint8Array, author?: Uint8Array, claims?: Record<string, unknown>): NativePermissionAdviceResult;
|
|
129
|
+
setTickScheduler(callback: ((urgency: "immediate" | "deferred") => void) | ((error: Error | null, urgency: string) => void)): void;
|
|
130
|
+
onMutationError(callback: (event: MutationErrorEvent) => void): void;
|
|
131
|
+
/**
|
|
132
|
+
* A durable browser store's writes to its backing storage started failing
|
|
133
|
+
* (`message`) or work again (`null`); only the browser WASM host has one.
|
|
134
|
+
*/
|
|
135
|
+
onStorageFailure?(callback: (message: string | null) => void): void;
|
|
136
|
+
/** A native host's upstream refused the credential; ticks keep running. */
|
|
137
|
+
onAuthRejected?(callback: (reason: string) => void): void;
|
|
138
|
+
/**
|
|
139
|
+
* A native host's upstream connection failed for another reason, or
|
|
140
|
+
* recovered (`null`); ticks keep running.
|
|
141
|
+
*/
|
|
142
|
+
onUpstreamFailure?(callback: (failure: {
|
|
143
|
+
reason: string;
|
|
144
|
+
retrying: boolean;
|
|
145
|
+
code?: string | null;
|
|
146
|
+
} | null) => void): void;
|
|
147
|
+
setNonDurableClient?(): void;
|
|
148
|
+
/** Exact wire features compiled into the native artifact backing this DB. */
|
|
149
|
+
wireFeatures?(): number;
|
|
150
|
+
setLargeValueStagingPolicy?(incomingBytesPerWindow: number, windowMs: number, maxAgeMs?: number | null): void;
|
|
151
|
+
evictExpiredStagedLargeValues?(): number | Promise<number>;
|
|
152
|
+
updateLargeValues?(table: string, rowId: Uint8Array, patch: Uint8Array, descriptors: unknown, updatedAtMs?: number | null): Write;
|
|
153
|
+
updateLargeValuesInTransaction?(openTransactionId: string, table: string, rowId: Uint8Array, patch: Uint8Array, descriptors: unknown, updatedAtMs?: number | null): void;
|
|
154
|
+
connectUpstream(): Transport | Promise<Transport>;
|
|
155
|
+
connectUpstreamWithSession?(protocolVersion: number, features: number, remoteNode: Uint8Array, remoteEpoch: bigint, localNode: Uint8Array, localEpoch: bigint): Transport | Promise<Transport>;
|
|
156
|
+
acceptSubscriber?(author: Uint8Array, claims: Record<string, unknown>, localEpoch?: bigint): Transport | Promise<Transport>;
|
|
157
|
+
acceptSubscriberWithSelfSignedProof?(claims: Record<string, unknown>, token: string, appId: string, claimedAuthor: string, localEpoch?: bigint): Transport | Promise<Transport>;
|
|
158
|
+
tick(): void | Promise<void>;
|
|
159
|
+
/** The slow-query report due now: one line per slow query shape. */
|
|
160
|
+
takeSlowQueryReport?(app?: string): string[];
|
|
161
|
+
/** Report query runs of at least `ms` milliseconds; 0 turns the log off. */
|
|
162
|
+
setSlowQueryThresholdMs?(ms: number): void;
|
|
163
|
+
/** Coalesce a subscription's undelivered deltas past `rows` changed rows. */
|
|
164
|
+
setSubscriptionBacklogRows?(rows: number): void;
|
|
165
|
+
close?(): void;
|
|
166
|
+
free?(): void;
|
|
167
|
+
};
|
|
168
|
+
type NativeStreamingMutation = {
|
|
169
|
+
push(chunk: Uint8Array): void | Promise<void>;
|
|
170
|
+
finish(): Write | Promise<Write>;
|
|
171
|
+
/** Stage the row mutation in the transaction the mutation began in. */
|
|
172
|
+
finishInTransaction?(): void | Promise<void>;
|
|
173
|
+
abort(): boolean | Promise<boolean>;
|
|
174
|
+
};
|
|
175
|
+
type NativePermissionAdviceRequest = {
|
|
176
|
+
readonly promise: Promise<PermissionAdvice>;
|
|
177
|
+
cancel(): void;
|
|
178
|
+
};
|
|
179
|
+
type NativePermissionAdviceResult = NativePermissionAdviceRequest | string | PendingNativePermissionAdvice;
|
|
180
|
+
type Subscription = {
|
|
181
|
+
readAll(): unknown[] | PendingNativeSubscriptionBatch;
|
|
182
|
+
drain?(): unknown[] | PendingNativeSubscriptionBatch;
|
|
183
|
+
/** Move this subscription into `pool`; returns the id its batches carry. */
|
|
184
|
+
joinPool?(pool: SubscriptionPool): number;
|
|
185
|
+
close?(): boolean;
|
|
186
|
+
};
|
|
187
|
+
/** One pooled subscription's events from a `SubscriptionPool.drain()`. */
|
|
188
|
+
type SubscriptionPoolBatch = {
|
|
189
|
+
id: number;
|
|
190
|
+
events: unknown[];
|
|
191
|
+
/** The subscription failed after `events`; it has left the pool. */
|
|
192
|
+
error?: {
|
|
193
|
+
message: string;
|
|
194
|
+
code: string;
|
|
195
|
+
} | null;
|
|
196
|
+
};
|
|
197
|
+
type SubscriptionPool = {
|
|
198
|
+
drain(): SubscriptionPoolBatch[];
|
|
199
|
+
};
|
|
200
|
+
type Write = {
|
|
201
|
+
readonly txId: string;
|
|
202
|
+
readonly payload: Uint8Array;
|
|
203
|
+
readonly rowId: Uint8Array;
|
|
204
|
+
wait(tier: string, observeOnly?: boolean): Promise<void>;
|
|
205
|
+
writeState(): unknown;
|
|
206
|
+
close?(): boolean;
|
|
207
|
+
};
|
|
208
|
+
export type Transport = {
|
|
209
|
+
close(): boolean;
|
|
210
|
+
recvWireFrames(): unknown[];
|
|
211
|
+
sendWireFrame(frame: Uint8Array): void;
|
|
212
|
+
sendWireFrames?(frames: readonly Uint8Array[]): void;
|
|
213
|
+
setOutboundScheduler?(callback: () => void): void;
|
|
214
|
+
clearOutboundScheduler?(): void;
|
|
215
|
+
routeAuxiliaryWireFrame?(frame: Uint8Array): unknown | Promise<unknown>;
|
|
216
|
+
recvAuxiliaryWireFrames?(maxFrames?: number, maxBytes?: number): unknown[];
|
|
217
|
+
auxiliaryReceiveTimeoutMs?(): number | null | undefined;
|
|
218
|
+
expireAuxiliaryReceive?(): void;
|
|
219
|
+
auxiliaryOutboundReady?(): boolean | Promise<void>;
|
|
220
|
+
/** Bounded redacted diagnostics emitted by the auxiliary chunk relay. */
|
|
221
|
+
takeAuxiliaryTrace?(): unknown[];
|
|
222
|
+
setAuxiliaryTraceEnabled?(enabled: boolean): void;
|
|
223
|
+
tick(): number | Promise<number>;
|
|
224
|
+
/**
|
|
225
|
+
* Why the core dropped this upstream link on its own (an `Error`-like
|
|
226
|
+
* value with the core `code`, e.g. `authority_changed`), or `null` while
|
|
227
|
+
* the link stands. Older bindings lack it.
|
|
228
|
+
*/
|
|
229
|
+
upstreamRefusal?(): unknown;
|
|
230
|
+
updateAuthenticatedClaims?(claims: Record<string, unknown>): void | Promise<void>;
|
|
231
|
+
free?(): void;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* The shared upstream link machine (`jazz::link` in the core). It decides when
|
|
235
|
+
* the server WebSocket connects, how long it backs off, when an outage is
|
|
236
|
+
* published and what a refused credential does; this adapter owns the socket
|
|
237
|
+
* and the timer and steps the machine with one JSON document per input.
|
|
238
|
+
*/
|
|
239
|
+
type NativeUpstreamLink = {
|
|
240
|
+
handle(nowMs: number, input: string): string;
|
|
241
|
+
};
|
|
242
|
+
type AuxiliaryRelayTrace = {
|
|
243
|
+
event: string;
|
|
244
|
+
role: "upstream" | "subscriber";
|
|
245
|
+
connection: string;
|
|
246
|
+
requestId: string;
|
|
247
|
+
remainingHops: number;
|
|
248
|
+
objectHash: string;
|
|
249
|
+
locatorFingerprint: string;
|
|
250
|
+
response?: "found" | "unavailable" | "retryable";
|
|
251
|
+
storageError?: "unavailable" | "locator-conflict" | "integrity" | "backend";
|
|
252
|
+
};
|
|
253
|
+
type PendingNativeOperation<T> = {
|
|
254
|
+
poll(): T | null | undefined;
|
|
255
|
+
cancel(): void;
|
|
256
|
+
setWake(callback: () => void): void;
|
|
257
|
+
};
|
|
258
|
+
export type SubscriptionOutputColumns = {
|
|
259
|
+
rootTable: string;
|
|
260
|
+
rootColumns: readonly ColumnDescriptor[];
|
|
261
|
+
};
|
|
262
|
+
export type RowState = {
|
|
263
|
+
table: string;
|
|
264
|
+
id: string;
|
|
265
|
+
values: Value[];
|
|
266
|
+
valuesByColumn?: Map<string, Value>;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* The slow-query log: queries whose runs take at least `thresholdMs`
|
|
270
|
+
* (default 50; 0 turns the log off) are reported with `console.warn`, one
|
|
271
|
+
* line per query shape, naming `appId`.
|
|
272
|
+
*/
|
|
273
|
+
export type SlowQueryLogOptions = {
|
|
274
|
+
appId?: string;
|
|
275
|
+
thresholdMs?: number;
|
|
276
|
+
/**
|
|
277
|
+
* What `console.warn` shows. `"full"` (the default, for servers' logs): the
|
|
278
|
+
* whole report line, with the query plan and SQL. `"summary"` (browsers,
|
|
279
|
+
* whose console end users see): the line without its plan and SQL, which
|
|
280
|
+
* go to `console.debug` (DevTools' "Verbose" level) instead.
|
|
281
|
+
*/
|
|
282
|
+
consoleDetail?: "full" | "summary";
|
|
283
|
+
};
|
|
284
|
+
/** @internal Split a slow-query report line into its summary and its plan and SQL. */
|
|
285
|
+
export declare function slowQuerySummary(line: string): string;
|
|
286
|
+
/**
|
|
287
|
+
* Where a {@link NativeRuntimeAdapter} is in its life. It only moves forward:
|
|
288
|
+
*
|
|
289
|
+
* - `open`: it admits work.
|
|
290
|
+
* - `quiesced`: a foreground lease handoff closed mutation admission to read
|
|
291
|
+
* the final HLC high-water (`quiesceForegroundTxTimeHighWater`).
|
|
292
|
+
* - `storageCleared`: its native store was deleted (`clearClientStorage`).
|
|
293
|
+
* - `closing`: `close()` is tearing it down.
|
|
294
|
+
* - `closed`: torn down, by `close()` or `discard()`.
|
|
295
|
+
*
|
|
296
|
+
* `quiesced` and `storageCleared` admit nothing, but leave the teardown to
|
|
297
|
+
* `close()`: neither reaches `closed` on its own.
|
|
298
|
+
*/
|
|
299
|
+
export type NativeRuntimePhase = "open" | "quiesced" | "storageCleared" | "closing" | "closed";
|
|
300
|
+
export declare class NativeRuntimeAdapter implements Runtime {
|
|
301
|
+
private readonly schema;
|
|
302
|
+
private readonly node;
|
|
303
|
+
private readonly auxiliaryReceiveDeadlines;
|
|
304
|
+
private readonly pendingNativeAdmissionCancels;
|
|
305
|
+
private readonly pendingNativeReadCancels;
|
|
306
|
+
private readonly db;
|
|
307
|
+
private readonly schemaBytes;
|
|
308
|
+
private readonly configBytes;
|
|
309
|
+
private readonly peerIdentity;
|
|
310
|
+
/** The principal of the first admitted credential naming one; see `assertCredentialKeepsPrincipal`. */
|
|
311
|
+
private upstreamPrincipal;
|
|
312
|
+
private readonly selfSignedClientProof;
|
|
313
|
+
private readonly scopeIsolatedRelay;
|
|
314
|
+
private readonly schemaHash;
|
|
315
|
+
private readonly trustedBackend;
|
|
316
|
+
private readonly transactionOwner;
|
|
317
|
+
private readonly pendingTxs;
|
|
318
|
+
private readonly completedTxs;
|
|
319
|
+
private readonly writes;
|
|
320
|
+
private readonly pendingLocalSettlements;
|
|
321
|
+
private readonly localSettlementListeners;
|
|
322
|
+
private readonly pendingStreamingMutations;
|
|
323
|
+
private streamingFinalization;
|
|
324
|
+
private readonly ownerRuntime;
|
|
325
|
+
/** The app named in slow-query reports (owner runtime only). */
|
|
326
|
+
private slowQueryApp;
|
|
327
|
+
private slowQueryConsoleDetail;
|
|
328
|
+
get preparationOwner(): object;
|
|
329
|
+
private readonly readAuthorizationHost;
|
|
330
|
+
private readonly subscriptions;
|
|
331
|
+
/** Pooled native subscriptions, by pool id: one native call reads them all. */
|
|
332
|
+
private subscriptionPool;
|
|
333
|
+
private readonly pooledSubscriptions;
|
|
334
|
+
private drainingSubscriptionPool;
|
|
335
|
+
private subscriptionPoolDirty;
|
|
336
|
+
private authFailureCallback;
|
|
337
|
+
private authRestoredCallback;
|
|
338
|
+
private mutationErrorCallback;
|
|
339
|
+
private serverTransportErrorCallback;
|
|
340
|
+
private readonly deliveredMutationErrors;
|
|
341
|
+
private serverTransport;
|
|
342
|
+
private peerUpstreamAttached;
|
|
343
|
+
private nonDurableClient;
|
|
344
|
+
private serverCarrier;
|
|
345
|
+
private readonly webSocket;
|
|
346
|
+
private serverCarrierPromise;
|
|
347
|
+
private serverConnectionAttempt;
|
|
348
|
+
private serverReplacementRetirement;
|
|
349
|
+
private serverTransportError;
|
|
350
|
+
private serverTransportErrorWaiters;
|
|
351
|
+
/**
|
|
352
|
+
* Why the durable worker cannot write its store now (storage full, most
|
|
353
|
+
* often), as relayed to this non-durable client. While set, its writes'
|
|
354
|
+
* `local` waits reject: the worker holds them only in memory.
|
|
355
|
+
*/
|
|
356
|
+
private localStorageFailure;
|
|
357
|
+
private readonly localStorageFailureWaiters;
|
|
358
|
+
private serverTransportWorkEpoch;
|
|
359
|
+
private serverTransportWorkWaiters;
|
|
360
|
+
private serverEndpointUrl;
|
|
361
|
+
private serverAuthJson;
|
|
362
|
+
private link;
|
|
363
|
+
private linkStatus;
|
|
364
|
+
private readonly linkInputs;
|
|
365
|
+
private linkStepping;
|
|
366
|
+
/** The attempt the link machine is waiting to hear from. */
|
|
367
|
+
private linkAttemptId;
|
|
368
|
+
private linkTimer;
|
|
369
|
+
/** Settles `serverCarrierPromise` while the link is not live. */
|
|
370
|
+
private linkConnection;
|
|
371
|
+
/** The error that ended the attempt the machine is deciding about. */
|
|
372
|
+
private linkFailure;
|
|
373
|
+
/**
|
|
374
|
+
* Why the core dropped the last admitted link on its own (see
|
|
375
|
+
* `Transport.upstreamRefusal`): the link is stopped with it until the next
|
|
376
|
+
* attempt, which an explicit reconnect starts.
|
|
377
|
+
*/
|
|
378
|
+
private upstreamRefusal;
|
|
379
|
+
private linkCloseReason;
|
|
380
|
+
/** The client keeps reconnecting through the current `serverTransportError`. */
|
|
381
|
+
private serverTransportErrorRetrying;
|
|
382
|
+
private serverTransportErrorAwaitsAuth;
|
|
383
|
+
private nativeAuthRefusalRenewable;
|
|
384
|
+
/** A native host reported a refusal whose admission it has not shown since. */
|
|
385
|
+
private nativeAuthRefused;
|
|
386
|
+
private nativeLinkEverConnected;
|
|
387
|
+
private nativeLinkPoll;
|
|
388
|
+
private firstLoadWaitSeen;
|
|
389
|
+
private readonly remoteLink;
|
|
390
|
+
private readonly linkStatusPublisher;
|
|
391
|
+
private readonly syncStatusPublisher;
|
|
392
|
+
/** The latest link failure, and the failing state it was recorded for. */
|
|
393
|
+
private lastFailure;
|
|
394
|
+
private failingAs;
|
|
395
|
+
private readonly pendingInboundServerFrames;
|
|
396
|
+
private serverInboundRouting;
|
|
397
|
+
private serverInboundProcessed;
|
|
398
|
+
private readonly peerTransportWorkListeners;
|
|
399
|
+
private readonly auxiliaryTraceListeners;
|
|
400
|
+
private readonly queryCoverageTraceListeners;
|
|
401
|
+
private peerTransportActivityEpoch;
|
|
402
|
+
private peerTransportProcessedActivityEpoch;
|
|
403
|
+
private coreTickScheduled;
|
|
404
|
+
private coreDeadlineTimer;
|
|
405
|
+
private coreDeadlineAt;
|
|
406
|
+
private coreTickAgain;
|
|
407
|
+
private coreOperation;
|
|
408
|
+
private readonly pendingTransportRetirements;
|
|
409
|
+
private serverPumpScheduled;
|
|
410
|
+
private serverPumpRunning;
|
|
411
|
+
private serverPumpAgain;
|
|
412
|
+
private serverConnectionGeneration;
|
|
413
|
+
/** See {@link NativeRuntimePhase}. Only {@link advancePhase} moves it. */
|
|
414
|
+
private phase;
|
|
415
|
+
private foregroundLeaseCapture;
|
|
416
|
+
private foregroundLeaseDraining;
|
|
417
|
+
private nextSubscriptionId;
|
|
418
|
+
static fromDb(db: NativeDb, schema: WasmSchema, node: Uint8Array, author: Uint8Array, sourceId: number, historyComplete: boolean, opts?: Pick<NonNullable<ConstructorParameters<typeof NativeRuntimeAdapter>[6]>, "selfSignedClientProof" | "scopeIsolatedRelay" | "slowQueryLog" | "subscriptionBacklogRows">): NativeRuntimeAdapter;
|
|
419
|
+
/** The migrations this runtime's app ships (see {@link ClientMigrations}). */
|
|
420
|
+
readonly migrations: ClientMigrations | undefined;
|
|
421
|
+
/** A view of `schema`, whose app ships `migrations` (see {@link ClientMigrations}). */
|
|
422
|
+
registerSchemaView(schema: WasmSchema, migrations?: ClientMigrations): NativeRuntimeAdapter;
|
|
423
|
+
constructor(Runtime: NativeDbConstructor | null, schema: WasmSchema, node: Uint8Array, author: Uint8Array, _sourceId: number, historyComplete: boolean, opts?: {
|
|
424
|
+
persistentPath?: string;
|
|
425
|
+
db?: NativeDb;
|
|
426
|
+
initialSyncFlushEvery?: number;
|
|
427
|
+
selfSignedClientProof?: NativeSelfSignedClientProof;
|
|
428
|
+
scopeIsolatedRelay?: boolean;
|
|
429
|
+
readAuthorizationHost?: ReadAuthorizationHost;
|
|
430
|
+
backendMode?: boolean;
|
|
431
|
+
/** The node a backend's SYSTEM provenance names, when not `node`. */
|
|
432
|
+
systemNode?: Uint8Array;
|
|
433
|
+
owner?: NativeRuntimeAdapter;
|
|
434
|
+
/** Where slow queries are reported (`console.warn`): see {@link SlowQueryLogOptions}. */
|
|
435
|
+
slowQueryLog?: SlowQueryLogOptions;
|
|
436
|
+
/** See {@link DbConfig.subscriptionBacklogRows}. */
|
|
437
|
+
subscriptionBacklogRows?: number;
|
|
438
|
+
/** How this runtime opens its server socket, when not the platform's own WebSocket. */
|
|
439
|
+
webSocket?: WebSocketConstructor;
|
|
440
|
+
/** The app's versions and migrations: see {@link ClientMigrations}. */
|
|
441
|
+
migrations?: ClientMigrations;
|
|
442
|
+
});
|
|
443
|
+
createPeerAuthority(): {
|
|
444
|
+
node: Uint8Array;
|
|
445
|
+
epoch: bigint;
|
|
446
|
+
features: number;
|
|
447
|
+
};
|
|
448
|
+
connectUpstreamPeer(authority?: {
|
|
449
|
+
node: Uint8Array;
|
|
450
|
+
epoch: bigint;
|
|
451
|
+
features: number;
|
|
452
|
+
}): Promise<Transport>;
|
|
453
|
+
onPeerTransportWork(listener: (requiresDistinctPass?: boolean) => void): () => void;
|
|
454
|
+
/** Subscribe to bounded, redacted auxiliary-relay diagnostics. */
|
|
455
|
+
onAuxiliaryTrace(listener: (entries: AuxiliaryRelayTrace[]) => void): () => void;
|
|
456
|
+
/** @internal Redacted browser-worker lifecycle diagnostics. */
|
|
457
|
+
onQueryCoverageTrace(listener: (entry: {
|
|
458
|
+
stage: "attach" | "covered";
|
|
459
|
+
peerActivityEpoch: number;
|
|
460
|
+
peerProcessedActivityEpoch: number;
|
|
461
|
+
}) => void): () => void;
|
|
462
|
+
private emitQueryCoverageTrace;
|
|
463
|
+
notifyPeerTransportActivity(): void;
|
|
464
|
+
progressPeerTransport(): Promise<void>;
|
|
465
|
+
retirePeerTransport(transport: Transport): Promise<void>;
|
|
466
|
+
setNonDurableClient(): void;
|
|
467
|
+
/** @internal Return the native HLC high-water for a foreground lease handoff. */
|
|
468
|
+
foregroundTxTimeHighWater(): bigint | Promise<bigint>;
|
|
469
|
+
/**
|
|
470
|
+
* Close mutation admission, drain already-started native work, then return
|
|
471
|
+
* the final HLC high-water. No synchronous or async write can mint after
|
|
472
|
+
* this resolves. The ordinary `close()` call remains responsible for final
|
|
473
|
+
* native disposal after the lease owner has durably recorded this value.
|
|
474
|
+
* @internal
|
|
475
|
+
*/
|
|
476
|
+
quiesceForegroundTxTimeHighWater(): Promise<bigint>;
|
|
477
|
+
/** Core ticks run while open, and while a lease handoff drains started work. */
|
|
478
|
+
private coreProgressAllowed;
|
|
479
|
+
private captureForegroundTxTimeHighWater;
|
|
480
|
+
/** @internal Seed a foreground lease high-water before the first local write. */
|
|
481
|
+
seedForegroundTxTimeHighWater(highWater: bigint): void;
|
|
482
|
+
/** Configure Jazz-owned upload rate and unpublished-tree expiry policy. */
|
|
483
|
+
setLargeValueStagingPolicy(incomingBytesPerWindow: number, windowMs: number, maxAgeMs?: number | null): void;
|
|
484
|
+
/** Run one idempotent expiry pass from an environment-owned timer. */
|
|
485
|
+
evictExpiredStagedLargeValues(): Promise<number>;
|
|
486
|
+
/**
|
|
487
|
+
* Serve a peer (a tab) whose replica is `identity`. A store configured as
|
|
488
|
+
* a user serves only its own identity: it uploads what its peers write as
|
|
489
|
+
* itself, so a peer of another identity is refused (`identity_mismatch`).
|
|
490
|
+
*/
|
|
491
|
+
acceptPeer(claims?: Record<string, unknown>, localEpoch?: bigint, identity?: Uint8Array): Promise<Transport>;
|
|
492
|
+
private runWhenCoreIdle;
|
|
493
|
+
/**
|
|
494
|
+
* Forward the host's view of the server link to the core Db, which owns the
|
|
495
|
+
* first-load wait of local-first reads. Hosts whose link lives in Rust derive it
|
|
496
|
+
* there and expose no setter.
|
|
497
|
+
*/
|
|
498
|
+
setRemoteLinkHint(state: RemoteLinkState): void;
|
|
499
|
+
/** Live reachability of this runtime's upstream server. */
|
|
500
|
+
remoteLinkState(): RemoteLinkState;
|
|
501
|
+
/** Observe changes of {@link remoteLinkState}. */
|
|
502
|
+
onRemoteLinkStateChange(listener: (state: RemoteLinkState) => void, signal: AbortSignal): void;
|
|
503
|
+
/**
|
|
504
|
+
* A native host owns its socket and exposes status only by request; each
|
|
505
|
+
* request also lets the relay report the link to the core read gate. Poll
|
|
506
|
+
* only while someone listens and this runtime has issued a read that may
|
|
507
|
+
* wait for the server (local first with `firstLoadRemoteWaitMs`), so apps
|
|
508
|
+
* that never wait pay nothing.
|
|
509
|
+
*/
|
|
510
|
+
private startNativeLinkPoll;
|
|
511
|
+
private noteFirstLoadWait;
|
|
512
|
+
private stopNativeLinkPoll;
|
|
513
|
+
/**
|
|
514
|
+
* Whether someone observes the link: a sync status listener, or a read
|
|
515
|
+
* gate listener once a read may wait for the server.
|
|
516
|
+
*/
|
|
517
|
+
private linkHasListeners;
|
|
518
|
+
private linkChanged;
|
|
519
|
+
/** The upstream link as the app sees it; see {@link LinkStatus}. */
|
|
520
|
+
upstreamLinkStatus(): LinkStatus;
|
|
521
|
+
/**
|
|
522
|
+
* Delete this runtime's local store, where its native host can (React
|
|
523
|
+
* Native's relay): `deleteClientStorage()`. The runtime is closed with it;
|
|
524
|
+
* the account stays, and the next client opens a fresh store.
|
|
525
|
+
*/
|
|
526
|
+
canClearClientStorage(): boolean;
|
|
527
|
+
clearClientStorage(): Promise<{
|
|
528
|
+
pendingUploads: number;
|
|
529
|
+
}>;
|
|
530
|
+
/** This client's uploads: pending, since when, and the server's refusals. */
|
|
531
|
+
uploadStatus(): UploadStatus;
|
|
532
|
+
/** Ids of `table`'s rows with a write the server has not decided yet; see {@link Runtime}. */
|
|
533
|
+
pendingUploadRows(table: string): readonly string[] | null;
|
|
534
|
+
/** The latest time the link failed, and how; it stays after the link recovers. */
|
|
535
|
+
lastLinkFailure(): LinkFailure | null;
|
|
536
|
+
/** Record a failure the first time the link is seen failing that way. */
|
|
537
|
+
private noteLinkFailure;
|
|
538
|
+
/** Observe changes of {@link upstreamLinkStatus} alone. */
|
|
539
|
+
onUpstreamLinkStatusChange(listener: (link: LinkStatus) => void, signal: AbortSignal): void;
|
|
540
|
+
/** Observe changes of {@link upstreamLinkStatus} and {@link uploadStatus}. */
|
|
541
|
+
onSyncStatusChange(listener: () => void, signal: AbortSignal): void;
|
|
542
|
+
private readSyncStatus;
|
|
543
|
+
private readRemoteLinkState;
|
|
544
|
+
waitForUpstreamServerConnection(): Promise<void>;
|
|
545
|
+
/** @internal */
|
|
546
|
+
isClosed(): boolean;
|
|
547
|
+
/** Whether this runtime admits no more work: any phase past `open`. */
|
|
548
|
+
private get closed();
|
|
549
|
+
/** Move to `next`, which must lie ahead of the current phase. */
|
|
550
|
+
private advancePhase;
|
|
551
|
+
/**
|
|
552
|
+
* Tear this runtime down, from any phase before `closing`: `open`,
|
|
553
|
+
* `quiesced` (a lease handoff read its high-water) or `storageCleared` (its
|
|
554
|
+
* store was deleted). Each of those stopped admitting work but left the
|
|
555
|
+
* teardown to this call. Once `closing`, a repeated call returns at once.
|
|
556
|
+
*/
|
|
557
|
+
close(): Promise<void>;
|
|
558
|
+
/**
|
|
559
|
+
* Discard a runtime whose persistence epoch is no longer usable: an `open`
|
|
560
|
+
* one stops at once and goes straight to `closed`, without native disposal.
|
|
561
|
+
* One past `open` already admits nothing, and `close()` finishes it.
|
|
562
|
+
*/
|
|
563
|
+
discard(): void;
|
|
564
|
+
/** Drop this runtime's work and links. The caller moved its phase past `open`. */
|
|
565
|
+
private closeRuntimeState;
|
|
566
|
+
/** Row identity/defaults only; physical validation and staging happen on insertion. */
|
|
567
|
+
previewInsert(table: string, values: InsertValues, objectId?: string): WasmRow;
|
|
568
|
+
insert(table: string, values: InsertValues, _writeContext?: string | null, objectId?: string | null): InsertResult;
|
|
569
|
+
streamingMutation(mutation: StreamingMutationKind, table: string, values: InsertValues, column: string, source: StreamingValueSource, writeContext?: string | null, objectId?: string | null): Promise<StreamingInsertResult>;
|
|
570
|
+
restore(table: string, objectId: string, values: InsertValues, writeContext?: string | null): InsertResult;
|
|
571
|
+
update(table: string, objectId: string, values: Record<string, Value>, writeContext?: string | null): MutationResult;
|
|
572
|
+
updateLargeValues(table: string, objectId: string, values: Record<string, Value>, descriptors: readonly unknown[], writeContext?: string | null): MutationResult;
|
|
573
|
+
upsert(table: string, objectId: string, values: InsertValues, writeContext?: string | null): MutationResult;
|
|
574
|
+
delete(table: string, objectId: string, writeContext?: string | null): MutationResult;
|
|
575
|
+
canInsertLocally(table: string, values: InsertValues, session?: Session): PermissionAdvice;
|
|
576
|
+
canReadLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
577
|
+
canUpdateLocally(table: string, objectId: string, values: Record<string, Value>, session?: Session): PermissionAdvice;
|
|
578
|
+
canDeleteLocally(table: string, objectId: string, session?: Session): PermissionAdvice;
|
|
579
|
+
private isScopedPermissionAdvice;
|
|
580
|
+
/** Backend-only conversion of a public session into the immutable native
|
|
581
|
+
* binding carried by one advice request. */
|
|
582
|
+
private delegatedPermissionAdviceSession;
|
|
583
|
+
/**
|
|
584
|
+
* The Inspector's `explain`: for each of `rows` of `table`, which clauses
|
|
585
|
+
* of its read policy (the arms of its top-level `Or`) hold for `session`.
|
|
586
|
+
* Backend only.
|
|
587
|
+
*/
|
|
588
|
+
explainReadClauses(table: string, rows: string[], session: Session): ExplainedRows;
|
|
589
|
+
requestInsertPermissionAdvice(table: string, values: InsertValues, session?: Session): Promise<PermissionAdvice>;
|
|
590
|
+
requestReadPermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
591
|
+
requestUpdatePermissionAdvice(table: string, objectId: string, values: Record<string, Value>, session?: Session): Promise<PermissionAdvice>;
|
|
592
|
+
requestDeletePermissionAdvice(table: string, objectId: string, session?: Session): Promise<PermissionAdvice>;
|
|
593
|
+
/**
|
|
594
|
+
* @internal Serve one of a thin session's transaction requests (its wire
|
|
595
|
+
* frame) as the backend's client linked to the core as that session
|
|
596
|
+
* (SPEC 8.14); the answer is the response frame. A commit answers once the
|
|
597
|
+
* core accepted it. One request at a time.
|
|
598
|
+
*/
|
|
599
|
+
serveThinTransaction(request: Uint8Array): Promise<Uint8Array>;
|
|
600
|
+
/** @internal End the thin session's open transactions: nothing of them reached the core. */
|
|
601
|
+
releaseThinTransactions(): Promise<void>;
|
|
602
|
+
captureSnapshot(): Promise<SnapshotRef>;
|
|
603
|
+
beginTransaction(kind: TransactionKind, id: OpenTransactionId, sessionJson?: string | null): OpenTransactionId;
|
|
604
|
+
hasStagedTransactionWrites(openTransactionId: OpenTransactionId): boolean | undefined;
|
|
605
|
+
commitTransaction(openTransactionId: OpenTransactionId): TxId;
|
|
606
|
+
waitForTransaction(txId: TxId | Promise<TxId>, tier: string, options?: RuntimeWriteWaitOptions): Promise<void>;
|
|
607
|
+
rollbackTransaction(openTransactionId: OpenTransactionId): Promise<boolean>;
|
|
608
|
+
query(queryJson: string, sessionJson?: string | null, tier?: string | null, optionsJson?: string | null): Promise<unknown>;
|
|
609
|
+
createSubscription(queryJson: string, sessionJson?: string | null, tier?: string | null, optionsJson?: string | null): number;
|
|
610
|
+
executeSubscription(handle: number, onUpdate: (delta: RuntimeSubscriptionDelta) => void): void;
|
|
611
|
+
executeSubscription(handle: number, onUpdate: (result: RuntimeSubscriptionDelta | Error) => void): void;
|
|
612
|
+
unsubscribe(handle: number): void;
|
|
613
|
+
connect(url: string, authJson: string): void;
|
|
614
|
+
private createUpstreamLink;
|
|
615
|
+
/** Step the shared link machine with `input` and carry out what it decides. */
|
|
616
|
+
private stepLink;
|
|
617
|
+
private runLinkAction;
|
|
618
|
+
/** Publish what the link's new status means for readers and subscriptions. */
|
|
619
|
+
private applyLinkStatus;
|
|
620
|
+
/** Make `serverCarrierPromise` wait for the link's next admission. */
|
|
621
|
+
private awaitLinkConnection;
|
|
622
|
+
/** Fail the pending connection, or resolve it with `carrier`. */
|
|
623
|
+
private settleLinkConnection;
|
|
624
|
+
private clearLinkTimer;
|
|
625
|
+
/** Report the end of `attempt` to the link machine, once. */
|
|
626
|
+
private endLinkAttempt;
|
|
627
|
+
/** Open the socket for link attempt `id` once its predecessors are retired. */
|
|
628
|
+
private runLinkAttempt;
|
|
629
|
+
/** One connection attempt: open, negotiate, admit, then report to the link. */
|
|
630
|
+
private startServerConnection;
|
|
631
|
+
private connectNegotiatedUpstream;
|
|
632
|
+
private nativeWireFeatures;
|
|
633
|
+
nativeUpstreamConfigured(): boolean;
|
|
634
|
+
disconnect(options?: {
|
|
635
|
+
rejectWaiters?: boolean;
|
|
636
|
+
}): Promise<void>;
|
|
637
|
+
updateAuth(authJson: string): Promise<void> | void;
|
|
638
|
+
/**
|
|
639
|
+
* The upstream principal is fixed once the server admits a credential that
|
|
640
|
+
* names one. A later credential, from a refresh or a reconnect, that names
|
|
641
|
+
* another principal is refused (`identity_mismatch`): the store, and in a
|
|
642
|
+
* browser worker every tab it serves, syncs as that principal, so a
|
|
643
|
+
* credential for someone else would link its replica upstream as them
|
|
644
|
+
* (#4476). A renewed credential for the same principal passes, and so does
|
|
645
|
+
* one that names no principal (signing out to `{}`). A credential the
|
|
646
|
+
* server refuses pins nothing.
|
|
647
|
+
*/
|
|
648
|
+
assertCredentialKeepsPrincipal(authJson: string): void;
|
|
649
|
+
/** Pin the principal of a credential the server just admitted. */
|
|
650
|
+
private pinUpstreamPrincipal;
|
|
651
|
+
onAuthFailure(callback: (reason: string) => void): void;
|
|
652
|
+
/**
|
|
653
|
+
* A native host reports a refused credential but not the admission after
|
|
654
|
+
* it: once its link is connected again with no refusal, whatever refused
|
|
655
|
+
* the credential holds no more, as the link machine's `live` says (#6049).
|
|
656
|
+
*/
|
|
657
|
+
private noteNativeAuthRestored;
|
|
658
|
+
onAuthRestored(callback: () => void): void;
|
|
659
|
+
onMutationError(callback: (event: MutationErrorEvent) => void): void;
|
|
660
|
+
/**
|
|
661
|
+
* A durable browser store's host reports `message` when writing the store
|
|
662
|
+
* to its backing storage starts failing, and `null` once it works again.
|
|
663
|
+
*/
|
|
664
|
+
onStorageFailure(callback: (message: string | null) => void): void;
|
|
665
|
+
/**
|
|
666
|
+
* Observe the first upstream transport failure, and whether the client
|
|
667
|
+
* keeps reconnecting through it. This has no fate semantics: it only wakes
|
|
668
|
+
* remote waits and subscriptions that are active in this runtime.
|
|
669
|
+
*/
|
|
670
|
+
onServerTransportError(callback: (error: Error, state: {
|
|
671
|
+
retrying: boolean;
|
|
672
|
+
}) => void): void;
|
|
673
|
+
/**
|
|
674
|
+
* The upstream failure remote waits fail on now, and whether the client
|
|
675
|
+
* keeps reconnecting through it; null while there is none. A durable
|
|
676
|
+
* worker relays this as state to the tabs attached to it.
|
|
677
|
+
*/
|
|
678
|
+
upstreamFailure(): {
|
|
679
|
+
error: Error;
|
|
680
|
+
retrying: boolean;
|
|
681
|
+
} | null;
|
|
682
|
+
/**
|
|
683
|
+
* The server refused a credential that nothing renews, so the link will
|
|
684
|
+
* not reconnect on its own: end the waits and remote subscriptions held
|
|
685
|
+
* for a new credential, as a terminal failure does (#3923). A later
|
|
686
|
+
* `updateAuth` reconnects as usual.
|
|
687
|
+
*/
|
|
688
|
+
endCredentialWait(): void;
|
|
689
|
+
/** Record a terminal error relayed from a durable browser-worker upstream. */
|
|
690
|
+
reportRemoteServerTransportError(error: Error, retrying?: boolean): void;
|
|
691
|
+
/** Clear a terminal remote-peer error after its replacement transport is ready. */
|
|
692
|
+
clearRemoteServerTransportError(): void;
|
|
693
|
+
/**
|
|
694
|
+
* The durable worker this client writes through reports that writing its
|
|
695
|
+
* store failed (`message`), or works again (`null`). Meanwhile the worker
|
|
696
|
+
* keeps the writes in memory and acknowledges none of them, so every
|
|
697
|
+
* `local` wait rejects with code `storage` instead of waiting.
|
|
698
|
+
*/
|
|
699
|
+
reportLocalStorageFailure(message: string | null): void;
|
|
700
|
+
private waitForLocalStorageFailure;
|
|
701
|
+
reportRemoteMutationError(event: MutationErrorEvent): void;
|
|
702
|
+
/**
|
|
703
|
+
* Wait until every write committed so far reaches `tier`. By default a
|
|
704
|
+
* reported outage fails the wait; `throughOutage` keeps it pending until a
|
|
705
|
+
* terminal failure, as a write's own Global wait does (#3923). `signal`
|
|
706
|
+
* ends the wait with its reason; the writes are unaffected.
|
|
707
|
+
*
|
|
708
|
+
* `sync` makes it `waitForSync`: it waits for the writes of the session
|
|
709
|
+
* `sync.writeContext` names (none: this runtime's own) and also fails with a rejection of theirs
|
|
710
|
+
* that settled before the call and nothing reported yet. Without it, as
|
|
711
|
+
* graceful shutdown waits, such earlier rejections are not this wait's.
|
|
712
|
+
*/
|
|
713
|
+
waitForPendingWrites(tier?: string, options?: {
|
|
714
|
+
throughOutage?: boolean;
|
|
715
|
+
signal?: AbortSignal;
|
|
716
|
+
sync?: {
|
|
717
|
+
writeContext?: string | null;
|
|
718
|
+
};
|
|
719
|
+
}): Promise<void>;
|
|
720
|
+
flushLocalSettlements(): Promise<void>;
|
|
721
|
+
/** Observe worker durability work, including fire-and-forget mutations. */
|
|
722
|
+
onLocalSettlementChange(listener: (pending: boolean) => void): () => void;
|
|
723
|
+
private deliverMutationError;
|
|
724
|
+
private trackLocalSettlement;
|
|
725
|
+
private finishInsert;
|
|
726
|
+
private finishMutation;
|
|
727
|
+
/** Refuse every mutation once a foreground lease begins clean handoff. */
|
|
728
|
+
private assertMutationAdmission;
|
|
729
|
+
private rowStateFromValues;
|
|
730
|
+
private readPlainRows;
|
|
731
|
+
/**
|
|
732
|
+
* Client runtimes consume server-scoped settled data locally. Only an
|
|
733
|
+
* explicitly configured serving host may select the policy-enforcing entry
|
|
734
|
+
* point, with a request session supplying its subject when present.
|
|
735
|
+
*/
|
|
736
|
+
private readRowsForContext;
|
|
737
|
+
private readRowsForContextAsync;
|
|
738
|
+
private startRowsForContext;
|
|
739
|
+
private nativeReadAuthor;
|
|
740
|
+
private nativeReadClaims;
|
|
741
|
+
/**
|
|
742
|
+
* Select the one native read context once, before lowering any surface.
|
|
743
|
+
* `SYSTEM_READ_SESSION` only becomes backend authority after the adapter has
|
|
744
|
+
* opened a trusted backend; its marker is never serialized to Rust. A
|
|
745
|
+
* transaction keeps its begin-bound public session when the caller omits a
|
|
746
|
+
* session on a later read.
|
|
747
|
+
*/
|
|
748
|
+
private nativeReadContext;
|
|
749
|
+
private subscribeForContext;
|
|
750
|
+
/** Drive the binding-owned coverage and hydration operation while the
|
|
751
|
+
* existing peer pump delivers whatever remote state it is waiting for. */
|
|
752
|
+
private awaitNativeRead;
|
|
753
|
+
/**
|
|
754
|
+
* A write with a session is that session's: the authority checks it as the
|
|
755
|
+
* session over a backend link, or as the link's own identity otherwise. A
|
|
756
|
+
* client's own session is the runtime itself, so it writes as the runtime.
|
|
757
|
+
* A trusted-serving host writes as its peer when no session is given.
|
|
758
|
+
*/
|
|
759
|
+
private trustedWriteIdentity;
|
|
760
|
+
/** External provenance is accepted only by the explicit backend runtime;
|
|
761
|
+
* ordinary/session callers continue through their normal identity path. */
|
|
762
|
+
private backendAttribution;
|
|
763
|
+
private awaitNativeOperation;
|
|
764
|
+
private clientSessionClaimsKey;
|
|
765
|
+
private installClientSessionClaims;
|
|
766
|
+
private ensureClientSessionClaims;
|
|
767
|
+
/**
|
|
768
|
+
* A strict remote query cannot materialize its local snapshot before an
|
|
769
|
+
* in-flight server handshake has either admitted its authority transport or
|
|
770
|
+
* failed. Relation-IR reads share this gate with other prepared reads.
|
|
771
|
+
*/
|
|
772
|
+
private waitForStrictRemoteQueryTransport;
|
|
773
|
+
/** Apply every worker frame already admitted before `all` creates its fresh
|
|
774
|
+
* coverage attachment. A queued receipt from an older usage site therefore
|
|
775
|
+
* cannot satisfy the new binding-owned read operation. */
|
|
776
|
+
private processPendingPeerActivityBeforeRead;
|
|
777
|
+
private attachLocalReadCoverageInBackground;
|
|
778
|
+
admitLocalFirstSession(session: Session, token: string, appId: string): void;
|
|
779
|
+
private applySessionClaims;
|
|
780
|
+
private table;
|
|
781
|
+
private currentTx;
|
|
782
|
+
private assertTransactionWriteIdentity;
|
|
783
|
+
private assertTransactionAttribution;
|
|
784
|
+
private pumpSubscriptions;
|
|
785
|
+
private nativeSubscriptionPool;
|
|
786
|
+
/**
|
|
787
|
+
* Read every pooled subscription in one native call. Events are applied in
|
|
788
|
+
* order per subscription; a drain requested while one is applying events
|
|
789
|
+
* (a callback that writes) runs after it, so no subscription sees a later
|
|
790
|
+
* batch before an earlier one finishes.
|
|
791
|
+
*/
|
|
792
|
+
private drainSubscriptionPool;
|
|
793
|
+
private applyPooledBatch;
|
|
794
|
+
private withPermissionAdviceTimeout;
|
|
795
|
+
/**
|
|
796
|
+
* Keep a permission request's cancel-safe core future on its owning JS
|
|
797
|
+
* thread, allowing the normal peer pump to deliver its authority receipt
|
|
798
|
+
* between polls. A missing or malformed native result fails closed.
|
|
799
|
+
*/
|
|
800
|
+
private awaitNativePermissionAdvice;
|
|
801
|
+
private clearCoreDeadline;
|
|
802
|
+
private scheduleCoreWake;
|
|
803
|
+
private scheduleCoreTick;
|
|
804
|
+
private runCoreTick;
|
|
805
|
+
/**
|
|
806
|
+
* Write the slow-query report due now with `console.warn`: each line is a
|
|
807
|
+
* query shape that held the database for at least the threshold, with its
|
|
808
|
+
* plan and the index that would likely make it fast. With the `"summary"`
|
|
809
|
+
* console detail, the plan and SQL go to `console.debug` instead.
|
|
810
|
+
*/
|
|
811
|
+
private reportSlowQueries;
|
|
812
|
+
private driveCoreTicks;
|
|
813
|
+
private drainTransportRetirements;
|
|
814
|
+
private startSubscriptionReader;
|
|
815
|
+
private readSubscription;
|
|
816
|
+
private applySubscriptionChunk;
|
|
817
|
+
private scheduleServerPump;
|
|
818
|
+
/** Run a pump without awaiting it. A failure becomes the connection's
|
|
819
|
+
* terminal error rather than an unhandled rejection that crashes Node. */
|
|
820
|
+
private startServerPump;
|
|
821
|
+
private notifyPeerTransportWork;
|
|
822
|
+
private hasUpstream;
|
|
823
|
+
private pumpServerTransport;
|
|
824
|
+
/**
|
|
825
|
+
* Stop the link when the core dropped `transport` on its own: nothing
|
|
826
|
+
* syncs over it, and a retry would be refused the same way (a server whose
|
|
827
|
+
* authority changed). Waits for the server fail with the refusal, and the
|
|
828
|
+
* link stays stopped until an explicit reconnect.
|
|
829
|
+
*/
|
|
830
|
+
private stopRefusedUpstream;
|
|
831
|
+
private routePendingInboundServerFrames;
|
|
832
|
+
private refreshAuxiliaryReceiveDeadline;
|
|
833
|
+
private flushAuxiliaryOutbound;
|
|
834
|
+
private publishAuxiliaryTrace;
|
|
835
|
+
private watchAuxiliaryOutbound;
|
|
836
|
+
private sendServerFrames;
|
|
837
|
+
private forgetServerTransportError;
|
|
838
|
+
private handleServerTransportError;
|
|
839
|
+
private finishServerConnectionAttempt;
|
|
840
|
+
private failRemoteSubscriptions;
|
|
841
|
+
private terminateSubscription;
|
|
842
|
+
private failSubscription;
|
|
843
|
+
private retireSubscriptionResources;
|
|
844
|
+
private deliverSubscriptionFailure;
|
|
845
|
+
/**
|
|
846
|
+
* The transport error a remote operation fails on. A write's Global wait
|
|
847
|
+
* (`throughOutage`) only fails on one the client stops retrying: an outage
|
|
848
|
+
* delays its settlement, it does not decide it (#3923).
|
|
849
|
+
*/
|
|
850
|
+
private serverTransportErrorFor;
|
|
851
|
+
private throwServerTransportErrorForTier;
|
|
852
|
+
private waitForServerTransportError;
|
|
853
|
+
private resolveServerTransportErrorWaiters;
|
|
854
|
+
private clearServerTransportErrorWaiters;
|
|
855
|
+
private waitForServerTransportWork;
|
|
856
|
+
private notifyServerTransportWork;
|
|
857
|
+
private resolveServerTransportWorkWaiters;
|
|
858
|
+
}
|
|
859
|
+
export declare function txIdFromContext(writeContext?: string | null): OpenTransactionId | undefined;
|
|
860
|
+
export type EncodedBranchView = {
|
|
861
|
+
head: unknown;
|
|
862
|
+
base?: unknown;
|
|
863
|
+
};
|
|
864
|
+
export declare function branchViewFromWriteContext(writeContext?: string | null): EncodedBranchView | undefined;
|
|
865
|
+
/**
|
|
866
|
+
* The explicit `$updatedAt` a write names (a backfill or import), or
|
|
867
|
+
* `null` for an ordinary write. An ordinary write carries no time: the
|
|
868
|
+
* replica's clock stamps it while it is pending, and the authority's clock
|
|
869
|
+
* stamps it when it accepts it, so its `$updatedAt` is the acceptance
|
|
870
|
+
* time, not the device clock at authoring (an offline edit synced later is
|
|
871
|
+
* stamped when it syncs), and a device with a fast clock is not refused
|
|
872
|
+
* for writing in the future. `$acceptedAt` is always the acceptance time,
|
|
873
|
+
* read from the version's accepted position, whatever `$updatedAt` says.
|
|
874
|
+
*/
|
|
875
|
+
export declare function effectiveUpdatedAtMs(writeContext?: string | null): number | null;
|
|
876
|
+
export declare function openTransactionIdFromOptions(optionsJson?: string | null): OpenTransactionId | undefined;
|
|
877
|
+
export declare function readOptions(tier?: string | null, includeDeleted?: boolean, optionsJson?: string | null): unknown;
|
|
878
|
+
export declare function assertSupportedReadOptions(tier?: string | null, optionsJson?: string | null): void;
|
|
879
|
+
export declare function queryIncludesDeleted(queryJson: string): boolean;
|
|
880
|
+
export declare function queryHasArraySubqueries(queryJson: string): boolean;
|
|
881
|
+
export declare function assertNoUnsupportedPermissionIntrospection(queryJson: string): void;
|
|
882
|
+
export declare function subscriptionOutputColumns(queryJson: string, schema: WasmSchema): SubscriptionOutputColumns;
|
|
883
|
+
export declare function addNestedOuterColumns(queryJson: string): string;
|
|
884
|
+
export declare function encodeQueryJson(queryJson: string, schema: WasmSchema): Uint8Array;
|
|
885
|
+
export declare function encodeCellsForRow(definition: {
|
|
886
|
+
columns: ColumnDescriptor[];
|
|
887
|
+
policies?: TablePolicies;
|
|
888
|
+
}, row: InsertValues, table?: string): Uint8Array;
|
|
889
|
+
export declare function encodeCellsForStreamingRow(definition: {
|
|
890
|
+
columns: ColumnDescriptor[];
|
|
891
|
+
policies?: TablePolicies;
|
|
892
|
+
}, row: InsertValues, streamedColumn: string, table?: string): Uint8Array;
|
|
893
|
+
export declare function encodeCellsForStreamingPatch(definition: {
|
|
894
|
+
columns: ColumnDescriptor[];
|
|
895
|
+
policies?: TablePolicies;
|
|
896
|
+
}, row: InsertValues, streamedColumn: string): Uint8Array;
|
|
897
|
+
export declare function encodeCellsForPatch(definition: {
|
|
898
|
+
columns: ColumnDescriptor[];
|
|
899
|
+
policies?: TablePolicies;
|
|
900
|
+
}, patch: Record<string, Value>): Uint8Array;
|
|
901
|
+
export declare function readRowBatches(payload: Uint8Array): NativeRowBatch[];
|
|
902
|
+
export declare function readRelationSnapshot(payload: Uint8Array): NativeRelationSubscriptionSnapshot;
|
|
903
|
+
export declare function rowsFromBatches(batches: NativeRowBatch[], schema: WasmSchema, projectedColumns?: readonly ColumnDescriptor[], nestedRowCarrier?: NestedRowCarrier): RowState[];
|
|
904
|
+
export declare function rowsFromRelationSnapshot(snapshot: NativeRelationSubscriptionSnapshot, schema: WasmSchema, projectedColumns?: readonly ColumnDescriptor[], nestedRowCarrier?: NestedRowCarrier): RowState[];
|
|
905
|
+
export declare function decodeSubscriptionDelta(delta: NativeSubscriptionDelta, schema: WasmSchema, reset?: boolean, outputColumns?: SubscriptionOutputColumns | null, coalesced?: boolean): RuntimeSubscriptionDelta;
|
|
906
|
+
export type NestedRowCarrier = "full-record" | "keyed-terminal";
|
|
907
|
+
export declare function decodeNestedRowBytes(columns: readonly ColumnDescriptor[], bytes: Uint8Array, descriptor?: DescriptorField[], carrier?: NestedRowCarrier): {
|
|
908
|
+
id?: string;
|
|
909
|
+
values: Value[];
|
|
910
|
+
valuesByColumn?: Map<string, Value>;
|
|
911
|
+
};
|
|
912
|
+
export declare function parseUuid(value: string): Uint8Array;
|
|
913
|
+
//# sourceMappingURL=native-runtime-adapter.d.ts.map
|