@fabricorg/platform 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +216 -3
  3. package/dist/actions/index.cjs +6 -6
  4. package/dist/actions/index.d.cts +85 -3
  5. package/dist/actions/index.d.ts +85 -3
  6. package/dist/actions/index.js +1 -1
  7. package/dist/adapters/index.cjs +33 -9
  8. package/dist/adapters/index.d.cts +388 -1
  9. package/dist/adapters/index.d.ts +388 -1
  10. package/dist/adapters/index.js +1 -1
  11. package/dist/certification/index.cjs +6 -6
  12. package/dist/certification/index.js +3 -3
  13. package/dist/{chunk-VZ6C4LXC.cjs → chunk-45OKKLNY.cjs} +17 -9
  14. package/dist/chunk-45OKKLNY.cjs.map +1 -0
  15. package/dist/chunk-5FOCPRTR.js +511 -0
  16. package/dist/chunk-5FOCPRTR.js.map +1 -0
  17. package/dist/{chunk-USDLP4E7.cjs → chunk-5IVFPWK6.cjs} +4 -4
  18. package/dist/{chunk-USDLP4E7.cjs.map → chunk-5IVFPWK6.cjs.map} +1 -1
  19. package/dist/chunk-6HY35TKB.cjs +491 -0
  20. package/dist/chunk-6HY35TKB.cjs.map +1 -0
  21. package/dist/chunk-6UGEIDLC.cjs +26 -0
  22. package/dist/chunk-6UGEIDLC.cjs.map +1 -0
  23. package/dist/chunk-BJGZE3GE.js +20 -0
  24. package/dist/chunk-BJGZE3GE.js.map +1 -0
  25. package/dist/{chunk-X3GHYMAJ.cjs → chunk-CRZXTZ36.cjs} +2 -22
  26. package/dist/chunk-CRZXTZ36.cjs.map +1 -0
  27. package/dist/{chunk-TMMP4U2D.cjs → chunk-DBTAUI6C.cjs} +5 -2
  28. package/dist/chunk-DBTAUI6C.cjs.map +1 -0
  29. package/dist/{chunk-UYCQV65U.js → chunk-EMSAFNPX.js} +3 -3
  30. package/dist/{chunk-UYCQV65U.js.map → chunk-EMSAFNPX.js.map} +1 -1
  31. package/dist/{chunk-DCC3UIUJ.js → chunk-GFU7BGEJ.js} +3 -3
  32. package/dist/{chunk-DCC3UIUJ.js.map → chunk-GFU7BGEJ.js.map} +1 -1
  33. package/dist/{chunk-JFVEPAED.js → chunk-GU3LZWJD.js} +17 -9
  34. package/dist/chunk-GU3LZWJD.js.map +1 -0
  35. package/dist/chunk-HEYMMVDP.js +480 -0
  36. package/dist/chunk-HEYMMVDP.js.map +1 -0
  37. package/dist/chunk-IF6NJORI.cjs +526 -0
  38. package/dist/chunk-IF6NJORI.cjs.map +1 -0
  39. package/dist/{chunk-XS7EUS4T.cjs → chunk-MCWSUGB3.cjs} +4 -4
  40. package/dist/{chunk-XS7EUS4T.cjs.map → chunk-MCWSUGB3.cjs.map} +1 -1
  41. package/dist/{chunk-QHV6LOS6.js → chunk-PDN5DOLQ.js} +3 -3
  42. package/dist/{chunk-QHV6LOS6.js.map → chunk-PDN5DOLQ.js.map} +1 -1
  43. package/dist/{chunk-OZWUNGJE.js → chunk-PIDZQAEL.js} +5 -2
  44. package/dist/chunk-PIDZQAEL.js.map +1 -0
  45. package/dist/{chunk-ATWWZTRC.js → chunk-TYNIFC7J.js} +3 -18
  46. package/dist/chunk-TYNIFC7J.js.map +1 -0
  47. package/dist/{chunk-DDX5FKOM.cjs → chunk-UGWGHTNC.cjs} +5 -2
  48. package/dist/chunk-UGWGHTNC.cjs.map +1 -0
  49. package/dist/{chunk-ZF5HDNSU.js → chunk-WNZP53GI.js} +5 -2
  50. package/dist/chunk-WNZP53GI.js.map +1 -0
  51. package/dist/{chunk-2URHPZXL.cjs → chunk-WQ3BYI7T.cjs} +6 -6
  52. package/dist/{chunk-2URHPZXL.cjs.map → chunk-WQ3BYI7T.cjs.map} +1 -1
  53. package/dist/evidence/index.cjs +45 -1
  54. package/dist/evidence/index.d.cts +187 -1
  55. package/dist/evidence/index.d.ts +187 -1
  56. package/dist/evidence/index.js +3 -1
  57. package/dist/governance/index.d.cts +1 -0
  58. package/dist/governance/index.d.ts +1 -0
  59. package/dist/index.cjs +153 -88
  60. package/dist/index.d.cts +4 -4
  61. package/dist/index.d.ts +4 -4
  62. package/dist/index.js +11 -10
  63. package/dist/manifest/index.cjs +8 -8
  64. package/dist/manifest/index.js +2 -2
  65. package/dist/modules/index.cjs +9 -9
  66. package/dist/modules/index.js +1 -1
  67. package/dist/policies/index.cjs +9 -9
  68. package/dist/policies/index.d.cts +14 -1
  69. package/dist/policies/index.d.ts +14 -1
  70. package/dist/policies/index.js +1 -1
  71. package/dist/privacy/index.cjs +19 -18
  72. package/dist/privacy/index.js +2 -1
  73. package/dist/testing/index.cjs +5 -5
  74. package/dist/testing/index.js +2 -2
  75. package/package.json +1 -1
  76. package/dist/chunk-ATWWZTRC.js.map +0 -1
  77. package/dist/chunk-DDX5FKOM.cjs.map +0 -1
  78. package/dist/chunk-FAG2RTPM.js +0 -120
  79. package/dist/chunk-FAG2RTPM.js.map +0 -1
  80. package/dist/chunk-JFVEPAED.js.map +0 -1
  81. package/dist/chunk-OZLZHISS.js +0 -3
  82. package/dist/chunk-OZLZHISS.js.map +0 -1
  83. package/dist/chunk-OZWUNGJE.js.map +0 -1
  84. package/dist/chunk-PG5LYTUX.cjs +0 -4
  85. package/dist/chunk-PG5LYTUX.cjs.map +0 -1
  86. package/dist/chunk-TMMP4U2D.cjs.map +0 -1
  87. package/dist/chunk-VZ6C4LXC.cjs.map +0 -1
  88. package/dist/chunk-X3GHYMAJ.cjs.map +0 -1
  89. package/dist/chunk-XZQZQ5SW.cjs +0 -129
  90. package/dist/chunk-XZQZQ5SW.cjs.map +0 -1
  91. package/dist/chunk-ZF5HDNSU.js.map +0 -1
