@spine-event-engine/server 2.0.0-snapshot.14 → 2.0.0-snapshot.16

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.
Files changed (52) hide show
  1. package/README.md +53 -0
  2. package/REFERENCE.md +146 -23
  3. package/dist/context/bounded-context.d.ts +131 -20
  4. package/dist/context/bounded-context.d.ts.map +1 -1
  5. package/dist/context/bounded-context.js +647 -48
  6. package/dist/context/bounded-context.js.map +1 -1
  7. package/dist/entity/entity-metadata.d.ts +12 -3
  8. package/dist/entity/entity-metadata.d.ts.map +1 -1
  9. package/dist/entity/entity-metadata.js +37 -1
  10. package/dist/entity/entity-metadata.js.map +1 -1
  11. package/dist/entity/entity-transaction.d.ts +46 -42
  12. package/dist/entity/entity-transaction.d.ts.map +1 -1
  13. package/dist/entity/entity-transaction.js +130 -35
  14. package/dist/entity/entity-transaction.js.map +1 -1
  15. package/dist/entity/entity.d.ts +138 -100
  16. package/dist/entity/entity.d.ts.map +1 -1
  17. package/dist/entity/entity.js +217 -227
  18. package/dist/entity/entity.js.map +1 -1
  19. package/dist/handler/event-registration-readiness.d.ts +13 -56
  20. package/dist/handler/event-registration-readiness.d.ts.map +1 -1
  21. package/dist/handler/event-registration-readiness.js +23 -43
  22. package/dist/handler/event-registration-readiness.js.map +1 -1
  23. package/dist/handler/generated-handler-registry.d.ts +8 -0
  24. package/dist/handler/generated-handler-registry.d.ts.map +1 -1
  25. package/dist/handler/generated-handler-registry.js +165 -3
  26. package/dist/handler/generated-handler-registry.js.map +1 -1
  27. package/dist/handler/handler-decorators.d.ts +70 -33
  28. package/dist/handler/handler-decorators.d.ts.map +1 -1
  29. package/dist/handler/handler-decorators.js +88 -31
  30. package/dist/handler/handler-decorators.js.map +1 -1
  31. package/dist/handler/handler-metadata.d.ts +53 -51
  32. package/dist/handler/handler-metadata.d.ts.map +1 -1
  33. package/dist/handler/handler-metadata.js +214 -42
  34. package/dist/handler/handler-metadata.js.map +1 -1
  35. package/dist/handler/registration-readiness-metadata.d.ts +4 -0
  36. package/dist/handler/registration-readiness-metadata.d.ts.map +1 -1
  37. package/dist/handler/registration-readiness-metadata.js +82 -1
  38. package/dist/handler/registration-readiness-metadata.js.map +1 -1
  39. package/dist/index.d.ts +4 -4
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/index.js.map +1 -1
  43. package/dist/repository/repository.d.ts +217 -70
  44. package/dist/repository/repository.d.ts.map +1 -1
  45. package/dist/repository/repository.js +2728 -354
  46. package/dist/repository/repository.js.map +1 -1
  47. package/dist/runtime/standalone-handler-runtime.d.ts +16 -0
  48. package/dist/runtime/standalone-handler-runtime.d.ts.map +1 -1
  49. package/dist/runtime/standalone-handler-runtime.js +93 -18
  50. package/dist/runtime/standalone-handler-runtime.js.map +1 -1
  51. package/dist/tsconfig.tsbuildinfo +1 -1
  52. package/package.json +12 -12
@@ -2,15 +2,30 @@ import { type Message, type MessageShape } from "@bufbuild/protobuf";
2
2
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
3
  import { type EntityColumn, type EntityColumnOperator, type EntityQueryMaskPath, type EntityQueryIdentifier, type EntityQueryPredicateFor, type EntityPredicate, type EntityQueryBuilder } from "@spine-event-engine/core";
4
4
  import type { EntityQueryPlan } from "@spine-event-engine/core/spi/entity-query-plan";
5
- import { type ConstraintViolation, type Event, type ActorContext } from "@spine-event-engine/proto";
5
+ import { type ConstraintViolation, type Event, type Version, type ActorContext } from "@spine-event-engine/proto";
6
6
  import type { Query } from "@spine-event-engine/proto/client";
