@spine-event-engine/server 2.0.0-snapshot.2 → 2.0.0-snapshot.21

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 (227) hide show
  1. package/README.md +225 -518
  2. package/REFERENCE.md +498 -49
  3. package/dist/browser/browser-server.d.ts +95 -0
  4. package/dist/browser/browser-server.d.ts.map +1 -0
  5. package/dist/{server → browser}/browser-server.js +93 -7
  6. package/dist/browser/browser-server.js.map +1 -0
  7. package/dist/browser/durable-subscription-bindings.d.ts.map +1 -0
  8. package/dist/browser/durable-subscription-bindings.js.map +1 -0
  9. package/dist/browser/index.d.ts +12 -0
  10. package/dist/browser/index.d.ts.map +1 -0
  11. package/dist/browser/index.js +24 -0
  12. package/dist/browser/index.js.map +1 -0
  13. package/dist/browser/options.d.ts +183 -0
  14. package/dist/browser/options.d.ts.map +1 -0
  15. package/dist/browser/options.js +15 -0
  16. package/dist/browser/options.js.map +1 -0
  17. package/dist/bus/command-bus.d.ts +2 -0
  18. package/dist/bus/command-bus.d.ts.map +1 -1
  19. package/dist/bus/command-bus.js +36 -1
  20. package/dist/bus/command-bus.js.map +1 -1
  21. package/dist/bus/event-dispatcher-registry.d.ts +2 -2
  22. package/dist/bus/event-dispatcher-registry.js +3 -3
  23. package/dist/bus/event-dispatcher-registry.js.map +1 -1
  24. package/dist/context/bounded-context.d.ts +238 -83
  25. package/dist/context/bounded-context.d.ts.map +1 -1
  26. package/dist/context/bounded-context.js +1083 -286
  27. package/dist/context/bounded-context.js.map +1 -1
  28. package/dist/context/effective-tenant.d.ts +9 -0
  29. package/dist/context/effective-tenant.d.ts.map +1 -0
  30. package/dist/context/effective-tenant.js +58 -0
  31. package/dist/context/effective-tenant.js.map +1 -0
  32. package/dist/context/entity-inbox.d.ts.map +1 -1
  33. package/dist/context/entity-inbox.js +24 -17
  34. package/dist/context/entity-inbox.js.map +1 -1
  35. package/dist/context/local-inbox-handoff.d.ts +7 -3
  36. package/dist/context/local-inbox-handoff.d.ts.map +1 -1
  37. package/dist/context/local-inbox-handoff.js +32 -26
  38. package/dist/context/local-inbox-handoff.js.map +1 -1
  39. package/dist/context/projection-handoff.d.ts.map +1 -1
  40. package/dist/context/projection-handoff.js +36 -31
  41. package/dist/context/projection-handoff.js.map +1 -1
  42. package/dist/context/tenant-index.d.ts.map +1 -1
  43. package/dist/context/tenant-index.js +72 -2
  44. package/dist/context/tenant-index.js.map +1 -1
  45. package/dist/delivery/delivery-ports.d.ts +14 -4
  46. package/dist/delivery/delivery-ports.d.ts.map +1 -1
  47. package/dist/delivery/delivery.d.ts +19 -21
  48. package/dist/delivery/delivery.d.ts.map +1 -1
  49. package/dist/delivery/delivery.js +541 -158
  50. package/dist/delivery/delivery.js.map +1 -1
  51. package/dist/delivery/inbox-storage.d.ts +12 -3
  52. package/dist/delivery/inbox-storage.d.ts.map +1 -1
  53. package/dist/delivery/inbox-storage.js +160 -67
  54. package/dist/delivery/inbox-storage.js.map +1 -1
  55. package/dist/delivery/inbox.d.ts +9 -0
  56. package/dist/delivery/inbox.d.ts.map +1 -1
  57. package/dist/delivery/inbox.js +11 -0
  58. package/dist/delivery/inbox.js.map +1 -1
  59. package/dist/delivery/sharded-work-registry.d.ts.map +1 -1
  60. package/dist/delivery/sharded-work-registry.js +2 -1
  61. package/dist/delivery/sharded-work-registry.js.map +1 -1
  62. package/dist/entity/entity-metadata.d.ts +14 -5
  63. package/dist/entity/entity-metadata.d.ts.map +1 -1
  64. package/dist/entity/entity-metadata.js +38 -2
  65. package/dist/entity/entity-metadata.js.map +1 -1
  66. package/dist/entity/entity-storage-descriptor.d.ts +25 -5
  67. package/dist/entity/entity-storage-descriptor.d.ts.map +1 -1
  68. package/dist/entity/entity-storage-descriptor.js +69 -23
  69. package/dist/entity/entity-storage-descriptor.js.map +1 -1
  70. package/dist/entity/entity-transaction.d.ts +46 -42
  71. package/dist/entity/entity-transaction.d.ts.map +1 -1
  72. package/dist/entity/entity-transaction.js +130 -35
  73. package/dist/entity/entity-transaction.js.map +1 -1
  74. package/dist/entity/entity.d.ts +243 -98
  75. package/dist/entity/entity.d.ts.map +1 -1
  76. package/dist/entity/entity.js +405 -226
  77. package/dist/entity/entity.js.map +1 -1
  78. package/dist/entity/spec-scanner.d.ts +13 -1
  79. package/dist/entity/spec-scanner.d.ts.map +1 -1
  80. package/dist/entity/spec-scanner.js +20 -3
  81. package/dist/entity/spec-scanner.js.map +1 -1
  82. package/dist/handler/command-registration-readiness.d.ts +6 -6
  83. package/dist/handler/command-registration-readiness.d.ts.map +1 -1
  84. package/dist/handler/command-registration-readiness.js +4 -2
  85. package/dist/handler/command-registration-readiness.js.map +1 -1
  86. package/dist/handler/declared-rejections.d.ts +11 -0
  87. package/dist/handler/declared-rejections.d.ts.map +1 -0
  88. package/dist/handler/declared-rejections.js +34 -0
  89. package/dist/handler/declared-rejections.js.map +1 -0
  90. package/dist/handler/event-registration-readiness.d.ts +13 -56
  91. package/dist/handler/event-registration-readiness.d.ts.map +1 -1
  92. package/dist/handler/event-registration-readiness.js +23 -43
  93. package/dist/handler/event-registration-readiness.js.map +1 -1
  94. package/dist/handler/generated-handler-registry.d.ts +72 -33
  95. package/dist/handler/generated-handler-registry.d.ts.map +1 -1
  96. package/dist/handler/generated-handler-registry.js +421 -43
  97. package/dist/handler/generated-handler-registry.js.map +1 -1
  98. package/dist/handler/generated-registry-discovery.d.ts.map +1 -1
  99. package/dist/handler/generated-registry-discovery.js +2 -4
  100. package/dist/handler/generated-registry-discovery.js.map +1 -1
  101. package/dist/handler/handler-decorators.d.ts +91 -37
  102. package/dist/handler/handler-decorators.d.ts.map +1 -1
  103. package/dist/handler/handler-decorators.js +124 -31
  104. package/dist/handler/handler-decorators.js.map +1 -1
  105. package/dist/handler/handler-metadata.d.ts +105 -60
  106. package/dist/handler/handler-metadata.d.ts.map +1 -1
  107. package/dist/handler/handler-metadata.js +275 -57
  108. package/dist/handler/handler-metadata.js.map +1 -1
  109. package/dist/handler/registration-readiness-metadata.d.ts +4 -0
  110. package/dist/handler/registration-readiness-metadata.d.ts.map +1 -1
  111. package/dist/handler/registration-readiness-metadata.js +84 -2
  112. package/dist/handler/registration-readiness-metadata.js.map +1 -1
  113. package/dist/handler/standalone.d.ts +25 -0
  114. package/dist/handler/standalone.d.ts.map +1 -0
  115. package/dist/handler/standalone.js +38 -0
  116. package/dist/handler/standalone.js.map +1 -0
  117. package/dist/index.d.ts +9 -9
  118. package/dist/index.d.ts.map +1 -1
  119. package/dist/index.js +3 -3
  120. package/dist/index.js.map +1 -1
  121. package/dist/repository/command-routing.d.ts +63 -10
  122. package/dist/repository/command-routing.d.ts.map +1 -1
  123. package/dist/repository/command-routing.js +41 -8
  124. package/dist/repository/command-routing.js.map +1 -1
  125. package/dist/repository/event-routing.d.ts +64 -9
  126. package/dist/repository/event-routing.d.ts.map +1 -1
  127. package/dist/repository/event-routing.js +42 -7
  128. package/dist/repository/event-routing.js.map +1 -1
  129. package/dist/repository/primitive-id.d.ts +12 -23
  130. package/dist/repository/primitive-id.d.ts.map +1 -1
  131. package/dist/repository/primitive-id.js +2 -27
  132. package/dist/repository/primitive-id.js.map +1 -1
  133. package/dist/repository/repository.d.ts +317 -87
  134. package/dist/repository/repository.d.ts.map +1 -1
  135. package/dist/repository/repository.js +3746 -856
  136. package/dist/repository/repository.js.map +1 -1
  137. package/dist/repository/state-update-routing.d.ts +67 -8
  138. package/dist/repository/state-update-routing.d.ts.map +1 -1
  139. package/dist/repository/state-update-routing.js +45 -6
  140. package/dist/repository/state-update-routing.js.map +1 -1
  141. package/dist/runtime/runtime.js +1 -1
  142. package/dist/runtime/runtime.js.map +1 -1
  143. package/dist/runtime/signal-metadata.d.ts +22 -47
  144. package/dist/runtime/signal-metadata.d.ts.map +1 -1
  145. package/dist/runtime/signal-metadata.js +34 -69
  146. package/dist/runtime/signal-metadata.js.map +1 -1
  147. package/dist/runtime/signal-publisher.d.ts +144 -0
  148. package/dist/runtime/signal-publisher.d.ts.map +1 -0
  149. package/dist/runtime/signal-publisher.js +248 -0
  150. package/dist/runtime/signal-publisher.js.map +1 -0
  151. package/dist/runtime/standalone-handler-runtime.d.ts +130 -0
  152. package/dist/runtime/standalone-handler-runtime.d.ts.map +1 -0
  153. package/dist/runtime/standalone-handler-runtime.js +382 -0
  154. package/dist/runtime/standalone-handler-runtime.js.map +1 -0
  155. package/dist/server/environment-attachment.d.ts.map +1 -1
  156. package/dist/server/environment-attachment.js +2 -1
  157. package/dist/server/environment-attachment.js.map +1 -1
  158. package/dist/server/environment-delivery-worker.d.ts.map +1 -1
  159. package/dist/server/environment-delivery-worker.js +21 -12
  160. package/dist/server/environment-delivery-worker.js.map +1 -1
  161. package/dist/server/managed-server-application.d.ts +4 -1
  162. package/dist/server/managed-server-application.d.ts.map +1 -1
  163. package/dist/server/managed-server-application.js +2 -2
  164. package/dist/server/managed-server-application.js.map +1 -1
  165. package/dist/server/node-coordinator.js +2 -2
  166. package/dist/server/node-coordinator.js.map +1 -1
  167. package/dist/server/server-log.d.ts.map +1 -1
  168. package/dist/server/server-log.js +4 -0
  169. package/dist/server/server-log.js.map +1 -1
  170. package/dist/server/server.d.ts +9 -177
  171. package/dist/server/server.d.ts.map +1 -1
  172. package/dist/server/server.js +428 -178
  173. package/dist/server/server.js.map +1 -1
  174. package/dist/services/query-reader.d.ts +19 -0
  175. package/dist/services/query-reader.d.ts.map +1 -0
  176. package/dist/services/query-reader.js +43 -0
  177. package/dist/services/query-reader.js.map +1 -0
  178. package/dist/services/registered-targets.d.ts +73 -0
  179. package/dist/services/registered-targets.d.ts.map +1 -0
  180. package/dist/services/registered-targets.js +127 -0
  181. package/dist/services/registered-targets.js.map +1 -0
  182. package/dist/services/spine-services.d.ts +26 -12
  183. package/dist/services/spine-services.d.ts.map +1 -1
  184. package/dist/services/spine-services.js +1047 -969
  185. package/dist/services/spine-services.js.map +1 -1
  186. package/dist/spi/delivery.d.ts +5 -0
  187. package/dist/spi/delivery.d.ts.map +1 -0
  188. package/dist/spi/delivery.js +18 -0
  189. package/dist/spi/delivery.js.map +1 -0
  190. package/dist/spi/handler-registry.d.ts +8 -0
  191. package/dist/spi/handler-registry.d.ts.map +1 -0
  192. package/dist/spi/handler-registry.js +15 -0
  193. package/dist/spi/handler-registry.js.map +1 -0
  194. package/dist/stand/stand.d.ts +73 -1
  195. package/dist/stand/stand.d.ts.map +1 -1
  196. package/dist/stand/stand.js +221 -48
  197. package/dist/stand/stand.js.map +1 -1
  198. package/dist/stand/subscription-observer.d.ts.map +1 -1
  199. package/dist/stand/subscription-observer.js +5 -12
  200. package/dist/stand/subscription-observer.js.map +1 -1
  201. package/dist/stand/subscription-registry.js +1 -1
  202. package/dist/stand/subscription-registry.js.map +1 -1
  203. package/dist/testing/index.d.ts +25 -3
  204. package/dist/testing/index.d.ts.map +1 -1
  205. package/dist/testing/index.js +23 -3
  206. package/dist/testing/index.js.map +1 -1
  207. package/dist/tsconfig.tsbuildinfo +1 -1
  208. package/package.json +33 -23
  209. package/dist/handler/build-time-handler-analyzer.d.ts +0 -150
  210. package/dist/handler/build-time-handler-analyzer.d.ts.map +0 -1
  211. package/dist/handler/build-time-handler-analyzer.js +0 -1101
  212. package/dist/handler/build-time-handler-analyzer.js.map +0 -1
  213. package/dist/handler/generated-registry-writer.d.ts +0 -58
  214. package/dist/handler/generated-registry-writer.d.ts.map +0 -1
  215. package/dist/handler/generated-registry-writer.js +0 -458
  216. package/dist/handler/generated-registry-writer.js.map +0 -1
  217. package/dist/handler/handler-codegen.d.ts +0 -48
  218. package/dist/handler/handler-codegen.d.ts.map +0 -1
  219. package/dist/handler/handler-codegen.js +0 -214
  220. package/dist/handler/handler-codegen.js.map +0 -1
  221. package/dist/server/browser-server.d.ts +0 -49
  222. package/dist/server/browser-server.d.ts.map +0 -1
  223. package/dist/server/browser-server.js.map +0 -1
  224. package/dist/server/durable-subscription-bindings.d.ts.map +0 -1
  225. package/dist/server/durable-subscription-bindings.js.map +0 -1
  226. /package/dist/{server → browser}/durable-subscription-bindings.d.ts +0 -0
  227. /package/dist/{server → browser}/durable-subscription-bindings.js +0 -0
