@pyric/cli 0.1.0-alpha.10 → 0.1.0-alpha.12
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/README.md.orig +2 -2
- package/dist/assurance/.generated/conformance-verdicts.d.ts +16 -0
- package/dist/assurance/.generated/conformance-verdicts.d.ts.map +1 -1
- package/dist/assurance/.generated/conformance-verdicts.js +16 -0
- package/dist/assurance/.generated/conformance-verdicts.js.map +1 -1
- package/dist/bridge/server/peer.d.ts +1 -1
- package/dist/bridge/server.d.ts +1 -1
- package/dist/bridge/server.js +1 -1
- package/dist/cli/index.d.ts +11 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +13 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init.d.ts +3 -3
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +5 -5
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/serve.d.ts.map +1 -1
- package/dist/cli/serve.js +8 -2
- package/dist/cli/serve.js.map +1 -1
- package/dist/conformance/.generated/can-i-use-browser.d.ts.map +1 -1
- package/dist/conformance/.generated/can-i-use-browser.js +1 -1
- package/dist/conformance/.generated/can-i-use-browser.js.map +1 -1
- package/dist/conformance/.generated/can-i-use.d.ts.map +1 -1
- package/dist/conformance/.generated/can-i-use.js +2 -2
- package/dist/conformance/.generated/can-i-use.js.map +1 -1
- package/dist/conformance/.generated/conformance-docs.d.ts +12 -0
- package/dist/conformance/.generated/conformance-docs.d.ts.map +1 -0
- package/dist/conformance/.generated/conformance-docs.js +2 -0
- package/dist/conformance/.generated/conformance-docs.js.map +1 -0
- package/dist/conformance/docs.d.ts +6 -0
- package/dist/conformance/docs.d.ts.map +1 -0
- package/dist/conformance/docs.js +6 -0
- package/dist/conformance/docs.js.map +1 -0
- package/dist/remote/index.d.ts.map +1 -1
- package/dist/remote/index.js +1 -0
- package/dist/remote/index.js.map +1 -1
- package/dist/serve/activity-guard.d.ts +4 -0
- package/dist/serve/activity-guard.d.ts.map +1 -0
- package/dist/serve/activity-guard.js +22 -0
- package/dist/serve/activity-guard.js.map +1 -0
- package/dist/serve/activity-route.d.ts +4 -0
- package/dist/serve/activity-route.d.ts.map +1 -0
- package/dist/serve/activity-route.js +157 -0
- package/dist/serve/activity-route.js.map +1 -0
- package/dist/serve/activity-warning.d.ts +4 -0
- package/dist/serve/activity-warning.d.ts.map +1 -0
- package/dist/serve/activity-warning.js +21 -0
- package/dist/serve/activity-warning.js.map +1 -0
- package/dist/serve/bridge-mount.d.ts +5 -0
- package/dist/serve/bridge-mount.d.ts.map +1 -1
- package/dist/serve/bridge-mount.js +1 -0
- package/dist/serve/bridge-mount.js.map +1 -1
- package/dist/serve/docs-ui/404.html +3 -0
- package/dist/serve/docs-ui/_astro/{_slug_.DPUwShm2.css → _slug_.CXh9yTP1.css} +1 -1
- package/dist/serve/docs-ui/_astro/_slug_.DUci-duz.css +1 -0
- package/dist/serve/docs-ui/docs/_rhythm/index.html +2 -1
- package/dist/serve/docs-ui/docs/agent/set-up-your-agent/index.html +3 -2
- package/dist/serve/docs-ui/docs/agent/set-up-your-agent.md +1 -1
- package/dist/serve/docs-ui/docs/agent/watch-and-review/index.html +2 -1
- package/dist/serve/docs-ui/docs/agent/work-with-an-agent/index.html +2 -1
- package/dist/serve/docs-ui/docs/ai-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/api-reference/index.html +51 -49
- package/dist/serve/docs-ui/docs/api-reference.md +3 -3
- package/dist/serve/docs-ui/docs/app-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/auth-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/ai-logic/index.html +18 -3
- package/dist/serve/docs-ui/docs/build/ai-logic.md +30 -2
- package/dist/serve/docs-ui/docs/build/authentication/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/authentication.md +1 -1
- package/dist/serve/docs-ui/docs/build/cloud-firestore/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/cloud-messaging/index.html +46 -2
- package/dist/serve/docs-ui/docs/build/cloud-messaging.md +56 -1
- package/dist/serve/docs-ui/docs/build/cloud-storage/index.html +2 -1
- package/dist/serve/docs-ui/docs/build/cloud-storage.md +1 -1
- package/dist/serve/docs-ui/docs/build/realtime-database/index.html +21 -3
- package/dist/serve/docs-ui/docs/build/realtime-database.md +25 -1
- package/dist/serve/docs-ui/docs/conformance-scores/index.html +2 -1
- package/dist/serve/docs-ui/docs/create-pyric-reference-api/index.html +61 -28
- package/dist/serve/docs-ui/docs/create-pyric-reference-api.md +65 -20
- package/dist/serve/docs-ui/docs/database-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/firestore-compat/index.html +6 -5
- package/dist/serve/docs-ui/docs/firestore-compat.md +4 -4
- package/dist/serve/docs-ui/docs/functions-rtdb-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/get-started/how-the-swap-works/index.html +2 -1
- package/dist/serve/docs-ui/docs/get-started/start-building/index.html +4 -3
- package/dist/serve/docs-ui/docs/get-started/start-building.md +2 -2
- package/dist/serve/docs-ui/docs/index.json +979 -579
- package/dist/serve/docs-ui/docs/messaging-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/observe/see-whats-happening/index.html +2 -1
- package/dist/serve/docs-ui/docs/observe/shape-your-data/index.html +2 -1
- package/dist/serve/docs-ui/docs/overview/index.html +2 -1
- package/dist/serve/docs-ui/docs/pyric-admin-app-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-admin-app-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-admin-auth-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-admin-auth-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-admin-database-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-admin-database-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-admin-firestore-reference-api/index.html +2503 -12
- package/dist/serve/docs-ui/docs/pyric-admin-firestore-reference-api.md +2219 -8
- package/dist/serve/docs-ui/docs/pyric-admin-messaging-reference-api/index.html +916 -0
- package/dist/serve/docs-ui/docs/pyric-admin-messaging-reference-api.md +706 -0
- package/dist/serve/docs-ui/docs/pyric-admin-storage-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-admin-storage-reference-api.md +2 -3
- package/dist/serve/docs-ui/docs/pyric-ai-reference-api/index.html +16 -11
- package/dist/serve/docs-ui/docs/pyric-ai-reference-api.md +14 -13
- package/dist/serve/docs-ui/docs/pyric-ai-scripting-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-ai-scripting-reference-api.md +2 -3
- package/dist/serve/docs-ui/docs/pyric-app-reference-api/index.html +7 -2
- package/dist/serve/docs-ui/docs/pyric-app-reference-api.md +5 -2
- package/dist/serve/docs-ui/docs/pyric-auth-reference-api/index.html +23 -12
- package/dist/serve/docs-ui/docs/pyric-auth-reference-api.md +15 -12
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-browser-reference-api/index.html +10 -48
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-browser-reference-api.md +11 -24
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-reference-api/index.html +87 -97
- package/dist/serve/docs-ui/docs/pyric-cli-assurance-reference-api.md +53 -65
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-client-reference-api/index.html +14 -15
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-client-reference-api.md +19 -28
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-cli-bridge-reference-api.md +2 -3
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-browser-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-browser-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-docs-reference-api/index.html +51 -0
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-docs-reference-api.md +36 -0
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-conformance-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-credentials-node-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-credentials-node-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-discover-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-discover-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-register-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-cli-register-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-cli-remote-reference-api/index.html +1067 -83
- package/dist/serve/docs-ui/docs/pyric-cli-remote-reference-api.md +1291 -160
- package/dist/serve/docs-ui/docs/pyric-cli-serve-worker-reference-api/index.html +253 -157
- package/dist/serve/docs-ui/docs/pyric-cli-serve-worker-reference-api.md +179 -85
- package/dist/serve/docs-ui/docs/pyric-cli-verify-reference-api/index.html +72 -7
- package/dist/serve/docs-ui/docs/pyric-cli-verify-reference-api.md +22 -7
- package/dist/serve/docs-ui/docs/pyric-cli-vite-reference-api/index.html +33 -12
- package/dist/serve/docs-ui/docs/pyric-cli-vite-reference-api.md +15 -12
- package/dist/serve/docs-ui/docs/pyric-database-reference-api/index.html +18 -17
- package/dist/serve/docs-ui/docs/pyric-database-reference-api.md +19 -22
- package/dist/serve/docs-ui/docs/pyric-firestore-reference-api/index.html +1512 -545
- package/dist/serve/docs-ui/docs/pyric-firestore-reference-api.md +1311 -316
- package/dist/serve/docs-ui/docs/pyric-messaging-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-messaging-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-messaging-sw-reference-api/index.html +69 -369
- package/dist/serve/docs-ui/docs/pyric-messaging-sw-reference-api.md +103 -216
- package/dist/serve/docs-ui/docs/pyric-rules-reference-api/index.html +10 -9
- package/dist/serve/docs-ui/docs/pyric-rules-reference-api.md +9 -10
- package/dist/serve/docs-ui/docs/pyric-sandbox-database-reference-api/index.html +8 -7
- package/dist/serve/docs-ui/docs/pyric-sandbox-database-reference-api.md +6 -7
- package/dist/serve/docs-ui/docs/pyric-sandbox-firestore-reference-api/index.html +10 -9
- package/dist/serve/docs-ui/docs/pyric-sandbox-firestore-reference-api.md +9 -10
- package/dist/serve/docs-ui/docs/pyric-sandbox-reference-api/index.html +371 -884
- package/dist/serve/docs-ui/docs/pyric-sandbox-reference-api.md +369 -883
- package/dist/serve/docs-ui/docs/pyric-storage-reference-api/index.html +25 -17
- package/dist/serve/docs-ui/docs/pyric-storage-reference-api.md +21 -19
- package/dist/serve/docs-ui/docs/pyric-ui-agents-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-ui-agents-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-ui-auth-hooks-reference-api/index.html +63 -776
- package/dist/serve/docs-ui/docs/pyric-ui-auth-hooks-reference-api.md +69 -510
- package/dist/serve/docs-ui/docs/pyric-ui-auth-reference-api/index.html +22 -21
- package/dist/serve/docs-ui/docs/pyric-ui-auth-reference-api.md +29 -30
- package/dist/serve/docs-ui/docs/pyric-ui-events-hooks-reference-api/index.html +15 -168
- package/dist/serve/docs-ui/docs/pyric-ui-events-hooks-reference-api.md +17 -87
- package/dist/serve/docs-ui/docs/pyric-ui-events-reference-api/index.html +6 -5
- package/dist/serve/docs-ui/docs/pyric-ui-events-reference-api.md +5 -6
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-hooks-reference-api/index.html +82 -970
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-hooks-reference-api.md +104 -479
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-reference-api/index.html +30 -29
- package/dist/serve/docs-ui/docs/pyric-ui-firestore-reference-api.md +54 -55
- package/dist/serve/docs-ui/docs/pyric-ui-primitives-reference-api/index.html +3 -2
- package/dist/serve/docs-ui/docs/pyric-ui-primitives-reference-api.md +1 -2
- package/dist/serve/docs-ui/docs/pyric-ui-rtdb-reference-api/index.html +5 -4
- package/dist/serve/docs-ui/docs/pyric-ui-rtdb-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/pyric-ui-rules-hooks-reference-api/index.html +9 -124
- package/dist/serve/docs-ui/docs/pyric-ui-rules-hooks-reference-api.md +7 -58
- package/dist/serve/docs-ui/docs/pyric-ui-rules-reference-api/index.html +24 -23
- package/dist/serve/docs-ui/docs/pyric-ui-rules-reference-api.md +31 -34
- package/dist/serve/docs-ui/docs/pyric-ui-storage-hooks-reference-api/index.html +104 -1385
- package/dist/serve/docs-ui/docs/pyric-ui-storage-hooks-reference-api.md +133 -817
- package/dist/serve/docs-ui/docs/pyric-ui-storage-reference-api/index.html +34 -33
- package/dist/serve/docs-ui/docs/pyric-ui-storage-reference-api.md +37 -38
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-hooks-reference-api/index.html +116 -1169
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-hooks-reference-api.md +142 -590
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-reference-api/index.html +4 -3
- package/dist/serve/docs-ui/docs/pyric-ui-traffic-reference-api.md +3 -4
- package/dist/serve/docs-ui/docs/rules-compat/index.html +34 -1
- package/dist/serve/docs-ui/docs/rules-compat.md +32 -0
- package/dist/serve/docs-ui/docs/secure/audit-your-rules/index.html +19 -2
- package/dist/serve/docs-ui/docs/secure/audit-your-rules.md +32 -0
- package/dist/serve/docs-ui/docs/secure/firestore-rules-limits/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/read-a-denial/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/rtdb-rules-in-typescript/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/rtdb-rules-in-typescript.md +1 -1
- package/dist/serve/docs-ui/docs/secure/rules-standard-library/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/secure-it-with-rules/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/simulate-and-lint/index.html +2 -1
- package/dist/serve/docs-ui/docs/secure/write-a-rules-test-suite/index.html +2 -1
- package/dist/serve/docs-ui/docs/ship/ship-to-production/index.html +2 -1
- package/dist/serve/docs-ui/docs/ship/test-in-node/index.html +2 -1
- package/dist/serve/docs-ui/docs/storage-compat/index.html +2 -1
- package/dist/serve/docs-ui/docs/trust/how-we-know-it-matches-firebase/index.html +2 -1
- package/dist/serve/docs-ui/docs/trust/versioning-and-compatibility/index.html +2 -1
- package/dist/serve/docs-ui/llms.txt +2 -1
- package/dist/serve/entries/ai.d.ts.map +1 -1
- package/dist/serve/entries/ai.js +39 -1
- package/dist/serve/entries/ai.js.map +1 -1
- package/dist/serve/entries/messaging-sw.d.ts.map +1 -1
- package/dist/serve/entries/messaging-sw.js +5 -1
- package/dist/serve/entries/messaging-sw.js.map +1 -1
- package/dist/serve/entries/messaging.d.ts.map +1 -1
- package/dist/serve/entries/messaging.js +7 -1
- package/dist/serve/entries/messaging.js.map +1 -1
- package/dist/serve/entries/runtime.d.ts.map +1 -1
- package/dist/serve/entries/runtime.js +20 -1
- package/dist/serve/entries/runtime.js.map +1 -1
- package/dist/serve/init-payload.d.ts +25 -0
- package/dist/serve/init-payload.d.ts.map +1 -1
- package/dist/serve/namespace.d.ts +39 -0
- package/dist/serve/namespace.d.ts.map +1 -1
- package/dist/serve/namespace.js +80 -1
- package/dist/serve/namespace.js.map +1 -1
- package/dist/serve/standalone-assets.d.ts +11 -9
- package/dist/serve/standalone-assets.d.ts.map +1 -1
- package/dist/serve/standalone-assets.js +6 -5
- package/dist/serve/standalone-assets.js.map +1 -1
- package/dist/serve/studio-ui/assets/{RulesCodeEditor-CXdSLKhO.js → RulesCodeEditor-CxVYcZXw.js} +1 -1
- package/dist/serve/studio-ui/assets/index-cpSfgQ7H.js +1218 -0
- package/dist/serve/studio-ui/assets/seed-DeuFKi4J.js +20 -0
- package/dist/serve/studio-ui/index.html +1 -1
- package/dist/serve/vite-plugin.d.ts +92 -15
- package/dist/serve/vite-plugin.d.ts.map +1 -1
- package/dist/serve/vite-plugin.js +281 -11
- package/dist/serve/vite-plugin.js.map +1 -1
- package/dist/serve/worker/activity-bootstrap.d.ts +8 -0
- package/dist/serve/worker/activity-bootstrap.d.ts.map +1 -0
- package/dist/serve/worker/activity-bootstrap.js +11 -0
- package/dist/serve/worker/activity-bootstrap.js.map +1 -0
- package/dist/serve/worker/client/connection.d.ts.map +1 -1
- package/dist/serve/worker/client/connection.js +17 -5
- package/dist/serve/worker/client/connection.js.map +1 -1
- package/dist/serve/worker/client/core.d.ts +2 -2
- package/dist/serve/worker/client/core.d.ts.map +1 -1
- package/dist/serve/worker/client/core.js +33 -5
- package/dist/serve/worker/client/core.js.map +1 -1
- package/dist/serve/worker/client/firestore-writes.d.ts.map +1 -1
- package/dist/serve/worker/client/firestore-writes.js +1 -0
- package/dist/serve/worker/client/firestore-writes.js.map +1 -1
- package/dist/serve/worker/client/messaging.d.ts +9 -1
- package/dist/serve/worker/client/messaging.d.ts.map +1 -1
- package/dist/serve/worker/client/messaging.js +15 -0
- package/dist/serve/worker/client/messaging.js.map +1 -1
- package/dist/serve/worker/client/studio.d.ts +10 -0
- package/dist/serve/worker/client/studio.d.ts.map +1 -1
- package/dist/serve/worker/client/studio.js +11 -0
- package/dist/serve/worker/client/studio.js.map +1 -1
- package/dist/serve/worker/durable-persistence.d.ts +12 -0
- package/dist/serve/worker/durable-persistence.d.ts.map +1 -0
- package/dist/serve/worker/durable-persistence.js +118 -0
- package/dist/serve/worker/durable-persistence.js.map +1 -0
- package/dist/serve/worker/entry.d.ts +7 -3
- package/dist/serve/worker/entry.d.ts.map +1 -1
- package/dist/serve/worker/entry.js +7 -3
- package/dist/serve/worker/entry.js.map +1 -1
- package/dist/serve/worker/host/core.d.ts +9 -5
- package/dist/serve/worker/host/core.d.ts.map +1 -1
- package/dist/serve/worker/host/core.js +34 -9
- package/dist/serve/worker/host/core.js.map +1 -1
- package/dist/serve/worker/host/dispatch.d.ts.map +1 -1
- package/dist/serve/worker/host/dispatch.js +9 -2
- package/dist/serve/worker/host/dispatch.js.map +1 -1
- package/dist/serve/worker/host/firestore-writes.d.ts.map +1 -1
- package/dist/serve/worker/host/firestore-writes.js +3 -2
- package/dist/serve/worker/host/firestore-writes.js.map +1 -1
- package/dist/serve/worker/host/studio.d.ts +1 -1
- package/dist/serve/worker/host/studio.d.ts.map +1 -1
- package/dist/serve/worker/host/studio.js +36 -1
- package/dist/serve/worker/host/studio.js.map +1 -1
- package/dist/serve/worker/host/subscriptions.d.ts.map +1 -1
- package/dist/serve/worker/host/subscriptions.js +27 -7
- package/dist/serve/worker/host/subscriptions.js.map +1 -1
- package/dist/serve/worker/host-context.d.ts +15 -0
- package/dist/serve/worker/host-context.d.ts.map +1 -1
- package/dist/serve/worker/host-context.js +10 -0
- package/dist/serve/worker/host-context.js.map +1 -1
- package/dist/serve/worker/host-messaging.d.ts.map +1 -1
- package/dist/serve/worker/host-messaging.js +9 -2
- package/dist/serve/worker/host-messaging.js.map +1 -1
- package/dist/serve/worker/index.d.ts +3 -2
- package/dist/serve/worker/index.d.ts.map +1 -1
- package/dist/serve/worker/index.js +4 -1
- package/dist/serve/worker/index.js.map +1 -1
- package/dist/serve/worker/protocol.d.ts +25 -3
- package/dist/serve/worker/protocol.d.ts.map +1 -1
- package/dist/serve/worker/protocol.js +2 -2
- package/dist/serve/worker/protocol.js.map +1 -1
- package/dist/serve/worker/serve-init.d.ts +23 -37
- package/dist/serve/worker/serve-init.d.ts.map +1 -1
- package/dist/serve/worker/serve-init.js +95 -172
- package/dist/serve/worker/serve-init.js.map +1 -1
- package/dist/vite.d.ts +4 -4
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +3 -3
- package/dist/vite.js.map +1 -1
- package/package.json +9 -4
- package/src/assurance/.generated/conformance-verdicts.ts +1090 -0
- package/src/assurance/attachment.ts +211 -0
- package/src/assurance/browser.ts +80 -0
- package/src/assurance/campaign.ts +496 -0
- package/src/assurance/capabilities.ts +446 -0
- package/src/assurance/cases.ts +43 -0
- package/src/assurance/index.ts +75 -0
- package/src/assurance/runner.ts +885 -0
- package/src/assurance/tool-names.ts +15 -0
- package/src/assurance/tools.ts +830 -0
- package/src/assurance/types.ts +352 -0
- package/src/assurance/validation.ts +434 -0
- package/src/bridge/client/bridge.ts +550 -0
- package/src/bridge/client/dispatch.ts +137 -0
- package/src/bridge/client.ts +45 -0
- package/src/bridge/protocol.ts +351 -0
- package/src/bridge/server/audit.ts +53 -0
- package/src/bridge/server/bridge.ts +597 -0
- package/src/bridge/server/headless.ts +160 -0
- package/src/bridge/server/json-schema-to-zod.ts +108 -0
- package/src/bridge/server/local-bridge.ts +66 -0
- package/src/bridge/server/logger.ts +50 -0
- package/src/bridge/server/mcp-contract.ts +93 -0
- package/src/bridge/server/mcp.ts +129 -0
- package/src/bridge/server/peer.ts +232 -0
- package/src/bridge/server/standalone.ts +347 -0
- package/src/bridge/server/tool-metadata.ts +99 -0
- package/src/bridge/server.ts +28 -0
- package/src/cli/can-i-use.ts +50 -0
- package/src/cli/cli.test.ts +493 -0
- package/src/cli/database-rules.ts +329 -0
- package/src/cli/dev-runner.ts +282 -0
- package/src/cli/firebase-json.ts +100 -0
- package/src/cli/firestore-indexes.ts +70 -0
- package/src/cli/index.ts +425 -0
- package/src/cli/init.ts +260 -0
- package/src/cli/mcp-proxy.ts +196 -0
- package/src/cli/parse-args.ts +80 -0
- package/src/cli/rules.ts +259 -0
- package/src/cli/scope.ts +67 -0
- package/src/cli/serve.ts +996 -0
- package/src/cli/service-commands.ts +73 -0
- package/src/cli/snapshot.ts +164 -0
- package/src/cli/storage-rules.ts +172 -0
- package/src/cli/verify.ts +416 -0
- package/src/conformance/.generated/can-i-use-browser.ts +113 -0
- package/src/conformance/.generated/can-i-use.ts +117 -0
- package/src/conformance/.generated/conformance-docs.ts +14 -0
- package/src/conformance/browser.ts +24 -0
- package/src/conformance/can-i-use-tool.ts +51 -0
- package/src/conformance/can-i-use.ts +18 -0
- package/src/conformance/docs.ts +8 -0
- package/src/conformance/index.ts +20 -0
- package/src/conformance/tools.ts +16 -0
- package/src/credentials/core/memoize-ttl.ts +142 -0
- package/src/credentials/core/types.ts +10 -0
- package/src/credentials/node/from-adc.ts +96 -0
- package/src/credentials/node/from-service-account.ts +133 -0
- package/src/credentials/node/index.ts +6 -0
- package/src/discover/concurrency.ts +127 -0
- package/src/discover/crawler-adapter.ts +142 -0
- package/src/discover/crawler.ts +1127 -0
- package/src/discover/credential-free.ts +27 -0
- package/src/discover/findCollectionGroup.ts +131 -0
- package/src/discover/firestore-source.ts +59 -0
- package/src/discover/index.ts +5 -0
- package/src/discover/merge.ts +523 -0
- package/src/discover/session.ts +402 -0
- package/src/discover/tools.ts +201 -0
- package/src/discover/types.ts +187 -0
- package/src/discover/wire.ts +324 -0
- package/src/functions-rtdb/child.ts +382 -0
- package/src/functions-rtdb/delivery.ts +7 -0
- package/src/functions-rtdb/discovery.ts +136 -0
- package/src/functions-rtdb/event.ts +64 -0
- package/src/functions-rtdb/execution.ts +111 -0
- package/src/functions-rtdb/in-memory-delivery.ts +40 -0
- package/src/functions-rtdb/project.ts +74 -0
- package/src/functions-rtdb/projection.ts +104 -0
- package/src/functions-rtdb/reference-pattern.ts +20 -0
- package/src/functions-rtdb/remote-delivery.ts +23 -0
- package/src/pkg-version.ts +49 -0
- package/src/register/esm-exports.ts +63 -0
- package/src/register/hooks.ts +30 -0
- package/src/register/index.ts +150 -0
- package/src/register/mapping.ts +33 -0
- package/src/remote/index.ts +1050 -0
- package/src/rtdb/crawl-snapshot.ts +118 -0
- package/src/rtdb/inspection.ts +137 -0
- package/src/rtdb/load-rules-document.ts +56 -0
- package/src/rtdb/rules-generation-tool.ts +38 -0
- package/src/rtdb/rules-json.ts +29 -0
- package/src/serve/activity-guard.ts +29 -0
- package/src/serve/activity-route.ts +164 -0
- package/src/serve/activity-warning.ts +26 -0
- package/src/serve/bridge-mount.ts +200 -0
- package/src/serve/bundler.ts +493 -0
- package/src/serve/capture-store.ts +65 -0
- package/src/serve/discovery.ts +199 -0
- package/src/serve/entries/ai.ts +292 -0
- package/src/serve/entries/app-backend.ts +4 -0
- package/src/serve/entries/app-client.ts +26 -0
- package/src/serve/entries/app-session-store.ts +47 -0
- package/src/serve/entries/app.ts +11 -0
- package/src/serve/entries/auth-helper-core.ts +181 -0
- package/src/serve/entries/auth-helper-dom.ts +134 -0
- package/src/serve/entries/auth-helper-runtime.ts +20 -0
- package/src/serve/entries/auth.ts +255 -0
- package/src/serve/entries/bridge-url.ts +31 -0
- package/src/serve/entries/database.ts +129 -0
- package/src/serve/entries/firestore.ts +232 -0
- package/src/serve/entries/init.ts +46 -0
- package/src/serve/entries/keepalive.ts +46 -0
- package/src/serve/entries/messaging-sw.ts +75 -0
- package/src/serve/entries/messaging.ts +96 -0
- package/src/serve/entries/runtime.ts +540 -0
- package/src/serve/entries/session-store.ts +97 -0
- package/src/serve/entries/storage.ts +92 -0
- package/src/serve/entries/tab-sync-wiring.ts +274 -0
- package/src/serve/entries/worker-runtime.ts +75 -0
- package/src/serve/init-payload.ts +42 -0
- package/src/serve/namespace.ts +675 -0
- package/src/serve/open-browser.ts +68 -0
- package/src/serve/rules.ts +272 -0
- package/src/serve/sandbox-marker.ts +31 -0
- package/src/serve/server.ts +428 -0
- package/src/serve/standalone-assets.ts +180 -0
- package/src/serve/state-store.ts +166 -0
- package/src/serve/studio/disk-project-store.ts +185 -0
- package/src/serve/studio/disk-workspace.ts +162 -0
- package/src/serve/studio/index.ts +20 -0
- package/src/serve/studio/routes.ts +237 -0
- package/src/serve/studio/store-types.ts +48 -0
- package/src/serve/studio/studio-storage.test.ts +289 -0
- package/src/serve/vite-plugin.ts +1102 -0
- package/src/serve/worker/activity-bootstrap.ts +24 -0
- package/src/serve/worker/client/admin-firestore.ts +38 -0
- package/src/serve/worker/client/ai.ts +124 -0
- package/src/serve/worker/client/auth.ts +489 -0
- package/src/serve/worker/client/connection.ts +202 -0
- package/src/serve/worker/client/core.ts +350 -0
- package/src/serve/worker/client/disconnect.ts +45 -0
- package/src/serve/worker/client/firestore-reads.ts +181 -0
- package/src/serve/worker/client/firestore-refs.ts +226 -0
- package/src/serve/worker/client/firestore-writes.ts +232 -0
- package/src/serve/worker/client/handles.ts +91 -0
- package/src/serve/worker/client/messaging.ts +119 -0
- package/src/serve/worker/client/presence.ts +174 -0
- package/src/serve/worker/client/rtdb.ts +311 -0
- package/src/serve/worker/client/rules.ts +63 -0
- package/src/serve/worker/client/service-worker-connection.ts +59 -0
- package/src/serve/worker/client/snapshots.ts +86 -0
- package/src/serve/worker/client/storage.ts +195 -0
- package/src/serve/worker/client/studio.ts +88 -0
- package/src/serve/worker/client.ts +57 -0
- package/src/serve/worker/durable-persistence.ts +137 -0
- package/src/serve/worker/entry.ts +179 -0
- package/src/serve/worker/host/admin-firestore.ts +88 -0
- package/src/serve/worker/host/connection.ts +179 -0
- package/src/serve/worker/host/core.ts +387 -0
- package/src/serve/worker/host/dispatch.ts +316 -0
- package/src/serve/worker/host/firestore-reads.ts +117 -0
- package/src/serve/worker/host/firestore-writes.ts +456 -0
- package/src/serve/worker/host/presence.ts +312 -0
- package/src/serve/worker/host/rtdb.ts +136 -0
- package/src/serve/worker/host/rules.ts +128 -0
- package/src/serve/worker/host/storage.ts +312 -0
- package/src/serve/worker/host/studio.ts +75 -0
- package/src/serve/worker/host/subscriptions.ts +238 -0
- package/src/serve/worker/host-ai.ts +165 -0
- package/src/serve/worker/host-auth.ts +469 -0
- package/src/serve/worker/host-context.ts +273 -0
- package/src/serve/worker/host-events.ts +94 -0
- package/src/serve/worker/host-messaging.ts +240 -0
- package/src/serve/worker/host.ts +47 -0
- package/src/serve/worker/index.ts +196 -0
- package/src/serve/worker/presence-timing.ts +15 -0
- package/src/serve/worker/protocol.ts +1112 -0
- package/src/serve/worker/serve-init.ts +606 -0
- package/src/serve/worker/service-worker-channel.ts +33 -0
- package/src/serve/worker/service-worker-relay.ts +86 -0
- package/src/serve/writer-lock.ts +53 -0
- package/src/verify/cases.ts +233 -0
- package/src/verify/fixture.ts +258 -0
- package/src/verify/index.ts +519 -0
- package/src/verify/tools.ts +108 -0
- package/src/version/compat-target.ts +17 -0
- package/src/vite.ts +17 -0
- package/dist/serve/docs-ui/docs/pyric-firestore-values-reference-api/index.html +0 -30
- package/dist/serve/docs-ui/docs/pyric-firestore-values-reference-api.md +0 -30
- package/dist/serve/studio-ui/assets/index-BvtQIpGn.js +0 -1211
- package/dist/serve/studio-ui/assets/seed-3DMedLL3.js +0 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
<!-- Generated from published package declarations via TypeDoc. Do not edit by hand; run bun run docs:api:generate. -->
|
|
1
|
+
<!-- Generated from published package declarations via TypeDoc. Rendered by the api-reference content loader. -->
|
|
3
2
|
|
|
4
3
|
## Interfaces
|
|
5
4
|
|
|
@@ -47,7 +46,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
47
46
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
48
47
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
49
48
|
|
|
50
|
-
`client.ts` imports only the value codec
|
|
49
|
+
`client.ts` imports only the value codec
|
|
50
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
51
51
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
52
52
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
53
53
|
|
|
@@ -119,7 +119,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
119
119
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
120
120
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
121
121
|
|
|
122
|
-
`client.ts` imports only the value codec
|
|
122
|
+
`client.ts` imports only the value codec
|
|
123
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
123
124
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
124
125
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
125
126
|
|
|
@@ -151,7 +152,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
151
152
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
152
153
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
153
154
|
|
|
154
|
-
`client.ts` imports only the value codec
|
|
155
|
+
`client.ts` imports only the value codec
|
|
156
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
155
157
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
156
158
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
157
159
|
|
|
@@ -366,7 +368,7 @@ Client-side UserCredential — mirrors `firebase/auth`.
|
|
|
366
368
|
|
|
367
369
|
| Property | Type |
|
|
368
370
|
| :------ | :------ |
|
|
369
|
-
| <a id="operationtype"></a> `operationType` | `"signIn"` \| `"
|
|
371
|
+
| <a id="operationtype"></a> `operationType` | `"signIn"` \| `"link"` \| `"reauthenticate"` |
|
|
370
372
|
| <a id="providerid-1"></a> `providerId` | `string` |
|
|
371
373
|
| <a id="user"></a> `user` | [`ClientUser`](#clientuser) |
|
|
372
374
|
|
|
@@ -514,7 +516,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
514
516
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
515
517
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
516
518
|
|
|
517
|
-
`client.ts` imports only the value codec
|
|
519
|
+
`client.ts` imports only the value codec
|
|
520
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
518
521
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
519
522
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
520
523
|
|
|
@@ -613,7 +616,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
613
616
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
614
617
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
615
618
|
|
|
616
|
-
`client.ts` imports only the value codec
|
|
619
|
+
`client.ts` imports only the value codec
|
|
620
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
617
621
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
618
622
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
619
623
|
|
|
@@ -761,7 +765,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
761
765
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
762
766
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
763
767
|
|
|
764
|
-
`client.ts` imports only the value codec
|
|
768
|
+
`client.ts` imports only the value codec
|
|
769
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
765
770
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
766
771
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
767
772
|
|
|
@@ -852,7 +857,7 @@ Wire form of a `UserCredential` returned by the sign-in/create ops.
|
|
|
852
857
|
|
|
853
858
|
| Property | Modifier | Type |
|
|
854
859
|
| :------ | :------ | :------ |
|
|
855
|
-
| <a id="operationtype-1"></a> `operationType` | `readonly` | `"signIn"` \| `"
|
|
860
|
+
| <a id="operationtype-1"></a> `operationType` | `readonly` | `"signIn"` \| `"link"` \| `"reauthenticate"` |
|
|
856
861
|
| <a id="providerid-4"></a> `providerId` | `readonly` | `string` |
|
|
857
862
|
| <a id="user-1"></a> `user` | `readonly` | [`SerializedUser`](#serializeduser) |
|
|
858
863
|
|
|
@@ -950,7 +955,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
950
955
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
951
956
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
952
957
|
|
|
953
|
-
`client.ts` imports only the value codec
|
|
958
|
+
`client.ts` imports only the value codec
|
|
959
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
954
960
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
955
961
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
956
962
|
|
|
@@ -990,7 +996,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
990
996
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
991
997
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
992
998
|
|
|
993
|
-
`client.ts` imports only the value codec
|
|
999
|
+
`client.ts` imports only the value codec
|
|
1000
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
994
1001
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
995
1002
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
996
1003
|
|
|
@@ -1106,7 +1113,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1106
1113
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1107
1114
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1108
1115
|
|
|
1109
|
-
`client.ts` imports only the value codec
|
|
1116
|
+
`client.ts` imports only the value codec
|
|
1117
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1110
1118
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1111
1119
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1112
1120
|
|
|
@@ -1145,7 +1153,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1145
1153
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1146
1154
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1147
1155
|
|
|
1148
|
-
`client.ts` imports only the value codec
|
|
1156
|
+
`client.ts` imports only the value codec
|
|
1157
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1149
1158
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1150
1159
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1151
1160
|
|
|
@@ -1183,7 +1192,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1183
1192
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1184
1193
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1185
1194
|
|
|
1186
|
-
`client.ts` imports only the value codec
|
|
1195
|
+
`client.ts` imports only the value codec
|
|
1196
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1187
1197
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1188
1198
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1189
1199
|
|
|
@@ -1196,11 +1206,11 @@ Exposed by `@pyric/cli`'s `./serve/worker` package export so Studio can
|
|
|
1196
1206
|
| Parameter | Type |
|
|
1197
1207
|
| :------ | :------ |
|
|
1198
1208
|
| `auth` | [`ClientAuth`](#clientauth) |
|
|
1199
|
-
| `request` | `CreateUserRequest` |
|
|
1209
|
+
| `request` | [`CreateUserRequest`](pyric-auth-reference-api.md#createuserrequest) |
|
|
1200
1210
|
|
|
1201
1211
|
#### Returns
|
|
1202
1212
|
|
|
1203
|
-
`Promise
|
|
1213
|
+
`Promise`\<[`AuthUserRecord`](pyric-auth-reference-api.md#authuserrecord)\>
|
|
1204
1214
|
|
|
1205
1215
|
***
|
|
1206
1216
|
|
|
@@ -1222,7 +1232,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1222
1232
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1223
1233
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1224
1234
|
|
|
1225
|
-
`client.ts` imports only the value codec
|
|
1235
|
+
`client.ts` imports only the value codec
|
|
1236
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1226
1237
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1227
1238
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1228
1239
|
|
|
@@ -1261,7 +1272,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1261
1272
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1262
1273
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1263
1274
|
|
|
1264
|
-
`client.ts` imports only the value codec
|
|
1275
|
+
`client.ts` imports only the value codec
|
|
1276
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1265
1277
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1266
1278
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1267
1279
|
|
|
@@ -1300,7 +1312,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1300
1312
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1301
1313
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1302
1314
|
|
|
1303
|
-
`client.ts` imports only the value codec
|
|
1315
|
+
`client.ts` imports only the value codec
|
|
1316
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1304
1317
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1305
1318
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1306
1319
|
|
|
@@ -1339,7 +1352,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1339
1352
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1340
1353
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1341
1354
|
|
|
1342
|
-
`client.ts` imports only the value codec
|
|
1355
|
+
`client.ts` imports only the value codec
|
|
1356
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1343
1357
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1344
1358
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1345
1359
|
|
|
@@ -1382,7 +1396,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1382
1396
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1383
1397
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1384
1398
|
|
|
1385
|
-
`client.ts` imports only the value codec
|
|
1399
|
+
`client.ts` imports only the value codec
|
|
1400
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1386
1401
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1387
1402
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1388
1403
|
|
|
@@ -1425,7 +1440,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1425
1440
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1426
1441
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1427
1442
|
|
|
1428
|
-
`client.ts` imports only the value codec
|
|
1443
|
+
`client.ts` imports only the value codec
|
|
1444
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1429
1445
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1430
1446
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1431
1447
|
|
|
@@ -1466,7 +1482,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1466
1482
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1467
1483
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1468
1484
|
|
|
1469
|
-
`client.ts` imports only the value codec
|
|
1485
|
+
`client.ts` imports only the value codec
|
|
1486
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1470
1487
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1471
1488
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1472
1489
|
|
|
@@ -1510,7 +1527,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1510
1527
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1511
1528
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1512
1529
|
|
|
1513
|
-
`client.ts` imports only the value codec
|
|
1530
|
+
`client.ts` imports only the value codec
|
|
1531
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1514
1532
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1515
1533
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1516
1534
|
|
|
@@ -1553,7 +1571,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1553
1571
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1554
1572
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1555
1573
|
|
|
1556
|
-
`client.ts` imports only the value codec
|
|
1574
|
+
`client.ts` imports only the value codec
|
|
1575
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1557
1576
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1558
1577
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1559
1578
|
|
|
@@ -1632,7 +1651,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1632
1651
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1633
1652
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1634
1653
|
|
|
1635
|
-
`client.ts` imports only the value codec
|
|
1654
|
+
`client.ts` imports only the value codec
|
|
1655
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1636
1656
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1637
1657
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1638
1658
|
|
|
@@ -1675,7 +1695,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1675
1695
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1676
1696
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1677
1697
|
|
|
1678
|
-
`client.ts` imports only the value codec
|
|
1698
|
+
`client.ts` imports only the value codec
|
|
1699
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1679
1700
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1680
1701
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1681
1702
|
|
|
@@ -1689,11 +1710,11 @@ Exposed by `@pyric/cli`'s `./serve/worker` package export so Studio can
|
|
|
1689
1710
|
| :------ | :------ |
|
|
1690
1711
|
| `auth` | [`ClientAuth`](#clientauth) |
|
|
1691
1712
|
| `uid` | `string` |
|
|
1692
|
-
| `request` | `UpdateUserRequest` |
|
|
1713
|
+
| `request` | [`UpdateUserRequest`](pyric-auth-reference-api.md#updateuserrequest) |
|
|
1693
1714
|
|
|
1694
1715
|
#### Returns
|
|
1695
1716
|
|
|
1696
|
-
`Promise
|
|
1717
|
+
`Promise`\<[`AuthUserRecord`](pyric-auth-reference-api.md#authuserrecord)\>
|
|
1697
1718
|
|
|
1698
1719
|
***
|
|
1699
1720
|
|
|
@@ -1737,7 +1758,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1737
1758
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1738
1759
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1739
1760
|
|
|
1740
|
-
`client.ts` imports only the value codec
|
|
1761
|
+
`client.ts` imports only the value codec
|
|
1762
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1741
1763
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1742
1764
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1743
1765
|
|
|
@@ -1775,7 +1797,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1775
1797
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1776
1798
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1777
1799
|
|
|
1778
|
-
`client.ts` imports only the value codec
|
|
1800
|
+
`client.ts` imports only the value codec
|
|
1801
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1779
1802
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1780
1803
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1781
1804
|
|
|
@@ -1971,7 +1994,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
1971
1994
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
1972
1995
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
1973
1996
|
|
|
1974
|
-
`client.ts` imports only the value codec
|
|
1997
|
+
`client.ts` imports only the value codec
|
|
1998
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
1975
1999
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
1976
2000
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
1977
2001
|
|
|
@@ -2011,7 +2035,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2011
2035
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2012
2036
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2013
2037
|
|
|
2014
|
-
`client.ts` imports only the value codec
|
|
2038
|
+
`client.ts` imports only the value codec
|
|
2039
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2015
2040
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2016
2041
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2017
2042
|
|
|
@@ -2049,7 +2074,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2049
2074
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2050
2075
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2051
2076
|
|
|
2052
|
-
`client.ts` imports only the value codec
|
|
2077
|
+
`client.ts` imports only the value codec
|
|
2078
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2053
2079
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2054
2080
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2055
2081
|
|
|
@@ -2154,7 +2180,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2154
2180
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2155
2181
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2156
2182
|
|
|
2157
|
-
`client.ts` imports only the value codec
|
|
2183
|
+
`client.ts` imports only the value codec
|
|
2184
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2158
2185
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2159
2186
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2160
2187
|
|
|
@@ -2192,7 +2219,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2192
2219
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2193
2220
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2194
2221
|
|
|
2195
|
-
`client.ts` imports only the value codec
|
|
2222
|
+
`client.ts` imports only the value codec
|
|
2223
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2196
2224
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2197
2225
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2198
2226
|
|
|
@@ -2233,7 +2261,7 @@ subscription. Useful for a late, snapshot-only consumer.
|
|
|
2233
2261
|
|
|
2234
2262
|
#### Returns
|
|
2235
2263
|
|
|
2236
|
-
`Promise`\<readonly `SandboxEvent`[]\>
|
|
2264
|
+
`Promise`\<readonly [`SandboxEvent`](pyric-sandbox-reference-api.md#sandboxevent)[]\>
|
|
2237
2265
|
|
|
2238
2266
|
***
|
|
2239
2267
|
|
|
@@ -2279,7 +2307,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2279
2307
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2280
2308
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2281
2309
|
|
|
2282
|
-
`client.ts` imports only the value codec
|
|
2310
|
+
`client.ts` imports only the value codec
|
|
2311
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2283
2312
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2284
2313
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2285
2314
|
|
|
@@ -2436,7 +2465,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2436
2465
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2437
2466
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2438
2467
|
|
|
2439
|
-
`client.ts` imports only the value codec
|
|
2468
|
+
`client.ts` imports only the value codec
|
|
2469
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2440
2470
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2441
2471
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2442
2472
|
|
|
@@ -2478,7 +2508,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2478
2508
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2479
2509
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2480
2510
|
|
|
2481
|
-
`client.ts` imports only the value codec
|
|
2511
|
+
`client.ts` imports only the value codec
|
|
2512
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2482
2513
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2483
2514
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2484
2515
|
|
|
@@ -2516,7 +2547,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2516
2547
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2517
2548
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2518
2549
|
|
|
2519
|
-
`client.ts` imports only the value codec
|
|
2550
|
+
`client.ts` imports only the value codec
|
|
2551
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2520
2552
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2521
2553
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2522
2554
|
|
|
@@ -2639,14 +2671,14 @@ Top-level mirror of `firebase/auth`'s `getIdTokenResult(user)`.
|
|
|
2639
2671
|
### getLens()
|
|
2640
2672
|
|
|
2641
2673
|
```ts
|
|
2642
|
-
function getLens():
|
|
2674
|
+
function getLens(): AuthLens;
|
|
2643
2675
|
```
|
|
2644
2676
|
|
|
2645
2677
|
The active default lens (read-only view), for Studio UI to reflect state.
|
|
2646
2678
|
|
|
2647
2679
|
#### Returns
|
|
2648
2680
|
|
|
2649
|
-
`
|
|
2681
|
+
[`AuthLens`](pyric-sandbox-reference-api.md#authlens-2)
|
|
2650
2682
|
|
|
2651
2683
|
***
|
|
2652
2684
|
|
|
@@ -2668,7 +2700,7 @@ Read an object's metadata (Pyric Studio inspector).
|
|
|
2668
2700
|
|
|
2669
2701
|
#### Returns
|
|
2670
2702
|
|
|
2671
|
-
`Promise
|
|
2703
|
+
`Promise`\<[`FullMetadata`](pyric-storage-reference-api.md#fullmetadata)\>
|
|
2672
2704
|
|
|
2673
2705
|
***
|
|
2674
2706
|
|
|
@@ -2693,7 +2725,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2693
2725
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2694
2726
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2695
2727
|
|
|
2696
|
-
`client.ts` imports only the value codec
|
|
2728
|
+
`client.ts` imports only the value codec
|
|
2729
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2697
2730
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2698
2731
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2699
2732
|
|
|
@@ -2734,7 +2767,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2734
2767
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2735
2768
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2736
2769
|
|
|
2737
|
-
`client.ts` imports only the value codec
|
|
2770
|
+
`client.ts` imports only the value codec
|
|
2771
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2738
2772
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2739
2773
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2740
2774
|
|
|
@@ -2775,7 +2809,7 @@ attempting user, on a throwaway branch (no live mutation).
|
|
|
2775
2809
|
|
|
2776
2810
|
#### Returns
|
|
2777
2811
|
|
|
2778
|
-
`Promise
|
|
2812
|
+
`Promise`\<[`SandboxSnapshot`](pyric-sandbox-reference-api.md#sandboxsnapshot)\>
|
|
2779
2813
|
|
|
2780
2814
|
***
|
|
2781
2815
|
|
|
@@ -2894,7 +2928,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2894
2928
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2895
2929
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2896
2930
|
|
|
2897
|
-
`client.ts` imports only the value codec
|
|
2931
|
+
`client.ts` imports only the value codec
|
|
2932
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2898
2933
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2899
2934
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2900
2935
|
|
|
@@ -2932,7 +2967,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2932
2967
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2933
2968
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2934
2969
|
|
|
2935
|
-
`client.ts` imports only the value codec
|
|
2970
|
+
`client.ts` imports only the value codec
|
|
2971
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2936
2972
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2937
2973
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2938
2974
|
|
|
@@ -2970,7 +3006,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
2970
3006
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
2971
3007
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
2972
3008
|
|
|
2973
|
-
`client.ts` imports only the value codec
|
|
3009
|
+
`client.ts` imports only the value codec
|
|
3010
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
2974
3011
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
2975
3012
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
2976
3013
|
|
|
@@ -3085,7 +3122,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3085
3122
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3086
3123
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3087
3124
|
|
|
3088
|
-
`client.ts` imports only the value codec
|
|
3125
|
+
`client.ts` imports only the value codec
|
|
3126
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3089
3127
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3090
3128
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3091
3129
|
|
|
@@ -3101,7 +3139,7 @@ Exposed by `@pyric/cli`'s `./serve/worker` package export so Studio can
|
|
|
3101
3139
|
|
|
3102
3140
|
#### Returns
|
|
3103
3141
|
|
|
3104
|
-
`Promise
|
|
3142
|
+
`Promise`\<[`AuthUserRecord`](pyric-auth-reference-api.md#authuserrecord)[]\>
|
|
3105
3143
|
|
|
3106
3144
|
***
|
|
3107
3145
|
|
|
@@ -3272,7 +3310,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3272
3310
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3273
3311
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3274
3312
|
|
|
3275
|
-
`client.ts` imports only the value codec
|
|
3313
|
+
`client.ts` imports only the value codec
|
|
3314
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3276
3315
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3277
3316
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3278
3317
|
|
|
@@ -3410,6 +3449,36 @@ history batches aren't coalescible, so it needs bounded backpressure first
|
|
|
3410
3449
|
|
|
3411
3450
|
***
|
|
3412
3451
|
|
|
3452
|
+
<a id="resetall"></a>
|
|
3453
|
+
|
|
3454
|
+
### resetAll()
|
|
3455
|
+
|
|
3456
|
+
```ts
|
|
3457
|
+
function resetAll(db: ClientDb): Promise<{
|
|
3458
|
+
errors: string[];
|
|
3459
|
+
}>;
|
|
3460
|
+
```
|
|
3461
|
+
|
|
3462
|
+
Sandbox-owned full reset (issue #359): `sandbox.resetAll()` on the worker.
|
|
3463
|
+
Clears the Firestore env, the signed-in session, and EVERY registered
|
|
3464
|
+
persistable service — auth users, the RTDB tree, storage objects. Resolves
|
|
3465
|
+
once the worker acks (all services finished clearing). This is the served
|
|
3466
|
+
counterpart of calling `sandbox.resetAll()` on an in-process sandbox.
|
|
3467
|
+
|
|
3468
|
+
#### Parameters
|
|
3469
|
+
|
|
3470
|
+
| Parameter | Type |
|
|
3471
|
+
| :------ | :------ |
|
|
3472
|
+
| `db` | [`ClientDb`](#clientdb) |
|
|
3473
|
+
|
|
3474
|
+
#### Returns
|
|
3475
|
+
|
|
3476
|
+
`Promise`\<\{
|
|
3477
|
+
`errors`: `string`[];
|
|
3478
|
+
\}\>
|
|
3479
|
+
|
|
3480
|
+
***
|
|
3481
|
+
|
|
3413
3482
|
<a id="rtdbchild"></a>
|
|
3414
3483
|
|
|
3415
3484
|
### rtdbChild()
|
|
@@ -3428,7 +3497,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3428
3497
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3429
3498
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3430
3499
|
|
|
3431
|
-
`client.ts` imports only the value codec
|
|
3500
|
+
`client.ts` imports only the value codec
|
|
3501
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3432
3502
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3433
3503
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3434
3504
|
|
|
@@ -3467,7 +3537,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3467
3537
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3468
3538
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3469
3539
|
|
|
3470
|
-
`client.ts` imports only the value codec
|
|
3540
|
+
`client.ts` imports only the value codec
|
|
3541
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3471
3542
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3472
3543
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3473
3544
|
|
|
@@ -3499,7 +3570,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3499
3570
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3500
3571
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3501
3572
|
|
|
3502
|
-
`client.ts` imports only the value codec
|
|
3573
|
+
`client.ts` imports only the value codec
|
|
3574
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3503
3575
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3504
3576
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3505
3577
|
|
|
@@ -3537,7 +3609,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3537
3609
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3538
3610
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3539
3611
|
|
|
3540
|
-
`client.ts` imports only the value codec
|
|
3612
|
+
`client.ts` imports only the value codec
|
|
3613
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3541
3614
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3542
3615
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3543
3616
|
|
|
@@ -3579,7 +3652,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3579
3652
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3580
3653
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3581
3654
|
|
|
3582
|
-
`client.ts` imports only the value codec
|
|
3655
|
+
`client.ts` imports only the value codec
|
|
3656
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3583
3657
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3584
3658
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3585
3659
|
|
|
@@ -3622,7 +3696,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3622
3696
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3623
3697
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3624
3698
|
|
|
3625
|
-
`client.ts` imports only the value codec
|
|
3699
|
+
`client.ts` imports only the value codec
|
|
3700
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3626
3701
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3627
3702
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3628
3703
|
|
|
@@ -3662,7 +3737,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3662
3737
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3663
3738
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3664
3739
|
|
|
3665
|
-
`client.ts` imports only the value codec
|
|
3740
|
+
`client.ts` imports only the value codec
|
|
3741
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3666
3742
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3667
3743
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3668
3744
|
|
|
@@ -3701,7 +3777,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3701
3777
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3702
3778
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3703
3779
|
|
|
3704
|
-
`client.ts` imports only the value codec
|
|
3780
|
+
`client.ts` imports only the value codec
|
|
3781
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3705
3782
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3706
3783
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3707
3784
|
|
|
@@ -3740,7 +3817,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3740
3817
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3741
3818
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3742
3819
|
|
|
3743
|
-
`client.ts` imports only the value codec
|
|
3820
|
+
`client.ts` imports only the value codec
|
|
3821
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3744
3822
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3745
3823
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3746
3824
|
|
|
@@ -3779,7 +3857,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3779
3857
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3780
3858
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3781
3859
|
|
|
3782
|
-
`client.ts` imports only the value codec
|
|
3860
|
+
`client.ts` imports only the value codec
|
|
3861
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3783
3862
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3784
3863
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3785
3864
|
|
|
@@ -3814,7 +3893,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3814
3893
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3815
3894
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3816
3895
|
|
|
3817
|
-
`client.ts` imports only the value codec
|
|
3896
|
+
`client.ts` imports only the value codec
|
|
3897
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3818
3898
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3819
3899
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3820
3900
|
|
|
@@ -3853,7 +3933,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3853
3933
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3854
3934
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3855
3935
|
|
|
3856
|
-
`client.ts` imports only the value codec
|
|
3936
|
+
`client.ts` imports only the value codec
|
|
3937
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3857
3938
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3858
3939
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3859
3940
|
|
|
@@ -3966,7 +4047,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
3966
4047
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
3967
4048
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
3968
4049
|
|
|
3969
|
-
`client.ts` imports only the value codec
|
|
4050
|
+
`client.ts` imports only the value codec
|
|
4051
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
3970
4052
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
3971
4053
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
3972
4054
|
|
|
@@ -4001,7 +4083,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4001
4083
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4002
4084
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4003
4085
|
|
|
4004
|
-
`client.ts` imports only the value codec
|
|
4086
|
+
`client.ts` imports only the value codec
|
|
4087
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4005
4088
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4006
4089
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4007
4090
|
|
|
@@ -4049,7 +4132,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4049
4132
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4050
4133
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4051
4134
|
|
|
4052
|
-
`client.ts` imports only the value codec
|
|
4135
|
+
`client.ts` imports only the value codec
|
|
4136
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4053
4137
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4054
4138
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4055
4139
|
|
|
@@ -4095,7 +4179,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4095
4179
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4096
4180
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4097
4181
|
|
|
4098
|
-
`client.ts` imports only the value codec
|
|
4182
|
+
`client.ts` imports only the value codec
|
|
4183
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4099
4184
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4100
4185
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4101
4186
|
|
|
@@ -4125,7 +4210,7 @@ Exposed by `@pyric/cli`'s `./serve/worker` package export so Studio can
|
|
|
4125
4210
|
### setLens()
|
|
4126
4211
|
|
|
4127
4212
|
```ts
|
|
4128
|
-
function setLens(lens:
|
|
4213
|
+
function setLens(lens: AuthLens): void;
|
|
4129
4214
|
```
|
|
4130
4215
|
|
|
4131
4216
|
Set the default auth lens applied to subsequent Firestore DATA ops from this
|
|
@@ -4141,7 +4226,7 @@ Auth ops are unaffected — they always operate the real session.
|
|
|
4141
4226
|
|
|
4142
4227
|
| Parameter | Type |
|
|
4143
4228
|
| :------ | :------ |
|
|
4144
|
-
| `lens` | `
|
|
4229
|
+
| `lens` | [`AuthLens`](pyric-sandbox-reference-api.md#authlens-2) |
|
|
4145
4230
|
|
|
4146
4231
|
#### Returns
|
|
4147
4232
|
|
|
@@ -4218,7 +4303,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4218
4303
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4219
4304
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4220
4305
|
|
|
4221
|
-
`client.ts` imports only the value codec
|
|
4306
|
+
`client.ts` imports only the value codec
|
|
4307
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4222
4308
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4223
4309
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4224
4310
|
|
|
@@ -4287,7 +4373,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4287
4373
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4288
4374
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4289
4375
|
|
|
4290
|
-
`client.ts` imports only the value codec
|
|
4376
|
+
`client.ts` imports only the value codec
|
|
4377
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4291
4378
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4292
4379
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4293
4380
|
|
|
@@ -4328,7 +4415,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4328
4415
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4329
4416
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4330
4417
|
|
|
4331
|
-
`client.ts` imports only the value codec
|
|
4418
|
+
`client.ts` imports only the value codec
|
|
4419
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4332
4420
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4333
4421
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4334
4422
|
|
|
@@ -4368,7 +4456,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4368
4456
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4369
4457
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4370
4458
|
|
|
4371
|
-
`client.ts` imports only the value codec
|
|
4459
|
+
`client.ts` imports only the value codec
|
|
4460
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4372
4461
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4373
4462
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4374
4463
|
|
|
@@ -4406,7 +4495,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4406
4495
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4407
4496
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4408
4497
|
|
|
4409
|
-
`client.ts` imports only the value codec
|
|
4498
|
+
`client.ts` imports only the value codec
|
|
4499
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4410
4500
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4411
4501
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4412
4502
|
|
|
@@ -4444,7 +4534,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4444
4534
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4445
4535
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4446
4536
|
|
|
4447
|
-
`client.ts` imports only the value codec
|
|
4537
|
+
`client.ts` imports only the value codec
|
|
4538
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4448
4539
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4449
4540
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4450
4541
|
|
|
@@ -4509,7 +4600,7 @@ backlog.
|
|
|
4509
4600
|
| Parameter | Type |
|
|
4510
4601
|
| :------ | :------ |
|
|
4511
4602
|
| `db` | [`ClientDb`](#clientdb) |
|
|
4512
|
-
| `callback` | (`events`: readonly `SandboxEvent`[]) => `void` |
|
|
4603
|
+
| `callback` | (`events`: readonly [`SandboxEvent`](pyric-sandbox-reference-api.md#sandboxevent)[]) => `void` |
|
|
4513
4604
|
|
|
4514
4605
|
#### Returns
|
|
4515
4606
|
|
|
@@ -4604,7 +4695,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4604
4695
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4605
4696
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4606
4697
|
|
|
4607
|
-
`client.ts` imports only the value codec
|
|
4698
|
+
`client.ts` imports only the value codec
|
|
4699
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4608
4700
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4609
4701
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4610
4702
|
|
|
@@ -4632,7 +4724,7 @@ Exposed by `@pyric/cli`'s `./serve/worker` package export so Studio can
|
|
|
4632
4724
|
```ts
|
|
4633
4725
|
function uploadBytes(
|
|
4634
4726
|
reference: ClientStorageReference,
|
|
4635
|
-
data:
|
|
4727
|
+
data: ArrayBuffer | Uint8Array<ArrayBufferLike> | Blob,
|
|
4636
4728
|
metadata?: ClientSettableMetadata): Promise<{
|
|
4637
4729
|
metadata: FullMetadata;
|
|
4638
4730
|
ref: ClientStorageReference;
|
|
@@ -4647,13 +4739,13 @@ Upload bytes at the reference's path (replaces existing content).
|
|
|
4647
4739
|
| Parameter | Type |
|
|
4648
4740
|
| :------ | :------ |
|
|
4649
4741
|
| `reference` | [`ClientStorageReference`](#clientstoragereference) |
|
|
4650
|
-
| `data` | `
|
|
4742
|
+
| `data` | `ArrayBuffer` \| `Uint8Array`\<`ArrayBufferLike`\> \| `Blob` |
|
|
4651
4743
|
| `metadata?` | [`ClientSettableMetadata`](#clientsettablemetadata) |
|
|
4652
4744
|
|
|
4653
4745
|
#### Returns
|
|
4654
4746
|
|
|
4655
4747
|
`Promise`\<\{
|
|
4656
|
-
`metadata`: `FullMetadata
|
|
4748
|
+
`metadata`: [`FullMetadata`](pyric-storage-reference-api.md#fullmetadata);
|
|
4657
4749
|
`ref`: [`ClientStorageReference`](#clientstoragereference);
|
|
4658
4750
|
\}\>
|
|
4659
4751
|
|
|
@@ -4680,7 +4772,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4680
4772
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4681
4773
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4682
4774
|
|
|
4683
|
-
`client.ts` imports only the value codec
|
|
4775
|
+
`client.ts` imports only the value codec
|
|
4776
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4684
4777
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4685
4778
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4686
4779
|
|
|
@@ -4720,7 +4813,8 @@ does NOT re-export `host.ts`/`entry.ts`:
|
|
|
4720
4813
|
the backend) — node/engine-heavy, never wanted in a page bundle.
|
|
4721
4814
|
- `entry.ts` references `SharedWorkerGlobalScope` and is esbuild-only.
|
|
4722
4815
|
|
|
4723
|
-
`client.ts` imports only the value codec
|
|
4816
|
+
`client.ts` imports only the value codec
|
|
4817
|
+
(`pyric/firestore/internal/value-codec`, a leaf internal seam)
|
|
4724
4818
|
and type-only `pyric/sandbox` (erased at build), so this entry stays free of
|
|
4725
4819
|
the ~10 MB rules/sandbox engine — safe to import from any browser app.
|
|
4726
4820
|
|