pyric 0.0.1 → 0.1.0-alpha.10
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 +216 -0
- package/README.md +179 -2
- package/README.md.orig +54 -0
- package/dist/ai/backend.d.ts +35 -0
- package/dist/ai/backend.d.ts.map +1 -0
- package/dist/ai/backend.js +42 -0
- package/dist/ai/backend.js.map +1 -0
- package/dist/ai/broker/broker.d.ts +65 -0
- package/dist/ai/broker/broker.d.ts.map +1 -0
- package/dist/ai/broker/broker.js +184 -0
- package/dist/ai/broker/broker.js.map +1 -0
- package/dist/ai/broker/index.d.ts +12 -0
- package/dist/ai/broker/index.d.ts.map +1 -0
- package/dist/ai/broker/index.js +11 -0
- package/dist/ai/broker/index.js.map +1 -0
- package/dist/ai/broker/openai-engine.d.ts +175 -0
- package/dist/ai/broker/openai-engine.d.ts.map +1 -0
- package/dist/ai/broker/openai-engine.js +502 -0
- package/dist/ai/broker/openai-engine.js.map +1 -0
- package/dist/ai/broker/scripted-engine.d.ts +44 -0
- package/dist/ai/broker/scripted-engine.d.ts.map +1 -0
- package/dist/ai/broker/scripted-engine.js +218 -0
- package/dist/ai/broker/scripted-engine.js.map +1 -0
- package/dist/ai/broker/synthesizer.d.ts +100 -0
- package/dist/ai/broker/synthesizer.d.ts.map +1 -0
- package/dist/ai/broker/synthesizer.js +278 -0
- package/dist/ai/broker/synthesizer.js.map +1 -0
- package/dist/ai/broker/types.d.ts +210 -0
- package/dist/ai/broker/types.d.ts.map +1 -0
- package/dist/ai/broker/types.js +20 -0
- package/dist/ai/broker/types.js.map +1 -0
- package/dist/ai/enums.d.ts +174 -0
- package/dist/ai/enums.d.ts.map +1 -0
- package/dist/ai/enums.js +155 -0
- package/dist/ai/enums.js.map +1 -0
- package/dist/ai/errors.d.ts +66 -0
- package/dist/ai/errors.d.ts.map +1 -0
- package/dist/ai/errors.js +100 -0
- package/dist/ai/errors.js.map +1 -0
- package/dist/ai/index.d.ts +31 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +27 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/instances.d.ts +15 -0
- package/dist/ai/instances.d.ts.map +1 -0
- package/dist/ai/instances.js +69 -0
- package/dist/ai/instances.js.map +1 -0
- package/dist/ai/internal.d.ts +13 -0
- package/dist/ai/internal.d.ts.map +1 -0
- package/dist/ai/internal.js +45 -0
- package/dist/ai/internal.js.map +1 -0
- package/dist/ai/models.d.ts +116 -0
- package/dist/ai/models.d.ts.map +1 -0
- package/dist/ai/models.js +213 -0
- package/dist/ai/models.js.map +1 -0
- package/dist/ai/request-helpers.d.ts +59 -0
- package/dist/ai/request-helpers.d.ts.map +1 -0
- package/dist/ai/request-helpers.js +157 -0
- package/dist/ai/request-helpers.js.map +1 -0
- package/dist/ai/response-helpers.d.ts +41 -0
- package/dist/ai/response-helpers.d.ts.map +1 -0
- package/dist/ai/response-helpers.js +204 -0
- package/dist/ai/response-helpers.js.map +1 -0
- package/dist/ai/sandbox-plane.d.ts +41 -0
- package/dist/ai/sandbox-plane.d.ts.map +1 -0
- package/dist/ai/sandbox-plane.js +159 -0
- package/dist/ai/sandbox-plane.js.map +1 -0
- package/dist/ai/schema.d.ts +105 -0
- package/dist/ai/schema.d.ts.map +1 -0
- package/dist/ai/schema.js +174 -0
- package/dist/ai/schema.js.map +1 -0
- package/dist/ai/scripting.d.ts +53 -0
- package/dist/ai/scripting.d.ts.map +1 -0
- package/dist/ai/scripting.js +73 -0
- package/dist/ai/scripting.js.map +1 -0
- package/dist/ai/target.d.ts +20 -0
- package/dist/ai/target.d.ts.map +1 -0
- package/dist/ai/target.js +29 -0
- package/dist/ai/target.js.map +1 -0
- package/dist/ai/types.d.ts +400 -0
- package/dist/ai/types.d.ts.map +1 -0
- package/dist/ai/types.js +10 -0
- package/dist/ai/types.js.map +1 -0
- package/dist/app/diagnostics.d.ts +29 -0
- package/dist/app/diagnostics.d.ts.map +1 -0
- package/dist/app/diagnostics.js +88 -0
- package/dist/app/diagnostics.js.map +1 -0
- package/dist/app/index.d.ts +7 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/app/index.js +5 -0
- package/dist/app/index.js.map +1 -0
- package/dist/app/internal.d.ts +11 -0
- package/dist/app/internal.d.ts.map +1 -0
- package/dist/app/internal.js +18 -0
- package/dist/app/internal.js.map +1 -0
- package/dist/app/options.d.ts +3 -0
- package/dist/app/options.d.ts.map +1 -0
- package/dist/app/options.js +19 -0
- package/dist/app/options.js.map +1 -0
- package/dist/app/register.d.ts +4 -0
- package/dist/app/register.d.ts.map +1 -0
- package/dist/app/register.js +35 -0
- package/dist/app/register.js.map +1 -0
- package/dist/app/registry.d.ts +12 -0
- package/dist/app/registry.d.ts.map +1 -0
- package/dist/app/registry.js +147 -0
- package/dist/app/registry.js.map +1 -0
- package/dist/app/runtime.d.ts +18 -0
- package/dist/app/runtime.d.ts.map +1 -0
- package/dist/app/runtime.js +119 -0
- package/dist/app/runtime.js.map +1 -0
- package/dist/app/types.d.ts +21 -0
- package/dist/app/types.d.ts.map +1 -0
- package/dist/app/types.js +2 -0
- package/dist/app/types.js.map +1 -0
- package/dist/auth/action-code-url.d.ts +70 -0
- package/dist/auth/action-code-url.d.ts.map +1 -0
- package/dist/auth/action-code-url.js +124 -0
- package/dist/auth/action-code-url.js.map +1 -0
- package/dist/auth/action-codes.d.ts +201 -0
- package/dist/auth/action-codes.d.ts.map +1 -0
- package/dist/auth/action-codes.js +355 -0
- package/dist/auth/action-codes.js.map +1 -0
- package/dist/auth/auth-errors.d.ts +21 -0
- package/dist/auth/auth-errors.d.ts.map +1 -0
- package/dist/auth/auth-errors.js +23 -0
- package/dist/auth/auth-errors.js.map +1 -0
- package/dist/auth/config-tokens.d.ts +90 -0
- package/dist/auth/config-tokens.d.ts.map +1 -0
- package/dist/auth/config-tokens.js +86 -0
- package/dist/auth/config-tokens.js.map +1 -0
- package/dist/auth/credentials.d.ts +140 -0
- package/dist/auth/credentials.d.ts.map +1 -0
- package/dist/auth/credentials.js +194 -0
- package/dist/auth/credentials.js.map +1 -0
- package/dist/auth/email-link.d.ts +91 -0
- package/dist/auth/email-link.d.ts.map +1 -0
- package/dist/auth/email-link.js +172 -0
- package/dist/auth/email-link.js.map +1 -0
- package/dist/auth/enums.d.ts +210 -0
- package/dist/auth/enums.d.ts.map +1 -0
- package/dist/auth/enums.js +206 -0
- package/dist/auth/enums.js.map +1 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +3 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/instances.d.ts +14 -0
- package/dist/auth/instances.d.ts.map +1 -0
- package/dist/auth/instances.js +95 -0
- package/dist/auth/instances.js.map +1 -0
- package/dist/auth/linking.d.ts +93 -0
- package/dist/auth/linking.d.ts.map +1 -0
- package/dist/auth/linking.js +189 -0
- package/dist/auth/linking.js.map +1 -0
- package/dist/auth/modular.d.ts +22 -0
- package/dist/auth/modular.d.ts.map +1 -0
- package/dist/auth/modular.js +18 -0
- package/dist/auth/modular.js.map +1 -0
- package/dist/auth/password-policy.d.ts +60 -0
- package/dist/auth/password-policy.d.ts.map +1 -0
- package/dist/auth/password-policy.js +68 -0
- package/dist/auth/password-policy.js.map +1 -0
- package/dist/auth/providers.d.ts +153 -0
- package/dist/auth/providers.d.ts.map +1 -0
- package/dist/auth/providers.js +207 -0
- package/dist/auth/providers.js.map +1 -0
- package/dist/auth/reauth.d.ts +73 -0
- package/dist/auth/reauth.d.ts.map +1 -0
- package/dist/auth/reauth.js +148 -0
- package/dist/auth/reauth.js.map +1 -0
- package/dist/auth/sandbox/driver.d.ts +51 -0
- package/dist/auth/sandbox/driver.d.ts.map +1 -0
- package/dist/auth/sandbox/driver.js +88 -0
- package/dist/auth/sandbox/driver.js.map +1 -0
- package/dist/auth/sandbox/persistence.d.ts +7 -0
- package/dist/auth/sandbox/persistence.d.ts.map +1 -0
- package/dist/auth/sandbox/persistence.js +121 -0
- package/dist/auth/sandbox/persistence.js.map +1 -0
- package/dist/auth/sandbox/project-store.d.ts +15 -0
- package/dist/auth/sandbox/project-store.d.ts.map +1 -0
- package/dist/auth/sandbox/project-store.js +17 -0
- package/dist/auth/sandbox/project-store.js.map +1 -0
- package/dist/auth/sandbox-auth-flow.d.ts +173 -0
- package/dist/auth/sandbox-auth-flow.d.ts.map +1 -0
- package/dist/auth/sandbox-auth-flow.js +165 -0
- package/dist/auth/sandbox-auth-flow.js.map +1 -0
- package/dist/auth/sandbox-backend-types.d.ts +197 -0
- package/dist/auth/sandbox-backend-types.d.ts.map +1 -0
- package/dist/auth/sandbox-backend-types.js +18 -0
- package/dist/auth/sandbox-backend-types.js.map +1 -0
- package/dist/auth/sandbox-backend.d.ts +811 -0
- package/dist/auth/sandbox-backend.d.ts.map +1 -0
- package/dist/auth/sandbox-backend.js +2007 -0
- package/dist/auth/sandbox-backend.js.map +1 -0
- package/dist/auth/sandbox-credential-validators.d.ts +30 -0
- package/dist/auth/sandbox-credential-validators.d.ts.map +1 -0
- package/dist/auth/sandbox-credential-validators.js +47 -0
- package/dist/auth/sandbox-credential-validators.js.map +1 -0
- package/dist/auth/sandbox-token.d.ts +24 -0
- package/dist/auth/sandbox-token.d.ts.map +1 -0
- package/dist/auth/sandbox-token.js +32 -0
- package/dist/auth/sandbox-token.js.map +1 -0
- package/dist/auth/sign-in.d.ts +14 -0
- package/dist/auth/sign-in.d.ts.map +1 -0
- package/dist/auth/sign-in.js +140 -0
- package/dist/auth/sign-in.js.map +1 -0
- package/dist/auth/target.d.ts +29 -0
- package/dist/auth/target.d.ts.map +1 -0
- package/dist/auth/target.js +23 -0
- package/dist/auth/target.js.map +1 -0
- package/dist/auth/tokens.d.ts +54 -0
- package/dist/auth/tokens.d.ts.map +1 -0
- package/dist/auth/tokens.js +142 -0
- package/dist/auth/tokens.js.map +1 -0
- package/dist/auth/types.d.ts +283 -0
- package/dist/auth/types.d.ts.map +1 -0
- package/dist/auth/types.js +24 -0
- package/dist/auth/types.js.map +1 -0
- package/dist/auth/user-lifecycle.d.ts +17 -0
- package/dist/auth/user-lifecycle.d.ts.map +1 -0
- package/dist/auth/user-lifecycle.js +60 -0
- package/dist/auth/user-lifecycle.js.map +1 -0
- package/dist/database/index.d.ts +9 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +9 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/listener-registry.d.ts +16 -0
- package/dist/database/listener-registry.d.ts.map +1 -0
- package/dist/database/listener-registry.js +68 -0
- package/dist/database/listener-registry.js.map +1 -0
- package/dist/database/modular.d.ts +632 -0
- package/dist/database/modular.d.ts.map +1 -0
- package/dist/database/modular.js +1071 -0
- package/dist/database/modular.js.map +1 -0
- package/dist/database/replay.d.ts +32 -0
- package/dist/database/replay.d.ts.map +1 -0
- package/dist/database/replay.js +124 -0
- package/dist/database/replay.js.map +1 -0
- package/dist/database/sandbox/backend-for.d.ts +10 -0
- package/dist/database/sandbox/backend-for.d.ts.map +1 -0
- package/dist/database/sandbox/backend-for.js +19 -0
- package/dist/database/sandbox/backend-for.js.map +1 -0
- package/dist/database/sandbox/backend.d.ts +407 -0
- package/dist/database/sandbox/backend.d.ts.map +1 -0
- package/dist/database/sandbox/backend.js +1495 -0
- package/dist/database/sandbox/backend.js.map +1 -0
- package/dist/database/sandbox/data-tree.d.ts +123 -0
- package/dist/database/sandbox/data-tree.d.ts.map +1 -0
- package/dist/database/sandbox/data-tree.js +310 -0
- package/dist/database/sandbox/data-tree.js.map +1 -0
- package/dist/database/sandbox/normalize.d.ts +77 -0
- package/dist/database/sandbox/normalize.d.ts.map +1 -0
- package/dist/database/sandbox/normalize.js +165 -0
- package/dist/database/sandbox/normalize.js.map +1 -0
- package/dist/database/sandbox/push-id.d.ts +32 -0
- package/dist/database/sandbox/push-id.d.ts.map +1 -0
- package/dist/database/sandbox/push-id.js +82 -0
- package/dist/database/sandbox/push-id.js.map +1 -0
- package/dist/database/sandbox/query.d.ts +175 -0
- package/dist/database/sandbox/query.d.ts.map +1 -0
- package/dist/database/sandbox/query.js +269 -0
- package/dist/database/sandbox/query.js.map +1 -0
- package/dist/database/sandbox/rules-eval.d.ts +87 -0
- package/dist/database/sandbox/rules-eval.d.ts.map +1 -0
- package/dist/database/sandbox/rules-eval.js +131 -0
- package/dist/database/sandbox/rules-eval.js.map +1 -0
- package/dist/database/sandbox/sentinels.d.ts +71 -0
- package/dist/database/sandbox/sentinels.d.ts.map +1 -0
- package/dist/database/sandbox/sentinels.js +92 -0
- package/dist/database/sandbox/sentinels.js.map +1 -0
- package/dist/database/sandbox-controls.d.ts +15 -0
- package/dist/database/sandbox-controls.d.ts.map +1 -0
- package/dist/database/sandbox-controls.js +18 -0
- package/dist/database/sandbox-controls.js.map +1 -0
- package/dist/firestore/aggregates.d.ts +50 -0
- package/dist/firestore/aggregates.d.ts.map +1 -0
- package/dist/firestore/aggregates.js +40 -0
- package/dist/firestore/aggregates.js.map +1 -0
- package/dist/firestore/equality.d.ts +5 -0
- package/dist/firestore/equality.d.ts.map +1 -0
- package/dist/firestore/equality.js +20 -0
- package/dist/firestore/equality.js.map +1 -0
- package/dist/firestore/field-values.d.ts +61 -0
- package/dist/firestore/field-values.d.ts.map +1 -0
- package/dist/firestore/field-values.js +167 -0
- package/dist/firestore/field-values.js.map +1 -0
- package/dist/firestore/index.d.ts +54 -0
- package/dist/firestore/index.d.ts.map +1 -0
- package/dist/firestore/index.js +54 -0
- package/dist/firestore/index.js.map +1 -0
- package/dist/firestore/instances.d.ts +123 -0
- package/dist/firestore/instances.d.ts.map +1 -0
- package/dist/firestore/instances.js +177 -0
- package/dist/firestore/instances.js.map +1 -0
- package/dist/firestore/internal/index.d.ts +2 -0
- package/dist/firestore/internal/index.d.ts.map +1 -0
- package/dist/firestore/internal/index.js +2 -0
- package/dist/firestore/internal/index.js.map +1 -0
- package/dist/firestore/internal/listener-routing.d.ts +4 -0
- package/dist/firestore/internal/listener-routing.d.ts.map +1 -0
- package/dist/firestore/internal/listener-routing.js +4 -0
- package/dist/firestore/internal/listener-routing.js.map +1 -0
- package/dist/firestore/listeners.d.ts +12 -0
- package/dist/firestore/listeners.d.ts.map +1 -0
- package/dist/firestore/listeners.js +200 -0
- package/dist/firestore/listeners.js.map +1 -0
- package/dist/firestore/persistence.d.ts +227 -0
- package/dist/firestore/persistence.d.ts.map +1 -0
- package/dist/firestore/persistence.js +245 -0
- package/dist/firestore/persistence.js.map +1 -0
- package/dist/firestore/query-constraints.d.ts +72 -0
- package/dist/firestore/query-constraints.d.ts.map +1 -0
- package/dist/firestore/query-constraints.js +168 -0
- package/dist/firestore/query-constraints.js.map +1 -0
- package/dist/firestore/reads.d.ts +12 -0
- package/dist/firestore/reads.d.ts.map +1 -0
- package/dist/firestore/reads.js +32 -0
- package/dist/firestore/reads.js.map +1 -0
- package/dist/firestore/refs.d.ts +27 -0
- package/dist/firestore/refs.d.ts.map +1 -0
- package/dist/firestore/refs.js +74 -0
- package/dist/firestore/refs.js.map +1 -0
- package/dist/firestore/sandbox-controls.d.ts +60 -0
- package/dist/firestore/sandbox-controls.d.ts.map +1 -0
- package/dist/firestore/sandbox-controls.js +77 -0
- package/dist/firestore/sandbox-controls.js.map +1 -0
- package/dist/firestore/snapshots.d.ts +71 -0
- package/dist/firestore/snapshots.d.ts.map +1 -0
- package/dist/firestore/snapshots.js +160 -0
- package/dist/firestore/snapshots.js.map +1 -0
- package/dist/firestore/state.d.ts +168 -0
- package/dist/firestore/state.d.ts.map +1 -0
- package/dist/firestore/state.js +260 -0
- package/dist/firestore/state.js.map +1 -0
- package/dist/firestore/tools.d.ts +71 -0
- package/dist/firestore/tools.d.ts.map +1 -0
- package/dist/firestore/tools.js +320 -0
- package/dist/firestore/tools.js.map +1 -0
- package/dist/firestore/transactions.d.ts +4 -0
- package/dist/firestore/transactions.d.ts.map +1 -0
- package/dist/firestore/transactions.js +14 -0
- package/dist/firestore/transactions.js.map +1 -0
- package/dist/firestore/types.d.ts +82 -0
- package/dist/firestore/types.d.ts.map +1 -0
- package/dist/firestore/types.js +15 -0
- package/dist/firestore/types.js.map +1 -0
- package/dist/firestore/writes.d.ts +43 -0
- package/dist/firestore/writes.d.ts.map +1 -0
- package/dist/firestore/writes.js +40 -0
- package/dist/firestore/writes.js.map +1 -0
- package/dist/firestore-values/index.d.ts +63 -0
- package/dist/firestore-values/index.d.ts.map +1 -0
- package/dist/firestore-values/index.js +148 -0
- package/dist/firestore-values/index.js.map +1 -0
- package/dist/messaging/broker/broker.d.ts +171 -0
- package/dist/messaging/broker/broker.d.ts.map +1 -0
- package/dist/messaging/broker/broker.js +400 -0
- package/dist/messaging/broker/broker.js.map +1 -0
- package/dist/messaging/broker/envelopes.d.ts +96 -0
- package/dist/messaging/broker/envelopes.d.ts.map +1 -0
- package/dist/messaging/broker/envelopes.js +132 -0
- package/dist/messaging/broker/envelopes.js.map +1 -0
- package/dist/messaging/broker/index.d.ts +27 -0
- package/dist/messaging/broker/index.d.ts.map +1 -0
- package/dist/messaging/broker/index.js +21 -0
- package/dist/messaging/broker/index.js.map +1 -0
- package/dist/messaging/broker/tokens.d.ts +22 -0
- package/dist/messaging/broker/tokens.d.ts.map +1 -0
- package/dist/messaging/broker/tokens.js +37 -0
- package/dist/messaging/broker/tokens.js.map +1 -0
- package/dist/messaging/broker/types.d.ts +117 -0
- package/dist/messaging/broker/types.d.ts.map +1 -0
- package/dist/messaging/broker/types.js +12 -0
- package/dist/messaging/broker/types.js.map +1 -0
- package/dist/messaging/broker/validate.d.ts +58 -0
- package/dist/messaging/broker/validate.d.ts.map +1 -0
- package/dist/messaging/broker/validate.js +196 -0
- package/dist/messaging/broker/validate.js.map +1 -0
- package/dist/messaging/client.d.ts +108 -0
- package/dist/messaging/client.d.ts.map +1 -0
- package/dist/messaging/client.js +65 -0
- package/dist/messaging/client.js.map +1 -0
- package/dist/messaging/index.d.ts +3 -0
- package/dist/messaging/index.d.ts.map +1 -0
- package/dist/messaging/index.js +3 -0
- package/dist/messaging/index.js.map +1 -0
- package/dist/messaging/instance.d.ts +72 -0
- package/dist/messaging/instance.d.ts.map +1 -0
- package/dist/messaging/instance.js +93 -0
- package/dist/messaging/instance.js.map +1 -0
- package/dist/messaging/internal.d.ts +12 -0
- package/dist/messaging/internal.d.ts.map +1 -0
- package/dist/messaging/internal.js +12 -0
- package/dist/messaging/internal.js.map +1 -0
- package/dist/messaging/sw.d.ts +49 -0
- package/dist/messaging/sw.d.ts.map +1 -0
- package/dist/messaging/sw.js +49 -0
- package/dist/messaging/sw.js.map +1 -0
- package/dist/project-scope.d.ts +5 -0
- package/dist/project-scope.d.ts.map +1 -0
- package/dist/project-scope.js +2 -0
- package/dist/project-scope.js.map +1 -0
- package/dist/rules/api/assert.d.ts +39 -0
- package/dist/rules/api/assert.d.ts.map +1 -0
- package/dist/rules/api/assert.js +93 -0
- package/dist/rules/api/assert.js.map +1 -0
- package/dist/rules/api/case-types.d.ts +141 -0
- package/dist/rules/api/case-types.d.ts.map +1 -0
- package/dist/rules/api/case-types.js +13 -0
- package/dist/rules/api/case-types.js.map +1 -0
- package/dist/rules/api/errors.d.ts +38 -0
- package/dist/rules/api/errors.d.ts.map +1 -0
- package/dist/rules/api/errors.js +47 -0
- package/dist/rules/api/errors.js.map +1 -0
- package/dist/rules/api/firestore.d.ts +34 -0
- package/dist/rules/api/firestore.d.ts.map +1 -0
- package/dist/rules/api/firestore.js +137 -0
- package/dist/rules/api/firestore.js.map +1 -0
- package/dist/rules/api/issue.d.ts +50 -0
- package/dist/rules/api/issue.d.ts.map +1 -0
- package/dist/rules/api/issue.js +66 -0
- package/dist/rules/api/issue.js.map +1 -0
- package/dist/rules/api/lint.d.ts +16 -0
- package/dist/rules/api/lint.d.ts.map +1 -0
- package/dist/rules/api/lint.js +60 -0
- package/dist/rules/api/lint.js.map +1 -0
- package/dist/rules/api/rtdb.d.ts +33 -0
- package/dist/rules/api/rtdb.d.ts.map +1 -0
- package/dist/rules/api/rtdb.js +166 -0
- package/dist/rules/api/rtdb.js.map +1 -0
- package/dist/rules/api/values.d.ts +51 -0
- package/dist/rules/api/values.d.ts.map +1 -0
- package/dist/rules/api/values.js +66 -0
- package/dist/rules/api/values.js.map +1 -0
- package/dist/rules/generators/assembler.d.ts +19 -0
- package/dist/rules/generators/assembler.d.ts.map +1 -0
- package/dist/rules/generators/assembler.js +292 -0
- package/dist/rules/generators/assembler.js.map +1 -0
- package/dist/rules/generators/expressions.d.ts +52 -0
- package/dist/rules/generators/expressions.d.ts.map +1 -0
- package/dist/rules/generators/expressions.js +117 -0
- package/dist/rules/generators/expressions.js.map +1 -0
- package/dist/rules/generators/grid.d.ts +22 -0
- package/dist/rules/generators/grid.d.ts.map +1 -0
- package/dist/rules/generators/grid.js +52 -0
- package/dist/rules/generators/grid.js.map +1 -0
- package/dist/rules/grammar/FirestoreAST.d.ts +129 -0
- package/dist/rules/grammar/FirestoreAST.d.ts.map +1 -0
- package/dist/rules/grammar/FirestoreAST.js +3 -0
- package/dist/rules/grammar/FirestoreAST.js.map +1 -0
- package/dist/rules/grammar/FirestoreAssembler.d.ts +5 -0
- package/dist/rules/grammar/FirestoreAssembler.d.ts.map +1 -0
- package/dist/rules/grammar/FirestoreAssembler.js +158 -0
- package/dist/rules/grammar/FirestoreAssembler.js.map +1 -0
- package/dist/rules/grammar/FirestoreParser.d.ts +46 -0
- package/dist/rules/grammar/FirestoreParser.d.ts.map +1 -0
- package/dist/rules/grammar/FirestoreParser.js +409 -0
- package/dist/rules/grammar/FirestoreParser.js.map +1 -0
- package/dist/rules/grammar/FirestoreRules.ohm +229 -0
- package/dist/rules/grammar/FirestoreRules.ohm.generated.d.ts +2 -0
- package/dist/rules/grammar/FirestoreRules.ohm.generated.d.ts.map +1 -0
- package/dist/rules/grammar/FirestoreRules.ohm.generated.js +234 -0
- package/dist/rules/grammar/FirestoreRules.ohm.generated.js.map +1 -0
- package/dist/rules/grammar/FirestoreValidator.d.ts +10 -0
- package/dist/rules/grammar/FirestoreValidator.d.ts.map +1 -0
- package/dist/rules/grammar/FirestoreValidator.js +482 -0
- package/dist/rules/grammar/FirestoreValidator.js.map +1 -0
- package/dist/rules/index.d.ts +41 -0
- package/dist/rules/index.d.ts.map +1 -0
- package/dist/rules/index.js +40 -0
- package/dist/rules/index.js.map +1 -0
- package/dist/rules/indexes/extract/annotation-collect.d.ts +42 -0
- package/dist/rules/indexes/extract/annotation-collect.d.ts.map +1 -0
- package/dist/rules/indexes/extract/annotation-collect.js +69 -0
- package/dist/rules/indexes/extract/annotation-collect.js.map +1 -0
- package/dist/rules/indexes/extract/annotations.d.ts +50 -0
- package/dist/rules/indexes/extract/annotations.d.ts.map +1 -0
- package/dist/rules/indexes/extract/annotations.js +144 -0
- package/dist/rules/indexes/extract/annotations.js.map +1 -0
- package/dist/rules/indexes/extract/ast.d.ts +54 -0
- package/dist/rules/indexes/extract/ast.d.ts.map +1 -0
- package/dist/rules/indexes/extract/ast.js +119 -0
- package/dist/rules/indexes/extract/ast.js.map +1 -0
- package/dist/rules/indexes/extract/classify.d.ts +41 -0
- package/dist/rules/indexes/extract/classify.d.ts.map +1 -0
- package/dist/rules/indexes/extract/classify.js +138 -0
- package/dist/rules/indexes/extract/classify.js.map +1 -0
- package/dist/rules/indexes/extract/composite.d.ts +38 -0
- package/dist/rules/indexes/extract/composite.d.ts.map +1 -0
- package/dist/rules/indexes/extract/composite.js +85 -0
- package/dist/rules/indexes/extract/composite.js.map +1 -0
- package/dist/rules/indexes/extract/dataflow.d.ts +45 -0
- package/dist/rules/indexes/extract/dataflow.d.ts.map +1 -0
- package/dist/rules/indexes/extract/dataflow.js +200 -0
- package/dist/rules/indexes/extract/dataflow.js.map +1 -0
- package/dist/rules/indexes/extract/enumerate.d.ts +41 -0
- package/dist/rules/indexes/extract/enumerate.d.ts.map +1 -0
- package/dist/rules/indexes/extract/enumerate.js +163 -0
- package/dist/rules/indexes/extract/enumerate.js.map +1 -0
- package/dist/rules/indexes/extract/extractor.d.ts +3 -0
- package/dist/rules/indexes/extract/extractor.d.ts.map +1 -0
- package/dist/rules/indexes/extract/extractor.js +274 -0
- package/dist/rules/indexes/extract/extractor.js.map +1 -0
- package/dist/rules/indexes/extract/types.d.ts +211 -0
- package/dist/rules/indexes/extract/types.d.ts.map +1 -0
- package/dist/rules/indexes/extract/types.js +14 -0
- package/dist/rules/indexes/extract/types.js.map +1 -0
- package/dist/rules/indexes/extractHandler.d.ts +16 -0
- package/dist/rules/indexes/extractHandler.d.ts.map +1 -0
- package/dist/rules/indexes/extractHandler.js +100 -0
- package/dist/rules/indexes/extractHandler.js.map +1 -0
- package/dist/rules/indexes/extractTool.d.ts +15 -0
- package/dist/rules/indexes/extractTool.d.ts.map +1 -0
- package/dist/rules/indexes/extractTool.js +55 -0
- package/dist/rules/indexes/extractTool.js.map +1 -0
- package/dist/rules/indexes/types.d.ts +71 -0
- package/dist/rules/indexes/types.d.ts.map +1 -0
- package/dist/rules/indexes/types.js +15 -0
- package/dist/rules/indexes/types.js.map +1 -0
- package/dist/rules/inspect/handler.d.ts +6 -0
- package/dist/rules/inspect/handler.d.ts.map +1 -0
- package/dist/rules/inspect/handler.js +144 -0
- package/dist/rules/inspect/handler.js.map +1 -0
- package/dist/rules/inspect/spec.d.ts +37 -0
- package/dist/rules/inspect/spec.d.ts.map +1 -0
- package/dist/rules/inspect/spec.js +2 -0
- package/dist/rules/inspect/spec.js.map +1 -0
- package/dist/rules/inspect/tools.d.ts +21 -0
- package/dist/rules/inspect/tools.d.ts.map +1 -0
- package/dist/rules/inspect/tools.js +21 -0
- package/dist/rules/inspect/tools.js.map +1 -0
- package/dist/rules/internal/extract.d.ts +28 -0
- package/dist/rules/internal/extract.d.ts.map +1 -0
- package/dist/rules/internal/extract.js +25 -0
- package/dist/rules/internal/extract.js.map +1 -0
- package/dist/rules/internal/index.d.ts +82 -0
- package/dist/rules/internal/index.d.ts.map +1 -0
- package/dist/rules/internal/index.js +103 -0
- package/dist/rules/internal/index.js.map +1 -0
- package/dist/rules/internal/node.d.ts +18 -0
- package/dist/rules/internal/node.d.ts.map +1 -0
- package/dist/rules/internal/node.js +27 -0
- package/dist/rules/internal/node.js.map +1 -0
- package/dist/rules/internal/rtdb.d.ts +20 -0
- package/dist/rules/internal/rtdb.d.ts.map +1 -0
- package/dist/rules/internal/rtdb.js +15 -0
- package/dist/rules/internal/rtdb.js.map +1 -0
- package/dist/rules/linter/ast-utils.d.ts +97 -0
- package/dist/rules/linter/ast-utils.d.ts.map +1 -0
- package/dist/rules/linter/ast-utils.js +491 -0
- package/dist/rules/linter/ast-utils.js.map +1 -0
- package/dist/rules/linter/hallucinations.d.ts +34 -0
- package/dist/rules/linter/hallucinations.d.ts.map +1 -0
- package/dist/rules/linter/hallucinations.js +334 -0
- package/dist/rules/linter/hallucinations.js.map +1 -0
- package/dist/rules/linter/linter.d.ts +84 -0
- package/dist/rules/linter/linter.d.ts.map +1 -0
- package/dist/rules/linter/linter.js +783 -0
- package/dist/rules/linter/linter.js.map +1 -0
- package/dist/rules/modules/resolver-browser.d.ts +41 -0
- package/dist/rules/modules/resolver-browser.d.ts.map +1 -0
- package/dist/rules/modules/resolver-browser.js +63 -0
- package/dist/rules/modules/resolver-browser.js.map +1 -0
- package/dist/rules/modules/resolver-core.d.ts +51 -0
- package/dist/rules/modules/resolver-core.d.ts.map +1 -0
- package/dist/rules/modules/resolver-core.js +338 -0
- package/dist/rules/modules/resolver-core.js.map +1 -0
- package/dist/rules/modules/resolver.d.ts +17 -0
- package/dist/rules/modules/resolver.d.ts.map +1 -0
- package/dist/rules/modules/resolver.js +49 -0
- package/dist/rules/modules/resolver.js.map +1 -0
- package/dist/rules/modules/stdlib/atomic.rules +52 -0
- package/dist/rules/modules/stdlib/atomic.test.json +152 -0
- package/dist/rules/modules/stdlib/auth.rules +7 -0
- package/dist/rules/modules/stdlib/auth.test.json +53 -0
- package/dist/rules/modules/stdlib/content.rules +50 -0
- package/dist/rules/modules/stdlib/content.test.json +238 -0
- package/dist/rules/modules/stdlib/counters.rules +41 -0
- package/dist/rules/modules/stdlib/counters.test.json +254 -0
- package/dist/rules/modules/stdlib/geometry.rules +43 -0
- package/dist/rules/modules/stdlib/geometry.test.json +200 -0
- package/dist/rules/modules/stdlib/joining.rules +49 -0
- package/dist/rules/modules/stdlib/joining.test.json +287 -0
- package/dist/rules/modules/stdlib/lifecycle.rules +51 -0
- package/dist/rules/modules/stdlib/lifecycle.test.json +288 -0
- package/dist/rules/modules/stdlib/lobby.rules +44 -0
- package/dist/rules/modules/stdlib/lobby.test.json +32 -0
- package/dist/rules/modules/stdlib/membership.rules +40 -0
- package/dist/rules/modules/stdlib/membership.test.json +107 -0
- package/dist/rules/modules/stdlib/spaces.rules +46 -0
- package/dist/rules/modules/stdlib/spaces.test.json +392 -0
- package/dist/rules/modules/stdlib/state.rules +28 -0
- package/dist/rules/modules/stdlib/state.test.json +55 -0
- package/dist/rules/modules/stdlib/timing.rules +20 -0
- package/dist/rules/modules/stdlib/timing.test.json +106 -0
- package/dist/rules/modules/stdlib/transitions.rules +34 -0
- package/dist/rules/modules/stdlib/transitions.test.json +86 -0
- package/dist/rules/modules/stdlib/turns.rules +27 -0
- package/dist/rules/modules/stdlib/turns.test.json +64 -0
- package/dist/rules/modules/stdlib/validation.rules +31 -0
- package/dist/rules/modules/stdlib/validation.test.json +184 -0
- package/dist/rules/modules/stdlib-content.d.ts +11 -0
- package/dist/rules/modules/stdlib-content.d.ts.map +1 -0
- package/dist/rules/modules/stdlib-content.js +590 -0
- package/dist/rules/modules/stdlib-content.js.map +1 -0
- package/dist/rules/rtdb/compiled-rules.d.ts +11 -0
- package/dist/rules/rtdb/compiled-rules.d.ts.map +1 -0
- package/dist/rules/rtdb/compiled-rules.js +95 -0
- package/dist/rules/rtdb/compiled-rules.js.map +1 -0
- package/dist/rules/rtdb/constraints/atoms.d.ts +29 -0
- package/dist/rules/rtdb/constraints/atoms.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/atoms.js +43 -0
- package/dist/rules/rtdb/constraints/atoms.js.map +1 -0
- package/dist/rules/rtdb/constraints/compose.d.ts +16 -0
- package/dist/rules/rtdb/constraints/compose.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/compose.js +15 -0
- package/dist/rules/rtdb/constraints/compose.js.map +1 -0
- package/dist/rules/rtdb/constraints/data.d.ts +30 -0
- package/dist/rules/rtdb/constraints/data.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/data.js +46 -0
- package/dist/rules/rtdb/constraints/data.js.map +1 -0
- package/dist/rules/rtdb/constraints/document.d.ts +57 -0
- package/dist/rules/rtdb/constraints/document.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/document.js +85 -0
- package/dist/rules/rtdb/constraints/document.js.map +1 -0
- package/dist/rules/rtdb/constraints/game.d.ts +30 -0
- package/dist/rules/rtdb/constraints/game.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/game.js +49 -0
- package/dist/rules/rtdb/constraints/game.js.map +1 -0
- package/dist/rules/rtdb/constraints/index.d.ts +12 -0
- package/dist/rules/rtdb/constraints/index.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/index.js +9 -0
- package/dist/rules/rtdb/constraints/index.js.map +1 -0
- package/dist/rules/rtdb/constraints/policies.d.ts +16 -0
- package/dist/rules/rtdb/constraints/policies.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/policies.js +17 -0
- package/dist/rules/rtdb/constraints/policies.js.map +1 -0
- package/dist/rules/rtdb/constraints/ruleset.d.ts +5 -0
- package/dist/rules/rtdb/constraints/ruleset.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/ruleset.js +132 -0
- package/dist/rules/rtdb/constraints/ruleset.js.map +1 -0
- package/dist/rules/rtdb/constraints/schema.d.ts +17 -0
- package/dist/rules/rtdb/constraints/schema.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/schema.js +74 -0
- package/dist/rules/rtdb/constraints/schema.js.map +1 -0
- package/dist/rules/rtdb/constraints/types.d.ts +22 -0
- package/dist/rules/rtdb/constraints/types.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/types.js +2 -0
- package/dist/rules/rtdb/constraints/types.js.map +1 -0
- package/dist/rules/rtdb/constraints/write-rules-file.d.ts +24 -0
- package/dist/rules/rtdb/constraints/write-rules-file.d.ts.map +1 -0
- package/dist/rules/rtdb/constraints/write-rules-file.js +30 -0
- package/dist/rules/rtdb/constraints/write-rules-file.js.map +1 -0
- package/dist/rules/rtdb/expression-engine.d.ts +8 -0
- package/dist/rules/rtdb/expression-engine.d.ts.map +1 -0
- package/dist/rules/rtdb/expression-engine.js +20 -0
- package/dist/rules/rtdb/expression-engine.js.map +1 -0
- package/dist/rules/rtdb/grammar/RtdbExpr.ohm +98 -0
- package/dist/rules/rtdb/grammar/RtdbExpr.ohm.generated.d.ts +2 -0
- package/dist/rules/rtdb/grammar/RtdbExpr.ohm.generated.d.ts.map +1 -0
- package/dist/rules/rtdb/grammar/RtdbExpr.ohm.generated.js +103 -0
- package/dist/rules/rtdb/grammar/RtdbExpr.ohm.generated.js.map +1 -0
- package/dist/rules/rtdb/grammar/RtdbExprParser.d.ts +3 -0
- package/dist/rules/rtdb/grammar/RtdbExprParser.d.ts.map +1 -0
- package/dist/rules/rtdb/grammar/RtdbExprParser.js +56 -0
- package/dist/rules/rtdb/grammar/RtdbExprParser.js.map +1 -0
- package/dist/rules/rtdb/grammar/linter.d.ts +3 -0
- package/dist/rules/rtdb/grammar/linter.d.ts.map +1 -0
- package/dist/rules/rtdb/grammar/linter.js +73 -0
- package/dist/rules/rtdb/grammar/linter.js.map +1 -0
- package/dist/rules/rtdb/grammar/simulator.d.ts +30 -0
- package/dist/rules/rtdb/grammar/simulator.d.ts.map +1 -0
- package/dist/rules/rtdb/grammar/simulator.js +282 -0
- package/dist/rules/rtdb/grammar/simulator.js.map +1 -0
- package/dist/rules/rtdb/grammar/validator.d.ts +3 -0
- package/dist/rules/rtdb/grammar/validator.d.ts.map +1 -0
- package/dist/rules/rtdb/grammar/validator.js +91 -0
- package/dist/rules/rtdb/grammar/validator.js.map +1 -0
- package/dist/rules/rtdb/simulation/handler.d.ts +6 -0
- package/dist/rules/rtdb/simulation/handler.d.ts.map +1 -0
- package/dist/rules/rtdb/simulation/handler.js +325 -0
- package/dist/rules/rtdb/simulation/handler.js.map +1 -0
- package/dist/rules/rtdb/simulation/spec.d.ts +102 -0
- package/dist/rules/rtdb/simulation/spec.d.ts.map +1 -0
- package/dist/rules/rtdb/simulation/spec.js +40 -0
- package/dist/rules/rtdb/simulation/spec.js.map +1 -0
- package/dist/rules/rtdb/types.d.ts +166 -0
- package/dist/rules/rtdb/types.d.ts.map +1 -0
- package/dist/rules/rtdb/types.js +21 -0
- package/dist/rules/rtdb/types.js.map +1 -0
- package/dist/rules/simulator/evaluator.d.ts +206 -0
- package/dist/rules/simulator/evaluator.d.ts.map +1 -0
- package/dist/rules/simulator/evaluator.js +1251 -0
- package/dist/rules/simulator/evaluator.js.map +1 -0
- package/dist/rules/simulator/expression/eval-errors.d.ts +86 -0
- package/dist/rules/simulator/expression/eval-errors.d.ts.map +1 -0
- package/dist/rules/simulator/expression/eval-errors.js +68 -0
- package/dist/rules/simulator/expression/eval-errors.js.map +1 -0
- package/dist/rules/simulator/expression/evaluator.d.ts +43 -0
- package/dist/rules/simulator/expression/evaluator.d.ts.map +1 -0
- package/dist/rules/simulator/expression/evaluator.js +298 -0
- package/dist/rules/simulator/expression/evaluator.js.map +1 -0
- package/dist/rules/simulator/expression/lexer.d.ts +36 -0
- package/dist/rules/simulator/expression/lexer.d.ts.map +1 -0
- package/dist/rules/simulator/expression/lexer.js +318 -0
- package/dist/rules/simulator/expression/lexer.js.map +1 -0
- package/dist/rules/simulator/expression/parser.d.ts +39 -0
- package/dist/rules/simulator/expression/parser.d.ts.map +1 -0
- package/dist/rules/simulator/expression/parser.js +329 -0
- package/dist/rules/simulator/expression/parser.js.map +1 -0
- package/dist/rules/simulator/expression/types.d.ts +137 -0
- package/dist/rules/simulator/expression/types.d.ts.map +1 -0
- package/dist/rules/simulator/expression/types.js +90 -0
- package/dist/rules/simulator/expression/types.js.map +1 -0
- package/dist/rules/simulator/expression/walk-data.d.ts +52 -0
- package/dist/rules/simulator/expression/walk-data.d.ts.map +1 -0
- package/dist/rules/simulator/expression/walk-data.js +167 -0
- package/dist/rules/simulator/expression/walk-data.js.map +1 -0
- package/dist/rules/simulator/firestore-set.d.ts +25 -0
- package/dist/rules/simulator/firestore-set.d.ts.map +1 -0
- package/dist/rules/simulator/firestore-set.js +89 -0
- package/dist/rules/simulator/firestore-set.js.map +1 -0
- package/dist/rules/simulator/handler.d.ts +47 -0
- package/dist/rules/simulator/handler.d.ts.map +1 -0
- package/dist/rules/simulator/handler.js +644 -0
- package/dist/rules/simulator/handler.js.map +1 -0
- package/dist/rules/simulator/mapdiff.d.ts +29 -0
- package/dist/rules/simulator/mapdiff.d.ts.map +1 -0
- package/dist/rules/simulator/mapdiff.js +72 -0
- package/dist/rules/simulator/mapdiff.js.map +1 -0
- package/dist/rules/simulator/project-after-state.d.ts +33 -0
- package/dist/rules/simulator/project-after-state.d.ts.map +1 -0
- package/dist/rules/simulator/project-after-state.js +88 -0
- package/dist/rules/simulator/project-after-state.js.map +1 -0
- package/dist/rules/simulator/query-proof.d.ts +80 -0
- package/dist/rules/simulator/query-proof.d.ts.map +1 -0
- package/dist/rules/simulator/query-proof.js +142 -0
- package/dist/rules/simulator/query-proof.js.map +1 -0
- package/dist/rules/simulator/value-equality.d.ts +8 -0
- package/dist/rules/simulator/value-equality.d.ts.map +1 -0
- package/dist/rules/simulator/value-equality.js +40 -0
- package/dist/rules/simulator/value-equality.js.map +1 -0
- package/dist/rules/simulator/wrappers/base.d.ts +129 -0
- package/dist/rules/simulator/wrappers/base.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/base.js +90 -0
- package/dist/rules/simulator/wrappers/base.js.map +1 -0
- package/dist/rules/simulator/wrappers/bytes.d.ts +45 -0
- package/dist/rules/simulator/wrappers/bytes.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/bytes.js +130 -0
- package/dist/rules/simulator/wrappers/bytes.js.map +1 -0
- package/dist/rules/simulator/wrappers/duration.d.ts +76 -0
- package/dist/rules/simulator/wrappers/duration.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/duration.js +176 -0
- package/dist/rules/simulator/wrappers/duration.js.map +1 -0
- package/dist/rules/simulator/wrappers/float.d.ts +52 -0
- package/dist/rules/simulator/wrappers/float.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/float.js +88 -0
- package/dist/rules/simulator/wrappers/float.js.map +1 -0
- package/dist/rules/simulator/wrappers/latlng.d.ts +40 -0
- package/dist/rules/simulator/wrappers/latlng.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/latlng.js +100 -0
- package/dist/rules/simulator/wrappers/latlng.js.map +1 -0
- package/dist/rules/simulator/wrappers/path.d.ts +75 -0
- package/dist/rules/simulator/wrappers/path.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/path.js +158 -0
- package/dist/rules/simulator/wrappers/path.js.map +1 -0
- package/dist/rules/simulator/wrappers/reference.d.ts +82 -0
- package/dist/rules/simulator/wrappers/reference.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/reference.js +145 -0
- package/dist/rules/simulator/wrappers/reference.js.map +1 -0
- package/dist/rules/simulator/wrappers/timestamp.d.ts +86 -0
- package/dist/rules/simulator/wrappers/timestamp.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/timestamp.js +207 -0
- package/dist/rules/simulator/wrappers/timestamp.js.map +1 -0
- package/dist/rules/simulator/wrappers/vector.d.ts +43 -0
- package/dist/rules/simulator/wrappers/vector.d.ts.map +1 -0
- package/dist/rules/simulator/wrappers/vector.js +80 -0
- package/dist/rules/simulator/wrappers/vector.js.map +1 -0
- package/dist/rules/simulator-tools-impl.d.ts +64 -0
- package/dist/rules/simulator-tools-impl.d.ts.map +1 -0
- package/dist/rules/simulator-tools-impl.js +462 -0
- package/dist/rules/simulator-tools-impl.js.map +1 -0
- package/dist/rules/simulator.d.ts +20 -0
- package/dist/rules/simulator.d.ts.map +1 -0
- package/dist/rules/simulator.js +24 -0
- package/dist/rules/simulator.js.map +1 -0
- package/dist/rules/stdlib-modules.d.ts +73 -0
- package/dist/rules/stdlib-modules.d.ts.map +1 -0
- package/dist/rules/stdlib-modules.js +837 -0
- package/dist/rules/stdlib-modules.js.map +1 -0
- package/dist/rules/stdlib-tools.d.ts +19 -0
- package/dist/rules/stdlib-tools.d.ts.map +1 -0
- package/dist/rules/stdlib-tools.js +164 -0
- package/dist/rules/stdlib-tools.js.map +1 -0
- package/dist/rules/test/handler.d.ts +21 -0
- package/dist/rules/test/handler.d.ts.map +1 -0
- package/dist/rules/test/handler.js +214 -0
- package/dist/rules/test/handler.js.map +1 -0
- package/dist/rules/test/spec.d.ts +677 -0
- package/dist/rules/test/spec.d.ts.map +1 -0
- package/dist/rules/test/spec.js +327 -0
- package/dist/rules/test/spec.js.map +1 -0
- package/dist/rules/tools.d.ts +41 -0
- package/dist/rules/tools.d.ts.map +1 -0
- package/dist/rules/tools.js +120 -0
- package/dist/rules/tools.js.map +1 -0
- package/dist/rules/write/handler.d.ts +6 -0
- package/dist/rules/write/handler.d.ts.map +1 -0
- package/dist/rules/write/handler.js +126 -0
- package/dist/rules/write/handler.js.map +1 -0
- package/dist/rules/write/spec.d.ts +28 -0
- package/dist/rules/write/spec.d.ts.map +1 -0
- package/dist/rules/write/spec.js +2 -0
- package/dist/rules/write/spec.js.map +1 -0
- package/dist/sandbox/admin-compat.d.ts +20 -0
- package/dist/sandbox/admin-compat.d.ts.map +1 -0
- package/dist/sandbox/admin-compat.js +19 -0
- package/dist/sandbox/admin-compat.js.map +1 -0
- package/dist/sandbox/admin-firestore/error-translation.d.ts +90 -0
- package/dist/sandbox/admin-firestore/error-translation.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/error-translation.js +214 -0
- package/dist/sandbox/admin-firestore/error-translation.js.map +1 -0
- package/dist/sandbox/admin-firestore/get-admin-firestore.d.ts +44 -0
- package/dist/sandbox/admin-firestore/get-admin-firestore.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/get-admin-firestore.js +62 -0
- package/dist/sandbox/admin-firestore/get-admin-firestore.js.map +1 -0
- package/dist/sandbox/admin-firestore/get-firestore.d.ts +34 -0
- package/dist/sandbox/admin-firestore/get-firestore.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/get-firestore.js +71 -0
- package/dist/sandbox/admin-firestore/get-firestore.js.map +1 -0
- package/dist/sandbox/admin-firestore/index.d.ts +36 -0
- package/dist/sandbox/admin-firestore/index.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/index.js +33 -0
- package/dist/sandbox/admin-firestore/index.js.map +1 -0
- package/dist/sandbox/admin-firestore/listeners.d.ts +46 -0
- package/dist/sandbox/admin-firestore/listeners.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/listeners.js +290 -0
- package/dist/sandbox/admin-firestore/listeners.js.map +1 -0
- package/dist/sandbox/admin-firestore/local-handle.d.ts +23 -0
- package/dist/sandbox/admin-firestore/local-handle.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/local-handle.js +74 -0
- package/dist/sandbox/admin-firestore/local-handle.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/batch.d.ts +6 -0
- package/dist/sandbox/admin-firestore/remote/batch.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/batch.js +38 -0
- package/dist/sandbox/admin-firestore/remote/batch.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/channel.d.ts +22 -0
- package/dist/sandbox/admin-firestore/remote/channel.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/channel.js +27 -0
- package/dist/sandbox/admin-firestore/remote/channel.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/doc-ref.d.ts +10 -0
- package/dist/sandbox/admin-firestore/remote/doc-ref.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/doc-ref.js +88 -0
- package/dist/sandbox/admin-firestore/remote/doc-ref.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/errors.d.ts +17 -0
- package/dist/sandbox/admin-firestore/remote/errors.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/errors.js +32 -0
- package/dist/sandbox/admin-firestore/remote/errors.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/listeners.d.ts +43 -0
- package/dist/sandbox/admin-firestore/remote/listeners.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/listeners.js +89 -0
- package/dist/sandbox/admin-firestore/remote/listeners.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/query.d.ts +47 -0
- package/dist/sandbox/admin-firestore/remote/query.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/query.js +186 -0
- package/dist/sandbox/admin-firestore/remote/query.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/remote-firestore.d.ts +55 -0
- package/dist/sandbox/admin-firestore/remote/remote-firestore.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/remote-firestore.js +111 -0
- package/dist/sandbox/admin-firestore/remote/remote-firestore.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/snapshots.d.ts +10 -0
- package/dist/sandbox/admin-firestore/remote/snapshots.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/snapshots.js +37 -0
- package/dist/sandbox/admin-firestore/remote/snapshots.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/transaction.d.ts +19 -0
- package/dist/sandbox/admin-firestore/remote/transaction.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/transaction.js +105 -0
- package/dist/sandbox/admin-firestore/remote/transaction.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/value-codec.d.ts +52 -0
- package/dist/sandbox/admin-firestore/remote/value-codec.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/value-codec.js +120 -0
- package/dist/sandbox/admin-firestore/remote/value-codec.js.map +1 -0
- package/dist/sandbox/admin-firestore/remote/wire-types.d.ts +111 -0
- package/dist/sandbox/admin-firestore/remote/wire-types.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/remote/wire-types.js +8 -0
- package/dist/sandbox/admin-firestore/remote/wire-types.js.map +1 -0
- package/dist/sandbox/admin-firestore/types.d.ts +59 -0
- package/dist/sandbox/admin-firestore/types.d.ts.map +1 -0
- package/dist/sandbox/admin-firestore/types.js +6 -0
- package/dist/sandbox/admin-firestore/types.js.map +1 -0
- package/dist/sandbox/branches/index.d.ts +141 -0
- package/dist/sandbox/branches/index.d.ts.map +1 -0
- package/dist/sandbox/branches/index.js +327 -0
- package/dist/sandbox/branches/index.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/batch.d.ts +34 -0
- package/dist/sandbox/firestore/admin-compat/batch.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/batch.js +73 -0
- package/dist/sandbox/firestore/admin-compat/batch.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/doc-ref.d.ts +38 -0
- package/dist/sandbox/firestore/admin-compat/doc-ref.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/doc-ref.js +154 -0
- package/dist/sandbox/firestore/admin-compat/doc-ref.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/firestore.d.ts +47 -0
- package/dist/sandbox/firestore/admin-compat/firestore.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/firestore.js +117 -0
- package/dist/sandbox/firestore/admin-compat/firestore.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/index.d.ts +49 -0
- package/dist/sandbox/firestore/admin-compat/index.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/index.js +27 -0
- package/dist/sandbox/firestore/admin-compat/index.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/paths.d.ts +37 -0
- package/dist/sandbox/firestore/admin-compat/paths.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/paths.js +49 -0
- package/dist/sandbox/firestore/admin-compat/paths.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/query.d.ts +261 -0
- package/dist/sandbox/firestore/admin-compat/query.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/query.js +758 -0
- package/dist/sandbox/firestore/admin-compat/query.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/read-translation.d.ts +8 -0
- package/dist/sandbox/firestore/admin-compat/read-translation.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/read-translation.js +59 -0
- package/dist/sandbox/firestore/admin-compat/read-translation.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/snapshots.d.ts +39 -0
- package/dist/sandbox/firestore/admin-compat/snapshots.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/snapshots.js +50 -0
- package/dist/sandbox/firestore/admin-compat/snapshots.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/transaction.d.ts +35 -0
- package/dist/sandbox/firestore/admin-compat/transaction.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/transaction.js +88 -0
- package/dist/sandbox/firestore/admin-compat/transaction.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/types.d.ts +297 -0
- package/dist/sandbox/firestore/admin-compat/types.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/types.js +127 -0
- package/dist/sandbox/firestore/admin-compat/types.js.map +1 -0
- package/dist/sandbox/firestore/admin-compat/value-order.d.ts +49 -0
- package/dist/sandbox/firestore/admin-compat/value-order.d.ts.map +1 -0
- package/dist/sandbox/firestore/admin-compat/value-order.js +172 -0
- package/dist/sandbox/firestore/admin-compat/value-order.js.map +1 -0
- package/dist/sandbox/firestore/auto-id.d.ts +26 -0
- package/dist/sandbox/firestore/auto-id.d.ts.map +1 -0
- package/dist/sandbox/firestore/auto-id.js +36 -0
- package/dist/sandbox/firestore/auto-id.js.map +1 -0
- package/dist/sandbox/firestore/converters/bytes-geopoint.d.ts +48 -0
- package/dist/sandbox/firestore/converters/bytes-geopoint.d.ts.map +1 -0
- package/dist/sandbox/firestore/converters/bytes-geopoint.js +85 -0
- package/dist/sandbox/firestore/converters/bytes-geopoint.js.map +1 -0
- package/dist/sandbox/firestore/converters/fieldvalue.d.ts +69 -0
- package/dist/sandbox/firestore/converters/fieldvalue.d.ts.map +1 -0
- package/dist/sandbox/firestore/converters/fieldvalue.js +166 -0
- package/dist/sandbox/firestore/converters/fieldvalue.js.map +1 -0
- package/dist/sandbox/firestore/converters/reference.d.ts +31 -0
- package/dist/sandbox/firestore/converters/reference.d.ts.map +1 -0
- package/dist/sandbox/firestore/converters/reference.js +51 -0
- package/dist/sandbox/firestore/converters/reference.js.map +1 -0
- package/dist/sandbox/firestore/converters/timestamp.d.ts +32 -0
- package/dist/sandbox/firestore/converters/timestamp.d.ts.map +1 -0
- package/dist/sandbox/firestore/converters/timestamp.js +63 -0
- package/dist/sandbox/firestore/converters/timestamp.js.map +1 -0
- package/dist/sandbox/firestore/converters/user-timestamp.d.ts +46 -0
- package/dist/sandbox/firestore/converters/user-timestamp.d.ts.map +1 -0
- package/dist/sandbox/firestore/converters/user-timestamp.js +65 -0
- package/dist/sandbox/firestore/converters/user-timestamp.js.map +1 -0
- package/dist/sandbox/firestore/converters/vector.d.ts +24 -0
- package/dist/sandbox/firestore/converters/vector.d.ts.map +1 -0
- package/dist/sandbox/firestore/converters/vector.js +53 -0
- package/dist/sandbox/firestore/converters/vector.js.map +1 -0
- package/dist/sandbox/firestore/errors.d.ts +82 -0
- package/dist/sandbox/firestore/errors.d.ts.map +1 -0
- package/dist/sandbox/firestore/errors.js +54 -0
- package/dist/sandbox/firestore/errors.js.map +1 -0
- package/dist/sandbox/firestore/event-log.d.ts +99 -0
- package/dist/sandbox/firestore/event-log.d.ts.map +1 -0
- package/dist/sandbox/firestore/event-log.js +67 -0
- package/dist/sandbox/firestore/event-log.js.map +1 -0
- package/dist/sandbox/firestore/field-merge.d.ts +64 -0
- package/dist/sandbox/firestore/field-merge.d.ts.map +1 -0
- package/dist/sandbox/firestore/field-merge.js +221 -0
- package/dist/sandbox/firestore/field-merge.js.map +1 -0
- package/dist/sandbox/firestore/list-query-proof.d.ts +77 -0
- package/dist/sandbox/firestore/list-query-proof.d.ts.map +1 -0
- package/dist/sandbox/firestore/list-query-proof.js +170 -0
- package/dist/sandbox/firestore/list-query-proof.js.map +1 -0
- package/dist/sandbox/firestore/local-environment.d.ts +825 -0
- package/dist/sandbox/firestore/local-environment.d.ts.map +1 -0
- package/dist/sandbox/firestore/local-environment.js +3129 -0
- package/dist/sandbox/firestore/local-environment.js.map +1 -0
- package/dist/sandbox/firestore/local-state.d.ts +196 -0
- package/dist/sandbox/firestore/local-state.d.ts.map +1 -0
- package/dist/sandbox/firestore/local-state.js +413 -0
- package/dist/sandbox/firestore/local-state.js.map +1 -0
- package/dist/sandbox/firestore/overlay-backing.d.ts +44 -0
- package/dist/sandbox/firestore/overlay-backing.d.ts.map +1 -0
- package/dist/sandbox/firestore/overlay-backing.js +82 -0
- package/dist/sandbox/firestore/overlay-backing.js.map +1 -0
- package/dist/sandbox/firestore/sentinel-capture.d.ts +30 -0
- package/dist/sandbox/firestore/sentinel-capture.d.ts.map +1 -0
- package/dist/sandbox/firestore/sentinel-capture.js +61 -0
- package/dist/sandbox/firestore/sentinel-capture.js.map +1 -0
- package/dist/sandbox/firestore/snapshot-listeners.d.ts +290 -0
- package/dist/sandbox/firestore/snapshot-listeners.d.ts.map +1 -0
- package/dist/sandbox/firestore/snapshot-listeners.js +194 -0
- package/dist/sandbox/firestore/snapshot-listeners.js.map +1 -0
- package/dist/sandbox/firestore/topk.d.ts +12 -0
- package/dist/sandbox/firestore/topk.d.ts.map +1 -0
- package/dist/sandbox/firestore/topk.js +42 -0
- package/dist/sandbox/firestore/topk.js.map +1 -0
- package/dist/sandbox/firestore/transaction-merge.d.ts +55 -0
- package/dist/sandbox/firestore/transaction-merge.d.ts.map +1 -0
- package/dist/sandbox/firestore/transaction-merge.js +107 -0
- package/dist/sandbox/firestore/transaction-merge.js.map +1 -0
- package/dist/sandbox/firestore/transaction-types.d.ts +155 -0
- package/dist/sandbox/firestore/transaction-types.d.ts.map +1 -0
- package/dist/sandbox/firestore/transaction-types.js +10 -0
- package/dist/sandbox/firestore/transaction-types.js.map +1 -0
- package/dist/sandbox/firestore/transaction.d.ts +79 -0
- package/dist/sandbox/firestore/transaction.d.ts.map +1 -0
- package/dist/sandbox/firestore/transaction.js +95 -0
- package/dist/sandbox/firestore/transaction.js.map +1 -0
- package/dist/sandbox/firestore/value-equality.d.ts +2 -0
- package/dist/sandbox/firestore/value-equality.d.ts.map +1 -0
- package/dist/sandbox/firestore/value-equality.js +35 -0
- package/dist/sandbox/firestore/value-equality.js.map +1 -0
- package/dist/sandbox/firestore/value-resolver.d.ts +172 -0
- package/dist/sandbox/firestore/value-resolver.d.ts.map +1 -0
- package/dist/sandbox/firestore/value-resolver.js +221 -0
- package/dist/sandbox/firestore/value-resolver.js.map +1 -0
- package/dist/sandbox/firestore/wire-encoder.d.ts +14 -0
- package/dist/sandbox/firestore/wire-encoder.d.ts.map +1 -0
- package/dist/sandbox/firestore/wire-encoder.js +130 -0
- package/dist/sandbox/firestore/wire-encoder.js.map +1 -0
- package/dist/sandbox/index.d.ts +53 -0
- package/dist/sandbox/index.d.ts.map +1 -0
- package/dist/sandbox/index.js +65 -0
- package/dist/sandbox/index.js.map +1 -0
- package/dist/sandbox/internal/client-app.d.ts +29 -0
- package/dist/sandbox/internal/client-app.d.ts.map +1 -0
- package/dist/sandbox/internal/client-app.js +18 -0
- package/dist/sandbox/internal/client-app.js.map +1 -0
- package/dist/sandbox/internal/firebase-error.d.ts +14 -0
- package/dist/sandbox/internal/firebase-error.d.ts.map +1 -0
- package/dist/sandbox/internal/firebase-error.js +22 -0
- package/dist/sandbox/internal/firebase-error.js.map +1 -0
- package/dist/sandbox/internal/index.d.ts +39 -0
- package/dist/sandbox/internal/index.d.ts.map +1 -0
- package/dist/sandbox/internal/index.js +75 -0
- package/dist/sandbox/internal/index.js.map +1 -0
- package/dist/sandbox/internal/local-brand.d.ts +3 -0
- package/dist/sandbox/internal/local-brand.d.ts.map +1 -0
- package/dist/sandbox/internal/local-brand.js +3 -0
- package/dist/sandbox/internal/local-brand.js.map +1 -0
- package/dist/sandbox/internal/provenance.d.ts +16 -0
- package/dist/sandbox/internal/provenance.d.ts.map +1 -0
- package/dist/sandbox/internal/provenance.js +139 -0
- package/dist/sandbox/internal/provenance.js.map +1 -0
- package/dist/sandbox/internal/sandbox-impl.d.ts +328 -0
- package/dist/sandbox/internal/sandbox-impl.d.ts.map +1 -0
- package/dist/sandbox/internal/sandbox-impl.js +695 -0
- package/dist/sandbox/internal/sandbox-impl.js.map +1 -0
- package/dist/sandbox/operation-record.d.ts +48 -0
- package/dist/sandbox/operation-record.d.ts.map +1 -0
- package/dist/sandbox/operation-record.js +143 -0
- package/dist/sandbox/operation-record.js.map +1 -0
- package/dist/sandbox/persistence/backends.d.ts +37 -0
- package/dist/sandbox/persistence/backends.d.ts.map +1 -0
- package/dist/sandbox/persistence/backends.js +202 -0
- package/dist/sandbox/persistence/backends.js.map +1 -0
- package/dist/sandbox/persistence/chunk-format.d.ts +58 -0
- package/dist/sandbox/persistence/chunk-format.d.ts.map +1 -0
- package/dist/sandbox/persistence/chunk-format.js +163 -0
- package/dist/sandbox/persistence/chunk-format.js.map +1 -0
- package/dist/sandbox/persistence/controller.d.ts +39 -0
- package/dist/sandbox/persistence/controller.d.ts.map +1 -0
- package/dist/sandbox/persistence/controller.js +505 -0
- package/dist/sandbox/persistence/controller.js.map +1 -0
- package/dist/sandbox/persistence/index.d.ts +13 -0
- package/dist/sandbox/persistence/index.d.ts.map +1 -0
- package/dist/sandbox/persistence/index.js +5 -0
- package/dist/sandbox/persistence/index.js.map +1 -0
- package/dist/sandbox/persistence/serialize.d.ts +53 -0
- package/dist/sandbox/persistence/serialize.d.ts.map +1 -0
- package/dist/sandbox/persistence/serialize.js +98 -0
- package/dist/sandbox/persistence/serialize.js.map +1 -0
- package/dist/sandbox/persistence/types.d.ts +118 -0
- package/dist/sandbox/persistence/types.d.ts.map +1 -0
- package/dist/sandbox/persistence/types.js +15 -0
- package/dist/sandbox/persistence/types.js.map +1 -0
- package/dist/sandbox/remote.d.ts +118 -0
- package/dist/sandbox/remote.d.ts.map +1 -0
- package/dist/sandbox/remote.js +60 -0
- package/dist/sandbox/remote.js.map +1 -0
- package/dist/sandbox/replay/index.d.ts +106 -0
- package/dist/sandbox/replay/index.d.ts.map +1 -0
- package/dist/sandbox/replay/index.js +246 -0
- package/dist/sandbox/replay/index.js.map +1 -0
- package/dist/sandbox/sandbox-context.d.ts +48 -0
- package/dist/sandbox/sandbox-context.d.ts.map +1 -0
- package/dist/sandbox/sandbox-context.js +97 -0
- package/dist/sandbox/sandbox-context.js.map +1 -0
- package/dist/sandbox/tab-sync/index.d.ts +120 -0
- package/dist/sandbox/tab-sync/index.d.ts.map +1 -0
- package/dist/sandbox/tab-sync/index.js +273 -0
- package/dist/sandbox/tab-sync/index.js.map +1 -0
- package/dist/sandbox/types/auth-state.d.ts +23 -0
- package/dist/sandbox/types/auth-state.d.ts.map +1 -0
- package/dist/sandbox/types/auth-state.js +8 -0
- package/dist/sandbox/types/auth-state.js.map +1 -0
- package/dist/sandbox/types/context.d.ts +33 -0
- package/dist/sandbox/types/context.d.ts.map +1 -0
- package/dist/sandbox/types/context.js +5 -0
- package/dist/sandbox/types/context.js.map +1 -0
- package/dist/sandbox/types/errors.d.ts +109 -0
- package/dist/sandbox/types/errors.d.ts.map +1 -0
- package/dist/sandbox/types/errors.js +41 -0
- package/dist/sandbox/types/errors.js.map +1 -0
- package/dist/sandbox/types/events.d.ts +577 -0
- package/dist/sandbox/types/events.d.ts.map +1 -0
- package/dist/sandbox/types/events.js +7 -0
- package/dist/sandbox/types/events.js.map +1 -0
- package/dist/sandbox/types/index.d.ts +24 -0
- package/dist/sandbox/types/index.d.ts.map +1 -0
- package/dist/sandbox/types/index.js +17 -0
- package/dist/sandbox/types/index.js.map +1 -0
- package/dist/sandbox/types/operation.d.ts +60 -0
- package/dist/sandbox/types/operation.d.ts.map +1 -0
- package/dist/sandbox/types/operation.js +3 -0
- package/dist/sandbox/types/operation.js.map +1 -0
- package/dist/sandbox/types/persistence.d.ts +130 -0
- package/dist/sandbox/types/persistence.d.ts.map +1 -0
- package/dist/sandbox/types/persistence.js +7 -0
- package/dist/sandbox/types/persistence.js.map +1 -0
- package/dist/sandbox/types/service.d.ts +357 -0
- package/dist/sandbox/types/service.d.ts.map +1 -0
- package/dist/sandbox/types/service.js +6 -0
- package/dist/sandbox/types/service.js.map +1 -0
- package/dist/storage/admin/api.d.ts +206 -0
- package/dist/storage/admin/api.d.ts.map +1 -0
- package/dist/storage/admin/api.js +349 -0
- package/dist/storage/admin/api.js.map +1 -0
- package/dist/storage/admin/handler.d.ts +28 -0
- package/dist/storage/admin/handler.d.ts.map +1 -0
- package/dist/storage/admin/handler.js +82 -0
- package/dist/storage/admin/handler.js.map +1 -0
- package/dist/storage/admin/spec.d.ts +64 -0
- package/dist/storage/admin/spec.d.ts.map +1 -0
- package/dist/storage/admin/spec.js +8 -0
- package/dist/storage/admin/spec.js.map +1 -0
- package/dist/storage/admin/tools.d.ts +22 -0
- package/dist/storage/admin/tools.d.ts.map +1 -0
- package/dist/storage/admin/tools.js +90 -0
- package/dist/storage/admin/tools.js.map +1 -0
- package/dist/storage/download.d.ts +41 -0
- package/dist/storage/download.d.ts.map +1 -0
- package/dist/storage/download.js +137 -0
- package/dist/storage/download.js.map +1 -0
- package/dist/storage/enforce.d.ts +5 -0
- package/dist/storage/enforce.d.ts.map +1 -0
- package/dist/storage/enforce.js +147 -0
- package/dist/storage/enforce.js.map +1 -0
- package/dist/storage/errors.d.ts +44 -0
- package/dist/storage/errors.d.ts.map +1 -0
- package/dist/storage/errors.js +64 -0
- package/dist/storage/errors.js.map +1 -0
- package/dist/storage/index.d.ts +45 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +39 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/instances.d.ts +9 -0
- package/dist/storage/instances.d.ts.map +1 -0
- package/dist/storage/instances.js +24 -0
- package/dist/storage/instances.js.map +1 -0
- package/dist/storage/internal.d.ts +18 -0
- package/dist/storage/internal.d.ts.map +1 -0
- package/dist/storage/internal.js +18 -0
- package/dist/storage/internal.js.map +1 -0
- package/dist/storage/list.d.ts +42 -0
- package/dist/storage/list.d.ts.map +1 -0
- package/dist/storage/list.js +83 -0
- package/dist/storage/list.js.map +1 -0
- package/dist/storage/metadata.d.ts +92 -0
- package/dist/storage/metadata.d.ts.map +1 -0
- package/dist/storage/metadata.js +164 -0
- package/dist/storage/metadata.js.map +1 -0
- package/dist/storage/persistence.d.ts +134 -0
- package/dist/storage/persistence.d.ts.map +1 -0
- package/dist/storage/persistence.js +132 -0
- package/dist/storage/persistence.js.map +1 -0
- package/dist/storage/reference.d.ts +57 -0
- package/dist/storage/reference.d.ts.map +1 -0
- package/dist/storage/reference.js +105 -0
- package/dist/storage/reference.js.map +1 -0
- package/dist/storage/rules.d.ts +339 -0
- package/dist/storage/rules.d.ts.map +1 -0
- package/dist/storage/rules.js +1334 -0
- package/dist/storage/rules.js.map +1 -0
- package/dist/storage/service.d.ts +122 -0
- package/dist/storage/service.d.ts.map +1 -0
- package/dist/storage/service.js +247 -0
- package/dist/storage/service.js.map +1 -0
- package/dist/storage/upload.d.ts +50 -0
- package/dist/storage/upload.d.ts.map +1 -0
- package/dist/storage/upload.js +246 -0
- package/dist/storage/upload.js.map +1 -0
- package/package.json +156 -3
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The out-of-band action-code family: the four APIs that SEND a code and
|
|
3
|
+
* the four that REDEEM one.
|
|
4
|
+
*
|
|
5
|
+
* send — sendEmailVerification, sendPasswordResetEmail,
|
|
6
|
+
* verifyBeforeUpdateEmail
|
|
7
|
+
* redeem — applyActionCode, checkActionCode, verifyPasswordResetCode,
|
|
8
|
+
* confirmPasswordReset
|
|
9
|
+
*
|
|
10
|
+
* ─── What production actually does, and what we could observe ───────
|
|
11
|
+
* These flows have a step no program can take: a human opens an inbox
|
|
12
|
+
* and clicks a link. We probed production for everything on THIS side of
|
|
13
|
+
* that gap and captured it under `observations/auth/`:
|
|
14
|
+
*
|
|
15
|
+
* - `applyActionCode` with a code the project never issued throws
|
|
16
|
+
* `auth/invalid-action-code` (auth-action-code-invalid). Oracle-backed.
|
|
17
|
+
* - `sendEmailVerification` on an ANONYMOUS user (no email on the
|
|
18
|
+
* account) throws `auth/missing-email` (auth-sendemailverification-shape).
|
|
19
|
+
* Oracle-backed.
|
|
20
|
+
* - `sendPasswordResetEmail` for an address no account owns RESOLVES,
|
|
21
|
+
* it does not throw — Email Enumeration Protection is on by default
|
|
22
|
+
* and refusing to leak account existence is the point. A malformed
|
|
23
|
+
* address still throws `auth/invalid-email`
|
|
24
|
+
* (auth-sendpasswordresetemail-unknown-user). Oracle-backed.
|
|
25
|
+
*
|
|
26
|
+
* And what we could NOT observe, stated plainly rather than guessed:
|
|
27
|
+
* the oracle project has the Email/Password provider DISABLED, so
|
|
28
|
+
* `checkActionCode` / `verifyPasswordResetCode` / `confirmPasswordReset`
|
|
29
|
+
* answered `auth/operation-not-allowed` — the provider gate replying
|
|
30
|
+
* before the invalid-code contract could. Their `auth/invalid-action-code`
|
|
31
|
+
* behavior here is therefore UNIT-BACKED and matched to
|
|
32
|
+
* `AuthErrorCodes.INVALID_OOB_CODE` (itself oracle-captured), not
|
|
33
|
+
* oracle-backed. The registry rows say so.
|
|
34
|
+
*
|
|
35
|
+
* ─── The sandbox's model ────────────────────────────────────────────
|
|
36
|
+
* The sandbox IS the mail server. A send mints a real, single-use code,
|
|
37
|
+
* builds the real link, and drops the message in an outbox the caller can
|
|
38
|
+
* read (`sandbox.takeAuthMail`). A redeem takes that same code and
|
|
39
|
+
* performs the real state change. So the round trip that production
|
|
40
|
+
* cannot complete without a human, the sandbox completes in-process —
|
|
41
|
+
* which is the entire reason these APIs are mockable at all.
|
|
42
|
+
*/
|
|
43
|
+
import type { SandboxTarget } from './target.js';
|
|
44
|
+
import type { Auth, User } from './types.js';
|
|
45
|
+
import { type UserInternal } from './types.js';
|
|
46
|
+
/**
|
|
47
|
+
* `ActionCodeSettings` — mirror of `firebase/auth`. The continue-URL
|
|
48
|
+
* contract for a mailed link.
|
|
49
|
+
*/
|
|
50
|
+
export interface ActionCodeSettings {
|
|
51
|
+
/** Where the link sends the user when they click it. REQUIRED. */
|
|
52
|
+
url: string;
|
|
53
|
+
/** Handle the code inside the app rather than on the web widget.
|
|
54
|
+
* REQUIRED (`true`) for `sendSignInLinkToEmail`. */
|
|
55
|
+
handleCodeInApp?: boolean;
|
|
56
|
+
iOS?: {
|
|
57
|
+
bundleId: string;
|
|
58
|
+
};
|
|
59
|
+
android?: {
|
|
60
|
+
packageName: string;
|
|
61
|
+
installApp?: boolean;
|
|
62
|
+
minimumVersion?: string;
|
|
63
|
+
};
|
|
64
|
+
/** Deprecated upstream alias of the Hosting link domain. */
|
|
65
|
+
dynamicLinkDomain?: string;
|
|
66
|
+
linkDomain?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* What `checkActionCode` returns. Mirror of `firebase/auth`'s
|
|
70
|
+
* `ActionCodeInfo`.
|
|
71
|
+
*/
|
|
72
|
+
export interface ActionCodeInfo {
|
|
73
|
+
data: {
|
|
74
|
+
/** The account the code acts on. */
|
|
75
|
+
email?: string | null;
|
|
76
|
+
/** For `VERIFY_AND_CHANGE_EMAIL`: the address being moved AWAY from. */
|
|
77
|
+
previousEmail?: string | null;
|
|
78
|
+
multiFactorInfo?: null;
|
|
79
|
+
};
|
|
80
|
+
/** One of {@link ActionCodeOperation}. */
|
|
81
|
+
operation: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Validate an {@link ActionCodeSettings}. Oracle-pinned on both arms
|
|
85
|
+
* that are CLIENT-side (and therefore project-independent):
|
|
86
|
+
*
|
|
87
|
+
* - no `url` at all -> `auth/invalid-continue-uri`. Note this is NOT
|
|
88
|
+
* `auth/missing-continue-uri`, which is what the code name suggests
|
|
89
|
+
* and what we expected: the capture
|
|
90
|
+
* (auth-sendsigninlinktoemail-settings-validation) says prod emits
|
|
91
|
+
* `invalid-continue-uri` for a missing url. Written to match the
|
|
92
|
+
* observation, not the guess.
|
|
93
|
+
* - a `url` that is not parseable -> `auth/invalid-continue-uri`.
|
|
94
|
+
*
|
|
95
|
+
* `auth/unauthorized-continue-uri` (the domain-allowlist arm) is a
|
|
96
|
+
* SERVER-side check against the project's authorized domains. The
|
|
97
|
+
* sandbox has no domain allowlist to check against and does not invent
|
|
98
|
+
* one — it accepts any parseable continue URL. Documented divergence.
|
|
99
|
+
*/
|
|
100
|
+
export declare function validateActionCodeSettings(settings: ActionCodeSettings | undefined, api: string): void;
|
|
101
|
+
/**
|
|
102
|
+
* Build the action link a message carries. Same query-param shape
|
|
103
|
+
* production uses, so the link this produces round-trips through
|
|
104
|
+
* {@link parseActionCodeURL} and {@link isSignInWithEmailLink}
|
|
105
|
+
* unchanged — which is what makes the sandbox's mail a real substitute
|
|
106
|
+
* for the real one.
|
|
107
|
+
*/
|
|
108
|
+
export declare function buildActionLink(mode: string, code: string, continueUrl: string | null): string;
|
|
109
|
+
/** The `mode` query param for each operation — the inverse of the
|
|
110
|
+
* parser's map. */
|
|
111
|
+
export declare const OPERATION_TO_MODE: Record<string, string>;
|
|
112
|
+
/**
|
|
113
|
+
* `sendPasswordResetEmail(auth, email, settings?)` — mirror of
|
|
114
|
+
* `firebase/auth`.
|
|
115
|
+
*
|
|
116
|
+
* Resolves for an address no account owns, WITHOUT throwing and without
|
|
117
|
+
* mailing anything. That is not laziness: it is Email Enumeration
|
|
118
|
+
* Protection, and the oracle confirmed prod behaves exactly this way
|
|
119
|
+
* (`auth-sendpasswordresetemail-unknown-user`:
|
|
120
|
+
* `resolvedForUnknownUser: true`). A shim that threw
|
|
121
|
+
* `auth/user-not-found` here would hand agent code a working account
|
|
122
|
+
* oracle that production deliberately took away.
|
|
123
|
+
*
|
|
124
|
+
* A malformed address still throws `auth/invalid-email` — also
|
|
125
|
+
* oracle-confirmed.
|
|
126
|
+
*/
|
|
127
|
+
export declare function sendPasswordResetEmail(auth: Auth, email: string, settings?: ActionCodeSettings): Promise<void>;
|
|
128
|
+
/**
|
|
129
|
+
* `sendEmailVerification(user, settings?)` — mirror of `firebase/auth`.
|
|
130
|
+
*
|
|
131
|
+
* Throws `auth/missing-email` for a user with no email on the account
|
|
132
|
+
* (an anonymous user). Oracle-backed:
|
|
133
|
+
* `auth-sendemailverification-shape` captured exactly that code against
|
|
134
|
+
* prod for an anonymous user.
|
|
135
|
+
*
|
|
136
|
+
* On success the message is mailed and NOTHING ELSE HAPPENS —
|
|
137
|
+
* `user.emailVerified` stays false. Verification happens when the code
|
|
138
|
+
* in that message is redeemed (`applyActionCode`), not when it is sent.
|
|
139
|
+
* Modeling that gap faithfully is the whole point: agent code that
|
|
140
|
+
* gates on `emailVerified` must see it stay false here, exactly as it
|
|
141
|
+
* would in production.
|
|
142
|
+
*/
|
|
143
|
+
export declare function sendEmailVerification(user: User, settings?: ActionCodeSettings): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* `verifyBeforeUpdateEmail(user, newEmail, settings?)` — mirror of
|
|
146
|
+
* `firebase/auth`.
|
|
147
|
+
*
|
|
148
|
+
* Mails a code to the NEW address and returns. The account's email does
|
|
149
|
+
* NOT change yet — it changes when that code is redeemed, which is the
|
|
150
|
+
* one guarantee separating this API from a bare `updateEmail`: the user
|
|
151
|
+
* must prove they control the new address before it becomes theirs.
|
|
152
|
+
*/
|
|
153
|
+
export declare function verifyBeforeUpdateEmail(user: User, newEmail: string, settings?: ActionCodeSettings): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* `applyActionCode(auth, code)` — mirror of `firebase/auth`. Redeems a
|
|
156
|
+
* code and performs its state change.
|
|
157
|
+
*
|
|
158
|
+
* `auth/invalid-action-code` for a code the sandbox never issued —
|
|
159
|
+
* ORACLE-BACKED (`auth-action-code-invalid` captured exactly this
|
|
160
|
+
* against prod, for both a bogus code and the empty string).
|
|
161
|
+
* `auth/expired-action-code` for a code staged as expired.
|
|
162
|
+
*
|
|
163
|
+
* Single-use: the code is burned on redemption, so a replay throws
|
|
164
|
+
* `auth/invalid-action-code` — matching prod.
|
|
165
|
+
*/
|
|
166
|
+
export declare function applyActionCode(auth: Auth, code: string): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* `checkActionCode(auth, code)` — mirror of `firebase/auth`. Inspects a
|
|
169
|
+
* code WITHOUT redeeming it, so the subsequent `applyActionCode` /
|
|
170
|
+
* `confirmPasswordReset` still finds it. Throws
|
|
171
|
+
* `auth/invalid-action-code` / `auth/expired-action-code` for a code
|
|
172
|
+
* that is not live.
|
|
173
|
+
*/
|
|
174
|
+
export declare function checkActionCode(auth: Auth, code: string): Promise<ActionCodeInfo>;
|
|
175
|
+
/**
|
|
176
|
+
* `verifyPasswordResetCode(auth, code)` — mirror of `firebase/auth`.
|
|
177
|
+
* Checks a reset code and returns the account's email. Does NOT redeem
|
|
178
|
+
* it — `confirmPasswordReset` does.
|
|
179
|
+
*/
|
|
180
|
+
export declare function verifyPasswordResetCode(auth: Auth, code: string): Promise<string>;
|
|
181
|
+
/**
|
|
182
|
+
* `confirmPasswordReset(auth, code, newPassword)` — mirror of
|
|
183
|
+
* `firebase/auth`. Redeems a reset code and sets the new password.
|
|
184
|
+
*
|
|
185
|
+
* Real behavior on the sandbox: afterwards
|
|
186
|
+
* `signInWithEmailAndPassword(auth, email, newPassword)` succeeds and
|
|
187
|
+
* the OLD password throws `auth/wrong-password`. The new password runs
|
|
188
|
+
* the same strength check `createUserWithEmailAndPassword` does, so a
|
|
189
|
+
* reset cannot install a password the create path would have rejected
|
|
190
|
+
* (`auth/weak-password`).
|
|
191
|
+
*/
|
|
192
|
+
export declare function confirmPasswordReset(auth: Auth, code: string, newPassword: string): Promise<void>;
|
|
193
|
+
/** The sandbox target behind an `Auth` handle. */
|
|
194
|
+
export declare function requireSandboxTarget(auth: Auth, api: string): SandboxTarget;
|
|
195
|
+
/** The sandbox target behind a `User`, recovered from the user alone —
|
|
196
|
+
* the whole reason {@link UserInternal.target} exists (these APIs are
|
|
197
|
+
* handed a `User` and no `Auth`). */
|
|
198
|
+
export declare function requireSandboxUser(user: User, api: string): SandboxTarget;
|
|
199
|
+
/** Recover the backend hook stamped on every `User`. */
|
|
200
|
+
export declare function userInternal(user: User, name: string): UserInternal;
|
|
201
|
+
//# sourceMappingURL=action-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-codes.d.ts","sourceRoot":"","sources":["../../src/auth/action-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG9D;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAC;IACZ;yDACqD;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,GAAG,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3B,OAAO,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjF,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE;QACJ,oCAAoC;QACpC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC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CAAC,CAgBvF;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAWvF;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAcf;AAkED,kDAAkD;AAClD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,aAAa,CAG3E;AAED;;sCAEsC;AACtC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,aAAa,CAEzE;AAED,wDAAwD;AACxD,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CASnE"}
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The out-of-band action-code family: the four APIs that SEND a code and
|
|
3
|
+
* the four that REDEEM one.
|
|
4
|
+
*
|
|
5
|
+
* send — sendEmailVerification, sendPasswordResetEmail,
|
|
6
|
+
* verifyBeforeUpdateEmail
|
|
7
|
+
* redeem — applyActionCode, checkActionCode, verifyPasswordResetCode,
|
|
8
|
+
* confirmPasswordReset
|
|
9
|
+
*
|
|
10
|
+
* ─── What production actually does, and what we could observe ───────
|
|
11
|
+
* These flows have a step no program can take: a human opens an inbox
|
|
12
|
+
* and clicks a link. We probed production for everything on THIS side of
|
|
13
|
+
* that gap and captured it under `observations/auth/`:
|
|
14
|
+
*
|
|
15
|
+
* - `applyActionCode` with a code the project never issued throws
|
|
16
|
+
* `auth/invalid-action-code` (auth-action-code-invalid). Oracle-backed.
|
|
17
|
+
* - `sendEmailVerification` on an ANONYMOUS user (no email on the
|
|
18
|
+
* account) throws `auth/missing-email` (auth-sendemailverification-shape).
|
|
19
|
+
* Oracle-backed.
|
|
20
|
+
* - `sendPasswordResetEmail` for an address no account owns RESOLVES,
|
|
21
|
+
* it does not throw — Email Enumeration Protection is on by default
|
|
22
|
+
* and refusing to leak account existence is the point. A malformed
|
|
23
|
+
* address still throws `auth/invalid-email`
|
|
24
|
+
* (auth-sendpasswordresetemail-unknown-user). Oracle-backed.
|
|
25
|
+
*
|
|
26
|
+
* And what we could NOT observe, stated plainly rather than guessed:
|
|
27
|
+
* the oracle project has the Email/Password provider DISABLED, so
|
|
28
|
+
* `checkActionCode` / `verifyPasswordResetCode` / `confirmPasswordReset`
|
|
29
|
+
* answered `auth/operation-not-allowed` — the provider gate replying
|
|
30
|
+
* before the invalid-code contract could. Their `auth/invalid-action-code`
|
|
31
|
+
* behavior here is therefore UNIT-BACKED and matched to
|
|
32
|
+
* `AuthErrorCodes.INVALID_OOB_CODE` (itself oracle-captured), not
|
|
33
|
+
* oracle-backed. The registry rows say so.
|
|
34
|
+
*
|
|
35
|
+
* ─── The sandbox's model ────────────────────────────────────────────
|
|
36
|
+
* The sandbox IS the mail server. A send mints a real, single-use code,
|
|
37
|
+
* builds the real link, and drops the message in an outbox the caller can
|
|
38
|
+
* read (`sandbox.takeAuthMail`). A redeem takes that same code and
|
|
39
|
+
* performs the real state change. So the round trip that production
|
|
40
|
+
* cannot complete without a human, the sandbox completes in-process —
|
|
41
|
+
* which is the entire reason these APIs are mockable at all.
|
|
42
|
+
*/
|
|
43
|
+
import { makeAuthError } from './auth-errors.js';
|
|
44
|
+
import { ActionCodeOperation } from './enums.js';
|
|
45
|
+
import { targetOf } from './target.js';
|
|
46
|
+
import { USER_INTERNAL } from './types.js';
|
|
47
|
+
// ─── Continue-URL validation ──────────────────────────────────────────
|
|
48
|
+
/**
|
|
49
|
+
* Validate an {@link ActionCodeSettings}. Oracle-pinned on both arms
|
|
50
|
+
* that are CLIENT-side (and therefore project-independent):
|
|
51
|
+
*
|
|
52
|
+
* - no `url` at all -> `auth/invalid-continue-uri`. Note this is NOT
|
|
53
|
+
* `auth/missing-continue-uri`, which is what the code name suggests
|
|
54
|
+
* and what we expected: the capture
|
|
55
|
+
* (auth-sendsigninlinktoemail-settings-validation) says prod emits
|
|
56
|
+
* `invalid-continue-uri` for a missing url. Written to match the
|
|
57
|
+
* observation, not the guess.
|
|
58
|
+
* - a `url` that is not parseable -> `auth/invalid-continue-uri`.
|
|
59
|
+
*
|
|
60
|
+
* `auth/unauthorized-continue-uri` (the domain-allowlist arm) is a
|
|
61
|
+
* SERVER-side check against the project's authorized domains. The
|
|
62
|
+
* sandbox has no domain allowlist to check against and does not invent
|
|
63
|
+
* one — it accepts any parseable continue URL. Documented divergence.
|
|
64
|
+
*/
|
|
65
|
+
export function validateActionCodeSettings(settings, api) {
|
|
66
|
+
const url = settings?.url;
|
|
67
|
+
if (typeof url !== 'string' || url.length === 0) {
|
|
68
|
+
throw makeAuthError('auth/invalid-continue-uri', `${api}: the continue URL provided in the request is invalid.`);
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
new URL(url);
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
throw makeAuthError('auth/invalid-continue-uri', `${api}: the continue URL provided in the request is invalid.`);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Build the action link a message carries. Same query-param shape
|
|
79
|
+
* production uses, so the link this produces round-trips through
|
|
80
|
+
* {@link parseActionCodeURL} and {@link isSignInWithEmailLink}
|
|
81
|
+
* unchanged — which is what makes the sandbox's mail a real substitute
|
|
82
|
+
* for the real one.
|
|
83
|
+
*/
|
|
84
|
+
export function buildActionLink(mode, code, continueUrl) {
|
|
85
|
+
// A sandbox-local default when the caller supplied no continue URL
|
|
86
|
+
// (the reset/verify APIs make settings optional).
|
|
87
|
+
const base = continueUrl ?? 'https://sandbox.pyric.dev/__/auth/action';
|
|
88
|
+
const url = new URL(base);
|
|
89
|
+
url.searchParams.set('mode', mode);
|
|
90
|
+
url.searchParams.set('oobCode', code);
|
|
91
|
+
url.searchParams.set('apiKey', 'sandbox-api-key');
|
|
92
|
+
if (continueUrl)
|
|
93
|
+
url.searchParams.set('continueUrl', continueUrl);
|
|
94
|
+
return url.toString();
|
|
95
|
+
}
|
|
96
|
+
/** The `mode` query param for each operation — the inverse of the
|
|
97
|
+
* parser's map. */
|
|
98
|
+
export const OPERATION_TO_MODE = {
|
|
99
|
+
[ActionCodeOperation.PASSWORD_RESET]: 'resetPassword',
|
|
100
|
+
[ActionCodeOperation.VERIFY_EMAIL]: 'verifyEmail',
|
|
101
|
+
[ActionCodeOperation.EMAIL_SIGNIN]: 'signIn',
|
|
102
|
+
[ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL]: 'verifyAndChangeEmail',
|
|
103
|
+
[ActionCodeOperation.RECOVER_EMAIL]: 'recoverEmail',
|
|
104
|
+
};
|
|
105
|
+
// ─── Sending ──────────────────────────────────────────────────────────
|
|
106
|
+
/**
|
|
107
|
+
* `sendPasswordResetEmail(auth, email, settings?)` — mirror of
|
|
108
|
+
* `firebase/auth`.
|
|
109
|
+
*
|
|
110
|
+
* Resolves for an address no account owns, WITHOUT throwing and without
|
|
111
|
+
* mailing anything. That is not laziness: it is Email Enumeration
|
|
112
|
+
* Protection, and the oracle confirmed prod behaves exactly this way
|
|
113
|
+
* (`auth-sendpasswordresetemail-unknown-user`:
|
|
114
|
+
* `resolvedForUnknownUser: true`). A shim that threw
|
|
115
|
+
* `auth/user-not-found` here would hand agent code a working account
|
|
116
|
+
* oracle that production deliberately took away.
|
|
117
|
+
*
|
|
118
|
+
* A malformed address still throws `auth/invalid-email` — also
|
|
119
|
+
* oracle-confirmed.
|
|
120
|
+
*/
|
|
121
|
+
export async function sendPasswordResetEmail(auth, email, settings) {
|
|
122
|
+
const t = targetOf(auth);
|
|
123
|
+
const target = t;
|
|
124
|
+
if (settings)
|
|
125
|
+
validateActionCodeSettings(settings, 'sendPasswordResetEmail');
|
|
126
|
+
assertEmailFormat(email, 'sendPasswordResetEmail');
|
|
127
|
+
const stored = target.backend.findByEmail(email);
|
|
128
|
+
if (!stored) {
|
|
129
|
+
// Enumeration protection: resolve silently. No mail, no code, no tell.
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
emit(target, {
|
|
133
|
+
operation: ActionCodeOperation.PASSWORD_RESET,
|
|
134
|
+
email: stored.email ?? email,
|
|
135
|
+
}, settings);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* `sendEmailVerification(user, settings?)` — mirror of `firebase/auth`.
|
|
139
|
+
*
|
|
140
|
+
* Throws `auth/missing-email` for a user with no email on the account
|
|
141
|
+
* (an anonymous user). Oracle-backed:
|
|
142
|
+
* `auth-sendemailverification-shape` captured exactly that code against
|
|
143
|
+
* prod for an anonymous user.
|
|
144
|
+
*
|
|
145
|
+
* On success the message is mailed and NOTHING ELSE HAPPENS —
|
|
146
|
+
* `user.emailVerified` stays false. Verification happens when the code
|
|
147
|
+
* in that message is redeemed (`applyActionCode`), not when it is sent.
|
|
148
|
+
* Modeling that gap faithfully is the whole point: agent code that
|
|
149
|
+
* gates on `emailVerified` must see it stay false here, exactly as it
|
|
150
|
+
* would in production.
|
|
151
|
+
*/
|
|
152
|
+
export async function sendEmailVerification(user, settings) {
|
|
153
|
+
const t = userInternal(user, 'sendEmailVerification').target;
|
|
154
|
+
const target = t;
|
|
155
|
+
if (settings)
|
|
156
|
+
validateActionCodeSettings(settings, 'sendEmailVerification');
|
|
157
|
+
if (!user.email) {
|
|
158
|
+
throw makeAuthError('auth/missing-email', 'An email address must be provided.');
|
|
159
|
+
}
|
|
160
|
+
emit(target, {
|
|
161
|
+
operation: ActionCodeOperation.VERIFY_EMAIL,
|
|
162
|
+
email: user.email,
|
|
163
|
+
}, settings);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* `verifyBeforeUpdateEmail(user, newEmail, settings?)` — mirror of
|
|
167
|
+
* `firebase/auth`.
|
|
168
|
+
*
|
|
169
|
+
* Mails a code to the NEW address and returns. The account's email does
|
|
170
|
+
* NOT change yet — it changes when that code is redeemed, which is the
|
|
171
|
+
* one guarantee separating this API from a bare `updateEmail`: the user
|
|
172
|
+
* must prove they control the new address before it becomes theirs.
|
|
173
|
+
*/
|
|
174
|
+
export async function verifyBeforeUpdateEmail(user, newEmail, settings) {
|
|
175
|
+
const t = userInternal(user, 'verifyBeforeUpdateEmail').target;
|
|
176
|
+
const target = t;
|
|
177
|
+
if (settings)
|
|
178
|
+
validateActionCodeSettings(settings, 'verifyBeforeUpdateEmail');
|
|
179
|
+
assertEmailFormat(newEmail, 'verifyBeforeUpdateEmail');
|
|
180
|
+
if (!user.email) {
|
|
181
|
+
throw makeAuthError('auth/missing-email', 'An email address must be provided.');
|
|
182
|
+
}
|
|
183
|
+
emit(target, {
|
|
184
|
+
operation: ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL,
|
|
185
|
+
email: user.email,
|
|
186
|
+
newEmail,
|
|
187
|
+
// The code is mailed TO the new address — that is what makes
|
|
188
|
+
// redeeming it proof of control.
|
|
189
|
+
deliverTo: newEmail,
|
|
190
|
+
}, settings);
|
|
191
|
+
}
|
|
192
|
+
// ─── Redeeming ────────────────────────────────────────────────────────
|
|
193
|
+
/**
|
|
194
|
+
* `applyActionCode(auth, code)` — mirror of `firebase/auth`. Redeems a
|
|
195
|
+
* code and performs its state change.
|
|
196
|
+
*
|
|
197
|
+
* `auth/invalid-action-code` for a code the sandbox never issued —
|
|
198
|
+
* ORACLE-BACKED (`auth-action-code-invalid` captured exactly this
|
|
199
|
+
* against prod, for both a bogus code and the empty string).
|
|
200
|
+
* `auth/expired-action-code` for a code staged as expired.
|
|
201
|
+
*
|
|
202
|
+
* Single-use: the code is burned on redemption, so a replay throws
|
|
203
|
+
* `auth/invalid-action-code` — matching prod.
|
|
204
|
+
*/
|
|
205
|
+
export async function applyActionCode(auth, code) {
|
|
206
|
+
const t = targetOf(auth);
|
|
207
|
+
const target = t;
|
|
208
|
+
const spec = redeem(target, code, 'applyActionCode');
|
|
209
|
+
switch (spec.operation) {
|
|
210
|
+
case ActionCodeOperation.VERIFY_EMAIL:
|
|
211
|
+
target.backend.setEmailVerified(spec.email, true);
|
|
212
|
+
return;
|
|
213
|
+
case ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL:
|
|
214
|
+
if (!spec.newEmail) {
|
|
215
|
+
throw makeAuthError('auth/invalid-action-code', 'applyActionCode: the action code carries no target address.');
|
|
216
|
+
}
|
|
217
|
+
target.backend.changeEmail(spec.email, spec.newEmail);
|
|
218
|
+
return;
|
|
219
|
+
case ActionCodeOperation.RECOVER_EMAIL:
|
|
220
|
+
target.backend.setEmailVerified(spec.email, true);
|
|
221
|
+
return;
|
|
222
|
+
case ActionCodeOperation.PASSWORD_RESET:
|
|
223
|
+
// Prod rejects this: a reset code carries no new password, so
|
|
224
|
+
// applyActionCode has nothing to apply. `confirmPasswordReset` is
|
|
225
|
+
// the API that redeems it.
|
|
226
|
+
throw makeAuthError('auth/invalid-action-code', 'applyActionCode: a password-reset code must be redeemed with confirmPasswordReset(auth, code, newPassword).');
|
|
227
|
+
default:
|
|
228
|
+
throw makeAuthError('auth/invalid-action-code', `applyActionCode: unsupported operation ${spec.operation}.`);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* `checkActionCode(auth, code)` — mirror of `firebase/auth`. Inspects a
|
|
233
|
+
* code WITHOUT redeeming it, so the subsequent `applyActionCode` /
|
|
234
|
+
* `confirmPasswordReset` still finds it. Throws
|
|
235
|
+
* `auth/invalid-action-code` / `auth/expired-action-code` for a code
|
|
236
|
+
* that is not live.
|
|
237
|
+
*/
|
|
238
|
+
export async function checkActionCode(auth, code) {
|
|
239
|
+
const t = targetOf(auth);
|
|
240
|
+
const target = t;
|
|
241
|
+
const spec = peek(target, code, 'checkActionCode');
|
|
242
|
+
// For a change-email code, `email` is where the code was mailed (the
|
|
243
|
+
// NEW address) and `previousEmail` is the account's current one —
|
|
244
|
+
// matching upstream's ActionCodeInfo shape.
|
|
245
|
+
const isChange = spec.operation === ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL;
|
|
246
|
+
return {
|
|
247
|
+
operation: spec.operation,
|
|
248
|
+
data: {
|
|
249
|
+
email: isChange ? (spec.newEmail ?? null) : spec.email,
|
|
250
|
+
previousEmail: isChange ? spec.email : null,
|
|
251
|
+
multiFactorInfo: null,
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* `verifyPasswordResetCode(auth, code)` — mirror of `firebase/auth`.
|
|
257
|
+
* Checks a reset code and returns the account's email. Does NOT redeem
|
|
258
|
+
* it — `confirmPasswordReset` does.
|
|
259
|
+
*/
|
|
260
|
+
export async function verifyPasswordResetCode(auth, code) {
|
|
261
|
+
const t = targetOf(auth);
|
|
262
|
+
const target = t;
|
|
263
|
+
const spec = peek(target, code, 'verifyPasswordResetCode');
|
|
264
|
+
if (spec.operation !== ActionCodeOperation.PASSWORD_RESET) {
|
|
265
|
+
throw makeAuthError('auth/invalid-action-code', 'verifyPasswordResetCode: the action code is not a password-reset code.');
|
|
266
|
+
}
|
|
267
|
+
return spec.email;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* `confirmPasswordReset(auth, code, newPassword)` — mirror of
|
|
271
|
+
* `firebase/auth`. Redeems a reset code and sets the new password.
|
|
272
|
+
*
|
|
273
|
+
* Real behavior on the sandbox: afterwards
|
|
274
|
+
* `signInWithEmailAndPassword(auth, email, newPassword)` succeeds and
|
|
275
|
+
* the OLD password throws `auth/wrong-password`. The new password runs
|
|
276
|
+
* the same strength check `createUserWithEmailAndPassword` does, so a
|
|
277
|
+
* reset cannot install a password the create path would have rejected
|
|
278
|
+
* (`auth/weak-password`).
|
|
279
|
+
*/
|
|
280
|
+
export async function confirmPasswordReset(auth, code, newPassword) {
|
|
281
|
+
const t = targetOf(auth);
|
|
282
|
+
const target = t;
|
|
283
|
+
// Peek first: a weak-password rejection must NOT burn the code, or the
|
|
284
|
+
// user's one reset link would be destroyed by a typo.
|
|
285
|
+
const spec = peek(target, code, 'confirmPasswordReset');
|
|
286
|
+
if (spec.operation !== ActionCodeOperation.PASSWORD_RESET) {
|
|
287
|
+
throw makeAuthError('auth/invalid-action-code', 'confirmPasswordReset: the action code is not a password-reset code.');
|
|
288
|
+
}
|
|
289
|
+
target.backend.setPasswordByEmail(spec.email, newPassword);
|
|
290
|
+
target.backend.consumeActionCode(code);
|
|
291
|
+
}
|
|
292
|
+
// ─── Shared internals ─────────────────────────────────────────────────
|
|
293
|
+
/** Mint a code, build its link, and post the message to the outbox. */
|
|
294
|
+
function emit(target, spec, settings) {
|
|
295
|
+
const { deliverTo, ...code } = spec;
|
|
296
|
+
const oob = target.backend.mintActionCode(code);
|
|
297
|
+
const mode = OPERATION_TO_MODE[spec.operation] ?? 'signIn';
|
|
298
|
+
const link = buildActionLink(mode, oob, settings?.url ?? null);
|
|
299
|
+
target.backend.deliverMail({
|
|
300
|
+
operation: spec.operation,
|
|
301
|
+
// The recipient — normally the account's address, but for
|
|
302
|
+
// verify-and-change it is the NEW address the code proves control of.
|
|
303
|
+
email: deliverTo ?? spec.email,
|
|
304
|
+
code: oob,
|
|
305
|
+
link,
|
|
306
|
+
...(spec.newEmail ? { newEmail: spec.newEmail } : {}),
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
/** Read a code without burning it; throw the live-ness errors. */
|
|
310
|
+
function peek(target, code, api) {
|
|
311
|
+
const spec = target.backend.peekActionCode(code);
|
|
312
|
+
assertLive(spec, code, api);
|
|
313
|
+
return spec;
|
|
314
|
+
}
|
|
315
|
+
/** Read a code AND burn it; throw the live-ness errors. Single-use. */
|
|
316
|
+
function redeem(target, code, api) {
|
|
317
|
+
const spec = target.backend.peekActionCode(code);
|
|
318
|
+
assertLive(spec, code, api);
|
|
319
|
+
target.backend.consumeActionCode(code);
|
|
320
|
+
return spec;
|
|
321
|
+
}
|
|
322
|
+
function assertLive(spec, code, api) {
|
|
323
|
+
if (!spec) {
|
|
324
|
+
throw makeAuthError('auth/invalid-action-code', `${api}: the action code is invalid. This can happen if the code is malformed, expired, or has already been used.`);
|
|
325
|
+
}
|
|
326
|
+
if (spec.expired) {
|
|
327
|
+
throw makeAuthError('auth/expired-action-code', `${api}: the action code has expired.`);
|
|
328
|
+
}
|
|
329
|
+
void code;
|
|
330
|
+
}
|
|
331
|
+
function assertEmailFormat(email, api) {
|
|
332
|
+
if (typeof email !== 'string' || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
|
|
333
|
+
throw makeAuthError('auth/invalid-email', `${api}: the email address is badly formatted.`);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
/** The sandbox target behind an `Auth` handle. */
|
|
337
|
+
export function requireSandboxTarget(auth, api) {
|
|
338
|
+
void api;
|
|
339
|
+
return targetOf(auth);
|
|
340
|
+
}
|
|
341
|
+
/** The sandbox target behind a `User`, recovered from the user alone —
|
|
342
|
+
* the whole reason {@link UserInternal.target} exists (these APIs are
|
|
343
|
+
* handed a `User` and no `Auth`). */
|
|
344
|
+
export function requireSandboxUser(user, api) {
|
|
345
|
+
return userInternal(user, api).target;
|
|
346
|
+
}
|
|
347
|
+
/** Recover the backend hook stamped on every `User`. */
|
|
348
|
+
export function userInternal(user, name) {
|
|
349
|
+
const internal = user[USER_INTERNAL];
|
|
350
|
+
if (!internal) {
|
|
351
|
+
throw makeAuthError('auth/invalid-user-token', `${name}: unrecognized user — was it produced by a pyric/auth sign-in?`);
|
|
352
|
+
}
|
|
353
|
+
return internal;
|
|
354
|
+
}
|
|
355
|
+
//# sourceMappingURL=action-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-codes.js","sourceRoot":"","sources":["../../src/auth/action-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,aAAa,EAA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,MAAM,aAAa,CACjB,yBAAyB,EACzB,GAAG,IAAI,gEAAgE,CACxE,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth error factory — the shared primitive every sandbox auth module
|
|
3
|
+
* throws through. Extracted from `sandbox-backend.ts` so the backend
|
|
4
|
+
* core and credential validators share one definition without a
|
|
5
|
+
* re-export chain.
|
|
6
|
+
*/
|
|
7
|
+
import { FirebaseError } from '../sandbox/internal/firebase-error.js';
|
|
8
|
+
/**
|
|
9
|
+
* Build a Firebase-shaped `FirebaseError` from the sandbox-owned app mirror,
|
|
10
|
+
* with the prod message wrapper `Firebase: <message> (<code>).`
|
|
11
|
+
* (`clones/.../util/src/errors.ts:121` — `${serviceName}: ${message}
|
|
12
|
+
* (${fullCode}).`, serviceName `Firebase`). So consumer code that does
|
|
13
|
+
* `err instanceof FirebaseError` or matches on the wrapped message sees
|
|
14
|
+
* the same error shape as Firebase (AUTH-GAP). `.code` is preserved.
|
|
15
|
+
*
|
|
16
|
+
* Oracle-pinned shapes this reproduces:
|
|
17
|
+
* - `Firebase: Error (auth/invalid-email).`
|
|
18
|
+
* - `Firebase: Password should be at least 6 characters (auth/weak-password).`
|
|
19
|
+
*/
|
|
20
|
+
export declare function makeAuthError(code: string, message: string): FirebaseError;
|
|
21
|
+
//# sourceMappingURL=auth-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-errors.d.ts","sourceRoot":"","sources":["../../src/auth/auth-errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,aAAa,CAE1E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auth error factory — the shared primitive every sandbox auth module
|
|
3
|
+
* throws through. Extracted from `sandbox-backend.ts` so the backend
|
|
4
|
+
* core and credential validators share one definition without a
|
|
5
|
+
* re-export chain.
|
|
6
|
+
*/
|
|
7
|
+
import { FirebaseError } from '../sandbox/internal/firebase-error.js';
|
|
8
|
+
/**
|
|
9
|
+
* Build a Firebase-shaped `FirebaseError` from the sandbox-owned app mirror,
|
|
10
|
+
* with the prod message wrapper `Firebase: <message> (<code>).`
|
|
11
|
+
* (`clones/.../util/src/errors.ts:121` — `${serviceName}: ${message}
|
|
12
|
+
* (${fullCode}).`, serviceName `Firebase`). So consumer code that does
|
|
13
|
+
* `err instanceof FirebaseError` or matches on the wrapped message sees
|
|
14
|
+
* the same error shape as Firebase (AUTH-GAP). `.code` is preserved.
|
|
15
|
+
*
|
|
16
|
+
* Oracle-pinned shapes this reproduces:
|
|
17
|
+
* - `Firebase: Error (auth/invalid-email).`
|
|
18
|
+
* - `Firebase: Password should be at least 6 characters (auth/weak-password).`
|
|
19
|
+
*/
|
|
20
|
+
export function makeAuthError(code, message) {
|
|
21
|
+
return new FirebaseError(code, `Firebase: ${message} (${code}).`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=auth-errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-errors.js","sourceRoot":"","sources":["../../src/auth/auth-errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY,EAAE,OAAe;IACzD,OAAO,IAAI,aAAa,CAAC,IAAI,EAAE,aAAa,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC;AACpE,CAAC"}
|