@@ -1,3 +1,183 @@
1
+ import { AnonymizationMetadata, AnonymizationPolicy } from '../privacy/index.js';
2
+
3
+ /**
4
+ * Serializes a value as JSON with every object's keys sorted, recursively, by UTF-16 code-unit
5
+ * order (locale-independent). Array order is preserved.
6
+ *
7
+ * This is the serialization behind the `fabric-canonical-json-sha256-v1` digests: Host's
8
+ * parameter digests (`PARAMETER_DIGEST_ALGORITHM` in `@fabricorg/platform-host`) and evidence
9
+ * packet checksums (`EVIDENCE_PACKET_CHECKSUM_ALGORITHM`). Its output is a durable contract, so it
10
+ * must not change for any input. That includes values that are not plain JSON: any non-array
11
+ * object is rebuilt from its own enumerable entries before serialization, so a `Date` (which has
12
+ * none) serializes as `{}`, not as an ISO string. Convert dates to strings before calling this
13
+ * when they must survive into the output.
14
+ */
15
+ declare function canonicalJson(value: unknown): string;
16
+
17
+ /**
18
+ * Identifies how `EvidencePacketEnvelope.checksum` is computed: the lowercase hex SHA-256 of
19
+ * `canonicalJson(payload)`. It is the same identifier as Host's `PARAMETER_DIGEST_ALGORITHM`
20
+ * because the algorithm is the same (SHA-256 over `canonicalJson`).
21
+ */
22
+ declare const EVIDENCE_PACKET_CHECKSUM_ALGORITHM: "fabric-canonical-json-sha256-v1";
23
+ /** Version of the `EvidencePacketPayload` shape produced by `generateEvidencePacket`. */
24
+ declare const EVIDENCE_PACKET_SCHEMA_VERSION: 1;
25
+ /** Packet type used when the input does not name one. */
26
+ declare const DEFAULT_EVIDENCE_PACKET_TYPE = "compliance_evidence";
27
+ /** Anonymization reason recorded when the caller does not supply one. */
28
+ declare const DEFAULT_EVIDENCE_REDACTION_REASON = "evidence_packet_generation";
29
+ /**
30
+ * A `Date`, or an ISO 8601 / PostgreSQL ISO date-time string with an explicit zone (`Z`, `+HH`,
31
+ * `+HH:MM` or `+HHMM`). Zone-less, non-ISO and out-of-range strings are rejected.
32
+ */
33
+ type EvidenceTimestamp = Date | string;
34
+ /** Tenant and space every record read through the port must belong to. */
35
+ interface EvidenceScope {
36
+ tenantId: string;
37
+ spaceId: string;
38
+ }
39
+ /**
40
+ * An asset event as the read port returns it. `AssetEventEnvelope` (events) and `AssetEventLike`
41
+ * (privacy) both satisfy this shape. Fields beyond these are kept in the packet payload.
42
+ */
43
+ interface EvidenceEventRecord {
44
+ id: string;
45
+ tenantId: string;
46
+ spaceId: string;
47
+ eventType: string;
48
+ subjectType: string;
49
+ subjectId: string;
50
+ actionInvocationId?: string | null;
51
+ sequence: number;
52
+ occurredAt: EvidenceTimestamp;
53
+ recordedAt: EvidenceTimestamp;
54
+ correlationId: string;
55
+ causationId?: string | null;
56
+ payload: unknown;
57
+ }
58
+ /** An action invocation, policy evaluation or adapter invocation record. Further fields are kept. */
59
+ interface EvidenceRecord {
60
+ id: string;
61
+ tenantId: string;
62
+ spaceId: string;
63
+ actionInvocationId?: string | null;
64
+ [field: string]: unknown;
65
+ }
66
+ /** A record that belongs to one action invocation (policy evaluations, adapter invocations). */
67
+ interface EvidenceInvocationRecord extends EvidenceRecord {
68
+ actionInvocationId: string;
69
+ }
70
+ interface EvidenceEventQuery extends EvidenceScope {
71
+ /** The subject the packet is about. Always `subjects[0]`. */
72
+ primarySubject: EvidencePacketSubject;
73
+ /** Primary subject first, then related subjects, de-duplicated and sorted. */
74
+ subjects: readonly EvidencePacketSubject[];
75
+ }
76
+ type MaybePromise<T> = T | Promise<T>;
77
+ /**
78
+ * Read-only access to the application's evidence store. The generator filters nothing the port
79
+ * returns; it rejects, rather than drops, a record that fails one of its checks:
80
+ *
81
+ * - every record must have the generation context's `tenantId` and `spaceId`;
82
+ * - action invocations must have one of the requested ids, and policy evaluations and adapter
83
+ * invocations one of the requested `actionInvocationId`s;
84
+ * - records must have the documented shape (non-empty `id`, event fields, parseable timestamps) and
85
+ * be representable as plain JSON, and any `_privacy` value must be engine-written
86
+ * `AnonymizationMetadata`.
87
+ *
88
+ * Which events belong to the packet is the port's decision: the generator does not check an event's
89
+ * subject against `subjects`, because a port may legitimately return events recorded against the
90
+ * primary subject's own action invocations under another subject.
91
+ */
92
+ interface EvidencePacketReadPort {
93
+ /** Asset events for the given subjects within the tenant and space. Required. */
94
+ listEvents(query: EvidenceEventQuery): MaybePromise<readonly EvidenceEventRecord[]>;
95
+ /** The application's related-subject rules. When absent, only the primary subject is used. */
96
+ resolveRelatedSubjects?(subject: EvidencePacketSubject, scope: EvidenceScope): MaybePromise<readonly EvidencePacketSubject[]>;
97
+ /** Action invocations by id. When absent, the section is empty. */
98
+ listActionInvocations?(scope: EvidenceScope, ids: readonly string[]): MaybePromise<readonly EvidenceRecord[]>;
99
+ /** Policy evaluations for the given action invocations. When absent, the section is empty. */
100
+ listPolicyEvaluations?(scope: EvidenceScope, actionInvocationIds: readonly string[]): MaybePromise<readonly EvidenceInvocationRecord[]>;
101
+ /** Adapter invocations for the given action invocations. When absent, the section is empty. */
102
+ listAdapterInvocations?(scope: EvidenceScope, actionInvocationIds: readonly string[]): MaybePromise<readonly EvidenceInvocationRecord[]>;
103
+ }
104
+ /** A record after normalization: plain JSON, every `Date` replaced by its ISO string. */
105
+ type EvidenceJsonRecord = Record<string, unknown>;
106
+ interface EvidencePacketPayload {
107
+ schemaVersion: typeof EVIDENCE_PACKET_SCHEMA_VERSION;
108
+ packetType: string;
109
+ tenantId: string;
110
+ spaceId: string;
111
+ primarySubject: EvidencePacketSubject;
112
+ subjects: EvidencePacketSubject[];
113
+ includeRelated: boolean;
114
+ policyVersion?: string;
115
+ events: EvidenceJsonRecord[];
116
+ actionInvocations: EvidenceJsonRecord[];
117
+ policyEvaluations: EvidenceJsonRecord[];
118
+ adapterInvocations: EvidenceJsonRecord[];
119
+ /** Metadata from the anonymization pass over the rest of the payload (validated engine-written `_privacy` values pass through it unchanged). */
120
+ redaction: AnonymizationMetadata;
121
+ }
122
+ interface GenerateEvidencePacketInput {
123
+ subject: EvidencePacketSubject;
124
+ /** Set to `false` to skip `resolveRelatedSubjects`. Defaults to `true`. */
125
+ includeRelated?: boolean;
126
+ /** Defaults to `DEFAULT_EVIDENCE_PACKET_TYPE`. */
127
+ packetType?: string;
128
+ policyVersion?: string;
129
+ }
130
+ interface GenerateEvidencePacketOptions {
131
+ port: EvidencePacketReadPort;
132
+ /**
133
+ * Redaction applied to the whole payload with data class `"evidence_packet"`. Required so that
134
+ * redaction cannot be skipped by omission; pass `{ fields: [] }` to redact nothing.
135
+ */
136
+ anonymizationPolicy: AnonymizationPolicy;
137
+ anonymization?: {
138
+ /** Defaults to the packet id. */
139
+ jobId?: string;
140
+ /** Defaults to `DEFAULT_EVIDENCE_REDACTION_REASON`. */
141
+ reason?: string;
142
+ /** Defaults to the engine's `ANONYMIZATION_POLICY_VERSION`. */
143
+ policyVersion?: string;
144
+ };
145
+ /** Defaults to `createFabricId(FABRIC_ID_PREFIXES.complianceEvidencePacket)`. */
146
+ idFactory?: () => string;
147
+ }
148
+ type EvidencePacketGenerationErrorCode = "EVIDENCE_SCOPE_MISMATCH" | "EVIDENCE_INVALID_RECORD" | "EVIDENCE_UNREQUESTED_RECORD" | "EVIDENCE_IDENTIFIER_REDACTED";
149
+ declare class EvidencePacketGenerationError extends Error {
150
+ readonly code: EvidencePacketGenerationErrorCode;
151
+ constructor(code: EvidencePacketGenerationErrorCode, message: string);
152
+ }
153
+ /** Lowercase hex SHA-256 of `canonicalJson(payload)`. */
154
+ declare function computeEvidencePacketChecksum(payload: unknown): string;
155
+ /**
156
+ * Builds a sealed evidence packet for one subject from the application's read port.
157
+ *
158
+ * Steps: resolve subjects (primary first, then related, de-duplicated and sorted); read events,
159
+ * then the action invocations, policy evaluations and adapter invocations those events reference;
160
+ * reject any record outside `context.tenantId`/`context.spaceId`; normalize to plain JSON and sort
161
+ * deterministically; redact the payload with `AnonymizationEngine` (data class
162
+ * `"evidence_packet"`); checksum the redacted payload; and build references from it.
163
+ *
164
+ * Nothing is persisted. Storing the returned envelope is the application's job.
165
+ */
166
+ declare function generateEvidencePacket<TDb = unknown>(input: GenerateEvidencePacketInput, context: EvidenceGenerationContext<TDb>, options: GenerateEvidencePacketOptions): Promise<EvidencePacketEnvelope<EvidencePacketPayload>>;
167
+ /**
168
+ * Recomputes an envelope's checksum. Returns `false`, never throws, when the checksum is missing,
169
+ * the algorithm is missing or unknown, the payload cannot be serialized, or the values differ.
170
+ * It covers `payload` only, which includes the subjects and the redaction metadata; the other
171
+ * envelope fields are not covered.
172
+ */
173
+ declare function verifyEvidencePacketChecksum(envelope: Pick<EvidencePacketEnvelope<unknown>, "payload" | "checksum" | "checksumAlgorithm">): boolean;
174
+ type EvidencePacketRendererInput = Omit<GenerateEvidencePacketInput, "packetType">;
175
+ interface EvidencePacketRendererOptions extends GenerateEvidencePacketOptions {
176
+ packetType?: string;
177
+ }
178
+ /** Wraps `generateEvidencePacket` as an `EvidenceRenderer` for one packet type. */
179
+ declare function createEvidencePacketRenderer<TDb = unknown>(options: EvidencePacketRendererOptions): EvidenceRenderer<EvidencePacketRendererInput, EvidencePacketPayload, TDb>;
180
+
1
181
  type EvidencePacketStatus = "draft" | "sealed" | "superseded";
