@powerhousedao/reactor 6.2.2-dev.88 → 6.2.2-staging.0

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/dist/index.d.ts CHANGED
@@ -5256,16 +5256,6 @@ type WorkerFactory = (index: number) => IExecutorWorker;
5256
5256
  * constructs them itself against its local Kysely instance.
5257
5257
  */
5258
5258
  type BuiltInReadModelKind = "document-view" | "document-indexer";
5259
- /**
5260
- * Snapshot of one shard's in-flight chain depth. Reported periodically by
5261
- * each worker so the host {@link ProjectionShardManager} can aggregate
5262
- * `IReadModelCoordinator.getChainDepth()`.
5263
- */
5264
- type ChainDepthReport = {
5265
- shardId: string;
5266
- depth: number;
5267
- timestamp: number;
5268
- };
5269
5259
  /**
5270
5260
  * Initializes a freshly spawned projection worker. The worker uses
5271
5261
  * `db` to open its own pg.Pool + Kysely, loads `models` into a local
@@ -5326,22 +5316,6 @@ type ProjectionReadyMessage = {
5326
5316
  correlationId: string;
5327
5317
  shardId: string;
5328
5318
  };
5329
- /**
5330
- * Reports that the worker's `init` threw. Terminal: the worker never becomes
5331
- * ready and never accepts a relay, so the parent rejects that shard's pending
5332
- * init with this cause and terminates the thread.
5333
- *
5334
- * The worker reports and stays alive rather than exiting itself: an exit can
5335
- * race the message on the port, and if the exit landed first the parent would
5336
- * settle the init with a bare "exited with code 1" and the real cause would
5337
- * arrive after the correlation id was already gone.
5338
- */
5339
- type ProjectionInitFailedMessage = {
5340
- type: "init-failed";
5341
- correlationId: string;
5342
- shardId: string;
5343
- error: ErrorInfo;
5344
- };
5345
5319
  /**
5346
5320
  * Forwarded JOB_READ_READY event from the worker's local bus. The host
5347
5321
  * re-emits this on the host bus so observers (sync manager, awaiters,
@@ -5425,21 +5399,7 @@ type ProjectionLogMessage = {
5425
5399
  args: SanitizedArg[];
5426
5400
  timestamp: number;
5427
5401
  };
5428
- type ProjectionWorkerMessage = ProjectionReadyMessage | ProjectionInitFailedMessage | ProjectionReadReadyMessage | ProjectionReadModelIndexedMessage | ProjectionBatchCompletedMessage | ProjectionChainDepthMessage | ProjectionPoolAcquireSamplesMessage | ProjectionDrainedMessage | ProjectionLogMessage;
5429
- //#endregion
5430
- //#region src/projection/create-hybrid-projection-coordinator.d.ts
5431
- type HybridProjectionOptions = {
5432
- /** Defaults to 1: one worker captures the whole win (Run 11). */shardCount?: number;
5433
- poolSize?: number;
5434
- db?: DbConfig;
5435
- onFatal?: (shardId: string, reason: Error) => void;
5436
- initTimeoutMs?: number;
5437
- shutdownGraceMs?: number;
5438
- drainTimeoutMs?: number;
5439
- chainDepthReportIntervalMs?: number;
5440
- };
5441
- /** Built-ins in one projection worker; all other read models stay on the host. */
5442
- declare function createHybridProjectionCoordinatorFactory(options?: HybridProjectionOptions): ReadModelCoordinatorFactory;
5402
+ type ProjectionWorkerMessage = ProjectionReadyMessage | ProjectionReadReadyMessage | ProjectionReadModelIndexedMessage | ProjectionBatchCompletedMessage | ProjectionChainDepthMessage | ProjectionPoolAcquireSamplesMessage | ProjectionDrainedMessage | ProjectionLogMessage;
5443
5403
  //#endregion
5444
5404
  //#region src/projection/transport.d.ts