@@ -1,11 +1,116 @@
1
1
  import { type Message, type MessageShape } from "@bufbuild/protobuf";
2
2
  import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
- import { type ConstraintViolation, type Event } from "@spine-event-engine/proto";
3
+ import { type EntityColumn, type EntityColumnOperator, type EntityQueryIdentifier, type EntityQueryPredicateFor, type EntityPredicate, type EntityQueryBuilder } from "@spine-event-engine/core";
4
+ import { EntityQueryDescription } from "@spine-event-engine/core/codegen";
5
+ import type { EntityQueryPlan } from "@spine-event-engine/core/spi/entity-query-plan";
6
+ import { type ConstraintViolation, type Event, type Version, type ActorContext } from "@spine-event-engine/proto";
7
+ import type { Query } from "@spine-event-engine/proto/client";
4
8
  import type { EntityEventStorage, EntityStateHistoryStorage } from "@spine-event-engine/storage";
5
9
  import { type DescriptorMessageSchema, type EntityMetadata } from "./entity-metadata.js";
6
- import { type EntityTransactionCommitResult, type EntityTransactionLifecycleFlags, type EntityTransactionRejectedCommit, type EntityTransactionRollbackResult, type EntityTransactionMutator, type EntityTransactionVersionMetadata } from "./entity-transaction.js";
10
+ import { type EntityTransactionCommitResult, type EntityTransactionLifecycleFlags, type EntityTransactionRejectedCommit, type EntityTransactionRollbackResult, type EntityTransactionMutator } from "./entity-transaction.js";
7
11
  /**
8
- * Lifecycle flags carried by a common entity shell.
12
+ * Descriptor-backed columns available to a Process Manager query.
13
+ *
14
+ * @typeParam Schema State schema containing the queried columns.
15
+ */
16
+ type ProcessManagerQueryColumns<Schema extends DescriptorMessageSchema> = Readonly<Record<string, EntityColumn<Schema>>>;
17
+ /**
18
+ * Reads states using the invoking handler's actor and tenant.
19
+ *
20
+ * @typeParam Schema State schema selected by the query.
21
+ * @param plan Compiled filters and ordering for the query.
22
+ * @param schema Generated schema used to decode matching states.
23
+ * @param query Query message carrying the actor and selected state fields.
24
+ * @returns Matching state snapshots from the read side.
25
+ */
26
+ type ProcessManagerQueryExecutor = <Schema extends DescriptorMessageSchema>(plan: EntityQueryPlan, schema: Schema, query: Query) => Promise<readonly MessageShape<Schema>[]>;
27
+ interface ProcessManagerQueryCapability {
28
+ readonly actorContext: ActorContext;
29
+ readonly execute: ProcessManagerQueryExecutor;
30
+ active: boolean;
31
+ }
32
+ /**
33
+ * Binds the repository-scoped query capability for one Process Manager invocation.
34
+ *
35
+ * @internal
36
+ */
37
+ export declare const processManagerQueryAccess: Readonly<{
38
+ bind(entity: object, execute: ProcessManagerQueryCapability["execute"], actorContext: ActorContext): () => void;
39
+ require(entity: object): ProcessManagerQueryCapability;
40
+ }>;
41
+ /**
42
+ * A repository-scoped, read-only Entity query issued by a Process Manager.
43
+ *
44
+ * @typeParam Schema State schema read by the query.
45
+ * @typeParam Columns Registered descriptor-backed columns for `Schema`.
46
+ */
47
+ export declare class ProcessManagerQuery<Schema extends DescriptorMessageSchema, Columns extends ProcessManagerQueryColumns<Schema>> {
48
+ #private;
49
+ /**
50
+ * Creates the repository-scoped query facade.
51
+ *
52
+ * @internal
53
+ * @param entity Process Manager using this query capability.
54
+ * @param schema State schema read by this query.
55
+ * @param builder Typed query builder used to create the wire query.
56
+ */
57
+ constructor(entity: object, schema: Schema, builder: EntityQueryBuilder<Schema, Columns>);
58
+ /**
59
+ * Adds the supplied Entity IDs to the query target.
60
+ *
61
+ * @param ids Entity IDs to include.
62
+ * @returns This query for fluent configuration.
63
+ */
64
+ byId(...ids: readonly EntityQueryIdentifier<Schema>[]): this;
65
+ /**
66
+ * Adds a typed state predicate to the query.
67
+ *
68
+ * @typeParam Predicate Comparison supported by the registered columns.
69
+ * @param predicate Predicate evaluated against registered state columns.
70
+ * @returns This query for fluent configuration.
71
+ */
72
+ where<Predicate extends EntityPredicate>(predicate: EntityQueryPredicateFor<Schema, Columns, Predicate>): this;
73
+ /**
74
+ * Sets the ordering for matching states by one registered column.
75
+ *
76
+ * @typeParam Column Registered column supplying the ordered values.
77
+ * @param column Registered orderable column used for sorting.
78
+ * @param direction Optional sort direction, ascending by default.
79
+ * @returns This query for fluent configuration.
80
+ */
81
+ orderBy<Column extends Columns[keyof Columns]>(column: "greaterThan" extends EntityColumnOperator<Column> ? Column : never, direction?: "asc" | "desc"): this;
82
+ /**
83
+ * Sets the returned-state limit to at most 1,000 entries.
84
+ *
85
+ * @param value Maximum number of states to return.
86
+ * @returns This query for fluent configuration.
87
+ */
88
+ limit(value: number): this;
89
+ /**
90
+ * Reads matching state snapshots from the eventually consistent query projection.
91
+ *
92
+ * @returns Readonly state snapshots, subject to the configured result limit.
93
+ */
94
+ read(): Promise<readonly MessageShape<Schema>[]>;
95
+ /**
96
+ * Reads the first state snapshot for one Entity ID.
97
+ *
98
+ * @param id Entity ID to read.
99
+ * @returns The eventually consistent state snapshot, or `undefined` when it is absent.
100
+ */
101
+ findById(id: EntityQueryIdentifier<Schema>): Promise<MessageShape<Schema> | undefined>;
102
+ /**
103
+ * Reads every matching state snapshot within the configured result limit.
104
+ *
105
+ * This can be more expensive than an ID-targeted read because the projection must evaluate all
106
+ * matching states.
107
+ *
108
+ * @returns Readonly eventually consistent state snapshots.
109
+ */
110
+ all(): Promise<readonly MessageShape<Schema>[]>;
111
+ }
112
+ /**
113
+ * Whether an Entity has been archived or deleted.
9
114
  */