2
182
  interface EvidencePacketSubject {
3
183
  subjectType: string;
@@ -23,6 +203,12 @@ interface EvidencePacketEnvelope<TPayload = Record<string, unknown>> {
23
203
  generatedBy: string;
24
204
  policyVersion?: string;
25
205
  checksum?: string;
206
+ /**
207
+ * How `checksum` was computed. Packets built by `generateEvidencePacket` use
208
+ * `EVIDENCE_PACKET_CHECKSUM_ALGORITHM`. Optional and additive: envelopes built before this field
209
+ * existed omit it.
210
+ */
211
+ checksumAlgorithm?: string;
26
212
  correlationId: string;
27
213
  causationId?: string;
28
214
  }
@@ -40,4 +226,4 @@ interface EvidenceRenderer<TInput = unknown, TPayload = Record<string, unknown>,
40
226
  render: (input: TInput, context: EvidenceGenerationContext<TDb>) => Promise<EvidencePacketEnvelope<TPayload>> | EvidencePacketEnvelope<TPayload>;
41
227
  }
42
228
 
43
- export type { EvidenceGenerationContext, EvidencePacketEnvelope, EvidencePacketReference, EvidencePacketStatus, EvidencePacketSubject, EvidenceRenderer };
229
+ export { DEFAULT_EVIDENCE_PACKET_TYPE, DEFAULT_EVIDENCE_REDACTION_REASON, EVIDENCE_PACKET_CHECKSUM_ALGORITHM, EVIDENCE_PACKET_SCHEMA_VERSION, type EvidenceEventQuery, type EvidenceEventRecord, type EvidenceGenerationContext, type EvidenceInvocationRecord, type EvidenceJsonRecord, type EvidencePacketEnvelope, EvidencePacketGenerationError, type EvidencePacketGenerationErrorCode, type EvidencePacketPayload, type EvidencePacketReadPort, type EvidencePacketReference, type EvidencePacketRendererInput, type EvidencePacketRendererOptions, type EvidencePacketStatus, type EvidencePacketSubject, type EvidenceRecord, type EvidenceRenderer, type EvidenceScope, type EvidenceTimestamp, type GenerateEvidencePacketInput, type GenerateEvidencePacketOptions, canonicalJson, computeEvidencePacketChecksum, createEvidencePacketRenderer, generateEvidencePacket, verifyEvidencePacketChecksum };
@@ -1,3 +1,5 @@
1
- import '../chunk-OZLZHISS.js';
1
+ export { DEFAULT_EVIDENCE_PACKET_TYPE, DEFAULT_EVIDENCE_REDACTION_REASON, EVIDENCE_PACKET_CHECKSUM_ALGORITHM, EVIDENCE_PACKET_SCHEMA_VERSION, EvidencePacketGenerationError, canonicalJson, computeEvidencePacketChecksum, createEvidencePacketRenderer, generateEvidencePacket, verifyEvidencePacketChecksum } from '../chunk-HEYMMVDP.js';
2
+ import '../chunk-RALMUSOX.js';
3
+ import '../chunk-TYNIFC7J.js';
2
4
  //# sourceMappingURL=index.js.map