7
7
  import type { EntityEventStorage, EntityStateHistoryStorage } from "@spine-event-engine/storage";
8
8
  import { type DescriptorMessageSchema, type EntityMetadata } from "./entity-metadata.js";
9
- import { type EntityTransactionCommitResult, type EntityTransactionLifecycleFlags, type EntityTransactionRejectedCommit, type EntityTransactionRollbackResult, type EntityTransactionMutator, type EntityTransactionVersionMetadata } from "./entity-transaction.js";
9
+ import { type EntityTransactionCommitResult, type EntityTransactionLifecycleFlags, type EntityTransactionRejectedCommit, type EntityTransactionRollbackResult, type EntityTransactionMutator } from "./entity-transaction.js";
10
+ /**
11
+ * Descriptor-backed columns available to a Process Manager query.
12
+ *
13
+ * @typeParam Schema State schema containing the queried columns.
14
+ */
10
15
  type ProcessManagerQueryColumns<Schema extends DescriptorMessageSchema> = Readonly<Record<string, EntityColumn<Schema>>>;
16
+ /**
17
+ * Reads states using the invoking handler's actor and tenant.
18
+ *
19
+ * @typeParam Schema State schema selected by the query.
20
+ * @param plan Compiled filters and ordering for the query.
21
+ * @param schema Generated schema used to decode matching states.
22
+ * @param query Query message carrying the actor and selected state fields.
23
+ * @returns Matching state snapshots from the read side.
24
+ */
25
+ type ProcessManagerQueryExecutor = <Schema extends DescriptorMessageSchema>(plan: EntityQueryPlan, schema: Schema, query: Query) => Promise<readonly MessageShape<Schema>[]>;
11
26
  interface ProcessManagerQueryCapability {
12
27
  readonly actorContext: ActorContext;
13
- readonly execute: <Schema extends DescriptorMessageSchema>(plan: EntityQueryPlan, schema: Schema, query: Query) => Promise<readonly MessageShape<Schema>[]>;
28
+ readonly execute: ProcessManagerQueryExecutor;
14
29
  active: boolean;
15
30
  }
16
31
  /**
@@ -34,7 +49,7 @@ export declare class ProcessManagerQuery<Schema extends DescriptorMessageSchema,
34
49
  * Creates the repository-scoped query facade.
35
50
  *
36
51
  * @internal
37
- * @param entity Process Manager that owns this query capability.
52
+ * @param entity Process Manager using this query capability.
38
53
  * @param schema State schema read by this query.
39
54
  * @param builder Typed query builder used to create the wire query.
40
55
  */
@@ -49,6 +64,7 @@ export declare class ProcessManagerQuery<Schema extends DescriptorMessageSchema,
49
64
  /**
50
65
  * Adds a typed state predicate to the query.
51
66
  *
67
+ * @typeParam Predicate Comparison supported by the registered columns.
52
68
  * @param predicate Predicate evaluated against registered state columns.
53
69
  * @returns This query for fluent configuration.
54
70
  */
@@ -63,6 +79,7 @@ export declare class ProcessManagerQuery<Schema extends DescriptorMessageSchema,
63
79
  /**
64
80
  * Sets the ordering for matching states by one registered column.
65
81
  *
82
+ * @typeParam Column Registered column supplying the ordered values.
66
83
  * @param column Registered orderable column used for sorting.
67
84
  * @param direction Optional sort direction, ascending by default.
68
85
  * @returns This query for fluent configuration.
@@ -99,7 +116,7 @@ export declare class ProcessManagerQuery<Schema extends DescriptorMessageSchema,
99
116
  all(): Promise<readonly MessageShape<Schema>[]>;
100
117
  }
101
118
  /**
102
- * Lifecycle flags carried by a common entity shell.
119
+ * Whether an Entity has been archived or deleted.
103
120
  */
