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