@lssm/module.audit-trail 1.41.1 → 1.42.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # @lssm/module.audit-trail
2
2
 
3
+ Website: https://contractspec.lssm.tech/
4
+
5
+
3
6
  Audit trail module for tracking and querying system events in ContractSpec applications.
4
7
 
5
8
  ## Purpose
@@ -0,0 +1,12 @@
1
+ import { FeatureModuleSpec } from "@lssm/lib.contracts";
2
+
3
+ //#region src/audit-trail.feature.d.ts
4
+
5
+ /**
6
+ * Audit Trail feature module that bundles audit log querying,
7
+ * export, and statistics capabilities.
8
+ */
9
+ declare const AuditTrailFeature: FeatureModuleSpec;
10
+ //#endregion
11
+ export { AuditTrailFeature };
12
+ //# sourceMappingURL=audit-trail.feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-trail.feature.d.ts","names":[],"sources":["../src/audit-trail.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAWa,mBAAmB"}
@@ -1 +1,59 @@
1
- const e={meta:{key:`audit-trail`,title:`Audit Trail`,description:`Audit logging, querying, export, and compliance reporting`,domain:`platform`,owners:[`@platform.audit-trail`],tags:[`audit`,`compliance`,`logging`,`security`],stability:`stable`},operations:[{name:`audit.logs.export`,version:1},{name:`audit.logs.query`,version:1},{name:`audit.logs.get`,version:1},{name:`audit.trace.get`,version:1},{name:`audit.stats`,version:1}],events:[],presentations:[],opToPresentation:[],presentationsTargets:[],capabilities:{provides:[{key:`audit-trail`,version:1}],requires:[]}};export{e as AuditTrailFeature};
1
+ //#region src/audit-trail.feature.ts
2
+ /**
3
+ * Audit Trail feature module that bundles audit log querying,
4
+ * export, and statistics capabilities.
5
+ */
6
+ const AuditTrailFeature = {
7
+ meta: {
8
+ key: "audit-trail",
9
+ title: "Audit Trail",
10
+ description: "Audit logging, querying, export, and compliance reporting",
11
+ domain: "platform",
12
+ version: 1,
13
+ owners: ["@platform.audit-trail"],
14
+ tags: [
15
+ "audit",
16
+ "compliance",
17
+ "logging",
18
+ "security"
19
+ ],
20
+ stability: "stable"
21
+ },
22
+ operations: [
23
+ {
24
+ key: "audit.logs.export",
25
+ version: 1
26
+ },
27
+ {
28
+ key: "audit.logs.query",
29
+ version: 1
30
+ },
31
+ {
32
+ key: "audit.logs.get",
33
+ version: 1
34
+ },
35
+ {
36
+ key: "audit.trace.get",
37
+ version: 1
38
+ },
39
+ {
40
+ key: "audit.stats",
41
+ version: 1
42
+ }
43
+ ],
44
+ events: [],
45
+ presentations: [],
46
+ opToPresentation: [],
47
+ presentationsTargets: [],
48
+ capabilities: {
49
+ provides: [{
50
+ key: "audit-trail",
51
+ version: 1
52
+ }],
53
+ requires: []
54
+ }
55
+ };
56
+
57
+ //#endregion
58
+ export { AuditTrailFeature };
59
+ //# sourceMappingURL=audit-trail.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-trail.feature.js","names":["AuditTrailFeature: FeatureModuleSpec"],"sources":["../src/audit-trail.feature.ts"],"sourcesContent":["/**\n * Audit Trail Feature Module Specification\n *\n * Defines the feature module for audit logging and compliance.\n */\nimport type { FeatureModuleSpec } from '@lssm/lib.contracts';\n\n/**\n * Audit Trail feature module that bundles audit log querying,\n * export, and statistics capabilities.\n */\nexport const AuditTrailFeature: FeatureModuleSpec = {\n meta: {\n key: 'audit-trail',\n title: 'Audit Trail',\n description: 'Audit logging, querying, export, and compliance reporting',\n domain: 'platform',\n version: 1,\n owners: ['@platform.audit-trail'],\n tags: ['audit', 'compliance', 'logging', 'security'],\n stability: 'stable',\n },\n\n // All contract operations included in this feature\n operations: [\n { key: 'audit.logs.export', version: 1 },\n { key: 'audit.logs.query', version: 1 },\n { key: 'audit.logs.get', version: 1 },\n { key: 'audit.trace.get', version: 1 },\n { key: 'audit.stats', version: 1 },\n ],\n\n // No events for this feature - it consumes events, doesn't emit them\n events: [],\n\n // No presentations for this module feature\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n\n // Capability definitions\n capabilities: {\n provides: [{ key: 'audit-trail', version: 1 }],\n requires: [],\n },\n};\n"],"mappings":";;;;;AAWA,MAAaA,oBAAuC;CAClD,MAAM;EACJ,KAAK;EACL,OAAO;EACP,aAAa;EACb,QAAQ;EACR,SAAS;EACT,QAAQ,CAAC,wBAAwB;EACjC,MAAM;GAAC;GAAS;GAAc;GAAW;GAAW;EACpD,WAAW;EACZ;CAGD,YAAY;EACV;GAAE,KAAK;GAAqB,SAAS;GAAG;EACxC;GAAE,KAAK;GAAoB,SAAS;GAAG;EACvC;GAAE,KAAK;GAAkB,SAAS;GAAG;EACrC;GAAE,KAAK;GAAmB,SAAS;GAAG;EACtC;GAAE,KAAK;GAAe,SAAS;GAAG;EACnC;CAGD,QAAQ,EAAE;CAGV,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CAGxB,cAAc;EACZ,UAAU,CAAC;GAAE,KAAK;GAAe,SAAS;GAAG,CAAC;EAC9C,UAAU,EAAE;EACb;CACF"}
@@ -0,0 +1,583 @@
1
+ import * as _lssm_lib_schema0 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
3
+
4
+ //#region src/contracts/index.d.ts
5
+ declare const AuditLogModel: _lssm_lib_schema0.SchemaModel<{
6
+ id: {
7
+ type: _lssm_lib_schema0.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ eventName: {
11
+ type: _lssm_lib_schema0.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ eventVersion: {
15
+ type: _lssm_lib_schema0.FieldType<number, number>;
16
+ isOptional: false;
17
+ };
18
+ payload: {
19
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
20
+ isOptional: false;
21
+ };
22
+ actorId: {
23
+ type: _lssm_lib_schema0.FieldType<string, string>;
24
+ isOptional: true;
25
+ };
26
+ actorType: {
27
+ type: _lssm_lib_schema0.FieldType<string, string>;
28
+ isOptional: true;
29
+ };
30
+ actorEmail: {
31
+ type: _lssm_lib_schema0.FieldType<string, string>;
32
+ isOptional: true;
33
+ };
34
+ targetId: {
35
+ type: _lssm_lib_schema0.FieldType<string, string>;
36
+ isOptional: true;
37
+ };
38
+ targetType: {
39
+ type: _lssm_lib_schema0.FieldType<string, string>;
40
+ isOptional: true;
41
+ };
42
+ orgId: {
43
+ type: _lssm_lib_schema0.FieldType<string, string>;
44
+ isOptional: true;
45
+ };
46
+ traceId: {
47
+ type: _lssm_lib_schema0.FieldType<string, string>;
48
+ isOptional: true;
49
+ };
50
+ clientIp: {
51
+ type: _lssm_lib_schema0.FieldType<string, string>;
52
+ isOptional: true;
53
+ };
54
+ occurredAt: {
55
+ type: _lssm_lib_schema0.FieldType<Date, string>;
56
+ isOptional: false;
57
+ };
58
+ recordedAt: {
59
+ type: _lssm_lib_schema0.FieldType<Date, string>;
60
+ isOptional: false;
61
+ };
62
+ }>;
63
+ declare const AuditQueryInputModel: _lssm_lib_schema0.SchemaModel<{
64
+ eventName: {
65
+ type: _lssm_lib_schema0.FieldType<string, string>;
66
+ isOptional: true;
67
+ };
68
+ actorId: {
69
+ type: _lssm_lib_schema0.FieldType<string, string>;
70
+ isOptional: true;
71
+ };
72
+ targetId: {
73
+ type: _lssm_lib_schema0.FieldType<string, string>;
74
+ isOptional: true;
75
+ };
76
+ targetType: {
77
+ type: _lssm_lib_schema0.FieldType<string, string>;
78
+ isOptional: true;
79
+ };
80
+ orgId: {
81
+ type: _lssm_lib_schema0.FieldType<string, string>;
82
+ isOptional: true;
83
+ };
84
+ traceId: {
85
+ type: _lssm_lib_schema0.FieldType<string, string>;
86
+ isOptional: true;
87
+ };
88
+ from: {
89
+ type: _lssm_lib_schema0.FieldType<Date, string>;
90
+ isOptional: true;
91
+ };
92
+ to: {
93
+ type: _lssm_lib_schema0.FieldType<Date, string>;
94
+ isOptional: true;
95
+ };
96
+ limit: {
97
+ type: _lssm_lib_schema0.FieldType<number, number>;
98
+ isOptional: true;
99
+ defaultValue: number;
100
+ };
101
+ offset: {
102
+ type: _lssm_lib_schema0.FieldType<number, number>;
103
+ isOptional: true;
104
+ defaultValue: number;
105
+ };
106
+ }>;
107
+ declare const AuditQueryOutputModel: _lssm_lib_schema0.SchemaModel<{
108
+ logs: {
109
+ type: _lssm_lib_schema0.SchemaModel<{
110
+ id: {
111
+ type: _lssm_lib_schema0.FieldType<string, string>;
112
+ isOptional: false;
113
+ };
114
+ eventName: {
115
+ type: _lssm_lib_schema0.FieldType<string, string>;
116
+ isOptional: false;
117
+ };
118
+ eventVersion: {
119
+ type: _lssm_lib_schema0.FieldType<number, number>;
120
+ isOptional: false;
121
+ };
122
+ payload: {
123
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
124
+ isOptional: false;
125
+ };
126
+ actorId: {
127
+ type: _lssm_lib_schema0.FieldType<string, string>;
128
+ isOptional: true;
129
+ };
130
+ actorType: {
131
+ type: _lssm_lib_schema0.FieldType<string, string>;
132
+ isOptional: true;
133
+ };
134
+ actorEmail: {
135
+ type: _lssm_lib_schema0.FieldType<string, string>;
136
+ isOptional: true;
137
+ };
138
+ targetId: {
139
+ type: _lssm_lib_schema0.FieldType<string, string>;
140
+ isOptional: true;
141
+ };
142
+ targetType: {
143
+ type: _lssm_lib_schema0.FieldType<string, string>;
144
+ isOptional: true;
145
+ };
146
+ orgId: {
147
+ type: _lssm_lib_schema0.FieldType<string, string>;
148
+ isOptional: true;
149
+ };
150
+ traceId: {
151
+ type: _lssm_lib_schema0.FieldType<string, string>;
152
+ isOptional: true;
153
+ };
154
+ clientIp: {
155
+ type: _lssm_lib_schema0.FieldType<string, string>;
156
+ isOptional: true;
157
+ };
158
+ occurredAt: {
159
+ type: _lssm_lib_schema0.FieldType<Date, string>;
160
+ isOptional: false;
161
+ };
162
+ recordedAt: {
163
+ type: _lssm_lib_schema0.FieldType<Date, string>;
164
+ isOptional: false;
165
+ };
166
+ }>;
167
+ isArray: true;
168
+ isOptional: false;
169
+ };
170
+ total: {
171
+ type: _lssm_lib_schema0.FieldType<number, number>;
172
+ isOptional: false;
173
+ };
174
+ hasMore: {
175
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
176
+ isOptional: false;
177
+ };
178
+ }>;
179
+ declare const ExportFormatEnum: _lssm_lib_schema0.EnumType<[string, string, string]>;
180
+ declare const AuditExportInputModel: _lssm_lib_schema0.SchemaModel<{
181
+ orgId: {
182
+ type: _lssm_lib_schema0.FieldType<string, string>;
183
+ isOptional: false;
184
+ };
185
+ from: {
186
+ type: _lssm_lib_schema0.FieldType<Date, string>;
187
+ isOptional: false;
188
+ };
189
+ to: {
190
+ type: _lssm_lib_schema0.FieldType<Date, string>;
191
+ isOptional: false;
192
+ };
193
+ format: {
194
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
195
+ isOptional: true;
196
+ defaultValue: string;
197
+ };
198
+ eventNames: {
199
+ type: _lssm_lib_schema0.FieldType<string, string>;
200
+ isArray: true;
201
+ isOptional: true;
202
+ };
203
+ }>;
204
+ declare const ExportStatusEnum: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
205
+ declare const AuditExportOutputModel: _lssm_lib_schema0.SchemaModel<{
206
+ exportId: {
207
+ type: _lssm_lib_schema0.FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ status: {
211
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
212
+ isOptional: false;
213
+ };
214
+ downloadUrl: {
215
+ type: _lssm_lib_schema0.FieldType<string, string>;
216
+ isOptional: true;
217
+ };
218
+ }>;
219
+ declare const AuditStatsInputModel: _lssm_lib_schema0.SchemaModel<{
220
+ orgId: {
221
+ type: _lssm_lib_schema0.FieldType<string, string>;
222
+ isOptional: true;
223
+ };
224
+ from: {
225
+ type: _lssm_lib_schema0.FieldType<Date, string>;
226
+ isOptional: true;
227
+ };
228
+ to: {
229
+ type: _lssm_lib_schema0.FieldType<Date, string>;
230
+ isOptional: true;
231
+ };
232
+ }>;
233
+ declare const AuditStatsOutputModel: _lssm_lib_schema0.SchemaModel<{
234
+ totalLogs: {
235
+ type: _lssm_lib_schema0.FieldType<number, number>;
236
+ isOptional: false;
237
+ };
238
+ uniqueActors: {
239
+ type: _lssm_lib_schema0.FieldType<number, number>;
240
+ isOptional: false;
241
+ };
242
+ uniqueTargets: {
243
+ type: _lssm_lib_schema0.FieldType<number, number>;
244
+ isOptional: false;
245
+ };
246
+ eventCounts: {
247
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
248
+ isOptional: false;
249
+ };
250
+ }>;
251
+ /**
252
+ * Query audit logs.
253
+ */
254
+ declare const QueryAuditLogsContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
255
+ eventName: {
256
+ type: _lssm_lib_schema0.FieldType<string, string>;
257
+ isOptional: true;
258
+ };
259
+ actorId: {
260
+ type: _lssm_lib_schema0.FieldType<string, string>;
261
+ isOptional: true;
262
+ };
263
+ targetId: {
264
+ type: _lssm_lib_schema0.FieldType<string, string>;
265
+ isOptional: true;
266
+ };
267
+ targetType: {
268
+ type: _lssm_lib_schema0.FieldType<string, string>;
269
+ isOptional: true;
270
+ };
271
+ orgId: {
272
+ type: _lssm_lib_schema0.FieldType<string, string>;
273
+ isOptional: true;
274
+ };
275
+ traceId: {
276
+ type: _lssm_lib_schema0.FieldType<string, string>;
277
+ isOptional: true;
278
+ };
279
+ from: {
280
+ type: _lssm_lib_schema0.FieldType<Date, string>;
281
+ isOptional: true;
282
+ };
283
+ to: {
284
+ type: _lssm_lib_schema0.FieldType<Date, string>;
285
+ isOptional: true;
286
+ };
287
+ limit: {
288
+ type: _lssm_lib_schema0.FieldType<number, number>;
289
+ isOptional: true;
290
+ defaultValue: number;
291
+ };
292
+ offset: {
293
+ type: _lssm_lib_schema0.FieldType<number, number>;
294
+ isOptional: true;
295
+ defaultValue: number;
296
+ };
297
+ }>, _lssm_lib_schema0.SchemaModel<{
298
+ logs: {
299
+ type: _lssm_lib_schema0.SchemaModel<{
300
+ id: {
301
+ type: _lssm_lib_schema0.FieldType<string, string>;
302
+ isOptional: false;
303
+ };
304
+ eventName: {
305
+ type: _lssm_lib_schema0.FieldType<string, string>;
306
+ isOptional: false;
307
+ };
308
+ eventVersion: {
309
+ type: _lssm_lib_schema0.FieldType<number, number>;
310
+ isOptional: false;
311
+ };
312
+ payload: {
313
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
314
+ isOptional: false;
315
+ };
316
+ actorId: {
317
+ type: _lssm_lib_schema0.FieldType<string, string>;
318
+ isOptional: true;
319
+ };
320
+ actorType: {
321
+ type: _lssm_lib_schema0.FieldType<string, string>;
322
+ isOptional: true;
323
+ };
324
+ actorEmail: {
325
+ type: _lssm_lib_schema0.FieldType<string, string>;
326
+ isOptional: true;
327
+ };
328
+ targetId: {
329
+ type: _lssm_lib_schema0.FieldType<string, string>;
330
+ isOptional: true;
331
+ };
332
+ targetType: {
333
+ type: _lssm_lib_schema0.FieldType<string, string>;
334
+ isOptional: true;
335
+ };
336
+ orgId: {
337
+ type: _lssm_lib_schema0.FieldType<string, string>;
338
+ isOptional: true;
339
+ };
340
+ traceId: {
341
+ type: _lssm_lib_schema0.FieldType<string, string>;
342
+ isOptional: true;
343
+ };
344
+ clientIp: {
345
+ type: _lssm_lib_schema0.FieldType<string, string>;
346
+ isOptional: true;
347
+ };
348
+ occurredAt: {
349
+ type: _lssm_lib_schema0.FieldType<Date, string>;
350
+ isOptional: false;
351
+ };
352
+ recordedAt: {
353
+ type: _lssm_lib_schema0.FieldType<Date, string>;
354
+ isOptional: false;
355
+ };
356
+ }>;
357
+ isArray: true;
358
+ isOptional: false;
359
+ };
360
+ total: {
361
+ type: _lssm_lib_schema0.FieldType<number, number>;
362
+ isOptional: false;
363
+ };
364
+ hasMore: {
365
+ type: _lssm_lib_schema0.FieldType<boolean, boolean>;
366
+ isOptional: false;
367
+ };
368
+ }>, undefined>;
369
+ /**
370
+ * Get audit log by ID.
371
+ */
372
+ declare const GetAuditLogContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
373
+ logId: {
374
+ type: _lssm_lib_schema0.FieldType<string, string>;
375
+ isOptional: false;
376
+ };
377
+ }>, _lssm_lib_schema0.SchemaModel<{
378
+ id: {
379
+ type: _lssm_lib_schema0.FieldType<string, string>;
380
+ isOptional: false;
381
+ };
382
+ eventName: {
383
+ type: _lssm_lib_schema0.FieldType<string, string>;
384
+ isOptional: false;
385
+ };
386
+ eventVersion: {
387
+ type: _lssm_lib_schema0.FieldType<number, number>;
388
+ isOptional: false;
389
+ };
390
+ payload: {
391
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
392
+ isOptional: false;
393
+ };
394
+ actorId: {
395
+ type: _lssm_lib_schema0.FieldType<string, string>;
396
+ isOptional: true;
397
+ };
398
+ actorType: {
399
+ type: _lssm_lib_schema0.FieldType<string, string>;
400
+ isOptional: true;
401
+ };
402
+ actorEmail: {
403
+ type: _lssm_lib_schema0.FieldType<string, string>;
404
+ isOptional: true;
405
+ };
406
+ targetId: {
407
+ type: _lssm_lib_schema0.FieldType<string, string>;
408
+ isOptional: true;
409
+ };
410
+ targetType: {
411
+ type: _lssm_lib_schema0.FieldType<string, string>;
412
+ isOptional: true;
413
+ };
414
+ orgId: {
415
+ type: _lssm_lib_schema0.FieldType<string, string>;
416
+ isOptional: true;
417
+ };
418
+ traceId: {
419
+ type: _lssm_lib_schema0.FieldType<string, string>;
420
+ isOptional: true;
421
+ };
422
+ clientIp: {
423
+ type: _lssm_lib_schema0.FieldType<string, string>;
424
+ isOptional: true;
425
+ };
426
+ occurredAt: {
427
+ type: _lssm_lib_schema0.FieldType<Date, string>;
428
+ isOptional: false;
429
+ };
430
+ recordedAt: {
431
+ type: _lssm_lib_schema0.FieldType<Date, string>;
432
+ isOptional: false;
433
+ };
434
+ }>, undefined>;
435
+ /**
436
+ * Get audit logs by trace ID.
437
+ */
438
+ declare const GetAuditTraceContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
439
+ traceId: {
440
+ type: _lssm_lib_schema0.FieldType<string, string>;
441
+ isOptional: false;
442
+ };
443
+ }>, _lssm_lib_schema0.SchemaModel<{
444
+ logs: {
445
+ type: _lssm_lib_schema0.SchemaModel<{
446
+ id: {
447
+ type: _lssm_lib_schema0.FieldType<string, string>;
448
+ isOptional: false;
449
+ };
450
+ eventName: {
451
+ type: _lssm_lib_schema0.FieldType<string, string>;
452
+ isOptional: false;
453
+ };
454
+ eventVersion: {
455
+ type: _lssm_lib_schema0.FieldType<number, number>;
456
+ isOptional: false;
457
+ };
458
+ payload: {
459
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
460
+ isOptional: false;
461
+ };
462
+ actorId: {
463
+ type: _lssm_lib_schema0.FieldType<string, string>;
464
+ isOptional: true;
465
+ };
466
+ actorType: {
467
+ type: _lssm_lib_schema0.FieldType<string, string>;
468
+ isOptional: true;
469
+ };
470
+ actorEmail: {
471
+ type: _lssm_lib_schema0.FieldType<string, string>;
472
+ isOptional: true;
473
+ };
474
+ targetId: {
475
+ type: _lssm_lib_schema0.FieldType<string, string>;
476
+ isOptional: true;
477
+ };
478
+ targetType: {
479
+ type: _lssm_lib_schema0.FieldType<string, string>;
480
+ isOptional: true;
481
+ };
482
+ orgId: {
483
+ type: _lssm_lib_schema0.FieldType<string, string>;
484
+ isOptional: true;
485
+ };
486
+ traceId: {
487
+ type: _lssm_lib_schema0.FieldType<string, string>;
488
+ isOptional: true;
489
+ };
490
+ clientIp: {
491
+ type: _lssm_lib_schema0.FieldType<string, string>;
492
+ isOptional: true;
493
+ };
494
+ occurredAt: {
495
+ type: _lssm_lib_schema0.FieldType<Date, string>;
496
+ isOptional: false;
497
+ };
498
+ recordedAt: {
499
+ type: _lssm_lib_schema0.FieldType<Date, string>;
500
+ isOptional: false;
501
+ };
502
+ }>;
503
+ isArray: true;
504
+ isOptional: false;
505
+ };
506
+ }>, undefined>;
507
+ /**
508
+ * Export audit logs.
509
+ */
510
+ declare const ExportAuditLogsContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
511
+ orgId: {
512
+ type: _lssm_lib_schema0.FieldType<string, string>;
513
+ isOptional: false;
514
+ };
515
+ from: {
516
+ type: _lssm_lib_schema0.FieldType<Date, string>;
517
+ isOptional: false;
518
+ };
519
+ to: {
520
+ type: _lssm_lib_schema0.FieldType<Date, string>;
521
+ isOptional: false;
522
+ };
523
+ format: {
524
+ type: _lssm_lib_schema0.EnumType<[string, string, string]>;
525
+ isOptional: true;
526
+ defaultValue: string;
527
+ };
528
+ eventNames: {
529
+ type: _lssm_lib_schema0.FieldType<string, string>;
530
+ isArray: true;
531
+ isOptional: true;
532
+ };
533
+ }>, _lssm_lib_schema0.SchemaModel<{
534
+ exportId: {
535
+ type: _lssm_lib_schema0.FieldType<string, string>;
536
+ isOptional: false;
537
+ };
538
+ status: {
539
+ type: _lssm_lib_schema0.EnumType<[string, string, string, string]>;
540
+ isOptional: false;
541
+ };
542
+ downloadUrl: {
543
+ type: _lssm_lib_schema0.FieldType<string, string>;
544
+ isOptional: true;
545
+ };
546
+ }>, undefined>;
547
+ /**
548
+ * Get audit statistics.
549
+ */
550
+ declare const GetAuditStatsContract: _lssm_lib_contracts0.OperationSpec<_lssm_lib_schema0.SchemaModel<{
551
+ orgId: {
552
+ type: _lssm_lib_schema0.FieldType<string, string>;
553
+ isOptional: true;
554
+ };
555
+ from: {
556
+ type: _lssm_lib_schema0.FieldType<Date, string>;
557
+ isOptional: true;
558
+ };
559
+ to: {
560
+ type: _lssm_lib_schema0.FieldType<Date, string>;
561
+ isOptional: true;
562
+ };
563
+ }>, _lssm_lib_schema0.SchemaModel<{
564
+ totalLogs: {
565
+ type: _lssm_lib_schema0.FieldType<number, number>;
566
+ isOptional: false;
567
+ };
568
+ uniqueActors: {
569
+ type: _lssm_lib_schema0.FieldType<number, number>;
570
+ isOptional: false;
571
+ };
572
+ uniqueTargets: {
573
+ type: _lssm_lib_schema0.FieldType<number, number>;
574
+ isOptional: false;
575
+ };
576
+ eventCounts: {
577
+ type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
578
+ isOptional: false;
579
+ };
580
+ }>, undefined>;
581
+ //#endregion
582
+ export { AuditExportInputModel, AuditExportOutputModel, AuditLogModel, AuditQueryInputModel, AuditQueryOutputModel, AuditStatsInputModel, AuditStatsOutputModel, ExportAuditLogsContract, ExportFormatEnum, ExportStatusEnum, GetAuditLogContract, GetAuditStatsContract, GetAuditTraceContract, QueryAuditLogsContract };
583
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3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