5445
5405
  type ProjectionTransportEventMap = {
@@ -5468,21 +5428,7 @@ interface IProjectionTransport {
5468
5428
  * transports without spawning real worker threads.
5469
5429
  */
5470
5430
  type ProjectionWorkerFactory = (shardIndex: number, shardId: string) => IProjectionTransport;
5471
- type ProjectionShardHooks = {
5472
- /** Takes over the host-bus JOB_READ_READY emit; call `emitReadReady` to emit. */onReadReady?: (event: JobReadReadyEvent) => void;
5473
- /**
5474
- * Fired when a shard errors, when it exits after having been ready, and
5475
- * for every JOB_WRITE_READY dropped because its shard is not ready.
5476
- *
5477
- * There is no respawn path: once a shard stops being ready it never
5478
- * projects again, so buffering the dropped work would only grow without
5479
- * bound. A host that cares wires this to its shutdown path, so the process
5480
- * restarts and each read model catches up from `ViewState.lastOrdinal` in
5481
- * `BaseReadModel.init`. May fire repeatedly — handlers must be idempotent.
5482
- */
5483
- onShardFatal?: (shardId: string, reason: Error) => void;
5484
- };
5485
- type ProjectionShardManagerConfig = ProjectionShardHooks & {
5431
+ type ProjectionShardManagerConfig = {
5486
5432
  shardCount: number;
5487
5433
  db: DbConfig;
5488
5434
  models: ModelManifestEntry[];
@@ -5517,129 +5463,18 @@ type ProjectionShardManagerConfig = ProjectionShardHooks & {
5517
5463
  * same tables the host reads from, so advancing here is exact, not a fudge.
5518
5464
  */
5519
5465
  consistencyTrackers?: Partial<Record<BuiltInReadModelKind, IConsistencyTracker>>;
5466
+ /**
5467
+ * Fired when a shard errors, when it exits after having been ready, and
5468
+ * for every JOB_WRITE_READY dropped because its shard is not ready.
5469
+ *
5470
+ * There is no respawn path: once a shard stops being ready it never
5471
+ * projects again, so buffering the dropped work would only grow without
5472
+ * bound. A host that cares wires this to its shutdown path, so the process
5473
+ * restarts and each read model catches up from `ViewState.lastOrdinal` in
5474
+ * `BaseReadModel.init`. May fire repeatedly — handlers must be idempotent.
5475
+ */
5476
+ onShardFatal?: (shardId: string, reason: Error) => void;
5520
5477
  };
5521
- /**
5522
- * Host-side coordinator for N sharded projection workers.
5523
- *
5524
- * Implements {@link IReadModelCoordinator} so it slots into the same
5525
- * `readModelCoordinator` field on the reactor module as the in-process
5526
- * {@link ReadModelCoordinator}. The host subscribes to JOB_WRITE_READY
5527
- * exactly once; events are routed to a single shard by
5528
- * `bucketFor(documentId, shardCount)`. Each worker maintains the
5529
- * per-queueKey serial chain locally and forwards JOB_READ_READY and
5530
- * READMODEL_* events back to the host for the rest of the reactor (sync
5531
- * manager, awaiters, observers) to consume on the host bus.
5532
- *
5533
- * @see Sharded projection workers sub-feature brief
5534
- * (Powerhouse board wiki id: eb26f01f-8f68-4918-a6f6-ac7a4679b533)
5535
- */
5536
- declare class ProjectionShardManager implements IReadModelCoordinator {
5537
- readonly readModels: IReadModel[];
5538
- private readonly config;
5539
- private readonly logger;
5540
- private readonly hostBus;
5541
- private readonly shards;
5542
- private readonly initPromises;
5543
- private readonly pendingDrains;
5544
- private readonly trackersByReadModelName;
5545
- private hostSubscription?;
5546
- private isRunning;
5547
- private started;
5548
- private isShuttingDown;
5549
- constructor(config: ProjectionShardManagerConfig);
5550
- startup(): Promise<void>;
5551
- start(): void;
5552
- stop(): void;
5553
- /** Waits on ready shards only; `handleTransportExit` releases one that dies. */
5554
- drain(): Promise<void>;
5555
- /** Emits JOB_READ_READY on the host bus; an `onReadReady` hook awaits this. */
5556
- emitReadReady(event: JobReadReadyEvent): Promise<void>;
5557
- getChainDepth(): number;
5558
- getShardDepths(): ChainDepthReport[];
5559
- shutdown(): Promise<void>;
5560
- private routeWriteReady;
5561
- /**
5562
- * A shard stops being ready only when it dies, and nothing respawns it, so
5563
- * this job's projection is genuinely lost. Buffering would grow without
5564
- * bound behind a shard that never comes back, so the batch is dropped —
5565
- * loudly, naming the job and document, and through `onShardFatal` so a host
5566
- * can restart rather than serve stale read models.
5567
- *
5568
- * JOB_FAILED is deliberately not emitted: every other emitter uses it for a
5569
- * job whose operations were *not* written (see
5570
- * `executor/job-result-handler.ts`), and these were written and are
5571
- * durable. Marking the job FAILED would invite the caller to re-submit a
5572
- * write that already landed.
5573
- */
5574
- private dropWriteReady;
5575
- private handleWorkerMessage;
5576
- /**
5577
- * Advances the host's tracker for the read model the shard just indexed.
5578
- *
5579
- * The shard writes to the same tables the host reads, so once it reports a
5580
- * successful index the host's read path really is consistent to those
5581
- * coordinates. Gated on `success` for parity with
5582
- * `BaseReadModel.indexOperations`, which updates its tracker only after
5583
- * `commitOperations` returns. The worker posts this before its
5584
- * JOB_READ_READY, matching the in-process ordering.
5585
- */
5586
- private advanceConsistencyTrackers;
5587
- private handlePoolAcquireSamples;
5588
- /**
5589
- * Settles a shard's unresolved `init` with `error`, clearing its timer.
5590
- * Returns false when the shard has no init outstanding, which is every
5591
- * failure after startup. `startup()` awaits all init promises together, so
5592
- * the rejection is always attached.
5593
- */
5594
- private failPendingInit;
5595
- private handleReady;
5596
- private handleDrained;
5597
- /** Removes `shardId` from a pending drain and settles it once no shard remains. */
5598
- private releaseDrain;
5599
- private handleLog;
5600
- private handleTransportError;
5601
- private handleTransportExit;
5602
- private relayReadReady;
5603
- private relayReadModelIndexed;
5604
- private relayBatchCompleted;
5605
- }
5606
- //#endregion
5607
- //#region src/projection/hybrid-projection-coordinator.d.ts
5608
- type HybridProjectionCoordinatorOptions = {
5609
- eventBus: IEventBus;
5610
- logger: ILogger;
5611
- manager: ProjectionShardManager; /** Caller and factory registered models. Never documentView/documentIndexer. */
5612
- preReady: IReadModel[]; /** subscriptionNotificationReadModel, processorManager. */
5613
- postReady: IReadModel[]; /** Included in `readModels` for getReadModel() lookup; never indexed here. */
5614
- lookupOnly: IReadModel[];
5615
- };
5616
- /** Host-side stages on a per-queueKey chain driven by the worker's read-ready. */
5617
- declare class HybridProjectionCoordinator implements ILiveReadModelCoordinator {
5618
- /** One array, mutated in place: reactor-api captures it by reference once. */
5619
- readonly readModels: IReadModel[];
5620
- private readonly eventBus;
5621
- private readonly logger;
5622
- private readonly manager;
5623
- private readonly preReady;
5624
- private readonly postReady;
5625
- private readonly chains;
5626
- constructor(options: HybridProjectionCoordinatorOptions);
5627
- start(): void;
5628
- stop(): void;
5629
- /** Wired as `onReadReady`; host trackers are already advanced (port FIFO). */
5630
- acceptReadReady(event: JobReadReadyEvent): void;
5631
- addReadModel(readModel: IReadModel, stage: ReadModelRegistrationStage): void;
5632
- getChainDepth(): number;
5633
- /** Worker chains flush first, so every relayed read-ready is in `chains`. */
5634
- drain(): Promise<void>;
5635
- /** Builder shutdown hook; reaches `manager.shutdown()` even when drain fails. */
5636
- shutdown(): Promise<void>;
5637
- private runHostChain;
5638
- private indexWithTiming;
5639
- private emitBatchCompleted;
5640
- private emitReadModelIndexed;
5641
- private queueKeyFor;
5642
- }
5643
5478
  //#endregion
5644
5479
  //#region src/signer/types.d.ts
5645
5480
  /**
@@ -5701,42 +5536,6 @@ interface ReadModelFactoryDeps {
5701
5536
  * dependencies once they are available. Awaited during `buildModule()`.
5702
5537
  */
5703
5538
  type ReadModelFactory = (deps: ReadModelFactoryDeps) => IReadModel | Promise<IReadModel>;
5704
- /**
5705
- * Dependencies handed to a coordinator factory registered via
5706
- * `withReadModelCoordinatorFactory`. All constructed inside `buildModule()`.
5707
- */
5708
- interface ReadModelCoordinatorFactoryDeps {
5709
- /** Host bus: subscribe to JOB_WRITE_READY, emit JOB_READ_READY. */
5710
- eventBus: IEventBus;
5711
- logger: ILogger;
5712
- /**
5713
- * `withReadModel` + `withReadModelFactory` models, in registration order.
5714
- * Excludes documentView/documentIndexer so a worker owner cannot
5715
- * double-index them.
5716
- */
5717
- readModels: IReadModel[];
5718
- /** Post-ready: runs after JOB_READ_READY so callbacks see fresh reads. */
5719
- subscriptionNotificationReadModel: IReadModel;
5720
- /** Post-ready: every package-installed processor. */
5721
- processorManager: IReadModel;
5722
- /** Host document view; lookup surface only, never indexed by the factory. */
5723
- documentView: IReadModel;
5724
- /** Host document indexer; lookup surface only, never indexed by the factory. */
5725
- documentIndexer: IReadModel;
5726
- /**
5727
- * Builds and starts a projection shard manager on this event bus with the
5728
- * host consistency trackers wired. Registers no shutdown hook: the factory
5729
- * owns the manager's lifecycle through `registerShutdownHook`.
5730
- */
5731
- createProjectionShardManager: (config: ProjectionShardBuilderConfig & ProjectionShardHooks) => Promise<ProjectionShardManager>;
5732
- /** Appends to the list `withShutdownHook` uses; hooks run in order. */
5733
- registerShutdownHook: (hook: () => Promise<void>) => void;
5734
- }
5735
- /**
5736
- * Factory that builds the read-model coordinator from reactor internals.
5737
- * Awaited during `buildModule()`.
5738
- */
5739
- type ReadModelCoordinatorFactory = (deps: ReadModelCoordinatorFactoryDeps) => IReadModelCoordinator | Promise<IReadModelCoordinator>;
5740
5539
  type WorkerPoolBase = {
5741
5540
  /** Number of worker threads to spawn; also the sticky-routing modulus. */numWorkers: number;
5742
5541
  /**
@@ -5808,7 +5607,6 @@ declare class ReactorBuilder {
5808
5607
  private syncBuilder?;
5809
5608
  private eventBus?;
5810
5609
  private readModelCoordinator?;
5811
- private readModelCoordinatorFactory?;
5812
5610
  private signatureVerifier?;
5813
5611
  private kyselyInstance?;
5814
5612
  private signalHandlersEnabled;
@@ -5820,7 +5618,6 @@ declare class ReactorBuilder {
5820
5618
  private driveContainerTypes;
5821
5619
  private workerPool?;
5822
5620
  private resolvedModelManifest?;
5823
- private moduleOnlyModelKeys;
5824
5621
  private projectionShardConfig?;
5825
5622
  private projectionWorkerFactory?;
5826
5623
  private instrumentedPools;
@@ -5845,12 +5642,6 @@ declare class ReactorBuilder {
5845
5642
  */
5846
5643
  withReadModelFactory(factory: ReadModelFactory): this;
5847
5644
  withReadModelCoordinator(readModelCoordinator: IReadModelCoordinator): this;
5848
- /**
5849
- * Register a factory that builds the coordinator once the subscription
5850
- * read model, processor manager and host read models exist. Use this, not
5851
- * `withReadModelCoordinator`, for coordinators that compose those internals.
5852
- */
5853
- withReadModelCoordinatorFactory(factory: ReadModelCoordinatorFactory): this;
5854
5645
  withExecutor(executor: IJobExecutorManager): this;
5855
5646
  withExecutorConfig(config: Partial<JobExecutorConfig>): this;
5856
5647
  withWriteCacheConfig(config: Partial<WriteCacheConfig>): this;
@@ -5934,9 +5725,6 @@ declare class ReactorBuilder {
5934
5725
  * models never index an operation, so the manager advances these from the
5935
5726
  * shards' relayed indexing reports; without them every read carrying a
5936
5727
  * consistency token waits forever.
5937
- * @param registerShutdownHook Whether the builder owns `manager.shutdown()`
5938
- * at signal time. False for the coordinator-factory path, whose factory
5939
- * registers its own hook so host chains drain before the worker stops.
5940
5728
  */
5941
5729
  private createProjectionShardManager;
5942
5730
  private createDefaultProjectionWorkerFactory;
@@ -7434,5 +7222,5 @@ declare class ProcessorManager extends BaseReadModel implements IProcessorManage
7434
7222
  private deleteProcessorCursors;
7435
7223
  }
7436
7224
  //#endregion
7437
- export { ALWAYS_READABLE_SCOPES, APPEND_CONDITION_FAILED_PREFIX, type AbortMessage, type ActionCandidate, type ActionEvaluationConfig, type ActionEvaluations, type AdmissionDecision, type AppendCondition, AppendConditionFailedError, type AppendConditionStream, type AtomicTxn, type AttachmentHash, type AttachmentRef, type AuthDecisionModel, AuthEnforcementDisabledError, BareReadGate, BaseReadModel, type BatchExecutionRequest, type BatchExecutionResult, type BatchLoadRequest, type BatchLoadResult, type BuiltDecisionModel, type BuiltInReadModelKind, type CachedSnapshot, type ChannelConfig, ChannelError, ChannelErrorSource, type ChannelHealth, type ChannelMeta, ChannelScheme, type ConnectionState, type ConnectionStateChangeCallback, type ConnectionStateChangedEvent, type ConnectionStateSnapshot, type ConsistencyCoordinate, type ConsistencyKey, type ConsistencyToken, ConsistencyTracker, DEFAULT_DRIVE_CONTAINER_TYPES, DOCUMENT_INDEXER_READ_MODEL, DOCUMENT_VIEW_READ_MODEL, DRIVE_AUTH_ERROR_MESSAGES, type Database, type DbConfig, type DeadLetterAddedEvent, type DecisionContext, type DecisionModel, type DecisionTarget, DefaultSubscriptionErrorHandler, DocumentAlreadyExistsError, type DocumentChangeEvent, DocumentChangeType, type DocumentDecisionModel, DocumentExistence, type DocumentGraphEdge, type DocumentIndexerDatabase, DocumentIntegrityService, DocumentModelRegistry, DocumentModelResolver, type DocumentModelSource, type DocumentModelSpec, type DocumentRelationship, type DocumentRevisions, type DocumentStreamKey, type DocumentViewDatabase, DriveClient, DriveCollectionId, DuplicateManifestError, DuplicateModuleError, DuplicateOperationError, type Evaluation, EventBus, EventBusAggregateError, type ExecuteMessage, type ExecutionJobPlan, type ExecutorStartedEvent, type ExecutorStoppedEvent, type FactorySpec, type FileModelSource, type GqlChannelConfig, GqlRequestChannel, GqlRequestChannelFactory, GqlResponseChannel, GqlResponseChannelFactory, type HeartbeatMessage, HybridProjectionCoordinator, type HybridProjectionCoordinatorOptions, type HybridProjectionOptions, type IChannel, type IChannelFactory, type IConsistencyTracker, type IDocumentGraph, type IDocumentIndexer, type IDocumentIntegrityService, type IDocumentModelLoader, type IDocumentModelRegistry, type IDocumentModelResolver, type IDocumentView, type IDriveClient, type IEventBus, type IJobAwaiter, type IJobExecutor, type IJobExecutorManager, type IJobTracker, type IKeyframeStore, type ILiveReadModelCoordinator, type IMailbox, type IOperationIndex, type IOperationStore, type IPollTimer, type IProcessor, type IProcessorHostModuleBase, type IProcessorManager, type IProjectionTransport, type IQueue, type IReactor, type IReactorClient, type IReactorProcessorHostModuleBase, type IReactorSubscriptionManager, type IReadGate, type IReadModel, type IReadModelCoordinator, type IRelationalDb, type IStreamStateReader, type ISubscriptionErrorHandler, type ISyncCursorStorage, type ISyncManager, type ISyncRemoteStorage, type ISyncStatusTracker, type IWriteCache, SimpleJobExecutor as InMemoryJobExecutor, SimpleJobExecutor, InMemoryJobTracker, InMemoryQueue, type InProcessReactorClientModule, type InProcessReactorModule, type InProcessSyncModule, type InitMessage, type InsertableDocumentSnapshot, IntervalPollTimer, InvalidModuleError, type Job, type JobAvailableEvent, JobAwaiter, type JobCompletedEvent, type JobExecutorConfig, JobExecutorEventTypes, type JobExecutorFactory, type JobFailedEvent, type JobInfo, type JobPendingEvent, type JobReadReadyEvent, type JobResult, type JobRunningEvent, type JobStartedEvent, JobStatus, type JobWriteReadyEvent, type JobWriteReadyPayload, type JwtHandler, type KeyframeSnapshot, type KeyframeValidationIssue, KyselyDocumentIndexer, KyselyDocumentView, KyselyKeyframeStore, KyselyOperationStore, KyselySyncCursorStorage, KyselySyncRemoteStorage, KyselyWriteCache, type LoadJobPlan, type LoadModelMessage, type LogMessage, Mailbox, type MetricsMessage, type ModelLoadFailedMessage, type ModelLoadedEvent, type ModelLoadedMessage, type ModelManifestEntry, ModelReadGate, ModuleNotFoundError, type ModuleRef, NullDocumentModelResolver, type OperationBatch, type OperationContext, type OperationFilter, type OperationIndexEntry, type OperationTable, type OperationWithContext, OptimisticLockError, type OutOfOrderPair, type PackageModelSource, type PagedResults, type PagingOptions, type ParentMessage, type ParsedDriveUrl, type ParsedPaging, PollBehavior, PollingChannelError, type PoolInstrumentation, type PoolStats, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, ProcessorManager, type ProcessorRecord, type ProcessorStatus, type Projection, type ProjectionShardBuilderConfig, type ProjectionShardHooks, type ProjectionShardManagerConfig, type ProjectionWorkerFactory, PropagationMode, QueueEventTypes, REACTOR_SCHEMA, RECOVERABLE_GRAPHQL_ERROR_CODES, Reactor, ReactorBuilder, ReactorClient, ReactorClientBuilder, type ReactorClientModule, ReactorEventTypes, type ReactorFeatureFlags, type ReactorFeatures, type ReactorHostModuleBaseOptions, type JobFailedEvent$1 as ReactorJobFailedEvent, type ReactorModule, type ReactorReadModels, ReactorSubscriptionManager, type ReadGateOptions, type ReadModelBatchCompletedEvent, ReadModelCoordinator, type ReadModelCoordinatorFactory, type ReadModelCoordinatorFactoryDeps, type ReadModelFactory, type ReadModelFactoryDeps, type ReadModelIndexedEvent, type ReadModelIndexingStage, type ReadModelRegistrationStage, type ReadModelStage, type ReadyMessage, type RebuildResult, type RegisteredDecisionModel, RelationalDbProcessor, RelationshipChangeType, type Remote, type RemoteCursor, type RemoteFilter, type RemoteMeta, type RemoteOptions, type RemoteRecord, type RemoteStatus, type ResultMessage, RetryAccounting, RevisionMismatchError, type SanitizedArg, type SearchFilter, SeededStateReader, type ShutdownMessage, type ShutdownStatus, type SignatureVerificationHandler, type SignatureVerifierSpec, type SignerConfig, SimpleJobExecutorManager, type SnapshotValidationIssue, type Database$1 as StorageDatabase, type StreamOrderIssue, type StreamQuery, type SubscriptionErrorContext, SyncBuilder, type SyncEnvelope, type SyncEnvelopeType, SyncEventTypes, type SyncFailedEvent, type SyncModule, SyncOperation, SyncOperationAggregateError, type SyncOperationErrorType, SyncOperationStatus, type SyncPendingEvent, SyncScopeGate, SyncStatus, type SyncStatusChangeCallback, SyncStatusTracker, type SyncSucceededEvent, type TrackedProcessor, type Unsubscribe, type ValidationResult, type ViewFilter, type ErrorInfo as WorkerErrorInfo, type WorkerMessage, type WorkerPoolConfig, type WorkerPoolOptions, type WriteCacheConfig, addRelationshipAction, authDecisionModel, batchOperationsByDocument, buildDecisionModel, classifyJobFailure, consolidateSyncOperations, createDocumentAction, createForwardingLogger, createHybridProjectionCoordinatorFactory, createMutableShutdownStatus, createReactorHostModuleBase, createRelationalDb, decideAtHead, deleteDocumentAction, documentActions, documentDecisionModel, driveIdFromUrl, envelopesToSyncOperations, errorToInfo, firstOutOfOrderPair, getMigrationStatus, instrumentPgPool, isDriveAuthError, isRecoverableGraphQLError, makeConsistencyKey, parseDriveUrl, parsePagingOptions, quarantinesDocument, readDecisionModel, removeRelationshipAction, runMigrations, sanitizeArg, selectDecisionModel, supportsLiveReadModelRegistration, syncOperationErrorType, trimMailboxFromAckOrdinal, updateRelationshipAction, upgradeDocumentAction, workerEntryPath };
7225
+ export { ALWAYS_READABLE_SCOPES, APPEND_CONDITION_FAILED_PREFIX, type AbortMessage, type ActionCandidate, type ActionEvaluationConfig, type ActionEvaluations, type AdmissionDecision, type AppendCondition, AppendConditionFailedError, type AppendConditionStream, type AtomicTxn, type AttachmentHash, type AttachmentRef, type AuthDecisionModel, AuthEnforcementDisabledError, BareReadGate, BaseReadModel, type BatchExecutionRequest, type BatchExecutionResult, type BatchLoadRequest, type BatchLoadResult, type BuiltDecisionModel, type BuiltInReadModelKind, type CachedSnapshot, type ChannelConfig, ChannelError, ChannelErrorSource, type ChannelHealth, type ChannelMeta, ChannelScheme, type ConnectionState, type ConnectionStateChangeCallback, type ConnectionStateChangedEvent, type ConnectionStateSnapshot, type ConsistencyCoordinate, type ConsistencyKey, type ConsistencyToken, ConsistencyTracker, DEFAULT_DRIVE_CONTAINER_TYPES, DOCUMENT_INDEXER_READ_MODEL, DOCUMENT_VIEW_READ_MODEL, DRIVE_AUTH_ERROR_MESSAGES, type Database, type DbConfig, type DeadLetterAddedEvent, type DecisionContext, type DecisionModel, type DecisionTarget, DefaultSubscriptionErrorHandler, DocumentAlreadyExistsError, type DocumentChangeEvent, DocumentChangeType, type DocumentDecisionModel, DocumentExistence, type DocumentGraphEdge, type DocumentIndexerDatabase, DocumentIntegrityService, DocumentModelRegistry, DocumentModelResolver, type DocumentModelSource, type DocumentModelSpec, type DocumentRelationship, type DocumentRevisions, type DocumentStreamKey, type DocumentViewDatabase, DriveClient, DriveCollectionId, DuplicateManifestError, DuplicateModuleError, DuplicateOperationError, type Evaluation, EventBus, EventBusAggregateError, type ExecuteMessage, type ExecutionJobPlan, type ExecutorStartedEvent, type ExecutorStoppedEvent, type FactorySpec, type FileModelSource, type GqlChannelConfig, GqlRequestChannel, GqlRequestChannelFactory, GqlResponseChannel, GqlResponseChannelFactory, type HeartbeatMessage, type IChannel, type IChannelFactory, type IConsistencyTracker, type IDocumentGraph, type IDocumentIndexer, type IDocumentIntegrityService, type IDocumentModelLoader, type IDocumentModelRegistry, type IDocumentModelResolver, type IDocumentView, type IDriveClient, type IEventBus, type IJobAwaiter, type IJobExecutor, type IJobExecutorManager, type IJobTracker, type IKeyframeStore, type ILiveReadModelCoordinator, type IMailbox, type IOperationIndex, type IOperationStore, type IPollTimer, type IProcessor, type IProcessorHostModuleBase, type IProcessorManager, type IProjectionTransport, type IQueue, type IReactor, type IReactorClient, type IReactorProcessorHostModuleBase, type IReactorSubscriptionManager, type IReadGate, type IReadModel, type IReadModelCoordinator, type IRelationalDb, type IStreamStateReader, type ISubscriptionErrorHandler, type ISyncCursorStorage, type ISyncManager, type ISyncRemoteStorage, type ISyncStatusTracker, type IWriteCache, SimpleJobExecutor as InMemoryJobExecutor, SimpleJobExecutor, InMemoryJobTracker, InMemoryQueue, type InProcessReactorClientModule, type InProcessReactorModule, type InProcessSyncModule, type InitMessage, type InsertableDocumentSnapshot, IntervalPollTimer, InvalidModuleError, type Job, type JobAvailableEvent, JobAwaiter, type JobCompletedEvent, type JobExecutorConfig, JobExecutorEventTypes, type JobExecutorFactory, type JobFailedEvent, type JobInfo, type JobPendingEvent, type JobReadReadyEvent, type JobResult, type JobRunningEvent, type JobStartedEvent, JobStatus, type JobWriteReadyEvent, type JobWriteReadyPayload, type JwtHandler, type KeyframeSnapshot, type KeyframeValidationIssue, KyselyDocumentIndexer, KyselyDocumentView, KyselyKeyframeStore, KyselyOperationStore, KyselySyncCursorStorage, KyselySyncRemoteStorage, KyselyWriteCache, type LoadJobPlan, type LoadModelMessage, type LogMessage, Mailbox, type MetricsMessage, type ModelLoadFailedMessage, type ModelLoadedEvent, type ModelLoadedMessage, type ModelManifestEntry, ModelReadGate, ModuleNotFoundError, type ModuleRef, NullDocumentModelResolver, type OperationBatch, type OperationContext, type OperationFilter, type OperationIndexEntry, type OperationTable, type OperationWithContext, OptimisticLockError, type OutOfOrderPair, type PackageModelSource, type PagedResults, type PagingOptions, type ParentMessage, type ParsedDriveUrl, type ParsedPaging, PollBehavior, PollingChannelError, type PoolInstrumentation, type PoolStats, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, ProcessorManager, type ProcessorRecord, type ProcessorStatus, type Projection, type ProjectionShardBuilderConfig, type ProjectionShardManagerConfig, type ProjectionWorkerFactory, PropagationMode, QueueEventTypes, REACTOR_SCHEMA, RECOVERABLE_GRAPHQL_ERROR_CODES, Reactor, ReactorBuilder, ReactorClient, ReactorClientBuilder, type ReactorClientModule, ReactorEventTypes, type ReactorFeatureFlags, type ReactorFeatures, type ReactorHostModuleBaseOptions, type JobFailedEvent$1 as ReactorJobFailedEvent, type ReactorModule, type ReactorReadModels, ReactorSubscriptionManager, type ReadGateOptions, type ReadModelBatchCompletedEvent, ReadModelCoordinator, type ReadModelFactory, type ReadModelFactoryDeps, type ReadModelIndexedEvent, type ReadModelIndexingStage, type ReadModelRegistrationStage, type ReadModelStage, type ReadyMessage, type RebuildResult, type RegisteredDecisionModel, RelationalDbProcessor, RelationshipChangeType, type Remote, type RemoteCursor, type RemoteFilter, type RemoteMeta, type RemoteOptions, type RemoteRecord, type RemoteStatus, type ResultMessage, RetryAccounting, RevisionMismatchError, type SanitizedArg, type SearchFilter, SeededStateReader, type ShutdownMessage, type ShutdownStatus, type SignatureVerificationHandler, type SignatureVerifierSpec, type SignerConfig, SimpleJobExecutorManager, type SnapshotValidationIssue, type Database$1 as StorageDatabase, type StreamOrderIssue, type StreamQuery, type SubscriptionErrorContext, SyncBuilder, type SyncEnvelope, type SyncEnvelopeType, SyncEventTypes, type SyncFailedEvent, type SyncModule, SyncOperation, SyncOperationAggregateError, type SyncOperationErrorType, SyncOperationStatus, type SyncPendingEvent, SyncScopeGate, SyncStatus, type SyncStatusChangeCallback, SyncStatusTracker, type SyncSucceededEvent, type TrackedProcessor, type Unsubscribe, type ValidationResult, type ViewFilter, type ErrorInfo as WorkerErrorInfo, type WorkerMessage, type WorkerPoolConfig, type WorkerPoolOptions, type WriteCacheConfig, addRelationshipAction, authDecisionModel, batchOperationsByDocument, buildDecisionModel, classifyJobFailure, consolidateSyncOperations, createDocumentAction, createForwardingLogger, createMutableShutdownStatus, createReactorHostModuleBase, createRelationalDb, decideAtHead, deleteDocumentAction, documentActions, documentDecisionModel, driveIdFromUrl, envelopesToSyncOperations, errorToInfo, firstOutOfOrderPair, getMigrationStatus, instrumentPgPool, isDriveAuthError, isRecoverableGraphQLError, makeConsistencyKey, parseDriveUrl, parsePagingOptions, quarantinesDocument, readDecisionModel, removeRelationshipAction, runMigrations, sanitizeArg, selectDecisionModel, supportsLiveReadModelRegistration, syncOperationErrorType, trimMailboxFromAckOrdinal, updateRelationshipAction, upgradeDocumentAction, workerEntryPath };
7438
7226
  //# sourceMappingURL=index.d.ts.map