@cratis/chronicle 6.67.4 → 6.67.5
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/testing/ConstraintKey.d.ts +17 -0
- package/dist/testing/ConstraintKey.d.ts.map +1 -0
- package/dist/testing/ConstraintKey.js +72 -0
- package/dist/testing/ConstraintKey.js.map +1 -0
- package/dist/testing/InProcessConstraints.d.ts.map +1 -1
- package/dist/testing/InProcessConstraints.js +3 -47
- package/dist/testing/InProcessConstraints.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/testing/ConstraintKey.ts +81 -0
- package/testing/EventScenario.fixtures.spec.ts +2 -1
- package/testing/InProcessConstraints.ts +3 -51
- package/testing/for_EventScenario/when_appending_field_types/field_scenario_behaviors.fixture.ts +19 -13
- package/testing/for_EventScenario/when_appending_field_types/fractional_collisions.fixture.ts +91 -0
- package/testing/for_EventScenario/when_appending_field_types/with_fractional_collisions.legacy.spec.ts +51 -0
- package/testing/for_EventScenario/when_appending_field_types/with_fractional_collisions.standard.spec.ts +50 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AppendedEvent } from '../events/AppendedEvent.js';
|
|
2
|
+
import type { ConstraintCapture } from '../events/constraints/ConstraintBuilder.js';
|
|
3
|
+
import type { JsonSchema } from '../schemas/JsonSchema.js';
|
|
4
|
+
type Claim = {
|
|
5
|
+
key: string;
|
|
6
|
+
parts: Array<{
|
|
7
|
+
property: string;
|
|
8
|
+
raw: string;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
/** Kernel keys join declared property strings with '-', not a tuple (constraints-composite.json). */
|
|
12
|
+
export declare function claimOf(name: string, capture: ConstraintCapture, event: AppendedEvent, options: {
|
|
13
|
+
schema?: JsonSchema;
|
|
14
|
+
isolated: boolean;
|
|
15
|
+
}): Claim | undefined;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ConstraintKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintKey.d.ts","sourceRoot":"","sources":["../../testing/ConstraintKey.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAI3D,KAAK,KAAK,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AA2D9E,qGAAqG;AACrG,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAAE,aAAa,EAClF,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG,KAAK,GAAG,SAAS,CAS1E"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
import { createHash } from 'node:crypto';
|
|
4
|
+
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
5
|
+
// Only characters captured by the packaged oracle, not every valid event-content character.
|
|
6
|
+
const provenString = /^[A-Za-z0-9 .@_:\-|{}$\u00e9]*$/;
|
|
7
|
+
function guidKey(value, name) {
|
|
8
|
+
if (typeof value === 'string' && /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(value))
|
|
9
|
+
return value.toLowerCase();
|
|
10
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only dashed Guid keys are fixture-backed.');
|
|
11
|
+
}
|
|
12
|
+
function isDecimalFraction(value) {
|
|
13
|
+
// constraints-fractional-field-types.json: below 0.0001 .NET uses exponent strings, unlike JS.
|
|
14
|
+
// The rounding/boundary vectors match JS below 1e15; keep larger fractions conservatively rejected.
|
|
15
|
+
return Number.isFinite(value) && Math.abs(value) >= 0.0001 && Math.abs(value) < 1e15;
|
|
16
|
+
}
|
|
17
|
+
function numericKey(value, context) {
|
|
18
|
+
if (typeof value === 'number') {
|
|
19
|
+
if (Number.isSafeInteger(value))
|
|
20
|
+
return String(value);
|
|
21
|
+
if (context.fractions && isDecimalFraction(value))
|
|
22
|
+
return String(value);
|
|
23
|
+
}
|
|
24
|
+
const reason = context.fractions
|
|
25
|
+
? 'Only safe-integer or fractional numeric keys with magnitude at least 0.0001 and below 1e15 are fixture-backed; other values require a kernel-backed test.'
|
|
26
|
+
: 'Only safe-integer numeric keys are fixture-backed; fractional, exponential and unsafe-integer comparisons require a kernel-backed test.';
|
|
27
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', context.name, reason);
|
|
28
|
+
}
|
|
29
|
+
function kernelKeyString(value, context, schema) {
|
|
30
|
+
if (schema?.format === 'guid')
|
|
31
|
+
return guidKey(value, context.name);
|
|
32
|
+
if (schema?.type === 'number')
|
|
33
|
+
return numericKey(value, {
|
|
34
|
+
...context, fractions: context.fractions && [undefined, 'double'].includes(schema.format)
|
|
35
|
+
});
|
|
36
|
+
return scalarKey(value, context.name);
|
|
37
|
+
}
|
|
38
|
+
function scalarKey(value, name) {
|
|
39
|
+
if (typeof value === 'string' && provenString.test(value))
|
|
40
|
+
return value;
|
|
41
|
+
if (typeof value === 'boolean')
|
|
42
|
+
return value ? 'True' : 'False';
|
|
43
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only fixture-backed scalar string and boolean keys are supported.');
|
|
44
|
+
}
|
|
45
|
+
function supportsFractions(capture) {
|
|
46
|
+
const unique = capture.uniqueConstraint;
|
|
47
|
+
return !Object.values(capture.scope).some(Boolean) && !unique.ignoreCasing &&
|
|
48
|
+
unique.removedWithEventTypeId === undefined && !unique.removedWithEventTypeIds?.length &&
|
|
49
|
+
unique.eventDefinitions.every(entry => entry.properties.length === 1);
|
|
50
|
+
}
|
|
51
|
+
function normalizedKey(joined, ignoreCasing, name) {
|
|
52
|
+
if (!ignoreCasing)
|
|
53
|
+
return joined;
|
|
54
|
+
// The pinned kernel's ToLowerInvariant is proven only for the existing ASCII domain.
|
|
55
|
+
if (!/^[\x20-\x7e]*$/.test(joined)) {
|
|
56
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Case-insensitive keys outside the ASCII key domain are not fixture-backed.');
|
|
57
|
+
}
|
|
58
|
+
return joined.replace(/[A-Z]/g, letter => String.fromCharCode(letter.charCodeAt(0) + 32));
|
|
59
|
+
}
|
|
60
|
+
/** Kernel keys join declared property strings with '-', not a tuple (constraints-composite.json). */
|
|
61
|
+
export function claimOf(name, capture, event, options) {
|
|
62
|
+
const unique = capture.uniqueConstraint;
|
|
63
|
+
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === event.eventType.id.value)?.properties;
|
|
64
|
+
if (properties === undefined)
|
|
65
|
+
return undefined;
|
|
66
|
+
const context = { name, fractions: options.isolated && supportsFractions(capture) };
|
|
67
|
+
const parts = properties.map(property => ({ property,
|
|
68
|
+
raw: kernelKeyString(event.content[property], context, options.schema?.properties?.[property]) }));
|
|
69
|
+
const joined = parts.map(part => part.raw).join('-');
|
|
70
|
+
return { key: createHash('sha256').update(normalizedKey(joined, unique.ignoreCasing, name)).digest('hex'), parts };
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=ConstraintKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConstraintKey.js","sourceRoot":"","sources":["../../testing/ConstraintKey.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,O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ACrD,OAAO,EAAE,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;AACvH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InProcessConstraints.d.ts","sourceRoot":"","sources":["../../testing/InProcessConstraints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InProcessConstraints.d.ts","sourceRoot":"","sources":["../../testing/InProcessConstraints.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,IAAI,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AACvG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAM3D,MAAM,MAAM,uBAAuB,GAAG,4BAA4B,CAAC;AAGnE,oFAAoF;AACpF,qBAAa,oBAAoB;IAKjB,OAAO,CAAC,QAAQ,CAAC,YAAY;IACrC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAPrC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAkC;IACzE,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqB;IACnD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAqB;IAE3D,YAA6B,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAC5D,QAAQ,GAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAa,EACrD,aAAa,GAAE,WAAW,CAAC,MAAM,CAAa,EAC9C,gBAAgB,GAAE,WAAW,CAAC,MAAM,CAAa,EAkFrE;IAED,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE9C;IAED,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAgD;IAE5F,8GAA8G;IAC9G,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAyC;IAE9E,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEpE;IAED,yGAAyG;IACzG,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,aAAa,EAAE,GAAG,uBAAuB,EAAE,CA6FzG;IAED,cAAc,CAAC,SAAS,EAAE,mBAAmB,GAAG,mBAAmB,CAElE;IAED,OAAO,CAAC,WAAW;CAGtB"}
|
|
@@ -1,55 +1,11 @@
|
|
|
1
1
|
// Copyright (c) Cratis. All rights reserved.
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
-
import { createHash } from 'node:crypto';
|
|
4
3
|
import { resolveConstraintMessage } from '../events/constraints/Constraints.js';
|
|
5
4
|
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
6
5
|
import { eventTypeScopeKey, propertyScopeKey, scopeIndex } from './ConstraintScope.js';
|
|
7
6
|
import { supportsPropertyOverlap } from './PropertyDefinitionSupport.js';
|
|
7
|
+
import { claimOf } from './ConstraintKey.js';
|
|
8
8
|
const unavailable = '18446744073709551615';
|
|
9
|
-
// Only the key characters captured by the packaged oracle, not every valid event-content character.
|
|
10
|
-
const provenString = /^[A-Za-z0-9 .@_:\-|{}$\u00e9]*$/;
|
|
11
|
-
function kernelKeyString(value, name, schema) {
|
|
12
|
-
// constraints-field-types.json: the kernel converts Guid keys before comparing or reporting them.
|
|
13
|
-
if (schema?.format === 'guid') {
|
|
14
|
-
if (typeof value === 'string' && /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(value))
|
|
15
|
-
return value.toLowerCase();
|
|
16
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only dashed Guid keys are fixture-backed.');
|
|
17
|
-
}
|
|
18
|
-
// Avoid .NET floating-point formatting, exponent spelling and JavaScript precision loss.
|
|
19
|
-
if (schema?.type === 'number') {
|
|
20
|
-
if (typeof value === 'number' && Number.isSafeInteger(value))
|
|
21
|
-
return String(value);
|
|
22
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only safe-integer numeric keys are fixture-backed; fractional, exponential and unsafe-integer comparisons require a kernel-backed test.');
|
|
23
|
-
}
|
|
24
|
-
if (typeof value === 'string' && provenString.test(value))
|
|
25
|
-
return value;
|
|
26
|
-
if (typeof value === 'boolean')
|
|
27
|
-
return value ? 'True' : 'False';
|
|
28
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only fixture-backed scalar string and boolean keys are supported.');
|
|
29
|
-
}
|
|
30
|
-
function keyHash(value) {
|
|
31
|
-
return createHash('sha256').update(value).digest('hex');
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* The kernel key: each declared property's string in declared order, joined with a literal '-'
|
|
35
|
-
* (UniqueConstraintDefinitionExtensions.GetPropertiesAndValues/GetValue at Chronicle 8fe5d30). Not a tuple:
|
|
36
|
-
* ['a-b', 'c'] and ['a', 'b-c'] claim the same key, as constraints-composite.json captures.
|
|
37
|
-
*/
|
|
38
|
-
function claimOf(name, unique, eventTypeId, content, schema) {
|
|
39
|
-
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === eventTypeId)?.properties;
|
|
40
|
-
if (properties === undefined)
|
|
41
|
-
return undefined;
|
|
42
|
-
const parts = properties.map(property => ({ property, raw: kernelKeyString(content[property], name, schema?.properties?.[property]) }));
|
|
43
|
-
const joined = parts.map(part => part.raw).join('-');
|
|
44
|
-
if (!unique.ignoreCasing)
|
|
45
|
-
return { key: keyHash(joined), parts };
|
|
46
|
-
// The kernel applies .NET ToLowerInvariant to the joined value. constraints-ignore-casing.json proves
|
|
47
|
-
// only the ASCII key domain, where that is exactly A-Z to a-z; host Unicode case tables are not used.
|
|
48
|
-
if (!/^[\x20-\x7e]*$/.test(joined)) {
|
|
49
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Case-insensitive keys outside the ASCII key domain are not fixture-backed.');
|
|
50
|
-
}
|
|
51
|
-
return { key: keyHash(joined.replace(/[A-Z]/g, letter => String.fromCharCode(letter.charCodeAt(0) + 32))), parts };
|
|
52
|
-
}
|
|
53
9
|
/** Narrow, fixture-backed constraint validation over serialized event snapshots. */
|
|
54
10
|
export class InProcessConstraints {
|
|
55
11
|
_definitions;
|
|
@@ -180,7 +136,7 @@ export class InProcessConstraints {
|
|
|
180
136
|
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === type)?.properties;
|
|
181
137
|
if (properties === undefined)
|
|
182
138
|
continue;
|
|
183
|
-
claims.set(source, { key: claimOf(name,
|
|
139
|
+
claims.set(source, { key: claimOf(name, definition, prior, { schema: this._schemas.get(type), isolated: this._definitions.size === 1 }).key,
|
|
184
140
|
sequence: prior.context.sequenceNumber.toString() });
|
|
185
141
|
}
|
|
186
142
|
}
|
|
@@ -191,7 +147,7 @@ export class InProcessConstraints {
|
|
|
191
147
|
const source = event.context.eventSourceId;
|
|
192
148
|
const violationCount = violations.length;
|
|
193
149
|
for (const [name, definition] of this._definitions) {
|
|
194
|
-
const claim = definition.uniqueConstraint && claimOf(name, definition
|
|
150
|
+
const claim = definition.uniqueConstraint && claimOf(name, definition, event, { schema: this._schemas.get(type), isolated: this._definitions.size === 1 });
|
|
195
151
|
if (claim) {
|
|
196
152
|
const key = claim.key;
|
|
197
153
|
const scope = propertyScopeKey(definition.scope, event.context);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InProcessConstraints.js","sourceR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,uBAAuB,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;wBACtE,MAAM,MAAM,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,iBAAiB,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,EAC5F,GAAG,EAAE,CAAC,IAAI,GAAG,EAA+B,CAAC,CAAC;wBAClD,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;oBACnC,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAED,cAAc,CAAC,SAA8B;QACzC,OAAO,wBAAwB,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;IAEO,WAAW,CAAC,IAAY,EAAE,MAAc;QAC5C,OAAO,IAAI,iCAAiC,CAAC,uBAAuB,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACxF,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["../ArtifactRegistrationResult.ts","../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../WellKnownTelemetryNames.ts","../index.ts","../artifacts/ActivatedArtifact.ts","../artifacts/ArtifactActivationContext.ts","../artifacts/ArtifactCompletionFailed.ts","../artifacts/ArtifactDelivery.ts","../artifacts/ArtifactInvocationContext.ts","../artifacts/ArtifactKind.ts","../artifacts/ArtifactRegistrationAttempt.ts","../artifacts/ClientArtifactsActivator.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/refuseClientHostedObservers.ts","../artifacts/validateArtifactSchemas.ts","../artifacts/withActivatedArtifact.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/resolveEventSubject.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/ChronicleTlsMaterial.ts","../connection/ClientObserversRequireKeepAlive.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/TraceContextMiddleware.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/encodeExplicitFalse.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../connection/for_encodeExplicitFalse/wireFields.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompensateOptions.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventEnrichmentContext.ts","../eventSequences/EventEnrichmentProvider.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/NamedTagsWithRegisteredEventSourceNotSupported.ts","../eventSequences/PreparedBatchAppend.ts","../eventSequences/PreparedSingleAppend.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/WireBatchEvent.ts","../eventSequences/createAppendNotification.ts","../eventSequences/createAppendResult.ts","../eventSequences/enrichEventContent.ts","../eventSequences/ensureNamedTagBatchIsSupported.ts","../eventSequences/index.ts","../eventSequences/prepareBatchAppend.ts","../eventSequences/prepareSingleAppend.ts","../eventSequences/resolveEventSourceRouting.ts","../eventSequences/toContractsCausation.ts","../eventSources/ConcurrencyDimensions.ts","../eventSources/DuplicateEventSourceName.ts","../eventSources/DuplicateEventStreamName.ts","../eventSources/EventRoutingContradictsEventSource.ts","../eventSources/EventSourceDefinition.ts","../eventSources/EventSources.ts","../eventSources/EventStreamDefinition.ts","../eventSources/EventStreamDoesNotBelongToEventSource.ts","../eventSources/EventStreamRequiresEventSource.ts","../eventSources/IEventSources.ts","../eventSources/ResolvedEventRouting.ts","../eventSources/UnknownEventSource.ts","../eventSources/eventSource.ts","../eventSources/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/InvalidNamedTag.ts","../events/NamedTag.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/compensationForDecorator.ts","../events/eventSourceTypeDecorator.ts","../events/eventStreamTypeDecorator.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/handles.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeNamedTags.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintEventSequences.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/UniqueOptions.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/constraints/for_Constraints/when_scoping_to_event_sequences/given/registered_constraints.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../for_ChronicleClient/when_skipping_keep_alive/native-exit-probe.ts","../for_EventStore/when_inspecting_registration/given/an_event_store.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../imports/EventImport.ts","../imports/EventImportSettings.ts","../imports/IEventImport.ts","../imports/ImportChunkRefused.ts","../imports/ImportCouldNotBegin.ts","../imports/ImportOptions.ts","../imports/ImportProgress.ts","../imports/ImportRejection.ts","../imports/ImportResult.ts","../imports/ImportState.ts","../imports/ImportTarget.ts","../imports/ImportWasAbandoned.ts","../imports/ImportsNotSupported.ts","../imports/OnInvalidEvent.ts","../imports/abortable.ts","../imports/beginEventImport.ts","../imports/importEvents.ts","../imports/index.ts","../imports/isTransientImportFailure.ts","../imports/sizeOfImportEvent.ts","../imports/toImportEvent.ts","../imports/toImportProgress.ts","../imports/toImportResult.ts","../imports/for_EventImport/given/a_kernel_import_session.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../logging/ChronicleLogEntry.ts","../logging/ChronicleLogLevel.ts","../logging/DiagChronicleLogger.ts","../logging/IChronicleLogger.ts","../logging/createLogger.ts","../observation/EventHandler.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/FastForwardOutcome.ts","../observation/FastForwardResult.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObservationReconnectBackoff.ts","../observation/ObservationStreamOutcome.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/classifyStreamError.ts","../observation/createHandlerInstanceValidator.ts","../observation/getEventHandlers.ts","../observation/getInstanceMethods.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toFastForwardResult.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../observation/batches/BatchContext.ts","../observation/batches/BatchContextObserver.ts","../observation/batches/BatchContextValues.ts","../observation/batches/BatchMethod.ts","../observation/batches/BatchMethodReturnedAValue.ts","../observation/batches/BatchMethods.ts","../observation/batches/BatchOutcome.ts","../observation/batches/BatchOutcomeKind.ts","../observation/batches/DeferralNotSupportedByKernel.ts","../observation/batches/DeliveredPartition.ts","../observation/batches/EventAndContext.ts","../observation/batches/EventBatch.ts","../observation/batches/EventTypeObservedByMoreThanOneMethod.ts","../observation/batches/InvalidBatchMethod.ts","../observation/batches/ObservationOrigin.ts","../observation/batches/ObservedEventType.ts","../observation/batches/PageMessages.ts","../observation/batches/PartitionFailedInBatch.ts","../observation/batches/PartitionNotInBatch.ts","../observation/batches/PartitionOutcome.ts","../observation/batches/PartitionProblem.ts","../observation/batches/PartitionSettlement.ts","../observation/batches/ReducerMixesBatchAndPerEventMethods.ts","../observation/batches/batchSize.ts","../observation/batches/createBatchContext.ts","../observation/batches/observes.ts","../observation/batches/runConcurrently.ts","../observation/for_ObservationReconnectBackoff/given/a_backoff.ts","../observation/for_ObservationReconnectBackoff/given/a_scripted_stream.ts","../patterns/BehaviorPattern.ts","../patterns/DayOfWeek.ts","../patterns/FacetName.ts","../patterns/FacetSet.ts","../patterns/IPatterns.ts","../patterns/PatternMoment.ts","../patterns/PatternQueryOptions.ts","../patterns/Patterns.ts","../patterns/PatternsAtOptions.ts","../patterns/TimeBucket.ts","../patterns/index.ts","../patterns/toBehaviorPattern.ts","../patterns/toDayOfWeek.ts","../patterns/toOffsetDate.ts","../patterns/toTimeBucket.ts","../projections/ChildrenOrderingNotSupportedByContracts.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/InvalidCausedByProperty.ts","../projections/InvalidEventContextPropertyError.ts","../projections/ProjectionCapabilityProvenance.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionEventSchema.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/captureProjectionProvenance.ts","../projections/causedBy.ts","../projections/childrenOrdering.ts","../projections/childrenOrderingSupport.ts","../projections/constantValueExpression.ts","../projections/eventContextPropertyExpression.ts","../projections/eventContractPath.ts","../projections/index.ts","../projections/invalidEventContextPropertyInProjection.ts","../projections/notSetPropertyPath.ts","../projections/propertyExpressions.ts","../projections/registerProjectionWithRetry.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/ChildrenOrderingAlreadyDefined.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/DictionaryKey.ts","../projections/declarative/FromAllBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/ICompositeKeySetBuilder.ts","../projections/declarative/IFromAllBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/InvalidDictionaryKey.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/declarative/projectionBuilderProvenance.ts","../projections/for_Graphs/given/a_discovered_graph.ts","../projections/for_Graphs/given/a_fake_connection.ts","../projections/for_Graphs/given/a_graph_with_views.ts","../projections/for_Graphs/given/organization.ts","../projections/for_ProjectionDefinitionCompiler/given/compile_model_bound.ts","../projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.ts","../projections/graphs/EdgeMustHaveOneSourceAndOneTarget.ts","../projections/graphs/GraphDeclaredMoreThanOnce.ts","../projections/graphs/GraphDefinitionBuilder.ts","../projections/graphs/GraphEdgeBuilder.ts","../projections/graphs/GraphEdgeFromBuilder.ts","../projections/graphs/GraphEdgeFromModel.ts","../projections/graphs/GraphEdgeModel.ts","../projections/graphs/GraphEdgeRemovedWithBuilder.ts","../projections/graphs/GraphEdgeRemovedWithModel.ts","../projections/graphs/GraphElementCannotBeReadModel.ts","../projections/graphs/GraphHasDuplicateElement.ts","../projections/graphs/GraphKeyPropertyNotFound.ts","../projections/graphs/GraphMappingBuilder.ts","../projections/graphs/GraphMemberMappings.ts","../projections/graphs/GraphModel.ts","../projections/graphs/GraphNameRequired.ts","../projections/graphs/GraphNodeBuilder.ts","../projections/graphs/GraphNodeFromBuilder.ts","../projections/graphs/GraphNodeFromModel.ts","../projections/graphs/GraphNodeModel.ts","../projections/graphs/GraphNodeRemovedWithBuilder.ts","../projections/graphs/GraphNodeRemovedWithModel.ts","../projections/graphs/GraphProjectionBuilder.ts","../projections/graphs/GraphRegistration.ts","../projections/graphs/GraphSchemaWriter.ts","../projections/graphs/Graphs.ts","../projections/graphs/IGraphEdgeBuilder.ts","../projections/graphs/IGraphEdgeFromBuilder.ts","../projections/graphs/IGraphEdgeRemovedWithBuilder.ts","../projections/graphs/IGraphMappingBuilder.ts","../projections/graphs/IGraphNodeBuilder.ts","../projections/graphs/IGraphNodeFromBuilder.ts","../projections/graphs/IGraphNodeRemovedWithBuilder.ts","../projections/graphs/IGraphProjection.ts","../projections/graphs/IGraphProjectionBuilder.ts","../projections/graphs/IGraphs.ts","../projections/graphs/ModelBoundGraphReader.ts","../projections/graphs/NestedObjectInGraph.ts","../projections/graphs/NodeMustHaveExactlyOneKey.ts","../projections/graphs/SetOnceNotSupportedInGraph.ts","../projections/graphs/UnknownGraphEventProperty.ts","../projections/graphs/UnknownGraphNode.ts","../projections/graphs/edge.ts","../projections/graphs/edgeFrom.ts","../projections/graphs/edgeRemovedWith.ts","../projections/graphs/edgeSource.ts","../projections/graphs/edgeTarget.ts","../projections/graphs/graph.ts","../projections/graphs/graphKey.ts","../projections/graphs/graphProjection.ts","../projections/graphs/index.ts","../projections/graphs/isGraphElement.ts","../projections/graphs/node.ts","../projections/graphs/nodeFrom.ts","../projections/graphs/nodeRemovedWith.ts","../projections/graphs/propertyPathOf.ts","../projections/graphs/views/AmbiguousDirection.ts","../projections/graphs/views/DuplicateViewName.ts","../projections/graphs/views/EdgeNotIncidentOnRoot.ts","../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts","../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts","../projections/graphs/views/FollowsOptions.ts","../projections/graphs/views/GraphEdgeDirection.ts","../projections/graphs/views/GraphView.ts","../projections/graphs/views/GraphViewBuildResult.ts","../projections/graphs/views/GraphViewCardinality.ts","../projections/graphs/views/GraphViewDefinition.ts","../projections/graphs/views/GraphViewDefinitionBuilder.ts","../projections/graphs/views/GraphViewDefinitionSerializer.ts","../projections/graphs/views/GraphViewEdgeReference.ts","../projections/graphs/views/GraphViewMember.ts","../projections/graphs/views/GraphViewMemberKind.ts","../projections/graphs/views/GraphViewMemberMetadata.ts","../projections/graphs/views/GraphViewPropertyMember.ts","../projections/graphs/views/GraphViewReason.ts","../projections/graphs/views/GraphViewRelationMember.ts","../projections/graphs/views/GraphViewSchema.ts","../projections/graphs/views/GraphViewSchemaEdge.ts","../projections/graphs/views/GraphViewSchemaNode.ts","../projections/graphs/views/GraphViewSerializerOptions.ts","../projections/graphs/views/RecursiveView.ts","../projections/graphs/views/RelationTargetNotAView.ts","../projections/graphs/views/TargetLabelMismatch.ts","../projections/graphs/views/UnknownEdge.ts","../projections/graphs/views/UnknownEdgeProperty.ts","../projections/graphs/views/UnknownNodeProperty.ts","../projections/graphs/views/ViewIsAlsoSchema.ts","../projections/graphs/views/ViewOfMetadata.ts","../projections/graphs/views/ViewOfOptions.ts","../projections/graphs/views/ViewRootNotANode.ts","../projections/graphs/views/declareGraphViewMember.ts","../projections/graphs/views/follows.ts","../projections/graphs/views/fromEdge.ts","../projections/graphs/views/index.ts","../projections/graphs/views/viewKey.ts","../projections/graphs/views/viewOf.ts","../projections/graphs/views/viewProperty.ts","../projections/modelBound/ConflictingChildrenOrdering.ts","../projections/modelBound/FromAllEventsMetadata.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromAllEvents.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/isModelBoundProjection.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorDelivery.ts","../reactors/ReactorDispatcher.ts","../reactors/ReactorId.ts","../reactors/ReactorObservationTarget.ts","../reactors/ReactorPageDispatcher.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorServices.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../reactors/startAtTail.ts","../reactors/for_Reactors/given/deliver_to_reactor.ts","../reactors/for_Reactors/given/observe_reactor_messages.ts","../reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModelWatcher.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeContext.ts","../readModels/ReadModelChangeType.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelNamingPolicy.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModelWatchOptions.ts","../readModels/ReadModelWatcher.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../readModels/for_ReadModelNamingPolicy/given/registered_read_models.ts","../readModels/for_ReadModelWatcher/given/a_kernel_stream.ts","../readModels/for_ReadModelWatcher/given/a_watched_read_model.ts","../readModels/for_ReadModels/given/Book.ts","../readModels/for_ReadModels/given/BookBorrowed.ts","../readModels/for_ReadModels/given/BookRegistered.ts","../readModels/for_ReadModels/given/BookReturned.ts","../readModels/for_ReadModels/given/a_stored_read_model.ts","../readModels/for_deserializeReadModel/given/Address.ts","../readModels/for_deserializeReadModel/given/a_read_model_with_defaults.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/ReducerObservation.ts","../reducers/ReducerObservationSession.ts","../reducers/Reducers.ts","../reducers/ReductionOutcome.ts","../reducers/index.ts","../reducers/reducer.ts","../reducers/for_Reducers/given/observe_reducer_messages.ts","../reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../telemetry/ChronicleTelemetryOptions.ts","../telemetry/observeOperation.ts","../telemetry/runInBackgroundContext.ts","../telemetry/spanAttributes.ts","../testing/BatchPartitionOutcome.ts","../testing/ConstraintScope.ts","../testing/EventFieldSchema.ts","../testing/EventScenario.ts","../testing/EventScenarioGiven.ts","../testing/EventScenarioGivenBuilder.ts","../testing/EventScenarioOptions.ts","../testing/EventScenarioSeed.ts","../testing/EventScenarioWhen.ts","../testing/EventScenarioWhenBuilder.ts","../testing/IReadModelProcessor.ts","../testing/InProcessAppendMetadata.ts","../testing/InProcessBatchAppend.ts","../testing/InProcessConstraints.ts","../testing/InProcessEventPayload.ts","../testing/InProcessEventReadCriteria.ts","../testing/InProcessEventReadFilter.ts","../testing/InProcessEventSequence.ts","../testing/InProcessEventSequenceEnvironment.ts","../testing/InProcessSingleAppend.ts","../testing/PropertyDefinitionSupport.ts","../testing/ReactorDeliveryResult.ts","../testing/ReactorScenario.ts","../testing/ReactorScenarioOptions.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/ReadModelState.ts","../testing/RecordedReactorSideEffect.ts","../testing/ReducerReadModelProcessor.ts","../testing/ScenarioEvent.ts","../testing/UnsupportedEventSequenceOperation.ts","../testing/UnsupportedReactorOperation.ts","../testing/UnsupportedReducerOperation.ts","../testing/deliverToBatchMethods.ts","../testing/index.ts","../testing/singleAppendRoute.ts","../testing/projections/ProjectionArithmetic.ts","../testing/projections/ProjectionCapabilities.ts","../testing/projections/ProjectionCapabilityReject.ts","../testing/projections/ProjectionCapabilityReporter.ts","../testing/projections/ProjectionChildrenCapabilities.ts","../testing/projections/ProjectionDefinitionCapabilities.ts","../testing/projections/ProjectionEventSchemaResolver.ts","../testing/projections/ProjectionExpressionCapabilities.ts","../testing/projections/ProjectionExpressionEvaluator.ts","../testing/projections/ProjectionInitialValueCapabilities.ts","../testing/projections/ProjectionJoinRecord.ts","../testing/projections/ProjectionJoinValidationContext.ts","../testing/projections/ProjectionJoins.ts","../testing/projections/ProjectionJoinsCapabilities.ts","../testing/projections/ProjectionMappingCapabilities.ts","../testing/projections/ProjectionMappingValidation.ts","../testing/projections/ProjectionReadModelCapabilities.ts","../testing/projections/ProjectionReadModelProcessor.ts","../testing/projections/ProjectionRootCapabilities.ts","../testing/projections/ProjectionScalarConverter.ts","../testing/projections/ProjectionSchemaCapabilities.ts","../testing/projections/ProjectionValueConverter.ts","../testing/projections/UnsupportedProjectionOperation.ts","../testing/projections/for_ProjectionCapabilities/given/Changed.ts","../testing/projections/for_ProjectionCapabilities/given/Model.ts","../testing/projections/for_ProjectionCapabilities/given/Removed.ts","../testing/projections/for_ProjectionCapabilities/given/compile.ts","../transactions/AppendOptionNotSupportedInUnitOfWork.ts","../transactions/ConflictingAppendOptionNamesInUnitOfWork.ts","../transactions/ConflictingConcurrencyScopesInUnitOfWork.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/TransactionalAppendOptions.ts","../transactions/TransactionalEventRouting.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/concurrencyScopesAreEqual.ts","../transactions/index.ts","../transactions/resolveTransactionalAppendOptions.ts","../transactions/toEventForEventSourceId.ts","../transactions/for_UnitOfWork/given/a_unit_of_work_with_a_recording_store.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/chai/package.json","../../node_modules/@types/deep-eql/package.json","../../node_modules/@types/node/package.json","../../node_modules/@vitest/mocker/package.json","../../node_modules/assertion-error/package.json","../../node_modules/chai/package.json","../../node_modules/esbuild/package.json","../../node_modules/expect-type/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/tinybench/package.json","../../node_modules/ts-error/package.json","../../node_modules/tsx/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json","../../node_modules/vite/package.json","../../node_modules/vitest/package.json","../../node_modules/yaml/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@edge-runtime/vm/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/@vitejs/devtools/package.json","../../node_modules/@vitest/browser-playwright/package.json","../../node_modules/@vitest/browser-preview/package.json","../../node_modules/@vitest/browser-webdriverio/package.json","../../node_modules/@vitest/coverage-istanbul/package.json","../../node_modules/@vitest/coverage-v8/package.json","../../node_modules/@vitest/mocker/dist/package.json","../../node_modules/@vitest/ui/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/deep-eql/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/expect-type/dist/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/happy-dom/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/jiti/package.json","../../node_modules/jsdom/package.json","../../node_modules/less/package.json","../../node_modules/module/package.json","../../node_modules/msw/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sass-embedded/package.json","../../node_modules/sass/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/stylus/package.json","../../node_modules/sugarss/package.json","../../node_modules/terser/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tinybench/dist/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vite/dist/node/chunks/package.json","../../node_modules/vite/dist/node/package.json","../../node_modules/vite/dist/package.json","../../node_modules/vite/module-runner/package.json","../../node_modules/vite/types/package.json","../../node_modules/vitest/dist/chunks/package.json","../../node_modules/vitest/dist/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
|
1
|
+
{"version":"7.0.2","root":["../ArtifactRegistrationResult.ts","../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../WellKnownTelemetryNames.ts","../index.ts","../artifacts/ActivatedArtifact.ts","../artifacts/ArtifactActivationContext.ts","../artifacts/ArtifactCompletionFailed.ts","../artifacts/ArtifactDelivery.ts","../artifacts/ArtifactInvocationContext.ts","../artifacts/ArtifactKind.ts","../artifacts/ArtifactRegistrationAttempt.ts","../artifacts/ClientArtifactsActivator.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/refuseClientHostedObservers.ts","../artifacts/validateArtifactSchemas.ts","../artifacts/withActivatedArtifact.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/resolveEventSubject.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/ChronicleTlsMaterial.ts","../connection/ClientObserversRequireKeepAlive.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/TraceContextMiddleware.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/encodeExplicitFalse.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../connection/for_encodeExplicitFalse/wireFields.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompensateOptions.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventEnrichmentContext.ts","../eventSequences/EventEnrichmentProvider.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/NamedTagsWithRegisteredEventSourceNotSupported.ts","../eventSequences/PreparedBatchAppend.ts","../eventSequences/PreparedSingleAppend.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/WireBatchEvent.ts","../eventSequences/createAppendNotification.ts","../eventSequences/createAppendResult.ts","../eventSequences/enrichEventContent.ts","../eventSequences/ensureNamedTagBatchIsSupported.ts","../eventSequences/index.ts","../eventSequences/prepareBatchAppend.ts","../eventSequences/prepareSingleAppend.ts","../eventSequences/resolveEventSourceRouting.ts","../eventSequences/toContractsCausation.ts","../eventSources/ConcurrencyDimensions.ts","../eventSources/DuplicateEventSourceName.ts","../eventSources/DuplicateEventStreamName.ts","../eventSources/EventRoutingContradictsEventSource.ts","../eventSources/EventSourceDefinition.ts","../eventSources/EventSources.ts","../eventSources/EventStreamDefinition.ts","../eventSources/EventStreamDoesNotBelongToEventSource.ts","../eventSources/EventStreamRequiresEventSource.ts","../eventSources/IEventSources.ts","../eventSources/ResolvedEventRouting.ts","../eventSources/UnknownEventSource.ts","../eventSources/eventSource.ts","../eventSources/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/InvalidNamedTag.ts","../events/NamedTag.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/compensationForDecorator.ts","../events/eventSourceTypeDecorator.ts","../events/eventStreamTypeDecorator.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/handles.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeNamedTags.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintEventSequences.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/UniqueOptions.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/constraints/for_Constraints/when_scoping_to_event_sequences/given/registered_constraints.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../for_ChronicleClient/when_skipping_keep_alive/native-exit-probe.ts","../for_EventStore/when_inspecting_registration/given/an_event_store.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../imports/EventImport.ts","../imports/EventImportSettings.ts","../imports/IEventImport.ts","../imports/ImportChunkRefused.ts","../imports/ImportCouldNotBegin.ts","../imports/ImportOptions.ts","../imports/ImportProgress.ts","../imports/ImportRejection.ts","../imports/ImportResult.ts","../imports/ImportState.ts","../imports/ImportTarget.ts","../imports/ImportWasAbandoned.ts","../imports/ImportsNotSupported.ts","../imports/OnInvalidEvent.ts","../imports/abortable.ts","../imports/beginEventImport.ts","../imports/importEvents.ts","../imports/index.ts","../imports/isTransientImportFailure.ts","../imports/sizeOfImportEvent.ts","../imports/toImportEvent.ts","../imports/toImportProgress.ts","../imports/toImportResult.ts","../imports/for_EventImport/given/a_kernel_import_session.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../logging/ChronicleLogEntry.ts","../logging/ChronicleLogLevel.ts","../logging/DiagChronicleLogger.ts","../logging/IChronicleLogger.ts","../logging/createLogger.ts","../observation/EventHandler.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/FastForwardOutcome.ts","../observation/FastForwardResult.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObservationReconnectBackoff.ts","../observation/ObservationStreamOutcome.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/classifyStreamError.ts","../observation/createHandlerInstanceValidator.ts","../observation/getEventHandlers.ts","../observation/getInstanceMethods.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toFastForwardResult.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../observation/batches/BatchContext.ts","../observation/batches/BatchContextObserver.ts","../observation/batches/BatchContextValues.ts","../observation/batches/BatchMethod.ts","../observation/batches/BatchMethodReturnedAValue.ts","../observation/batches/BatchMethods.ts","../observation/batches/BatchOutcome.ts","../observation/batches/BatchOutcomeKind.ts","../observation/batches/DeferralNotSupportedByKernel.ts","../observation/batches/DeliveredPartition.ts","../observation/batches/EventAndContext.ts","../observation/batches/EventBatch.ts","../observation/batches/EventTypeObservedByMoreThanOneMethod.ts","../observation/batches/InvalidBatchMethod.ts","../observation/batches/ObservationOrigin.ts","../observation/batches/ObservedEventType.ts","../observation/batches/PageMessages.ts","../observation/batches/PartitionFailedInBatch.ts","../observation/batches/PartitionNotInBatch.ts","../observation/batches/PartitionOutcome.ts","../observation/batches/PartitionProblem.ts","../observation/batches/PartitionSettlement.ts","../observation/batches/ReducerMixesBatchAndPerEventMethods.ts","../observation/batches/batchSize.ts","../observation/batches/createBatchContext.ts","../observation/batches/observes.ts","../observation/batches/runConcurrently.ts","../observation/for_ObservationReconnectBackoff/given/a_backoff.ts","../observation/for_ObservationReconnectBackoff/given/a_scripted_stream.ts","../patterns/BehaviorPattern.ts","../patterns/DayOfWeek.ts","../patterns/FacetName.ts","../patterns/FacetSet.ts","../patterns/IPatterns.ts","../patterns/PatternMoment.ts","../patterns/PatternQueryOptions.ts","../patterns/Patterns.ts","../patterns/PatternsAtOptions.ts","../patterns/TimeBucket.ts","../patterns/index.ts","../patterns/toBehaviorPattern.ts","../patterns/toDayOfWeek.ts","../patterns/toOffsetDate.ts","../patterns/toTimeBucket.ts","../projections/ChildrenOrderingNotSupportedByContracts.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/InvalidCausedByProperty.ts","../projections/InvalidEventContextPropertyError.ts","../projections/ProjectionCapabilityProvenance.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionEventSchema.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/captureProjectionProvenance.ts","../projections/causedBy.ts","../projections/childrenOrdering.ts","../projections/childrenOrderingSupport.ts","../projections/constantValueExpression.ts","../projections/eventContextPropertyExpression.ts","../projections/eventContractPath.ts","../projections/index.ts","../projections/invalidEventContextPropertyInProjection.ts","../projections/notSetPropertyPath.ts","../projections/propertyExpressions.ts","../projections/registerProjectionWithRetry.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/ChildrenOrderingAlreadyDefined.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/DictionaryKey.ts","../projections/declarative/FromAllBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/ICompositeKeySetBuilder.ts","../projections/declarative/IFromAllBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/InvalidDictionaryKey.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/declarative/projectionBuilderProvenance.ts","../projections/for_Graphs/given/a_discovered_graph.ts","../projections/for_Graphs/given/a_fake_connection.ts","../projections/for_Graphs/given/a_graph_with_views.ts","../projections/for_Graphs/given/organization.ts","../projections/for_ProjectionDefinitionCompiler/given/compile_model_bound.ts","../projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.ts","../projections/graphs/EdgeMustHaveOneSourceAndOneTarget.ts","../projections/graphs/GraphDeclaredMoreThanOnce.ts","../projections/graphs/GraphDefinitionBuilder.ts","../projections/graphs/GraphEdgeBuilder.ts","../projections/graphs/GraphEdgeFromBuilder.ts","../projections/graphs/GraphEdgeFromModel.ts","../projections/graphs/GraphEdgeModel.ts","../projections/graphs/GraphEdgeRemovedWithBuilder.ts","../projections/graphs/GraphEdgeRemovedWithModel.ts","../projections/graphs/GraphElementCannotBeReadModel.ts","../projections/graphs/GraphHasDuplicateElement.ts","../projections/graphs/GraphKeyPropertyNotFound.ts","../projections/graphs/GraphMappingBuilder.ts","../projections/graphs/GraphMemberMappings.ts","../projections/graphs/GraphModel.ts","../projections/graphs/GraphNameRequired.ts","../projections/graphs/GraphNodeBuilder.ts","../projections/graphs/GraphNodeFromBuilder.ts","../projections/graphs/GraphNodeFromModel.ts","../projections/graphs/GraphNodeModel.ts","../projections/graphs/GraphNodeRemovedWithBuilder.ts","../projections/graphs/GraphNodeRemovedWithModel.ts","../projections/graphs/GraphProjectionBuilder.ts","../projections/graphs/GraphRegistration.ts","../projections/graphs/GraphSchemaWriter.ts","../projections/graphs/Graphs.ts","../projections/graphs/IGraphEdgeBuilder.ts","../projections/graphs/IGraphEdgeFromBuilder.ts","../projections/graphs/IGraphEdgeRemovedWithBuilder.ts","../projections/graphs/IGraphMappingBuilder.ts","../projections/graphs/IGraphNodeBuilder.ts","../projections/graphs/IGraphNodeFromBuilder.ts","../projections/graphs/IGraphNodeRemovedWithBuilder.ts","../projections/graphs/IGraphProjection.ts","../projections/graphs/IGraphProjectionBuilder.ts","../projections/graphs/IGraphs.ts","../projections/graphs/ModelBoundGraphReader.ts","../projections/graphs/NestedObjectInGraph.ts","../projections/graphs/NodeMustHaveExactlyOneKey.ts","../projections/graphs/SetOnceNotSupportedInGraph.ts","../projections/graphs/UnknownGraphEventProperty.ts","../projections/graphs/UnknownGraphNode.ts","../projections/graphs/edge.ts","../projections/graphs/edgeFrom.ts","../projections/graphs/edgeRemovedWith.ts","../projections/graphs/edgeSource.ts","../projections/graphs/edgeTarget.ts","../projections/graphs/graph.ts","../projections/graphs/graphKey.ts","../projections/graphs/graphProjection.ts","../projections/graphs/index.ts","../projections/graphs/isGraphElement.ts","../projections/graphs/node.ts","../projections/graphs/nodeFrom.ts","../projections/graphs/nodeRemovedWith.ts","../projections/graphs/propertyPathOf.ts","../projections/graphs/views/AmbiguousDirection.ts","../projections/graphs/views/DuplicateViewName.ts","../projections/graphs/views/EdgeNotIncidentOnRoot.ts","../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts","../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts","../projections/graphs/views/FollowsOptions.ts","../projections/graphs/views/GraphEdgeDirection.ts","../projections/graphs/views/GraphView.ts","../projections/graphs/views/GraphViewBuildResult.ts","../projections/graphs/views/GraphViewCardinality.ts","../projections/graphs/views/GraphViewDefinition.ts","../projections/graphs/views/GraphViewDefinitionBuilder.ts","../projections/graphs/views/GraphViewDefinitionSerializer.ts","../projections/graphs/views/GraphViewEdgeReference.ts","../projections/graphs/views/GraphViewMember.ts","../projections/graphs/views/GraphViewMemberKind.ts","../projections/graphs/views/GraphViewMemberMetadata.ts","../projections/graphs/views/GraphViewPropertyMember.ts","../projections/graphs/views/GraphViewReason.ts","../projections/graphs/views/GraphViewRelationMember.ts","../projections/graphs/views/GraphViewSchema.ts","../projections/graphs/views/GraphViewSchemaEdge.ts","../projections/graphs/views/GraphViewSchemaNode.ts","../projections/graphs/views/GraphViewSerializerOptions.ts","../projections/graphs/views/RecursiveView.ts","../projections/graphs/views/RelationTargetNotAView.ts","../projections/graphs/views/TargetLabelMismatch.ts","../projections/graphs/views/UnknownEdge.ts","../projections/graphs/views/UnknownEdgeProperty.ts","../projections/graphs/views/UnknownNodeProperty.ts","../projections/graphs/views/ViewIsAlsoSchema.ts","../projections/graphs/views/ViewOfMetadata.ts","../projections/graphs/views/ViewOfOptions.ts","../projections/graphs/views/ViewRootNotANode.ts","../projections/graphs/views/declareGraphViewMember.ts","../projections/graphs/views/follows.ts","../projections/graphs/views/fromEdge.ts","../projections/graphs/views/index.ts","../projections/graphs/views/viewKey.ts","../projections/graphs/views/viewOf.ts","../projections/graphs/views/viewProperty.ts","../projections/modelBound/ConflictingChildrenOrdering.ts","../projections/modelBound/FromAllEventsMetadata.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromAllEvents.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/isModelBoundProjection.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/IReactors.ts","../reactors/ReactorDelivery.ts","../reactors/ReactorDispatcher.ts","../reactors/ReactorId.ts","../reactors/ReactorObservationTarget.ts","../reactors/ReactorPageDispatcher.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorServices.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../reactors/startAtTail.ts","../reactors/for_Reactors/given/deliver_to_reactor.ts","../reactors/for_Reactors/given/observe_reactor_messages.ts","../reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModelWatcher.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeContext.ts","../readModels/ReadModelChangeType.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelNamingPolicy.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModelWatchOptions.ts","../readModels/ReadModelWatcher.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../readModels/for_ReadModelNamingPolicy/given/registered_read_models.ts","../readModels/for_ReadModelWatcher/given/a_kernel_stream.ts","../readModels/for_ReadModelWatcher/given/a_watched_read_model.ts","../readModels/for_ReadModels/given/Book.ts","../readModels/for_ReadModels/given/BookBorrowed.ts","../readModels/for_ReadModels/given/BookRegistered.ts","../readModels/for_ReadModels/given/BookReturned.ts","../readModels/for_ReadModels/given/a_stored_read_model.ts","../readModels/for_deserializeReadModel/given/Address.ts","../readModels/for_deserializeReadModel/given/a_read_model_with_defaults.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/ReducerObservation.ts","../reducers/ReducerObservationSession.ts","../reducers/Reducers.ts","../reducers/ReductionOutcome.ts","../reducers/index.ts","../reducers/reducer.ts","../reducers/for_Reducers/given/observe_reducer_messages.ts","../reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../telemetry/ChronicleTelemetryOptions.ts","../telemetry/observeOperation.ts","../telemetry/runInBackgroundContext.ts","../telemetry/spanAttributes.ts","../testing/BatchPartitionOutcome.ts","../testing/ConstraintKey.ts","../testing/ConstraintScope.ts","../testing/EventFieldSchema.ts","../testing/EventScenario.ts","../testing/EventScenarioGiven.ts","../testing/EventScenarioGivenBuilder.ts","../testing/EventScenarioOptions.ts","../testing/EventScenarioSeed.ts","../testing/EventScenarioWhen.ts","../testing/EventScenarioWhenBuilder.ts","../testing/IReadModelProcessor.ts","../testing/InProcessAppendMetadata.ts","../testing/InProcessBatchAppend.ts","../testing/InProcessConstraints.ts","../testing/InProcessEventPayload.ts","../testing/InProcessEventReadCriteria.ts","../testing/InProcessEventReadFilter.ts","../testing/InProcessEventSequence.ts","../testing/InProcessEventSequenceEnvironment.ts","../testing/InProcessSingleAppend.ts","../testing/PropertyDefinitionSupport.ts","../testing/ReactorDeliveryResult.ts","../testing/ReactorScenario.ts","../testing/ReactorScenarioOptions.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/ReadModelState.ts","../testing/RecordedReactorSideEffect.ts","../testing/ReducerReadModelProcessor.ts","../testing/ScenarioEvent.ts","../testing/UnsupportedEventSequenceOperation.ts","../testing/UnsupportedReactorOperation.ts","../testing/UnsupportedReducerOperation.ts","../testing/deliverToBatchMethods.ts","../testing/index.ts","../testing/singleAppendRoute.ts","../testing/projections/ProjectionArithmetic.ts","../testing/projections/ProjectionCapabilities.ts","../testing/projections/ProjectionCapabilityReject.ts","../testing/projections/ProjectionCapabilityReporter.ts","../testing/projections/ProjectionChildrenCapabilities.ts","../testing/projections/ProjectionDefinitionCapabilities.ts","../testing/projections/ProjectionEventSchemaResolver.ts","../testing/projections/ProjectionExpressionCapabilities.ts","../testing/projections/ProjectionExpressionEvaluator.ts","../testing/projections/ProjectionInitialValueCapabilities.ts","../testing/projections/ProjectionJoinRecord.ts","../testing/projections/ProjectionJoinValidationContext.ts","../testing/projections/ProjectionJoins.ts","../testing/projections/ProjectionJoinsCapabilities.ts","../testing/projections/ProjectionMappingCapabilities.ts","../testing/projections/ProjectionMappingValidation.ts","../testing/projections/ProjectionReadModelCapabilities.ts","../testing/projections/ProjectionReadModelProcessor.ts","../testing/projections/ProjectionRootCapabilities.ts","../testing/projections/ProjectionScalarConverter.ts","../testing/projections/ProjectionSchemaCapabilities.ts","../testing/projections/ProjectionValueConverter.ts","../testing/projections/UnsupportedProjectionOperation.ts","../testing/projections/for_ProjectionCapabilities/given/Changed.ts","../testing/projections/for_ProjectionCapabilities/given/Model.ts","../testing/projections/for_ProjectionCapabilities/given/Removed.ts","../testing/projections/for_ProjectionCapabilities/given/compile.ts","../transactions/AppendOptionNotSupportedInUnitOfWork.ts","../transactions/ConflictingAppendOptionNamesInUnitOfWork.ts","../transactions/ConflictingConcurrencyScopesInUnitOfWork.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/TransactionalAppendOptions.ts","../transactions/TransactionalEventRouting.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/concurrencyScopesAreEqual.ts","../transactions/index.ts","../transactions/resolveTransactionalAppendOptions.ts","../transactions/toEventForEventSourceId.ts","../transactions/for_UnitOfWork/given/a_unit_of_work_with_a_recording_store.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/chai/package.json","../../node_modules/@types/deep-eql/package.json","../../node_modules/@types/node/package.json","../../node_modules/@vitest/mocker/package.json","../../node_modules/assertion-error/package.json","../../node_modules/chai/package.json","../../node_modules/esbuild/package.json","../../node_modules/expect-type/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/tinybench/package.json","../../node_modules/ts-error/package.json","../../node_modules/tsx/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json","../../node_modules/vite/package.json","../../node_modules/vitest/package.json","../../node_modules/yaml/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@edge-runtime/vm/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/@vitejs/devtools/package.json","../../node_modules/@vitest/browser-playwright/package.json","../../node_modules/@vitest/browser-preview/package.json","../../node_modules/@vitest/browser-webdriverio/package.json","../../node_modules/@vitest/coverage-istanbul/package.json","../../node_modules/@vitest/coverage-v8/package.json","../../node_modules/@vitest/mocker/dist/package.json","../../node_modules/@vitest/ui/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/deep-eql/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/expect-type/dist/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/happy-dom/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/jiti/package.json","../../node_modules/jsdom/package.json","../../node_modules/less/package.json","../../node_modules/module/package.json","../../node_modules/msw/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sass-embedded/package.json","../../node_modules/sass/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/stylus/package.json","../../node_modules/sugarss/package.json","../../node_modules/terser/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tinybench/dist/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vite/dist/node/chunks/package.json","../../node_modules/vite/dist/node/package.json","../../node_modules/vite/dist/package.json","../../node_modules/vite/module-runner/package.json","../../node_modules/vite/types/package.json","../../node_modules/vitest/dist/chunks/package.json","../../node_modules/vitest/dist/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
package/package.json
CHANGED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { createHash } from 'node:crypto';
|
|
5
|
+
import type { AppendedEvent } from '../events/AppendedEvent.js';
|
|
6
|
+
import type { ConstraintCapture } from '../events/constraints/ConstraintBuilder.js';
|
|
7
|
+
import type { JsonSchema } from '../schemas/JsonSchema.js';
|
|
8
|
+
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
9
|
+
|
|
10
|
+
type KeyContext = { name: string; fractions: boolean };
|
|
11
|
+
type Claim = { key: string; parts: Array<{ property: string; raw: string }> };
|
|
12
|
+
|
|
13
|
+
// Only characters captured by the packaged oracle, not every valid event-content character.
|
|
14
|
+
const provenString = /^[A-Za-z0-9 .@_:\-|{}$\u00e9]*$/;
|
|
15
|
+
|
|
16
|
+
function guidKey(value: unknown, name: string): string {
|
|
17
|
+
if (typeof value === 'string' && /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(value)) return value.toLowerCase();
|
|
18
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only dashed Guid keys are fixture-backed.');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function isDecimalFraction(value: number): boolean {
|
|
22
|
+
// constraints-fractional-field-types.json: below 0.0001 .NET uses exponent strings, unlike JS.
|
|
23
|
+
// The rounding/boundary vectors match JS below 1e15; keep larger fractions conservatively rejected.
|
|
24
|
+
return Number.isFinite(value) && Math.abs(value) >= 0.0001 && Math.abs(value) < 1e15;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function numericKey(value: unknown, context: KeyContext): string {
|
|
28
|
+
if (typeof value === 'number') {
|
|
29
|
+
if (Number.isSafeInteger(value)) return String(value);
|
|
30
|
+
if (context.fractions && isDecimalFraction(value)) return String(value);
|
|
31
|
+
}
|
|
32
|
+
const reason = context.fractions
|
|
33
|
+
? 'Only safe-integer or fractional numeric keys with magnitude at least 0.0001 and below 1e15 are fixture-backed; other values require a kernel-backed test.'
|
|
34
|
+
: 'Only safe-integer numeric keys are fixture-backed; fractional, exponential and unsafe-integer comparisons require a kernel-backed test.';
|
|
35
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', context.name, reason);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function kernelKeyString(value: unknown, context: KeyContext, schema?: JsonSchema): string {
|
|
39
|
+
if (schema?.format === 'guid') return guidKey(value, context.name);
|
|
40
|
+
if (schema?.type === 'number') return numericKey(value, {
|
|
41
|
+
...context, fractions: context.fractions && [undefined, 'double'].includes(schema.format)
|
|
42
|
+
});
|
|
43
|
+
return scalarKey(value, context.name);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function scalarKey(value: unknown, name: string): string {
|
|
47
|
+
if (typeof value === 'string' && provenString.test(value)) return value;
|
|
48
|
+
if (typeof value === 'boolean') return value ? 'True' : 'False';
|
|
49
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name,
|
|
50
|
+
'Only fixture-backed scalar string and boolean keys are supported.');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function supportsFractions(capture: ConstraintCapture): boolean {
|
|
54
|
+
const unique = capture.uniqueConstraint!;
|
|
55
|
+
return !Object.values(capture.scope).some(Boolean) && !unique.ignoreCasing &&
|
|
56
|
+
unique.removedWithEventTypeId === undefined && !unique.removedWithEventTypeIds?.length &&
|
|
57
|
+
unique.eventDefinitions.every(entry => entry.properties.length === 1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function normalizedKey(joined: string, ignoreCasing: boolean, name: string): string {
|
|
61
|
+
if (!ignoreCasing) return joined;
|
|
62
|
+
// The pinned kernel's ToLowerInvariant is proven only for the existing ASCII domain.
|
|
63
|
+
if (!/^[\x20-\x7e]*$/.test(joined)) {
|
|
64
|
+
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name,
|
|
65
|
+
'Case-insensitive keys outside the ASCII key domain are not fixture-backed.');
|
|
66
|
+
}
|
|
67
|
+
return joined.replace(/[A-Z]/g, letter => String.fromCharCode(letter.charCodeAt(0) + 32));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Kernel keys join declared property strings with '-', not a tuple (constraints-composite.json). */
|
|
71
|
+
export function claimOf(name: string, capture: ConstraintCapture, event: AppendedEvent,
|
|
72
|
+
options: { schema?: JsonSchema; isolated: boolean }): Claim | undefined {
|
|
73
|
+
const unique = capture.uniqueConstraint!;
|
|
74
|
+
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === event.eventType.id.value)?.properties;
|
|
75
|
+
if (properties === undefined) return undefined;
|
|
76
|
+
const context = { name, fractions: options.isolated && supportsFractions(capture) };
|
|
77
|
+
const parts = properties.map(property => ({ property,
|
|
78
|
+
raw: kernelKeyString(event.content[property], context, options.schema?.properties?.[property]) }));
|
|
79
|
+
const joined = parts.map(part => part.raw).join('-');
|
|
80
|
+
return { key: createHash('sha256').update(normalizedKey(joined, unique.ignoreCasing, name)).digest('hex'), parts };
|
|
81
|
+
}
|
|
@@ -60,7 +60,8 @@ const fixtures = readdirSync(directory).filter(name => name.endsWith('.json') &&
|
|
|
60
60
|
'constraints-property-lifecycle.json', 'constraints-property-covered-removal.json', 'constraints-event-type-cycles.json',
|
|
61
61
|
'constraints-event-type-siblings.json', 'constraints-composite.json',
|
|
62
62
|
'constraints-ignore-casing.json', 'constraints-scopes.json', 'constraints-field-types.json', 'constraints-event-sequences.json',
|
|
63
|
-
'constraints-field-combinations.json', 'constraints-removal-combinations.json', 'constraints-overlapping-definitions.json'
|
|
63
|
+
'constraints-field-combinations.json', 'constraints-removal-combinations.json', 'constraints-overlapping-definitions.json',
|
|
64
|
+
'constraints-fractional-field-types.json', 'constraints-fractional-collisions.json'].includes(name)).map(name => ({
|
|
64
65
|
name, fixture: JSON.parse(readFileSync(new URL(name, directory), 'utf8')) as Fixture
|
|
65
66
|
}));
|
|
66
67
|
const artifacts = { eventTypes: [OracleEventRecorded, AlternateRecorded, BoundaryRecorded], constraints: [] };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Cratis. All rights reserved.
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
|
-
import { createHash } from 'node:crypto';
|
|
5
4
|
import type { ConstraintViolation as ContractsConstraintViolation } from '@cratis/chronicle.contracts';
|
|
6
5
|
import type { AppendedEvent } from '../events/AppendedEvent.js';
|
|
7
6
|
import type { ConstraintCapture } from '../events/constraints/ConstraintBuilder.js';
|
|
@@ -11,58 +10,11 @@ import type { JsonSchema } from '../schemas/JsonSchema.js';
|
|
|
11
10
|
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
12
11
|
import { eventTypeScopeKey, propertyScopeKey, scopeIndex } from './ConstraintScope.js';
|
|
13
12
|
import { supportsPropertyOverlap } from './PropertyDefinitionSupport.js';
|
|
13
|
+
import { claimOf } from './ConstraintKey.js';
|
|
14
14
|
|
|
15
15
|
export type WireConstraintViolation = ContractsConstraintViolation;
|
|
16
16
|
|
|
17
17
|
const unavailable = '18446744073709551615';
|
|
18
|
-
// Only the key characters captured by the packaged oracle, not every valid event-content character.
|
|
19
|
-
const provenString = /^[A-Za-z0-9 .@_:\-|{}$\u00e9]*$/;
|
|
20
|
-
|
|
21
|
-
function kernelKeyString(value: unknown, name: string, schema?: JsonSchema): string {
|
|
22
|
-
// constraints-field-types.json: the kernel converts Guid keys before comparing or reporting them.
|
|
23
|
-
if (schema?.format === 'guid') {
|
|
24
|
-
if (typeof value === 'string' && /^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(value)) return value.toLowerCase();
|
|
25
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name, 'Only dashed Guid keys are fixture-backed.');
|
|
26
|
-
}
|
|
27
|
-
// Avoid .NET floating-point formatting, exponent spelling and JavaScript precision loss.
|
|
28
|
-
if (schema?.type === 'number') {
|
|
29
|
-
if (typeof value === 'number' && Number.isSafeInteger(value)) return String(value);
|
|
30
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name,
|
|
31
|
-
'Only safe-integer numeric keys are fixture-backed; fractional, exponential and unsafe-integer comparisons require a kernel-backed test.');
|
|
32
|
-
}
|
|
33
|
-
if (typeof value === 'string' && provenString.test(value)) return value;
|
|
34
|
-
if (typeof value === 'boolean') return value ? 'True' : 'False';
|
|
35
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name,
|
|
36
|
-
'Only fixture-backed scalar string and boolean keys are supported.');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function keyHash(value: string): string {
|
|
40
|
-
return createHash('sha256').update(value).digest('hex');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type UniqueCapture = NonNullable<ConstraintCapture['uniqueConstraint']>;
|
|
44
|
-
type Claim = { key: string; parts: Array<{ property: string; raw: string }> };
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The kernel key: each declared property's string in declared order, joined with a literal '-'
|
|
48
|
-
* (UniqueConstraintDefinitionExtensions.GetPropertiesAndValues/GetValue at Chronicle 8fe5d30). Not a tuple:
|
|
49
|
-
* ['a-b', 'c'] and ['a', 'b-c'] claim the same key, as constraints-composite.json captures.
|
|
50
|
-
*/
|
|
51
|
-
function claimOf(name: string, unique: UniqueCapture, eventTypeId: string, content: Record<string, unknown>, schema?: JsonSchema): Claim | undefined {
|
|
52
|
-
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === eventTypeId)?.properties;
|
|
53
|
-
if (properties === undefined) return undefined;
|
|
54
|
-
const parts = properties.map(property => ({ property, raw: kernelKeyString(content[property], name, schema?.properties?.[property]) }));
|
|
55
|
-
const joined = parts.map(part => part.raw).join('-');
|
|
56
|
-
if (!unique.ignoreCasing) return { key: keyHash(joined), parts };
|
|
57
|
-
// The kernel applies .NET ToLowerInvariant to the joined value. constraints-ignore-casing.json proves
|
|
58
|
-
// only the ASCII key domain, where that is exactly A-Z to a-z; host Unicode case tables are not used.
|
|
59
|
-
if (!/^[\x20-\x7e]*$/.test(joined)) {
|
|
60
|
-
throw new UnsupportedEventSequenceOperation('artifacts.constraints', name,
|
|
61
|
-
'Case-insensitive keys outside the ASCII key domain are not fixture-backed.');
|
|
62
|
-
}
|
|
63
|
-
return { key: keyHash(joined.replace(/[A-Z]/g, letter => String.fromCharCode(letter.charCodeAt(0) + 32))), parts };
|
|
64
|
-
}
|
|
65
|
-
|
|
66
18
|
/** Narrow, fixture-backed constraint validation over serialized event snapshots. */
|
|
67
19
|
export class InProcessConstraints {
|
|
68
20
|
private readonly _constrainedProperties = new Map<string, Set<string>>();
|
|
@@ -190,7 +142,7 @@ export class InProcessConstraints {
|
|
|
190
142
|
}
|
|
191
143
|
const properties = unique.eventDefinitions.find(entry => entry.eventTypeId === type)?.properties;
|
|
192
144
|
if (properties === undefined) continue;
|
|
193
|
-
claims.set(source, { key: claimOf(name,
|
|
145
|
+
claims.set(source, { key: claimOf(name, definition, prior, { schema: this._schemas.get(type), isolated: this._definitions.size === 1 })!.key,
|
|
194
146
|
sequence: prior.context.sequenceNumber.toString() });
|
|
195
147
|
}
|
|
196
148
|
}
|
|
@@ -201,7 +153,7 @@ export class InProcessConstraints {
|
|
|
201
153
|
const source = event.context.eventSourceId;
|
|
202
154
|
const violationCount = violations.length;
|
|
203
155
|
for (const [name, definition] of this._definitions) {
|
|
204
|
-
const claim = definition.uniqueConstraint && claimOf(name, definition
|
|
156
|
+
const claim = definition.uniqueConstraint && claimOf(name, definition, event, { schema: this._schemas.get(type), isolated: this._definitions.size === 1 });
|
|
205
157
|
if (claim) {
|
|
206
158
|
const key = claim.key;
|
|
207
159
|
const scope = propertyScopeKey(definition.scope, event.context);
|
package/testing/for_EventScenario/when_appending_field_types/field_scenario_behaviors.fixture.ts
CHANGED
|
@@ -156,17 +156,21 @@ export function fieldScenarioBehaviors(fixtures: {
|
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
for (const
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
159
|
+
for (const [type, constraint] of [[fixtures.number, fixtures.numberConstraint], [fixtures.double, fixtures.doubleConstraint]] as const) {
|
|
160
|
+
for (const value of [0.00001, -0.00001, 1e-7, 1000000000000000.2, 4503599627370495.5,
|
|
161
|
+
-1000000000000000.2, -4503599627370495.5, 1e21, Number.MAX_SAFE_INTEGER + 1, -Number.MAX_SAFE_INTEGER - 1, NaN, Infinity]) {
|
|
162
|
+
describe(`when a constrained ${type.name} contains ${value}`, () => {
|
|
163
|
+
it('should reject the entire batch before recording results or history', async () => {
|
|
164
|
+
const scenario = new EventScenario({ artifacts: { eventTypes: [type], constraints: [constraint] } });
|
|
165
|
+
const event = new type(); event.key = value;
|
|
166
|
+
const error = await scenario.appendMany('A', [new type(), event]).then(() => undefined, error => error);
|
|
167
|
+
should(error).instanceOf(UnsupportedEventSequenceOperation);
|
|
168
|
+
should(scenario.results).have.lengthOf(0);
|
|
169
|
+
should(scenario.appendedEvents).have.lengthOf(0);
|
|
170
|
+
should((await scenario.eventSequence.getNextSequenceNumber()).value).equal(0n);
|
|
171
|
+
});
|
|
168
172
|
});
|
|
169
|
-
}
|
|
173
|
+
}
|
|
170
174
|
}
|
|
171
175
|
|
|
172
176
|
it('should normalize negative zero using production serialization before comparing numeric keys', async () => {
|
|
@@ -177,11 +181,13 @@ export function fieldScenarioBehaviors(fixtures: {
|
|
|
177
181
|
should((await scenario.append('B', negative)).isSuccess).equal(false);
|
|
178
182
|
});
|
|
179
183
|
|
|
180
|
-
const
|
|
184
|
+
const kernelFixtures = ['constraints-field-types', 'constraints-fractional-field-types'].map(name =>
|
|
185
|
+
JSON.parse(readFileSync(new URL(`../../fixtures/${name}.json`, import.meta.url), 'utf8')) as {
|
|
181
186
|
fieldConstraintCases: Array<{ kind: string; eventType: string; operations: Array<{ mode: string; events: Array<{ source: string; content: string }> }> }>;
|
|
182
187
|
expected: Array<{ fieldSchema: unknown; steps: Array<{ success: boolean; sequences: string[]; wireViolations: unknown[]; history: unknown[]; next: string }> }>;
|
|
183
|
-
};
|
|
184
|
-
for (const
|
|
188
|
+
});
|
|
189
|
+
for (const { fixture, caseIndex, test } of kernelFixtures.flatMap(fixture =>
|
|
190
|
+
fixture.fieldConstraintCases.map((test, caseIndex) => ({ fixture, test, caseIndex })))) {
|
|
185
191
|
if (test.kind !== 'kernelSemantics') continue;
|
|
186
192
|
describe(`when replaying the packaged ${test.eventType} constraint fixture`, () => {
|
|
187
193
|
it('should match every raw violation, hash, history, sequence and atomic rejection', async () => {
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { readFileSync } from 'node:fs';
|
|
5
|
+
import type { Constructor } from '@cratis/fundamentals';
|
|
6
|
+
import { beforeEach, chai, describe, it, vi, type Assertion } from 'vitest';
|
|
7
|
+
import { getEventTypeMetadata } from '../../../events/eventTypeDecorator.js';
|
|
8
|
+
import { EventScenario, UnsupportedEventSequenceOperation } from '../../index.js';
|
|
9
|
+
import { InProcessConstraints } from '../../InProcessConstraints.js';
|
|
10
|
+
|
|
11
|
+
chai.should();
|
|
12
|
+
const should = (value: unknown): Assertion => (value as { should: Assertion }).should;
|
|
13
|
+
|
|
14
|
+
type Input = { source: string; type: 'number' | 'string'; value: number | string };
|
|
15
|
+
type WireViolation = { SequenceNumber: string; ConstraintName: string; Message: string; Details: Record<string, string> };
|
|
16
|
+
type RejectedDefinition = { name: string; eventTypes: Constructor[]; constraints: Constructor[]; eventType: Constructor<{ key: number }> };
|
|
17
|
+
type Fixture = {
|
|
18
|
+
fieldCombinationCases: Array<{ isolatedConstraintOperations: Array<{ mode: string; events: Input[] }> }>;
|
|
19
|
+
expected: { cases: Array<{ name: string; outcomes: Array<{
|
|
20
|
+
success: boolean; sequences: string[]; wireViolations: WireViolation[]; next: string;
|
|
21
|
+
}> }> };
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export function fractionalCollisions(fixtures: { number: Constructor<{ key: number }>; text: Constructor<{ key: string }>;
|
|
25
|
+
constraint: Constructor; scoped: Constructor; rejectedDefinitions: RejectedDefinition[] }): void {
|
|
26
|
+
const fixture = JSON.parse(readFileSync(new URL('../../fixtures/constraints-fractional-collisions.json', import.meta.url), 'utf8')) as Fixture;
|
|
27
|
+
const operations = fixture.fieldCombinationCases[0].isolatedConstraintOperations;
|
|
28
|
+
const outcomes = fixture.expected.cases[0].outcomes;
|
|
29
|
+
const eventTypes = [fixtures.number, fixtures.text];
|
|
30
|
+
|
|
31
|
+
describe('when replaying unscoped string and fractional key collisions', () => {
|
|
32
|
+
it('should match the kernel violations and atomic ownership transitions after every request', async () => {
|
|
33
|
+
should(fixture.expected.cases[0].name).equal('fractional-0');
|
|
34
|
+
should(operations.length).equal(outcomes.length);
|
|
35
|
+
should(getEventTypeMetadata(fixtures.number)!.eventType.id.value).equal('OracleCombinedNumber');
|
|
36
|
+
should(getEventTypeMetadata(fixtures.text)!.eventType.id.value).equal('OracleCombinedText');
|
|
37
|
+
const scenario = new EventScenario({ artifacts: { eventTypes, constraints: [fixtures.constraint] } });
|
|
38
|
+
const validate = vi.spyOn(InProcessConstraints.prototype, 'validate');
|
|
39
|
+
try {
|
|
40
|
+
for (const [index, operation] of operations.entries()) {
|
|
41
|
+
const expected = outcomes[index];
|
|
42
|
+
const entries = operation.events.map(input => ({ eventSourceId: input.source,
|
|
43
|
+
event: Object.assign(new (input.type === 'number' ? fixtures.number : fixtures.text)(), { key: input.value }) }));
|
|
44
|
+
const before = [...scenario.appendedEvents];
|
|
45
|
+
const results = operation.mode === 'single'
|
|
46
|
+
? [await scenario.append(entries[0].eventSourceId, entries[0].event)] : await scenario.appendMany(entries);
|
|
47
|
+
should(results.every(result => result.isSuccess === expected.success)).equal(true);
|
|
48
|
+
should(results.map(result => result.sequenceNumber.value.toString())).deep.equal(
|
|
49
|
+
expected.success ? expected.sequences : results.map(() => '0'));
|
|
50
|
+
const raw = validate.mock.results.at(-1)!.value as ReturnType<InProcessConstraints['validate']>;
|
|
51
|
+
should(raw.map(violation => ({ ...violation, SequenceNumber: violation.SequenceNumber.toString() }))).deep.equal(expected.wireViolations);
|
|
52
|
+
for (const result of results) {
|
|
53
|
+
should(result.constraintViolations.map(item => ({ id: item.constraintId, message: item.message, details: item.details })))
|
|
54
|
+
.deep.equal(expected.wireViolations.map(item => ({ id: item.ConstraintName,
|
|
55
|
+
message: `Taken: ${item.Details.PropertyName}=${item.Details.PropertyValue}`, details: item.Details })));
|
|
56
|
+
}
|
|
57
|
+
if (!expected.success) should(scenario.appendedEvents).deep.equal(before);
|
|
58
|
+
else should(scenario.appendedEvents.slice(before.length).map(entry => entry.context.eventSourceId))
|
|
59
|
+
.deep.equal(operation.events.map(entry => entry.source));
|
|
60
|
+
should((await scenario.eventSequence.getNextSequenceNumber()).value.toString()).equal(expected.next);
|
|
61
|
+
}
|
|
62
|
+
} finally { validate.mockRestore(); }
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
for (const shape of [{ name: 'scoped', eventTypes, constraints: [fixtures.scoped], eventType: fixtures.number },
|
|
67
|
+
...fixtures.rejectedDefinitions]) {
|
|
68
|
+
describe(`when a ${shape.name} number attempts to use the new unscoped fractional domain`, () => {
|
|
69
|
+
let scenario: EventScenario;
|
|
70
|
+
let error: unknown;
|
|
71
|
+
let history: EventScenario['appendedEvents'];
|
|
72
|
+
let results: EventScenario['results'];
|
|
73
|
+
let next: bigint;
|
|
74
|
+
beforeEach(async () => {
|
|
75
|
+
scenario = new EventScenario({ artifacts: { eventTypes: shape.eventTypes, constraints: shape.constraints } });
|
|
76
|
+
should((await scenario.append('Existing', new shape.eventType())).isSuccess).equal(true);
|
|
77
|
+
history = [...scenario.appendedEvents];
|
|
78
|
+
results = [...scenario.results];
|
|
79
|
+
next = (await scenario.eventSequence.getNextSequenceNumber()).value;
|
|
80
|
+
const invalid = Object.assign(new shape.eventType(), { key: 1.5 });
|
|
81
|
+
error = await scenario.appendMany('A', [new shape.eventType(), invalid]).then(() => undefined, error => error);
|
|
82
|
+
});
|
|
83
|
+
it('should reject without changing existing history, results or sequence', async () => {
|
|
84
|
+
should(error instanceof UnsupportedEventSequenceOperation).equal(true);
|
|
85
|
+
should(scenario.appendedEvents).deep.equal(history);
|
|
86
|
+
should(scenario.results).deep.equal(results);
|
|
87
|
+
should((await scenario.eventSequence.getNextSequenceNumber()).value).equal(next);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import 'reflect-metadata';
|
|
5
|
+
import { field } from '@cratis/fundamentals';
|
|
6
|
+
import { eventType } from '../../../events/eventTypeDecorator.js';
|
|
7
|
+
import { constraint } from '../../../events/constraints/constraint.js';
|
|
8
|
+
import type { IConstraintBuilder } from '../../../events/constraints/IConstraintBuilder.js';
|
|
9
|
+
import { fractionalCollisions } from './fractional_collisions.fixture.js';
|
|
10
|
+
|
|
11
|
+
class NumberClaimed { @field(Number) key = 1; }
|
|
12
|
+
eventType('OracleCombinedNumber')(NumberClaimed);
|
|
13
|
+
class TextClaimed { @field(String) key = ''; }
|
|
14
|
+
eventType('OracleCombinedText')(TextClaimed);
|
|
15
|
+
class PairClaimed { @field(Number) key = 1; @field(Number) suffix = 2; }
|
|
16
|
+
eventType('OracleFractionalPair')(PairClaimed);
|
|
17
|
+
class Removed {}
|
|
18
|
+
eventType('OracleFractionalRemoved')(Removed);
|
|
19
|
+
class SharedKey {
|
|
20
|
+
define(builder: IConstraintBuilder) {
|
|
21
|
+
builder.unique(key => key.on(NumberClaimed, event => event.key).on(TextClaimed, event => event.key)
|
|
22
|
+
.withMessage('Taken: {PropertyName}={PropertyValue}'));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
constraint('OracleFractionalKey')(SharedKey);
|
|
26
|
+
class ScopedKey extends SharedKey {
|
|
27
|
+
define(builder: IConstraintBuilder) { super.define(builder.perEventSourceType()); }
|
|
28
|
+
}
|
|
29
|
+
constraint('OracleFractionalKey')(ScopedKey);
|
|
30
|
+
class CompositeKey {
|
|
31
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(PairClaimed, event => event.key, event => event.suffix)); }
|
|
32
|
+
}
|
|
33
|
+
constraint('OracleFractionalComposite')(CompositeKey);
|
|
34
|
+
class RemovableKey {
|
|
35
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(NumberClaimed, event => event.key).removedWith(Removed)); }
|
|
36
|
+
}
|
|
37
|
+
constraint('OracleFractionalRemovable')(RemovableKey);
|
|
38
|
+
class OverlapLeft {
|
|
39
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(PairClaimed, event => event.key)); }
|
|
40
|
+
}
|
|
41
|
+
constraint('OracleFractionalOverlapLeft')(OverlapLeft);
|
|
42
|
+
class OverlapRight {
|
|
43
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(PairClaimed, event => event.suffix)); }
|
|
44
|
+
}
|
|
45
|
+
constraint('OracleFractionalOverlapRight')(OverlapRight);
|
|
46
|
+
|
|
47
|
+
fractionalCollisions({ number: NumberClaimed, text: TextClaimed, constraint: SharedKey, scoped: ScopedKey, rejectedDefinitions: [
|
|
48
|
+
{ name: 'composite', eventTypes: [PairClaimed], constraints: [CompositeKey], eventType: PairClaimed },
|
|
49
|
+
{ name: 'removable', eventTypes: [NumberClaimed, Removed], constraints: [RemovableKey], eventType: NumberClaimed },
|
|
50
|
+
{ name: 'overlapping', eventTypes: [PairClaimed], constraints: [OverlapLeft, OverlapRight], eventType: PairClaimed }
|
|
51
|
+
] });
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
|
|
4
|
+
import { field } from '@cratis/fundamentals';
|
|
5
|
+
import { eventType } from '../../../events/eventTypeDecorator.js';
|
|
6
|
+
import { constraint } from '../../../events/constraints/constraint.js';
|
|
7
|
+
import type { IConstraintBuilder } from '../../../events/constraints/IConstraintBuilder.js';
|
|
8
|
+
import { fractionalCollisions } from './fractional_collisions.fixture.js';
|
|
9
|
+
|
|
10
|
+
@eventType('OracleCombinedNumber')
|
|
11
|
+
class NumberClaimed { @field(Number) key = 1; }
|
|
12
|
+
@eventType('OracleCombinedText')
|
|
13
|
+
class TextClaimed { @field(String) key = ''; }
|
|
14
|
+
@eventType('OracleFractionalPair')
|
|
15
|
+
class PairClaimed { @field(Number) key = 1; @field(Number) suffix = 2; }
|
|
16
|
+
@eventType('OracleFractionalRemoved')
|
|
17
|
+
class Removed {}
|
|
18
|
+
@constraint('OracleFractionalKey')
|
|
19
|
+
class SharedKey {
|
|
20
|
+
define(builder: IConstraintBuilder) {
|
|
21
|
+
builder.unique(key => key.on(NumberClaimed, event => event.key).on(TextClaimed, event => event.key)
|
|
22
|
+
.withMessage('Taken: {PropertyName}={PropertyValue}'));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@constraint('OracleFractionalKey')
|
|
26
|
+
class ScopedKey extends SharedKey {
|
|
27
|
+
define(builder: IConstraintBuilder) { super.define(builder.perEventSourceType()); }
|
|
28
|
+
}
|
|
29
|
+
@constraint('OracleFractionalComposite')
|
|
30
|
+
class CompositeKey {
|
|
31
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(PairClaimed, event => event.key, event => event.suffix)); }
|
|
32
|
+
}
|
|
33
|
+
@constraint('OracleFractionalRemovable')
|
|
34
|
+
class RemovableKey {
|
|
35
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(NumberClaimed, event => event.key).removedWith(Removed)); }
|
|
36
|
+
}
|
|
37
|
+
@constraint('OracleFractionalOverlapLeft')
|
|
38
|
+
class OverlapLeft {
|
|
39
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(PairClaimed, event => event.key)); }
|
|
40
|
+
}
|
|
41
|
+
@constraint('OracleFractionalOverlapRight')
|
|
42
|
+
class OverlapRight {
|
|
43
|
+
define(builder: IConstraintBuilder) { builder.unique(key => key.on(PairClaimed, event => event.suffix)); }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
fractionalCollisions({ number: NumberClaimed, text: TextClaimed, constraint: SharedKey, scoped: ScopedKey, rejectedDefinitions: [
|
|
47
|
+
{ name: 'composite', eventTypes: [PairClaimed], constraints: [CompositeKey], eventType: PairClaimed },
|
|
48
|
+
{ name: 'removable', eventTypes: [NumberClaimed, Removed], constraints: [RemovableKey], eventType: NumberClaimed },
|
|
49
|
+
{ name: 'overlapping', eventTypes: [PairClaimed], constraints: [OverlapLeft, OverlapRight], eventType: PairClaimed }
|
|
50
|
+
] });
|