@rocicorp/zero 0.2.2024101101 → 0.3.2024102300
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/react.js +92 -39
- package/out/react.js.map +2 -2
- package/out/replicache/src/async-iterable-to-array.js +8 -0
- package/out/replicache/src/async-iterable-to-array.js.map +1 -0
- package/out/replicache/src/bg-interval.js +38 -0
- package/out/replicache/src/bg-interval.js.map +1 -0
- package/out/replicache/src/binary-search.js +31 -0
- package/out/replicache/src/binary-search.js.map +1 -0
- package/out/replicache/src/broadcast-channel.js +29 -0
- package/out/replicache/src/broadcast-channel.js.map +1 -0
- package/out/replicache/src/btree/diff.js +6 -0
- package/out/replicache/src/btree/diff.js.map +1 -0
- package/out/replicache/src/btree/node.js +392 -0
- package/out/replicache/src/btree/node.js.map +1 -0
- package/out/replicache/src/btree/read.js +227 -0
- package/out/replicache/src/btree/read.js.map +1 -0
- package/out/replicache/src/btree/splice.js +79 -0
- package/out/replicache/src/btree/splice.js.map +1 -0
- package/out/replicache/src/btree/write.js +154 -0
- package/out/replicache/src/btree/write.js.map +1 -0
- package/out/replicache/src/call-default-fetch.js +37 -0
- package/out/replicache/src/call-default-fetch.js.map +1 -0
- package/out/replicache/src/config.js +13 -0
- package/out/replicache/src/config.js.map +1 -0
- package/out/replicache/src/connection-loop-delegates.js +30 -0
- package/out/replicache/src/connection-loop-delegates.js.map +1 -0
- package/out/replicache/src/connection-loop.js +268 -0
- package/out/replicache/src/connection-loop.js.map +1 -0
- package/out/replicache/src/cookies.js +41 -0
- package/out/replicache/src/cookies.js.map +1 -0
- package/out/replicache/src/dag/chunk.js +60 -0
- package/out/replicache/src/dag/chunk.js.map +1 -0
- package/out/replicache/src/dag/gc.js +126 -0
- package/out/replicache/src/dag/gc.js.map +1 -0
- package/out/replicache/src/dag/key-type-enum.js +6 -0
- package/out/replicache/src/dag/key-type-enum.js.map +1 -0
- package/out/replicache/src/dag/key.js +54 -0
- package/out/replicache/src/dag/key.js.map +1 -0
- package/out/replicache/src/dag/lazy-store.js +532 -0
- package/out/replicache/src/dag/lazy-store.js.map +1 -0
- package/out/replicache/src/dag/store-impl.js +175 -0
- package/out/replicache/src/dag/store-impl.js.map +1 -0
- package/out/replicache/src/dag/store.js +22 -0
- package/out/replicache/src/dag/store.js.map +1 -0
- package/out/replicache/src/dag/visitor.js +22 -0
- package/out/replicache/src/dag/visitor.js.map +1 -0
- package/out/replicache/src/db/commit.js +443 -0
- package/out/replicache/src/db/commit.js.map +1 -0
- package/out/replicache/src/db/index-operation-enum.js +4 -0
- package/out/replicache/src/db/index-operation-enum.js.map +1 -0
- package/out/replicache/src/db/index.js +170 -0
- package/out/replicache/src/db/index.js.map +1 -0
- package/out/replicache/src/db/meta-type-enum.js +7 -0
- package/out/replicache/src/db/meta-type-enum.js.map +1 -0
- package/out/replicache/src/db/read.js +59 -0
- package/out/replicache/src/db/read.js.map +1 -0
- package/out/replicache/src/db/rebase.js +56 -0
- package/out/replicache/src/db/rebase.js.map +1 -0
- package/out/replicache/src/db/scan.js +2 -0
- package/out/replicache/src/db/scan.js.map +1 -0
- package/out/replicache/src/db/write.js +260 -0
- package/out/replicache/src/db/write.js.map +1 -0
- package/out/replicache/src/error-responses.js +30 -0
- package/out/replicache/src/error-responses.js.map +1 -0
- package/out/replicache/src/filter-async-iterable.js +15 -0
- package/out/replicache/src/filter-async-iterable.js.map +1 -0
- package/out/replicache/src/format-version-enum.js +9 -0
- package/out/replicache/src/format-version-enum.js.map +1 -0
- package/out/replicache/src/format-version.js +8 -0
- package/out/replicache/src/format-version.js.map +1 -0
- package/out/replicache/src/frozen-json.js +151 -0
- package/out/replicache/src/frozen-json.js.map +1 -0
- package/out/replicache/src/get-default-puller.js +74 -0
- package/out/replicache/src/get-default-puller.js.map +1 -0
- package/out/replicache/src/get-default-pusher.js +36 -0
- package/out/replicache/src/get-default-pusher.js.map +1 -0
- package/out/replicache/src/hash.js +73 -0
- package/out/replicache/src/hash.js.map +1 -0
- package/out/replicache/src/http-request-info.js +7 -0
- package/out/replicache/src/http-request-info.js.map +1 -0
- package/out/replicache/src/impl.js +2 -0
- package/out/replicache/src/impl.js.map +1 -0
- package/out/replicache/src/index-defs.js +28 -0
- package/out/replicache/src/index-defs.js.map +1 -0
- package/out/replicache/src/invoke-kind-enum.js +4 -0
- package/out/replicache/src/invoke-kind-enum.js.map +1 -0
- package/out/replicache/src/iterable-union.js +5 -0
- package/out/replicache/src/iterable-union.js.map +1 -0
- package/out/replicache/src/kv/idb-store-with-mem-fallback.js +93 -0
- package/out/replicache/src/kv/idb-store-with-mem-fallback.js.map +1 -0
- package/out/replicache/src/kv/idb-store.js +179 -0
- package/out/replicache/src/kv/idb-store.js.map +1 -0
- package/out/replicache/src/kv/mem-store.js +61 -0
- package/out/replicache/src/kv/mem-store.js.map +1 -0
- package/out/replicache/src/kv/read-impl.js +23 -0
- package/out/replicache/src/kv/read-impl.js.map +1 -0
- package/out/replicache/src/kv/store.js +2 -0
- package/out/replicache/src/kv/store.js.map +1 -0
- package/out/replicache/src/kv/write-impl-base.js +48 -0
- package/out/replicache/src/kv/write-impl-base.js.map +1 -0
- package/out/replicache/src/kv/write-impl.js +25 -0
- package/out/replicache/src/kv/write-impl.js.map +1 -0
- package/out/replicache/src/lazy.js +10 -0
- package/out/replicache/src/lazy.js.map +1 -0
- package/out/replicache/src/log-options.js +13 -0
- package/out/replicache/src/log-options.js.map +1 -0
- package/out/replicache/src/merge-async-iterables.js +61 -0
- package/out/replicache/src/merge-async-iterables.js.map +1 -0
- package/out/replicache/src/mod.js +14 -0
- package/out/replicache/src/mod.js.map +1 -0
- package/out/replicache/src/mutation-recovery.js +439 -0
- package/out/replicache/src/mutation-recovery.js.map +1 -0
- package/out/replicache/src/new-client-channel.js +77 -0
- package/out/replicache/src/new-client-channel.js.map +1 -0
- package/out/replicache/src/on-persist-channel.js +33 -0
- package/out/replicache/src/on-persist-channel.js.map +1 -0
- package/out/replicache/src/patch-operation.js +37 -0
- package/out/replicache/src/patch-operation.js.map +1 -0
- package/out/replicache/src/pending-mutations.js +18 -0
- package/out/replicache/src/pending-mutations.js.map +1 -0
- package/out/replicache/src/persist/client-gc.js +38 -0
- package/out/replicache/src/persist/client-gc.js.map +1 -0
- package/out/replicache/src/persist/client-group-gc.js +38 -0
- package/out/replicache/src/persist/client-group-gc.js.map +1 -0
- package/out/replicache/src/persist/client-groups.js +180 -0
- package/out/replicache/src/persist/client-groups.js.map +1 -0
- package/out/replicache/src/persist/clients.js +390 -0
- package/out/replicache/src/persist/clients.js.map +1 -0
- package/out/replicache/src/persist/collect-idb-databases.js +174 -0
- package/out/replicache/src/persist/collect-idb-databases.js.map +1 -0
- package/out/replicache/src/persist/gather-mem-only-visitor.js +25 -0
- package/out/replicache/src/persist/gather-mem-only-visitor.js.map +1 -0
- package/out/replicache/src/persist/gather-not-cached-visitor.js +35 -0
- package/out/replicache/src/persist/gather-not-cached-visitor.js.map +1 -0
- package/out/replicache/src/persist/heartbeat.js +37 -0
- package/out/replicache/src/persist/heartbeat.js.map +1 -0
- package/out/replicache/src/persist/idb-databases-store-db-name.js +18 -0
- package/out/replicache/src/persist/idb-databases-store-db-name.js.map +1 -0
- package/out/replicache/src/persist/idb-databases-store.js +90 -0
- package/out/replicache/src/persist/idb-databases-store.js.map +1 -0
- package/out/replicache/src/persist/make-client-id.js +13 -0
- package/out/replicache/src/persist/make-client-id.js.map +1 -0
- package/out/replicache/src/persist/persist.js +132 -0
- package/out/replicache/src/persist/persist.js.map +1 -0
- package/out/replicache/src/persist/refresh.js +147 -0
- package/out/replicache/src/persist/refresh.js.map +1 -0
- package/out/replicache/src/process-scheduler.js +93 -0
- package/out/replicache/src/process-scheduler.js.map +1 -0
- package/out/replicache/src/puller.js +2 -0
- package/out/replicache/src/puller.js.map +1 -0
- package/out/replicache/src/pusher.js +32 -0
- package/out/replicache/src/pusher.js.map +1 -0
- package/out/replicache/src/replicache-impl.js +1007 -0
- package/out/replicache/src/replicache-impl.js.map +1 -0
- package/out/replicache/src/replicache-options.js +2 -0
- package/out/replicache/src/replicache-options.js.map +1 -0
- package/out/replicache/src/replicache.js +387 -0
- package/out/replicache/src/replicache.js.map +1 -0
- package/out/replicache/src/request-idle.js +15 -0
- package/out/replicache/src/request-idle.js.map +1 -0
- package/out/replicache/src/scan-iterator.js +202 -0
- package/out/replicache/src/scan-iterator.js.map +1 -0
- package/out/replicache/src/scan-options.js +45 -0
- package/out/replicache/src/scan-options.js.map +1 -0
- package/out/replicache/src/set-interval-with-signal.js +7 -0
- package/out/replicache/src/set-interval-with-signal.js.map +1 -0
- package/out/replicache/src/size-of-value.js +77 -0
- package/out/replicache/src/size-of-value.js.map +1 -0
- package/out/replicache/src/subscriptions.js +357 -0
- package/out/replicache/src/subscriptions.js.map +1 -0
- package/out/replicache/src/sync/diff.js +75 -0
- package/out/replicache/src/sync/diff.js.map +1 -0
- package/out/replicache/src/sync/handle-pull-response-result-type-enum.js +5 -0
- package/out/replicache/src/sync/handle-pull-response-result-type-enum.js.map +1 -0
- package/out/replicache/src/sync/ids.js +4 -0
- package/out/replicache/src/sync/ids.js.map +1 -0
- package/out/replicache/src/sync/patch.js +41 -0
- package/out/replicache/src/sync/patch.js.map +1 -0
- package/out/replicache/src/sync/pull-error.js +16 -0
- package/out/replicache/src/sync/pull-error.js.map +1 -0
- package/out/replicache/src/sync/pull.js +375 -0
- package/out/replicache/src/sync/pull.js.map +1 -0
- package/out/replicache/src/sync/push.js +141 -0
- package/out/replicache/src/sync/push.js.map +1 -0
- package/out/replicache/src/sync/request-id.js +31 -0
- package/out/replicache/src/sync/request-id.js.map +1 -0
- package/out/replicache/src/sync/sync-head-name.js +2 -0
- package/out/replicache/src/sync/sync-head-name.js.map +1 -0
- package/out/replicache/src/test-license-key.js +3 -0
- package/out/replicache/src/test-license-key.js.map +1 -0
- package/out/replicache/src/to-error.js +7 -0
- package/out/replicache/src/to-error.js.map +1 -0
- package/out/replicache/src/transaction-closed-error.js +17 -0
- package/out/replicache/src/transaction-closed-error.js.map +1 -0
- package/out/replicache/src/transactions.js +144 -0
- package/out/replicache/src/transactions.js.map +1 -0
- package/out/replicache/src/types.js +2 -0
- package/out/replicache/src/types.js.map +1 -0
- package/out/replicache/src/version.js +5 -0
- package/out/replicache/src/version.js.map +1 -0
- package/out/replicache/src/with-transactions.js +28 -0
- package/out/replicache/src/with-transactions.js.map +1 -0
- package/out/shared/src/browser-env.js +14 -0
- package/out/shared/src/browser-env.js.map +1 -0
- package/out/shared/src/document-visible.js +76 -0
- package/out/shared/src/document-visible.js.map +1 -0
- package/out/shared/src/immutable.js +2 -0
- package/out/shared/src/immutable.js.map +1 -0
- package/out/shared/src/iterables.d.ts +2 -2
- package/out/shared/src/iterables.d.ts.map +1 -1
- package/out/shared/src/iterables.js +40 -0
- package/out/shared/src/iterables.js.map +1 -0
- package/out/shared/src/navigator.js +3 -0
- package/out/shared/src/navigator.js.map +1 -0
- package/out/shared/src/random-uint64.js +8 -0
- package/out/shared/src/random-uint64.js.map +1 -0
- package/out/shared/src/random-values.d.ts +1 -0
- package/out/shared/src/random-values.d.ts.map +1 -1
- package/out/shared/src/random-values.js +22 -0
- package/out/shared/src/random-values.js.map +1 -0
- package/out/shared/src/set-utils.d.ts +1 -1
- package/out/shared/src/set-utils.d.ts.map +1 -1
- package/out/shared/src/set-utils.js +6 -4
- package/out/shared/src/set-utils.js.map +1 -1
- package/out/shared/src/sorted-entries.d.ts +2 -0
- package/out/shared/src/sorted-entries.d.ts.map +1 -0
- package/out/shared/src/sorted-entries.js +6 -0
- package/out/shared/src/sorted-entries.js.map +1 -0
- package/out/shared/src/types.js +2 -0
- package/out/shared/src/types.js.map +1 -0
- package/out/shared/src/valita.d.ts +1 -1
- package/out/shared/src/valita.d.ts.map +1 -1
- package/out/shared/src/valita.js.map +1 -1
- package/out/shared/src/writable.d.ts +4 -0
- package/out/shared/src/writable.d.ts.map +1 -0
- package/out/shared/src/writable.js +2 -0
- package/out/shared/src/writable.js.map +1 -0
- package/out/zero/src/config.d.ts +2 -0
- package/out/zero/src/config.d.ts.map +1 -0
- package/out/zero/src/config.js +2 -0
- package/out/zero/src/config.js.map +1 -0
- package/out/zero-cache/src/config/config-query.d.ts +18 -0
- package/out/zero-cache/src/config/config-query.d.ts.map +1 -0
- package/out/zero-cache/src/config/config-query.js +19 -0
- package/out/zero-cache/src/config/config-query.js.map +1 -0
- package/out/zero-cache/src/config/define-config.d.ts +43 -0
- package/out/zero-cache/src/config/define-config.d.ts.map +1 -0
- package/out/zero-cache/src/config/define-config.js +120 -0
- package/out/zero-cache/src/config/define-config.js.map +1 -0
- package/out/zero-cache/src/config/refs.d.ts +3 -0
- package/out/zero-cache/src/config/refs.d.ts.map +1 -0
- package/out/zero-cache/src/config/refs.js +14 -0
- package/out/zero-cache/src/config/refs.js.map +1 -0
- package/out/zero-cache/src/config/zero-config.d.ts +126 -686
- package/out/zero-cache/src/config/zero-config.d.ts.map +1 -1
- package/out/zero-cache/src/config/zero-config.js +43 -161
- package/out/zero-cache/src/config/zero-config.js.map +1 -1
- package/out/zero-cache/src/db/create.d.ts +8 -0
- package/out/zero-cache/src/db/create.d.ts.map +1 -0
- package/out/zero-cache/src/db/create.js +39 -0
- package/out/zero-cache/src/db/create.js.map +1 -0
- package/out/zero-cache/src/db/lite-tables.d.ts +3 -3
- package/out/zero-cache/src/db/lite-tables.d.ts.map +1 -1
- package/out/zero-cache/src/db/lite-tables.js +29 -20
- package/out/zero-cache/src/db/lite-tables.js.map +1 -1
- package/out/zero-cache/src/db/{migration-lite.d.ts → old-migration-lite.d.ts} +1 -1
- package/out/zero-cache/src/db/old-migration-lite.d.ts.map +1 -0
- package/out/zero-cache/src/db/{migration-lite.js → old-migration-lite.js} +1 -1
- package/out/zero-cache/src/db/old-migration-lite.js.map +1 -0
- package/out/zero-cache/src/db/{migration.d.ts → old-migration.d.ts} +1 -1
- package/out/zero-cache/src/db/old-migration.d.ts.map +1 -0
- package/out/zero-cache/src/db/{migration.js → old-migration.js} +1 -1
- package/out/zero-cache/src/db/old-migration.js.map +1 -0
- package/out/zero-cache/src/db/pg-to-lite.d.ts +11 -0
- package/out/zero-cache/src/db/pg-to-lite.d.ts.map +1 -0
- package/out/zero-cache/src/{services/change-streamer/pg/schema/lite.js → db/pg-to-lite.js} +27 -15
- package/out/zero-cache/src/db/pg-to-lite.js.map +1 -0
- package/out/zero-cache/src/db/specs.d.ts +73 -0
- package/out/zero-cache/src/db/specs.d.ts.map +1 -0
- package/out/zero-cache/src/db/specs.js +30 -0
- package/out/zero-cache/src/db/specs.js.map +1 -0
- package/out/zero-cache/src/db/statements.d.ts +1 -1
- package/out/zero-cache/src/db/statements.d.ts.map +1 -1
- package/out/zero-cache/src/server/life-cycle.d.ts.map +1 -1
- package/out/zero-cache/src/server/life-cycle.js +9 -5
- package/out/zero-cache/src/server/life-cycle.js.map +1 -1
- package/out/zero-cache/src/server/main.js +2 -2
- package/out/zero-cache/src/server/main.js.map +1 -1
- package/out/zero-cache/src/server/syncer.d.ts.map +1 -1
- package/out/zero-cache/src/server/syncer.js +2 -1
- package/out/zero-cache/src/server/syncer.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +1 -1
- 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 +1 -4
- 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.d.ts +455 -13
- 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 +16 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer.js.map +1 -1
- 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 +311 -86
- 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 +7 -51
- 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 +239 -59
- 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 +263 -183
- 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/published.d.ts +4 -4
- 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 +14 -19
- 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/zero.d.ts +2 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/zero.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/zero.js +51 -6
- package/out/zero-cache/src/services/change-streamer/pg/schema/zero.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/sync-schema.js +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/sync-schema.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/change.d.ts +325 -26
- 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 +84 -1
- package/out/zero-cache/src/services/change-streamer/schema/change.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/init.js +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/init.js.map +1 -1
- package/out/zero-cache/src/services/dispatcher/connect-params.d.ts +1 -0
- package/out/zero-cache/src/services/dispatcher/connect-params.d.ts.map +1 -1
- package/out/zero-cache/src/services/dispatcher/connect-params.js +5 -2
- package/out/zero-cache/src/services/dispatcher/connect-params.js.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.js +17 -19
- package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -1
- package/out/zero-cache/src/services/mutagen/write-authorizer.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/write-authorizer.js +18 -9
- package/out/zero-cache/src/services/mutagen/write-authorizer.js.map +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 +120 -16
- package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
- package/out/zero-cache/src/services/replicator/schema/change-log.d.ts +20 -3
- package/out/zero-cache/src/services/replicator/schema/change-log.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/schema/change-log.js +44 -12
- package/out/zero-cache/src/services/replicator/schema/change-log.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/client-handler.d.ts +3 -2
- package/out/zero-cache/src/services/view-syncer/client-handler.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/client-handler.js +21 -18
- package/out/zero-cache/src/services/view-syncer/client-handler.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts +5 -1
- package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr-store.js +49 -8
- package/out/zero-cache/src/services/view-syncer/cvr-store.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.js +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/database-storage.js +1 -1
- package/out/zero-cache/src/services/view-syncer/database-storage.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.d.ts +31 -0
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.d.ts.map +1 -0
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.js +53 -0
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.js.map +1 -0
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts +11 -5
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.js +17 -0
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/cvr.js +2 -2
- package/out/zero-cache/src/services/view-syncer/schema/cvr.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.js +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/pg-migrations.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +11 -11
- package/out/zero-cache/src/services/view-syncer/schema/types.js +2 -2
- package/out/zero-cache/src/services/view-syncer/schema/types.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts +12 -4
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/snapshotter.js +59 -49
- package/out/zero-cache/src/services/view-syncer/snapshotter.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts +2 -3
- 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 +50 -10
- package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
- package/out/zero-cache/src/types/pg.d.ts +7 -1
- package/out/zero-cache/src/types/pg.d.ts.map +1 -1
- package/out/zero-cache/src/types/pg.js +14 -1
- package/out/zero-cache/src/types/pg.js.map +1 -1
- package/out/zero-cache/src/workers/connection.d.ts +3 -1
- package/out/zero-cache/src/workers/connection.d.ts.map +1 -1
- package/out/zero-cache/src/workers/connection.js +19 -1
- package/out/zero-cache/src/workers/connection.js.map +1 -1
- package/out/zero-cache/src/workers/syncer.d.ts +2 -1
- package/out/zero-cache/src/workers/syncer.d.ts.map +1 -1
- package/out/zero-cache/src/workers/syncer.js +20 -9
- package/out/zero-cache/src/workers/syncer.js.map +1 -1
- package/out/zero-client/src/client/context.d.ts +1 -1
- package/out/zero-client/src/client/context.d.ts.map +1 -1
- package/out/zero-client/src/client/context.js +99 -0
- package/out/zero-client/src/client/context.js.map +1 -0
- package/out/zero-client/src/client/crud.d.ts +8 -10
- package/out/zero-client/src/client/crud.d.ts.map +1 -1
- package/out/zero-client/src/client/crud.js +181 -0
- package/out/zero-client/src/client/crud.js.map +1 -0
- package/out/zero-client/src/client/enable-analytics.js +21 -0
- package/out/zero-client/src/client/enable-analytics.js.map +1 -0
- package/out/zero-client/src/client/http-string.js +14 -0
- package/out/zero-client/src/client/http-string.js.map +1 -0
- package/out/zero-client/src/client/keys.d.ts +3 -2
- package/out/zero-client/src/client/keys.d.ts.map +1 -1
- package/out/zero-client/src/client/keys.js +32 -0
- package/out/zero-client/src/client/keys.js.map +1 -0
- package/out/zero-client/src/client/log-options.js +57 -0
- package/out/zero-client/src/client/log-options.js.map +1 -0
- package/out/zero-client/src/client/metrics.js +268 -0
- package/out/zero-client/src/client/metrics.js.map +1 -0
- package/out/zero-client/src/client/normalized-schema.d.ts +17 -0
- package/out/zero-client/src/client/normalized-schema.d.ts.map +1 -0
- package/out/zero-client/src/client/normalized-schema.js +31 -0
- package/out/zero-client/src/client/normalized-schema.js.map +1 -0
- package/out/zero-client/src/client/options.js +2 -0
- package/out/zero-client/src/client/options.js.map +1 -0
- package/out/zero-client/src/client/query-manager.d.ts +18 -3
- package/out/zero-client/src/client/query-manager.d.ts.map +1 -1
- package/out/zero-client/src/client/query-manager.js +149 -0
- package/out/zero-client/src/client/query-manager.js.map +1 -0
- package/out/zero-client/src/client/reload-error-handler.js +23 -0
- package/out/zero-client/src/client/reload-error-handler.js.map +1 -0
- package/out/zero-client/src/client/replicache-types.js +2 -0
- package/out/zero-client/src/client/replicache-types.js.map +1 -0
- package/out/zero-client/src/client/server-error.js +22 -0
- package/out/zero-client/src/client/server-error.js.map +1 -0
- package/out/zero-client/src/client/server-option.js +37 -0
- package/out/zero-client/src/client/server-option.js.map +1 -0
- package/out/zero-client/src/client/version.js +5 -0
- package/out/zero-client/src/client/version.js.map +1 -0
- package/out/zero-client/src/client/zero-poke-handler.d.ts +3 -3
- package/out/zero-client/src/client/zero-poke-handler.d.ts.map +1 -1
- package/out/zero-client/src/client/zero-poke-handler.js +240 -0
- package/out/zero-client/src/client/zero-poke-handler.js.map +1 -0
- package/out/zero-client/src/client/zero.d.ts +3 -2
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.js +1212 -0
- package/out/zero-client/src/client/zero.js.map +1 -0
- package/out/zero-client/src/mod.js +4 -0
- package/out/zero-client/src/mod.js.map +1 -0
- package/out/zero-client/src/util/nanoid.js +34 -0
- package/out/zero-client/src/util/nanoid.js.map +1 -0
- package/out/zero-client/src/util/socket.js +4 -0
- package/out/zero-client/src/util/socket.js.map +1 -0
- package/out/zero-protocol/src/ast.d.ts +87 -1
- package/out/zero-protocol/src/ast.d.ts.map +1 -1
- package/out/zero-protocol/src/ast.js +53 -0
- package/out/zero-protocol/src/ast.js.map +1 -1
- package/out/zero-protocol/src/change-desired-queries.d.ts +6 -6
- package/out/zero-protocol/src/change-desired-queries.d.ts.map +1 -1
- package/out/zero-protocol/src/clients-patch.d.ts +1 -1
- package/out/zero-protocol/src/connect.d.ts +15 -8
- package/out/zero-protocol/src/connect.d.ts.map +1 -1
- package/out/zero-protocol/src/connect.js +21 -0
- package/out/zero-protocol/src/connect.js.map +1 -1
- package/out/zero-protocol/src/data.d.ts +36 -0
- package/out/zero-protocol/src/data.d.ts.map +1 -0
- package/out/zero-protocol/src/data.js +4 -0
- package/out/zero-protocol/src/data.js.map +1 -0
- package/out/zero-protocol/src/delete-clients.d.ts +4 -4
- package/out/zero-protocol/src/delete-clients.d.ts.map +1 -1
- package/out/zero-protocol/src/down.d.ts +18 -16
- package/out/zero-protocol/src/down.d.ts.map +1 -1
- package/out/zero-protocol/src/down.js +2 -1
- package/out/zero-protocol/src/down.js.map +1 -1
- package/out/zero-protocol/src/mod.d.ts +1 -2
- package/out/zero-protocol/src/mod.d.ts.map +1 -1
- package/out/zero-protocol/src/mod.js +2 -2
- package/out/zero-protocol/src/mod.js.map +1 -1
- package/out/zero-protocol/src/ping.d.ts +1 -1
- package/out/zero-protocol/src/ping.d.ts.map +1 -1
- package/out/zero-protocol/src/poke.d.ts +26 -26
- package/out/zero-protocol/src/poke.d.ts.map +1 -1
- package/out/zero-protocol/src/poke.js +8 -5
- package/out/zero-protocol/src/poke.js.map +1 -1
- package/out/zero-protocol/src/pong.d.ts +1 -1
- package/out/zero-protocol/src/pong.d.ts.map +1 -1
- package/out/zero-protocol/src/primary-key.d.ts +2 -3
- package/out/zero-protocol/src/primary-key.d.ts.map +1 -1
- package/out/zero-protocol/src/primary-key.js +1 -3
- package/out/zero-protocol/src/primary-key.js.map +1 -1
- package/out/zero-protocol/src/pull.d.ts +4 -4
- package/out/zero-protocol/src/pull.d.ts.map +1 -1
- package/out/zero-protocol/src/push.d.ts +105 -98
- package/out/zero-protocol/src/push.d.ts.map +1 -1
- package/out/zero-protocol/src/push.js +17 -13
- package/out/zero-protocol/src/push.js.map +1 -1
- package/out/zero-protocol/src/queries-patch.d.ts +4 -4
- package/out/zero-protocol/src/row-patch.d.ts +38 -0
- package/out/zero-protocol/src/row-patch.d.ts.map +1 -0
- package/out/zero-protocol/src/{entities-patch.js → row-patch.js} +10 -11
- package/out/zero-protocol/src/row-patch.js.map +1 -0
- package/out/zero-protocol/src/up.d.ts +28 -27
- package/out/zero-protocol/src/up.d.ts.map +1 -1
- package/out/zero-protocol/src/warm.d.ts +10 -0
- package/out/zero-protocol/src/warm.d.ts.map +1 -0
- package/out/zero-protocol/src/warm.js +6 -0
- package/out/zero-protocol/src/warm.js.map +1 -0
- package/out/zero-react/src/use-query.d.ts.map +1 -1
- package/out/zero.js +499 -208
- package/out/zero.js.map +4 -4
- package/out/zql/src/zql/builder/builder.d.ts +3 -3
- package/out/zql/src/zql/builder/builder.d.ts.map +1 -1
- package/out/zql/src/zql/builder/builder.js +1 -1
- package/out/zql/src/zql/builder/builder.js.map +1 -1
- package/out/zql/src/zql/builder/filter.d.ts +2 -2
- package/out/zql/src/zql/builder/filter.d.ts.map +1 -1
- package/out/zql/src/zql/builder/filter.js.map +1 -1
- package/out/zql/src/zql/ivm/array-view.d.ts +1 -1
- package/out/zql/src/zql/ivm/array-view.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/array-view.js +232 -0
- package/out/zql/src/zql/ivm/array-view.js.map +1 -0
- package/out/zql/src/zql/ivm/change.d.ts +2 -1
- package/out/zql/src/zql/ivm/change.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/data.d.ts +2 -33
- package/out/zql/src/zql/ivm/data.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/data.js.map +1 -1
- package/out/zql/src/zql/ivm/filter.d.ts +2 -1
- package/out/zql/src/zql/ivm/filter.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/filter.js.map +1 -1
- package/out/zql/src/zql/ivm/join.d.ts +1 -1
- package/out/zql/src/zql/ivm/join.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/join.js +68 -24
- package/out/zql/src/zql/ivm/join.js.map +1 -1
- package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.d.ts +1 -1
- package/out/zql/src/zql/ivm/maybe-split-and-push-edit-change.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/memory-source.d.ts +8 -6
- package/out/zql/src/zql/ivm/memory-source.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/memory-source.js +2 -0
- package/out/zql/src/zql/ivm/memory-source.js.map +1 -1
- package/out/zql/src/zql/ivm/memory-storage.js +33 -0
- package/out/zql/src/zql/ivm/memory-storage.js.map +1 -0
- package/out/zql/src/zql/ivm/operator.d.ts +2 -1
- package/out/zql/src/zql/ivm/operator.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/schema.d.ts +3 -3
- package/out/zql/src/zql/ivm/schema.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/schema.js.map +1 -1
- package/out/zql/src/zql/ivm/skip.d.ts +2 -1
- package/out/zql/src/zql/ivm/skip.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/skip.js.map +1 -1
- package/out/zql/src/zql/ivm/source.d.ts +2 -2
- package/out/zql/src/zql/ivm/source.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/take.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/take.js.map +1 -1
- package/out/zql/src/zql/query/normalize-table-schema.d.ts +48 -0
- package/out/zql/src/zql/query/normalize-table-schema.d.ts.map +1 -0
- package/out/zql/src/zql/query/normalize-table-schema.js +116 -0
- package/out/zql/src/zql/query/normalize-table-schema.js.map +1 -0
- package/out/zql/src/zql/query/query-impl.d.ts +6 -5
- package/out/zql/src/zql/query/query-impl.d.ts.map +1 -1
- package/out/zql/src/zql/query/query-impl.js +263 -0
- package/out/zql/src/zql/query/query-impl.js.map +1 -0
- package/out/zql/src/zql/query/query.d.ts +1 -1
- package/out/zql/src/zql/query/query.d.ts.map +1 -1
- package/out/zql/src/zql/query/query.js +3 -0
- package/out/zql/src/zql/query/query.js.map +1 -0
- package/out/zql/src/zql/query/schema.d.ts +13 -4
- package/out/zql/src/zql/query/schema.d.ts.map +1 -1
- package/out/zql/src/zql/query/schema.js +7 -0
- package/out/zql/src/zql/query/schema.js.map +1 -0
- package/out/zql/src/zql/query/typed-view.js +2 -0
- package/out/zql/src/zql/query/typed-view.js.map +1 -0
- package/out/zqlite/src/db.d.ts +1 -1
- package/out/zqlite/src/db.d.ts.map +1 -1
- package/out/zqlite/src/db.js +1 -1
- package/out/zqlite/src/db.js.map +1 -1
- package/out/zqlite/src/table-source.d.ts +2 -2
- package/out/zqlite/src/table-source.d.ts.map +1 -1
- package/out/zqlite/src/table-source.js.map +1 -1
- package/package.json +10 -8
- package/deps/sqlite3/sqlite3.c +0 -260574
- package/deps/sqlite3/sqlite3.h +0 -13572
- package/deps/sqlite3/sqlite3ext.h +0 -719
- package/out/zero-cache/src/db/migration-lite.d.ts.map +0 -1
- package/out/zero-cache/src/db/migration-lite.js.map +0 -1
- package/out/zero-cache/src/db/migration.d.ts.map +0 -1
- package/out/zero-cache/src/db/migration.js.map +0 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.d.ts +0 -6
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.js +0 -29
- package/out/zero-cache/src/services/change-streamer/pg/schema/create.js.map +0 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/lite.d.ts +0 -6
- package/out/zero-cache/src/services/change-streamer/pg/schema/lite.d.ts.map +0 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/lite.js.map +0 -1
- package/out/zero-cache/src/types/specs.d.ts +0 -29
- package/out/zero-cache/src/types/specs.d.ts.map +0 -1
- package/out/zero-cache/src/types/specs.js +0 -2
- package/out/zero-cache/src/types/specs.js.map +0 -1
- package/out/zero-client/src/client/make-id-from-primary-key.d.ts +0 -5
- package/out/zero-client/src/client/make-id-from-primary-key.d.ts.map +0 -1
- package/out/zero-protocol/src/entities-patch.d.ts +0 -66
- package/out/zero-protocol/src/entities-patch.d.ts.map +0 -1
- package/out/zero-protocol/src/entities-patch.js.map +0 -1
- package/out/zql/src/zql/ast/ast.d.ts +0 -84
- package/out/zql/src/zql/ast/ast.d.ts.map +0 -1
- package/out/zql/src/zql/ast/ast.js +0 -54
- package/out/zql/src/zql/ast/ast.js.map +0 -1
- package/tool/install-sqlite3.js +0 -37
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as v from '../../../shared/src/valita.js';
|
|
5
5
|
export type Action = 'select' | 'insert' | 'update' | 'delete';
|
|
6
|
-
declare const ruleSchema: v.
|
|
6
|
+
declare const ruleSchema: v.TupleType<[v.Type<"allow">, v.ObjectType<{
|
|
7
7
|
schema: v.Optional<string>;
|
|
8
8
|
table: v.Type<string>;
|
|
9
9
|
alias: v.Optional<string>;
|
|
@@ -17,16 +17,16 @@ declare const ruleSchema: v.ArrayType<[v.Type<"allow">, v.ObjectType<{
|
|
|
17
17
|
field: string;
|
|
18
18
|
};
|
|
19
19
|
}[]>;
|
|
20
|
-
related: v.Optional<readonly import("../../../
|
|
20
|
+
related: v.Optional<readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[]>;
|
|
21
21
|
limit: v.Optional<number>;
|
|
22
22
|
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
23
23
|
start: v.Optional<{
|
|
24
24
|
row: Record<string, string | number | boolean | null | undefined>;
|
|
25
25
|
exclusive: boolean;
|
|
26
26
|
}>;
|
|
27
|
-
}, undefined>]
|
|
27
|
+
}, undefined>]>;
|
|
28
28
|
export type Rule = v.Infer<typeof ruleSchema>;
|
|
29
|
-
declare const policySchema: v.ArrayType<
|
|
29
|
+
declare const policySchema: v.ArrayType<v.TupleType<[v.Type<"allow">, v.ObjectType<{
|
|
30
30
|
schema: v.Optional<string>;
|
|
31
31
|
table: v.Type<string>;
|
|
32
32
|
alias: v.Optional<string>;
|
|
@@ -40,14 +40,14 @@ declare const policySchema: v.ArrayType<[], v.ArrayType<[v.Type<"allow">, v.Obje
|
|
|
40
40
|
field: string;
|
|
41
41
|
};
|
|
42
42
|
}[]>;
|
|
43
|
-
related: v.Optional<readonly import("../../../
|
|
43
|
+
related: v.Optional<readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[]>;
|
|
44
44
|
limit: v.Optional<number>;
|
|
45
45
|
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
46
46
|
start: v.Optional<{
|
|
47
47
|
row: Record<string, string | number | boolean | null | undefined>;
|
|
48
48
|
exclusive: boolean;
|
|
49
49
|
}>;
|
|
50
|
-
}, undefined>]
|
|
50
|
+
}, undefined>]>>;
|
|
51
51
|
export type Policy = v.Infer<typeof policySchema>;
|
|
52
52
|
declare const assetSchema: v.ObjectType<{
|
|
53
53
|
select: v.Optional<["allow", {
|
|
@@ -63,7 +63,7 @@ declare const assetSchema: v.ObjectType<{
|
|
|
63
63
|
field: string;
|
|
64
64
|
};
|
|
65
65
|
}[] | undefined;
|
|
66
|
-
related?: readonly import("../../../
|
|
66
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
67
67
|
limit?: number | undefined;
|
|
68
68
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
69
69
|
start?: {
|
|
@@ -85,7 +85,7 @@ declare const assetSchema: v.ObjectType<{
|
|
|
85
85
|
field: string;
|
|
86
86
|
};
|
|
87
87
|
}[] | undefined;
|
|
88
|
-
related?: readonly import("../../../
|
|
88
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
89
89
|
limit?: number | undefined;
|
|
90
90
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
91
91
|
start?: {
|
|
@@ -107,7 +107,7 @@ declare const assetSchema: v.ObjectType<{
|
|
|
107
107
|
field: string;
|
|
108
108
|
};
|
|
109
109
|
}[] | undefined;
|
|
110
|
-
related?: readonly import("../../../
|
|
110
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
111
111
|
limit?: number | undefined;
|
|
112
112
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
113
113
|
start?: {
|
|
@@ -129,7 +129,7 @@ declare const assetSchema: v.ObjectType<{
|
|
|
129
129
|
field: string;
|
|
130
130
|
};
|
|
131
131
|
}[] | undefined;
|
|
132
|
-
related?: readonly import("../../../
|
|
132
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
133
133
|
limit?: number | undefined;
|
|
134
134
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
135
135
|
start?: {
|
|
@@ -155,7 +155,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
155
155
|
field: string;
|
|
156
156
|
};
|
|
157
157
|
}[] | undefined;
|
|
158
|
-
related?: readonly import("../../../
|
|
158
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
159
159
|
limit?: number | undefined;
|
|
160
160
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
161
161
|
start?: {
|
|
@@ -177,7 +177,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
177
177
|
field: string;
|
|
178
178
|
};
|
|
179
179
|
}[] | undefined;
|
|
180
|
-
related?: readonly import("../../../
|
|
180
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
181
181
|
limit?: number | undefined;
|
|
182
182
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
183
183
|
start?: {
|
|
@@ -199,7 +199,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
199
199
|
field: string;
|
|
200
200
|
};
|
|
201
201
|
}[] | undefined;
|
|
202
|
-
related?: readonly import("../../../
|
|
202
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
203
203
|
limit?: number | undefined;
|
|
204
204
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
205
205
|
start?: {
|
|
@@ -221,7 +221,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
221
221
|
field: string;
|
|
222
222
|
};
|
|
223
223
|
}[] | undefined;
|
|
224
|
-
related?: readonly import("../../../
|
|
224
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
225
225
|
limit?: number | undefined;
|
|
226
226
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
227
227
|
start?: {
|
|
@@ -245,7 +245,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
245
245
|
field: string;
|
|
246
246
|
};
|
|
247
247
|
}[] | undefined;
|
|
248
|
-
related?: readonly import("../../../
|
|
248
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
249
249
|
limit?: number | undefined;
|
|
250
250
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
251
251
|
start?: {
|
|
@@ -267,7 +267,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
267
267
|
field: string;
|
|
268
268
|
};
|
|
269
269
|
}[] | undefined;
|
|
270
|
-
related?: readonly import("../../../
|
|
270
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
271
271
|
limit?: number | undefined;
|
|
272
272
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
273
273
|
start?: {
|
|
@@ -289,7 +289,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
289
289
|
field: string;
|
|
290
290
|
};
|
|
291
291
|
}[] | undefined;
|
|
292
|
-
related?: readonly import("../../../
|
|
292
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
293
293
|
limit?: number | undefined;
|
|
294
294
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
295
295
|
start?: {
|
|
@@ -311,7 +311,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
311
311
|
field: string;
|
|
312
312
|
};
|
|
313
313
|
}[] | undefined;
|
|
314
|
-
related?: readonly import("../../../
|
|
314
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
315
315
|
limit?: number | undefined;
|
|
316
316
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
317
317
|
start?: {
|
|
@@ -335,7 +335,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
335
335
|
field: string;
|
|
336
336
|
};
|
|
337
337
|
}[] | undefined;
|
|
338
|
-
related?: readonly import("../../../
|
|
338
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
339
339
|
limit?: number | undefined;
|
|
340
340
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
341
341
|
start?: {
|
|
@@ -357,7 +357,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
357
357
|
field: string;
|
|
358
358
|
};
|
|
359
359
|
}[] | undefined;
|
|
360
|
-
related?: readonly import("../../../
|
|
360
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
361
361
|
limit?: number | undefined;
|
|
362
362
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
363
363
|
start?: {
|
|
@@ -379,7 +379,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
379
379
|
field: string;
|
|
380
380
|
};
|
|
381
381
|
}[] | undefined;
|
|
382
|
-
related?: readonly import("../../../
|
|
382
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
383
383
|
limit?: number | undefined;
|
|
384
384
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
385
385
|
start?: {
|
|
@@ -401,7 +401,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
401
401
|
field: string;
|
|
402
402
|
};
|
|
403
403
|
}[] | undefined;
|
|
404
|
-
related?: readonly import("../../../
|
|
404
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
405
405
|
limit?: number | undefined;
|
|
406
406
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
407
407
|
start?: {
|
|
@@ -425,7 +425,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
425
425
|
field: string;
|
|
426
426
|
};
|
|
427
427
|
}[] | undefined;
|
|
428
|
-
related?: readonly import("../../../
|
|
428
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
429
429
|
limit?: number | undefined;
|
|
430
430
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
431
431
|
start?: {
|
|
@@ -447,7 +447,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
447
447
|
field: string;
|
|
448
448
|
};
|
|
449
449
|
}[] | undefined;
|
|
450
|
-
related?: readonly import("../../../
|
|
450
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
451
451
|
limit?: number | undefined;
|
|
452
452
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
453
453
|
start?: {
|
|
@@ -469,7 +469,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
469
469
|
field: string;
|
|
470
470
|
};
|
|
471
471
|
}[] | undefined;
|
|
472
|
-
related?: readonly import("../../../
|
|
472
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
473
473
|
limit?: number | undefined;
|
|
474
474
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
475
475
|
start?: {
|
|
@@ -491,7 +491,7 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
491
491
|
field: string;
|
|
492
492
|
};
|
|
493
493
|
}[] | undefined;
|
|
494
|
-
related?: readonly import("../../../
|
|
494
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
495
495
|
limit?: number | undefined;
|
|
496
496
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
497
497
|
start?: {
|
|
@@ -503,265 +503,62 @@ declare const authorizationConfigSchema: v.Type<Record<string, {
|
|
|
503
503
|
}> | undefined;
|
|
504
504
|
}>>;
|
|
505
505
|
export type AuthorizationConfig = v.Infer<typeof authorizationConfigSchema>;
|
|
506
|
-
declare const
|
|
507
|
-
tag: v.Type<"env">;
|
|
508
|
-
name: v.Type<string>;
|
|
509
|
-
}, undefined>;
|
|
510
|
-
export type EnvRef = v.Infer<typeof envRefSchema>;
|
|
511
|
-
/**
|
|
512
|
-
* Configures the view of the upstream database replicated to this zero-cache.
|
|
513
|
-
*/
|
|
514
|
-
declare const shardConfigSchema: v.ObjectType<{
|
|
506
|
+
declare const logConfigSchema: v.ObjectType<{
|
|
515
507
|
/**
|
|
516
|
-
*
|
|
517
|
-
*
|
|
518
|
-
* the replication slot.
|
|
519
|
-
*
|
|
520
|
-
* The shard `id` value is written to the `shardID` column when updating
|
|
521
|
-
* the `lastMutationID` for clients in the `zero.clients` table.
|
|
522
|
-
*
|
|
523
|
-
* Defaults to "0".
|
|
508
|
+
* `debug`, `info`, `warn`, or `error`.
|
|
509
|
+
* Defaults to `info`.
|
|
524
510
|
*/
|
|
525
|
-
|
|
526
|
-
tag: v.Type<"env">;
|
|
527
|
-
name: v.Type<string>;
|
|
528
|
-
}, undefined>, v.Type<string>]>;
|
|
529
|
-
/**
|
|
530
|
-
* Optional (comma-separated) list of of Postgres `PUBLICATION`s that the
|
|
531
|
-
* shard subscribes to. All publication names must begin with the prefix
|
|
532
|
-
* `"zero_"`, and all tables must be in the `"public"` Postgres schema.
|
|
533
|
-
*
|
|
534
|
-
* If unspecified, zero will create and use a `"zero_public"` publication that
|
|
535
|
-
* publishes all tables in the `"public"` schema.
|
|
536
|
-
*
|
|
537
|
-
* ```sql
|
|
538
|
-
* CREATE PUBLICATION zero_public FOR TABLES IN SCHEMA public;
|
|
539
|
-
* ```
|
|
540
|
-
*
|
|
541
|
-
* Note that once a shard has begun syncing data, this list of publications
|
|
542
|
-
* cannot be changed, and zero-cache will refuse to start if a specified
|
|
543
|
-
* value differs from what it originally synced.
|
|
544
|
-
*
|
|
545
|
-
* To use a different set of publications, a new shard should be created.
|
|
546
|
-
*/
|
|
547
|
-
publications: v.UnionType<[v.ObjectType<{
|
|
548
|
-
tag: v.Type<"env">;
|
|
549
|
-
name: v.Type<string>;
|
|
550
|
-
}, undefined>, v.Type<string>]>;
|
|
551
|
-
}, undefined>;
|
|
552
|
-
type ShardConfigType = v.Infer<typeof shardConfigSchema>;
|
|
553
|
-
declare const logConfigSchema: v.ObjectType<{
|
|
554
|
-
level: v.UnionType<[v.ObjectType<{
|
|
555
|
-
tag: v.Type<"env">;
|
|
556
|
-
name: v.Type<string>;
|
|
557
|
-
}, undefined>, v.UnionType<[v.Type<"debug">, v.Type<"info">, v.Type<"error">]>]>;
|
|
511
|
+
level: v.Optional<"error" | "debug" | "info" | "warn">;
|
|
558
512
|
/**
|
|
559
513
|
* Defaults to `text` for developer-friendly console logging.
|
|
560
514
|
* Also supports `json` for consumption by structured-logging services.
|
|
561
515
|
*/
|
|
562
|
-
format: v.Optional<
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
} | "text" | "json">;
|
|
566
|
-
datadogLogsApiKey: v.Optional<string | {
|
|
567
|
-
tag: "env";
|
|
568
|
-
name: string;
|
|
569
|
-
}>;
|
|
570
|
-
datadogServiceLabel: v.Optional<string | {
|
|
571
|
-
tag: "env";
|
|
572
|
-
name: string;
|
|
573
|
-
}>;
|
|
516
|
+
format: v.Optional<"text" | "json">;
|
|
517
|
+
datadogLogsApiKey: v.Optional<string>;
|
|
518
|
+
datadogServiceLabel: v.Optional<string>;
|
|
574
519
|
}, undefined>;
|
|
575
|
-
type
|
|
576
|
-
declare const
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}, undefined>;
|
|
589
|
-
type RateLimitConfigType = v.Infer<typeof rateLimitConfigSchema>;
|
|
590
|
-
declare const zeroConfigSchemaSansAuthorization: v.ObjectType<{
|
|
591
|
-
upstreamDBConnStr: v.UnionType<[v.ObjectType<{
|
|
592
|
-
tag: v.Type<"env">;
|
|
593
|
-
name: v.Type<string>;
|
|
594
|
-
}, undefined>, v.Type<string>]>;
|
|
595
|
-
cvrDBConnStr: v.UnionType<[v.ObjectType<{
|
|
596
|
-
tag: v.Type<"env">;
|
|
597
|
-
name: v.Type<string>;
|
|
598
|
-
}, undefined>, v.Type<string>]>;
|
|
599
|
-
changeDBConnStr: v.UnionType<[v.ObjectType<{
|
|
600
|
-
tag: v.Type<"env">;
|
|
601
|
-
name: v.Type<string>;
|
|
602
|
-
}, undefined>, v.Type<string>]>;
|
|
603
|
-
taskId: v.Optional<string | {
|
|
604
|
-
tag: "env";
|
|
605
|
-
name: string;
|
|
606
|
-
}>;
|
|
607
|
-
replicaDBFile: v.UnionType<[v.ObjectType<{
|
|
608
|
-
tag: v.Type<"env">;
|
|
609
|
-
name: v.Type<string>;
|
|
610
|
-
}, undefined>, v.Type<string>]>;
|
|
611
|
-
storageDbTmpDir: v.Optional<string | {
|
|
612
|
-
tag: "env";
|
|
613
|
-
name: string;
|
|
614
|
-
}>;
|
|
615
|
-
numSyncWorkers: v.Optional<number | {
|
|
616
|
-
tag: "env";
|
|
617
|
-
name: string;
|
|
618
|
-
}>;
|
|
619
|
-
changeStreamerConnStr: v.Optional<string | {
|
|
620
|
-
tag: "env";
|
|
621
|
-
name: string;
|
|
622
|
-
}>;
|
|
623
|
-
litestream: v.Optional<boolean | {
|
|
624
|
-
tag: "env";
|
|
625
|
-
name: string;
|
|
626
|
-
}>;
|
|
627
|
-
jwtSecret: v.Optional<string | {
|
|
628
|
-
tag: "env";
|
|
629
|
-
name: string;
|
|
630
|
-
}>;
|
|
631
|
-
log: v.ObjectType<{
|
|
632
|
-
level: v.UnionType<[v.ObjectType<{
|
|
633
|
-
tag: v.Type<"env">;
|
|
634
|
-
name: v.Type<string>;
|
|
635
|
-
}, undefined>, v.UnionType<[v.Type<"debug">, v.Type<"info">, v.Type<"error">]>]>;
|
|
636
|
-
/**
|
|
637
|
-
* Defaults to `text` for developer-friendly console logging.
|
|
638
|
-
* Also supports `json` for consumption by structured-logging services.
|
|
639
|
-
*/
|
|
640
|
-
format: v.Optional<{
|
|
641
|
-
tag: "env";
|
|
642
|
-
name: string;
|
|
643
|
-
} | "text" | "json">;
|
|
644
|
-
datadogLogsApiKey: v.Optional<string | {
|
|
645
|
-
tag: "env";
|
|
646
|
-
name: string;
|
|
647
|
-
}>;
|
|
648
|
-
datadogServiceLabel: v.Optional<string | {
|
|
649
|
-
tag: "env";
|
|
650
|
-
name: string;
|
|
651
|
-
}>;
|
|
652
|
-
}, undefined>;
|
|
653
|
-
shard: v.Optional<{
|
|
654
|
-
id: string | {
|
|
655
|
-
tag: "env";
|
|
656
|
-
name: string;
|
|
657
|
-
};
|
|
658
|
-
publications: string | {
|
|
659
|
-
tag: "env";
|
|
660
|
-
name: string;
|
|
661
|
-
};
|
|
662
|
-
}>;
|
|
520
|
+
export type LogConfig = v.Infer<typeof logConfigSchema>;
|
|
521
|
+
declare const zeroConfigBase: v.ObjectType<{
|
|
522
|
+
upstreamDBConnStr: v.Type<string>;
|
|
523
|
+
cvrDBConnStr: v.Type<string>;
|
|
524
|
+
changeDBConnStr: v.Type<string>;
|
|
525
|
+
taskId: v.Optional<string>;
|
|
526
|
+
replicaDBFile: v.Type<string>;
|
|
527
|
+
storageDBTmpDir: v.Optional<string>;
|
|
528
|
+
warmWebsocket: v.Optional<number>;
|
|
529
|
+
numSyncWorkers: v.Optional<number>;
|
|
530
|
+
changeStreamerConnStr: v.Optional<string>;
|
|
531
|
+
litestream: v.Optional<boolean>;
|
|
532
|
+
jwtSecret: v.Optional<string>;
|
|
663
533
|
rateLimit: v.Optional<{
|
|
664
534
|
mutationTransactions: {
|
|
665
535
|
algorithm: "sliding-window";
|
|
666
|
-
windowMs: number
|
|
667
|
-
|
|
668
|
-
name: string;
|
|
669
|
-
};
|
|
670
|
-
maxTransactions: number | {
|
|
671
|
-
tag: "env";
|
|
672
|
-
name: string;
|
|
673
|
-
};
|
|
536
|
+
windowMs: number;
|
|
537
|
+
maxTransactions: number;
|
|
674
538
|
};
|
|
675
539
|
}>;
|
|
676
540
|
}, undefined>;
|
|
677
|
-
export type
|
|
541
|
+
export type ZeroConfigBase = v.Infer<typeof zeroConfigBase>;
|
|
678
542
|
export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
679
|
-
upstreamDBConnStr: v.
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}, undefined>, v.Type<string>]>;
|
|
691
|
-
taskId: v.Optional<string | {
|
|
692
|
-
tag: "env";
|
|
693
|
-
name: string;
|
|
694
|
-
}>;
|
|
695
|
-
replicaDBFile: v.UnionType<[v.ObjectType<{
|
|
696
|
-
tag: v.Type<"env">;
|
|
697
|
-
name: v.Type<string>;
|
|
698
|
-
}, undefined>, v.Type<string>]>;
|
|
699
|
-
storageDbTmpDir: v.Optional<string | {
|
|
700
|
-
tag: "env";
|
|
701
|
-
name: string;
|
|
702
|
-
}>;
|
|
703
|
-
numSyncWorkers: v.Optional<number | {
|
|
704
|
-
tag: "env";
|
|
705
|
-
name: string;
|
|
706
|
-
}>;
|
|
707
|
-
changeStreamerConnStr: v.Optional<string | {
|
|
708
|
-
tag: "env";
|
|
709
|
-
name: string;
|
|
710
|
-
}>;
|
|
711
|
-
litestream: v.Optional<boolean | {
|
|
712
|
-
tag: "env";
|
|
713
|
-
name: string;
|
|
714
|
-
}>;
|
|
715
|
-
jwtSecret: v.Optional<string | {
|
|
716
|
-
tag: "env";
|
|
717
|
-
name: string;
|
|
718
|
-
}>;
|
|
719
|
-
log: v.ObjectType<{
|
|
720
|
-
level: v.UnionType<[v.ObjectType<{
|
|
721
|
-
tag: v.Type<"env">;
|
|
722
|
-
name: v.Type<string>;
|
|
723
|
-
}, undefined>, v.UnionType<[v.Type<"debug">, v.Type<"info">, v.Type<"error">]>]>;
|
|
724
|
-
/**
|
|
725
|
-
* Defaults to `text` for developer-friendly console logging.
|
|
726
|
-
* Also supports `json` for consumption by structured-logging services.
|
|
727
|
-
*/
|
|
728
|
-
format: v.Optional<{
|
|
729
|
-
tag: "env";
|
|
730
|
-
name: string;
|
|
731
|
-
} | "text" | "json">;
|
|
732
|
-
datadogLogsApiKey: v.Optional<string | {
|
|
733
|
-
tag: "env";
|
|
734
|
-
name: string;
|
|
735
|
-
}>;
|
|
736
|
-
datadogServiceLabel: v.Optional<string | {
|
|
737
|
-
tag: "env";
|
|
738
|
-
name: string;
|
|
739
|
-
}>;
|
|
740
|
-
}, undefined>;
|
|
741
|
-
shard: v.Optional<{
|
|
742
|
-
id: string | {
|
|
743
|
-
tag: "env";
|
|
744
|
-
name: string;
|
|
745
|
-
};
|
|
746
|
-
publications: string | {
|
|
747
|
-
tag: "env";
|
|
748
|
-
name: string;
|
|
749
|
-
};
|
|
750
|
-
}>;
|
|
543
|
+
upstreamDBConnStr: v.Type<string>;
|
|
544
|
+
cvrDBConnStr: v.Type<string>;
|
|
545
|
+
changeDBConnStr: v.Type<string>;
|
|
546
|
+
taskId: v.Optional<string>;
|
|
547
|
+
replicaDBFile: v.Type<string>;
|
|
548
|
+
storageDBTmpDir: v.Optional<string>;
|
|
549
|
+
warmWebsocket: v.Optional<number>;
|
|
550
|
+
numSyncWorkers: v.Optional<number>;
|
|
551
|
+
changeStreamerConnStr: v.Optional<string>;
|
|
552
|
+
litestream: v.Optional<boolean>;
|
|
553
|
+
jwtSecret: v.Optional<string>;
|
|
751
554
|
rateLimit: v.Optional<{
|
|
752
555
|
mutationTransactions: {
|
|
753
556
|
algorithm: "sliding-window";
|
|
754
|
-
windowMs: number
|
|
755
|
-
|
|
756
|
-
name: string;
|
|
757
|
-
};
|
|
758
|
-
maxTransactions: number | {
|
|
759
|
-
tag: "env";
|
|
760
|
-
name: string;
|
|
761
|
-
};
|
|
557
|
+
windowMs: number;
|
|
558
|
+
maxTransactions: number;
|
|
762
559
|
};
|
|
763
560
|
}>;
|
|
764
|
-
}, "authorization"> & {
|
|
561
|
+
}, "authorization" | "shard" | "log"> & {
|
|
765
562
|
authorization: v.Optional<Record<string, {
|
|
766
563
|
table?: {
|
|
767
564
|
select?: ["allow", {
|
|
@@ -777,7 +574,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
777
574
|
field: string;
|
|
778
575
|
};
|
|
779
576
|
}[] | undefined;
|
|
780
|
-
related?: readonly import("../../../
|
|
577
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
781
578
|
limit?: number | undefined;
|
|
782
579
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
783
580
|
start?: {
|
|
@@ -799,7 +596,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
799
596
|
field: string;
|
|
800
597
|
};
|
|
801
598
|
}[] | undefined;
|
|
802
|
-
related?: readonly import("../../../
|
|
599
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
803
600
|
limit?: number | undefined;
|
|
804
601
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
805
602
|
start?: {
|
|
@@ -821,7 +618,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
821
618
|
field: string;
|
|
822
619
|
};
|
|
823
620
|
}[] | undefined;
|
|
824
|
-
related?: readonly import("../../../
|
|
621
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
825
622
|
limit?: number | undefined;
|
|
826
623
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
827
624
|
start?: {
|
|
@@ -843,7 +640,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
843
640
|
field: string;
|
|
844
641
|
};
|
|
845
642
|
}[] | undefined;
|
|
846
|
-
related?: readonly import("../../../
|
|
643
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
847
644
|
limit?: number | undefined;
|
|
848
645
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
849
646
|
start?: {
|
|
@@ -867,7 +664,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
867
664
|
field: string;
|
|
868
665
|
};
|
|
869
666
|
}[] | undefined;
|
|
870
|
-
related?: readonly import("../../../
|
|
667
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
871
668
|
limit?: number | undefined;
|
|
872
669
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
873
670
|
start?: {
|
|
@@ -889,7 +686,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
889
686
|
field: string;
|
|
890
687
|
};
|
|
891
688
|
}[] | undefined;
|
|
892
|
-
related?: readonly import("../../../
|
|
689
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
893
690
|
limit?: number | undefined;
|
|
894
691
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
895
692
|
start?: {
|
|
@@ -911,7 +708,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
911
708
|
field: string;
|
|
912
709
|
};
|
|
913
710
|
}[] | undefined;
|
|
914
|
-
related?: readonly import("../../../
|
|
711
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
915
712
|
limit?: number | undefined;
|
|
916
713
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
917
714
|
start?: {
|
|
@@ -933,7 +730,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
933
730
|
field: string;
|
|
934
731
|
};
|
|
935
732
|
}[] | undefined;
|
|
936
|
-
related?: readonly import("../../../
|
|
733
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
937
734
|
limit?: number | undefined;
|
|
938
735
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
939
736
|
start?: {
|
|
@@ -957,7 +754,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
957
754
|
field: string;
|
|
958
755
|
};
|
|
959
756
|
}[] | undefined;
|
|
960
|
-
related?: readonly import("../../../
|
|
757
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
961
758
|
limit?: number | undefined;
|
|
962
759
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
963
760
|
start?: {
|
|
@@ -979,7 +776,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
979
776
|
field: string;
|
|
980
777
|
};
|
|
981
778
|
}[] | undefined;
|
|
982
|
-
related?: readonly import("../../../
|
|
779
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
983
780
|
limit?: number | undefined;
|
|
984
781
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
985
782
|
start?: {
|
|
@@ -1001,7 +798,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
1001
798
|
field: string;
|
|
1002
799
|
};
|
|
1003
800
|
}[] | undefined;
|
|
1004
|
-
related?: readonly import("../../../
|
|
801
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1005
802
|
limit?: number | undefined;
|
|
1006
803
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1007
804
|
start?: {
|
|
@@ -1023,7 +820,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
1023
820
|
field: string;
|
|
1024
821
|
};
|
|
1025
822
|
}[] | undefined;
|
|
1026
|
-
related?: readonly import("../../../
|
|
823
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1027
824
|
limit?: number | undefined;
|
|
1028
825
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1029
826
|
start?: {
|
|
@@ -1047,7 +844,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
1047
844
|
field: string;
|
|
1048
845
|
};
|
|
1049
846
|
}[] | undefined;
|
|
1050
|
-
related?: readonly import("../../../
|
|
847
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1051
848
|
limit?: number | undefined;
|
|
1052
849
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1053
850
|
start?: {
|
|
@@ -1069,7 +866,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
1069
866
|
field: string;
|
|
1070
867
|
};
|
|
1071
868
|
}[] | undefined;
|
|
1072
|
-
related?: readonly import("../../../
|
|
869
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1073
870
|
limit?: number | undefined;
|
|
1074
871
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1075
872
|
start?: {
|
|
@@ -1091,7 +888,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
1091
888
|
field: string;
|
|
1092
889
|
};
|
|
1093
890
|
}[] | undefined;
|
|
1094
|
-
related?: readonly import("../../../
|
|
891
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1095
892
|
limit?: number | undefined;
|
|
1096
893
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1097
894
|
start?: {
|
|
@@ -1113,7 +910,7 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
1113
910
|
field: string;
|
|
1114
911
|
};
|
|
1115
912
|
}[] | undefined;
|
|
1116
|
-
related?: readonly import("../../../
|
|
913
|
+
related?: readonly import("../../../zero-protocol/src/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1117
914
|
limit?: number | undefined;
|
|
1118
915
|
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1119
916
|
start?: {
|
|
@@ -1124,411 +921,54 @@ export declare const zeroConfigSchema: v.ObjectType<Omit<{
|
|
|
1124
921
|
}][] | undefined;
|
|
1125
922
|
}> | undefined;
|
|
1126
923
|
}>>;
|
|
924
|
+
shard: v.ObjectType<{
|
|
925
|
+
/**
|
|
926
|
+
* Unique identifier for the zero-cache shard. This is used to partition
|
|
927
|
+
* shardable tables such as `zero.clients`, as well as reserve a name for
|
|
928
|
+
* the replication slot.
|
|
929
|
+
*
|
|
930
|
+
* The shard `id` value is written to the `shardID` column when updating
|
|
931
|
+
* the `lastMutationID` for clients in the `zero.clients` table.
|
|
932
|
+
*
|
|
933
|
+
* Defaults to "0".
|
|
934
|
+
*/
|
|
935
|
+
id: v.Type<string>;
|
|
936
|
+
/**
|
|
937
|
+
* Optional (comma-separated) list of of Postgres `PUBLICATION`s that the
|
|
938
|
+
* shard subscribes to. All publication names must begin with the prefix
|
|
939
|
+
* `"zero_"`, and all tables must be in the `"public"` Postgres schema.
|
|
940
|
+
*
|
|
941
|
+
* If unspecified, zero will create and use a `"zero_public"` publication that
|
|
942
|
+
* publishes all tables in the `"public"` schema.
|
|
943
|
+
*
|
|
944
|
+
* ```sql
|
|
945
|
+
* CREATE PUBLICATION zero_public FOR TABLES IN SCHEMA public;
|
|
946
|
+
* ```
|
|
947
|
+
*
|
|
948
|
+
* Note that once a shard has begun syncing data, this list of publications
|
|
949
|
+
* cannot be changed, and zero-cache will refuse to start if a specified
|
|
950
|
+
* value differs from what it originally synced.
|
|
951
|
+
*
|
|
952
|
+
* To use a different set of publications, a new shard should be created.
|
|
953
|
+
*/
|
|
954
|
+
publications: v.ArrayType<v.Type<string>>;
|
|
955
|
+
}, undefined>;
|
|
956
|
+
log: v.ObjectType<{
|
|
957
|
+
/**
|
|
958
|
+
* `debug`, `info`, `warn`, or `error`.
|
|
959
|
+
* Defaults to `info`.
|
|
960
|
+
*/
|
|
961
|
+
level: v.Optional<"error" | "debug" | "info" | "warn">;
|
|
962
|
+
/**
|
|
963
|
+
* Defaults to `text` for developer-friendly console logging.
|
|
964
|
+
* Also supports `json` for consumption by structured-logging services.
|
|
965
|
+
*/
|
|
966
|
+
format: v.Optional<"text" | "json">;
|
|
967
|
+
datadogLogsApiKey: v.Optional<string>;
|
|
968
|
+
datadogServiceLabel: v.Optional<string>;
|
|
969
|
+
}, undefined>;
|
|
1127
970
|
}, undefined>;
|
|
1128
|
-
export type
|
|
971
|
+
export type ZeroConfig = v.Infer<typeof zeroConfigSchema>;
|
|
1129
972
|
export declare function getZeroConfig(): Promise<ZeroConfig>;
|
|
1130
|
-
export declare class ZeroConfig {
|
|
1131
|
-
#private;
|
|
1132
|
-
constructor(config: ZeroConfigType);
|
|
1133
|
-
get upstreamDBConnStr(): string;
|
|
1134
|
-
get cvrDBConnStr(): string;
|
|
1135
|
-
get changeDBConnStr(): string;
|
|
1136
|
-
get taskID(): string | undefined;
|
|
1137
|
-
get replicaDBFile(): string;
|
|
1138
|
-
get storageDBTmpDir(): string | undefined;
|
|
1139
|
-
get numSyncWorkers(): number | undefined;
|
|
1140
|
-
get changeStreamerConnStr(): string | undefined;
|
|
1141
|
-
get litestream(): boolean | undefined;
|
|
1142
|
-
get jwtSecret(): string | undefined;
|
|
1143
|
-
get shard(): ShardConfig;
|
|
1144
|
-
get log(): LogConfig;
|
|
1145
|
-
get rateLimit(): RateLimitConfig | undefined;
|
|
1146
|
-
get authorization(): Record<string, {
|
|
1147
|
-
table?: {
|
|
1148
|
-
select?: ["allow", {
|
|
1149
|
-
schema?: string | undefined;
|
|
1150
|
-
alias?: string | undefined;
|
|
1151
|
-
where?: readonly {
|
|
1152
|
-
type: "simple";
|
|
1153
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1154
|
-
field: string;
|
|
1155
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1156
|
-
type: "static";
|
|
1157
|
-
anchor: "authData" | "preMutationRow";
|
|
1158
|
-
field: string;
|
|
1159
|
-
};
|
|
1160
|
-
}[] | undefined;
|
|
1161
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1162
|
-
limit?: number | undefined;
|
|
1163
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1164
|
-
start?: {
|
|
1165
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1166
|
-
exclusive: boolean;
|
|
1167
|
-
} | undefined;
|
|
1168
|
-
table: string;
|
|
1169
|
-
}][] | undefined;
|
|
1170
|
-
insert?: ["allow", {
|
|
1171
|
-
schema?: string | undefined;
|
|
1172
|
-
alias?: string | undefined;
|
|
1173
|
-
where?: readonly {
|
|
1174
|
-
type: "simple";
|
|
1175
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1176
|
-
field: string;
|
|
1177
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1178
|
-
type: "static";
|
|
1179
|
-
anchor: "authData" | "preMutationRow";
|
|
1180
|
-
field: string;
|
|
1181
|
-
};
|
|
1182
|
-
}[] | undefined;
|
|
1183
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1184
|
-
limit?: number | undefined;
|
|
1185
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1186
|
-
start?: {
|
|
1187
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1188
|
-
exclusive: boolean;
|
|
1189
|
-
} | undefined;
|
|
1190
|
-
table: string;
|
|
1191
|
-
}][] | undefined;
|
|
1192
|
-
update?: ["allow", {
|
|
1193
|
-
schema?: string | undefined;
|
|
1194
|
-
alias?: string | undefined;
|
|
1195
|
-
where?: readonly {
|
|
1196
|
-
type: "simple";
|
|
1197
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1198
|
-
field: string;
|
|
1199
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1200
|
-
type: "static";
|
|
1201
|
-
anchor: "authData" | "preMutationRow";
|
|
1202
|
-
field: string;
|
|
1203
|
-
};
|
|
1204
|
-
}[] | undefined;
|
|
1205
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1206
|
-
limit?: number | undefined;
|
|
1207
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1208
|
-
start?: {
|
|
1209
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1210
|
-
exclusive: boolean;
|
|
1211
|
-
} | undefined;
|
|
1212
|
-
table: string;
|
|
1213
|
-
}][] | undefined;
|
|
1214
|
-
delete?: ["allow", {
|
|
1215
|
-
schema?: string | undefined;
|
|
1216
|
-
alias?: string | undefined;
|
|
1217
|
-
where?: readonly {
|
|
1218
|
-
type: "simple";
|
|
1219
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1220
|
-
field: string;
|
|
1221
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1222
|
-
type: "static";
|
|
1223
|
-
anchor: "authData" | "preMutationRow";
|
|
1224
|
-
field: string;
|
|
1225
|
-
};
|
|
1226
|
-
}[] | undefined;
|
|
1227
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1228
|
-
limit?: number | undefined;
|
|
1229
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1230
|
-
start?: {
|
|
1231
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1232
|
-
exclusive: boolean;
|
|
1233
|
-
} | undefined;
|
|
1234
|
-
table: string;
|
|
1235
|
-
}][] | undefined;
|
|
1236
|
-
} | undefined;
|
|
1237
|
-
column?: Record<string, {
|
|
1238
|
-
select?: ["allow", {
|
|
1239
|
-
schema?: string | undefined;
|
|
1240
|
-
alias?: string | undefined;
|
|
1241
|
-
where?: readonly {
|
|
1242
|
-
type: "simple";
|
|
1243
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1244
|
-
field: string;
|
|
1245
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1246
|
-
type: "static";
|
|
1247
|
-
anchor: "authData" | "preMutationRow";
|
|
1248
|
-
field: string;
|
|
1249
|
-
};
|
|
1250
|
-
}[] | undefined;
|
|
1251
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1252
|
-
limit?: number | undefined;
|
|
1253
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1254
|
-
start?: {
|
|
1255
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1256
|
-
exclusive: boolean;
|
|
1257
|
-
} | undefined;
|
|
1258
|
-
table: string;
|
|
1259
|
-
}][] | undefined;
|
|
1260
|
-
insert?: ["allow", {
|
|
1261
|
-
schema?: string | undefined;
|
|
1262
|
-
alias?: string | undefined;
|
|
1263
|
-
where?: readonly {
|
|
1264
|
-
type: "simple";
|
|
1265
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1266
|
-
field: string;
|
|
1267
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1268
|
-
type: "static";
|
|
1269
|
-
anchor: "authData" | "preMutationRow";
|
|
1270
|
-
field: string;
|
|
1271
|
-
};
|
|
1272
|
-
}[] | undefined;
|
|
1273
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1274
|
-
limit?: number | undefined;
|
|
1275
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1276
|
-
start?: {
|
|
1277
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1278
|
-
exclusive: boolean;
|
|
1279
|
-
} | undefined;
|
|
1280
|
-
table: string;
|
|
1281
|
-
}][] | undefined;
|
|
1282
|
-
update?: ["allow", {
|
|
1283
|
-
schema?: string | undefined;
|
|
1284
|
-
alias?: string | undefined;
|
|
1285
|
-
where?: readonly {
|
|
1286
|
-
type: "simple";
|
|
1287
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1288
|
-
field: string;
|
|
1289
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1290
|
-
type: "static";
|
|
1291
|
-
anchor: "authData" | "preMutationRow";
|
|
1292
|
-
field: string;
|
|
1293
|
-
};
|
|
1294
|
-
}[] | undefined;
|
|
1295
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1296
|
-
limit?: number | undefined;
|
|
1297
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1298
|
-
start?: {
|
|
1299
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1300
|
-
exclusive: boolean;
|
|
1301
|
-
} | undefined;
|
|
1302
|
-
table: string;
|
|
1303
|
-
}][] | undefined;
|
|
1304
|
-
delete?: ["allow", {
|
|
1305
|
-
schema?: string | undefined;
|
|
1306
|
-
alias?: string | undefined;
|
|
1307
|
-
where?: readonly {
|
|
1308
|
-
type: "simple";
|
|
1309
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1310
|
-
field: string;
|
|
1311
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1312
|
-
type: "static";
|
|
1313
|
-
anchor: "authData" | "preMutationRow";
|
|
1314
|
-
field: string;
|
|
1315
|
-
};
|
|
1316
|
-
}[] | undefined;
|
|
1317
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1318
|
-
limit?: number | undefined;
|
|
1319
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1320
|
-
start?: {
|
|
1321
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1322
|
-
exclusive: boolean;
|
|
1323
|
-
} | undefined;
|
|
1324
|
-
table: string;
|
|
1325
|
-
}][] | undefined;
|
|
1326
|
-
}> | undefined;
|
|
1327
|
-
row?: {
|
|
1328
|
-
select?: ["allow", {
|
|
1329
|
-
schema?: string | undefined;
|
|
1330
|
-
alias?: string | undefined;
|
|
1331
|
-
where?: readonly {
|
|
1332
|
-
type: "simple";
|
|
1333
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1334
|
-
field: string;
|
|
1335
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1336
|
-
type: "static";
|
|
1337
|
-
anchor: "authData" | "preMutationRow";
|
|
1338
|
-
field: string;
|
|
1339
|
-
};
|
|
1340
|
-
}[] | undefined;
|
|
1341
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1342
|
-
limit?: number | undefined;
|
|
1343
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1344
|
-
start?: {
|
|
1345
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1346
|
-
exclusive: boolean;
|
|
1347
|
-
} | undefined;
|
|
1348
|
-
table: string;
|
|
1349
|
-
}][] | undefined;
|
|
1350
|
-
insert?: ["allow", {
|
|
1351
|
-
schema?: string | undefined;
|
|
1352
|
-
alias?: string | undefined;
|
|
1353
|
-
where?: readonly {
|
|
1354
|
-
type: "simple";
|
|
1355
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1356
|
-
field: string;
|
|
1357
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1358
|
-
type: "static";
|
|
1359
|
-
anchor: "authData" | "preMutationRow";
|
|
1360
|
-
field: string;
|
|
1361
|
-
};
|
|
1362
|
-
}[] | undefined;
|
|
1363
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1364
|
-
limit?: number | undefined;
|
|
1365
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1366
|
-
start?: {
|
|
1367
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1368
|
-
exclusive: boolean;
|
|
1369
|
-
} | undefined;
|
|
1370
|
-
table: string;
|
|
1371
|
-
}][] | undefined;
|
|
1372
|
-
update?: ["allow", {
|
|
1373
|
-
schema?: string | undefined;
|
|
1374
|
-
alias?: string | undefined;
|
|
1375
|
-
where?: readonly {
|
|
1376
|
-
type: "simple";
|
|
1377
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1378
|
-
field: string;
|
|
1379
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1380
|
-
type: "static";
|
|
1381
|
-
anchor: "authData" | "preMutationRow";
|
|
1382
|
-
field: string;
|
|
1383
|
-
};
|
|
1384
|
-
}[] | undefined;
|
|
1385
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1386
|
-
limit?: number | undefined;
|
|
1387
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1388
|
-
start?: {
|
|
1389
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1390
|
-
exclusive: boolean;
|
|
1391
|
-
} | undefined;
|
|
1392
|
-
table: string;
|
|
1393
|
-
}][] | undefined;
|
|
1394
|
-
delete?: ["allow", {
|
|
1395
|
-
schema?: string | undefined;
|
|
1396
|
-
alias?: string | undefined;
|
|
1397
|
-
where?: readonly {
|
|
1398
|
-
type: "simple";
|
|
1399
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1400
|
-
field: string;
|
|
1401
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1402
|
-
type: "static";
|
|
1403
|
-
anchor: "authData" | "preMutationRow";
|
|
1404
|
-
field: string;
|
|
1405
|
-
};
|
|
1406
|
-
}[] | undefined;
|
|
1407
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1408
|
-
limit?: number | undefined;
|
|
1409
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1410
|
-
start?: {
|
|
1411
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1412
|
-
exclusive: boolean;
|
|
1413
|
-
} | undefined;
|
|
1414
|
-
table: string;
|
|
1415
|
-
}][] | undefined;
|
|
1416
|
-
} | undefined;
|
|
1417
|
-
cell?: Record<string, {
|
|
1418
|
-
select?: ["allow", {
|
|
1419
|
-
schema?: string | undefined;
|
|
1420
|
-
alias?: string | undefined;
|
|
1421
|
-
where?: readonly {
|
|
1422
|
-
type: "simple";
|
|
1423
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1424
|
-
field: string;
|
|
1425
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1426
|
-
type: "static";
|
|
1427
|
-
anchor: "authData" | "preMutationRow";
|
|
1428
|
-
field: string;
|
|
1429
|
-
};
|
|
1430
|
-
}[] | undefined;
|
|
1431
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1432
|
-
limit?: number | undefined;
|
|
1433
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1434
|
-
start?: {
|
|
1435
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1436
|
-
exclusive: boolean;
|
|
1437
|
-
} | undefined;
|
|
1438
|
-
table: string;
|
|
1439
|
-
}][] | undefined;
|
|
1440
|
-
insert?: ["allow", {
|
|
1441
|
-
schema?: string | undefined;
|
|
1442
|
-
alias?: string | undefined;
|
|
1443
|
-
where?: readonly {
|
|
1444
|
-
type: "simple";
|
|
1445
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1446
|
-
field: string;
|
|
1447
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1448
|
-
type: "static";
|
|
1449
|
-
anchor: "authData" | "preMutationRow";
|
|
1450
|
-
field: string;
|
|
1451
|
-
};
|
|
1452
|
-
}[] | undefined;
|
|
1453
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1454
|
-
limit?: number | undefined;
|
|
1455
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1456
|
-
start?: {
|
|
1457
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1458
|
-
exclusive: boolean;
|
|
1459
|
-
} | undefined;
|
|
1460
|
-
table: string;
|
|
1461
|
-
}][] | undefined;
|
|
1462
|
-
update?: ["allow", {
|
|
1463
|
-
schema?: string | undefined;
|
|
1464
|
-
alias?: string | undefined;
|
|
1465
|
-
where?: readonly {
|
|
1466
|
-
type: "simple";
|
|
1467
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1468
|
-
field: string;
|
|
1469
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1470
|
-
type: "static";
|
|
1471
|
-
anchor: "authData" | "preMutationRow";
|
|
1472
|
-
field: string;
|
|
1473
|
-
};
|
|
1474
|
-
}[] | undefined;
|
|
1475
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1476
|
-
limit?: number | undefined;
|
|
1477
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1478
|
-
start?: {
|
|
1479
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1480
|
-
exclusive: boolean;
|
|
1481
|
-
} | undefined;
|
|
1482
|
-
table: string;
|
|
1483
|
-
}][] | undefined;
|
|
1484
|
-
delete?: ["allow", {
|
|
1485
|
-
schema?: string | undefined;
|
|
1486
|
-
alias?: string | undefined;
|
|
1487
|
-
where?: readonly {
|
|
1488
|
-
type: "simple";
|
|
1489
|
-
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
1490
|
-
field: string;
|
|
1491
|
-
value: string | number | boolean | readonly (string | number | boolean)[] | {
|
|
1492
|
-
type: "static";
|
|
1493
|
-
anchor: "authData" | "preMutationRow";
|
|
1494
|
-
field: string;
|
|
1495
|
-
};
|
|
1496
|
-
}[] | undefined;
|
|
1497
|
-
related?: readonly import("../../../zql/src/zql/ast/ast.js").CorrelatedSubQuery[] | undefined;
|
|
1498
|
-
limit?: number | undefined;
|
|
1499
|
-
orderBy?: readonly (readonly [string, "asc" | "desc"])[] | undefined;
|
|
1500
|
-
start?: {
|
|
1501
|
-
row: Record<string, string | number | boolean | null | undefined>;
|
|
1502
|
-
exclusive: boolean;
|
|
1503
|
-
} | undefined;
|
|
1504
|
-
table: string;
|
|
1505
|
-
}][] | undefined;
|
|
1506
|
-
}> | undefined;
|
|
1507
|
-
}> | undefined;
|
|
1508
|
-
}
|
|
1509
|
-
export declare class RateLimitConfig {
|
|
1510
|
-
#private;
|
|
1511
|
-
constructor(config: RateLimitConfigType);
|
|
1512
|
-
get mutationTransactions(): MutationTransactionLimits;
|
|
1513
|
-
}
|
|
1514
|
-
export declare class MutationTransactionLimits {
|
|
1515
|
-
#private;
|
|
1516
|
-
constructor(config: RateLimitConfigType['mutationTransactions']);
|
|
1517
|
-
get windowMs(): number;
|
|
1518
|
-
get maxTransactions(): number;
|
|
1519
|
-
}
|
|
1520
|
-
export declare class LogConfig {
|
|
1521
|
-
#private;
|
|
1522
|
-
constructor(config: LogConfigType);
|
|
1523
|
-
get level(): "error" | "debug" | "info";
|
|
1524
|
-
get format(): "text" | "json";
|
|
1525
|
-
get datadogLogsApiKey(): string | undefined;
|
|
1526
|
-
get datadogServiceLabel(): string | undefined;
|
|
1527
|
-
}
|
|
1528
|
-
export declare class ShardConfig {
|
|
1529
|
-
readonly id: string;
|
|
1530
|
-
readonly publications: readonly string[];
|
|
1531
|
-
constructor(config: ShardConfigType | undefined);
|
|
1532
|
-
}
|
|
1533
973
|
export {};
|
|
1534
974
|
//# sourceMappingURL=zero-config.d.ts.map
|