104
121
  export interface EntityLifecycleFlags {
105
122
  /**
@@ -118,7 +135,7 @@ export type EntityScopeReason = "duplicate" | "missing";
118
135
  /**
119
136
  * Protected {@link TransactionalEntity} operation guarded by transaction scope.
120
137
  */
121
- export type TransactionalEntityScopeOperation = "archiveDraft" | "commitTransaction" | "currentDraft" | "draftLifecycleFlags" | "draftVersionMetadata" | "markDraftDeleted" | "restoreDraft" | "rollbackTransaction" | "startTransaction" | "unarchiveDraft" | "tryUpdate" | "update" | "updateDraftVersionMetadata";
138
+ export type TransactionalEntityScopeOperation = "archiveDraft" | "commitTransaction" | "currentDraft" | "draftLifecycleFlags" | "markDraftDeleted" | "restoreDraft" | "rollbackTransaction" | "startTransaction" | "unarchiveDraft" | "tryUpdate" | "update";
122
139
  /**
123
140
  * Error thrown when a transactional entity draft helper is used outside its scope.
124
141
  */
@@ -139,26 +156,15 @@ export declare class TransactionalEntityScopeError extends Error {
139
156
  */
140
157
  constructor(reason: EntityScopeReason, operation: TransactionalEntityScopeOperation);
141
158
  }
142
- type EntityVersionMetadataPrimitive = string | number | boolean | bigint | symbol | null | undefined;
143
- /**
144
- * Plain snapshot data accepted as caller-owned entity version metadata.
145
- */
146
- export type EntityVersionMetadata = EntityVersionMetadataPrimitive | readonly EntityVersionMetadata[] | object;
147
- type NonPlainVersion = Date | RegExp | Error | Promise<unknown> | Map<unknown, unknown> | Set<unknown> | WeakMap<object, unknown> | WeakSet<object> | ArrayBuffer | SharedArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
148
- /**
149
- * Recursive type-level validator for caller-owned plain entity version metadata.
150
- */
151
- export type PlainEntityVersionMetadata<Version> = PlainVersionAtDepth<Version, []>;
152
- type PlainVersionAtDepth<Version, Depth extends readonly unknown[]> = Depth["length"] extends 20 ? EntityVersionMetadata : Version extends EntityVersionMetadataPrimitive ? Version : Version extends (...args: never[]) => unknown ? never : Version extends NonPlainVersion ? never : Version extends readonly (infer Element)[] ? readonly PlainVersionAtDepth<Element, readonly [unknown, ...Depth]>[] : Version extends object ? {
153
- readonly [Key in keyof Version]: PlainVersionAtDepth<Version[Key], readonly [unknown, ...Depth]>;
154
- } : never;
155
- type EntityVersionMetadataInput<Version> = [Version] extends [EntityVersionMetadata] ? [EntityVersionMetadata] extends [Version] ? Version : PlainEntityVersionMetadata<Version> : PlainEntityVersionMetadata<Version>;
156
159
  /**
157
160
  * Initial values for constructing an {@link Entity}.
161
+ *
162
+ * @typeParam Id Domain identifier type.
163
+ * @typeParam Schema Generated schema describing the Entity state.
158
164
  */
159
- export interface EntityOptions<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> {
165
+ export interface EntityOptions<Id, Schema extends DescriptorMessageSchema> {
160
166
  /**
161
- * Stable entity identifier owned by the caller/domain type.
167
+ * Stable domain identifier for the Entity.
162
168
  */
163
169
  readonly id: Id;
164
170
  /**
@@ -170,43 +176,40 @@ export interface EntityOptions<Id, Schema extends DescriptorMessageSchema, Versi
170
176
  */
171
177
  readonly state: MessageShape<Schema>;
172
178
  /**
173
- * Caller-owned plain version metadata snapshot.
179
+ * Restored Spine Version; fresh Entities start at zero.
174
180
  */
175
- readonly version: EntityVersionMetadataInput<Version>;
181
+ readonly version?: Version;
176
182
  /**
177
183
  * Initial lifecycle flags. Defaults to active, not deleted.
178
184
  */
179
185
  readonly lifecycle?: Partial<EntityLifecycleFlags>;
180
186
  }
181
187
  /**
182
- * Public entity family marker exposed by Spine server entity base classes.
188
+ * The three kinds of Entity supported by server repositories.
183
189
  */
184
190
  export type EntityFamily = "aggregate" | "projection" | "process-manager";
185
191
  /**
186
- * Common in-memory OOP shell for one server-side entity state.
192
+ * Identity, state, version, and lifecycle of one server-side Entity.
193
+ *
194
+ * Keeps the Entity ID, state schema, state, Spine Version, and lifecycle flags.
195
+ * State and Version accessors return copies, and lifecycle access returns a
196
+ * separate flag object. Repositories run handlers and manage storage.
187
197
  *
188
- * The shell exposes identity, descriptor-derived metadata, cloned state
189
- * snapshots, caller-owned plain version metadata snapshots, and lifecycle flags. It does not
190
- * invoke handlers, create transactions, write repositories or storage, dispatch
191
- * messages, increment versions, route IDs, query read models, start buses, or
192
- * mutate process-wide runtime state.
198
+ * @typeParam Id Domain identifier type.
199
+ * @typeParam Schema Generated schema describing the Entity state.
193
200
  */
194
- export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> {
201
+ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema> {
195
202
  #private;
196
203
  /**
197
- * @hidden
198
- */
199
- protected static readonly spineTsEntityConstructor: true;
200
- /**
201
- * Creates an entity shell from caller-provided state and metadata inputs.
204
+ * Initializes an Entity from its ID, schema, state, Version, and lifecycle flags.
202
205
  *
203
206
  * @param options Identity, schema, state, version, and lifecycle inputs.
204
207
  */
205
- constructor(options: EntityOptions<Id, Schema, Version>);
208
+ constructor(options: EntityOptions<Id, Schema>);
206
209
  /**
207
210
  * Gets the stable entity identifier.
208
211
  *
209
- * @returns The caller-owned entity identifier.
212
+ * @returns The domain identifier supplied during construction.
210
213
  */
211
214
  get id(): Id;
212
215
  /**
@@ -228,9 +231,9 @@ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema,
228
231
  */
229
232
  get state(): MessageShape<Schema>;
230
233
  /**
231
- * Gets the caller-owned plain version metadata snapshot.
234
+ * Gets the current Spine Version without exposing the stored message.
232
235
  *
233
- * @returns A validated clone of the version metadata.
236
+ * @returns A copy of the version number and timestamp.
234
237
  */
235
238
  get version(): Version;
236
239
  /**
@@ -264,19 +267,19 @@ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema,
264
267
  */
265
268
  get lifecycleFlagsChanged(): boolean;
266
269
  /**
267
- * Replaces stored state from framework-owned subclass or runtime code.
270
+ * Replaces stored state when framework transaction code accepts a draft.
268
271
  *
269
272
  * @param state Next entity state snapshot.
270
273
  */
271
274
  protected replaceState(state: MessageShape<Schema>): void;
272
275
  /**
273
- * Replaces caller-owned version metadata from framework-owned subclass or runtime code.
276
+ * Applies the Version calculated by a framework transaction.
274
277
  *
275
- * @param version Next caller-owned version metadata.
278
+ * @param version Accepted version number and timestamp.
276
279
  */
277
- protected replaceVersionMetadata(version: EntityVersionMetadataInput<Version>): void;
280
+ protected replaceVersion(version: Version): void;
278
281
  /**
279
- * Replaces lifecycle flags from framework-owned subclass or runtime code.
282
+ * Applies lifecycle flags accepted by framework transaction code.
280
283
  *
281
284
  * @param lifecycle Lifecycle flag changes to apply.
282
285
  */
@@ -312,11 +315,50 @@ interface BoundEntityHistory {
312
315
  readonly eventMaintenance: EntityEventStorage<unknown>;
313
316
  }
314
317
  interface EntityHistoryAccess {
318
+ /**
319
+ * Attaches repository history access to an Entity instance.
320
+ *
321
+ * @param entity Instance whose retained history will be read.
322
+ * @param binding Repository operations for that Entity's history.
323
+ */
315
324
  bind(entity: object, binding: BoundEntityHistory): void;
325
+ /**
326
+ * Reads the latest retained state at or before a time.
327
+ *
328
+ * @param entity Entity whose state is requested.
329
+ * @param time Latest allowed state timestamp.
330
+ * @returns The retained state, or undefined if no state matches.
331
+ */
316
332
  stateAt(entity: object, time: Timestamp): Promise<unknown>;
333
+ /**
334
+ * Reads retained states in descending version order.
335
+ *
336
+ * @param entity Entity whose history is requested.
337
+ * @param depth Maximum number of states to read.
338
+ * @returns Retained state snapshots, newest first.
339
+ */
317
340
  states(entity: object, depth: number): Promise<readonly unknown[]>;
341
+ /**
342
+ * Reads retained diagnostic Events, newest producer version first.
343
+ *
344
+ * @param entity Entity that produced the Events.
345
+ * @param depth Maximum number of Events to read.
346
+ * @returns Retained diagnostic Events.
347
+ */
318
348
  events(entity: object, depth: number): Promise<readonly Readonly<Event>[]>;
349
+ /**
350
+ * Gets the repository's state-history storage for retention operations.
351
+ *
352
+ * @param entity Entity whose history is maintained.
353
+ * @returns The state-history storage bound to that Entity.
354
+ */
319
355
  stateMaintenance(entity: object): EntityStateHistoryStorage<unknown, Message>;
356
+ /**
357
+ * Gets the repository's diagnostic Event storage for retention operations.
358
+ *
359
+ * @param entity Entity whose diagnostic Events are maintained.
360
+ * @returns The Event-history storage bound to that Entity.
361
+ */
320
362
  eventMaintenance(entity: object): EntityEventStorage<unknown>;
321
363
  }
322
364
  /**
@@ -326,18 +368,17 @@ interface EntityHistoryAccess {
326
368
  */
327
369
  export declare const entityHistoryAccess: EntityHistoryAccess;
328
370
  /**
329
- * Common in-memory entity shell with a protected scoped transaction draft.
371
+ * Entity base with one active transaction draft.
372
+ *
373
+ * Repository dispatch starts and finishes each transaction. Entity handlers
374
+ * change the draft state or lifecycle through protected helpers. A successful
375
+ * commit updates state, Spine Version, and lifecycle flags. A rejected commit
376
+ * leaves the draft active until the framework rolls it back.
330
377
  *
331
- * The transaction scope is backed by {@link EntityTransaction}. Subclasses can
332
- * start one active draft, mutate draft state/version/lifecycle through protected
333
- * helpers, and then commit or roll back the scope. Accepted commits replace this
334
- * entity's in-memory state, explicit version metadata, and lifecycle flags.
335
- * Rejected commits leave the transaction active so subclass code can correct the
336
- * draft or roll it back explicitly. This base does not write repositories,
337
- * emit events, dispatch handlers, increment versions, or manage global
338
- * transaction state.
378
+ * @typeParam Id Domain identifier type.
379
+ * @typeParam Schema Generated schema describing the Entity state.
339
380
  */
340
- export declare abstract class TransactionalEntity<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends Entity<Id, Schema, Version> {
381
+ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorMessageSchema> extends Entity<Id, Schema> {
341
382
  #private;
342
383
  /**
343
384
  * Determines whether accepted transaction state or lifecycle changes are visible.
@@ -364,13 +405,6 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
364
405
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
365
406
  */
366
407
  protected currentDraft(): MessageShape<Schema>;
367
- /**
368
- * Gets the current draft version metadata snapshot.
369
- *
370
- * @returns Cloned previous and draft version metadata.
371
- * @throws {@link TransactionalEntityScopeError} when no transaction is active.
372
- */
373
- protected draftVersionMetadata(): EntityTransactionVersionMetadata<Version>;
374
408
  /**
375
409
  * Gets the current draft lifecycle flag snapshot.
376
410
  *
@@ -397,14 +431,6 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
397
431
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
398
432
  */
399
433
  protected tryUpdate(mutator: EntityTransactionMutator<Schema>): readonly ConstraintViolation[];
400
- /**
401
- * Updates the buffered draft version metadata without computing version increments.
402
- *
403
- * @param draft Caller-owned version metadata for the active draft.
404
- * @returns Cloned previous and draft version metadata.
405
- * @throws {@link TransactionalEntityScopeError} when no transaction is active.
406
- */
407
- protected updateDraftVersionMetadata(draft: EntityVersionMetadataInput<Version>): EntityTransactionVersionMetadata<Version>;
408
434
  /**
409
435
  * Marks the buffered draft lifecycle as archived.
410
436
  *
@@ -436,41 +462,43 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
436
462
  /**
437
463
  * Commits the active draft transaction.
438
464
  *
439
- * Accepted commits apply state, version metadata, and lifecycle flags to this
465
+ * Accepted commits apply state, Spine Version, and lifecycle flags to this
440
466
  * entity and close the transaction. Rejected commits do not apply anything and
441
467
  * keep the transaction active for correction or explicit rollback.
442
468
  *
469
+ * @param producedEvents Whether handling returned Events, requiring a version advance.
443
470
  * @returns A cloned accepted or rejected transaction result.
444
471
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
445
472
  */
446
- protected commitTransaction(): EntityTransactionCommitResult<Schema, Version>;
473
+ protected commitTransaction(producedEvents?: boolean): EntityTransactionCommitResult<Schema>;
447
474
  /**
448
475
  * Rolls back the active draft without applying state, version, or lifecycle changes.
449
476
  *
450
477
  * @returns A cloned rollback result containing the discarded draft snapshots.
451
478
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
452
479
  */
453
- protected rollbackTransaction(): EntityTransactionRollbackResult<Schema, Version>;
480
+ protected rollbackTransaction(): EntityTransactionRollbackResult<Schema>;
454
481
  }
455
482
  /**
456
483
  * Framework-only transaction operations used by repository execution.
457
484
  */
458
485
  export interface TransactionalEntityAccess {
459
486
  /**
460
- * Starts a framework-owned transaction scope for an entity.
487
+ * Starts a transaction scope for repository execution.
461
488
  *
462
489
  * @param entity Transactional entity object to start.
463
490
  */
464
491
  start(entity: object): void;
465
492
  /**
466
- * Executes a framework-owned transaction commit for an entity.
493
+ * Commits the transaction after repository handler execution.
467
494
  *
468
495
  * @param entity Transactional entity object to commit.
496
+ * @param producedEvents Whether the handler returned Events.
469
497
  * @returns The transaction commit result.
470
498
  */
471
- commit(entity: object): EntityTransactionCommitResult<DescriptorMessageSchema>;
499
+ commit(entity: object, producedEvents?: boolean): EntityTransactionCommitResult<DescriptorMessageSchema>;
472
500
  /**
473
- * Executes a framework-owned transaction rollback for an entity, if possible.
501
+ * Rolls back the Entity's active transaction, if one exists.
474
502
  *
475
503
  * @param entity Transactional entity object to roll back.
476
504
  */
@@ -490,24 +518,26 @@ export interface TransactionalEntityAccess {
490
518
  */
491
519
  export declare const transactionalEntityAccess: TransactionalEntityAccess;
492
520
  /**
493
- * Abstract aggregate family marker over the common transactional entity shell.
521
+ * Base class for Aggregates with transactional state and Event-history access.
522
+ *
523
+ * Provides Aggregate family identity and protected repository-backed history
524
+ * methods. Repositories and bounded contexts handle dispatch, persistence, and
525
+ * Event publication; application handlers change state through draft helpers.
494
526
  *
495
- * This class intentionally adds only stable family identity. It does not add
496
- * command dispatch, snapshots, repositories, idempotency guards, or handler
497
- * invocation. Repository-bound diagnostic event-history reads are declared
498
- * below for the Aggregate family.
527
+ * @typeParam Id Domain identifier type.
528
+ * @typeParam Schema Generated schema describing the Aggregate state.
499
529
  */
500
- export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends TransactionalEntity<Id, Schema, Version> {
530
+ export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
501
531
  /**
502
532
  * Stable server entity family identity.
503
533
  */
504
534
  readonly entityFamily: "aggregate";
505
535
  /**
506
- * Creates an aggregate family shell from caller-provided state and metadata inputs.
536
+ * Creates an Aggregate from its identity, state, and metadata.
507
537
  *
508
538
  * @param options Identity, schema, state, version, and lifecycle inputs.
509
539
  */
510
- constructor(options: EntityOptions<Id, Schema, Version>);
540
+ constructor(options: EntityOptions<Id, Schema>);
511
541
  /**
512
542
  * Reads retained diagnostic events in descending producer-version order.
513
543
  *
@@ -531,42 +561,48 @@ export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSche
531
561
  protected eventStorage(): EntityEventStorage<Id>;
532
562
  }
533
563
  /**
534
- * Abstract projection family marker over the common transactional entity shell.
564
+ * Base class for Projections with transactional state.
535
565
  *
536
- * This class intentionally adds only stable family identity. It does not add
537
- * event subscriptions, event playing, repositories, version columns, query
538
- * clients, or handler invocation.
566
+ * Repositories and Bounded Contexts invoke Event handlers and persist state
567
+ * changes with the Projection's Version.
568
+ * Projections do not expose the diagnostic history methods of other families.
569
+ *
570
+ * @typeParam Id Domain identifier type.
571
+ * @typeParam Schema Generated schema describing the Projection state.
539
572
  */
540
- export declare abstract class Projection<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends TransactionalEntity<Id, Schema, Version> {
573
+ export declare abstract class Projection<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
541
574
  /**
542
575
  * Stable server entity family identity.
543
576
  */
544
577
  readonly entityFamily: "projection";
545
578
  /**
546
- * Creates a projection family shell from caller-provided state and metadata inputs.
579
+ * Creates a Projection from its identity, state, and metadata.
547
580
  *
548
581
  * @param options Identity, schema, state, version, and lifecycle inputs.
549
582
  */
550
- constructor(options: EntityOptions<Id, Schema, Version>);
583
+ constructor(options: EntityOptions<Id, Schema>);
551
584
  }
552
585
  /**
553
- * Abstract process manager family marker over the common transactional entity shell.
586
+ * Base class for Process Managers coordinating a workflow through signals.
587
+ *
588
+ * Provides transactional state, protected Event-history access, and
589
+ * handler-scoped Projection reads through `select()`. Repositories and bounded
590
+ * contexts invoke handlers, persist changes, and deliver returned signals.
554
591
  *
555
- * This class adds a protected, handler-scoped, read-only Projection query
556
- * capability. It does not add command posting, repositories, bounded-context
557
- * injection, or handler invocation.
592
+ * @typeParam Id Domain identifier type.
593
+ * @typeParam Schema Generated schema describing the Process Manager state.
558
594
  */
559
- export declare abstract class ProcessManager<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends TransactionalEntity<Id, Schema, Version> {
595
+ export declare abstract class ProcessManager<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
560
596
  /**
561
597
  * Stable server entity family identity.
562
598
  */
563
599
  readonly entityFamily: "process-manager";
564
600
  /**
565
- * Creates a process manager family shell from caller-provided state and metadata inputs.
601
+ * Creates a Process Manager from its identity, state, and metadata.
566
602
  *
567
603
  * @param options Identity, schema, state, version, and lifecycle inputs.
568
604
  */
569
- constructor(options: EntityOptions<Id, Schema, Version>);
605
+ constructor(options: EntityOptions<Id, Schema>);
570
606
  /**
571
607
  * Reads retained diagnostic events when this repository enabled Process Manager event history.
572
608
  *
@@ -595,6 +631,8 @@ export declare abstract class ProcessManager<Id, Schema extends DescriptorMessag
595
631
  * handler. Reads use that signal's actor and tenant; they cannot mutate state
596
632
  * or select a different tenant.
597
633
  *
634
+ * @typeParam QuerySchema Generated Projection state schema to query.
635
+ * @typeParam Columns Descriptor-backed columns available for that schema.
598
636
  * @param schema Projection state schema to query.
599
637
  * @param columns Generated descriptor-backed columns for `schema`.
600
638
  * @returns A read-only Entity query.
@@ -1 +1 @@
1
- {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/entity/entity.ts"],"names":[],"mappings":"AAcA,OAAO,EAA+B,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,KAAK,EAEV,KAAK,YAAY,EAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAEjG,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACtC,MAAM,yBAAyB,CAAC;AAQjC,KAAK,0BAA0B,CAAC,MAAM,SAAS,uBAAuB,IAAI,QAAQ,CAChF,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CACrC,CAAC;AAEF,UAAU,6BAA6B;IACrC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,CAAC,MA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