3
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,7 @@
1
1
  import { ActorType } from '../actions/index.cjs';
2
2
  import { EvidencePacketReference } from '../evidence/index.cjs';
3
3
  import '../discovery/index.cjs';
4
+ import '../privacy/index.cjs';
4
5
 
5
6
  /** Language-neutral governance contract version shared by TypeScript and .NET. */
6
7
  declare const FABRIC_GOVERNANCE_CONTRACT_VERSION: 1;
@@ -1,6 +1,7 @@
1
1
  import { ActorType } from '../actions/index.js';
2
2
  import { EvidencePacketReference } from '../evidence/index.js';
3
3
  import '../discovery/index.js';
4
+ import '../privacy/index.js';
4
5
 
5
6
  /** Language-neutral governance contract version shared by TypeScript and .NET. */
6
7
  declare const FABRIC_GOVERNANCE_CONTRACT_VERSION: 1;
package/dist/index.cjs CHANGED
@@ -1,22 +1,23 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkWI7CWNYI_cjs = require('./chunk-WI7CWNYI.cjs');
4
- var chunkUSDLP4E7_cjs = require('./chunk-USDLP4E7.cjs');
4
+ var chunk5IVFPWK6_cjs = require('./chunk-5IVFPWK6.cjs');
5
5
  var chunkTBS2S5AX_cjs = require('./chunk-TBS2S5AX.cjs');
6
- var chunkLZSE6QGQ_cjs = require('./chunk-LZSE6QGQ.cjs');
7
- var chunkVZ6C4LXC_cjs = require('./chunk-VZ6C4LXC.cjs');
8
- var chunkX3GHYMAJ_cjs = require('./chunk-X3GHYMAJ.cjs');
9
- var chunkDDX5FKOM_cjs = require('./chunk-DDX5FKOM.cjs');
10
- var chunkXZQZQ5SW_cjs = require('./chunk-XZQZQ5SW.cjs');
6
+ var chunk45OKKLNY_cjs = require('./chunk-45OKKLNY.cjs');
7
+ var chunk6UGEIDLC_cjs = require('./chunk-6UGEIDLC.cjs');
8
+ var chunkUGWGHTNC_cjs = require('./chunk-UGWGHTNC.cjs');
9
+ var chunkIF6NJORI_cjs = require('./chunk-IF6NJORI.cjs');
11
10
  var chunkF3E5SXPN_cjs = require('./chunk-F3E5SXPN.cjs');
12
- var chunkXS7EUS4T_cjs = require('./chunk-XS7EUS4T.cjs');
13
- var chunk2URHPZXL_cjs = require('./chunk-2URHPZXL.cjs');
14
- var chunkTMMP4U2D_cjs = require('./chunk-TMMP4U2D.cjs');
11
+ var chunkMCWSUGB3_cjs = require('./chunk-MCWSUGB3.cjs');
12
+ var chunkWQ3BYI7T_cjs = require('./chunk-WQ3BYI7T.cjs');
13
+ var chunkDBTAUI6C_cjs = require('./chunk-DBTAUI6C.cjs');
15
14
  var chunkIFW43ELT_cjs = require('./chunk-IFW43ELT.cjs');
