@cratis/chronicle 6.67.6 → 6.67.7
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/InProcessEventPayload.d.ts.map +1 -1
- package/dist/testing/InProcessEventPayload.js +2 -1
- package/dist/testing/InProcessEventPayload.js.map +1 -1
- package/dist/testing/KernelTextHash.d.ts +7 -0
- package/dist/testing/KernelTextHash.d.ts.map +1 -0
- package/dist/testing/KernelTextHash.js +15 -0
- package/dist/testing/KernelTextHash.js.map +1 -0
- package/dist/testing/MeasuredConstraintKeys.d.ts.map +1 -1
- package/dist/testing/MeasuredConstraintKeys.js +3 -2
- package/dist/testing/MeasuredConstraintKeys.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/testing/EventScenario.rejections.spec.ts +1 -1
- package/testing/InProcessEventPayload.ts +2 -1
- package/testing/KernelTextHash.ts +17 -0
- package/testing/MeasuredConstraintKeys.ts +3 -2
- package/testing/for_EventScenario/when_appending_astral_text/with_plain_text.spec.ts +34 -0
- package/testing/for_EventScenario/when_appending_field_types/field_key_measurements.fixture.ts +4 -5
- package/testing/for_KernelTextHash/when_escaping_json/with_supplementary_characters.spec.ts +28 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InProcessEventPayload.d.ts","sourceRoot":"","sources":["../../testing/InProcessEventPayload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"InProcessEventPayload.d.ts","sourceRoot":"","sources":["../../testing/InProcessEventPayload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAUhE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG,0FAA0F;AAC1F,qBAAa,qBAAqB;IAClB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAAqC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;IAA1G,YAA6B,WAAW,EAAE,iCAAiC,EAAmB,WAAW,CAAC,EAAE,oBAAoB,YAAA,EAAI;IAEpI,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAC/D,cAAc,SAA2C,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQtF;IAED,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAG7E;IAED,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAa5C;IAED,OAAO,CAAC,KAAK;IAKb,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,iBAAiB;CAI5B"}
|
|
@@ -8,6 +8,7 @@ import { EventTypeGeneration } from '../events/EventTypeGeneration.js';
|
|
|
8
8
|
import { Tag } from '../events/Tag.js';
|
|
9
9
|
import { Identity } from '../identity/Identity.js';
|
|
10
10
|
import { matchesEventField } from './EventFieldSchema.js';
|
|
11
|
+
import { kernelEscapedJson } from './KernelTextHash.js';
|
|
11
12
|
import { isMeasuredText } from './MeasuredConstraintKeys.js';
|
|
12
13
|
/** Schema-bound payload validation, canonical hashing, and isolated history snapshots. */
|
|
13
14
|
export class InProcessEventPayload {
|
|
@@ -28,7 +29,7 @@ export class InProcessEventPayload {
|
|
|
28
29
|
}
|
|
29
30
|
hash(typeId, source, content) {
|
|
30
31
|
const canonical = Object.fromEntries(Object.entries(content).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0));
|
|
31
|
-
return createHash('sha256').update(`${typeId}|${source}|${JSON.stringify(canonical)}`).digest('base64');
|
|
32
|
+
return createHash('sha256').update(`${typeId}|${source}|${kernelEscapedJson(JSON.stringify(canonical))}`).digest('base64');
|
|
32
33
|
}
|
|
33
34
|
snapshot(event) {
|
|
34
35
|
const eventType = new EventType(new EventTypeId(event.eventType.id.value), new EventTypeGeneration(event.eventType.generation.value), event.eventType.tombstone);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InProcessEventPayload.js","sourceRoot":"","sources":["../../testing/InProcessEventPayload.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,SAAS,EAAoB,MAAM,sBAAsB,CAAC;AAErG,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAI7D,0FAA0F;AAC1F,MAAM,OAAO,qBAAqB;IACD,WAAW;IAAsD,WAAW;IAAzG,YAA6B,WAA8C,EAAmB,WAAkC;2BAAnG,WAAW;2BAAsD,WAAW;IAA0B,CAAC;IAEpI,cAAc,CAAC,KAAa,EAAE,UAAkB,EAAE,SAAiB,EAC/D,cAAc,GAAG,wCAAwC;QACzD,MAAM,OAAO,GAAG,IAAI,CAAC,KAA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,CAAE,CAAC;QAClE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,qBAAqB,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC5F,OAAO,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC;IAEO,uBAAuB,CAAC,KAAc,EAAE,OAAgB;QAC5D,sFAAsF;QACtF,wFAAwF;QACxF,IAAI,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC;YAAE,OAAO,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACtG,OAAO,KAAK,KAAK,OAAO,CAAC;IAC7B,CAAC;IAEO,iBAAiB,CAAC,KAAc;QACpC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC;QACtD,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,WAA0B,CAAC,IAAI,EAAE,CAAC,CAAC;IAClG,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kernel hashes JSON written with the relaxed encoder, which escapes every supplementary-plane character
|
|
3
|
+
* as two uppercase UTF-16 escapes while keeping measured BMP characters literal. Only actual surrogate pairs are
|
|
4
|
+
* rewritten, so literal backslash-u text and the stored content are untouched.
|
|
5
|
+
*/
|
|
6
|
+
export declare function kernelEscapedJson(json: string): string;
|
|
7
|
+
//# sourceMappingURL=KernelTextHash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KernelTextHash.d.ts","sourceRoot":"","sources":["../../testing/KernelTextHash.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
const surrogatePair = /[\ud800-\udbff][\udc00-\udfff]/g;
|
|
4
|
+
function escapeUnit(unit) {
|
|
5
|
+
return `\\u${unit.charCodeAt(0).toString(16).toUpperCase().padStart(4, '0')}`;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The kernel hashes JSON written with the relaxed encoder, which escapes every supplementary-plane character
|
|
9
|
+
* as two uppercase UTF-16 escapes while keeping measured BMP characters literal. Only actual surrogate pairs are
|
|
10
|
+
* rewritten, so literal backslash-u text and the stored content are untouched.
|
|
11
|
+
*/
|
|
12
|
+
export function kernelEscapedJson(json) {
|
|
13
|
+
return json.replace(surrogatePair, pair => escapeUnit(pair[0]) + escapeUnit(pair[1]));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=KernelTextHash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KernelTextHash.js","sourceRoot":"","sources":["../../testing/KernelTextHash.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,MAAM,aAAa,GAAG,iCAAiC,CAAC;AAExD,SAAS,UAAU,CAAC,IAAY;IAC5B,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAClF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC1C,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasuredConstraintKeys.d.ts","sourceRoot":"","sources":["../../testing/MeasuredConstraintKeys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MeasuredConstraintKeys.d.ts","sourceRoot":"","sources":["../../testing/MeasuredConstraintKeys.ts"],"names":[],"mappings":"AAaA,sGAAsG;AACtG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAqC;AAG3F,KAAK,eAAe,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,OAAO,CAAA;CAAE,CAAC;AAM1G,gFAAgF;AAChF,wBAAgB,yBAAyB,CAAC,MAAM,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC5F,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAIzD;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE3E;AAED,uGAAuG;AACvG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAKzG"}
|
|
@@ -1,8 +1,9 @@
|
|
|
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
|
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
4
|
-
// constraints-field-key-measurements.json: exact characters, not a general Unicode/control range.
|
|
5
|
-
|
|
4
|
+
// constraints-field-key-measurements.json: exact characters and scalars, not a general Unicode/control range.
|
|
5
|
+
// The unicode flag matches whole scalars, so lone or unmeasured surrogate combinations never match.
|
|
6
|
+
const measuredText = /^[\x00\x01\x08-\x0a\x0c\x0d\x20-\x7e\u00c9\u00df\u00e9\u00f8\u0301\u4eac\u6771\u{10000}\u{10400}\u{1d11e}\u{1f600}\u{1f642}\u{20000}\u{10ffff}]*$/u;
|
|
6
7
|
const numericValues = {
|
|
7
8
|
decimal: [0.1, -1.2345, 1.2345678901234567, 0.000001],
|
|
8
9
|
float: [0.1, -1.2345, 1.2345679]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasuredConstraintKeys.js","sourceRoot":"","sources":["../../testing/MeasuredConstraintKeys.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,
|
|
1
|
+
{"version":3,"file":"MeasuredConstraintKeys.js","sourceRoot":"","sources":["../../testing/MeasuredConstraintKeys.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,8GAA8G;AAC9G,oGAAoG;AACpG,MAAM,YAAY,GAAG,oJAAoJ,CAAC;AAC1K,MAAM,aAAa,GAAgD;IAC/D,OAAO,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAAQ,CAAC;IACrD,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,SAAS,CAAC;CACnC,CAAC;AAEF,sGAAsG;AACtG,MAAM,UAAU,cAAc,CAAC,KAAa,IAAa,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAE3F,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,CAAC,mBAAmB,EAAE,kBAAkB,EA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@ -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/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/MeasuredConstraintKeys.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/KernelTextHash.ts","../testing/MeasuredConstraintKeys.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
|
@@ -196,7 +196,7 @@ describe('when the fixture-bounded event sequence encounters unproven operations
|
|
|
196
196
|
}
|
|
197
197
|
for (const [name, value] of [
|
|
198
198
|
['DEL', '\u007f'], ['Japanese outside measured characters', '日本'], ['unmeasured control', '\u0002'],
|
|
199
|
-
['emoji', '
|
|
199
|
+
['unmeasured emoji', '\u{1f601}'], ['lone high surrogate', '\ud83d'], ['reversed surrogate pair', '\ude00\ud83d'], ['Greek outside measured letters', 'λ']
|
|
200
200
|
] as const) {
|
|
201
201
|
it(`should reject ${name} outside the fixture-backed content domain`, async () => {
|
|
202
202
|
const subject = scenario();
|
|
@@ -11,6 +11,7 @@ import { Tag } from '../events/Tag.js';
|
|
|
11
11
|
import { Identity } from '../identity/Identity.js';
|
|
12
12
|
import type { JsonSchema } from '../schemas/JsonSchema.js';
|
|
13
13
|
import { matchesEventField } from './EventFieldSchema.js';
|
|
14
|
+
import { kernelEscapedJson } from './KernelTextHash.js';
|
|
14
15
|
import { isMeasuredText } from './MeasuredConstraintKeys.js';
|
|
15
16
|
import type { InProcessConstraints } from './InProcessConstraints.js';
|
|
16
17
|
import type { InProcessEventSequenceEnvironment } from './InProcessEventSequenceEnvironment.js';
|
|
@@ -32,7 +33,7 @@ export class InProcessEventPayload {
|
|
|
32
33
|
|
|
33
34
|
hash(typeId: string, source: string, content: Record<string, unknown>): string {
|
|
34
35
|
const canonical = Object.fromEntries(Object.entries(content).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0));
|
|
35
|
-
return createHash('sha256').update(`${typeId}|${source}|${JSON.stringify(canonical)}`).digest('base64');
|
|
36
|
+
return createHash('sha256').update(`${typeId}|${source}|${kernelEscapedJson(JSON.stringify(canonical))}`).digest('base64');
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
snapshot(event: AppendedEvent): AppendedEvent {
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
const surrogatePair = /[\ud800-\udbff][\udc00-\udfff]/g;
|
|
5
|
+
|
|
6
|
+
function escapeUnit(unit: string): string {
|
|
7
|
+
return `\\u${unit.charCodeAt(0).toString(16).toUpperCase().padStart(4, '0')}`;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The kernel hashes JSON written with the relaxed encoder, which escapes every supplementary-plane character
|
|
12
|
+
* as two uppercase UTF-16 escapes while keeping measured BMP characters literal. Only actual surrogate pairs are
|
|
13
|
+
* rewritten, so literal backslash-u text and the stored content are untouched.
|
|
14
|
+
*/
|
|
15
|
+
export function kernelEscapedJson(json: string): string {
|
|
16
|
+
return json.replace(surrogatePair, pair => escapeUnit(pair[0]) + escapeUnit(pair[1]));
|
|
17
|
+
}
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
import { UnsupportedEventSequenceOperation } from './UnsupportedEventSequenceOperation.js';
|
|
5
5
|
|
|
6
|
-
// constraints-field-key-measurements.json: exact characters, not a general Unicode/control range.
|
|
7
|
-
|
|
6
|
+
// constraints-field-key-measurements.json: exact characters and scalars, not a general Unicode/control range.
|
|
7
|
+
// The unicode flag matches whole scalars, so lone or unmeasured surrogate combinations never match.
|
|
8
|
+
const measuredText = /^[\x00\x01\x08-\x0a\x0c\x0d\x20-\x7e\u00c9\u00df\u00e9\u00f8\u0301\u4eac\u6771\u{10000}\u{10400}\u{1d11e}\u{1f600}\u{1f642}\u{20000}\u{10ffff}]*$/u;
|
|
8
9
|
const numericValues: Readonly<Record<string, readonly number[]>> = {
|
|
9
10
|
decimal: [0.1, -1.2345, 1.2345678901234567, 0.000001],
|
|
10
11
|
float: [0.1, -1.2345, 1.2345679]
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { createHash } from 'node:crypto';
|
|
6
|
+
import { chai, describe, it } from 'vitest';
|
|
7
|
+
import { field } from '@cratis/fundamentals';
|
|
8
|
+
import { eventType } from '../../../events/eventTypeDecorator.js';
|
|
9
|
+
import { EventScenario } from '../../index.js';
|
|
10
|
+
|
|
11
|
+
chai.should();
|
|
12
|
+
|
|
13
|
+
class Noted {
|
|
14
|
+
@field(String) name = '';
|
|
15
|
+
}
|
|
16
|
+
eventType('AstralNoted')(Noted);
|
|
17
|
+
|
|
18
|
+
describe('when appending a plain string with a supplementary character', () => {
|
|
19
|
+
it('should keep the content literal and hash the kernel-escaped JSON', async () => {
|
|
20
|
+
const scenario = new EventScenario({ artifacts: { eventTypes: [Noted] }, constraints: 'disabled' });
|
|
21
|
+
const result = await scenario.append('A', Object.assign(new Noted(), { name: 'a\u{1f600}\u{10ffff}' }));
|
|
22
|
+
result.isSuccess.should.equal(true);
|
|
23
|
+
scenario.appendedEvents[0].content.should.deep.equal({ name: 'a\u{1f600}\u{10ffff}' });
|
|
24
|
+
scenario.appendedEvents[0].context.hash.should.equal(createHash('sha256')
|
|
25
|
+
.update('AstralNoted|A|{"name":"a\\uD83D\\uDE00\\uDBFF\\uDFFF"}').digest('base64'));
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('should reject an unmeasured supplementary character', async () => {
|
|
29
|
+
const scenario = new EventScenario({ artifacts: { eventTypes: [Noted] }, constraints: 'disabled' });
|
|
30
|
+
const error = await scenario.append('A', Object.assign(new Noted(), { name: '\u{1f601}' })).then(() => undefined, caught => caught);
|
|
31
|
+
(error !== undefined).should.equal(true);
|
|
32
|
+
scenario.appendedEvents.should.have.lengthOf(0);
|
|
33
|
+
});
|
|
34
|
+
});
|
package/testing/for_EventScenario/when_appending_field_types/field_key_measurements.fixture.ts
CHANGED
|
@@ -93,7 +93,7 @@ export function fieldKeyMeasurements(types: Types): void {
|
|
|
93
93
|
const metadata = getEventTypeMetadata(type)!;
|
|
94
94
|
metadata.schema.properties!.key = fixture.fieldSchemas[metadata.eventType.id.value];
|
|
95
95
|
}
|
|
96
|
-
// Replay complete supported prefixes; later numeric
|
|
96
|
+
// Replay complete supported prefixes; later numeric vectors remain kernel-only measurements.
|
|
97
97
|
replay(types.text, 0);
|
|
98
98
|
replay(types.decimal, 1);
|
|
99
99
|
replay(types.float, 2);
|
|
@@ -104,7 +104,7 @@ export function fieldKeyMeasurements(types: Types): void {
|
|
|
104
104
|
|
|
105
105
|
function rejectUnmeasured(types: Types): void {
|
|
106
106
|
for (const [type, values] of [
|
|
107
|
-
[types.text, ['
|
|
107
|
+
[types.text, ['\u{1f601}', '\u{10001}', '\ud83d', '\ude00', '\ude00\ud83d', '\ud83dx', 'λ', '\u0002']],
|
|
108
108
|
[types.decimal, [1e-7, 1e21, 1.5]],
|
|
109
109
|
[types.float, [1.23456789, 1e-7, 1e21, 0.000001, 1.5]]
|
|
110
110
|
] as const) {
|
|
@@ -147,12 +147,11 @@ function rejectUnmeasured(types: Types): void {
|
|
|
147
147
|
|
|
148
148
|
function rejectShapes(types: Types): void {
|
|
149
149
|
for (const mode of ['scoped', 'removable', 'ignoreCasing', 'overlapping']) {
|
|
150
|
-
for (const type of
|
|
151
|
-
it(`should keep new ${type.name}
|
|
150
|
+
for (const [type, value] of [[types.text, '東京'], [types.text, '\u{1f600}'], [types.decimal, 0.1], [types.float, 0.1]] as const) {
|
|
151
|
+
it(`should keep new ${type.name} key ${JSON.stringify(value)} rejected for ${mode} definitions`, async () => {
|
|
152
152
|
const constraints = mode === 'overlapping'
|
|
153
153
|
? [definition(type), definition(type, 'plain', 'OtherKey')]
|
|
154
154
|
: [definition(type, mode)];
|
|
155
|
-
const value = type === types.text ? '東京' : 0.1;
|
|
156
155
|
const error = await Promise.resolve().then(() => scenarioFor(type, constraints))
|
|
157
156
|
.then(scenario => scenario.append('A', Object.assign(new type(), { key: value }))).then(() => undefined, error => error);
|
|
158
157
|
should(error).instanceOf(UnsupportedEventSequenceOperation);
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { chai, describe, it } from 'vitest';
|
|
5
|
+
import { kernelEscapedJson } from '../../KernelTextHash.js';
|
|
6
|
+
|
|
7
|
+
chai.should();
|
|
8
|
+
|
|
9
|
+
describe('when escaping JSON with supplementary characters', () => {
|
|
10
|
+
it('should write each surrogate as an uppercase escape', () => {
|
|
11
|
+
kernelEscapedJson(JSON.stringify({ key: '\u{1f600}' })).should.equal('{"key":"\\uD83D\\uDE00"}');
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('should escape the highest scalar and adjacent pairs', () => {
|
|
15
|
+
kernelEscapedJson('"\u{10ffff}\u{10000}\u{1f600}\u{1f642}"').should.equal('"\\uDBFF\\uDFFF\\uD800\\uDC00\\uD83D\\uDE00\\uD83D\\uDE42"');
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('should keep BMP characters, quotes and escapes literal', () => {
|
|
19
|
+
const json = JSON.stringify({ key: '\u00e9\u4eac\u0301"\\\n\u0000' });
|
|
20
|
+
kernelEscapedJson(json).should.equal(json);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should not touch literal backslash-u text or escape it twice', () => {
|
|
24
|
+
const json = JSON.stringify({ key: '\\uD83D\\uDE00' });
|
|
25
|
+
kernelEscapedJson(json).should.equal(json);
|
|
26
|
+
kernelEscapedJson(kernelEscapedJson(JSON.stringify('\u{1f600}'))).should.equal('"\\uD83D\\uDE00"');
|
|
27
|
+
});
|
|
28
|
+
});
|