@lssm/module.audit-trail 0.0.0-canary-20251217060433 → 0.0.0-canary-20251217060804
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/index.d.ts +149 -149
- package/dist/entities/index.d.ts +69 -69
- package/package.json +6 -6
|
@@ -1,166 +1,166 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema67 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/index.d.ts
|
|
5
|
-
declare const AuditLogModel:
|
|
5
|
+
declare const AuditLogModel: _lssm_lib_schema67.SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
eventName: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
eventVersion: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
payload: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema67.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
actorId: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
actorType: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
28
28
|
isOptional: true;
|
|
29
29
|
};
|
|
30
30
|
actorEmail: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
targetId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
targetType: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
40
40
|
isOptional: true;
|
|
41
41
|
};
|
|
42
42
|
orgId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
44
44
|
isOptional: true;
|
|
45
45
|
};
|
|
46
46
|
traceId: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
clientIp: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
occurredAt: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
recordedAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
|
-
declare const AuditQueryInputModel:
|
|
63
|
+
declare const AuditQueryInputModel: _lssm_lib_schema67.SchemaModel<{
|
|
64
64
|
eventName: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
66
66
|
isOptional: true;
|
|
67
67
|
};
|
|
68
68
|
actorId: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
70
70
|
isOptional: true;
|
|
71
71
|
};
|
|
72
72
|
targetId: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
74
74
|
isOptional: true;
|
|
75
75
|
};
|
|
76
76
|
targetType: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
78
78
|
isOptional: true;
|
|
79
79
|
};
|
|
80
80
|
orgId: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
82
82
|
isOptional: true;
|
|
83
83
|
};
|
|
84
84
|
traceId: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
86
86
|
isOptional: true;
|
|
87
87
|
};
|
|
88
88
|
from: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
90
90
|
isOptional: true;
|
|
91
91
|
};
|
|
92
92
|
to: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
limit: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
defaultValue: number;
|
|
100
100
|
};
|
|
101
101
|
offset: {
|
|
102
|
-
type:
|
|
102
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
103
103
|
isOptional: true;
|
|
104
104
|
defaultValue: number;
|
|
105
105
|
};
|
|
106
106
|
}>;
|
|
107
|
-
declare const AuditQueryOutputModel:
|
|
107
|
+
declare const AuditQueryOutputModel: _lssm_lib_schema67.SchemaModel<{
|
|
108
108
|
logs: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema67.SchemaModel<{
|
|
110
110
|
id: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
eventName: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
eventVersion: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
payload: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema67.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
actorId: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
128
128
|
isOptional: true;
|
|
129
129
|
};
|
|
130
130
|
actorType: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
132
132
|
isOptional: true;
|
|
133
133
|
};
|
|
134
134
|
actorEmail: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
136
136
|
isOptional: true;
|
|
137
137
|
};
|
|
138
138
|
targetId: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
140
140
|
isOptional: true;
|
|
141
141
|
};
|
|
142
142
|
targetType: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
144
144
|
isOptional: true;
|
|
145
145
|
};
|
|
146
146
|
orgId: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
148
148
|
isOptional: true;
|
|
149
149
|
};
|
|
150
150
|
traceId: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
152
152
|
isOptional: true;
|
|
153
153
|
};
|
|
154
154
|
clientIp: {
|
|
155
|
-
type:
|
|
155
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
156
156
|
isOptional: true;
|
|
157
157
|
};
|
|
158
158
|
occurredAt: {
|
|
159
|
-
type:
|
|
159
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
160
160
|
isOptional: false;
|
|
161
161
|
};
|
|
162
162
|
recordedAt: {
|
|
163
|
-
type:
|
|
163
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
164
164
|
isOptional: false;
|
|
165
165
|
};
|
|
166
166
|
}>;
|
|
@@ -168,189 +168,189 @@ declare const AuditQueryOutputModel: _lssm_lib_schema0.SchemaModel<{
|
|
|
168
168
|
isOptional: false;
|
|
169
169
|
};
|
|
170
170
|
total: {
|
|
171
|
-
type:
|
|
171
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
172
172
|
isOptional: false;
|
|
173
173
|
};
|
|
174
174
|
hasMore: {
|
|
175
|
-
type:
|
|
175
|
+
type: _lssm_lib_schema67.FieldType<boolean, boolean>;
|
|
176
176
|
isOptional: false;
|
|
177
177
|
};
|
|
178
178
|
}>;
|
|
179
|
-
declare const ExportFormatEnum:
|
|
180
|
-
declare const AuditExportInputModel:
|
|
179
|
+
declare const ExportFormatEnum: _lssm_lib_schema67.EnumType<[string, string, string]>;
|
|
180
|
+
declare const AuditExportInputModel: _lssm_lib_schema67.SchemaModel<{
|
|
181
181
|
orgId: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
183
183
|
isOptional: false;
|
|
184
184
|
};
|
|
185
185
|
from: {
|
|
186
|
-
type:
|
|
186
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
187
187
|
isOptional: false;
|
|
188
188
|
};
|
|
189
189
|
to: {
|
|
190
|
-
type:
|
|
190
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
191
191
|
isOptional: false;
|
|
192
192
|
};
|
|
193
193
|
format: {
|
|
194
|
-
type:
|
|
194
|
+
type: _lssm_lib_schema67.EnumType<[string, string, string]>;
|
|
195
195
|
isOptional: true;
|
|
196
196
|
defaultValue: string;
|
|
197
197
|
};
|
|
198
198
|
eventNames: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
200
200
|
isArray: true;
|
|
201
201
|
isOptional: true;
|
|
202
202
|
};
|
|
203
203
|
}>;
|
|
204
|
-
declare const ExportStatusEnum:
|
|
205
|
-
declare const AuditExportOutputModel:
|
|
204
|
+
declare const ExportStatusEnum: _lssm_lib_schema67.EnumType<[string, string, string, string]>;
|
|
205
|
+
declare const AuditExportOutputModel: _lssm_lib_schema67.SchemaModel<{
|
|
206
206
|
exportId: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
208
208
|
isOptional: false;
|
|
209
209
|
};
|
|
210
210
|
status: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema67.EnumType<[string, string, string, string]>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
downloadUrl: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
216
216
|
isOptional: true;
|
|
217
217
|
};
|
|
218
218
|
}>;
|
|
219
|
-
declare const AuditStatsInputModel:
|
|
219
|
+
declare const AuditStatsInputModel: _lssm_lib_schema67.SchemaModel<{
|
|
220
220
|
orgId: {
|
|
221
|
-
type:
|
|
221
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
222
222
|
isOptional: true;
|
|
223
223
|
};
|
|
224
224
|
from: {
|
|
225
|
-
type:
|
|
225
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
226
226
|
isOptional: true;
|
|
227
227
|
};
|
|
228
228
|
to: {
|
|
229
|
-
type:
|
|
229
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
230
230
|
isOptional: true;
|
|
231
231
|
};
|
|
232
232
|
}>;
|
|
233
|
-
declare const AuditStatsOutputModel:
|
|
233
|
+
declare const AuditStatsOutputModel: _lssm_lib_schema67.SchemaModel<{
|
|
234
234
|
totalLogs: {
|
|
235
|
-
type:
|
|
235
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
236
236
|
isOptional: false;
|
|
237
237
|
};
|
|
238
238
|
uniqueActors: {
|
|
239
|
-
type:
|
|
239
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
240
240
|
isOptional: false;
|
|
241
241
|
};
|
|
242
242
|
uniqueTargets: {
|
|
243
|
-
type:
|
|
243
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
244
244
|
isOptional: false;
|
|
245
245
|
};
|
|
246
246
|
eventCounts: {
|
|
247
|
-
type:
|
|
247
|
+
type: _lssm_lib_schema67.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
248
248
|
isOptional: false;
|
|
249
249
|
};
|
|
250
250
|
}>;
|
|
251
251
|
/**
|
|
252
252
|
* Query audit logs.
|
|
253
253
|
*/
|
|
254
|
-
declare const QueryAuditLogsContract: _lssm_lib_contracts0.ContractSpec<
|
|
254
|
+
declare const QueryAuditLogsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema67.SchemaModel<{
|
|
255
255
|
eventName: {
|
|
256
|
-
type:
|
|
256
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
257
257
|
isOptional: true;
|
|
258
258
|
};
|
|
259
259
|
actorId: {
|
|
260
|
-
type:
|
|
260
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
261
261
|
isOptional: true;
|
|
262
262
|
};
|
|
263
263
|
targetId: {
|
|
264
|
-
type:
|
|
264
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
265
265
|
isOptional: true;
|
|
266
266
|
};
|
|
267
267
|
targetType: {
|
|
268
|
-
type:
|
|
268
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
269
269
|
isOptional: true;
|
|
270
270
|
};
|
|
271
271
|
orgId: {
|
|
272
|
-
type:
|
|
272
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
273
273
|
isOptional: true;
|
|
274
274
|
};
|
|
275
275
|
traceId: {
|
|
276
|
-
type:
|
|
276
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
277
277
|
isOptional: true;
|
|
278
278
|
};
|
|
279
279
|
from: {
|
|
280
|
-
type:
|
|
280
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
281
281
|
isOptional: true;
|
|
282
282
|
};
|
|
283
283
|
to: {
|
|
284
|
-
type:
|
|
284
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
285
285
|
isOptional: true;
|
|
286
286
|
};
|
|
287
287
|
limit: {
|
|
288
|
-
type:
|
|
288
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
289
289
|
isOptional: true;
|
|
290
290
|
defaultValue: number;
|
|
291
291
|
};
|
|
292
292
|
offset: {
|
|
293
|
-
type:
|
|
293
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
294
294
|
isOptional: true;
|
|
295
295
|
defaultValue: number;
|
|
296
296
|
};
|
|
297
|
-
}>,
|
|
297
|
+
}>, _lssm_lib_schema67.SchemaModel<{
|
|
298
298
|
logs: {
|
|
299
|
-
type:
|
|
299
|
+
type: _lssm_lib_schema67.SchemaModel<{
|
|
300
300
|
id: {
|
|
301
|
-
type:
|
|
301
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
302
302
|
isOptional: false;
|
|
303
303
|
};
|
|
304
304
|
eventName: {
|
|
305
|
-
type:
|
|
305
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
306
306
|
isOptional: false;
|
|
307
307
|
};
|
|
308
308
|
eventVersion: {
|
|
309
|
-
type:
|
|
309
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
310
310
|
isOptional: false;
|
|
311
311
|
};
|
|
312
312
|
payload: {
|
|
313
|
-
type:
|
|
313
|
+
type: _lssm_lib_schema67.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
314
314
|
isOptional: false;
|
|
315
315
|
};
|
|
316
316
|
actorId: {
|
|
317
|
-
type:
|
|
317
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
318
318
|
isOptional: true;
|
|
319
319
|
};
|
|
320
320
|
actorType: {
|
|
321
|
-
type:
|
|
321
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
322
322
|
isOptional: true;
|
|
323
323
|
};
|
|
324
324
|
actorEmail: {
|
|
325
|
-
type:
|
|
325
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
326
326
|
isOptional: true;
|
|
327
327
|
};
|
|
328
328
|
targetId: {
|
|
329
|
-
type:
|
|
329
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
330
330
|
isOptional: true;
|
|
331
331
|
};
|
|
332
332
|
targetType: {
|
|
333
|
-
type:
|
|
333
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
334
334
|
isOptional: true;
|
|
335
335
|
};
|
|
336
336
|
orgId: {
|
|
337
|
-
type:
|
|
337
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
338
338
|
isOptional: true;
|
|
339
339
|
};
|
|
340
340
|
traceId: {
|
|
341
|
-
type:
|
|
341
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
342
342
|
isOptional: true;
|
|
343
343
|
};
|
|
344
344
|
clientIp: {
|
|
345
|
-
type:
|
|
345
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
346
346
|
isOptional: true;
|
|
347
347
|
};
|
|
348
348
|
occurredAt: {
|
|
349
|
-
type:
|
|
349
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
350
350
|
isOptional: false;
|
|
351
351
|
};
|
|
352
352
|
recordedAt: {
|
|
353
|
-
type:
|
|
353
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
354
354
|
isOptional: false;
|
|
355
355
|
};
|
|
356
356
|
}>;
|
|
@@ -358,145 +358,145 @@ declare const QueryAuditLogsContract: _lssm_lib_contracts0.ContractSpec<_lssm_li
|
|
|
358
358
|
isOptional: false;
|
|
359
359
|
};
|
|
360
360
|
total: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
hasMore: {
|
|
365
|
-
type:
|
|
365
|
+
type: _lssm_lib_schema67.FieldType<boolean, boolean>;
|
|
366
366
|
isOptional: false;
|
|
367
367
|
};
|
|
368
368
|
}>, undefined>;
|
|
369
369
|
/**
|
|
370
370
|
* Get audit log by ID.
|
|
371
371
|
*/
|
|
372
|
-
declare const GetAuditLogContract: _lssm_lib_contracts0.ContractSpec<
|
|
372
|
+
declare const GetAuditLogContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema67.SchemaModel<{
|
|
373
373
|
logId: {
|
|
374
|
-
type:
|
|
374
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
375
375
|
isOptional: false;
|
|
376
376
|
};
|
|
377
|
-
}>,
|
|
377
|
+
}>, _lssm_lib_schema67.SchemaModel<{
|
|
378
378
|
id: {
|
|
379
|
-
type:
|
|
379
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
380
380
|
isOptional: false;
|
|
381
381
|
};
|
|
382
382
|
eventName: {
|
|
383
|
-
type:
|
|
383
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
384
384
|
isOptional: false;
|
|
385
385
|
};
|
|
386
386
|
eventVersion: {
|
|
387
|
-
type:
|
|
387
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
388
388
|
isOptional: false;
|
|
389
389
|
};
|
|
390
390
|
payload: {
|
|
391
|
-
type:
|
|
391
|
+
type: _lssm_lib_schema67.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
392
392
|
isOptional: false;
|
|
393
393
|
};
|
|
394
394
|
actorId: {
|
|
395
|
-
type:
|
|
395
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
396
396
|
isOptional: true;
|
|
397
397
|
};
|
|
398
398
|
actorType: {
|
|
399
|
-
type:
|
|
399
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
400
400
|
isOptional: true;
|
|
401
401
|
};
|
|
402
402
|
actorEmail: {
|
|
403
|
-
type:
|
|
403
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
404
404
|
isOptional: true;
|
|
405
405
|
};
|
|
406
406
|
targetId: {
|
|
407
|
-
type:
|
|
407
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
408
408
|
isOptional: true;
|
|
409
409
|
};
|
|
410
410
|
targetType: {
|
|
411
|
-
type:
|
|
411
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
412
412
|
isOptional: true;
|
|
413
413
|
};
|
|
414
414
|
orgId: {
|
|
415
|
-
type:
|
|
415
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
416
416
|
isOptional: true;
|
|
417
417
|
};
|
|
418
418
|
traceId: {
|
|
419
|
-
type:
|
|
419
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
420
420
|
isOptional: true;
|
|
421
421
|
};
|
|
422
422
|
clientIp: {
|
|
423
|
-
type:
|
|
423
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
424
424
|
isOptional: true;
|
|
425
425
|
};
|
|
426
426
|
occurredAt: {
|
|
427
|
-
type:
|
|
427
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
428
428
|
isOptional: false;
|
|
429
429
|
};
|
|
430
430
|
recordedAt: {
|
|
431
|
-
type:
|
|
431
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
432
432
|
isOptional: false;
|
|
433
433
|
};
|
|
434
434
|
}>, undefined>;
|
|
435
435
|
/**
|
|
436
436
|
* Get audit logs by trace ID.
|
|
437
437
|
*/
|
|
438
|
-
declare const GetAuditTraceContract: _lssm_lib_contracts0.ContractSpec<
|
|
438
|
+
declare const GetAuditTraceContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema67.SchemaModel<{
|
|
439
439
|
traceId: {
|
|
440
|
-
type:
|
|
440
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
441
441
|
isOptional: false;
|
|
442
442
|
};
|
|
443
|
-
}>,
|
|
443
|
+
}>, _lssm_lib_schema67.SchemaModel<{
|
|
444
444
|
logs: {
|
|
445
|
-
type:
|
|
445
|
+
type: _lssm_lib_schema67.SchemaModel<{
|
|
446
446
|
id: {
|
|
447
|
-
type:
|
|
447
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
448
448
|
isOptional: false;
|
|
449
449
|
};
|
|
450
450
|
eventName: {
|
|
451
|
-
type:
|
|
451
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
452
452
|
isOptional: false;
|
|
453
453
|
};
|
|
454
454
|
eventVersion: {
|
|
455
|
-
type:
|
|
455
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
456
456
|
isOptional: false;
|
|
457
457
|
};
|
|
458
458
|
payload: {
|
|
459
|
-
type:
|
|
459
|
+
type: _lssm_lib_schema67.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
460
460
|
isOptional: false;
|
|
461
461
|
};
|
|
462
462
|
actorId: {
|
|
463
|
-
type:
|
|
463
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
464
464
|
isOptional: true;
|
|
465
465
|
};
|
|
466
466
|
actorType: {
|
|
467
|
-
type:
|
|
467
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
468
468
|
isOptional: true;
|
|
469
469
|
};
|
|
470
470
|
actorEmail: {
|
|
471
|
-
type:
|
|
471
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
472
472
|
isOptional: true;
|
|
473
473
|
};
|
|
474
474
|
targetId: {
|
|
475
|
-
type:
|
|
475
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
476
476
|
isOptional: true;
|
|
477
477
|
};
|
|
478
478
|
targetType: {
|
|
479
|
-
type:
|
|
479
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
480
480
|
isOptional: true;
|
|
481
481
|
};
|
|
482
482
|
orgId: {
|
|
483
|
-
type:
|
|
483
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
484
484
|
isOptional: true;
|
|
485
485
|
};
|
|
486
486
|
traceId: {
|
|
487
|
-
type:
|
|
487
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
488
488
|
isOptional: true;
|
|
489
489
|
};
|
|
490
490
|
clientIp: {
|
|
491
|
-
type:
|
|
491
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
492
492
|
isOptional: true;
|
|
493
493
|
};
|
|
494
494
|
occurredAt: {
|
|
495
|
-
type:
|
|
495
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
496
496
|
isOptional: false;
|
|
497
497
|
};
|
|
498
498
|
recordedAt: {
|
|
499
|
-
type:
|
|
499
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
500
500
|
isOptional: false;
|
|
501
501
|
};
|
|
502
502
|
}>;
|
|
@@ -507,74 +507,74 @@ declare const GetAuditTraceContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib
|
|
|
507
507
|
/**
|
|
508
508
|
* Export audit logs.
|
|
509
509
|
*/
|
|
510
|
-
declare const ExportAuditLogsContract: _lssm_lib_contracts0.ContractSpec<
|
|
510
|
+
declare const ExportAuditLogsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema67.SchemaModel<{
|
|
511
511
|
orgId: {
|
|
512
|
-
type:
|
|
512
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
513
513
|
isOptional: false;
|
|
514
514
|
};
|
|
515
515
|
from: {
|
|
516
|
-
type:
|
|
516
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
517
517
|
isOptional: false;
|
|
518
518
|
};
|
|
519
519
|
to: {
|
|
520
|
-
type:
|
|
520
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
521
521
|
isOptional: false;
|
|
522
522
|
};
|
|
523
523
|
format: {
|
|
524
|
-
type:
|
|
524
|
+
type: _lssm_lib_schema67.EnumType<[string, string, string]>;
|
|
525
525
|
isOptional: true;
|
|
526
526
|
defaultValue: string;
|
|
527
527
|
};
|
|
528
528
|
eventNames: {
|
|
529
|
-
type:
|
|
529
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
530
530
|
isArray: true;
|
|
531
531
|
isOptional: true;
|
|
532
532
|
};
|
|
533
|
-
}>,
|
|
533
|
+
}>, _lssm_lib_schema67.SchemaModel<{
|
|
534
534
|
exportId: {
|
|
535
|
-
type:
|
|
535
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
536
536
|
isOptional: false;
|
|
537
537
|
};
|
|
538
538
|
status: {
|
|
539
|
-
type:
|
|
539
|
+
type: _lssm_lib_schema67.EnumType<[string, string, string, string]>;
|
|
540
540
|
isOptional: false;
|
|
541
541
|
};
|
|
542
542
|
downloadUrl: {
|
|
543
|
-
type:
|
|
543
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
544
544
|
isOptional: true;
|
|
545
545
|
};
|
|
546
546
|
}>, undefined>;
|
|
547
547
|
/**
|
|
548
548
|
* Get audit statistics.
|
|
549
549
|
*/
|
|
550
|
-
declare const GetAuditStatsContract: _lssm_lib_contracts0.ContractSpec<
|
|
550
|
+
declare const GetAuditStatsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema67.SchemaModel<{
|
|
551
551
|
orgId: {
|
|
552
|
-
type:
|
|
552
|
+
type: _lssm_lib_schema67.FieldType<string, string>;
|
|
553
553
|
isOptional: true;
|
|
554
554
|
};
|
|
555
555
|
from: {
|
|
556
|
-
type:
|
|
556
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
557
557
|
isOptional: true;
|
|
558
558
|
};
|
|
559
559
|
to: {
|
|
560
|
-
type:
|
|
560
|
+
type: _lssm_lib_schema67.FieldType<Date, string>;
|
|
561
561
|
isOptional: true;
|
|
562
562
|
};
|
|
563
|
-
}>,
|
|
563
|
+
}>, _lssm_lib_schema67.SchemaModel<{
|
|
564
564
|
totalLogs: {
|
|
565
|
-
type:
|
|
565
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
566
566
|
isOptional: false;
|
|
567
567
|
};
|
|
568
568
|
uniqueActors: {
|
|
569
|
-
type:
|
|
569
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
570
570
|
isOptional: false;
|
|
571
571
|
};
|
|
572
572
|
uniqueTargets: {
|
|
573
|
-
type:
|
|
573
|
+
type: _lssm_lib_schema67.FieldType<number, number>;
|
|
574
574
|
isOptional: false;
|
|
575
575
|
};
|
|
576
576
|
eventCounts: {
|
|
577
|
-
type:
|
|
577
|
+
type: _lssm_lib_schema67.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
578
578
|
isOptional: false;
|
|
579
579
|
};
|
|
580
580
|
}>, undefined>;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
2
|
import { ModuleSchemaContribution } from "@lssm/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:
|
|
9
|
-
id:
|
|
10
|
-
eventName:
|
|
11
|
-
eventVersion:
|
|
12
|
-
payload:
|
|
13
|
-
actorId:
|
|
14
|
-
actorType:
|
|
15
|
-
actorEmail:
|
|
16
|
-
targetId:
|
|
17
|
-
targetType:
|
|
18
|
-
orgId:
|
|
19
|
-
tenantId:
|
|
20
|
-
traceId:
|
|
21
|
-
spanId:
|
|
22
|
-
requestId:
|
|
23
|
-
sessionId:
|
|
24
|
-
clientIp:
|
|
25
|
-
userAgent:
|
|
26
|
-
tags:
|
|
27
|
-
metadata:
|
|
28
|
-
occurredAt:
|
|
29
|
-
recordedAt:
|
|
8
|
+
declare const AuditLogEntity: _lssm_lib_schema0.EntitySpec<{
|
|
9
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
10
|
+
eventName: _lssm_lib_schema0.EntityScalarField;
|
|
11
|
+
eventVersion: _lssm_lib_schema0.EntityScalarField;
|
|
12
|
+
payload: _lssm_lib_schema0.EntityScalarField;
|
|
13
|
+
actorId: _lssm_lib_schema0.EntityScalarField;
|
|
14
|
+
actorType: _lssm_lib_schema0.EntityScalarField;
|
|
15
|
+
actorEmail: _lssm_lib_schema0.EntityScalarField;
|
|
16
|
+
targetId: _lssm_lib_schema0.EntityScalarField;
|
|
17
|
+
targetType: _lssm_lib_schema0.EntityScalarField;
|
|
18
|
+
orgId: _lssm_lib_schema0.EntityScalarField;
|
|
19
|
+
tenantId: _lssm_lib_schema0.EntityScalarField;
|
|
20
|
+
traceId: _lssm_lib_schema0.EntityScalarField;
|
|
21
|
+
spanId: _lssm_lib_schema0.EntityScalarField;
|
|
22
|
+
requestId: _lssm_lib_schema0.EntityScalarField;
|
|
23
|
+
sessionId: _lssm_lib_schema0.EntityScalarField;
|
|
24
|
+
clientIp: _lssm_lib_schema0.EntityScalarField;
|
|
25
|
+
userAgent: _lssm_lib_schema0.EntityScalarField;
|
|
26
|
+
tags: _lssm_lib_schema0.EntityScalarField;
|
|
27
|
+
metadata: _lssm_lib_schema0.EntityScalarField;
|
|
28
|
+
occurredAt: _lssm_lib_schema0.EntityScalarField;
|
|
29
|
+
recordedAt: _lssm_lib_schema0.EntityScalarField;
|
|
30
30
|
}>;
|
|
31
31
|
/**
|
|
32
32
|
* AuditLogArchive entity - archived logs for long-term retention.
|
|
33
33
|
*/
|
|
34
|
-
declare const AuditLogArchiveEntity:
|
|
35
|
-
id:
|
|
36
|
-
batchId:
|
|
37
|
-
logCount:
|
|
38
|
-
fromDate:
|
|
39
|
-
toDate:
|
|
40
|
-
storagePath:
|
|
41
|
-
storageType:
|
|
42
|
-
compressedSize:
|
|
43
|
-
checksum:
|
|
44
|
-
retainUntil:
|
|
45
|
-
createdAt:
|
|
34
|
+
declare const AuditLogArchiveEntity: _lssm_lib_schema0.EntitySpec<{
|
|
35
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
36
|
+
batchId: _lssm_lib_schema0.EntityScalarField;
|
|
37
|
+
logCount: _lssm_lib_schema0.EntityScalarField;
|
|
38
|
+
fromDate: _lssm_lib_schema0.EntityScalarField;
|
|
39
|
+
toDate: _lssm_lib_schema0.EntityScalarField;
|
|
40
|
+
storagePath: _lssm_lib_schema0.EntityScalarField;
|
|
41
|
+
storageType: _lssm_lib_schema0.EntityScalarField;
|
|
42
|
+
compressedSize: _lssm_lib_schema0.EntityScalarField;
|
|
43
|
+
checksum: _lssm_lib_schema0.EntityScalarField;
|
|
44
|
+
retainUntil: _lssm_lib_schema0.EntityScalarField;
|
|
45
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
46
46
|
}>;
|
|
47
47
|
/**
|
|
48
48
|
* All audit trail entities for schema composition.
|
|
49
49
|
*/
|
|
50
|
-
declare const auditTrailEntities: (
|
|
51
|
-
id:
|
|
52
|
-
eventName:
|
|
53
|
-
eventVersion:
|
|
54
|
-
payload:
|
|
55
|
-
actorId:
|
|
56
|
-
actorType:
|
|
57
|
-
actorEmail:
|
|
58
|
-
targetId:
|
|
59
|
-
targetType:
|
|
60
|
-
orgId:
|
|
61
|
-
tenantId:
|
|
62
|
-
traceId:
|
|
63
|
-
spanId:
|
|
64
|
-
requestId:
|
|
65
|
-
sessionId:
|
|
66
|
-
clientIp:
|
|
67
|
-
userAgent:
|
|
68
|
-
tags:
|
|
69
|
-
metadata:
|
|
70
|
-
occurredAt:
|
|
71
|
-
recordedAt:
|
|
72
|
-
}> |
|
|
73
|
-
id:
|
|
74
|
-
batchId:
|
|
75
|
-
logCount:
|
|
76
|
-
fromDate:
|
|
77
|
-
toDate:
|
|
78
|
-
storagePath:
|
|
79
|
-
storageType:
|
|
80
|
-
compressedSize:
|
|
81
|
-
checksum:
|
|
82
|
-
retainUntil:
|
|
83
|
-
createdAt:
|
|
50
|
+
declare const auditTrailEntities: (_lssm_lib_schema0.EntitySpec<{
|
|
51
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
52
|
+
eventName: _lssm_lib_schema0.EntityScalarField;
|
|
53
|
+
eventVersion: _lssm_lib_schema0.EntityScalarField;
|
|
54
|
+
payload: _lssm_lib_schema0.EntityScalarField;
|
|
55
|
+
actorId: _lssm_lib_schema0.EntityScalarField;
|
|
56
|
+
actorType: _lssm_lib_schema0.EntityScalarField;
|
|
57
|
+
actorEmail: _lssm_lib_schema0.EntityScalarField;
|
|
58
|
+
targetId: _lssm_lib_schema0.EntityScalarField;
|
|
59
|
+
targetType: _lssm_lib_schema0.EntityScalarField;
|
|
60
|
+
orgId: _lssm_lib_schema0.EntityScalarField;
|
|
61
|
+
tenantId: _lssm_lib_schema0.EntityScalarField;
|
|
62
|
+
traceId: _lssm_lib_schema0.EntityScalarField;
|
|
63
|
+
spanId: _lssm_lib_schema0.EntityScalarField;
|
|
64
|
+
requestId: _lssm_lib_schema0.EntityScalarField;
|
|
65
|
+
sessionId: _lssm_lib_schema0.EntityScalarField;
|
|
66
|
+
clientIp: _lssm_lib_schema0.EntityScalarField;
|
|
67
|
+
userAgent: _lssm_lib_schema0.EntityScalarField;
|
|
68
|
+
tags: _lssm_lib_schema0.EntityScalarField;
|
|
69
|
+
metadata: _lssm_lib_schema0.EntityScalarField;
|
|
70
|
+
occurredAt: _lssm_lib_schema0.EntityScalarField;
|
|
71
|
+
recordedAt: _lssm_lib_schema0.EntityScalarField;
|
|
72
|
+
}> | _lssm_lib_schema0.EntitySpec<{
|
|
73
|
+
id: _lssm_lib_schema0.EntityScalarField;
|
|
74
|
+
batchId: _lssm_lib_schema0.EntityScalarField;
|
|
75
|
+
logCount: _lssm_lib_schema0.EntityScalarField;
|
|
76
|
+
fromDate: _lssm_lib_schema0.EntityScalarField;
|
|
77
|
+
toDate: _lssm_lib_schema0.EntityScalarField;
|
|
78
|
+
storagePath: _lssm_lib_schema0.EntityScalarField;
|
|
79
|
+
storageType: _lssm_lib_schema0.EntityScalarField;
|
|
80
|
+
compressedSize: _lssm_lib_schema0.EntityScalarField;
|
|
81
|
+
checksum: _lssm_lib_schema0.EntityScalarField;
|
|
82
|
+
retainUntil: _lssm_lib_schema0.EntityScalarField;
|
|
83
|
+
createdAt: _lssm_lib_schema0.EntityScalarField;
|
|
84
84
|
}>)[];
|
|
85
85
|
/**
|
|
86
86
|
* Module schema contribution for audit trail.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/module.audit-trail",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217060804",
|
|
4
4
|
"description": "Audit trail module for tracking and querying system events",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
23
|
-
"@lssm/lib.bus": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251217060804",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217060804",
|
|
23
|
+
"@lssm/lib.bus": "0.0.0-canary-20251217060804",
|
|
24
24
|
"zod": "^4.1.13"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
28
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
27
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217060804",
|
|
28
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217060804",
|
|
29
29
|
"typescript": "^5.9.3"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|