16
15
  var chunkSNTV45LH_cjs = require('./chunk-SNTV45LH.cjs');
17
16
  var chunkD4SWRBUH_cjs = require('./chunk-D4SWRBUH.cjs');
18
17
  var chunk2AE6TMAX_cjs = require('./chunk-2AE6TMAX.cjs');
19
- require('./chunk-PG5LYTUX.cjs');
18
+ var chunk6HY35TKB_cjs = require('./chunk-6HY35TKB.cjs');
19
+ var chunkLZSE6QGQ_cjs = require('./chunk-LZSE6QGQ.cjs');
20
+ var chunkCRZXTZ36_cjs = require('./chunk-CRZXTZ36.cjs');
20
21
 
21
22
 
22
23
 
@@ -34,15 +35,15 @@ Object.defineProperty(exports, "validateStateMachineTransition", {
34
35
  });
35
36
  Object.defineProperty(exports, "createDeterministicIdFactory", {
36
37
  enumerable: true,
37
- get: function () { return chunkUSDLP4E7_cjs.createDeterministicIdFactory; }
38
+ get: function () { return chunk5IVFPWK6_cjs.createDeterministicIdFactory; }
38
39
  });
39
40
  Object.defineProperty(exports, "createFakeActionContext", {
40
41
  enumerable: true,
41
- get: function () { return chunkUSDLP4E7_cjs.createFakeActionContext; }
42
+ get: function () { return chunk5IVFPWK6_cjs.createFakeActionContext; }
42
43
  });
43
44
  Object.defineProperty(exports, "createInMemoryAdapterRegistry", {
44
45
  enumerable: true,
45
- get: function () { return chunkUSDLP4E7_cjs.createInMemoryAdapterRegistry; }
46
+ get: function () { return chunk5IVFPWK6_cjs.createInMemoryAdapterRegistry; }
46
47
  });
