@flipboxlabs/aws-audit-sdk 1.4.0 → 1.4.1
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/repository.d.ts
CHANGED
|
@@ -296,6 +296,7 @@ export declare class AuditRepository<C extends AuditConfig> {
|
|
|
296
296
|
id?: string | number | undefined;
|
|
297
297
|
};
|
|
298
298
|
operation: string;
|
|
299
|
+
message: string | undefined;
|
|
299
300
|
updatedAt?: string | undefined;
|
|
300
301
|
createdAt?: string | undefined;
|
|
301
302
|
tenantId?: string | undefined;
|
|
@@ -307,7 +308,6 @@ export declare class AuditRepository<C extends AuditConfig> {
|
|
|
307
308
|
context?: Record<string, string | number | boolean | {
|
|
308
309
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
309
310
|
}> | undefined;
|
|
310
|
-
message?: string | undefined;
|
|
311
311
|
rerunable?: boolean | undefined;
|
|
312
312
|
trace?: string | undefined;
|
|
313
313
|
event?: {
|
|
@@ -368,6 +368,7 @@ export declare class AuditRepository<C extends AuditConfig> {
|
|
|
368
368
|
id?: string | number | undefined;
|
|
369
369
|
};
|
|
370
370
|
operation: string;
|
|
371
|
+
message: string | undefined;
|
|
371
372
|
updatedAt?: string | undefined;
|
|
372
373
|
createdAt?: string | undefined;
|
|
373
374
|
tenantId?: string | undefined;
|
|
@@ -379,7 +380,6 @@ export declare class AuditRepository<C extends AuditConfig> {
|
|
|
379
380
|
context?: Record<string, string | number | boolean | {
|
|
380
381
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
381
382
|
}> | undefined;
|
|
382
|
-
message?: string | undefined;
|
|
383
383
|
rerunable?: boolean | undefined;
|
|
384
384
|
trace?: string | undefined;
|
|
385
385
|
event?: {
|
|
@@ -422,6 +422,7 @@ export declare class AuditRepository<C extends AuditConfig> {
|
|
|
422
422
|
id?: string | number | undefined;
|
|
423
423
|
};
|
|
424
424
|
operation: string;
|
|
425
|
+
message: string | undefined;
|
|
425
426
|
updatedAt?: string | undefined;
|
|
426
427
|
createdAt?: string | undefined;
|
|
427
428
|
tenantId?: string | undefined;
|
|
@@ -433,7 +434,6 @@ export declare class AuditRepository<C extends AuditConfig> {
|
|
|
433
434
|
context?: Record<string, string | number | boolean | {
|
|
434
435
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
435
436
|
}> | undefined;
|
|
436
|
-
message?: string | undefined;
|
|
437
437
|
rerunable?: boolean | undefined;
|
|
438
438
|
trace?: string | undefined;
|
|
439
439
|
event?: {
|
package/dist/schema/audit.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare const AuditSchema: z.ZodObject<{
|
|
|
52
52
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
53
53
|
}, unknown>>>>;
|
|
54
54
|
operation: z.ZodString;
|
|
55
|
-
message: z.ZodOptional<z.ZodString
|
|
55
|
+
message: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
56
56
|
rerunable: z.ZodOptional<z.ZodBoolean>;
|
|
57
57
|
trace: z.ZodOptional<z.ZodString>;
|
|
58
58
|
event: z.ZodOptional<z.ZodObject<{
|
|
@@ -119,7 +119,7 @@ export declare const AuditPayloadSchema: z.ZodObject<{
|
|
|
119
119
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
120
120
|
}, unknown>>>>;
|
|
121
121
|
operation: z.ZodString;
|
|
122
|
-
message: z.ZodOptional<z.ZodString
|
|
122
|
+
message: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
123
123
|
rerunable: z.ZodOptional<z.ZodBoolean>;
|
|
124
124
|
trace: z.ZodOptional<z.ZodString>;
|
|
125
125
|
event: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/common.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare const BaseSchema: z.ZodObject<{
|
|
|
103
103
|
}, z.core.$strip>>;
|
|
104
104
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ContextValue, unknown, z.core.$ZodTypeInternals<ContextValue, unknown>>>>;
|
|
105
105
|
operation: z.ZodString;
|
|
106
|
-
message: z.ZodOptional<z.ZodString
|
|
106
|
+
message: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
107
107
|
rerunable: z.ZodOptional<z.ZodBoolean>;
|
|
108
108
|
trace: z.ZodOptional<z.ZodString>;
|
|
109
109
|
event: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;CAIP,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC;AAOvD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;EAAgC,CAAC;AAc1D;;;GAGG;AACH,QAAA,MAAM,uBAAuB;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;;GAGG;AACH,QAAA,MAAM,wBAAwB;;;;iBAE5B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE3E;;;GAGG;AACH,KAAK,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAsChF,eAAO,MAAM,oBAAoB,kHAEG,CAAC;AAErC;;;;;;;;;GASG;AACH,eA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C,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgCrB,CAAC"}
|
package/dist/schema/common.js
CHANGED
|
@@ -134,7 +134,10 @@ export const BaseSchema = z.object({
|
|
|
134
134
|
/** Name of the operation being audited */
|
|
135
135
|
operation: z.string(),
|
|
136
136
|
/** Human-readable description of the audit */
|
|
137
|
-
message: z
|
|
137
|
+
message: z
|
|
138
|
+
.union([z.string(), z.null()])
|
|
139
|
+
.optional()
|
|
140
|
+
.transform((value) => value ?? undefined),
|
|
138
141
|
/** Whether this audit can be re-run/retried */
|
|
139
142
|
rerunable: z.boolean().optional(),
|
|
140
143
|
/** Trace identifier for distributed tracing */
|
package/dist/schema/storage.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare const AuditStorageSchema: z.ZodObject<{
|
|
|
67
67
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
68
68
|
}, unknown>>>>;
|
|
69
69
|
operation: z.ZodString;
|
|
70
|
-
message: z.ZodOptional<z.ZodString
|
|
70
|
+
message: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
71
71
|
rerunable: z.ZodOptional<z.ZodBoolean>;
|
|
72
72
|
trace: z.ZodOptional<z.ZodString>;
|
|
73
73
|
event: z.ZodOptional<z.ZodObject<{
|
package/dist/service.d.ts
CHANGED
|
@@ -212,6 +212,7 @@ export declare class AuditService<C extends AuditConfig> {
|
|
|
212
212
|
id?: string | number | undefined;
|
|
213
213
|
};
|
|
214
214
|
operation: string;
|
|
215
|
+
message: string | undefined;
|
|
215
216
|
updatedAt?: string | undefined;
|
|
216
217
|
createdAt?: string | undefined;
|
|
217
218
|
tenantId?: string | undefined;
|
|
@@ -223,7 +224,6 @@ export declare class AuditService<C extends AuditConfig> {
|
|
|
223
224
|
context?: Record<string, string | number | boolean | {
|
|
224
225
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
225
226
|
}> | undefined;
|
|
226
|
-
message?: string | undefined;
|
|
227
227
|
rerunable?: boolean | undefined;
|
|
228
228
|
trace?: string | undefined;
|
|
229
229
|
event?: {
|
|
@@ -273,6 +273,7 @@ export declare class AuditService<C extends AuditConfig> {
|
|
|
273
273
|
id?: string | number | undefined;
|
|
274
274
|
};
|
|
275
275
|
operation: string;
|
|
276
|
+
message: string | undefined;
|
|
276
277
|
updatedAt?: string | undefined;
|
|
277
278
|
createdAt?: string | undefined;
|
|
278
279
|
tenantId?: string | undefined;
|
|
@@ -284,7 +285,6 @@ export declare class AuditService<C extends AuditConfig> {
|
|
|
284
285
|
context?: Record<string, string | number | boolean | {
|
|
285
286
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
286
287
|
}> | undefined;
|
|
287
|
-
message?: string | undefined;
|
|
288
288
|
rerunable?: boolean | undefined;
|
|
289
289
|
trace?: string | undefined;
|
|
290
290
|
event?: {
|
|
@@ -328,6 +328,7 @@ export declare class AuditService<C extends AuditConfig> {
|
|
|
328
328
|
id?: string | number | undefined;
|
|
329
329
|
};
|
|
330
330
|
operation: string;
|
|
331
|
+
message: string | undefined;
|
|
331
332
|
updatedAt?: string | undefined;
|
|
332
333
|
createdAt?: string | undefined;
|
|
333
334
|
tenantId?: string | undefined;
|
|
@@ -339,7 +340,6 @@ export declare class AuditService<C extends AuditConfig> {
|
|
|
339
340
|
context?: Record<string, string | number | boolean | {
|
|
340
341
|
[key: string]: string | number | boolean | /*elided*/ any;
|
|
341
342
|
}> | undefined;
|
|
342
|
-
message?: string | undefined;
|
|
343
343
|
rerunable?: boolean | undefined;
|
|
344
344
|
trace?: string | undefined;
|
|
345
345
|
event?: {
|