10
115
  export interface EntityLifecycleFlags {
11
116
  /**
@@ -24,7 +129,7 @@ export type EntityScopeReason = "duplicate" | "missing";
24
129
  /**
25
130
  * Protected {@link TransactionalEntity} operation guarded by transaction scope.
26
131
  */
27
- export type TransactionalEntityScopeOperation = "archiveDraft" | "commitTransaction" | "currentDraft" | "draftLifecycleFlags" | "draftVersionMetadata" | "markDraftDeleted" | "restoreDraft" | "rollbackTransaction" | "startTransaction" | "unarchiveDraft" | "tryUpdate" | "update" | "updateDraftVersionMetadata";
132
+ export type TransactionalEntityScopeOperation = "archiveDraft" | "commitTransaction" | "currentDraft" | "draftLifecycleFlags" | "markDraftDeleted" | "restoreDraft" | "rollbackTransaction" | "startTransaction" | "unarchiveDraft" | "tryUpdate" | "update";
28
133
  /**
29
134
  * Error thrown when a transactional entity draft helper is used outside its scope.
30
135
  */
@@ -45,26 +150,15 @@ export declare class TransactionalEntityScopeError extends Error {
45
150
  */
46
151
  constructor(reason: EntityScopeReason, operation: TransactionalEntityScopeOperation);
47
152
  }
48
- type EntityVersionMetadataPrimitive = string | number | boolean | bigint | symbol | null | undefined;
49
- /**
50
- * Plain snapshot data accepted as caller-owned entity version metadata.
51
- */
52
- export type EntityVersionMetadata = EntityVersionMetadataPrimitive | readonly EntityVersionMetadata[] | object;
53
- 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;
54
- /**
55
- * Recursive type-level validator for caller-owned plain entity version metadata.
56
- */
57
- export type PlainEntityVersionMetadata<Version> = PlainVersionAtDepth<Version, []>;
58
- 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 ? {
59
- readonly [Key in keyof Version]: PlainVersionAtDepth<Version[Key], readonly [unknown, ...Depth]>;
60
- } : never;
61
- type EntityVersionMetadataInput<Version> = [Version] extends [EntityVersionMetadata] ? [EntityVersionMetadata] extends [Version] ? Version : PlainEntityVersionMetadata<Version> : PlainEntityVersionMetadata<Version>;
62
153
  /**
63
154
  * Initial values for constructing an {@link Entity}.
155
+ *
156
+ * @typeParam Id Domain identifier type.
157
+ * @typeParam Schema Generated schema describing the Entity state.
64
158
  */
65
- export interface EntityOptions<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> {
159
+ export interface EntityOptions<Id, Schema extends DescriptorMessageSchema> {
66
160
  /**
67
- * Stable entity identifier owned by the caller/domain type.
161
+ * Stable domain identifier for the Entity.
68
162
  */
69
163
  readonly id: Id;
70
164
  /**
@@ -76,43 +170,40 @@ export interface EntityOptions<Id, Schema extends DescriptorMessageSchema, Versi
76
170
  */
77
171
  readonly state: MessageShape<Schema>;
78
172
  /**
79
- * Caller-owned plain version metadata snapshot.
173
+ * Restored Spine Version; fresh Entities start at zero.
80
174
  */
81
- readonly version: EntityVersionMetadataInput<Version>;
175
+ readonly version?: Version;
82
176
  /**
83
177
  * Initial lifecycle flags. Defaults to active, not deleted.
84
178
  */
85
179
  readonly lifecycle?: Partial<EntityLifecycleFlags>;
86
180
  }
87
181
  /**
88
- * Public entity family marker exposed by Spine server entity base classes.
182
+ * The three kinds of Entity supported by server repositories.
89
183
  */
90
184
  export type EntityFamily = "aggregate" | "projection" | "process-manager";
91
185
  /**
92
- * Common in-memory OOP shell for one server-side entity state.
186
+ * Identity, state, version, and lifecycle of one server-side Entity.
93
187
  *
94
- * The shell exposes identity, descriptor-derived metadata, cloned state
95
- * snapshots, caller-owned plain version metadata snapshots, and lifecycle flags. It does not
96
- * invoke handlers, create transactions, write repositories or storage, dispatch
97
- * messages, increment versions, route IDs, query read models, start buses, or
98
- * mutate process-wide runtime state.
188
+ * Keeps the Entity ID, state schema, state, Spine Version, and lifecycle flags.
189
+ * State and Version accessors return copies, and lifecycle access returns a
190
+ * separate flag object. Repositories run handlers and manage storage.
191
+ *
192
+ * @typeParam Id Domain identifier type.
193
+ * @typeParam Schema Generated schema describing the Entity state.
99
194
  */
100
- export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> {
195
+ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema> {
101
196
  #private;
102
197
  /**
103
- * @hidden
104
- */
105
- protected static readonly spineTsEntityConstructor: true;
106
- /**
107
- * Creates an entity shell from caller-provided state and metadata inputs.
198
+ * Initializes an Entity from its ID, schema, state, Version, and lifecycle flags.
108
199
  *
109
200
  * @param options Identity, schema, state, version, and lifecycle inputs.
110
201
  */
111
- constructor(options: EntityOptions<Id, Schema, Version>);
202
+ constructor(options: EntityOptions<Id, Schema>);
112
203
  /**
113
204
  * Gets the stable entity identifier.
114
205
  *
115
- * @returns The caller-owned entity identifier.
206
+ * @returns The domain identifier supplied during construction.
116
207
  */
117
208
  get id(): Id;
118
209
  /**
@@ -134,9 +225,9 @@ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema,
134
225
  */
135
226
  get state(): MessageShape<Schema>;
136
227
  /**
137
- * Gets the caller-owned plain version metadata snapshot.
228
+ * Gets the current Spine Version without exposing the stored message.
138
229
  *
139
- * @returns A validated clone of the version metadata.
230
+ * @returns A copy of the version number and timestamp.
140
231
  */
141
232
  get version(): Version;
142
233
  /**
@@ -170,19 +261,19 @@ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema,
170
261
  */
171
262
  get lifecycleFlagsChanged(): boolean;
172
263
  /**
173
- * Replaces stored state from framework-owned subclass or runtime code.
264
+ * Replaces stored state when framework transaction code accepts a draft.
174
265
  *
175
266
  * @param state Next entity state snapshot.
176
267
  */
177
268
  protected replaceState(state: MessageShape<Schema>): void;
178
269
  /**
179
- * Replaces caller-owned version metadata from framework-owned subclass or runtime code.
270
+ * Applies the Version calculated by a framework transaction.
180
271
  *
181
- * @param version Next caller-owned version metadata.
272
+ * @param version Accepted version number and timestamp.
182
273
  */
183
- protected replaceVersionMetadata(version: EntityVersionMetadataInput<Version>): void;
274
+ protected replaceVersion(version: Version): void;
184
275
  /**
185
- * Replaces lifecycle flags from framework-owned subclass or runtime code.
276
+ * Applies lifecycle flags accepted by framework transaction code.
186
277
  *
187
278
  * @param lifecycle Lifecycle flag changes to apply.
188
279
  */
@@ -218,11 +309,50 @@ interface BoundEntityHistory {
218
309
  readonly eventMaintenance: EntityEventStorage<unknown>;
219
310
  }
220
311
  interface EntityHistoryAccess {
312
+ /**
313
+ * Attaches repository history access to an Entity instance.
314
+ *
315
+ * @param entity Instance whose retained history will be read.
316
+ * @param binding Repository operations for that Entity's history.
317
+ */
221
318
  bind(entity: object, binding: BoundEntityHistory): void;
319
+ /**
320
+ * Reads the latest retained state at or before a time.
321
+ *
322
+ * @param entity Entity whose state is requested.
323
+ * @param time Latest allowed state timestamp.
324
+ * @returns The retained state, or undefined if no state matches.
325
+ */
222
326
  stateAt(entity: object, time: Timestamp): Promise<unknown>;
327
+ /**
328
+ * Reads retained states in descending version order.
329
+ *
330
+ * @param entity Entity whose history is requested.
331
+ * @param depth Maximum number of states to read.
332
+ * @returns Retained state snapshots, newest first.
333
+ */
223
334
  states(entity: object, depth: number): Promise<readonly unknown[]>;
335
+ /**
336
+ * Reads retained diagnostic Events, newest producer version first.
337
+ *
338
+ * @param entity Entity that produced the Events.
339
+ * @param depth Maximum number of Events to read.
340
+ * @returns Retained diagnostic Events.
341
+ */
224
342
  events(entity: object, depth: number): Promise<readonly Readonly<Event>[]>;
343
+ /**
344
+ * Gets the repository's state-history storage for retention operations.
345
+ *
346
+ * @param entity Entity whose history is maintained.
347
+ * @returns The state-history storage bound to that Entity.
348
+ */
225
349
  stateMaintenance(entity: object): EntityStateHistoryStorage<unknown, Message>;
350
+ /**
351
+ * Gets the repository's diagnostic Event storage for retention operations.
352
+ *
353
+ * @param entity Entity whose diagnostic Events are maintained.
354
+ * @returns The Event-history storage bound to that Entity.
355
+ */
226
356
  eventMaintenance(entity: object): EntityEventStorage<unknown>;
227
357
  }
228
358
  /**
@@ -232,18 +362,17 @@ interface EntityHistoryAccess {
232
362
  */
233
363
  export declare const entityHistoryAccess: EntityHistoryAccess;
234
364
  /**
235
- * Common in-memory entity shell with a protected scoped transaction draft.
365
+ * Entity base with one active transaction draft.
236
366
  *
237
- * The transaction scope is backed by {@link EntityTransaction}. Subclasses can
238
- * start one active draft, mutate draft state/version/lifecycle through protected
239
- * helpers, and then commit or roll back the scope. Accepted commits replace this
240
- * entity's in-memory state, explicit version metadata, and lifecycle flags.
241
- * Rejected commits leave the transaction active so subclass code can correct the
242
- * draft or roll it back explicitly. This base does not write repositories,
243
- * emit events, dispatch handlers, increment versions, or manage global
244
- * transaction state.
367
+ * Repository dispatch starts and finishes each transaction. Entity handlers
368
+ * change the draft state or lifecycle through protected helpers. A successful
369
+ * commit updates state, Spine Version, and lifecycle flags. A rejected commit
370
+ * leaves the draft active until the framework rolls it back.
371
+ *
372
+ * @typeParam Id Domain identifier type.
373
+ * @typeParam Schema Generated schema describing the Entity state.
245
374
  */
246
- export declare abstract class TransactionalEntity<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends Entity<Id, Schema, Version> {
375
+ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorMessageSchema> extends Entity<Id, Schema> {
247
376
  #private;
248
377
  /**
249
378
  * Determines whether accepted transaction state or lifecycle changes are visible.
@@ -270,13 +399,6 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
270
399
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
271
400
  */
272
401
  protected currentDraft(): MessageShape<Schema>;
273
- /**
274
- * Gets the current draft version metadata snapshot.
275
- *
276
- * @returns Cloned previous and draft version metadata.
277
- * @throws {@link TransactionalEntityScopeError} when no transaction is active.
278
- */
279
- protected draftVersionMetadata(): EntityTransactionVersionMetadata<Version>;
280
402
  /**
281
403
  * Gets the current draft lifecycle flag snapshot.
282
404
  *
@@ -303,14 +425,6 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
303
425
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
304
426
  */
305
427
  protected tryUpdate(mutator: EntityTransactionMutator<Schema>): readonly ConstraintViolation[];
306
- /**
307
- * Updates the buffered draft version metadata without computing version increments.
308
- *
309
- * @param draft Caller-owned version metadata for the active draft.
310
- * @returns Cloned previous and draft version metadata.
311
- * @throws {@link TransactionalEntityScopeError} when no transaction is active.
312
- */
313
- protected updateDraftVersionMetadata(draft: EntityVersionMetadataInput<Version>): EntityTransactionVersionMetadata<Version>;
314
428
  /**
315
429
  * Marks the buffered draft lifecycle as archived.
316
430
  *
@@ -342,41 +456,43 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
342
456
  /**
343
457
  * Commits the active draft transaction.
344
458
  *
345
- * Accepted commits apply state, version metadata, and lifecycle flags to this
459
+ * Accepted commits apply state, Spine Version, and lifecycle flags to this
346
460
  * entity and close the transaction. Rejected commits do not apply anything and
347
461
  * keep the transaction active for correction or explicit rollback.
348
462
  *
463
+ * @param producedEvents Whether handling returned Events, requiring a version advance.
349
464
  * @returns A cloned accepted or rejected transaction result.
350
465
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
351
466
  */
352
- protected commitTransaction(): EntityTransactionCommitResult<Schema, Version>;
467
+ protected commitTransaction(producedEvents?: boolean): EntityTransactionCommitResult<Schema>;
353
468
  /**
354
469
  * Rolls back the active draft without applying state, version, or lifecycle changes.
355
470
  *
356
471
  * @returns A cloned rollback result containing the discarded draft snapshots.
357
472
  * @throws {@link TransactionalEntityScopeError} when no transaction is active.
358
473
  */
359
- protected rollbackTransaction(): EntityTransactionRollbackResult<Schema, Version>;
474
+ protected rollbackTransaction(): EntityTransactionRollbackResult<Schema>;
360
475
  }
361
476
  /**
362
477
  * Framework-only transaction operations used by repository execution.
363
478
  */
364
479
  export interface TransactionalEntityAccess {
365
480
  /**
366
- * Starts a framework-owned transaction scope for an entity.
481
+ * Starts a transaction scope for repository execution.
367
482
  *
368
483
  * @param entity Transactional entity object to start.
369
484
  */
370
485
  start(entity: object): void;
371
486
  /**
372
- * Executes a framework-owned transaction commit for an entity.
487
+ * Commits the transaction after repository handler execution.
373
488
  *
374
489
  * @param entity Transactional entity object to commit.
490
+ * @param producedEvents Whether the handler returned Events.
375
491
  * @returns The transaction commit result.
376
492
  */
377
- commit(entity: object): EntityTransactionCommitResult<DescriptorMessageSchema>;
493
+ commit(entity: object, producedEvents?: boolean): EntityTransactionCommitResult<DescriptorMessageSchema>;
378
494
  /**
379
- * Executes a framework-owned transaction rollback for an entity, if possible.
495
+ * Rolls back the Entity's active transaction, if one exists.
380
496
  *
381
497
  * @param entity Transactional entity object to roll back.
382
498
  */
@@ -396,24 +512,26 @@ export interface TransactionalEntityAccess {
396
512
  */
397
513
  export declare const transactionalEntityAccess: TransactionalEntityAccess;
398
514
  /**
399
- * Abstract aggregate family marker over the common transactional entity shell.
515
+ * Base class for Aggregates with transactional state and Event-history access.
516
+ *
517
+ * Provides Aggregate family identity and protected repository-backed history
518
+ * methods. Repositories and bounded contexts handle dispatch, persistence, and
519
+ * Event publication; application handlers change state through draft helpers.
400
520
  *
401
- * This class intentionally adds only stable family identity. It does not add
402
- * command dispatch, snapshots, repositories, idempotency guards, or handler
403
- * invocation. Repository-bound diagnostic event-history reads are declared
404
- * below for the Aggregate family.
521
+ * @typeParam Id Domain identifier type.
522
+ * @typeParam Schema Generated schema describing the Aggregate state.
405
523
  */
406
- export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends TransactionalEntity<Id, Schema, Version> {
524
+ export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
407
525
  /**
408
526
  * Stable server entity family identity.
409
527
  */
410
528
  readonly entityFamily: "aggregate";
411
529
  /**
412
- * Creates an aggregate family shell from caller-provided state and metadata inputs.
530
+ * Creates an Aggregate from its identity, state, and metadata.
413
531
  *
414
532
  * @param options Identity, schema, state, version, and lifecycle inputs.
415
533
  */
416
- constructor(options: EntityOptions<Id, Schema, Version>);
534
+ constructor(options: EntityOptions<Id, Schema>);
417
535
  /**
418
536
  * Reads retained diagnostic events in descending producer-version order.
419
537
  *
@@ -437,42 +555,48 @@ export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSche
437
555
  protected eventStorage(): EntityEventStorage<Id>;
438
556
  }
439
557
  /**
440
- * Abstract projection family marker over the common transactional entity shell.
558
+ * Base class for Projections with transactional state.
559
+ *
560
+ * Repositories and Bounded Contexts invoke Event handlers and persist state
561
+ * changes with the Projection's Version.
562
+ * Projections do not expose the diagnostic history methods of other families.
441
563
  *
442
- * This class intentionally adds only stable family identity. It does not add
443
- * event subscriptions, event playing, repositories, version columns, query
444
- * clients, or handler invocation.
564
+ * @typeParam Id Domain identifier type.
565
+ * @typeParam Schema Generated schema describing the Projection state.
445
566
  */
446
- export declare abstract class Projection<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends TransactionalEntity<Id, Schema, Version> {
567
+ export declare abstract class Projection<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
447
568
  /**
448
569
  * Stable server entity family identity.
449
570
  */
450
571
  readonly entityFamily: "projection";
451
572
  /**
452
- * Creates a projection family shell from caller-provided state and metadata inputs.
573
+ * Creates a Projection from its identity, state, and metadata.
453
574
  *
454
575
  * @param options Identity, schema, state, version, and lifecycle inputs.
455
576
  */
456
- constructor(options: EntityOptions<Id, Schema, Version>);
577
+ constructor(options: EntityOptions<Id, Schema>);
457
578
  }
458
579
  /**
459
- * Abstract process manager family marker over the common transactional entity shell.
580
+ * Base class for Process Managers coordinating a workflow through signals.
460
581
  *
461
- * This class intentionally adds only stable family identity. It does not add
462
- * process workflow execution, command posting, query clients, repositories,
463
- * bounded-context injection, or handler invocation.
582
+ * Provides transactional state, protected Event-history access, and
583
+ * handler-scoped queryable Entity-state reads through `select()`. Repositories and bounded
584
+ * contexts invoke handlers, persist changes, and deliver returned signals.
585
+ *
586
+ * @typeParam Id Domain identifier type.
587
+ * @typeParam Schema Generated schema describing the Process Manager state.
464
588
  */
465
- export declare abstract class ProcessManager<Id, Schema extends DescriptorMessageSchema, Version = EntityVersionMetadata> extends TransactionalEntity<Id, Schema, Version> {
589
+ export declare abstract class ProcessManager<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
466
590
  /**
467
591
  * Stable server entity family identity.
468
592
  */
469
593
  readonly entityFamily: "process-manager";
470
594
  /**
471
- * Creates a process manager family shell from caller-provided state and metadata inputs.
595
+ * Creates a Process Manager from its identity, state, and metadata.
472
596
  *
473
597
  * @param options Identity, schema, state, version, and lifecycle inputs.
474
598
  */
475
- constructor(options: EntityOptions<Id, Schema, Version>);
599
+ constructor(options: EntityOptions<Id, Schema>);
476
600
  /**
477
601
  * Reads retained diagnostic events when this repository enabled Process Manager event history.
478
602
  *
@@ -494,6 +618,27 @@ export declare abstract class ProcessManager<Id, Schema extends DescriptorMessag
494
618
  * @returns Event-history storage for this Process Manager.
495
619
  */
496
620
  protected eventStorage(): EntityEventStorage<Id>;
621
+ /**
622
+ * Binds a detached query for a read in the active Process Manager handler.
623
+ *
624
+ * @typeParam QuerySchema Queried Entity state schema.
625
+ * @typeParam Id State identifier type carried by the query.
626
+ * @param query Context-free query to execute with the handler actor and tenant.
627
+ * @returns Read facade for the active handler scope.
628
+ */
629
+ protected select<QuerySchema extends DescriptorMessageSchema, Id>(query: EntityQueryDescription<QuerySchema, Id>): Readonly<{
630
+ read(): Promise<readonly MessageShape<QuerySchema>[]>;
631
+ }>;
632
+ /**
633
+ * Starts the existing schema-and-columns query builder for the active handler.
634
+ *
635
+ * @typeParam QuerySchema Queried Entity state schema.
636
+ * @typeParam Columns Registered columns selected for the builder.
637
+ * @param schema Query-visible Entity state schema.
638
+ * @param columns Registered columns for that schema.
639
+ * @returns Read-only Process Manager query builder.
640
+ */
641
+ protected select<QuerySchema extends DescriptorMessageSchema, Columns extends ProcessManagerQueryColumns<QuerySchema>>(schema: QuerySchema, columns: Columns): ProcessManagerQuery<QuerySchema, Columns>;
497
642
  }
498
643
  export {};
499
644
  //# sourceMappingURL=entity.d.ts.map
@@ -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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