@rocicorp/zero 0.5.2024110200 → 0.6.2024111700
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/out/{internal.js → advanced.js} +2 -2
- package/out/{chunk-YCMA66NH.js → chunk-5UY46OAF.js} +5 -2
- package/out/{chunk-YCMA66NH.js.map → chunk-5UY46OAF.js.map} +2 -2
- package/out/{chunk-INJ4WJHS.js → chunk-PIFWXXO2.js} +1209 -586
- package/out/chunk-PIFWXXO2.js.map +7 -0
- package/out/react.js.map +2 -2
- package/out/shared/src/browser-env.d.ts +17 -0
- package/out/shared/src/browser-env.d.ts.map +1 -1
- package/out/shared/src/expand.d.ts +7 -0
- package/out/shared/src/expand.d.ts.map +1 -0
- package/out/solid.js +5 -5
- package/out/solid.js.map +2 -2
- package/out/zero-cache/src/auth/load-authorization.d.ts +3 -0
- package/out/zero-cache/src/auth/load-authorization.d.ts.map +1 -0
- package/out/zero-cache/src/auth/load-authorization.js +21 -0
- package/out/zero-cache/src/auth/load-authorization.js.map +1 -0
- package/out/zero-cache/src/config/config.d.ts +112 -0
- package/out/zero-cache/src/config/config.d.ts.map +1 -0
- package/out/zero-cache/src/config/config.js +246 -0
- package/out/zero-cache/src/config/config.js.map +1 -0
- package/out/zero-cache/src/config/zero-config.d.ts +145 -964
- package/out/zero-cache/src/config/zero-config.d.ts.map +1 -1
- package/out/zero-cache/src/config/zero-config.js +242 -115
- package/out/zero-cache/src/config/zero-config.js.map +1 -1
- package/out/zero-cache/src/db/delete-lite-db.d.ts +2 -0
- package/out/zero-cache/src/db/delete-lite-db.d.ts.map +1 -0
- package/out/zero-cache/src/db/delete-lite-db.js +7 -0
- package/out/zero-cache/src/db/delete-lite-db.js.map +1 -0
- package/out/zero-cache/src/db/migration.d.ts +1 -0
- package/out/zero-cache/src/db/migration.d.ts.map +1 -1
- package/out/zero-cache/src/db/migration.js +17 -7
- package/out/zero-cache/src/db/migration.js.map +1 -1
- package/out/zero-cache/src/db/pg-to-lite.d.ts +1 -1
- package/out/zero-cache/src/db/pg-to-lite.d.ts.map +1 -1
- package/out/zero-cache/src/db/pg-to-lite.js +7 -3
- package/out/zero-cache/src/db/pg-to-lite.js.map +1 -1
- package/out/zero-cache/src/db/short-lived-client.d.ts +16 -0
- package/out/zero-cache/src/db/short-lived-client.d.ts.map +1 -0
- package/out/zero-cache/src/db/short-lived-client.js +50 -0
- package/out/zero-cache/src/db/short-lived-client.js.map +1 -0
- package/out/zero-cache/src/db/specs.d.ts +12 -3
- package/out/zero-cache/src/db/specs.d.ts.map +1 -1
- package/out/zero-cache/src/db/specs.js +6 -1
- package/out/zero-cache/src/db/specs.js.map +1 -1
- package/out/zero-cache/src/db/transaction-pool.d.ts +8 -2
- package/out/zero-cache/src/db/transaction-pool.d.ts.map +1 -1
- package/out/zero-cache/src/db/transaction-pool.js +43 -9
- package/out/zero-cache/src/db/transaction-pool.js.map +1 -1
- package/out/zero-cache/src/server/change-streamer.d.ts.map +1 -1
- package/out/zero-cache/src/server/change-streamer.js +34 -9
- package/out/zero-cache/src/server/change-streamer.js.map +1 -1
- package/out/zero-cache/src/server/life-cycle.d.ts +1 -1
- package/out/zero-cache/src/server/life-cycle.d.ts.map +1 -1
- package/out/zero-cache/src/server/life-cycle.js +2 -3
- package/out/zero-cache/src/server/life-cycle.js.map +1 -1
- package/out/zero-cache/src/server/logging.d.ts.map +1 -1
- package/out/zero-cache/src/server/logging.js +2 -15
- package/out/zero-cache/src/server/logging.js.map +1 -1
- package/out/zero-cache/src/server/main.js +28 -10
- package/out/zero-cache/src/server/main.js.map +1 -1
- package/out/zero-cache/src/server/replicator.d.ts.map +1 -1
- package/out/zero-cache/src/server/replicator.js +6 -5
- package/out/zero-cache/src/server/replicator.js.map +1 -1
- package/out/zero-cache/src/server/syncer.d.ts.map +1 -1
- package/out/zero-cache/src/server/syncer.js +16 -12
- package/out/zero-cache/src/server/syncer.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +2 -3
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +2 -3
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts +153 -2
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.js +136 -19
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +17 -9
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer.js +4 -2
- package/out/zero-cache/src/services/change-streamer/change-streamer.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/forwarder.d.ts +1 -0
- package/out/zero-cache/src/services/change-streamer/forwarder.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/forwarder.js +9 -2
- package/out/zero-cache/src/services/change-streamer/forwarder.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/change-source.d.ts +10 -0
- package/out/zero-cache/src/services/change-streamer/pg/change-source.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/change-source.js +171 -24
- package/out/zero-cache/src/services/change-streamer/pg/change-source.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js +33 -19
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.d.ts +62 -39
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js +8 -40
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/init.d.ts +8 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/init.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/init.js +41 -8
- package/out/zero-cache/src/services/change-streamer/pg/schema/init.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.d.ts +83 -13
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.js +15 -5
- package/out/zero-cache/src/services/change-streamer/pg/schema/published.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.d.ts +39 -3
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.js +67 -36
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/validation.d.ts +8 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/validation.d.ts.map +1 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/validation.js +33 -0
- package/out/zero-cache/src/services/change-streamer/pg/schema/validation.js.map +1 -0
- package/out/zero-cache/src/services/change-streamer/schema/change.d.ts +5 -1
- package/out/zero-cache/src/services/change-streamer/schema/change.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/change.js +3 -0
- package/out/zero-cache/src/services/change-streamer/schema/change.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/init.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/init.js +4 -6
- package/out/zero-cache/src/services/change-streamer/schema/init.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts +6 -1
- package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/tables.js +19 -4
- package/out/zero-cache/src/services/change-streamer/schema/tables.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/storer.d.ts +29 -2
- package/out/zero-cache/src/services/change-streamer/storer.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/storer.js +90 -8
- package/out/zero-cache/src/services/change-streamer/storer.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/subscriber.d.ts +1 -0
- package/out/zero-cache/src/services/change-streamer/subscriber.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/subscriber.js +18 -3
- package/out/zero-cache/src/services/change-streamer/subscriber.js.map +1 -1
- package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts +5 -3
- package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts.map +1 -1
- package/out/zero-cache/src/services/dispatcher/dispatcher.js +20 -5
- package/out/zero-cache/src/services/dispatcher/dispatcher.js.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts +6 -5
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.js +26 -20
- package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -1
- package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts +7 -6
- package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/write-authorizer.js +10 -18
- package/out/zero-cache/src/services/mutagen/write-authorizer.js.map +1 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts +1 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.js +8 -8
- package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
- package/out/zero-cache/src/services/replicator/schema/replication-state.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/schema/replication-state.js +1 -10
- package/out/zero-cache/src/services/replicator/schema/replication-state.js.map +1 -1
- package/out/zero-cache/src/services/running-state.d.ts +6 -1
- package/out/zero-cache/src/services/running-state.d.ts.map +1 -1
- package/out/zero-cache/src/services/running-state.js +23 -5
- package/out/zero-cache/src/services/running-state.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +49 -29
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.js +2 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
- package/out/zero-cache/src/types/lexi-version.d.ts +3 -2
- package/out/zero-cache/src/types/lexi-version.d.ts.map +1 -1
- package/out/zero-cache/src/types/lexi-version.js +8 -6
- package/out/zero-cache/src/types/lexi-version.js.map +1 -1
- package/out/zero-cache/src/types/processes.d.ts.map +1 -1
- package/out/zero-cache/src/types/processes.js +1 -0
- package/out/zero-cache/src/types/processes.js.map +1 -1
- package/out/zero-cache/src/workers/replicator.d.ts.map +1 -1
- package/out/zero-cache/src/workers/replicator.js +2 -4
- package/out/zero-cache/src/workers/replicator.js.map +1 -1
- package/out/zero-cache/src/workers/syncer.js +1 -1
- package/out/zero-cache/src/workers/syncer.js.map +1 -1
- package/out/zero-client/src/client/crud.d.ts +56 -25
- package/out/zero-client/src/client/crud.d.ts.map +1 -1
- package/out/zero-client/src/client/http-string.d.ts +1 -0
- package/out/zero-client/src/client/http-string.d.ts.map +1 -1
- package/out/zero-client/src/client/log-options.d.ts +2 -1
- package/out/zero-client/src/client/log-options.d.ts.map +1 -1
- package/out/zero-client/src/client/options.d.ts +8 -8
- package/out/zero-client/src/client/options.d.ts.map +1 -1
- package/out/zero-client/src/client/protocol-version.d.ts +2 -0
- package/out/zero-client/src/client/protocol-version.d.ts.map +1 -0
- package/out/zero-client/src/client/server-option.d.ts.map +1 -1
- package/out/zero-client/src/client/zero-poke-handler.d.ts +1 -1
- package/out/zero-client/src/client/zero-poke-handler.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.d.ts +26 -14
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero-client/src/mod.d.ts +4 -2
- package/out/zero-client/src/mod.d.ts.map +1 -1
- package/out/zero-protocol/src/ast.d.ts +37 -21
- package/out/zero-protocol/src/ast.d.ts.map +1 -1
- package/out/zero-protocol/src/ast.js +21 -6
- package/out/zero-protocol/src/ast.js.map +1 -1
- package/out/zero-protocol/src/change-desired-queries.d.ts +16 -8
- package/out/zero-protocol/src/change-desired-queries.d.ts.map +1 -1
- package/out/zero-protocol/src/connect.d.ts +16 -8
- package/out/zero-protocol/src/connect.d.ts.map +1 -1
- package/out/zero-protocol/src/down.d.ts +16 -8
- package/out/zero-protocol/src/down.d.ts.map +1 -1
- package/out/zero-protocol/src/poke.d.ts +32 -16
- package/out/zero-protocol/src/poke.d.ts.map +1 -1
- package/out/zero-protocol/src/push.d.ts +18 -18
- package/out/zero-protocol/src/push.d.ts.map +1 -1
- package/out/zero-protocol/src/push.js +5 -5
- package/out/zero-protocol/src/push.js.map +1 -1
- package/out/zero-protocol/src/queries-patch.d.ts +24 -12
- package/out/zero-protocol/src/queries-patch.d.ts.map +1 -1
- package/out/zero-protocol/src/up.d.ts +18 -10
- package/out/zero-protocol/src/up.d.ts.map +1 -1
- package/out/zero-react/src/use-zero.d.ts.map +1 -1
- package/out/zero-schema/src/authorization.d.ts +25 -0
- package/out/zero-schema/src/authorization.d.ts.map +1 -0
- package/out/zero-schema/src/compiled-authorization.d.ts +379 -0
- package/out/zero-schema/src/compiled-authorization.d.ts.map +1 -0
- package/out/zero-schema/src/compiled-authorization.js +15 -0
- package/out/zero-schema/src/compiled-authorization.js.map +1 -0
- package/out/zero-schema/src/mod.d.ts +1 -0
- package/out/zero-schema/src/mod.d.ts.map +1 -1
- package/out/{zero-client/src/client → zero-schema/src}/normalized-schema.d.ts +2 -2
- package/out/zero-schema/src/normalized-schema.d.ts.map +1 -0
- package/out/zero-schema/src/table-schema.d.ts +15 -7
- package/out/zero-schema/src/table-schema.d.ts.map +1 -1
- package/out/zero-schema/src/table-schema.js.map +1 -1
- package/out/zero.js +10 -14
- package/out/zql/src/builder/builder.d.ts +1 -1
- package/out/zql/src/builder/builder.d.ts.map +1 -1
- package/out/zql/src/builder/builder.js +136 -30
- package/out/zql/src/builder/builder.js.map +1 -1
- package/out/zql/src/builder/filter.d.ts +2 -1
- package/out/zql/src/builder/filter.d.ts.map +1 -1
- package/out/zql/src/builder/filter.js +18 -0
- package/out/zql/src/builder/filter.js.map +1 -1
- package/out/zql/src/builder/like.d.ts +2 -2
- package/out/zql/src/builder/like.d.ts.map +1 -1
- package/out/zql/src/ivm/change.d.ts +1 -0
- package/out/zql/src/ivm/change.d.ts.map +1 -1
- package/out/zql/src/ivm/change.js +4 -1
- package/out/zql/src/ivm/change.js.map +1 -1
- package/out/zql/src/ivm/exists.d.ts +18 -0
- package/out/zql/src/ivm/exists.d.ts.map +1 -0
- package/out/zql/src/ivm/exists.js +186 -0
- package/out/zql/src/ivm/exists.js.map +1 -0
- package/out/zql/src/ivm/fan-in.d.ts +1 -1
- package/out/zql/src/ivm/fan-in.d.ts.map +1 -1
- package/out/zql/src/ivm/fan-in.js +3 -3
- package/out/zql/src/ivm/fan-in.js.map +1 -1
- package/out/zql/src/ivm/fan-out.d.ts.map +1 -1
- package/out/zql/src/ivm/fan-out.js +4 -7
- package/out/zql/src/ivm/fan-out.js.map +1 -1
- package/out/zql/src/ivm/filter.js +1 -1
- package/out/zql/src/ivm/filter.js.map +1 -1
- package/out/zql/src/ivm/memory-source.d.ts +10 -6
- package/out/zql/src/ivm/memory-source.d.ts.map +1 -1
- package/out/zql/src/ivm/memory-source.js +60 -75
- package/out/zql/src/ivm/memory-source.js.map +1 -1
- package/out/zql/src/ivm/skip.js +1 -1
- package/out/zql/src/ivm/skip.js.map +1 -1
- package/out/zql/src/ivm/take.d.ts +1 -1
- package/out/zql/src/ivm/take.d.ts.map +1 -1
- package/out/zql/src/ivm/take.js +11 -7
- package/out/zql/src/ivm/take.js.map +1 -1
- package/out/zql/src/ivm/view-apply-change.d.ts.map +1 -1
- package/out/zql/src/query/auth-query.d.ts +7 -3
- package/out/zql/src/query/auth-query.d.ts.map +1 -1
- package/out/zql/src/query/dnf.d.ts +10 -0
- package/out/zql/src/query/dnf.d.ts.map +1 -0
- package/out/zql/src/query/expression.d.ts +40 -23
- package/out/zql/src/query/expression.d.ts.map +1 -1
- package/out/zql/src/query/query-impl.d.ts +7 -6
- package/out/zql/src/query/query-impl.d.ts.map +1 -1
- package/out/zql/src/query/query.d.ts +17 -46
- package/out/zql/src/query/query.d.ts.map +1 -1
- package/out/zqlite/src/db.d.ts.map +1 -1
- package/out/zqlite/src/db.js +19 -6
- package/out/zqlite/src/db.js.map +1 -1
- package/out/zqlite/src/table-source.d.ts +12 -3
- package/out/zqlite/src/table-source.d.ts.map +1 -1
- package/out/zqlite/src/table-source.js +81 -2
- package/out/zqlite/src/table-source.js.map +1 -1
- package/package.json +7 -11
- package/out/chunk-INJ4WJHS.js.map +0 -7
- package/out/datadog/src/datadog-log-sink.js +0 -231
- package/out/datadog/src/datadog-log-sink.js.map +0 -1
- package/out/datadog/src/mod.js +0 -2
- package/out/datadog/src/mod.js.map +0 -1
- package/out/shared/src/immutable.js +0 -2
- package/out/shared/src/immutable.js.map +0 -1
- package/out/shared/src/sorted-entries.js +0 -6
- package/out/shared/src/sorted-entries.js.map +0 -1
- package/out/shared/src/writable.js +0 -2
- package/out/shared/src/writable.js.map +0 -1
- package/out/zero/src/config.d.ts +0 -2
- package/out/zero/src/config.d.ts.map +0 -1
- package/out/zero/src/config.js +0 -2
- package/out/zero/src/config.js.map +0 -1
- package/out/zero-cache/src/config/config-query.d.ts +0 -19
- package/out/zero-cache/src/config/config-query.d.ts.map +0 -1
- package/out/zero-cache/src/config/config-query.js +0 -22
- package/out/zero-cache/src/config/config-query.js.map +0 -1
- package/out/zero-cache/src/config/define-config.d.ts +0 -43
- package/out/zero-cache/src/config/define-config.d.ts.map +0 -1
- package/out/zero-cache/src/config/define-config.js +0 -121
- package/out/zero-cache/src/config/define-config.js.map +0 -1
- package/out/zero-cache/src/config/refs.d.ts +0 -3
- package/out/zero-cache/src/config/refs.d.ts.map +0 -1
- package/out/zero-cache/src/config/refs.js +0 -14
- package/out/zero-cache/src/config/refs.js.map +0 -1
- package/out/zero-client/src/client/normalized-schema.d.ts.map +0 -1
- package/out/zero-client/src/client/normalized-schema.js +0 -31
- package/out/zero-client/src/client/normalized-schema.js.map +0 -1
- package/out/zero-protocol/src/ast-hash.js +0 -14
- package/out/zero-protocol/src/ast-hash.js.map +0 -1
- package/out/zero-schema/src/mod.js +0 -4
- package/out/zero-schema/src/mod.js.map +0 -1
- package/out/zero-schema/src/normalize-table-schema.js +0 -116
- package/out/zero-schema/src/normalize-table-schema.js.map +0 -1
- package/out/zero-schema/src/schema.js +0 -4
- package/out/zero-schema/src/schema.js.map +0 -1
- package/out/zql/src/ivm/array-view.js +0 -70
- package/out/zql/src/ivm/array-view.js.map +0 -1
- package/out/zql/src/ivm/view-apply-change.js +0 -156
- package/out/zql/src/ivm/view-apply-change.js.map +0 -1
- package/out/zql/src/ivm/view.js +0 -2
- package/out/zql/src/ivm/view.js.map +0 -1
- package/out/zql/src/query/auth-query.js +0 -26
- package/out/zql/src/query/auth-query.js.map +0 -1
- package/out/zql/src/query/expression.js +0 -121
- package/out/zql/src/query/expression.js.map +0 -1
- package/out/zql/src/query/query-impl.js +0 -291
- package/out/zql/src/query/query-impl.js.map +0 -1
- package/out/zql/src/query/query-internal.js +0 -2
- package/out/zql/src/query/query-internal.js.map +0 -1
- package/out/zql/src/query/query.js +0 -3
- package/out/zql/src/query/query.js.map +0 -1
- package/out/zql/src/query/typed-view.js +0 -2
- package/out/zql/src/query/typed-view.js.map +0 -1
- /package/out/{internal.js.map → advanced.js.map} +0 -0
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import * as v from '../../shared/src/valita.js';
|
|
2
|
+
declare const ruleSchema: v.TupleType<[v.Type<"allow">, v.ObjectType<{
|
|
3
|
+
schema: v.Optional<string>;
|
|
4
|
+
table: v.Type<string>;
|
|
5
|
+
alias: v.Optional<string>;
|
|
6
|
+
where: v.Optional<{
|
|
7
|
+
type: "simple";
|
|
8
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
9
|
+
field: string;
|
|
10
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
11
|
+
type: "static";
|
|
12
|
+
anchor: "authData" | "preMutationRow";
|
|
13
|
+
field: string;
|
|
14
|
+
} | null;
|
|
15
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
16
|
+
readonly type: "correlatedSubquery";
|
|
17
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
18
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
19
|
+
}>;
|
|
20
|
+
related: v.Optional<readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[]>;
|
|
21
|
+
limit: v.Optional<number>;
|
|
22
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
23
|
+
start: v.Optional<{
|
|
24
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
25
|
+
exclusive: boolean;
|
|
26
|
+
}>;
|
|
27
|
+
}, undefined>]>;
|
|
28
|
+
export type Rule = v.Infer<typeof ruleSchema>;
|
|
29
|
+
declare const policySchema: v.ArrayType<v.TupleType<[v.Type<"allow">, v.ObjectType<{
|
|
30
|
+
schema: v.Optional<string>;
|
|
31
|
+
table: v.Type<string>;
|
|
32
|
+
alias: v.Optional<string>;
|
|
33
|
+
where: v.Optional<{
|
|
34
|
+
type: "simple";
|
|
35
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
36
|
+
field: string;
|
|
37
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
38
|
+
type: "static";
|
|
39
|
+
anchor: "authData" | "preMutationRow";
|
|
40
|
+
field: string;
|
|
41
|
+
} | null;
|
|
42
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
43
|
+
readonly type: "correlatedSubquery";
|
|
44
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
45
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
46
|
+
}>;
|
|
47
|
+
related: v.Optional<readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[]>;
|
|
48
|
+
limit: v.Optional<number>;
|
|
49
|
+
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
50
|
+
start: v.Optional<{
|
|
51
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
52
|
+
exclusive: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
}, undefined>]>>;
|
|
55
|
+
export type Policy = v.Infer<typeof policySchema>;
|
|
56
|
+
declare const assetSchema: v.ObjectType<{
|
|
57
|
+
select: v.Optional<["allow", {
|
|
58
|
+
schema?: string | undefined;
|
|
59
|
+
alias?: string | undefined;
|
|
60
|
+
where?: {
|
|
61
|
+
type: "simple";
|
|
62
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
63
|
+
field: string;
|
|
64
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
65
|
+
type: "static";
|
|
66
|
+
anchor: "authData" | "preMutationRow";
|
|
67
|
+
field: string;
|
|
68
|
+
} | null;
|
|
69
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
70
|
+
readonly type: "correlatedSubquery";
|
|
71
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
72
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
73
|
+
} | undefined;
|
|
74
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
75
|
+
limit?: number | undefined;
|
|
76
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
77
|
+
start?: {
|
|
78
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
79
|
+
exclusive: boolean;
|
|
80
|
+
} | undefined;
|
|
81
|
+
table: string;
|
|
82
|
+
}][]>;
|
|
83
|
+
insert: v.Optional<["allow", {
|
|
84
|
+
schema?: string | undefined;
|
|
85
|
+
alias?: string | undefined;
|
|
86
|
+
where?: {
|
|
87
|
+
type: "simple";
|
|
88
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
89
|
+
field: string;
|
|
90
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
91
|
+
type: "static";
|
|
92
|
+
anchor: "authData" | "preMutationRow";
|
|
93
|
+
field: string;
|
|
94
|
+
} | null;
|
|
95
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
96
|
+
readonly type: "correlatedSubquery";
|
|
97
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
98
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
99
|
+
} | undefined;
|
|
100
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
101
|
+
limit?: number | undefined;
|
|
102
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
103
|
+
start?: {
|
|
104
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
105
|
+
exclusive: boolean;
|
|
106
|
+
} | undefined;
|
|
107
|
+
table: string;
|
|
108
|
+
}][]>;
|
|
109
|
+
update: v.Optional<["allow", {
|
|
110
|
+
schema?: string | undefined;
|
|
111
|
+
alias?: string | undefined;
|
|
112
|
+
where?: {
|
|
113
|
+
type: "simple";
|
|
114
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
115
|
+
field: string;
|
|
116
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
117
|
+
type: "static";
|
|
118
|
+
anchor: "authData" | "preMutationRow";
|
|
119
|
+
field: string;
|
|
120
|
+
} | null;
|
|
121
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
122
|
+
readonly type: "correlatedSubquery";
|
|
123
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
124
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
125
|
+
} | undefined;
|
|
126
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
127
|
+
limit?: number | undefined;
|
|
128
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
129
|
+
start?: {
|
|
130
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
131
|
+
exclusive: boolean;
|
|
132
|
+
} | undefined;
|
|
133
|
+
table: string;
|
|
134
|
+
}][]>;
|
|
135
|
+
delete: v.Optional<["allow", {
|
|
136
|
+
schema?: string | undefined;
|
|
137
|
+
alias?: string | undefined;
|
|
138
|
+
where?: {
|
|
139
|
+
type: "simple";
|
|
140
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
141
|
+
field: string;
|
|
142
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
143
|
+
type: "static";
|
|
144
|
+
anchor: "authData" | "preMutationRow";
|
|
145
|
+
field: string;
|
|
146
|
+
} | null;
|
|
147
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
148
|
+
readonly type: "correlatedSubquery";
|
|
149
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
150
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
151
|
+
} | undefined;
|
|
152
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
153
|
+
limit?: number | undefined;
|
|
154
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
155
|
+
start?: {
|
|
156
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
157
|
+
exclusive: boolean;
|
|
158
|
+
} | undefined;
|
|
159
|
+
table: string;
|
|
160
|
+
}][]>;
|
|
161
|
+
}, undefined>;
|
|
162
|
+
export type AssetAuthorization = v.Infer<typeof assetSchema>;
|
|
163
|
+
declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
164
|
+
row?: {
|
|
165
|
+
select?: ["allow", {
|
|
166
|
+
schema?: string | undefined;
|
|
167
|
+
alias?: string | undefined;
|
|
168
|
+
where?: {
|
|
169
|
+
type: "simple";
|
|
170
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
171
|
+
field: string;
|
|
172
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
173
|
+
type: "static";
|
|
174
|
+
anchor: "authData" | "preMutationRow";
|
|
175
|
+
field: string;
|
|
176
|
+
} | null;
|
|
177
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
178
|
+
readonly type: "correlatedSubquery";
|
|
179
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
180
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
181
|
+
} | undefined;
|
|
182
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
183
|
+
limit?: number | undefined;
|
|
184
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
185
|
+
start?: {
|
|
186
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
187
|
+
exclusive: boolean;
|
|
188
|
+
} | undefined;
|
|
189
|
+
table: string;
|
|
190
|
+
}][] | undefined;
|
|
191
|
+
insert?: ["allow", {
|
|
192
|
+
schema?: string | undefined;
|
|
193
|
+
alias?: string | undefined;
|
|
194
|
+
where?: {
|
|
195
|
+
type: "simple";
|
|
196
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
197
|
+
field: string;
|
|
198
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
199
|
+
type: "static";
|
|
200
|
+
anchor: "authData" | "preMutationRow";
|
|
201
|
+
field: string;
|
|
202
|
+
} | null;
|
|
203
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
204
|
+
readonly type: "correlatedSubquery";
|
|
205
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
206
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
207
|
+
} | undefined;
|
|
208
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
209
|
+
limit?: number | undefined;
|
|
210
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
211
|
+
start?: {
|
|
212
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
213
|
+
exclusive: boolean;
|
|
214
|
+
} | undefined;
|
|
215
|
+
table: string;
|
|
216
|
+
}][] | undefined;
|
|
217
|
+
update?: ["allow", {
|
|
218
|
+
schema?: string | undefined;
|
|
219
|
+
alias?: string | undefined;
|
|
220
|
+
where?: {
|
|
221
|
+
type: "simple";
|
|
222
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
223
|
+
field: string;
|
|
224
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
225
|
+
type: "static";
|
|
226
|
+
anchor: "authData" | "preMutationRow";
|
|
227
|
+
field: string;
|
|
228
|
+
} | null;
|
|
229
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
230
|
+
readonly type: "correlatedSubquery";
|
|
231
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
232
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
233
|
+
} | undefined;
|
|
234
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
235
|
+
limit?: number | undefined;
|
|
236
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
237
|
+
start?: {
|
|
238
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
239
|
+
exclusive: boolean;
|
|
240
|
+
} | undefined;
|
|
241
|
+
table: string;
|
|
242
|
+
}][] | undefined;
|
|
243
|
+
delete?: ["allow", {
|
|
244
|
+
schema?: string | undefined;
|
|
245
|
+
alias?: string | undefined;
|
|
246
|
+
where?: {
|
|
247
|
+
type: "simple";
|
|
248
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
249
|
+
field: string;
|
|
250
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
251
|
+
type: "static";
|
|
252
|
+
anchor: "authData" | "preMutationRow";
|
|
253
|
+
field: string;
|
|
254
|
+
} | null;
|
|
255
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
256
|
+
readonly type: "correlatedSubquery";
|
|
257
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
258
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
259
|
+
} | undefined;
|
|
260
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
261
|
+
limit?: number | undefined;
|
|
262
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
263
|
+
start?: {
|
|
264
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
265
|
+
exclusive: boolean;
|
|
266
|
+
} | undefined;
|
|
267
|
+
table: string;
|
|
268
|
+
}][] | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
cell?: Record<string, {
|
|
271
|
+
select?: ["allow", {
|
|
272
|
+
schema?: string | undefined;
|
|
273
|
+
alias?: string | undefined;
|
|
274
|
+
where?: {
|
|
275
|
+
type: "simple";
|
|
276
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
277
|
+
field: string;
|
|
278
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
279
|
+
type: "static";
|
|
280
|
+
anchor: "authData" | "preMutationRow";
|
|
281
|
+
field: string;
|
|
282
|
+
} | null;
|
|
283
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
284
|
+
readonly type: "correlatedSubquery";
|
|
285
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
286
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
287
|
+
} | undefined;
|
|
288
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
289
|
+
limit?: number | undefined;
|
|
290
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
291
|
+
start?: {
|
|
292
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
293
|
+
exclusive: boolean;
|
|
294
|
+
} | undefined;
|
|
295
|
+
table: string;
|
|
296
|
+
}][] | undefined;
|
|
297
|
+
insert?: ["allow", {
|
|
298
|
+
schema?: string | undefined;
|
|
299
|
+
alias?: string | undefined;
|
|
300
|
+
where?: {
|
|
301
|
+
type: "simple";
|
|
302
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
303
|
+
field: string;
|
|
304
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
305
|
+
type: "static";
|
|
306
|
+
anchor: "authData" | "preMutationRow";
|
|
307
|
+
field: string;
|
|
308
|
+
} | null;
|
|
309
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
310
|
+
readonly type: "correlatedSubquery";
|
|
311
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
312
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
313
|
+
} | undefined;
|
|
314
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
315
|
+
limit?: number | undefined;
|
|
316
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
317
|
+
start?: {
|
|
318
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
319
|
+
exclusive: boolean;
|
|
320
|
+
} | undefined;
|
|
321
|
+
table: string;
|
|
322
|
+
}][] | undefined;
|
|
323
|
+
update?: ["allow", {
|
|
324
|
+
schema?: string | undefined;
|
|
325
|
+
alias?: string | undefined;
|
|
326
|
+
where?: {
|
|
327
|
+
type: "simple";
|
|
328
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
329
|
+
field: string;
|
|
330
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
331
|
+
type: "static";
|
|
332
|
+
anchor: "authData" | "preMutationRow";
|
|
333
|
+
field: string;
|
|
334
|
+
} | null;
|
|
335
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
336
|
+
readonly type: "correlatedSubquery";
|
|
337
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
338
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
339
|
+
} | undefined;
|
|
340
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
341
|
+
limit?: number | undefined;
|
|
342
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
343
|
+
start?: {
|
|
344
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
345
|
+
exclusive: boolean;
|
|
346
|
+
} | undefined;
|
|
347
|
+
table: string;
|
|
348
|
+
}][] | undefined;
|
|
349
|
+
delete?: ["allow", {
|
|
350
|
+
schema?: string | undefined;
|
|
351
|
+
alias?: string | undefined;
|
|
352
|
+
where?: {
|
|
353
|
+
type: "simple";
|
|
354
|
+
op: "=" | "!=" | "IS" | "IS NOT" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
355
|
+
field: string;
|
|
356
|
+
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
357
|
+
type: "static";
|
|
358
|
+
anchor: "authData" | "preMutationRow";
|
|
359
|
+
field: string;
|
|
360
|
+
} | null;
|
|
361
|
+
} | import("../../zero-protocol/src/ast.js").Conjunction | import("../../zero-protocol/src/ast.js").Disjunction | {
|
|
362
|
+
readonly type: "correlatedSubquery";
|
|
363
|
+
readonly related: import("../../zero-protocol/src/ast.js").CorrelatedSubquery;
|
|
364
|
+
readonly op: "EXISTS" | "NOT EXISTS";
|
|
365
|
+
} | undefined;
|
|
366
|
+
related?: readonly import("../../zero-protocol/src/ast.js").CorrelatedSubquery[] | undefined;
|
|
367
|
+
limit?: number | undefined;
|
|
368
|
+
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
369
|
+
start?: {
|
|
370
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
371
|
+
exclusive: boolean;
|
|
372
|
+
} | undefined;
|
|
373
|
+
table: string;
|
|
374
|
+
}][] | undefined;
|
|
375
|
+
}> | undefined;
|
|
376
|
+
}>>;
|
|
377
|
+
export type AuthorizationConfig = v.Infer<typeof authorizationConfigSchema>;
|
|
378
|
+
export {};
|
|
379
|
+
//# sourceMappingURL=compiled-authorization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiled-authorization.d.ts","sourceRoot":"","sources":["../../../../zero-schema/src/compiled-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;eAA2C,CAAC;AAC5D,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;gBAAsB,CAAC;AACzC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKf,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7D,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAK9B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as v from '../../shared/src/valita.js';
|
|
2
|
+
import { astSchema } from '../../zero-protocol/src/ast.js';
|
|
3
|
+
const ruleSchema = v.tuple([v.literal('allow'), astSchema]);
|
|
4
|
+
const policySchema = v.array(ruleSchema);
|
|
5
|
+
const assetSchema = v.object({
|
|
6
|
+
select: policySchema.optional(),
|
|
7
|
+
insert: policySchema.optional(),
|
|
8
|
+
update: policySchema.optional(),
|
|
9
|
+
delete: policySchema.optional(),
|
|
10
|
+
});
|
|
11
|
+
const authorizationConfigSchema = v.record(v.object({
|
|
12
|
+
row: assetSchema.optional(),
|
|
13
|
+
cell: v.record(assetSchema).optional(),
|
|
14
|
+
}));
|
|
15
|
+
//# sourceMappingURL=compiled-authorization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiled-authorization.js","sourceRoot":"","sources":["../../../../zero-schema/src/compiled-authorization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAEzD,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;AAE5D,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAGzC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,MAAM,EAAE,YAAY,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,YAAY,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,YAAY,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,YAAY,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAIH,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CACxC,CAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,WAAW,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CACH,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { authQuery } from '../../zql/src/query/auth-query.js';
|
|
2
2
|
export { createTableSchema, type TableSchema, type TableSchemaToRow, } from './table-schema.js';
|
|
3
3
|
export * from './schema.js';
|
|
4
|
+
export { defineAuthorization } from './authorization.js';
|
|
4
5
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../zero-schema/src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,EAChB,KAAK,gBAAgB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../zero-schema/src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,EAChB,KAAK,gBAAgB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NormalizedTableSchema } from '
|
|
2
|
-
import type { Schema } from '
|
|
1
|
+
import { type NormalizedTableSchema } from './normalize-table-schema.js';
|
|
2
|
+
import type { Schema } from './schema.js';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a normalized schema from a schema.
|
|
5
5
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalized-schema.d.ts","sourceRoot":"","sources":["../../../../zero-schema/src/normalized-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAKhE;AAED,qBAAa,gBAAgB;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE;QACf,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAAC;KACjD,CAAC;gBAEU,MAAM,EAAE,MAAM;CAI3B"}
|
|
@@ -23,12 +23,12 @@ export type TableSchemaToRow<T extends TableSchema> = {
|
|
|
23
23
|
[K in keyof T['columns']]: SchemaValueToTSType<T['columns'][K]>;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* For some reason this needs to be separated out from SchemaValueToTSType in
|
|
27
|
+
* order for intellisense to show `boolean`. If this gets folded into
|
|
28
|
+
* SchemaValueToTSType, intellisense will show
|
|
29
|
+
* SchemaValueToTSType<{type: "boolean"}> instead.
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
type BaseType<T extends SchemaValue> = T extends {
|
|
32
32
|
type: 'string';
|
|
33
33
|
} ? string : T extends {
|
|
34
34
|
type: 'number';
|
|
@@ -38,9 +38,16 @@ export type SchemaValueToTSType<T extends SchemaValue> = (T extends {
|
|
|
38
38
|
type: 'null';
|
|
39
39
|
} ? null : T extends {
|
|
40
40
|
type: 'json';
|
|
41
|
-
} ? any : never
|
|
41
|
+
} ? any : never;
|
|
42
|
+
/**
|
|
43
|
+
* Given a schema value, return the TypeScript type.
|
|
44
|
+
*
|
|
45
|
+
* This allows us to create the correct return type for a
|
|
46
|
+
* query that has a selection.
|
|
47
|
+
*/
|
|
48
|
+
export type SchemaValueToTSType<T extends SchemaValue> = T extends {
|
|
42
49
|
optional: true;
|
|
43
|
-
} ?
|
|
50
|
+
} ? BaseType<T> | null : BaseType<T>;
|
|
44
51
|
export type Supertype<TSchemas extends TableSchema[]> = {
|
|
45
52
|
tableName: TSchemas[number]['tableName'];
|
|
46
53
|
primaryKey: TSchemas[number]['primaryKey'];
|
|
@@ -96,4 +103,5 @@ export declare function isJunctionRelationship(relationship: Relationship): rela
|
|
|
96
103
|
* relationship.
|
|
97
104
|
*/
|
|
98
105
|
export type PullSchemaForRelationship<TSchema extends TableSchema, TRelationship extends keyof TSchema['relationships']> = TSchema['relationships'][TRelationship] extends FieldRelationship<TableSchema, infer TSchema> ? TSchema : TSchema['relationships'][TRelationship] extends JunctionRelationship<TableSchema, TableSchema, infer TSchema> ? TSchema : never;
|
|
106
|
+
export {};
|
|
99
107
|
//# sourceMappingURL=table-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-schema.d.ts","sourceRoot":"","sources":["../../../../zero-schema/src/table-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,wCAAwC,CAAC;AAEvE,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC9C,QAAQ,CAAC,aAAa,EAAE;QAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAAA;KAAC,CAAC;CACjE,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,EAAE,CAAC,GACrD,CAAC,CACnB;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,IAAI;KACnD,CAAC,IAAI,MAAM,CAAC,CAAC,SAAS,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"table-schema.d.ts","sourceRoot":"","sources":["../../../../zero-schema/src/table-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EA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|
|
1
|
-
{"version":3,"file":"table-schema.js","sourceRoot":"","sources":["../../../../zero-schema/src/table-schema.ts"],"names":[],"mappings":"AAuBA,MAAM,UAAU,iBAAiB,CAA8B,MAAS;IACtE,OAAO,MAAW,CAAC;AACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"table-schema.js","sourceRoot":"","sources":["../../../../zero-schema/src/table-schema.ts"],"names":[],"mappings":"AAuBA,MAAM,UAAU,iBAAiB,CAA8B,MAAS;IACtE,OAAO,MAAW,CAAC;AACrB,CAAC;AAoGD,MAAM,UAAU,mBAAmB,CACjC,YAA0B;IAE1B,OAAO,CAEH,YAKD,CAAC,QAAQ,KAAK,SAAS,CACzB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,YAA0B;IAE1B,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAC5C,CAAC"}
|
package/out/zero.js
CHANGED
|
@@ -1,34 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IDBNotFoundError,
|
|
3
|
-
QueryImpl,
|
|
4
3
|
TransactionClosedError,
|
|
5
4
|
Zero,
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
createSchema,
|
|
6
|
+
createTableSchema,
|
|
7
|
+
defineAuthorization,
|
|
8
8
|
dropAllDatabases,
|
|
9
9
|
dropDatabase,
|
|
10
10
|
escapeLike,
|
|
11
11
|
getDefaultPuller,
|
|
12
|
-
makeIDBName
|
|
13
|
-
|
|
14
|
-
or
|
|
15
|
-
} from "./chunk-INJ4WJHS.js";
|
|
12
|
+
makeIDBName
|
|
13
|
+
} from "./chunk-PIFWXXO2.js";
|
|
16
14
|
import "./chunk-HARIWJ2J.js";
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-5UY46OAF.js";
|
|
18
16
|
import "./chunk-F5QR3K72.js";
|
|
19
17
|
export {
|
|
20
18
|
IDBNotFoundError,
|
|
21
|
-
QueryImpl,
|
|
22
19
|
TransactionClosedError,
|
|
23
20
|
Zero,
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
createSchema,
|
|
22
|
+
createTableSchema,
|
|
23
|
+
defineAuthorization,
|
|
26
24
|
dropAllDatabases,
|
|
27
25
|
dropDatabase,
|
|
28
26
|
escapeLike,
|
|
29
27
|
getDefaultPuller,
|
|
30
|
-
makeIDBName
|
|
31
|
-
not,
|
|
32
|
-
or
|
|
28
|
+
makeIDBName
|
|
33
29
|
};
|
|
34
30
|
//# sourceMappingURL=zero.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../../zql/src/builder/builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE3D,OAAO,KAAK,EACV,GAAG,
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../../zql/src/builder/builder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AAE3D,OAAO,KAAK,EACV,GAAG,EAOH,QAAQ,EAIT,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,oCAAoC,CAAC;AAC5D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AAM1E,OAAO,KAAK,EAAC,KAAK,EAAE,OAAO,EAAC,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAC;AAK7C,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACpC,cAAc,EAAE,GAAG,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IAE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