@contractspec/module.audit-trail 1.56.0 → 1.57.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.
@@ -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","names":[],"sources":["../src/audit-trail.capability.ts"],"mappings":";;;cAEa,oBAAA,EAUX,4BAAA,CAV+B,cAAA"}
@@ -1,7 +1,6 @@
1
1
  import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/audit-trail.feature.d.ts
4
-
5
4
  /**
6
5
  * Audit Trail feature module that bundles audit log querying,
7
6
  * export, and statistics capabilities.
@@ -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","names":[],"sources":["../src/audit-trail.feature.ts"],"mappings":";;;;;;AAWA;cAAa,iBAAA,EAkCX,4BAAA,CAlC4B,iBAAA"}
@@ -1,4 +1,4 @@
1
- import * as _contractspec_lib_contracts1 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
2
  import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/contracts/index.d.ts
@@ -251,7 +251,7 @@ declare const AuditStatsOutputModel: _contractspec_lib_schema0.SchemaModel<{
251
251
  /**
252
252
  * Query audit logs.
253
253
  */
254
- declare const QueryAuditLogsContract: _contractspec_lib_contracts1.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
254
+ declare const QueryAuditLogsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
255
255
  eventName: {
256
256
  type: _contractspec_lib_schema0.FieldType<string, string>;
257
257
  isOptional: true;
@@ -369,7 +369,7 @@ declare const QueryAuditLogsContract: _contractspec_lib_contracts1.OperationSpec
369
369
  /**
370
370
  * Get audit log by ID.
371
371
  */
372
- declare const GetAuditLogContract: _contractspec_lib_contracts1.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
372
+ declare const GetAuditLogContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
373
373
  logId: {
374
374
  type: _contractspec_lib_schema0.FieldType<string, string>;
375
375
  isOptional: false;
@@ -435,7 +435,7 @@ declare const GetAuditLogContract: _contractspec_lib_contracts1.OperationSpec<_c
435
435
  /**
436
436
  * Get audit logs by trace ID.
437
437
  */
438
- declare const GetAuditTraceContract: _contractspec_lib_contracts1.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
438
+ declare const GetAuditTraceContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
439
439
  traceId: {
440
440
  type: _contractspec_lib_schema0.FieldType<string, string>;
441
441
  isOptional: false;
@@ -507,7 +507,7 @@ declare const GetAuditTraceContract: _contractspec_lib_contracts1.OperationSpec<
507
507
  /**
508
508
  * Export audit logs.
509
509
  */
510
- declare const ExportAuditLogsContract: _contractspec_lib_contracts1.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
510
+ declare const ExportAuditLogsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
511
511
  orgId: {
512
512
  type: _contractspec_lib_schema0.FieldType<string, string>;
513
513
  isOptional: false;
@@ -547,7 +547,7 @@ declare const ExportAuditLogsContract: _contractspec_lib_contracts1.OperationSpe
547
547
  /**
548
548
  * Get audit statistics.
549
549
  */
550
- declare const GetAuditStatsContract: _contractspec_lib_contracts1.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
550
+ declare const GetAuditStatsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
551
551
  orgId: {
552
552
  type: _contractspec_lib_schema0.FieldType<string, string>;
553
553
  isOptional: true;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/contracts/index.ts"],"sourcesContent":[],"mappings":";;;;cAWa,yCAAa;;UAmBxB,yBAAA,CAAA;;EAnBW,CAAA;EAmBX,SAAA,EAAA;;;;;;;;;;;;;;;;;;;EAnBwB,CAAA;EAqBb,UAAA,EAAA;IAuBX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;6CAvB+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EAyBpB,CAAA;EAQX,OAAA,EAAA;;;;;;;;;;;;;;;;;cAjCW,gDAAoB;;UAuB/B,yBAAA,CAAA;;;EAEgC,OAAA,EAAA;IAUrB,IAAA,qCAIX,CAAA,MAJ2B,EAAA,MAAA,CAAA;IAMhB,UAAA,EAAA,IAAA;EAcX,CAAA;;;;;;;;EAdgC,CAAA;EAgBrB,KAAA,EAAA;IAOA,IAAA,qCAQX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;6CARiC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EAUtB,CAAA;EAQX,IAAA,EAAA;;;;;6CAR+B,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;EAUpB,CAAA;EASX,KAAA,EAAA;;;;;;6CATgC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;IAgBrB,YAAA,EAAA,MAAA;EAkBX,CAAA;;cA7FW,iDAAqB;;;;cAQhC,yBAAA,CAAA;;;;;;;MAmEiC,YAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;wBAAA;MAAA,CAAA;MAuBtB,UAAA,EAAA;QAuBX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;oBAvB8B,IAAA;M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuBtB,mBAAA,+BAAmB,aAAA,2BAAA,WAAA;;UAuB9B,yBAAA,CAAA,SAAA;;;;;UAvB8B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BnB,qBAAA,+BAAqB,aAAA,2BAAA,WAAA;;UA4BhC,yBAAA,CAAA,SAAA;;;;;;;cA5BgC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiCrB,uBAAA,+BAAuB,aAAA,2BAAA,WAAA;;UAkBlC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;UAlBkC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAuBvB,qBAAA,+BAAqB,aAAA,2BAAA,WAAA;;UAkBhC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;UAlBgC,yBAAA,CAAA,SAAA"}
@@ -1,86 +1,86 @@
1
- import * as _contractspec_lib_schema147 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
2
  import { ModuleSchemaContribution } from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/entities/index.d.ts
5
5
  /**
6
6
  * AuditLog entity - main audit log entry.
7
7
  */
8
- declare const AuditLogEntity: _contractspec_lib_schema147.EntitySpec<{
9
- id: _contractspec_lib_schema147.EntityScalarField;
10
- eventName: _contractspec_lib_schema147.EntityScalarField;
11
- eventVersion: _contractspec_lib_schema147.EntityScalarField;
12
- payload: _contractspec_lib_schema147.EntityScalarField;
13
- actorId: _contractspec_lib_schema147.EntityScalarField;
14
- actorType: _contractspec_lib_schema147.EntityScalarField;
15
- actorEmail: _contractspec_lib_schema147.EntityScalarField;
16
- targetId: _contractspec_lib_schema147.EntityScalarField;
17
- targetType: _contractspec_lib_schema147.EntityScalarField;
18
- orgId: _contractspec_lib_schema147.EntityScalarField;
19
- tenantId: _contractspec_lib_schema147.EntityScalarField;
20
- traceId: _contractspec_lib_schema147.EntityScalarField;
21
- spanId: _contractspec_lib_schema147.EntityScalarField;
22
- requestId: _contractspec_lib_schema147.EntityScalarField;
23
- sessionId: _contractspec_lib_schema147.EntityScalarField;
24
- clientIp: _contractspec_lib_schema147.EntityScalarField;
25
- userAgent: _contractspec_lib_schema147.EntityScalarField;
26
- tags: _contractspec_lib_schema147.EntityScalarField;
27
- metadata: _contractspec_lib_schema147.EntityScalarField;
28
- occurredAt: _contractspec_lib_schema147.EntityScalarField;
29
- recordedAt: _contractspec_lib_schema147.EntityScalarField;
8
+ declare const AuditLogEntity: _contractspec_lib_schema0.EntitySpec<{
9
+ id: _contractspec_lib_schema0.EntityScalarField;
10
+ eventName: _contractspec_lib_schema0.EntityScalarField;
11
+ eventVersion: _contractspec_lib_schema0.EntityScalarField;
12
+ payload: _contractspec_lib_schema0.EntityScalarField;
13
+ actorId: _contractspec_lib_schema0.EntityScalarField;
14
+ actorType: _contractspec_lib_schema0.EntityScalarField;
15
+ actorEmail: _contractspec_lib_schema0.EntityScalarField;
16
+ targetId: _contractspec_lib_schema0.EntityScalarField;
17
+ targetType: _contractspec_lib_schema0.EntityScalarField;
18
+ orgId: _contractspec_lib_schema0.EntityScalarField;
19
+ tenantId: _contractspec_lib_schema0.EntityScalarField;
20
+ traceId: _contractspec_lib_schema0.EntityScalarField;
21
+ spanId: _contractspec_lib_schema0.EntityScalarField;
22
+ requestId: _contractspec_lib_schema0.EntityScalarField;
23
+ sessionId: _contractspec_lib_schema0.EntityScalarField;
24
+ clientIp: _contractspec_lib_schema0.EntityScalarField;
25
+ userAgent: _contractspec_lib_schema0.EntityScalarField;
26
+ tags: _contractspec_lib_schema0.EntityScalarField;
27
+ metadata: _contractspec_lib_schema0.EntityScalarField;
28
+ occurredAt: _contractspec_lib_schema0.EntityScalarField;
29
+ recordedAt: _contractspec_lib_schema0.EntityScalarField;
30
30
  }>;
31
31
  /**
32
32
  * AuditLogArchive entity - archived logs for long-term retention.
33
33
  */
34
- declare const AuditLogArchiveEntity: _contractspec_lib_schema147.EntitySpec<{
35
- id: _contractspec_lib_schema147.EntityScalarField;
36
- batchId: _contractspec_lib_schema147.EntityScalarField;
37
- logCount: _contractspec_lib_schema147.EntityScalarField;
38
- fromDate: _contractspec_lib_schema147.EntityScalarField;
39
- toDate: _contractspec_lib_schema147.EntityScalarField;
40
- storagePath: _contractspec_lib_schema147.EntityScalarField;
41
- storageType: _contractspec_lib_schema147.EntityScalarField;
42
- compressedSize: _contractspec_lib_schema147.EntityScalarField;
43
- checksum: _contractspec_lib_schema147.EntityScalarField;
44
- retainUntil: _contractspec_lib_schema147.EntityScalarField;
45
- createdAt: _contractspec_lib_schema147.EntityScalarField;
34
+ declare const AuditLogArchiveEntity: _contractspec_lib_schema0.EntitySpec<{
35
+ id: _contractspec_lib_schema0.EntityScalarField;
36
+ batchId: _contractspec_lib_schema0.EntityScalarField;
37
+ logCount: _contractspec_lib_schema0.EntityScalarField;
38
+ fromDate: _contractspec_lib_schema0.EntityScalarField;
39
+ toDate: _contractspec_lib_schema0.EntityScalarField;
40
+ storagePath: _contractspec_lib_schema0.EntityScalarField;
41
+ storageType: _contractspec_lib_schema0.EntityScalarField;
42
+ compressedSize: _contractspec_lib_schema0.EntityScalarField;
43
+ checksum: _contractspec_lib_schema0.EntityScalarField;
44
+ retainUntil: _contractspec_lib_schema0.EntityScalarField;
45
+ createdAt: _contractspec_lib_schema0.EntityScalarField;
46
46
  }>;
47
47
  /**
48
48
  * All audit trail entities for schema composition.
49
49
  */
50
- declare const auditTrailEntities: (_contractspec_lib_schema147.EntitySpec<{
51
- id: _contractspec_lib_schema147.EntityScalarField;
52
- eventName: _contractspec_lib_schema147.EntityScalarField;
53
- eventVersion: _contractspec_lib_schema147.EntityScalarField;
54
- payload: _contractspec_lib_schema147.EntityScalarField;
55
- actorId: _contractspec_lib_schema147.EntityScalarField;
56
- actorType: _contractspec_lib_schema147.EntityScalarField;
57
- actorEmail: _contractspec_lib_schema147.EntityScalarField;
58
- targetId: _contractspec_lib_schema147.EntityScalarField;
59
- targetType: _contractspec_lib_schema147.EntityScalarField;
60
- orgId: _contractspec_lib_schema147.EntityScalarField;
61
- tenantId: _contractspec_lib_schema147.EntityScalarField;
62
- traceId: _contractspec_lib_schema147.EntityScalarField;
63
- spanId: _contractspec_lib_schema147.EntityScalarField;
64
- requestId: _contractspec_lib_schema147.EntityScalarField;
65
- sessionId: _contractspec_lib_schema147.EntityScalarField;
66
- clientIp: _contractspec_lib_schema147.EntityScalarField;
67
- userAgent: _contractspec_lib_schema147.EntityScalarField;
68
- tags: _contractspec_lib_schema147.EntityScalarField;
69
- metadata: _contractspec_lib_schema147.EntityScalarField;
70
- occurredAt: _contractspec_lib_schema147.EntityScalarField;
71
- recordedAt: _contractspec_lib_schema147.EntityScalarField;
72
- }> | _contractspec_lib_schema147.EntitySpec<{
73
- id: _contractspec_lib_schema147.EntityScalarField;
74
- batchId: _contractspec_lib_schema147.EntityScalarField;
75
- logCount: _contractspec_lib_schema147.EntityScalarField;
76
- fromDate: _contractspec_lib_schema147.EntityScalarField;
77
- toDate: _contractspec_lib_schema147.EntityScalarField;
78
- storagePath: _contractspec_lib_schema147.EntityScalarField;
79
- storageType: _contractspec_lib_schema147.EntityScalarField;
80
- compressedSize: _contractspec_lib_schema147.EntityScalarField;
81
- checksum: _contractspec_lib_schema147.EntityScalarField;
82
- retainUntil: _contractspec_lib_schema147.EntityScalarField;
83
- createdAt: _contractspec_lib_schema147.EntityScalarField;
50
+ declare const auditTrailEntities: (_contractspec_lib_schema0.EntitySpec<{
51
+ id: _contractspec_lib_schema0.EntityScalarField;
52
+ eventName: _contractspec_lib_schema0.EntityScalarField;
53
+ eventVersion: _contractspec_lib_schema0.EntityScalarField;
54
+ payload: _contractspec_lib_schema0.EntityScalarField;
55
+ actorId: _contractspec_lib_schema0.EntityScalarField;
56
+ actorType: _contractspec_lib_schema0.EntityScalarField;
57
+ actorEmail: _contractspec_lib_schema0.EntityScalarField;
58
+ targetId: _contractspec_lib_schema0.EntityScalarField;
59
+ targetType: _contractspec_lib_schema0.EntityScalarField;
60
+ orgId: _contractspec_lib_schema0.EntityScalarField;
61
+ tenantId: _contractspec_lib_schema0.EntityScalarField;
62
+ traceId: _contractspec_lib_schema0.EntityScalarField;
63
+ spanId: _contractspec_lib_schema0.EntityScalarField;
64
+ requestId: _contractspec_lib_schema0.EntityScalarField;
65
+ sessionId: _contractspec_lib_schema0.EntityScalarField;
66
+ clientIp: _contractspec_lib_schema0.EntityScalarField;
67
+ userAgent: _contractspec_lib_schema0.EntityScalarField;
68
+ tags: _contractspec_lib_schema0.EntityScalarField;
69
+ metadata: _contractspec_lib_schema0.EntityScalarField;
70
+ occurredAt: _contractspec_lib_schema0.EntityScalarField;
71
+ recordedAt: _contractspec_lib_schema0.EntityScalarField;
72
+ }> | _contractspec_lib_schema0.EntitySpec<{
73
+ id: _contractspec_lib_schema0.EntityScalarField;
74
+ batchId: _contractspec_lib_schema0.EntityScalarField;
75
+ logCount: _contractspec_lib_schema0.EntityScalarField;
76
+ fromDate: _contractspec_lib_schema0.EntityScalarField;
77
+ toDate: _contractspec_lib_schema0.EntityScalarField;
78
+ storagePath: _contractspec_lib_schema0.EntityScalarField;
79
+ storageType: _contractspec_lib_schema0.EntityScalarField;
80
+ compressedSize: _contractspec_lib_schema0.EntityScalarField;
81
+ checksum: _contractspec_lib_schema0.EntityScalarField;
82
+ retainUntil: _contractspec_lib_schema0.EntityScalarField;
83
+ createdAt: _contractspec_lib_schema0.EntityScalarField;
84
84
  }>)[];
85
85
  /**
86
86
  * Module schema contribution for audit trail.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/entities/index.ts"],"sourcesContent":[],"mappings":";;;;;;;AAMa,cAAA,cAqFX,8BArFyB,UAqFzB,CAAA;EAAA,EAAA,EAAA,2BAAA,CAAA,iBAAA;;;;;;;;;;;;;;;;;;;;;;;AAKF;;cAAa,mDAAqB;MA+BhC,2BAAA,CAAA;;;;;;;;;4DA/BgC;EAAA,SAAA,+CAAA;AAoClC,CAAA,CAAA;;;;cAAa,iDAAkB;MAA0C,2BAAA,CAAA;;;;;;;;;;;;;;;;;qDAA1C;EAAA,QAAA,+CAAA;;;;MAAA,2BAAA,CAAA;;;;;;;;;EAKlB,WAAA,+CAA8B;;;;;;cAA9B,8BAA8B"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/entities/index.ts"],"mappings":";;;;;;;cAMa,cAAA,4BAAc,UAAA;MAqFzB,yBAAA,CAAA,iBAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,qBAAA,4BAAqB,UAAA;MA+BhC,yBAAA,CAAA,iBAAA;;;;;;;;;;;;;;;cAKW,kBAAA,6BAAkB,UAAA;MAA0C,yBAAA,CAAA,iBAAA;;;;;;;;;;;;;;;;;;;;;;MAA1C,yBAAA,CAAA,iBAAA;;;;;;;;;;;;;;;cAKlB,4BAAA,EAA8B,wBAAA"}
@@ -1,7 +1,6 @@
1
1
  import { AuditQueryOptions, AuditRecord, AuditStorage } from "@contractspec/lib.bus";
2
2
 
3
3
  //#region src/storage/index.d.ts
4
-
5
4
  /**
6
5
  * Extended query options for audit storage.
7
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/storage/index.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;AAWiB,UAXA,yBAAA,SAAkC,iBAWd,CAAA;EAEpB,UAAA,CAAA,EAAA,MAAA;EAAoC,QAAA,CAAA,EAAA,MAAA;EAAR,SAAA,CAAA,EAAA,MAAA;EAG3B,OAAA,CAAA,EAAA,YAAA,GAAA,YAAA;EAAL,QAAA,CAAA,EAAA,KAAA,GAAA,MAAA;;;;;AAKoB,UAVhB,mBAAA,SAA4B,YAUZ,CAAA;EA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AA;EArHhB;;;EA0HrB,YAAA,CAAA,GAAgB,IAAA;EAxDL;;;EAiEX,gBAAA,CAAA,GAAoB,IAAA;EAvDyB;;;EAiEvC,KAAA,CAAM,OAAA,EAAS,mBAAA,GAAsB,OAAA;IACzC,YAAA;EAAA;AAAA;;;;iBAWY,0BAAA,CAAA,GAA8B,oBAAA"}
@@ -11,7 +11,7 @@ var InMemoryAuditStorage = class {
11
11
  let results = [...this.records];
12
12
  if (options.eventKey) {
13
13
  const pattern = options.eventKey.replace(/\*/g, ".*");
14
- const regex = /* @__PURE__ */ new RegExp(`^${pattern}$`);
14
+ const regex = new RegExp(`^${pattern}$`);
15
15
  results = results.filter((r) => regex.test(r.eventKey));
16
16
  }
17
17
  if (options.actorId) results = results.filter((r) => r.metadata?.actorId === options.actorId);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/storage/index.ts"],"sourcesContent":["import type {\n AuditRecord,\n AuditQueryOptions,\n AuditStorage,\n} from '@contractspec/lib.bus';\n\n/**\n * Extended query options for audit storage.\n */\nexport interface ExtendedAuditQueryOptions extends AuditQueryOptions {\n targetType?: string;\n clientIp?: string;\n sessionId?: string;\n orderBy?: 'occurredAt' | 'recordedAt';\n orderDir?: 'asc' | 'desc';\n}\n\n/**\n * Audit storage adapter interface with extended capabilities.\n */\nexport interface AuditStorageAdapter extends AuditStorage {\n /** Query audit records with extended options */\n query(options: ExtendedAuditQueryOptions): Promise<AuditRecord[]>;\n /** Count matching records */\n count(\n options: Omit<ExtendedAuditQueryOptions, 'limit' | 'offset'>\n ): Promise<number>;\n /** Get a single record by ID */\n getById(id: string): Promise<AuditRecord | null>;\n /** Get all records for a trace */\n getByTraceId(traceId: string): Promise<AuditRecord[]>;\n /** Delete old records (for retention) */\n deleteOlderThan(date: Date): Promise<number>;\n}\n\n/**\n * In-memory audit storage for development/testing.\n */\nexport class InMemoryAuditStorage implements AuditStorageAdapter {\n private records: AuditRecord[] = [];\n\n async store(record: AuditRecord): Promise<void> {\n this.records.push(record);\n }\n\n async query(options: ExtendedAuditQueryOptions): Promise<AuditRecord[]> {\n let results = [...this.records];\n\n // Apply filters\n if (options.eventKey) {\n const pattern = options.eventKey.replace(/\\*/g, '.*');\n const regex = new RegExp(`^${pattern}$`);\n results = results.filter((r) => regex.test(r.eventKey));\n }\n\n if (options.actorId) {\n results = results.filter((r) => r.metadata?.actorId === options.actorId);\n }\n\n if (options.targetId) {\n results = results.filter(\n (r) => r.metadata?.targetId === options.targetId\n );\n }\n\n if (options.targetType) {\n results = results.filter(\n (r) => r.metadata?.targetType === options.targetType\n );\n }\n\n if (options.orgId) {\n results = results.filter((r) => r.metadata?.orgId === options.orgId);\n }\n\n if (options.traceId) {\n results = results.filter((r) => r.traceId === options.traceId);\n }\n\n if (options.from) {\n const fromDate = options.from;\n results = results.filter((r) => new Date(r.occurredAt) >= fromDate);\n }\n\n if (options.to) {\n const toDate = options.to;\n results = results.filter((r) => new Date(r.occurredAt) <= toDate);\n }\n\n // Sort\n const orderBy = options.orderBy ?? 'occurredAt';\n const orderDir = options.orderDir ?? 'desc';\n results.sort((a, b) => {\n const aTime =\n orderBy === 'occurredAt'\n ? new Date(a.occurredAt).getTime()\n : a.recordedAt.getTime();\n const bTime =\n orderBy === 'occurredAt'\n ? new Date(b.occurredAt).getTime()\n : b.recordedAt.getTime();\n return orderDir === 'desc' ? bTime - aTime : aTime - bTime;\n });\n\n // Paginate\n const offset = options.offset ?? 0;\n const limit = options.limit ?? 100;\n return results.slice(offset, offset + limit);\n }\n\n async count(\n options: Omit<ExtendedAuditQueryOptions, 'limit' | 'offset'>\n ): Promise<number> {\n const results = await this.query({ ...options, limit: Infinity });\n return results.length;\n }\n\n async getById(id: string): Promise<AuditRecord | null> {\n return this.records.find((r) => r.id === id) ?? null;\n }\n\n async getByTraceId(traceId: string): Promise<AuditRecord[]> {\n return this.query({ traceId });\n }\n\n async deleteOlderThan(date: Date): Promise<number> {\n const before = this.records.length;\n this.records = this.records.filter((r) => new Date(r.occurredAt) >= date);\n return before - this.records.length;\n }\n\n /**\n * Get all records (for testing).\n */\n getAll(): AuditRecord[] {\n return [...this.records];\n }\n\n /**\n * Clear all records (for testing).\n */\n clear(): void {\n this.records = [];\n }\n}\n\n/**\n * Retention policy configuration.\n */\nexport interface RetentionPolicyConfig {\n /** Days to keep detailed logs */\n hotRetentionDays: number;\n /** Days to keep archived logs (for compliance) */\n archiveRetentionDays?: number;\n /** Cron expression for cleanup schedule */\n cleanupSchedule?: string;\n}\n\n/**\n * Retention policy manager.\n */\nexport class RetentionPolicy {\n constructor(private readonly config: RetentionPolicyConfig) {}\n\n /**\n * Get the cutoff date for hot storage.\n */\n getHotCutoff(): Date {\n const cutoff = new Date();\n cutoff.setDate(cutoff.getDate() - this.config.hotRetentionDays);\n return cutoff;\n }\n\n /**\n * Get the cutoff date for archive storage.\n */\n getArchiveCutoff(): Date | null {\n if (!this.config.archiveRetentionDays) return null;\n const cutoff = new Date();\n cutoff.setDate(cutoff.getDate() - this.config.archiveRetentionDays);\n return cutoff;\n }\n\n /**\n * Apply retention policy to storage.\n */\n async apply(storage: AuditStorageAdapter): Promise<{\n deletedCount: number;\n }> {\n const cutoff = this.getHotCutoff();\n const deletedCount = await storage.deleteOlderThan(cutoff);\n return { deletedCount };\n }\n}\n\n/**\n * Create an in-memory audit storage.\n */\nexport function createInMemoryAuditStorage(): InMemoryAuditStorage {\n return new InMemoryAuditStorage();\n}\n"],"mappings":";;;;AAsCA,IAAa,uBAAb,MAAiE;CAC/D,AAAQ,UAAyB,EAAE;CAEnC,MAAM,MAAM,QAAoC;AAC9C,OAAK,QAAQ,KAAK,OAAO;;CAG3B,MAAM,MAAM,SAA4D;EACtE,IAAI,UAAU,CAAC,GAAG,KAAK,QAAQ;AAG/B,MAAI,QAAQ,UAAU;GACpB,MAAM,UAAU,QAAQ,SAAS,QAAQ,OAAO,KAAK;GACrD,MAAM,wBAAQ,IAAI,OAAO,IAAI,QAAQ,GAAG;AACxC,aAAU,Q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;;CAGjB,MAAM,QAAQ,IAAyC;AACrD,SAAO,KAAK,QAAQ,MAAM,MAAM,EAAE,OAAO,GAAG,IAAI;;CAGlD,MAAM,aAAa,SAAyC;AAC1D,SAAO,KAAK,MAAM,EAAE,SAAS,CAAC;;CAGhC,MAAM,gBAAgB,MAA6B;EACjD,MAAM,SAAS,KAAK,QAAQ;AAC5B,OAAK,UAAU,KAAK,QAAQ,QAAQ,MAAM,IAAI,KAAK,EAAE,WAAW,IAAI,KAAK;AACzE,SAAO,SAAS,KAAK,QAAQ;;;;;CAM/B,SAAwB;AACtB,SAAO,CAAC,GAAG,KAAK,QAAQ;;;;;CAM1B,QAAc;AACZ,OAAK,UAAU,EAAE;;;;;;AAmBrB,IAAa,kBAAb,MAA6B;CAC3B,YAAY,AAAiB,QAA+B;EAA/B;;;;;CAK7B,eAAqB;EACnB,MAAM,yBAAS,IAAI,MAAM;AACzB,SAAO,QAAQ,OAAO,SAAS,GAAG,KAAK,OAAO,iBAAiB;AAC/D,SAAO;;;;;CAMT,mBAAgC;AAC9B,MAAI,CAAC,KAAK,OAAO,qBAAsB,QAAO;EAC9C,MAAM,yBAAS,IAAI,MAAM;AACzB,SAAO,QAAQ,OAAO,SAAS,GAAG,KAAK,OAAO,qBAAqB;AACnE,SAAO;;;;;CAMT,MAAM,MAAM,SAET;EACD,MAAM,SAAS,KAAK,cAAc;AAElC,SAAO,EAAE,cADY,MAAM,QAAQ,gBAAgB,OAAO,EACnC;;;;;;AAO3B,SAAgB,6BAAmD;AACjE,QAAO,IAAI,sBAAsB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/storage/index.ts"],"sourcesContent":["import type {\n AuditRecord,\n AuditQueryOptions,\n AuditStorage,\n} from '@contractspec/lib.bus';\n\n/**\n * Extended query options for audit storage.\n */\nexport interface ExtendedAuditQueryOptions extends AuditQueryOptions {\n targetType?: string;\n clientIp?: string;\n sessionId?: string;\n orderBy?: 'occurredAt' | 'recordedAt';\n orderDir?: 'asc' | 'desc';\n}\n\n/**\n * Audit storage adapter interface with extended capabilities.\n */\nexport interface AuditStorageAdapter extends AuditStorage {\n /** Query audit records with extended options */\n query(options: ExtendedAuditQueryOptions): Promise<AuditRecord[]>;\n /** Count matching records */\n count(\n options: Omit<ExtendedAuditQueryOptions, 'limit' | 'offset'>\n ): Promise<number>;\n /** Get a single record by ID */\n getById(id: string): Promise<AuditRecord | null>;\n /** Get all records for a trace */\n getByTraceId(traceId: string): Promise<AuditRecord[]>;\n /** Delete old records (for retention) */\n deleteOlderThan(date: Date): Promise<number>;\n}\n\n/**\n * In-memory audit storage for development/testing.\n */\nexport class InMemoryAuditStorage implements AuditStorageAdapter {\n private records: AuditRecord[] = [];\n\n async store(record: AuditRecord): Promise<void> {\n this.records.push(record);\n }\n\n async query(options: ExtendedAuditQueryOptions): Promise<AuditRecord[]> {\n let results = [...this.records];\n\n // Apply filters\n if (options.eventKey) {\n const pattern = options.eventKey.replace(/\\*/g, '.*');\n const regex = new RegExp(`^${pattern}$`);\n results = results.filter((r) => regex.test(r.eventKey));\n }\n\n if (options.actorId) {\n results = results.filter((r) => r.metadata?.actorId === options.actorId);\n }\n\n if (options.targetId) {\n results = results.filter(\n (r) => r.metadata?.targetId === options.targetId\n );\n }\n\n if (options.targetType) {\n results = results.filter(\n (r) => r.metadata?.targetType === options.targetType\n );\n }\n\n if (options.orgId) {\n results = results.filter((r) => r.metadata?.orgId === options.orgId);\n }\n\n if (options.traceId) {\n results = results.filter((r) => r.traceId === options.traceId);\n }\n\n if (options.from) {\n const fromDate = options.from;\n results = results.filter((r) => new Date(r.occurredAt) >= fromDate);\n }\n\n if (options.to) {\n const toDate = options.to;\n results = results.filter((r) => new Date(r.occurredAt) <= toDate);\n }\n\n // Sort\n const orderBy = options.orderBy ?? 'occurredAt';\n const orderDir = options.orderDir ?? 'desc';\n results.sort((a, b) => {\n const aTime =\n orderBy === 'occurredAt'\n ? new Date(a.occurredAt).getTime()\n : a.recordedAt.getTime();\n const bTime =\n orderBy === 'occurredAt'\n ? new Date(b.occurredAt).getTime()\n : b.recordedAt.getTime();\n return orderDir === 'desc' ? bTime - aTime : aTime - bTime;\n });\n\n // Paginate\n const offset = options.offset ?? 0;\n const limit = options.limit ?? 100;\n return results.slice(offset, offset + limit);\n }\n\n async count(\n options: Omit<ExtendedAuditQueryOptions, 'limit' | 'offset'>\n ): Promise<number> {\n const results = await this.query({ ...options, limit: Infinity });\n return results.length;\n }\n\n async getById(id: string): Promise<AuditRecord | null> {\n return this.records.find((r) => r.id === id) ?? null;\n }\n\n async getByTraceId(traceId: string): Promise<AuditRecord[]> {\n return this.query({ traceId });\n }\n\n async deleteOlderThan(date: Date): Promise<number> {\n const before = this.records.length;\n this.records = this.records.filter((r) => new Date(r.occurredAt) >= date);\n return before - this.records.length;\n }\n\n /**\n * Get all records (for testing).\n */\n getAll(): AuditRecord[] {\n return [...this.records];\n }\n\n /**\n * Clear all records (for testing).\n */\n clear(): void {\n this.records = [];\n }\n}\n\n/**\n * Retention policy configuration.\n */\nexport interface RetentionPolicyConfig {\n /** Days to keep detailed logs */\n hotRetentionDays: number;\n /** Days to keep archived logs (for compliance) */\n archiveRetentionDays?: number;\n /** Cron expression for cleanup schedule */\n cleanupSchedule?: string;\n}\n\n/**\n * Retention policy manager.\n */\nexport class RetentionPolicy {\n constructor(private readonly config: RetentionPolicyConfig) {}\n\n /**\n * Get the cutoff date for hot storage.\n */\n getHotCutoff(): Date {\n const cutoff = new Date();\n cutoff.setDate(cutoff.getDate() - this.config.hotRetentionDays);\n return cutoff;\n }\n\n /**\n * Get the cutoff date for archive storage.\n */\n getArchiveCutoff(): Date | null {\n if (!this.config.archiveRetentionDays) return null;\n const cutoff = new Date();\n cutoff.setDate(cutoff.getDate() - this.config.archiveRetentionDays);\n return cutoff;\n }\n\n /**\n * Apply retention policy to storage.\n */\n async apply(storage: AuditStorageAdapter): Promise<{\n deletedCount: number;\n }> {\n const cutoff = this.getHotCutoff();\n const deletedCount = await storage.deleteOlderThan(c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AqB;AACnE,SAAO;;;;;CAMT,MAAM,MAAM,SAET;EACD,MAAM,SAAS,KAAK,cAAc;AAElC,SAAO,EAAE,cADY,MAAM,QAAQ,gBAAgB,OAAO,EACnC;;;;;;AAO3B,SAAgB,6BAAmD;AACjE,QAAO,IAAI,sBAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/module.audit-trail",
3
- "version": "1.56.0",
3
+ "version": "1.57.0",
4
4
  "description": "Audit trail module for tracking and querying system events",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -25,14 +25,14 @@
25
25
  "lint:check": "eslint src"
26
26
  },
27
27
  "dependencies": {
28
- "@contractspec/lib.schema": "1.56.0",
29
- "@contractspec/lib.contracts": "1.56.0",
30
- "@contractspec/lib.bus": "1.56.0",
28
+ "@contractspec/lib.schema": "1.57.0",
29
+ "@contractspec/lib.contracts": "1.57.0",
30
+ "@contractspec/lib.bus": "1.57.0",
31
31
  "zod": "^4.3.5"
32
32
  },
33
33
  "devDependencies": {
34
- "@contractspec/tool.typescript": "1.56.0",
35
- "@contractspec/tool.tsdown": "1.56.0",
34
+ "@contractspec/tool.typescript": "1.57.0",
35
+ "@contractspec/tool.tsdown": "1.57.0",
36
36
  "typescript": "^5.9.3"
37
37
  },
38
38
  "exports": {