@contractspec/module.audit-trail 1.56.1 → 1.58.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 (36) hide show
  1. package/dist/audit-trail.capability.d.ts +1 -6
  2. package/dist/audit-trail.capability.d.ts.map +1 -1
  3. package/dist/audit-trail.capability.js +17 -20
  4. package/dist/audit-trail.feature.d.ts +1 -7
  5. package/dist/audit-trail.feature.d.ts.map +1 -1
  6. package/dist/audit-trail.feature.js +31 -64
  7. package/dist/browser/audit-trail.capability.js +16 -0
  8. package/dist/browser/audit-trail.feature.js +32 -0
  9. package/dist/browser/contracts/index.js +241 -0
  10. package/dist/browser/entities/index.js +103 -0
  11. package/dist/browser/index.js +474 -0
  12. package/dist/browser/storage/index.js +101 -0
  13. package/dist/contracts/index.d.ts +549 -555
  14. package/dist/contracts/index.d.ts.map +1 -1
  15. package/dist/contracts/index.js +227 -355
  16. package/dist/entities/index.d.ts +70 -75
  17. package/dist/entities/index.d.ts.map +1 -1
  18. package/dist/entities/index.js +100 -122
  19. package/dist/index.d.ts +6 -6
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +474 -5
  22. package/dist/node/audit-trail.capability.js +16 -0
  23. package/dist/node/audit-trail.feature.js +32 -0
  24. package/dist/node/contracts/index.js +241 -0
  25. package/dist/node/entities/index.js +103 -0
  26. package/dist/node/index.js +474 -0
  27. package/dist/node/storage/index.js +101 -0
  28. package/dist/storage/index.d.ts +59 -64
  29. package/dist/storage/index.d.ts.map +1 -1
  30. package/dist/storage/index.js +100 -110
  31. package/package.json +86 -25
  32. package/dist/audit-trail.capability.js.map +0 -1
  33. package/dist/audit-trail.feature.js.map +0 -1
  34. package/dist/contracts/index.js.map +0 -1
  35. package/dist/entities/index.js.map +0 -1
  36. package/dist/storage/index.js.map +0 -1
@@ -1,7 +1,2 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
-
3
- //#region src/audit-trail.capability.d.ts
4
- declare const AuditTrailCapability: _contractspec_lib_contracts0.CapabilitySpec;
5
- //#endregion
6
- export { AuditTrailCapability };
1
+ export declare const AuditTrailCapability: import("@contractspec/lib.contracts").CapabilitySpec;
7
2
  //# sourceMappingURL=audit-trail.capability.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audit-trail.capability.d.ts","names":[],"sources":["../src/audit-trail.capability.ts"],"sourcesContent":[],"mappings":";;;cAEa,sBAUX,4BAAA,CAV+B"}