47
48
  Object.defineProperty(exports, "FABRIC_GOVERNANCE_CONTRACT_VERSION", {
48
49
  enumerable: true,
@@ -56,141 +57,133 @@ Object.defineProperty(exports, "assertMutationGovernanceContext", {
56
57
  enumerable: true,
57
58
  get: function () { return chunkTBS2S5AX_cjs.assertMutationGovernanceContext; }
58
59
  });
59
- Object.defineProperty(exports, "FABRIC_ID_PREFIXES", {
60
- enumerable: true,
61
- get: function () { return chunkLZSE6QGQ_cjs.FABRIC_ID_PREFIXES; }
62
- });
63
- Object.defineProperty(exports, "createFabricId", {
64
- enumerable: true,
65
- get: function () { return chunkLZSE6QGQ_cjs.createFabricId; }
66
- });
67
- Object.defineProperty(exports, "isFabricId", {
68
- enumerable: true,
69
- get: function () { return chunkLZSE6QGQ_cjs.isFabricId; }
70
- });
71
- Object.defineProperty(exports, "parseFabricId", {
72
- enumerable: true,
73
- get: function () { return chunkLZSE6QGQ_cjs.parseFabricId; }
74
- });
75
60
  Object.defineProperty(exports, "aggregatePolicyOutcomes", {
76
61
  enumerable: true,
77
- get: function () { return chunkVZ6C4LXC_cjs.aggregatePolicyOutcomes; }
62
+ get: function () { return chunk45OKKLNY_cjs.aggregatePolicyOutcomes; }
78
63
  });
79
64
  Object.defineProperty(exports, "assertPolicyId", {
80
65
  enumerable: true,
81
- get: function () { return chunkVZ6C4LXC_cjs.assertPolicyId; }
66
+ get: function () { return chunk45OKKLNY_cjs.assertPolicyId; }
82
67
  });
83
68
  Object.defineProperty(exports, "createPolicyRegistry", {
84
69
  enumerable: true,
85
- get: function () { return chunkVZ6C4LXC_cjs.createPolicyRegistry; }
70
+ get: function () { return chunk45OKKLNY_cjs.createPolicyRegistry; }
86
71
  });
87
72
  Object.defineProperty(exports, "evaluatePolicyDefinition", {
88
73
  enumerable: true,
89
- get: function () { return chunkVZ6C4LXC_cjs.evaluatePolicyDefinition; }
74
+ get: function () { return chunk45OKKLNY_cjs.evaluatePolicyDefinition; }
90
75
  });
91
76
  Object.defineProperty(exports, "evaluatePolicyDefinitions", {
92
77
  enumerable: true,
93
- get: function () { return chunkVZ6C4LXC_cjs.evaluatePolicyDefinitions; }
78
+ get: function () { return chunk45OKKLNY_cjs.evaluatePolicyDefinitions; }
94
79
  });
95
80
  Object.defineProperty(exports, "evaluateRegisteredPolicies", {
96
81
  enumerable: true,
97
- get: function () { return chunkVZ6C4LXC_cjs.evaluateRegisteredPolicies; }
82
+ get: function () { return chunk45OKKLNY_cjs.evaluateRegisteredPolicies; }
98
83
  });
99
84
  Object.defineProperty(exports, "validateDataPolicyDefinition", {
100
85
  enumerable: true,
101
- get: function () { return chunkVZ6C4LXC_cjs.validateDataPolicyDefinition; }
86
+ get: function () { return chunk45OKKLNY_cjs.validateDataPolicyDefinition; }
102
87
  });
103
88
  Object.defineProperty(exports, "validatePolicyGuidance", {
104
89
  enumerable: true,
105
- get: function () { return chunkVZ6C4LXC_cjs.validatePolicyGuidance; }
106
- });
107
- Object.defineProperty(exports, "ANONYMIZATION_POLICY_VERSION", {
108
- enumerable: true,
109
- get: function () { return chunkX3GHYMAJ_cjs.ANONYMIZATION_POLICY_VERSION; }
110
- });
111
- Object.defineProperty(exports, "AnonymizationEngine", {
112
- enumerable: true,
113
- get: function () { return chunkX3GHYMAJ_cjs.AnonymizationEngine; }
114
- });
115
- Object.defineProperty(exports, "FieldRedactor", {
116
- enumerable: true,
117
- get: function () { return chunkX3GHYMAJ_cjs.FieldRedactor; }
90
+ get: function () { return chunk45OKKLNY_cjs.validatePolicyGuidance; }
118
91
  });
119
92
  Object.defineProperty(exports, "PLATFORM_PRIVACY_POLICY_VERSION", {
120
93
  enumerable: true,
121
- get: function () { return chunkX3GHYMAJ_cjs.PLATFORM_PRIVACY_POLICY_VERSION; }
94
+ get: function () { return chunk6UGEIDLC_cjs.PLATFORM_PRIVACY_POLICY_VERSION; }
122
95
  });
123
96
  Object.defineProperty(exports, "anonymizeAssetEventPayload", {
124
97
  enumerable: true,
125
- get: function () { return chunkX3GHYMAJ_cjs.anonymizeAssetEventPayload; }
98
+ get: function () { return chunk6UGEIDLC_cjs.anonymizeAssetEventPayload; }
126
99
  });
127
100
  Object.defineProperty(exports, "anonymizeEvidencePacket", {
128
101
  enumerable: true,
129
- get: function () { return chunkX3GHYMAJ_cjs.anonymizeEvidencePacket; }
102
+ get: function () { return chunk6UGEIDLC_cjs.anonymizeEvidencePacket; }
130
103
  });
131
104
  Object.defineProperty(exports, "anonymizeJsonValue", {
132
105
  enumerable: true,
133
- get: function () { return chunkX3GHYMAJ_cjs.anonymizeJsonValue; }
106
+ get: function () { return chunk6UGEIDLC_cjs.anonymizeJsonValue; }
134
107
  });
135
108
  Object.defineProperty(exports, "buildAnonymizationLifecycleEvidence", {
136
109
  enumerable: true,
137
- get: function () { return chunkX3GHYMAJ_cjs.buildAnonymizationLifecycleEvidence; }
138
- });
139
- Object.defineProperty(exports, "stableChecksum", {
140
- enumerable: true,
141
- get: function () { return chunkX3GHYMAJ_cjs.stableChecksum; }
110
+ get: function () { return chunk6UGEIDLC_cjs.buildAnonymizationLifecycleEvidence; }
142
111
  });
143
112
  Object.defineProperty(exports, "ACTOR_TYPES", {
144
113
  enumerable: true,
145
- get: function () { return chunkDDX5FKOM_cjs.ACTOR_TYPES; }
114
+ get: function () { return chunkUGWGHTNC_cjs.ACTOR_TYPES; }
146
115
  });
147
116
  Object.defineProperty(exports, "assertActionId", {
148
117
  enumerable: true,
149
- get: function () { return chunkDDX5FKOM_cjs.assertActionId; }
118
+ get: function () { return chunkUGWGHTNC_cjs.assertActionId; }
150
119
  });
151
120
  Object.defineProperty(exports, "assertActorType", {
152
121
  enumerable: true,
153
- get: function () { return chunkDDX5FKOM_cjs.assertActorType; }
122
+ get: function () { return chunkUGWGHTNC_cjs.assertActorType; }
154
123
  });
155
124
  Object.defineProperty(exports, "createActionRegistry", {
156
125
  enumerable: true,
157
- get: function () { return chunkDDX5FKOM_cjs.createActionRegistry; }
126
+ get: function () { return chunkUGWGHTNC_cjs.createActionRegistry; }
158
127
  });
159
128
  Object.defineProperty(exports, "isActorType", {
160
129
  enumerable: true,
161
- get: function () { return chunkDDX5FKOM_cjs.isActorType; }
130
+ get: function () { return chunkUGWGHTNC_cjs.isActorType; }
131
+ });
132
+ Object.defineProperty(exports, "AdapterCircuitBreakerRegistry", {
133
+ enumerable: true,
134
+ get: function () { return chunkIF6NJORI_cjs.AdapterCircuitBreakerRegistry; }
135
+ });
136
+ Object.defineProperty(exports, "AdapterCircuitOpenError", {
137
+ enumerable: true,
138
+ get: function () { return chunkIF6NJORI_cjs.AdapterCircuitOpenError; }
162
139
  });
163
140
  Object.defineProperty(exports, "AdapterRegistry", {
164
141
  enumerable: true,
165
- get: function () { return chunkXZQZQ5SW_cjs.AdapterRegistry; }
142
+ get: function () { return chunkIF6NJORI_cjs.AdapterRegistry; }
143
+ });
144
+ Object.defineProperty(exports, "InMemoryAdapterCircuitBreaker", {
145
+ enumerable: true,
146
+ get: function () { return chunkIF6NJORI_cjs.InMemoryAdapterCircuitBreaker; }
166
147
  });
167
148
  Object.defineProperty(exports, "MissingAdapterRegistrationError", {
168
149
  enumerable: true,
169
- get: function () { return chunkXZQZQ5SW_cjs.MissingAdapterRegistrationError; }
150
+ get: function () { return chunkIF6NJORI_cjs.MissingAdapterRegistrationError; }
151
+ });
152
+ Object.defineProperty(exports, "assertAdapterCircuitBreakerConfig", {
153
+ enumerable: true,
154
+ get: function () { return chunkIF6NJORI_cjs.assertAdapterCircuitBreakerConfig; }
170
155
  });
171
156
  Object.defineProperty(exports, "assertAdapterOutcomeConsistency", {
172
157
  enumerable: true,
173
- get: function () { return chunkXZQZQ5SW_cjs.assertAdapterOutcomeConsistency; }
158
+ get: function () { return chunkIF6NJORI_cjs.assertAdapterOutcomeConsistency; }
174
159
  });
175
160
  Object.defineProperty(exports, "classifyAdapterOutcome", {
176
161
  enumerable: true,
177
- get: function () { return chunkXZQZQ5SW_cjs.classifyAdapterOutcome; }
162
+ get: function () { return chunkIF6NJORI_cjs.classifyAdapterOutcome; }
163
+ });
164
+ Object.defineProperty(exports, "classifyCircuitBreakerOutcome", {
165
+ enumerable: true,
166
+ get: function () { return chunkIF6NJORI_cjs.classifyCircuitBreakerOutcome; }
178
167
  });
179
168
  Object.defineProperty(exports, "executeWithAdapterRetry", {
180
169
  enumerable: true,
181
- get: function () { return chunkXZQZQ5SW_cjs.executeWithAdapterRetry; }
170
+ get: function () { return chunkIF6NJORI_cjs.executeWithAdapterRetry; }
182
171
  });
183
172
  Object.defineProperty(exports, "getRetryDelayMs", {
184
173
  enumerable: true,
185
- get: function () { return chunkXZQZQ5SW_cjs.getRetryDelayMs; }
174
+ get: function () { return chunkIF6NJORI_cjs.getRetryDelayMs; }
175
+ });
176
+ Object.defineProperty(exports, "isAdapterCircuitOpenError", {
177
+ enumerable: true,
178
+ get: function () { return chunkIF6NJORI_cjs.isAdapterCircuitOpenError; }
186
179
  });
187
180
  Object.defineProperty(exports, "resolveAdapterRetryPolicy", {
188
181
  enumerable: true,
189
- get: function () { return chunkXZQZQ5SW_cjs.resolveAdapterRetryPolicy; }
182
+ get: function () { return chunkIF6NJORI_cjs.resolveAdapterRetryPolicy; }
190
183
  });
191
184
  Object.defineProperty(exports, "shouldRetryAdapterOutcome", {
192
185
  enumerable: true,
193
- get: function () { return chunkXZQZQ5SW_cjs.shouldRetryAdapterOutcome; }
186
+ get: function () { return chunkIF6NJORI_cjs.shouldRetryAdapterOutcome; }
194
187
  });
195
188
  Object.defineProperty(exports, "AgentActionPolicyRegistry", {
196
189
  enumerable: true,
@@ -198,71 +191,71 @@ Object.defineProperty(exports, "AgentActionPolicyRegistry", {
198
191
  });
199
192
  Object.defineProperty(exports, "STRICT_EXECUTION_CONTRACT_PROFILE", {
200
193
  enumerable: true,
201
- get: function () { return chunkXS7EUS4T_cjs.STRICT_EXECUTION_CONTRACT_PROFILE; }
194
+ get: function () { return chunkMCWSUGB3_cjs.STRICT_EXECUTION_CONTRACT_PROFILE; }
202
195
  });
203
196
  Object.defineProperty(exports, "STRICT_EXECUTION_CONTRACT_PROFILE_ID", {
204
197
  enumerable: true,
205
- get: function () { return chunkXS7EUS4T_cjs.STRICT_EXECUTION_CONTRACT_PROFILE_ID; }
198
+ get: function () { return chunkMCWSUGB3_cjs.STRICT_EXECUTION_CONTRACT_PROFILE_ID; }
206
199
  });
207
200
  Object.defineProperty(exports, "executionContractProfile", {
208
201
  enumerable: true,
209
- get: function () { return chunkXS7EUS4T_cjs.executionContractProfile; }
202
+ get: function () { return chunkMCWSUGB3_cjs.executionContractProfile; }
210
203
  });
211
204
  Object.defineProperty(exports, "MODULE_MANIFEST_VERSION", {
212
205
  enumerable: true,
213
- get: function () { return chunk2URHPZXL_cjs.MODULE_MANIFEST_VERSION; }
206
+ get: function () { return chunkWQ3BYI7T_cjs.MODULE_MANIFEST_VERSION; }
214
207
  });
215
208
  Object.defineProperty(exports, "exportModuleManifest", {
216
209
  enumerable: true,
217
- get: function () { return chunk2URHPZXL_cjs.exportModuleManifest; }
210
+ get: function () { return chunkWQ3BYI7T_cjs.exportModuleManifest; }
218
211
  });
219
212
  Object.defineProperty(exports, "exportModuleManifestBundle", {
220
213
  enumerable: true,
221
- get: function () { return chunk2URHPZXL_cjs.exportModuleManifestBundle; }
214
+ get: function () { return chunkWQ3BYI7T_cjs.exportModuleManifestBundle; }
222
215
  });
223
216
  Object.defineProperty(exports, "isJsonSchemaExportableValidator", {
224
217
  enumerable: true,
225
- get: function () { return chunk2URHPZXL_cjs.isJsonSchemaExportableValidator; }
218
+ get: function () { return chunkWQ3BYI7T_cjs.isJsonSchemaExportableValidator; }
226
219
  });
227
220
  Object.defineProperty(exports, "normalizeModuleManifest", {
228
221
  enumerable: true,
229
- get: function () { return chunk2URHPZXL_cjs.normalizeModuleManifest; }
222
+ get: function () { return chunkWQ3BYI7T_cjs.normalizeModuleManifest; }
230
223
  });
231
224
  Object.defineProperty(exports, "normalizeModuleManifestBundle", {
232
225
  enumerable: true,
233
- get: function () { return chunk2URHPZXL_cjs.normalizeModuleManifestBundle; }
226
+ get: function () { return chunkWQ3BYI7T_cjs.normalizeModuleManifestBundle; }
234
227
  });
235
228
  Object.defineProperty(exports, "createModuleRegistry", {
236
229
  enumerable: true,
237
- get: function () { return chunkTMMP4U2D_cjs.createModuleRegistry; }
230
+ get: function () { return chunkDBTAUI6C_cjs.createModuleRegistry; }
238
231
  });
239
232
  Object.defineProperty(exports, "getEventTypeName", {
240
233
  enumerable: true,
241
- get: function () { return chunkTMMP4U2D_cjs.getEventTypeName; }
234
+ get: function () { return chunkDBTAUI6C_cjs.getEventTypeName; }
242
235
  });
243
236
  Object.defineProperty(exports, "getModuleDependencyNamespace", {
244
237
  enumerable: true,
245
- get: function () { return chunkTMMP4U2D_cjs.getModuleDependencyNamespace; }
238
+ get: function () { return chunkDBTAUI6C_cjs.getModuleDependencyNamespace; }
246
239
  });
247
240
  Object.defineProperty(exports, "getObjectTypeName", {
248
241
  enumerable: true,
249
- get: function () { return chunkTMMP4U2D_cjs.getObjectTypeName; }
242
+ get: function () { return chunkDBTAUI6C_cjs.getObjectTypeName; }
250
243
  });
251
244
  Object.defineProperty(exports, "registerFabricModule", {
252
245
  enumerable: true,
253
- get: function () { return chunkTMMP4U2D_cjs.registerFabricModule; }
246
+ get: function () { return chunkDBTAUI6C_cjs.registerFabricModule; }
254
247
  });
255
248
  Object.defineProperty(exports, "registerFabricModules", {
256
249
  enumerable: true,
257
- get: function () { return chunkTMMP4U2D_cjs.registerFabricModules; }
250
+ get: function () { return chunkDBTAUI6C_cjs.registerFabricModules; }
258
251
  });
259
252
  Object.defineProperty(exports, "validateAndOrderFabricModules", {
260
253
  enumerable: true,
261
- get: function () { return chunkTMMP4U2D_cjs.validateAndOrderFabricModules; }
254
+ get: function () { return chunkDBTAUI6C_cjs.validateAndOrderFabricModules; }
262
255
  });
263
256
  Object.defineProperty(exports, "validateModuleNamespace", {
264
257
  enumerable: true,
265
- get: function () { return chunkTMMP4U2D_cjs.validateModuleNamespace; }
258
+ get: function () { return chunkDBTAUI6C_cjs.validateModuleNamespace; }
266
259
  });
267
260
  Object.defineProperty(exports, "assertObjectType", {
268
261
  enumerable: true,
@@ -304,5 +297,77 @@ Object.defineProperty(exports, "createEventContractRegistry", {
304
297
  enumerable: true,
305
298
  get: function () { return chunk2AE6TMAX_cjs.createEventContractRegistry; }
306
299
  });
300
+ Object.defineProperty(exports, "DEFAULT_EVIDENCE_PACKET_TYPE", {
301
+ enumerable: true,
302
+ get: function () { return chunk6HY35TKB_cjs.DEFAULT_EVIDENCE_PACKET_TYPE; }
303
+ });
304
+ Object.defineProperty(exports, "DEFAULT_EVIDENCE_REDACTION_REASON", {
305
+ enumerable: true,
306
+ get: function () { return chunk6HY35TKB_cjs.DEFAULT_EVIDENCE_REDACTION_REASON; }
307
+ });
308
+ Object.defineProperty(exports, "EVIDENCE_PACKET_CHECKSUM_ALGORITHM", {
309
+ enumerable: true,
310
+ get: function () { return chunk6HY35TKB_cjs.EVIDENCE_PACKET_CHECKSUM_ALGORITHM; }
311
+ });
312
+ Object.defineProperty(exports, "EVIDENCE_PACKET_SCHEMA_VERSION", {
313
+ enumerable: true,
314
+ get: function () { return chunk6HY35TKB_cjs.EVIDENCE_PACKET_SCHEMA_VERSION; }
315
+ });
316
+ Object.defineProperty(exports, "EvidencePacketGenerationError", {
317
+ enumerable: true,
318
+ get: function () { return chunk6HY35TKB_cjs.EvidencePacketGenerationError; }
319
+ });
320
+ Object.defineProperty(exports, "canonicalJson", {
321
+ enumerable: true,
322
+ get: function () { return chunk6HY35TKB_cjs.canonicalJson; }
323
+ });
324
+ Object.defineProperty(exports, "computeEvidencePacketChecksum", {
325
+ enumerable: true,
326
+ get: function () { return chunk6HY35TKB_cjs.computeEvidencePacketChecksum; }
327
+ });
328
+ Object.defineProperty(exports, "createEvidencePacketRenderer", {
329
+ enumerable: true,
330
+ get: function () { return chunk6HY35TKB_cjs.createEvidencePacketRenderer; }
331
+ });
332
+ Object.defineProperty(exports, "generateEvidencePacket", {
333
+ enumerable: true,
334
+ get: function () { return chunk6HY35TKB_cjs.generateEvidencePacket; }
335
+ });
336
+ Object.defineProperty(exports, "verifyEvidencePacketChecksum", {
337
+ enumerable: true,
338
+ get: function () { return chunk6HY35TKB_cjs.verifyEvidencePacketChecksum; }
339
+ });
340
+ Object.defineProperty(exports, "FABRIC_ID_PREFIXES", {
341
+ enumerable: true,
342
+ get: function () { return chunkLZSE6QGQ_cjs.FABRIC_ID_PREFIXES; }
343
+ });
344
+ Object.defineProperty(exports, "createFabricId", {
345
+ enumerable: true,
346
+ get: function () { return chunkLZSE6QGQ_cjs.createFabricId; }
347
+ });
348
+ Object.defineProperty(exports, "isFabricId", {
349
+ enumerable: true,
350
+ get: function () { return chunkLZSE6QGQ_cjs.isFabricId; }
351
+ });
352
+ Object.defineProperty(exports, "parseFabricId", {
353
+ enumerable: true,
354
+ get: function () { return chunkLZSE6QGQ_cjs.parseFabricId; }
355
+ });
356
+ Object.defineProperty(exports, "ANONYMIZATION_POLICY_VERSION", {
357
+ enumerable: true,
358
+ get: function () { return chunkCRZXTZ36_cjs.ANONYMIZATION_POLICY_VERSION; }
359
+ });
360
+ Object.defineProperty(exports, "AnonymizationEngine", {
361
+ enumerable: true,
362
+ get: function () { return chunkCRZXTZ36_cjs.AnonymizationEngine; }
363
+ });
364
+ Object.defineProperty(exports, "FieldRedactor", {
365
+ enumerable: true,
366
+ get: function () { return chunkCRZXTZ36_cjs.FieldRedactor; }
367
+ });
368
+ Object.defineProperty(exports, "stableChecksum", {
369
+ enumerable: true,
370
+ get: function () { return chunkCRZXTZ36_cjs.stableChecksum; }
371
+ });
307
372
  //# sourceMappingURL=index.cjs.map
308
373
  //# sourceMappingURL=index.cjs.map