@rocicorp/zero 0.12.2025012601 → 0.12.2025012800
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/advanced.js +2 -2
- package/out/{chunk-F5QR3K72.js → chunk-424PT5DM.js} +1 -1
- package/out/{chunk-JZD6FXRT.js → chunk-MJYDJPXG.js} +37 -43
- package/out/{chunk-JZD6FXRT.js.map → chunk-MJYDJPXG.js.map} +3 -3
- package/out/{chunk-I5GSZARI.js → chunk-QAAJZ32T.js} +1 -1
- package/out/{chunk-I5GSZARI.js.map → chunk-QAAJZ32T.js.map} +1 -1
- package/out/datadog/src/mod.d.ts +1 -1
- package/out/react.js +1 -1
- package/out/react.js.map +1 -1
- package/out/replicache/src/btree/diff.d.ts +2 -2
- package/out/replicache/src/btree/node.d.ts +8 -8
- package/out/replicache/src/btree/read.d.ts +6 -6
- package/out/replicache/src/btree/write.d.ts +7 -7
- package/out/replicache/src/call-default-fetch.d.ts +1 -1
- package/out/replicache/src/config.d.ts +1 -1
- package/out/replicache/src/connection-loop-delegates.d.ts +2 -2
- package/out/replicache/src/connection-loop.d.ts +1 -1
- package/out/replicache/src/cookies.d.ts +2 -2
- package/out/replicache/src/dag/chunk.d.ts +1 -1
- package/out/replicache/src/dag/gc.d.ts +2 -2
- package/out/replicache/src/dag/key.d.ts +2 -2
- package/out/replicache/src/dag/lazy-store.d.ts +5 -5
- package/out/replicache/src/dag/store-impl.d.ts +5 -5
- package/out/replicache/src/dag/store.d.ts +3 -3
- package/out/replicache/src/dag/visitor.d.ts +3 -3
- package/out/replicache/src/db/commit.d.ts +8 -8
- package/out/replicache/src/db/index.d.ts +7 -7
- package/out/replicache/src/db/read.d.ts +8 -8
- package/out/replicache/src/db/rebase.d.ts +7 -7
- package/out/replicache/src/db/scan.d.ts +1 -1
- package/out/replicache/src/db/write.d.ts +14 -14
- package/out/replicache/src/filter-async-iterable.d.ts +1 -1
- package/out/replicache/src/format-version.d.ts +2 -2
- package/out/replicache/src/frozen-json.d.ts +2 -2
- package/out/replicache/src/get-default-puller.d.ts +1 -1
- package/out/replicache/src/get-default-pusher.d.ts +1 -1
- package/out/replicache/src/hash.d.ts +1 -1
- package/out/replicache/src/impl.d.ts +3 -3
- package/out/replicache/src/index-defs.d.ts +1 -1
- package/out/replicache/src/kv/idb-store-with-mem-fallback.d.ts +1 -1
- package/out/replicache/src/kv/idb-store.d.ts +1 -1
- package/out/replicache/src/kv/idb-store.d.ts.map +1 -1
- package/out/replicache/src/kv/mem-store.d.ts +1 -1
- package/out/replicache/src/kv/read-impl.d.ts +2 -2
- package/out/replicache/src/kv/store.d.ts +1 -1
- package/out/replicache/src/kv/write-impl-base.d.ts +3 -3
- package/out/replicache/src/kv/write-impl.d.ts +3 -3
- package/out/replicache/src/merge-async-iterables.d.ts +1 -1
- package/out/replicache/src/mod.d.ts +36 -36
- package/out/replicache/src/mutation-recovery.d.ts +8 -8
- package/out/replicache/src/new-client-channel.d.ts +1 -1
- package/out/replicache/src/on-persist-channel.d.ts +1 -1
- package/out/replicache/src/patch-operation.d.ts +1 -1
- package/out/replicache/src/pending-mutations.d.ts +3 -3
- package/out/replicache/src/persist/client-gc.d.ts +3 -3
- package/out/replicache/src/persist/client-group-gc.d.ts +2 -2
- package/out/replicache/src/persist/client-groups.d.ts +5 -5
- package/out/replicache/src/persist/clients.d.ts +9 -9
- package/out/replicache/src/persist/collect-idb-databases.d.ts +3 -3
- package/out/replicache/src/persist/gather-mem-only-visitor.d.ts +4 -4
- package/out/replicache/src/persist/gather-not-cached-visitor.d.ts +5 -5
- package/out/replicache/src/persist/heartbeat.d.ts +3 -3
- package/out/replicache/src/persist/idb-databases-store.d.ts +1 -1
- package/out/replicache/src/persist/persist.d.ts +6 -6
- package/out/replicache/src/persist/refresh.d.ts +7 -7
- package/out/replicache/src/process-scheduler.d.ts +1 -1
- package/out/replicache/src/puller.d.ts +6 -6
- package/out/replicache/src/pusher.d.ts +3 -3
- package/out/replicache/src/replicache-impl.d.ts +12 -12
- package/out/replicache/src/replicache-options.d.ts +5 -5
- package/out/replicache/src/replicache.d.ts +10 -10
- package/out/replicache/src/scan-iterator.d.ts +6 -6
- package/out/replicache/src/scan-options.d.ts +2 -2
- package/out/replicache/src/subscriptions.d.ts +7 -7
- package/out/replicache/src/subscriptions.d.ts.map +1 -1
- package/out/replicache/src/sync/diff.d.ts +6 -6
- package/out/replicache/src/sync/ids.d.ts +1 -1
- package/out/replicache/src/sync/patch.d.ts +2 -2
- package/out/replicache/src/sync/pull.d.ts +11 -11
- package/out/replicache/src/sync/push.d.ts +4 -4
- package/out/replicache/src/sync/request-id.d.ts +1 -1
- package/out/replicache/src/transactions.d.ts +9 -9
- package/out/replicache/src/types.d.ts +5 -5
- package/out/shared/src/btree-set.js +1 -1
- package/out/shared/src/deep-clone.d.ts +1 -1
- package/out/shared/src/iterables.js +1 -1
- package/out/shared/src/json-schema.d.ts +1 -1
- package/out/shared/src/json-schema.js +3 -3
- package/out/shared/src/json.js +3 -3
- package/out/shared/src/options.d.ts +1 -1
- package/out/shared/src/options.js +3 -3
- package/out/shared/src/queue.js +1 -1
- package/out/shared/src/random-values.d.ts +1 -1
- package/out/shared/src/random-values.d.ts.map +1 -1
- package/out/shared/src/sleep.js +1 -1
- package/out/solid.js +3 -3
- package/out/solid.js.map +1 -1
- package/out/zero/src/advanced.d.ts +1 -1
- package/out/zero/src/build-schema.d.ts +1 -1
- package/out/zero/src/build-schema.js +1 -1
- package/out/zero/src/change-protocol.d.ts +1 -1
- package/out/zero/src/change-protocol.js +1 -1
- package/out/zero/src/cli.d.ts +1 -1
- package/out/zero/src/cli.js +1 -1
- package/out/zero/src/react.d.ts +1 -1
- package/out/zero/src/server/change-streamer.d.ts +1 -1
- package/out/zero/src/server/change-streamer.js +1 -1
- package/out/zero/src/server/main.d.ts +1 -1
- package/out/zero/src/server/main.js +1 -1
- package/out/zero/src/server/multi/main.d.ts +1 -1
- package/out/zero/src/server/multi/main.js +1 -1
- package/out/zero/src/server/replicator.d.ts +1 -1
- package/out/zero/src/server/replicator.js +1 -1
- package/out/zero/src/server/syncer.d.ts +1 -1
- package/out/zero/src/server/syncer.js +1 -1
- package/out/zero/src/solid.d.ts +1 -1
- package/out/zero/src/zero-cache-dev.js +3 -3
- package/out/zero/src/zero.d.ts +1 -1
- package/out/zero-advanced/src/mod.d.ts +8 -8
- package/out/zero-advanced/src/mod.d.ts.map +1 -1
- package/out/zero-cache/src/auth/jwt.d.ts +1 -1
- package/out/zero-cache/src/auth/load-schema.d.ts +3 -3
- package/out/zero-cache/src/auth/load-schema.d.ts.map +1 -1
- package/out/zero-cache/src/auth/load-schema.js +3 -3
- package/out/zero-cache/src/auth/load-schema.js.map +1 -1
- package/out/zero-cache/src/auth/read-authorizer.d.ts +2 -2
- package/out/zero-cache/src/auth/read-authorizer.d.ts.map +1 -1
- package/out/zero-cache/src/auth/read-authorizer.js +3 -3
- package/out/zero-cache/src/auth/read-authorizer.js.map +1 -1
- package/out/zero-cache/src/auth/write-authorizer.d.ts +5 -5
- package/out/zero-cache/src/auth/write-authorizer.js +14 -14
- package/out/zero-cache/src/config/zero-config.d.ts +2 -2
- package/out/zero-cache/src/config/zero-config.js +6 -6
- package/out/zero-cache/src/db/create.d.ts +1 -1
- package/out/zero-cache/src/db/create.js +1 -1
- package/out/zero-cache/src/db/lite-tables.d.ts +2 -2
- package/out/zero-cache/src/db/lite-tables.js +5 -5
- package/out/zero-cache/src/db/migration-lite.d.ts +2 -2
- package/out/zero-cache/src/db/migration-lite.js +4 -4
- package/out/zero-cache/src/db/migration.d.ts +2 -2
- package/out/zero-cache/src/db/migration.js +3 -3
- package/out/zero-cache/src/db/pg-to-lite.d.ts +2 -2
- package/out/zero-cache/src/db/pg-to-lite.js +5 -5
- package/out/zero-cache/src/db/short-lived-client.d.ts +1 -1
- package/out/zero-cache/src/db/short-lived-client.js +1 -1
- package/out/zero-cache/src/db/specs.d.ts +4 -4
- package/out/zero-cache/src/db/specs.js +3 -3
- package/out/zero-cache/src/db/statements.d.ts +2 -2
- package/out/zero-cache/src/db/statements.js +2 -2
- package/out/zero-cache/src/db/transaction-pool.d.ts +4 -4
- package/out/zero-cache/src/db/transaction-pool.js +3 -3
- package/out/zero-cache/src/server/change-streamer.d.ts +1 -1
- package/out/zero-cache/src/server/change-streamer.js +13 -13
- package/out/zero-cache/src/server/logging.d.ts +1 -1
- package/out/zero-cache/src/server/logging.js +2 -2
- package/out/zero-cache/src/server/main.d.ts +1 -1
- package/out/zero-cache/src/server/main.js +13 -13
- package/out/zero-cache/src/server/multi/config.d.ts +2 -2
- package/out/zero-cache/src/server/multi/config.js +3 -3
- package/out/zero-cache/src/server/multi/main.d.ts +1 -1
- package/out/zero-cache/src/server/multi/main.js +8 -8
- package/out/zero-cache/src/server/multi/runtime.js +1 -1
- package/out/zero-cache/src/server/multi/tenant-dispatcher.d.ts +2 -2
- package/out/zero-cache/src/server/multi/tenant-dispatcher.js +2 -2
- package/out/zero-cache/src/server/replicator.d.ts +1 -1
- package/out/zero-cache/src/server/replicator.js +10 -10
- package/out/zero-cache/src/server/syncer.d.ts +1 -1
- package/out/zero-cache/src/server/syncer.js +21 -21
- package/out/zero-cache/src/services/change-source/pg/change-source.d.ts +8 -8
- package/out/zero-cache/src/services/change-source/pg/change-source.js +24 -24
- package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts +2 -2
- package/out/zero-cache/src/services/change-source/pg/initial-sync.js +15 -15
- package/out/zero-cache/src/services/change-source/pg/lsn.d.ts +2 -2
- package/out/zero-cache/src/services/change-source/pg/lsn.js +2 -2
- package/out/zero-cache/src/services/change-source/pg/schema/ddl.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/ddl.js +3 -3
- package/out/zero-cache/src/services/change-source/pg/schema/init.d.ts +2 -2
- package/out/zero-cache/src/services/change-source/pg/schema/init.js +3 -3
- package/out/zero-cache/src/services/change-source/pg/schema/published.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/published.js +3 -3
- package/out/zero-cache/src/services/change-source/pg/schema/shard.d.ts +4 -4
- package/out/zero-cache/src/services/change-source/pg/schema/shard.js +7 -7
- package/out/zero-cache/src/services/change-source/pg/schema/validation.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/validation.js +4 -4
- package/out/zero-cache/src/services/change-source/pg/sync-schema.d.ts +2 -2
- package/out/zero-cache/src/services/change-source/pg/sync-schema.js +3 -3
- package/out/zero-cache/src/services/change-source/protocol/current/control.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/protocol/current/control.js +1 -1
- package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts +14 -14
- package/out/zero-cache/src/services/change-source/protocol/current/data.js +3 -3
- package/out/zero-cache/src/services/change-source/protocol/current/downstream.d.ts +16 -16
- package/out/zero-cache/src/services/change-source/protocol/current/downstream.js +4 -4
- package/out/zero-cache/src/services/change-source/protocol/current/mod.d.ts +6 -6
- package/out/zero-cache/src/services/change-source/protocol/current/mod.js +6 -6
- package/out/zero-cache/src/services/change-source/protocol/current/status.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/protocol/current/status.js +1 -1
- package/out/zero-cache/src/services/change-source/protocol/current/upstream.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/protocol/current/upstream.js +2 -2
- package/out/zero-cache/src/services/change-source/protocol/mod.d.ts +1 -1
- package/out/zero-cache/src/services/change-source/protocol/mod.js +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +4 -4
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +7 -7
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.d.ts +6 -6
- package/out/zero-cache/src/services/change-streamer/change-streamer-service.js +13 -13
- package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +10 -10
- package/out/zero-cache/src/services/change-streamer/change-streamer.js +3 -3
- package/out/zero-cache/src/services/change-streamer/forwarder.d.ts +2 -2
- package/out/zero-cache/src/services/change-streamer/forwarder.js +2 -2
- package/out/zero-cache/src/services/change-streamer/schema/init.d.ts +1 -1
- package/out/zero-cache/src/services/change-streamer/schema/init.js +2 -2
- package/out/zero-cache/src/services/change-streamer/schema/tables.d.ts +3 -3
- package/out/zero-cache/src/services/change-streamer/schema/tables.js +2 -2
- package/out/zero-cache/src/services/change-streamer/storer.d.ts +6 -6
- package/out/zero-cache/src/services/change-streamer/storer.js +9 -9
- package/out/zero-cache/src/services/change-streamer/subscriber.d.ts +5 -5
- package/out/zero-cache/src/services/change-streamer/subscriber.js +5 -5
- package/out/zero-cache/src/services/dispatcher/connect-params.d.ts +1 -1
- package/out/zero-cache/src/services/dispatcher/connect-params.js +3 -3
- package/out/zero-cache/src/services/dispatcher/sync-dispatcher.d.ts +2 -2
- package/out/zero-cache/src/services/dispatcher/sync-dispatcher.js +4 -4
- package/out/zero-cache/src/services/dispatcher/websocket-handoff.d.ts +2 -2
- package/out/zero-cache/src/services/dispatcher/websocket-handoff.js +3 -3
- package/out/zero-cache/src/services/http-service.d.ts +1 -1
- package/out/zero-cache/src/services/http-service.js +2 -2
- package/out/zero-cache/src/services/life-cycle.d.ts +2 -2
- package/out/zero-cache/src/services/life-cycle.js +2 -2
- package/out/zero-cache/src/services/limiter/sliding-window-limiter.js +1 -1
- package/out/zero-cache/src/services/litestream/commands.d.ts +1 -1
- package/out/zero-cache/src/services/litestream/commands.js +2 -2
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts +8 -8
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.js +14 -14
- package/out/zero-cache/src/services/replicator/change-processor.d.ts +23 -0
- package/out/zero-cache/src/services/replicator/change-processor.d.ts.map +1 -0
- package/out/zero-cache/src/services/replicator/change-processor.js +415 -0
- package/out/zero-cache/src/services/replicator/change-processor.js.map +1 -0
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts +5 -27
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.js +9 -421
- package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
- package/out/zero-cache/src/services/replicator/notifier.d.ts +2 -2
- package/out/zero-cache/src/services/replicator/notifier.js +1 -1
- package/out/zero-cache/src/services/replicator/replicator.d.ts +5 -5
- package/out/zero-cache/src/services/replicator/replicator.js +3 -3
- package/out/zero-cache/src/services/replicator/schema/change-log.d.ts +6 -6
- package/out/zero-cache/src/services/replicator/schema/change-log.js +4 -4
- package/out/zero-cache/src/services/replicator/schema/replication-state.d.ts +3 -3
- package/out/zero-cache/src/services/replicator/schema/replication-state.js +3 -3
- package/out/zero-cache/src/services/runner.d.ts +1 -1
- package/out/zero-cache/src/services/running-state.d.ts +1 -1
- package/out/zero-cache/src/services/running-state.js +2 -2
- package/out/zero-cache/src/services/view-syncer/client-handler.d.ts +7 -7
- package/out/zero-cache/src/services/view-syncer/client-handler.js +9 -9
- package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts +6 -6
- package/out/zero-cache/src/services/view-syncer/cvr-store.js +17 -17
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts +6 -6
- package/out/zero-cache/src/services/view-syncer/cvr.js +8 -8
- package/out/zero-cache/src/services/view-syncer/database-storage.d.ts +2 -2
- package/out/zero-cache/src/services/view-syncer/database-storage.js +1 -1
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.js +1 -1
- package/out/zero-cache/src/services/view-syncer/key-columns.d.ts +2 -2
- package/out/zero-cache/src/services/view-syncer/key-columns.js +3 -3
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts +6 -6
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.js +8 -8
- package/out/zero-cache/src/services/view-syncer/schema/cvr.d.ts +2 -2
- package/out/zero-cache/src/services/view-syncer/schema/cvr.js +4 -4
- package/out/zero-cache/src/services/view-syncer/schema/init.d.ts +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/init.js +2 -2
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +12 -12
- package/out/zero-cache/src/services/view-syncer/schema/types.js +4 -4
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts +5 -5
- package/out/zero-cache/src/services/view-syncer/snapshotter.js +12 -12
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts +9 -9
- package/out/zero-cache/src/services/view-syncer/view-syncer.js +20 -20
- package/out/zero-cache/src/types/bigint-json.d.ts +1 -1
- package/out/zero-cache/src/types/bigint-json.js +1 -1
- package/out/zero-cache/src/types/error-for-client.d.ts +1 -1
- package/out/zero-cache/src/types/lexi-version.js +2 -2
- package/out/zero-cache/src/types/lite.d.ts +4 -4
- package/out/zero-cache/src/types/lite.js +2 -2
- package/out/zero-cache/src/types/pg.d.ts +3 -3
- package/out/zero-cache/src/types/pg.js +2 -2
- package/out/zero-cache/src/types/row-key.d.ts +1 -1
- package/out/zero-cache/src/types/row-key.js +3 -3
- package/out/zero-cache/src/types/schema-versions.d.ts +1 -1
- package/out/zero-cache/src/types/schema-versions.js +2 -2
- package/out/zero-cache/src/types/streams.d.ts +2 -2
- package/out/zero-cache/src/types/streams.js +4 -4
- package/out/zero-cache/src/types/subscription.d.ts +1 -1
- package/out/zero-cache/src/types/timeout.js +1 -1
- package/out/zero-cache/src/workers/connection.d.ts +5 -5
- package/out/zero-cache/src/workers/connection.js +9 -9
- package/out/zero-cache/src/workers/replicator.d.ts +5 -5
- package/out/zero-cache/src/workers/replicator.js +4 -4
- package/out/zero-cache/src/workers/syncer.d.ts +8 -8
- package/out/zero-cache/src/workers/syncer.js +10 -10
- package/out/zero-client/src/client/context.d.ts +6 -6
- package/out/zero-client/src/client/crud.d.ts +6 -6
- package/out/zero-client/src/client/crud.d.ts.map +1 -1
- package/out/zero-client/src/client/keys.d.ts +2 -2
- package/out/zero-client/src/client/log-options.d.ts +2 -2
- package/out/zero-client/src/client/log-options.d.ts.map +1 -1
- package/out/zero-client/src/client/metrics.d.ts +2 -2
- package/out/zero-client/src/client/options.d.ts +3 -3
- package/out/zero-client/src/client/query-manager.d.ts +6 -6
- package/out/zero-client/src/client/reload-error-handler.d.ts +1 -1
- package/out/zero-client/src/client/replicache-types.d.ts +1 -1
- package/out/zero-client/src/client/server-error.d.ts +2 -2
- package/out/zero-client/src/client/server-option.d.ts +1 -1
- package/out/zero-client/src/client/zero-poke-handler.d.ts +4 -4
- package/out/zero-client/src/client/zero-poke-handler.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.d.ts +12 -12
- package/out/zero-client/src/mod.d.ts +17 -17
- package/out/zero-client/src/mod.d.ts.map +1 -1
- package/out/zero-client/src/util/socket.d.ts +1 -1
- package/out/zero-protocol/src/ast-hash.d.ts +1 -1
- package/out/zero-protocol/src/ast-hash.js +2 -2
- package/out/zero-protocol/src/ast.d.ts +2 -2
- package/out/zero-protocol/src/ast.js +5 -5
- package/out/zero-protocol/src/change-desired-queries.d.ts +3 -3
- package/out/zero-protocol/src/change-desired-queries.js +2 -2
- package/out/zero-protocol/src/clients-patch.d.ts +1 -1
- package/out/zero-protocol/src/clients-patch.js +1 -1
- package/out/zero-protocol/src/connect.d.ts +3 -3
- package/out/zero-protocol/src/connect.js +2 -2
- package/out/zero-protocol/src/data.d.ts +3 -3
- package/out/zero-protocol/src/data.js +2 -2
- package/out/zero-protocol/src/delete-clients.d.ts +1 -1
- package/out/zero-protocol/src/delete-clients.js +1 -1
- package/out/zero-protocol/src/down.d.ts +6 -6
- package/out/zero-protocol/src/down.js +7 -7
- package/out/zero-protocol/src/error.d.ts +1 -1
- package/out/zero-protocol/src/error.js +2 -2
- package/out/zero-protocol/src/mod.d.ts +14 -14
- package/out/zero-protocol/src/mod.js +14 -14
- package/out/zero-protocol/src/ping.d.ts +1 -1
- package/out/zero-protocol/src/ping.js +1 -1
- package/out/zero-protocol/src/poke.d.ts +9 -9
- package/out/zero-protocol/src/poke.js +5 -5
- package/out/zero-protocol/src/pong.d.ts +1 -1
- package/out/zero-protocol/src/pong.js +1 -1
- package/out/zero-protocol/src/primary-key.d.ts +1 -1
- package/out/zero-protocol/src/primary-key.js +1 -1
- package/out/zero-protocol/src/protocol-version.js +1 -1
- package/out/zero-protocol/src/pull.d.ts +1 -1
- package/out/zero-protocol/src/pull.js +2 -2
- package/out/zero-protocol/src/push.d.ts +26 -26
- package/out/zero-protocol/src/push.js +5 -5
- package/out/zero-protocol/src/queries-patch.d.ts +4 -4
- package/out/zero-protocol/src/queries-patch.js +2 -2
- package/out/zero-protocol/src/row-patch.d.ts +5 -5
- package/out/zero-protocol/src/row-patch.js +4 -4
- package/out/zero-protocol/src/up.d.ts +7 -7
- package/out/zero-protocol/src/up.js +7 -7
- package/out/zero-protocol/src/up.js.map +1 -1
- package/out/zero-protocol/src/version.d.ts +1 -1
- package/out/zero-protocol/src/version.js +1 -1
- package/out/zero-protocol/src/warm.d.ts +1 -1
- package/out/zero-protocol/src/warm.js +1 -1
- package/out/zero-react/src/mod.d.ts +8 -8
- package/out/zero-react/src/use-query.d.ts +4 -4
- package/out/zero-react/src/use-zero.d.ts +2 -2
- package/out/zero-schema/src/build-schema-options.d.ts +1 -1
- package/out/zero-schema/src/build-schema-options.js +1 -1
- package/out/zero-schema/src/build-schema.js +5 -5
- package/out/zero-schema/src/build-schema.js.map +1 -1
- package/out/zero-schema/src/builder/relationship-builder.d.ts +2 -2
- package/out/zero-schema/src/builder/schema-builder.d.ts +3 -3
- package/out/zero-schema/src/builder/schema-builder.js +1 -1
- package/out/zero-schema/src/builder/table-builder.d.ts +3 -3
- package/out/zero-schema/src/compiled-permissions.d.ts +18 -18
- package/out/zero-schema/src/compiled-permissions.js +2 -2
- package/out/zero-schema/src/mod.d.ts +4 -4
- package/out/zero-schema/src/mod.d.ts.map +1 -1
- package/out/zero-schema/src/permissions.d.ts +5 -5
- package/out/zero-schema/src/schema-config.d.ts +4 -4
- package/out/zero-schema/src/schema-config.d.ts.map +1 -1
- package/out/zero-schema/src/schema-config.js +4 -4
- package/out/zero-schema/src/schema-config.js.map +1 -1
- package/out/zero-schema/src/table-schema.d.ts +1 -1
- package/out/zero-solid/src/create-zero.d.ts +2 -2
- package/out/zero-solid/src/create-zero.d.ts.map +1 -1
- package/out/zero-solid/src/mod.d.ts +2 -2
- package/out/zero-solid/src/solid-view.d.ts +3 -3
- package/out/zero-solid/src/use-query.d.ts +3 -3
- package/out/zero-solid/src/use-query.d.ts.map +1 -1
- package/out/zero.js +3 -3
- package/out/zql/src/builder/builder.d.ts +7 -7
- package/out/zql/src/builder/builder.js +10 -10
- package/out/zql/src/builder/filter.d.ts +2 -2
- package/out/zql/src/builder/filter.js +2 -2
- package/out/zql/src/builder/like.d.ts +1 -1
- package/out/zql/src/builder/like.js +1 -1
- package/out/zql/src/ivm/array-view.d.ts +4 -4
- package/out/zql/src/ivm/array-view.js +2 -2
- package/out/zql/src/ivm/change.d.ts +2 -2
- package/out/zql/src/ivm/constraint.d.ts +2 -2
- package/out/zql/src/ivm/constraint.js +3 -3
- package/out/zql/src/ivm/data.d.ts +3 -3
- package/out/zql/src/ivm/data.js +1 -1
- package/out/zql/src/ivm/exists.d.ts +6 -6
- package/out/zql/src/ivm/exists.js +7 -7
- package/out/zql/src/ivm/fan-in.d.ts +6 -6
- package/out/zql/src/ivm/fan-in.js +4 -4
- package/out/zql/src/ivm/fan-out.d.ts +5 -5
- package/out/zql/src/ivm/filter-push.d.ts +3 -3
- package/out/zql/src/ivm/filter-push.d.ts.map +1 -1
- package/out/zql/src/ivm/filter-push.js +2 -2
- package/out/zql/src/ivm/filter-push.js.map +1 -1
- package/out/zql/src/ivm/filter.d.ts +5 -5
- package/out/zql/src/ivm/filter.js +2 -2
- package/out/zql/src/ivm/join.d.ts +7 -7
- package/out/zql/src/ivm/join.js +4 -4
- package/out/zql/src/ivm/maybe-split-and-push-edit-change.d.ts +3 -3
- package/out/zql/src/ivm/memory-source.d.ts +11 -11
- package/out/zql/src/ivm/memory-source.js +9 -9
- package/out/zql/src/ivm/memory-storage.d.ts +3 -3
- package/out/zql/src/ivm/operator.d.ts +7 -7
- package/out/zql/src/ivm/operator.js +1 -1
- package/out/zql/src/ivm/schema.d.ts +4 -4
- package/out/zql/src/ivm/skip.d.ts +6 -6
- package/out/zql/src/ivm/skip.js +2 -2
- package/out/zql/src/ivm/source.d.ts +3 -3
- package/out/zql/src/ivm/take.d.ts +6 -6
- package/out/zql/src/ivm/take.js +8 -8
- package/out/zql/src/ivm/view-apply-change.d.ts +3 -3
- package/out/zql/src/ivm/view-apply-change.js +2 -2
- package/out/zql/src/ivm/view.d.ts +4 -4
- package/out/zql/src/query/auth-query.d.ts +7 -7
- package/out/zql/src/query/auth-query.js +2 -2
- package/out/zql/src/query/dnf.d.ts +1 -1
- package/out/zql/src/query/dnf.js +2 -2
- package/out/zql/src/query/expression.d.ts +3 -4
- package/out/zql/src/query/expression.d.ts.map +1 -1
- package/out/zql/src/query/expression.js +2 -2
- package/out/zql/src/query/query-impl.d.ts +8 -8
- package/out/zql/src/query/query-impl.d.ts.map +1 -1
- package/out/zql/src/query/query-impl.js +7 -7
- package/out/zql/src/query/query-impl.js.map +1 -1
- package/out/zql/src/query/query-internal.d.ts +4 -4
- package/out/zql/src/query/query.d.ts +7 -10
- package/out/zql/src/query/query.d.ts.map +1 -1
- package/out/zql/src/query/typed-view.d.ts +1 -1
- package/out/zqlite/src/db.js +2 -2
- package/out/zqlite/src/internal/statement-cache.d.ts +1 -1
- package/out/zqlite/src/internal/statement-cache.d.ts.map +1 -1
- package/out/zqlite/src/internal/statement-cache.js +1 -1
- package/out/zqlite/src/internal/statement-cache.js.map +1 -1
- package/out/zqlite/src/table-source.d.ts +6 -6
- package/out/zqlite/src/table-source.js +11 -11
- package/package.json +4 -4
- /package/out/{chunk-F5QR3K72.js.map → chunk-424PT5DM.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { literal as lit } from 'pg-format';
|
|
2
|
-
import * as v from
|
|
3
|
-
import { id } from
|
|
4
|
-
import { indexDefinitionsQuery, publishedSchema, publishedTableQuery, } from
|
|
2
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
3
|
+
import { id } from "../../../../types/sql.js";
|
|
4
|
+
import { indexDefinitionsQuery, publishedSchema, publishedTableQuery, } from "./published.js";
|
|
5
5
|
// Sent in the 'version' tag of "ddlStart" and "ddlUpdate" event messages.
|
|
6
6
|
// This is used to ensure that the message constructed in the upstream
|
|
7
7
|
// Trigger function is compatible with the code processing it in the zero-cache.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { LogContext } from '@rocicorp/logger';
|
|
2
|
-
import type { PostgresDB } from '../../../../types/pg.
|
|
3
|
-
import type { ShardConfig } from '../shard-config.
|
|
2
|
+
import type { PostgresDB } from '../../../../types/pg.ts';
|
|
3
|
+
import type { ShardConfig } from '../shard-config.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Initializes a shard for initial sync.
|
|
6
6
|
* This will drop any existing shard setup.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getVersionHistory, runSchemaMigrations, } from
|
|
2
|
-
import { AutoResetSignal } from
|
|
3
|
-
import { dropShard, setupTablesAndReplication, unescapedSchema, } from
|
|
1
|
+
import { getVersionHistory, runSchemaMigrations, } from "../../../../db/migration.js";
|
|
2
|
+
import { AutoResetSignal } from "../../../change-streamer/schema/tables.js";
|
|
3
|
+
import { dropShard, setupTablesAndReplication, unescapedSchema, } from "./shard.js";
|
|
4
4
|
/**
|
|
5
5
|
* Initializes a shard for initial sync.
|
|
6
6
|
* This will drop any existing shard setup.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type postgres from 'postgres';
|
|
2
|
-
import * as v from '../../../../../../shared/src/valita.
|
|
2
|
+
import * as v from '../../../../../../shared/src/valita.ts';
|
|
3
3
|
export declare function publishedTableQuery(publications: string[]): string;
|
|
4
4
|
export declare function indexDefinitionsQuery(publications: string[]): string;
|
|
5
5
|
export declare const publishedSchema: v.ObjectType<Omit<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { literal } from 'pg-format';
|
|
2
|
-
import { equals } from
|
|
3
|
-
import * as v from
|
|
4
|
-
import { publishedIndexSpec, publishedTableSpec } from
|
|
2
|
+
import { equals } from "../../../../../../shared/src/set-utils.js";
|
|
3
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
4
|
+
import { publishedIndexSpec, publishedTableSpec } from "../../../../db/specs.js";
|
|
5
5
|
export function publishedTableQuery(publications) {
|
|
6
6
|
return `
|
|
7
7
|
WITH published_columns AS (SELECT
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { LogContext } from '@rocicorp/logger';
|
|
2
|
-
import * as v from '../../../../../../shared/src/valita.
|
|
3
|
-
import type { PostgresDB, PostgresTransaction } from '../../../../types/pg.
|
|
4
|
-
import type { ShardConfig } from '../shard-config.
|
|
5
|
-
import { type PublicationInfo, type PublishedSchema } from './published.
|
|
2
|
+
import * as v from '../../../../../../shared/src/valita.ts';
|
|
3
|
+
import type { PostgresDB, PostgresTransaction } from '../../../../types/pg.ts';
|
|
4
|
+
import type { ShardConfig } from '../shard-config.ts';
|
|
5
|
+
import { type PublicationInfo, type PublishedSchema } from './published.ts';
|
|
6
6
|
export declare function append(shardID: string): (name: string) => string;
|
|
7
7
|
export declare function schemaFor(shardID: string): string;
|
|
8
8
|
export declare function unescapedSchema(shardID: string): string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PG_INSUFFICIENT_PRIVILEGE } from '@drdgvhbh/postgres-error-codes';
|
|
2
2
|
import { literal } from 'pg-format';
|
|
3
3
|
import postgres from 'postgres';
|
|
4
|
-
import { assert } from
|
|
5
|
-
import * as v from
|
|
6
|
-
import { Default } from
|
|
7
|
-
import { id } from
|
|
8
|
-
import { createEventTriggerStatements } from
|
|
9
|
-
import { getPublicationInfo, publishedSchema, } from
|
|
10
|
-
import { validate } from
|
|
4
|
+
import { assert } from "../../../../../../shared/src/asserts.js";
|
|
5
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
6
|
+
import { Default } from "../../../../db/postgres-replica-identity-enum.js";
|
|
7
|
+
import { id } from "../../../../types/sql.js";
|
|
8
|
+
import { createEventTriggerStatements } from "./ddl.js";
|
|
9
|
+
import { getPublicationInfo, publishedSchema, } from "./published.js";
|
|
10
|
+
import { validate } from "./validation.js";
|
|
11
11
|
// Creates a function that appends `_SHARD_ID` to the input.
|
|
12
12
|
export function append(shardID) {
|
|
13
13
|
return (name) => id(name + '_' + shardID);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LogContext } from '@rocicorp/logger';
|
|
2
|
-
import type { PublishedTableSpec } from '../../../../db/specs.
|
|
2
|
+
import type { PublishedTableSpec } from '../../../../db/specs.ts';
|
|
3
3
|
export declare function validate(lc: LogContext, shardID: string, table: PublishedTableSpec): void;
|
|
4
4
|
export declare class UnsupportedTableSchemaError extends Error {
|
|
5
5
|
readonly name = "UnsupportedTableSchemaError";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { mapPostgresToLite, warnIfDataTypeSupported, } from
|
|
2
|
-
import { Default } from
|
|
3
|
-
import { ZERO_VERSION_COLUMN_NAME } from
|
|
4
|
-
import { unescapedSchema } from
|
|
1
|
+
import { mapPostgresToLite, warnIfDataTypeSupported, } from "../../../../db/pg-to-lite.js";
|
|
2
|
+
import { Default } from "../../../../db/postgres-replica-identity-enum.js";
|
|
3
|
+
import { ZERO_VERSION_COLUMN_NAME } from "../../../replicator/schema/replication-state.js";
|
|
4
|
+
import { unescapedSchema } from "./shard.js";
|
|
5
5
|
const ALLOWED_IDENTIFIER_CHARS = /^[A-Za-z_]+[A-Za-z0-9_-]*$/;
|
|
6
6
|
export function validate(lc, shardID, table) {
|
|
7
7
|
const shardSchema = unescapedSchema(shardID);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LogContext } from '@rocicorp/logger';
|
|
2
|
-
import { type InitialSyncOptions } from './initial-sync.
|
|
3
|
-
import type { ShardConfig } from './shard-config.
|
|
2
|
+
import { type InitialSyncOptions } from './initial-sync.ts';
|
|
3
|
+
import type { ShardConfig } from './shard-config.ts';
|
|
4
4
|
export declare function initSyncSchema(log: LogContext, debugName: string, shard: ShardConfig, dbPath: string, upstreamURI: string, syncOptions: InitialSyncOptions): Promise<void>;
|
|
5
5
|
//# sourceMappingURL=sync-schema.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { runSchemaMigrations, } from
|
|
2
|
-
import { AutoResetSignal } from
|
|
3
|
-
import { initialSync } from
|
|
1
|
+
import { runSchemaMigrations, } from "../../../db/migration-lite.js";
|
|
2
|
+
import { AutoResetSignal } from "../../change-streamer/schema/tables.js";
|
|
3
|
+
import { initialSync } from "./initial-sync.js";
|
|
4
4
|
export async function initSyncSchema(log, debugName, shard, dbPath, upstreamURI, syncOptions) {
|
|
5
5
|
const setupMigration = {
|
|
6
6
|
migrateSchema: (log, tx) => initialSync(log, shard, tx, upstreamURI, syncOptions),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* ChangeSource and ChangeStreamer. These are not forwarded to subscribers
|
|
4
4
|
* of the ChangeStreamer.
|
|
5
5
|
*/
|
|
6
|
-
import * as v from '../../../../../../shared/src/valita.
|
|
6
|
+
import * as v from '../../../../../../shared/src/valita.ts';
|
|
7
7
|
/**
|
|
8
8
|
* Indicates that replication cannot continue and that the replica must be resynced
|
|
9
9
|
* from scratch. The replication-manager will shutdown in response to this message,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* ChangeSource and ChangeStreamer. These are not forwarded to subscribers
|
|
4
4
|
* of the ChangeStreamer.
|
|
5
5
|
*/
|
|
6
|
-
import * as v from
|
|
6
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
7
7
|
/**
|
|
8
8
|
* Indicates that replication cannot continue and that the replica must be resynced
|
|
9
9
|
* from scratch. The replication-manager will shutdown in response to this message,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* forwarded / fanned out to subscribers by the ChangeStreamerService, and
|
|
4
4
|
* stored in the Change DB for catchup of old subscribers.
|
|
5
5
|
*/
|
|
6
|
-
import * as v from '../../../../../../shared/src/valita.
|
|
7
|
-
import { type JSONObject } from '../../../../types/bigint-json.
|
|
8
|
-
import type { Satisfies } from '../../../../types/satisfies.
|
|
6
|
+
import * as v from '../../../../../../shared/src/valita.ts';
|
|
7
|
+
import { type JSONObject } from '../../../../types/bigint-json.ts';
|
|
8
|
+
import type { Satisfies } from '../../../../types/satisfies.ts';
|
|
9
9
|
export declare const beginSchema: v.ObjectType<{
|
|
10
10
|
tag: v.Type<"begin">;
|
|
11
11
|
}, undefined>;
|
|
@@ -22,7 +22,7 @@ export declare const relationSchema: v.ObjectType<{
|
|
|
22
22
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
23
23
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
24
24
|
}, undefined>;
|
|
25
|
-
export declare const rowSchema: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
25
|
+
export declare const rowSchema: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
26
26
|
export declare const insertSchema: v.ObjectType<{
|
|
27
27
|
tag: v.Type<"insert">;
|
|
28
28
|
relation: v.ObjectType<{
|
|
@@ -32,7 +32,7 @@ export declare const insertSchema: v.ObjectType<{
|
|
|
32
32
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
33
33
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
34
34
|
}, undefined>;
|
|
35
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
35
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
36
36
|
}, undefined>;
|
|
37
37
|
export declare const updateSchema: v.ObjectType<{
|
|
38
38
|
tag: v.Type<"update">;
|
|
@@ -43,9 +43,9 @@ export declare const updateSchema: v.ObjectType<{
|
|
|
43
43
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
44
44
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
45
45
|
}, undefined>;
|
|
46
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
47
|
-
old: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
48
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
46
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
47
|
+
old: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
48
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
49
49
|
}, undefined>;
|
|
50
50
|
export declare const deleteSchema: v.ObjectType<{
|
|
51
51
|
tag: v.Type<"delete">;
|
|
@@ -56,7 +56,7 @@ export declare const deleteSchema: v.ObjectType<{
|
|
|
56
56
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
57
57
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
58
58
|
}, undefined>;
|
|
59
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
59
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
60
60
|
}, undefined>;
|
|
61
61
|
export declare const truncateSchema: v.ObjectType<{
|
|
62
62
|
tag: v.Type<"truncate">;
|
|
@@ -206,7 +206,7 @@ export declare const dataChangeSchema: v.UnionType<[v.ObjectType<{
|
|
|
206
206
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
207
207
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
208
208
|
}, undefined>;
|
|
209
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
209
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
210
210
|
}, undefined>, v.ObjectType<{
|
|
211
211
|
tag: v.Type<"update">;
|
|
212
212
|
relation: v.ObjectType<{
|
|
@@ -216,9 +216,9 @@ export declare const dataChangeSchema: v.UnionType<[v.ObjectType<{
|
|
|
216
216
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
217
217
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
218
218
|
}, undefined>;
|
|
219
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
220
|
-
old: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
221
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
219
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
220
|
+
old: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
221
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
222
222
|
}, undefined>, v.ObjectType<{
|
|
223
223
|
tag: v.Type<"delete">;
|
|
224
224
|
relation: v.ObjectType<{
|
|
@@ -228,7 +228,7 @@ export declare const dataChangeSchema: v.UnionType<[v.ObjectType<{
|
|
|
228
228
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
229
229
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
230
230
|
}, undefined>;
|
|
231
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
231
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
232
232
|
}, undefined>, v.ObjectType<{
|
|
233
233
|
tag: v.Type<"truncate">;
|
|
234
234
|
relations: v.ArrayType<v.ObjectType<{
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* forwarded / fanned out to subscribers by the ChangeStreamerService, and
|
|
4
4
|
* stored in the Change DB for catchup of old subscribers.
|
|
5
5
|
*/
|
|
6
|
-
import * as v from
|
|
7
|
-
import { columnSpec, indexSpec, tableSpec } from
|
|
8
|
-
import { jsonValueSchema, } from
|
|
6
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
7
|
+
import { columnSpec, indexSpec, tableSpec } from "../../../../db/specs.js";
|
|
8
|
+
import { jsonValueSchema, } from "../../../../types/bigint-json.js";
|
|
9
9
|
export const beginSchema = v.object({
|
|
10
10
|
tag: v.literal('begin'),
|
|
11
11
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as v from '../../../../../../shared/src/valita.
|
|
1
|
+
import * as v from '../../../../../../shared/src/valita.ts';
|
|
2
2
|
declare const begin: v.TupleType<[v.Type<"begin">, v.ObjectType<{
|
|
3
3
|
tag: v.Type<"begin">;
|
|
4
4
|
}, undefined>, v.ObjectType<{
|
|
@@ -13,7 +13,7 @@ declare const data: v.TupleType<[v.Type<"data">, v.UnionType<[v.ObjectType<{
|
|
|
13
13
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
14
14
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
15
15
|
}, undefined>;
|
|
16
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
16
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
17
17
|
}, undefined>, v.ObjectType<{
|
|
18
18
|
tag: v.Type<"update">;
|
|
19
19
|
relation: v.ObjectType<{
|
|
@@ -23,9 +23,9 @@ declare const data: v.TupleType<[v.Type<"data">, v.UnionType<[v.ObjectType<{
|
|
|
23
23
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
24
24
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
25
25
|
}, undefined>;
|
|
26
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
27
|
-
old: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
28
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
26
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
27
|
+
old: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
28
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
29
29
|
}, undefined>, v.ObjectType<{
|
|
30
30
|
tag: v.Type<"delete">;
|
|
31
31
|
relation: v.ObjectType<{
|
|
@@ -35,7 +35,7 @@ declare const data: v.TupleType<[v.Type<"data">, v.UnionType<[v.ObjectType<{
|
|
|
35
35
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
36
36
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
37
37
|
}, undefined>;
|
|
38
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
38
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
39
39
|
}, undefined>, v.ObjectType<{
|
|
40
40
|
tag: v.Type<"truncate">;
|
|
41
41
|
relations: v.ArrayType<v.ObjectType<{
|
|
@@ -171,7 +171,7 @@ export declare const changeStreamDataSchema: v.UnionType<[v.TupleType<[v.Type<"b
|
|
|
171
171
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
172
172
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
173
173
|
}, undefined>;
|
|
174
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
174
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
175
175
|
}, undefined>, v.ObjectType<{
|
|
176
176
|
tag: v.Type<"update">;
|
|
177
177
|
relation: v.ObjectType<{
|
|
@@ -181,9 +181,9 @@ export declare const changeStreamDataSchema: v.UnionType<[v.TupleType<[v.Type<"b
|
|
|
181
181
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
182
182
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
183
183
|
}, undefined>;
|
|
184
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
185
|
-
old: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
186
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
184
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
185
|
+
old: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
186
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
187
187
|
}, undefined>, v.ObjectType<{
|
|
188
188
|
tag: v.Type<"delete">;
|
|
189
189
|
relation: v.ObjectType<{
|
|
@@ -193,7 +193,7 @@ export declare const changeStreamDataSchema: v.UnionType<[v.TupleType<[v.Type<"b
|
|
|
193
193
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
194
194
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
195
195
|
}, undefined>;
|
|
196
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
196
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
197
197
|
}, undefined>, v.ObjectType<{
|
|
198
198
|
tag: v.Type<"truncate">;
|
|
199
199
|
relations: v.ArrayType<v.ObjectType<{
|
|
@@ -329,7 +329,7 @@ export declare const changeStreamMessageSchema: v.UnionType<[v.UnionType<[v.Tupl
|
|
|
329
329
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
330
330
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
331
331
|
}, undefined>;
|
|
332
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
332
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
333
333
|
}, undefined>, v.ObjectType<{
|
|
334
334
|
tag: v.Type<"update">;
|
|
335
335
|
relation: v.ObjectType<{
|
|
@@ -339,9 +339,9 @@ export declare const changeStreamMessageSchema: v.UnionType<[v.UnionType<[v.Tupl
|
|
|
339
339
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
340
340
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
341
341
|
}, undefined>;
|
|
342
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
343
|
-
old: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
344
|
-
new: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
342
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
343
|
+
old: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue> | null>;
|
|
344
|
+
new: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
345
345
|
}, undefined>, v.ObjectType<{
|
|
346
346
|
tag: v.Type<"delete">;
|
|
347
347
|
relation: v.ObjectType<{
|
|
@@ -351,7 +351,7 @@ export declare const changeStreamMessageSchema: v.UnionType<[v.UnionType<[v.Tupl
|
|
|
351
351
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
352
352
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
353
353
|
}, undefined>;
|
|
354
|
-
key: v.Type<Record<string, import("../../../../types/bigint-json.
|
|
354
|
+
key: v.Type<Record<string, import("../../../../types/bigint-json.ts").JSONValue>>;
|
|
355
355
|
}, undefined>, v.ObjectType<{
|
|
356
356
|
tag: v.Type<"truncate">;
|
|
357
357
|
relations: v.ArrayType<v.ObjectType<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as v from
|
|
2
|
-
import { resetRequiredSchema } from
|
|
3
|
-
import { beginSchema, commitSchema, dataChangeSchema, rollbackSchema, } from
|
|
4
|
-
import { statusMessageSchema } from
|
|
1
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
2
|
+
import { resetRequiredSchema } from "./control.js";
|
|
3
|
+
import { beginSchema, commitSchema, dataChangeSchema, rollbackSchema, } from "./data.js";
|
|
4
|
+
import { statusMessageSchema } from "./status.js";
|
|
5
5
|
const begin = v.tuple([
|
|
6
6
|
v.literal('begin'),
|
|
7
7
|
beginSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './control.
|
|
2
|
-
export * from './data.
|
|
3
|
-
export * from './downstream.
|
|
4
|
-
export * from './path.
|
|
5
|
-
export * from './status.
|
|
6
|
-
export * from './upstream.
|
|
1
|
+
export * from './control.ts';
|
|
2
|
+
export * from './data.ts';
|
|
3
|
+
export * from './downstream.ts';
|
|
4
|
+
export * from './path.ts';
|
|
5
|
+
export * from './status.ts';
|
|
6
|
+
export * from './upstream.ts';
|
|
7
7
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from "./control.js";
|
|
2
|
+
export * from "./data.js";
|
|
3
|
+
export * from "./downstream.js";
|
|
4
|
+
export * from "./path.js";
|
|
5
|
+
export * from "./status.js";
|
|
6
|
+
export * from "./upstream.js";
|
|
7
7
|
//# sourceMappingURL=mod.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as v from '../../../../../../shared/src/valita.
|
|
1
|
+
import * as v from '../../../../../../shared/src/valita.ts';
|
|
2
2
|
/**
|
|
3
3
|
* The StatusMessage payload itself is unspecified. The `zero-cache` will
|
|
4
4
|
* send the Commit payload when acknowledging a completed transaction, and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as v from
|
|
1
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
2
2
|
/**
|
|
3
3
|
* The StatusMessage payload itself is unspecified. The `zero-cache` will
|
|
4
4
|
* send the Commit payload when acknowledging a completed transaction, and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as v from '../../../../../../shared/src/valita.
|
|
1
|
+
import * as v from '../../../../../../shared/src/valita.ts';
|
|
2
2
|
/** At the moment, the only upstream messages are status messages. */
|
|
3
3
|
export declare const changeSourceUpstreamSchema: v.TupleType<[v.Type<"status">, v.ObjectType<{}, undefined>, v.ObjectType<{
|
|
4
4
|
watermark: v.Type<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as v from
|
|
2
|
-
import { statusMessageSchema } from
|
|
1
|
+
import * as v from "../../../../../../shared/src/valita.js";
|
|
2
|
+
import { statusMessageSchema } from "./status.js";
|
|
3
3
|
/** At the moment, the only upstream messages are status messages. */
|
|
4
4
|
export const changeSourceUpstreamSchema = statusMessageSchema;
|
|
5
5
|
//# sourceMappingURL=upstream.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as v0 from './current/mod.
|
|
1
|
+
export * as v0 from './current/mod.ts';
|
|
2
2
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Types are externally exported under stable versions. Code within
|
|
2
2
|
// zero-cache, on the contrary, should reference the files in
|
|
3
3
|
// current/* so that it is versioned with the latest version.
|
|
4
|
-
export * as v0 from
|
|
4
|
+
export * as v0 from "./current/mod.js";
|
|
5
5
|
//# sourceMappingURL=mod.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LogContext } from '@rocicorp/logger';
|
|
2
2
|
import { IncomingMessage } from 'node:http';
|
|
3
|
-
import { type Worker } from '../../types/processes.
|
|
4
|
-
import { type Source } from '../../types/streams.
|
|
5
|
-
import { HttpService, type Options } from '../http-service.
|
|
6
|
-
import { type ChangeStreamer, type Downstream, type SubscriberContext } from './change-streamer.
|
|
3
|
+
import { type Worker } from '../../types/processes.ts';
|
|
4
|
+
import { type Source } from '../../types/streams.ts';
|
|
5
|
+
import { HttpService, type Options } from '../http-service.ts';
|
|
6
|
+
import { type ChangeStreamer, type Downstream, type SubscriberContext } from './change-streamer.ts';
|
|
7
7
|
export declare class ChangeStreamerHttpServer extends HttpService {
|
|
8
8
|
#private;
|
|
9
9
|
readonly id = "change-streamer-http-server";
|
|
@@ -2,13 +2,13 @@ import websocket from '@fastify/websocket';
|
|
|
2
2
|
import { LogContext } from '@rocicorp/logger';
|
|
3
3
|
import { IncomingMessage } from 'node:http';
|
|
4
4
|
import WebSocket from 'ws';
|
|
5
|
-
import {} from
|
|
6
|
-
import { streamIn, streamOut } from
|
|
7
|
-
import { URLParams } from
|
|
8
|
-
import { closeWithProtocolError } from
|
|
9
|
-
import { installWebSocketReceiver } from
|
|
10
|
-
import { HttpService } from
|
|
11
|
-
import { downstreamSchema, } from
|
|
5
|
+
import {} from "../../types/processes.js";
|
|
6
|
+
import { streamIn, streamOut } from "../../types/streams.js";
|
|
7
|
+
import { URLParams } from "../../types/url-params.js";
|
|
8
|
+
import { closeWithProtocolError } from "../../types/ws.js";
|
|
9
|
+
import { installWebSocketReceiver } from "../dispatcher/websocket-handoff.js";
|
|
10
|
+
import { HttpService } from "../http-service.js";
|
|
11
|
+
import { downstreamSchema, } from "./change-streamer.js";
|
|
12
12
|
const DIRECT_PATH_PATTERN = '/replication/:version/changes';
|
|
13
13
|
const TENANT_PATH_PATTERN = '/:tenant' + DIRECT_PATH_PATTERN;
|
|
14
14
|
const V0_CHANGES_PATH = '/replication/v0/changes';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LogContext } from '@rocicorp/logger';
|
|
2
|
-
import type { PostgresDB } from '../../types/pg.
|
|
3
|
-
import type { Sink, Source } from '../../types/streams.
|
|
4
|
-
import { type ChangeStreamData, type ChangeStreamMessage } from '../change-source/protocol/current/downstream.
|
|
5
|
-
import type { ChangeSourceUpstream } from '../change-source/protocol/current/upstream.
|
|
6
|
-
import { type ChangeStreamerService } from './change-streamer.
|
|
7
|
-
import { type ReplicationConfig } from './schema/tables.
|
|
2
|
+
import type { PostgresDB } from '../../types/pg.ts';
|
|
3
|
+
import type { Sink, Source } from '../../types/streams.ts';
|
|
4
|
+
import { type ChangeStreamData, type ChangeStreamMessage } from '../change-source/protocol/current/downstream.ts';
|
|
5
|
+
import type { ChangeSourceUpstream } from '../change-source/protocol/current/upstream.ts';
|
|
6
|
+
import { type ChangeStreamerService } from './change-streamer.ts';
|
|
7
|
+
import { type ReplicationConfig } from './schema/tables.ts';
|
|
8
8
|
/**
|
|
9
9
|
* Performs initialization and schema migrations to initialize a ChangeStreamerImpl.
|
|
10
10
|
*/
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { LogContext } from '@rocicorp/logger';
|
|
2
2
|
import { resolver } from '@rocicorp/resolver';
|
|
3
|
-
import { unreachable } from
|
|
4
|
-
import { min, } from
|
|
5
|
-
import { Subscription } from
|
|
6
|
-
import { orTimeout } from
|
|
7
|
-
import {} from
|
|
8
|
-
import { DEFAULT_MAX_RETRY_DELAY_MS, RunningState, UnrecoverableError, } from
|
|
9
|
-
import {} from
|
|
10
|
-
import * as ErrorType from
|
|
11
|
-
import { Forwarder } from
|
|
12
|
-
import { initChangeStreamerSchema } from
|
|
13
|
-
import { AutoResetSignal, ensureReplicationConfig, markResetRequired, } from
|
|
14
|
-
import { Storer } from
|
|
15
|
-
import { Subscriber } from
|
|
3
|
+
import { unreachable } from "../../../../shared/src/asserts.js";
|
|
4
|
+
import { min, } from "../../types/lexi-version.js";
|
|
5
|
+
import { Subscription } from "../../types/subscription.js";
|
|
6
|
+
import { orTimeout } from "../../types/timeout.js";
|
|
7
|
+
import {} from "../change-source/protocol/current/downstream.js";
|
|
8
|
+
import { DEFAULT_MAX_RETRY_DELAY_MS, RunningState, UnrecoverableError, } from "../running-state.js";
|
|
9
|
+
import {} from "./change-streamer.js";
|
|
10
|
+
import * as ErrorType from "./error-type-enum.js";
|
|
11
|
+
import { Forwarder } from "./forwarder.js";
|
|
12
|
+
import { initChangeStreamerSchema } from "./schema/init.js";
|
|
13
|
+
import { AutoResetSignal, ensureReplicationConfig, markResetRequired, } from "./schema/tables.js";
|
|
14
|
+
import { Storer } from "./storer.js";
|
|
15
|
+
import { Subscriber } from "./subscriber.js";
|
|
16
16
|
/**
|
|
17
17
|
* Performs initialization and schema migrations to initialize a ChangeStreamerImpl.
|
|
18
18
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as v from '../../../../shared/src/valita.
|
|
2
|
-
import type { Source } from '../../types/streams.
|
|
3
|
-
import { type Change } from '../change-source/protocol/current/data.
|
|
4
|
-
import type { ReplicatorMode } from '../replicator/replicator.
|
|
5
|
-
import type { Service } from '../service.
|
|
1
|
+
import * as v from '../../../../shared/src/valita.ts';
|
|
2
|
+
import type { Source } from '../../types/streams.ts';
|
|
3
|
+
import { type Change } from '../change-source/protocol/current/data.ts';
|
|
4
|
+
import type { ReplicatorMode } from '../replicator/replicator.ts';
|
|
5
|
+
import type { Service } from '../service.ts';
|
|
6
6
|
/**
|
|
7
7
|
* The ChangeStreamer is the component between replicators ("subscribers")
|
|
8
8
|
* and a canonical upstream source of changes (e.g. a Postgres logical
|
|
@@ -106,7 +106,7 @@ export declare const downstreamSchema: v.UnionType<[v.UnionType<[v.TupleType<[v.
|
|
|
106
106
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
107
107
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
108
108
|
}, undefined>;
|
|
109
|
-
new: v.Type<Record<string, import("../../types/bigint-json.
|
|
109
|
+
new: v.Type<Record<string, import("../../types/bigint-json.ts").JSONValue>>;
|
|
110
110
|
}, undefined>, v.ObjectType<{
|
|
111
111
|
tag: v.Type<"update">;
|
|
112
112
|
relation: v.ObjectType<{
|
|
@@ -116,9 +116,9 @@ export declare const downstreamSchema: v.UnionType<[v.UnionType<[v.TupleType<[v.
|
|
|
116
116
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
117
117
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
118
118
|
}, undefined>;
|
|
119
|
-
key: v.Type<Record<string, import("../../types/bigint-json.
|
|
120
|
-
old: v.Type<Record<string, import("../../types/bigint-json.
|
|
121
|
-
new: v.Type<Record<string, import("../../types/bigint-json.
|
|
119
|
+
key: v.Type<Record<string, import("../../types/bigint-json.ts").JSONValue> | null>;
|
|
120
|
+
old: v.Type<Record<string, import("../../types/bigint-json.ts").JSONValue> | null>;
|
|
121
|
+
new: v.Type<Record<string, import("../../types/bigint-json.ts").JSONValue>>;
|
|
122
122
|
}, undefined>, v.ObjectType<{
|
|
123
123
|
tag: v.Type<"delete">;
|
|
124
124
|
relation: v.ObjectType<{
|
|
@@ -128,7 +128,7 @@ export declare const downstreamSchema: v.UnionType<[v.UnionType<[v.TupleType<[v.
|
|
|
128
128
|
replicaIdentity: v.UnionType<[v.Type<"default">, v.Type<"nothing">, v.Type<"full">, v.Type<"index">]>;
|
|
129
129
|
keyColumns: v.ArrayType<v.Type<string>>;
|
|
130
130
|
}, undefined>;
|
|
131
|
-
key: v.Type<Record<string, import("../../types/bigint-json.
|
|
131
|
+
key: v.Type<Record<string, import("../../types/bigint-json.ts").JSONValue>>;
|
|
132
132
|
}, undefined>, v.ObjectType<{
|
|
133
133
|
tag: v.Type<"truncate">;
|
|
134
134
|
relations: v.ArrayType<v.ObjectType<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as v from
|
|
2
|
-
import {} from
|
|
3
|
-
import { changeStreamDataSchema } from
|
|
1
|
+
import * as v from "../../../../shared/src/valita.js";
|
|
2
|
+
import {} from "../change-source/protocol/current/data.js";
|
|
3
|
+
import { changeStreamDataSchema } from "../change-source/protocol/current/downstream.js";
|
|
4
4
|
const subscriptionErrorSchema = v.object({
|
|
5
5
|
type: v.number(), // ErrorType
|
|
6
6
|
message: v.string().optional(),
|