1
+ {"version":3,"file":"audit-trail.capability.d.ts","sourceRoot":"","sources":["../src/audit-trail.capability.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,sDAU/B,CAAC"}
@@ -1,20 +1,17 @@
1
- import { StabilityEnum, defineCapability } from "@contractspec/lib.contracts";
2
-
3
- //#region src/audit-trail.capability.ts
4
- const AuditTrailCapability = defineCapability({ meta: {
5
- key: "audit-trail",
6
- version: "1.0.0",
7
- kind: "data",
8
- stability: StabilityEnum.Experimental,
9
- description: "Audit logging and compliance tracking",
10
- owners: ["@platform.core"],
11
- tags: [
12
- "audit",
13
- "logging",
14
- "compliance"
15
- ]
16
- } });
17
-
18
- //#endregion
19
- export { AuditTrailCapability };
20
- //# sourceMappingURL=audit-trail.capability.js.map
1
+ // @bun
2
+ // src/audit-trail.capability.ts
3
+ import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
4
+ var AuditTrailCapability = defineCapability({
5
+ meta: {
6
+ key: "audit-trail",
7
+ version: "1.0.0",
8
+ kind: "data",
9
+ stability: StabilityEnum.Experimental,
10
+ description: "Audit logging and compliance tracking",
11
+ owners: ["@platform.core"],
12
+ tags: ["audit", "logging", "compliance"]
13
+ }
14
+ });
15
+ export {
16
+ AuditTrailCapability
17
+ };
@@ -1,12 +1,6 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
-
3
- //#region src/audit-trail.feature.d.ts
4
-
5
1
  /**
6
2
  * Audit Trail feature module that bundles audit log querying,
7
3
  * export, and statistics capabilities.
8
4
  */
9
- declare const AuditTrailFeature: _contractspec_lib_contracts0.FeatureModuleSpec;
10
- //#endregion
11
- export { AuditTrailFeature };
5
+ export declare const AuditTrailFeature: import("@contractspec/lib.contracts").FeatureModuleSpec;
12
6
  //# sourceMappingURL=audit-trail.feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audit-trail.feature.d.ts","names":[],"sources":["../src/audit-trail.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,mBAkCX,4BAAA,CAlC4B"}
1
+ {"version":3,"file":"audit-trail.feature.d.ts","sourceRoot":"","sources":["../src/audit-trail.feature.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,yDAkC5B,CAAC"}
@@ -1,66 +1,33 @@
1
+ // @bun
2
+ // src/audit-trail.feature.ts
1
3
  import { defineFeature } from "@contractspec/lib.contracts";
2
-
3
- //#region src/audit-trail.feature.ts
4
- /**
5
- * Audit Trail Feature Module Specification
6
- *
7
- * Defines the feature module for audit logging and compliance.
8
- */
9
- /**
10
- * Audit Trail feature module that bundles audit log querying,
11
- * export, and statistics capabilities.
12
- */
13
- const AuditTrailFeature = defineFeature({
14
- meta: {
15
- key: "audit-trail",
16
- title: "Audit Trail",
17
- description: "Audit logging, querying, export, and compliance reporting",
18
- domain: "platform",
19
- version: "1.0.0",
20
- owners: ["@platform.audit-trail"],
21
- tags: [
22
- "audit",
23
- "compliance",
24
- "logging",
25
- "security"
26
- ],
27
- stability: "stable"
28
- },
29
- operations: [
30
- {
31
- key: "audit.logs.export",
32
- version: "1.0.0"
33
- },
34
- {
35
- key: "audit.logs.query",
36
- version: "1.0.0"
37
- },
38
- {
39
- key: "audit.logs.get",
40
- version: "1.0.0"
41
- },
42
- {
43
- key: "audit.trace.get",
44
- version: "1.0.0"
45
- },
46
- {
47
- key: "audit.stats",
48
- version: "1.0.0"
49
- }
50
- ],
51
- events: [],
52
- presentations: [],
53
- opToPresentation: [],
54
- presentationsTargets: [],
55
- capabilities: {
56
- provides: [{
57
- key: "audit-trail",
58
- version: "1.0.0"
59
- }],
60
- requires: []
61
- }
4
+ var AuditTrailFeature = defineFeature({
5
+ meta: {
6
+ key: "audit-trail",
7
+ title: "Audit Trail",
8
+ description: "Audit logging, querying, export, and compliance reporting",
9
+ domain: "platform",
10
+ version: "1.0.0",
11
+ owners: ["@platform.audit-trail"],
12
+ tags: ["audit", "compliance", "logging", "security"],
13
+ stability: "stable"
14
+ },
15
+ operations: [
16
+ { key: "audit.logs.export", version: "1.0.0" },
17
+ { key: "audit.logs.query", version: "1.0.0" },
18
+ { key: "audit.logs.get", version: "1.0.0" },
19
+ { key: "audit.trace.get", version: "1.0.0" },
20
+ { key: "audit.stats", version: "1.0.0" }
21
+ ],
22
+ events: [],
23
+ presentations: [],
24
+ opToPresentation: [],
25
+ presentationsTargets: [],
26
+ capabilities: {
27
+ provides: [{ key: "audit-trail", version: "1.0.0" }],
28
+ requires: []
29
+ }
62
30
  });
63
-
64
- //#endregion
65
- export { AuditTrailFeature };
66
- //# sourceMappingURL=audit-trail.feature.js.map
31
+ export {
32
+ AuditTrailFeature
33
+ };
@@ -0,0 +1,16 @@
1
+ // src/audit-trail.capability.ts
2
+ import { defineCapability, StabilityEnum } from "@contractspec/lib.contracts";
3
+ var AuditTrailCapability = defineCapability({
4
+ meta: {
5
+ key: "audit-trail",
6
+ version: "1.0.0",
7
+ kind: "data",
8
+ stability: StabilityEnum.Experimental,
9
+ description: "Audit logging and compliance tracking",
10
+ owners: ["@platform.core"],
11
+ tags: ["audit", "logging", "compliance"]
12
+ }
13
+ });
14
+ export {
15
+ AuditTrailCapability
16
+ };
@@ -0,0 +1,32 @@
1
+ // src/audit-trail.feature.ts
2
+ import { defineFeature } from "@contractspec/lib.contracts";
3
+ var AuditTrailFeature = defineFeature({
4
+ meta: {
5
+ key: "audit-trail",
6
+ title: "Audit Trail",
7
+ description: "Audit logging, querying, export, and compliance reporting",
8
+ domain: "platform",
9
+ version: "1.0.0",
10
+ owners: ["@platform.audit-trail"],
11
+ tags: ["audit", "compliance", "logging", "security"],
12
+ stability: "stable"
13
+ },
14
+ operations: [
15
+ { key: "audit.logs.export", version: "1.0.0" },
16
+ { key: "audit.logs.query", version: "1.0.0" },
17
+ { key: "audit.logs.get", version: "1.0.0" },
18
+ { key: "audit.trace.get", version: "1.0.0" },
19
+ { key: "audit.stats", version: "1.0.0" }
20
+ ],
21
+ events: [],
22
+ presentations: [],
23
+ opToPresentation: [],
24
+ presentationsTargets: [],
25
+ capabilities: {
26
+ provides: [{ key: "audit-trail", version: "1.0.0" }],
27
+ requires: []
28
+ }
29
+ });
30
+ export {
31
+ AuditTrailFeature
32
+ };
@@ -0,0 +1,241 @@
1
+ // src/contracts/index.ts
2
+ import {
3
+ defineCommand,
4
+ defineQuery,
5
+ defineSchemaModel
6
+ } from "@contractspec/lib.contracts";
7
+ import { ScalarTypeEnum, defineEnum } from "@contractspec/lib.schema";
8
+ var OWNERS = ["platform.audit-trail"];
9
+ var AuditLogModel = defineSchemaModel({
10
+ name: "AuditLog",
11
+ description: "Detailed audit log entry",
12
+ fields: {
13
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
14
+ eventName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
15
+ eventVersion: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
16
+ payload: { type: ScalarTypeEnum.JSONObject(), isOptional: false },
17
+ actorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
18
+ actorType: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
19
+ actorEmail: { type: ScalarTypeEnum.EmailAddress(), isOptional: true },
20
+ targetId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
21
+ targetType: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
22
+ orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
23
+ traceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
24
+ clientIp: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
25
+ occurredAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
26
+ recordedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
27
+ }
28
+ });
29
+ var AuditQueryInputModel = defineSchemaModel({
30
+ name: "AuditQueryInput",
31
+ description: "Input for querying audit logs",
32
+ fields: {
33
+ eventName: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
34
+ actorId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
35
+ targetId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
36
+ targetType: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
37
+ orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
38
+ traceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
39
+ from: { type: ScalarTypeEnum.DateTime(), isOptional: true },
40
+ to: { type: ScalarTypeEnum.DateTime(), isOptional: true },
41
+ limit: {
42
+ type: ScalarTypeEnum.Int_unsecure(),
43
+ isOptional: true,
44
+ defaultValue: 100
45
+ },
46
+ offset: {
47
+ type: ScalarTypeEnum.Int_unsecure(),
48
+ isOptional: true,
49
+ defaultValue: 0
50
+ }
51
+ }
52
+ });
53
+ var AuditQueryOutputModel = defineSchemaModel({
54
+ name: "AuditQueryOutput",
55
+ description: "Output from querying audit logs",
56
+ fields: {
57
+ logs: { type: AuditLogModel, isArray: true, isOptional: false },
58
+ total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
59
+ hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false }
60
+ }
61
+ });
62
+ var ExportFormatEnum = defineEnum("ExportFormat", [
63
+ "json",
64
+ "csv",
65
+ "parquet"
66
+ ]);
67
+ var AuditExportInputModel = defineSchemaModel({
68
+ name: "AuditExportInput",
69
+ description: "Input for exporting audit logs",
70
+ fields: {
71
+ orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
72
+ from: { type: ScalarTypeEnum.DateTime(), isOptional: false },
73
+ to: { type: ScalarTypeEnum.DateTime(), isOptional: false },
74
+ format: { type: ExportFormatEnum, isOptional: true, defaultValue: "json" },
75
+ eventNames: {
76
+ type: ScalarTypeEnum.String_unsecure(),
77
+ isArray: true,
78
+ isOptional: true
79
+ }
80
+ }
81
+ });
82
+ var ExportStatusEnum = defineEnum("ExportStatus", [
83
+ "pending",
84
+ "processing",
85
+ "completed",
86
+ "failed"
87
+ ]);
88
+ var AuditExportOutputModel = defineSchemaModel({
89
+ name: "AuditExportOutput",
90
+ description: "Output from initiating an audit export",
91
+ fields: {
92
+ exportId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
93
+ status: { type: ExportStatusEnum, isOptional: false },
94
+ downloadUrl: { type: ScalarTypeEnum.URL(), isOptional: true }
95
+ }
96
+ });
97
+ var AuditStatsInputModel = defineSchemaModel({
98
+ name: "AuditStatsInput",
99
+ description: "Input for getting audit statistics",
100
+ fields: {
101
+ orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
102
+ from: { type: ScalarTypeEnum.DateTime(), isOptional: true },
103
+ to: { type: ScalarTypeEnum.DateTime(), isOptional: true }
104
+ }
105
+ });
106
+ var AuditStatsOutputModel = defineSchemaModel({
107
+ name: "AuditStatsOutput",
108
+ description: "Audit log statistics",
109
+ fields: {
110
+ totalLogs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
111
+ uniqueActors: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
112
+ uniqueTargets: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
113
+ eventCounts: { type: ScalarTypeEnum.JSONObject(), isOptional: false }
114
+ }
115
+ });
116
+ var QueryAuditLogsContract = defineQuery({
117
+ meta: {
118
+ key: "audit.logs.query",
119
+ version: "1.0.0",
120
+ stability: "stable",
121
+ owners: [...OWNERS],
122
+ tags: ["audit", "logs", "query"],
123
+ description: "Query audit logs with filters.",
124
+ goal: "Enable searching and filtering of audit history.",
125
+ context: "Admin dashboard, compliance reporting, debugging."
126
+ },
127
+ io: {
128
+ input: AuditQueryInputModel,
129
+ output: AuditQueryOutputModel
130
+ },
131
+ policy: {
132
+ auth: "admin"
133
+ }
134
+ });
135
+ var GetAuditLogContract = defineQuery({
136
+ meta: {
137
+ key: "audit.logs.get",
138
+ version: "1.0.0",
139
+ stability: "stable",
140
+ owners: [...OWNERS],
141
+ tags: ["audit", "logs", "get"],
142
+ description: "Get a specific audit log by ID.",
143
+ goal: "View detailed audit log entry.",
144
+ context: "Log detail view."
145
+ },
146
+ io: {
147
+ input: defineSchemaModel({
148
+ name: "GetAuditLogInput",
149
+ fields: {
150
+ logId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
151
+ }
152
+ }),
153
+ output: AuditLogModel
154
+ },
155
+ policy: {
156
+ auth: "admin"
157
+ }
158
+ });
159
+ var GetAuditTraceContract = defineQuery({
160
+ meta: {
161
+ key: "audit.trace.get",
162
+ version: "1.0.0",
163
+ stability: "stable",
164
+ owners: [...OWNERS],
165
+ tags: ["audit", "trace", "get"],
166
+ description: "Get all audit logs for a trace.",
167
+ goal: "View complete request trace for debugging.",
168
+ context: "Request tracing, debugging."
169
+ },
170
+ io: {
171
+ input: defineSchemaModel({
172
+ name: "GetAuditTraceInput",
173
+ fields: {
174
+ traceId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
175
+ }
176
+ }),
177
+ output: defineSchemaModel({
178
+ name: "GetAuditTraceOutput",
179
+ fields: {
180
+ logs: { type: AuditLogModel, isArray: true, isOptional: false }
181
+ }
182
+ })
183
+ },
184
+ policy: {
185
+ auth: "admin"
186
+ }
187
+ });
188
+ var ExportAuditLogsContract = defineCommand({
189
+ meta: {
190
+ key: "audit.logs.export",
191
+ version: "1.0.0",
192
+ stability: "stable",
193
+ owners: [...OWNERS],
194
+ tags: ["audit", "logs", "export"],
195
+ description: "Export audit logs for compliance reporting.",
196
+ goal: "Generate audit reports for compliance.",
197
+ context: "Compliance reporting, external audits."
198
+ },
199
+ io: {
200
+ input: AuditExportInputModel,
201
+ output: AuditExportOutputModel
202
+ },
203
+ policy: {
204
+ auth: "admin"
205
+ }
206
+ });
207
+ var GetAuditStatsContract = defineQuery({
208
+ meta: {
209
+ key: "audit.stats",
210
+ version: "1.0.0",
211
+ stability: "stable",
212
+ owners: [...OWNERS],
213
+ tags: ["audit", "stats"],
214
+ description: "Get audit log statistics.",
215
+ goal: "Monitor audit activity levels.",
216
+ context: "Admin dashboard, monitoring."
217
+ },
218
+ io: {
219
+ input: AuditStatsInputModel,
220
+ output: AuditStatsOutputModel
221
+ },
222
+ policy: {
223
+ auth: "admin"
224
+ }
225
+ });
226
+ export {
227
+ QueryAuditLogsContract,
228
+ GetAuditTraceContract,
229
+ GetAuditStatsContract,
230
+ GetAuditLogContract,
231
+ ExportStatusEnum,
232
+ ExportFormatEnum,
233
+ ExportAuditLogsContract,
234
+ AuditStatsOutputModel,
235
+ AuditStatsInputModel,
236
+ AuditQueryOutputModel,
237
+ AuditQueryInputModel,
238
+ AuditLogModel,
239
+ AuditExportOutputModel,
240
+ AuditExportInputModel
241
+ };
@@ -0,0 +1,103 @@
1
+ // src/entities/index.ts
2
+ import { defineEntity, field, index } from "@contractspec/lib.schema";
3
+ var AuditLogEntity = defineEntity({
4
+ name: "AuditLog",
5
+ description: "Audit log entry for tracking system events.",
6
+ schema: "lssm_audit",
7
+ map: "audit_log",
8
+ fields: {
9
+ id: field.id({ description: "Unique audit log ID" }),
10
+ eventName: field.string({ description: "Event name/type" }),
11
+ eventVersion: field.int({ description: "Event version" }),
12
+ payload: field.json({ description: "Event payload (may be redacted)" }),
13
+ actorId: field.string({
14
+ isOptional: true,
15
+ description: "User/service that triggered the event"
16
+ }),
17
+ actorType: field.string({
18
+ isOptional: true,
19
+ description: "Actor type (user, system, service)"
20
+ }),
21
+ actorEmail: field.string({
22
+ isOptional: true,
23
+ description: "Actor email (for searchability)"
24
+ }),
25
+ targetId: field.string({
26
+ isOptional: true,
27
+ description: "Resource affected by the event"
28
+ }),
29
+ targetType: field.string({
30
+ isOptional: true,
31
+ description: "Resource type"
32
+ }),
33
+ orgId: field.string({
34
+ isOptional: true,
35
+ description: "Organization context"
36
+ }),
37
+ tenantId: field.string({ isOptional: true, description: "Tenant context" }),
38
+ traceId: field.string({
39
+ isOptional: true,
40
+ description: "Distributed trace ID"
41
+ }),
42
+ spanId: field.string({ isOptional: true, description: "Span ID" }),
43
+ requestId: field.string({ isOptional: true, description: "Request ID" }),
44
+ sessionId: field.string({ isOptional: true, description: "Session ID" }),
45
+ clientIp: field.string({
46
+ isOptional: true,
47
+ description: "Client IP address"
48
+ }),
49
+ userAgent: field.string({
50
+ isOptional: true,
51
+ description: "User agent string"
52
+ }),
53
+ tags: field.json({
54
+ isOptional: true,
55
+ description: "Custom tags for filtering"
56
+ }),
57
+ metadata: field.json({
58
+ isOptional: true,
59
+ description: "Additional metadata"
60
+ }),
61
+ occurredAt: field.dateTime({ description: "When the event occurred" }),
62
+ recordedAt: field.createdAt({ description: "When the log was recorded" })
63
+ },
64
+ indexes: [
65
+ index.on(["actorId", "occurredAt"]),
66
+ index.on(["targetId", "occurredAt"]),
67
+ index.on(["orgId", "occurredAt"]),
68
+ index.on(["eventName", "occurredAt"]),
69
+ index.on(["traceId"]),
70
+ index.on(["occurredAt"])
71
+ ]
72
+ });
73
+ var AuditLogArchiveEntity = defineEntity({
74
+ name: "AuditLogArchive",
75
+ description: "Archived audit logs for long-term retention.",
76
+ schema: "lssm_audit",
77
+ map: "audit_log_archive",
78
+ fields: {
79
+ id: field.id(),
80
+ batchId: field.string({ description: "Archive batch ID" }),
81
+ logCount: field.int({ description: "Number of logs in batch" }),
82
+ fromDate: field.dateTime({ description: "Earliest log in batch" }),
83
+ toDate: field.dateTime({ description: "Latest log in batch" }),
84
+ storagePath: field.string({ description: "Path to archived data" }),
85
+ storageType: field.string({ description: "Storage type (s3, gcs, file)" }),
86
+ compressedSize: field.int({ description: "Compressed size in bytes" }),
87
+ checksum: field.string({ description: "SHA-256 checksum" }),
88
+ retainUntil: field.dateTime({ description: "When archive can be deleted" }),
89
+ createdAt: field.createdAt()
90
+ },
91
+ indexes: [index.on(["fromDate", "toDate"]), index.on(["retainUntil"])]
92
+ });
93
+ var auditTrailEntities = [AuditLogEntity, AuditLogArchiveEntity];
94
+ var auditTrailSchemaContribution = {
95
+ moduleId: "@contractspec/module.audit-trail",
96
+ entities: auditTrailEntities
97
+ };
98
+ export {
99
+ auditTrailSchemaContribution,
100
+ auditTrailEntities,
101
+ AuditLogEntity,
102
+ AuditLogArchiveEntity
103
+ };