@powerhousedao/reactor 6.2.2-dev.53 → 6.2.2-dev.54
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/{build-worker-executor-NT9b3rNm.js → build-worker-executor-DBHkoWBR.js} +2 -2
- package/dist/{build-worker-executor-NT9b3rNm.js.map → build-worker-executor-DBHkoWBR.js.map} +1 -1
- package/dist/{drive-container-types-RZa1wukO.js → drive-container-types-bVQ_8YwX.js} +145 -47
- package/dist/drive-container-types-bVQ_8YwX.js.map +1 -0
- package/dist/entry.js +2 -2
- package/dist/index.d.ts +160 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +411 -147
- package/dist/index.js.map +1 -1
- package/dist/projection-entry.js +2 -2
- package/dist/{worker-sw2vjrd3.js → worker-DXJpyHLW.js} +2 -2
- package/dist/{worker-sw2vjrd3.js.map → worker-DXJpyHLW.js.map} +1 -1
- package/package.json +4 -4
- package/dist/drive-container-types-RZa1wukO.js.map +0 -1
package/dist/entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as instrumentPgPool } from "./drive-container-types-
|
|
1
|
+
import { o as instrumentPgPool } from "./drive-container-types-bVQ_8YwX.js";
|
|
2
2
|
import { n as errorToInfo, t as createForwardingLogger } from "./forwarding-logger-BBkMSxuJ.js";
|
|
3
|
-
import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-
|
|
3
|
+
import { n as defaultLoadFactory, t as buildWorkerExecutor } from "./build-worker-executor-DBHkoWBR.js";
|
|
4
4
|
import { ConsoleLogger } from "document-model";
|
|
5
5
|
import { isMainThread, parentPort } from "node:worker_threads";
|
|
6
6
|
//#region src/executor/worker/run-worker.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -399,6 +399,16 @@ type RemoteOptions = {
|
|
|
399
399
|
* Polling cadence for this remote. Defaults to `PollBehavior.Auto` when omitted.
|
|
400
400
|
*/
|
|
401
401
|
pollBehavior?: PollBehavior;
|
|
402
|
+
/**
|
|
403
|
+
* The address this channel belongs to, once one has claimed it.
|
|
404
|
+
*
|
|
405
|
+
* Undefined is unbound and adoptable: a channel created anonymously, or one
|
|
406
|
+
* that predates binding. The first authenticated subject to poll or touch it
|
|
407
|
+
* takes it, and from then on it answers to that address alone. There is no
|
|
408
|
+
* sentinel for "anonymous" -- an anonymous holder is exactly one that has not
|
|
409
|
+
* claimed the channel.
|
|
410
|
+
*/
|
|
411
|
+
boundAddress?: string;
|
|
402
412
|
};
|
|
403
413
|
type RemoteFilter = {
|
|
404
414
|
documentId: string[];
|
|
@@ -2407,6 +2417,7 @@ interface SyncRemoteTable {
|
|
|
2407
2417
|
pull_last_success_utc_ms: string | null;
|
|
2408
2418
|
pull_last_failure_utc_ms: string | null;
|
|
2409
2419
|
pull_failure_count: number;
|
|
2420
|
+
bound_address: string | null;
|
|
2410
2421
|
created_at: Generated<Date>;
|
|
2411
2422
|
updated_at: Generated<Date>;
|
|
2412
2423
|
}
|
|
@@ -3322,7 +3333,10 @@ type JobExecutorConfig = {
|
|
|
3322
3333
|
/** Feature flags; anything unset is off. */featureFlags?: Partial<ReactorFeatureFlags>; /** Maximum number of conflicting operations to skip when reshuffling. */
|
|
3323
3334
|
maxSkipThreshold?: number; /** Maximum number of concurrent jobs to execute */
|
|
3324
3335
|
maxConcurrency?: number; /** Maximum time in milliseconds a job can run before being considered timed out */
|
|
3325
|
-
jobTimeoutMs?: number;
|
|
3336
|
+
jobTimeoutMs?: number;
|
|
3337
|
+
/** How long a job whose document is missing waits for it before failing.
|
|
3338
|
+
* Unbounded deferral never resolves the caller awaiting the job. */
|
|
3339
|
+
deferredJobTtlMs?: number; /** Base delay in milliseconds for exponential backoff retries */
|
|
3326
3340
|
retryBaseDelayMs?: number; /** Maximum delay in milliseconds for exponential backoff retries */
|
|
3327
3341
|
retryMaxDelayMs?: number;
|
|
3328
3342
|
/** Maximum elapsed milliseconds before yielding to the main thread between actions.
|
|
@@ -3443,6 +3457,19 @@ declare function selectDecisionModel(flags: ReactorFeatureFlags, registry: IDocu
|
|
|
3443
3457
|
* argument covers. Grants gate domain-scope reads only.
|
|
3444
3458
|
*/
|
|
3445
3459
|
declare const ALWAYS_READABLE_SCOPES: ReadonlySet<string>;
|
|
3460
|
+
/**
|
|
3461
|
+
* How a gate treats a document nobody has written a policy onto.
|
|
3462
|
+
*
|
|
3463
|
+
* A host that closes by default owes an uninitialized document the same silence
|
|
3464
|
+
* it owes a denied one, because "no policy yet" and "a policy that allows this"
|
|
3465
|
+
* are indistinguishable to a replica that never receives the scope. The option
|
|
3466
|
+
* exists because that answer belongs to the host serving the read, not to the
|
|
3467
|
+
* document: replay must keep reading an uninitialized document in full, or a
|
|
3468
|
+
* replica would refuse to rebuild state it already holds.
|
|
3469
|
+
*/
|
|
3470
|
+
type ReadGateOptions = {
|
|
3471
|
+
withholdUninitialized: boolean;
|
|
3472
|
+
};
|
|
3446
3473
|
/** Whether a subject may read each scope of one document. */
|
|
3447
3474
|
interface IReadGate {
|
|
3448
3475
|
/**
|
|
@@ -3521,6 +3548,7 @@ declare class ModelReadGate implements IReadGate {
|
|
|
3521
3548
|
private readonly servesGroups;
|
|
3522
3549
|
private readonly operationIndex?;
|
|
3523
3550
|
private readonly logger?;
|
|
3551
|
+
private readonly options;
|
|
3524
3552
|
constructor(model: RegisteredDecisionModel, documentView: IDocumentView,
|
|
3525
3553
|
/**
|
|
3526
3554
|
* Whether a group a policy names is served to that policy's audience. Only
|
|
@@ -3529,7 +3557,7 @@ declare class ModelReadGate implements IReadGate {
|
|
|
3529
3557
|
* would publish a member list no read grant can use.
|
|
3530
3558
|
*/
|
|
3531
3559
|
|
|
3532
|
-
servesGroups: boolean, operationIndex?: IOperationIndex | undefined, logger?: ILogger | undefined);
|
|
3560
|
+
servesGroups: boolean, operationIndex?: IOperationIndex | undefined, logger?: ILogger | undefined, options?: ReadGateOptions);
|
|
3533
3561
|
/**
|
|
3534
3562
|
* A served group yields its member list and nothing else. What the audience
|
|
3535
3563
|
* is owed is the state it must fold to evaluate auth with the group; a
|
|
@@ -3579,11 +3607,15 @@ declare class ModelReadGate implements IReadGate {
|
|
|
3579
3607
|
/**
|
|
3580
3608
|
* What this document's own policy says, with no group serving applied.
|
|
3581
3609
|
*
|
|
3582
|
-
* An unpoliced document is readable in full
|
|
3583
|
-
*
|
|
3584
|
-
* `evaluate` makes: a legacy `{}` auth
|
|
3585
|
-
* uninitialized, and "no grants" does not,
|
|
3586
|
-
* an empty grant list denies everything.
|
|
3610
|
+
* An unpoliced document is readable in full unless the host closes by default,
|
|
3611
|
+
* and either way it is the common case and the one worth answering without
|
|
3612
|
+
* building anything. The test is the one `evaluate` makes: a legacy `{}` auth
|
|
3613
|
+
* scope and version 0 both mean uninitialized, and "no grants" does not,
|
|
3614
|
+
* because a policy with a version and an empty grant list denies everything.
|
|
3615
|
+
*
|
|
3616
|
+
* Closing here rather than around the gate is what keeps a policy able to
|
|
3617
|
+
* publish an unpoliced group it names: the referencer walk asks this question
|
|
3618
|
+
* of the referencing document, whose real policy answers it.
|
|
3587
3619
|
*/
|
|
3588
3620
|
private ownPolicyPredicate;
|
|
3589
3621
|
}
|
|
@@ -4248,6 +4280,45 @@ type ForwardingPoolInstrumentation = PoolInstrumentation & {
|
|
|
4248
4280
|
};
|
|
4249
4281
|
//#endregion
|
|
4250
4282
|
//#region src/sync/errors.d.ts
|
|
4283
|
+
type GraphQLRequestErrorCategory = "network" | "http" | "parse" | "graphql" | "missing-data";
|
|
4284
|
+
declare class GraphQLRequestError extends Error {
|
|
4285
|
+
readonly statusCode: number | undefined;
|
|
4286
|
+
readonly category: GraphQLRequestErrorCategory;
|
|
4287
|
+
/**
|
|
4288
|
+
* One entry per error the response carried, in order, holding its
|
|
4289
|
+
* `extensions.code` - undefined where it declared none. Kept per error rather
|
|
4290
|
+
* than as a set, because a response that mixes a classified error with an
|
|
4291
|
+
* unclassified one must not be read as if only the classified one arrived.
|
|
4292
|
+
*/
|
|
4293
|
+
readonly codes: readonly (string | undefined)[];
|
|
4294
|
+
constructor(message: string, category: GraphQLRequestErrorCategory, statusCode?: number, codes?: readonly (string | undefined)[]);
|
|
4295
|
+
}
|
|
4296
|
+
/**
|
|
4297
|
+
* Extension codes a remote uses to say a failure is worth polling through.
|
|
4298
|
+
*
|
|
4299
|
+
* Shared with reactor-api so the server throws what this check reads and the two
|
|
4300
|
+
* cannot drift. A `graphql` category error is otherwise permanent: it stops the
|
|
4301
|
+
* poll timer, and nothing restarts it, so a code that lands here is the
|
|
4302
|
+
* difference between a channel that recovers and one that is dead for the
|
|
4303
|
+
* process lifetime.
|
|
4304
|
+
*/
|
|
4305
|
+
declare const RECOVERABLE_GRAPHQL_ERROR_CODES: {
|
|
4306
|
+
/**
|
|
4307
|
+
* A stored operation cannot be represented in the schema - an action with no
|
|
4308
|
+
* id, say. The document holding it needs repairing, but the channel serves
|
|
4309
|
+
* every other document, and a peer that stopped polling would stop receiving
|
|
4310
|
+
* those too.
|
|
4311
|
+
*/
|
|
4312
|
+
readonly malformedStoredOperation: "MALFORMED_STORED_OPERATION";
|
|
4313
|
+
};
|
|
4314
|
+
/**
|
|
4315
|
+
* True when every error the response carried named a recoverable code.
|
|
4316
|
+
*
|
|
4317
|
+
* Unanimity is the requirement: one unclassified error alongside a recoverable
|
|
4318
|
+
* one means something else also went wrong, and polling through that would be
|
|
4319
|
+
* guessing.
|
|
4320
|
+
*/
|
|
4321
|
+
declare function isRecoverableGraphQLError(error: GraphQLRequestError): boolean;
|
|
4251
4322
|
/** Auth-rejection message fragments the switchboard emits. Shared with
|
|
4252
4323
|
* reactor-api so server throws and this client check can't drift. */
|
|
4253
4324
|
declare const DRIVE_AUTH_ERROR_MESSAGES: {
|
|
@@ -4536,6 +4607,19 @@ interface ISyncManager {
|
|
|
4536
4607
|
* @throws Error if a remote with this name already exists
|
|
4537
4608
|
*/
|
|
4538
4609
|
add(name: string, collectionId: DriveCollectionId, channelConfig: ChannelConfig, filter?: RemoteFilter, options?: RemoteOptions, id?: string): Promise<Remote>;
|
|
4610
|
+
/**
|
|
4611
|
+
* Binds a remote to an address, so only that address may poll it.
|
|
4612
|
+
*
|
|
4613
|
+
* This is adoption, not configuration: a channel created anonymously is
|
|
4614
|
+
* unbound and serves whatever an anonymous subject may read, and the first
|
|
4615
|
+
* authenticated subject to poll it claims it. Binding an already-bound remote
|
|
4616
|
+
* to a different address is refused rather than allowed to steal it.
|
|
4617
|
+
*
|
|
4618
|
+
* @param id - The id of the remote to bind
|
|
4619
|
+
* @param boundAddress - The address that henceforth owns the channel
|
|
4620
|
+
* @throws Error if the remote does not exist, or is bound to another address
|
|
4621
|
+
*/
|
|
4622
|
+
bindRemote(id: string, boundAddress: string): Promise<void>;
|
|
4539
4623
|
/**
|
|
4540
4624
|
* Triggers a one-shot pull for the named remote. Useful for Manual poll-behavior
|
|
4541
4625
|
* remotes, where the channel is registered but does not poll on a schedule.
|
|
@@ -5256,6 +5340,7 @@ declare class SyncBuilder {
|
|
|
5256
5340
|
withDeadLetterStorage(storage: ISyncDeadLetterStorage): this;
|
|
5257
5341
|
withMaxDeadLettersPerRemote(limit: number): this;
|
|
5258
5342
|
withMaxInboxBatchSize(limit: number): this;
|
|
5343
|
+
withMaxHeldOperationsPerRemote(limit: number): this;
|
|
5259
5344
|
build(reactor: IReactor, logger: ILogger, operationIndex: IOperationIndex, eventBus: IEventBus, db: Kysely<Database$1>, driveContainerTypes: ReadonlySet<string>): ISyncManager;
|
|
5260
5345
|
buildModule(reactor: IReactor, logger: ILogger, operationIndex: IOperationIndex, eventBus: IEventBus, db: Kysely<Database$1>, driveContainerTypes: ReadonlySet<string>): InProcessSyncModule;
|
|
5261
5346
|
}
|
|
@@ -5874,7 +5959,7 @@ declare class SimpleJobExecutorManager implements IJobExecutorManager {
|
|
|
5874
5959
|
private deferredJobs;
|
|
5875
5960
|
private resultHandler;
|
|
5876
5961
|
private jobTimeoutMs;
|
|
5877
|
-
constructor(executorFactory: JobExecutorFactory, eventBus: IEventBus, queue: IQueue, jobTracker: IJobTracker, logger: ILogger, resolver: IDocumentModelResolver, jobTimeoutMs?: number);
|
|
5962
|
+
constructor(executorFactory: JobExecutorFactory, eventBus: IEventBus, queue: IQueue, jobTracker: IJobTracker, logger: ILogger, resolver: IDocumentModelResolver, jobTimeoutMs?: number, deferredJobTtlMs?: number);
|
|
5878
5963
|
start(numExecutors: number): Promise<void>;
|
|
5879
5964
|
stop(graceful?: boolean): Promise<void>;
|
|
5880
5965
|
getExecutors(): IJobExecutor[];
|
|
@@ -5882,7 +5967,6 @@ declare class SimpleJobExecutorManager implements IJobExecutorManager {
|
|
|
5882
5967
|
private processNextJob;
|
|
5883
5968
|
private checkForMoreJobs;
|
|
5884
5969
|
private processExistingJobs;
|
|
5885
|
-
private flushDeferredJobs;
|
|
5886
5970
|
}
|
|
5887
5971
|
//#endregion
|
|
5888
5972
|
//#region src/executor/simple-job-executor.d.ts
|
|
@@ -6062,6 +6146,35 @@ type AuthDecisionModel = {
|
|
|
6062
6146
|
/** This decision model uses both the document and the auth streams. */
|
|
6063
6147
|
declare function authDecisionModel(target: DecisionTarget): DecisionModel<AuthDecisionModel>;
|
|
6064
6148
|
//#endregion
|
|
6149
|
+
//#region src/decision/sync-scope-gate.d.ts
|
|
6150
|
+
/**
|
|
6151
|
+
* A read gate asked by document id rather than by document.
|
|
6152
|
+
*
|
|
6153
|
+
* Serving works from an id: an outbox entry names a document, a branch and a
|
|
6154
|
+
* scope, and carries no state. Fetching the document is therefore the serving
|
|
6155
|
+
* path's own job, and it is the only thing this adds to the gate it wraps.
|
|
6156
|
+
*/
|
|
6157
|
+
declare class SyncScopeGate {
|
|
6158
|
+
private readonly gate;
|
|
6159
|
+
private readonly documentView;
|
|
6160
|
+
private readonly logger?;
|
|
6161
|
+
constructor(gate: IReadGate, documentView: IDocumentView, logger?: ILogger | undefined);
|
|
6162
|
+
/**
|
|
6163
|
+
* Which scopes of one document the subject may be served.
|
|
6164
|
+
*
|
|
6165
|
+
* A document this replica cannot produce yields the metadata scopes and
|
|
6166
|
+
* nothing else. That is the fail-closed direction, and it is safe to fail
|
|
6167
|
+
* closed here precisely because serving withholds rather than consumes: the
|
|
6168
|
+
* entry stays in the outbox and the next poll asks again, so a document that
|
|
6169
|
+
* is merely not indexed yet is delayed rather than lost.
|
|
6170
|
+
*
|
|
6171
|
+
* Any other failure is rethrown. A read side that is down must not read as a
|
|
6172
|
+
* silent, universal denial, because a denial that looks like a policy is one
|
|
6173
|
+
* nobody investigates.
|
|
6174
|
+
*/
|
|
6175
|
+
scopePredicateById(documentId: string, subject: AuthSubject, branch: string, signal?: AbortSignal): Promise<(scope: string) => boolean>;
|
|
6176
|
+
}
|
|
6177
|
+
//#endregion
|
|
6065
6178
|
//#region src/decision/stream-order.d.ts
|
|
6066
6179
|
/** Where a stream's stored order contradicts its timestamps. */
|
|
6067
6180
|
type OutOfOrderPair = {
|
|
@@ -6243,7 +6356,13 @@ declare class KyselyDocumentView extends BaseReadModel implements IDocumentView
|
|
|
6243
6356
|
//#endregion
|
|
6244
6357
|
//#region src/storage/migrations/migrator.d.ts
|
|
6245
6358
|
declare const REACTOR_SCHEMA = "reactor";
|
|
6246
|
-
|
|
6359
|
+
/**
|
|
6360
|
+
* Applies every pending migration, or every one up to and including `upTo`.
|
|
6361
|
+
*
|
|
6362
|
+
* The bound exists so a test can reach the schema a data migration is written
|
|
6363
|
+
* against, populate it, and then migrate across the migration under test.
|
|
6364
|
+
*/
|
|
6365
|
+
declare function runMigrations(db: Kysely<any>, schema?: string, upTo?: string): Promise<MigrationResult>;
|
|
6247
6366
|
declare function getMigrationStatus(db: Kysely<any>, schema?: string): Promise<readonly kysely.MigrationInfo[]>;
|
|
6248
6367
|
//#endregion
|
|
6249
6368
|
//#region src/storage/kysely/sync-cursor-storage.d.ts
|
|
@@ -6481,6 +6600,8 @@ declare class GqlResponseChannel implements IChannel {
|
|
|
6481
6600
|
private isShutdown;
|
|
6482
6601
|
private lastPersistedInboxOrdinal;
|
|
6483
6602
|
private lastPersistedOutboxOrdinal;
|
|
6603
|
+
private evictedOutboxFloor;
|
|
6604
|
+
private appliedOutboxOrdinal;
|
|
6484
6605
|
private connectionState;
|
|
6485
6606
|
private readonly connectionStateCallbacks;
|
|
6486
6607
|
constructor(logger: ILogger, channelId: string, remoteName: string, cursorStorage: ISyncCursorStorage);
|
|
@@ -6489,8 +6610,35 @@ declare class GqlResponseChannel implements IChannel {
|
|
|
6489
6610
|
onConnectionStateChange(callback: ConnectionStateChangeCallback): () => void;
|
|
6490
6611
|
/** Response channels are push-driven; resolvers populate mailboxes directly. */
|
|
6491
6612
|
triggerPull(): void;
|
|
6492
|
-
private transitionConnectionState;
|
|
6493
6613
|
init(): Promise<void>;
|
|
6614
|
+
private transitionConnectionState;
|
|
6615
|
+
/**
|
|
6616
|
+
* Records the ordinals of entries that left the outbox without being served,
|
|
6617
|
+
* so the cursor cannot advance past them.
|
|
6618
|
+
*
|
|
6619
|
+
* An entry can leave unserved because a bound evicted it, and an evicted entry
|
|
6620
|
+
* is exactly one this channel intends to re-derive: it is still owed to the
|
|
6621
|
+
* remote. Remembering the floor across the whole run rather than only while
|
|
6622
|
+
* the entry is present is what makes that true after a later ack would
|
|
6623
|
+
* otherwise have swept the cursor past it.
|
|
6624
|
+
*/
|
|
6625
|
+
private rememberUnserved;
|
|
6626
|
+
/**
|
|
6627
|
+
* Persists the outbox cursor, never past an operation this remote has not
|
|
6628
|
+
* been served.
|
|
6629
|
+
*
|
|
6630
|
+
* The cursor is where a restart resumes deriving the outbox from, so an
|
|
6631
|
+
* ordinal persisted past an unserved entry loses that entry for good: the
|
|
6632
|
+
* rebuild starts beyond it and nothing else remembers it was owed. Acks
|
|
6633
|
+
* arrive out of order with respect to what is withheld -- a later entry can
|
|
6634
|
+
* be acknowledged while an earlier one is still being withheld from this
|
|
6635
|
+
* subject -- so the applied high-water mark alone is not a safe cursor.
|
|
6636
|
+
*/
|
|
6637
|
+
private persistOutboxCursor;
|
|
6638
|
+
/** Drops the evicted floor once the entries it stood for are queued again. */
|
|
6639
|
+
private forgetEvictedBelow;
|
|
6640
|
+
/** The lowest ordinal still owed to this remote, evicted or still queued. */
|
|
6641
|
+
private unservedFloor;
|
|
6494
6642
|
}
|
|
6495
6643
|
//#endregion
|
|
6496
6644
|
//#region src/sync/channels/interval-poll-timer.d.ts
|
|
@@ -6696,5 +6844,5 @@ declare class ProcessorManager extends BaseReadModel implements IProcessorManage
|
|
|
6696
6844
|
private deleteProcessorCursors;
|
|
6697
6845
|
}
|
|
6698
6846
|
//#endregion
|
|
6699
|
-
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, DRIVE_AUTH_ERROR_MESSAGES, type Database, type DbConfig, type DeadLetterAddedEvent, type DecisionContext, type DecisionModel, type DecisionTarget, DefaultSubscriptionErrorHandler, type DocumentChangeEvent, DocumentChangeType, type DocumentDecisionModel, 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 IProcessorHostModule, type IProcessorManager, type IProjectionTransport, type IQueue, type IReactor, type IReactorClient, 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, Reactor, ReactorBuilder, ReactorClient, ReactorClientBuilder, type ReactorClientModule, ReactorEventTypes, type ReactorFeatureFlags, type ReactorFeatures, type JobFailedEvent$1 as ReactorJobFailedEvent, type ReactorModule, ReactorSubscriptionManager, 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, 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, createRelationalDb, decideAtHead, deleteDocumentAction, documentActions, documentDecisionModel, driveIdFromUrl, envelopesToSyncOperations, errorToInfo, firstOutOfOrderPair, getMigrationStatus, instrumentPgPool, isDriveAuthError, makeConsistencyKey, parseDriveUrl, parsePagingOptions, quarantinesDocument, readDecisionModel, removeRelationshipAction, runMigrations, sanitizeArg, selectDecisionModel, supportsLiveReadModelRegistration, syncOperationErrorType, trimMailboxFromAckOrdinal, updateRelationshipAction, upgradeDocumentAction, workerEntryPath };
|
|
6847
|
+
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, DRIVE_AUTH_ERROR_MESSAGES, type Database, type DbConfig, type DeadLetterAddedEvent, type DecisionContext, type DecisionModel, type DecisionTarget, DefaultSubscriptionErrorHandler, type DocumentChangeEvent, DocumentChangeType, type DocumentDecisionModel, 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 IProcessorHostModule, type IProcessorManager, type IProjectionTransport, type IQueue, type IReactor, type IReactorClient, 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 JobFailedEvent$1 as ReactorJobFailedEvent, type ReactorModule, 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, 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 };
|
|
6700
6848
|
//# sourceMappingURL=index.d.ts.map
|