@sphereon/ssi-sdk.event-logger 0.33.1-next.3 → 0.33.1-next.68

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/index.cjs ADDED
@@ -0,0 +1,785 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+
24
+ // plugin.schema.json
25
+ var require_plugin_schema = __commonJS({
26
+ "plugin.schema.json"(exports, module2) {
27
+ module2.exports = {
28
+ IEventLogger: {
29
+ components: {
30
+ schemas: {
31
+ GetActivityEventsArgs: {
32
+ type: "object",
33
+ properties: {
34
+ filter: {
35
+ $ref: "#/components/schemas/FindActivityLoggingEventArgs"
36
+ }
37
+ },
38
+ additionalProperties: false
39
+ },
40
+ FindActivityLoggingEventArgs: {
41
+ type: "array",
42
+ items: {
43
+ $ref: "#/components/schemas/PartialActivityLoggingEvent"
44
+ }
45
+ },
46
+ PartialActivityLoggingEvent: {
47
+ $ref: "#/components/schemas/Partial<ActivityLoggingEvent>"
48
+ },
49
+ "Partial<ActivityLoggingEvent>": {
50
+ type: "object",
51
+ properties: {
52
+ level: {
53
+ $ref: "#/components/schemas/LogLevel"
54
+ },
55
+ correlationId: {
56
+ type: "string"
57
+ },
58
+ timestamp: {
59
+ type: "string",
60
+ format: "date-time"
61
+ },
62
+ diagnosticData: {},
63
+ id: {
64
+ type: "string"
65
+ },
66
+ type: {
67
+ $ref: "#/components/schemas/LoggingEventType.ACTIVITY"
68
+ },
69
+ originalCredential: {
70
+ type: "string"
71
+ },
72
+ credentialHash: {
73
+ type: "string"
74
+ },
75
+ parentCredentialHash: {
76
+ type: "string"
77
+ },
78
+ credentialType: {
79
+ $ref: "#/components/schemas/CredentialType"
80
+ },
81
+ sharePurpose: {
82
+ type: "string"
83
+ },
84
+ system: {
85
+ $ref: "#/components/schemas/System"
86
+ },
87
+ subSystemType: {
88
+ $ref: "#/components/schemas/SubSystem"
89
+ },
90
+ actionType: {
91
+ $ref: "#/components/schemas/ActionType"
92
+ },
93
+ actionSubType: {
94
+ $ref: "#/components/schemas/ActionSubType"
95
+ },
96
+ initiatorType: {
97
+ $ref: "#/components/schemas/InitiatorType"
98
+ },
99
+ systemCorrelationIdType: {
100
+ $ref: "#/components/schemas/SystemCorrelationIdType"
101
+ },
102
+ systemCorrelationId: {
103
+ type: "string"
104
+ },
105
+ systemAlias: {
106
+ type: "string"
107
+ },
108
+ partyCorrelationType: {
109
+ $ref: "#/components/schemas/PartyCorrelationType"
110
+ },
111
+ partyCorrelationId: {
112
+ type: "string"
113
+ },
114
+ partyAlias: {
115
+ type: "string"
116
+ },
117
+ description: {
118
+ type: "string"
119
+ },
120
+ data: {}
121
+ },
122
+ additionalProperties: false
123
+ },
124
+ LogLevel: {
125
+ type: "number",
126
+ enum: [0, 1, 2, 3, 4]
127
+ },
128
+ "LoggingEventType.ACTIVITY": {
129
+ type: "string",
130
+ const: "activity"
131
+ },
132
+ CredentialType: {
133
+ type: "string",
134
+ enum: ["JSON_LD", "JWT", "SD_JWT", "MSO_MDOC"]
135
+ },
136
+ System: {
137
+ type: "string",
138
+ enum: ["general", "kms", "identity", "oid4vci", "oid4vp", "siopv2", "PE", "credentials", "web3", "profile", "contact"]
139
+ },
140
+ SubSystem: {
141
+ type: "string",
142
+ enum: [
143
+ "key",
144
+ "did_provider",
145
+ "did_resolver",
146
+ "oid4vp_op",
147
+ "oid4vci_client",
148
+ "siopv2_op",
149
+ "contact_manager",
150
+ "vc_issuer",
151
+ "vc_verifier",
152
+ "vc_persistence",
153
+ "transport",
154
+ "profile",
155
+ "api"
156
+ ]
157
+ },
158
+ ActionType: {
159
+ type: "string",
160
+ enum: ["create", "read", "update", "delete", "execute"]
161
+ },
162
+ ActionSubType: {
163
+ anyOf: [
164
+ {
165
+ $ref: "#/components/schemas/DefaultActionSubType"
166
+ },
167
+ {
168
+ type: "string"
169
+ }
170
+ ]
171
+ },
172
+ DefaultActionSubType: {
173
+ type: "string",
174
+ enum: [
175
+ "Key generation",
176
+ "Key import",
177
+ "Key persistence",
178
+ "Key removal",
179
+ "DID creation",
180
+ "DID resolution",
181
+ "DID service update",
182
+ "VC issue",
183
+ "VC verify",
184
+ "VC share",
185
+ "VC delete",
186
+ "VC issue decline",
187
+ "VC share decline"
188
+ ]
189
+ },
190
+ InitiatorType: {
191
+ type: "string",
192
+ enum: ["user", "system", "external"]
193
+ },
194
+ SystemCorrelationIdType: {
195
+ type: "string",
196
+ enum: ["did", "url", "email", "hostname", "phone", "user"]
197
+ },
198
+ PartyCorrelationType: {
199
+ type: "string",
200
+ enum: ["did", "url", "email", "hostname", "phone"]
201
+ },
202
+ ActivityLoggingEvent: {
203
+ type: "object",
204
+ additionalProperties: false,
205
+ properties: {
206
+ id: {
207
+ type: "string"
208
+ },
209
+ type: {
210
+ $ref: "#/components/schemas/LoggingEventType.ACTIVITY"
211
+ },
212
+ originalCredential: {
213
+ type: "string"
214
+ },
215
+ credentialHash: {
216
+ type: "string"
217
+ },
218
+ parentCredentialHash: {
219
+ type: "string"
220
+ },
221
+ credentialType: {
222
+ $ref: "#/components/schemas/CredentialType"
223
+ },
224
+ sharePurpose: {
225
+ type: "string"
226
+ },
227
+ correlationId: {
228
+ type: "string"
229
+ },
230
+ system: {
231
+ $ref: "#/components/schemas/System"
232
+ },
233
+ subSystemType: {
234
+ $ref: "#/components/schemas/SubSystem"
235
+ },
236
+ actionType: {
237
+ $ref: "#/components/schemas/ActionType"
238
+ },
239
+ actionSubType: {
240
+ $ref: "#/components/schemas/ActionSubType"
241
+ },
242
+ initiatorType: {
243
+ $ref: "#/components/schemas/InitiatorType"
244
+ },
245
+ systemCorrelationIdType: {
246
+ $ref: "#/components/schemas/SystemCorrelationIdType"
247
+ },
248
+ systemCorrelationId: {
249
+ type: "string"
250
+ },
251
+ systemAlias: {
252
+ type: "string"
253
+ },
254
+ partyCorrelationType: {
255
+ $ref: "#/components/schemas/PartyCorrelationType"
256
+ },
257
+ partyCorrelationId: {
258
+ type: "string"
259
+ },
260
+ partyAlias: {
261
+ type: "string"
262
+ },
263
+ description: {
264
+ type: "string"
265
+ },
266
+ data: {},
267
+ level: {
268
+ $ref: "#/components/schemas/LogLevel"
269
+ },
270
+ timestamp: {
271
+ type: "string",
272
+ format: "date-time"
273
+ },
274
+ diagnosticData: {}
275
+ },
276
+ required: [
277
+ "actionSubType",
278
+ "actionType",
279
+ "correlationId",
280
+ "description",
281
+ "id",
282
+ "initiatorType",
283
+ "level",
284
+ "subSystemType",
285
+ "system",
286
+ "timestamp",
287
+ "type"
288
+ ]
289
+ },
290
+ GetAuditEventsArgs: {
291
+ type: "object",
292
+ properties: {
293
+ filter: {
294
+ $ref: "#/components/schemas/FindAuditLoggingEventArgs"
295
+ }
296
+ },
297
+ additionalProperties: false
298
+ },
299
+ FindAuditLoggingEventArgs: {
300
+ type: "array",
301
+ items: {
302
+ $ref: "#/components/schemas/PartialAuditLoggingEvent"
303
+ }
304
+ },
305
+ PartialAuditLoggingEvent: {
306
+ $ref: "#/components/schemas/Partial<AuditLoggingEvent>"
307
+ },
308
+ "Partial<AuditLoggingEvent>": {
309
+ type: "object",
310
+ properties: {
311
+ level: {
312
+ $ref: "#/components/schemas/LogLevel"
313
+ },
314
+ correlationId: {
315
+ type: "string"
316
+ },
317
+ timestamp: {
318
+ type: "string",
319
+ format: "date-time"
320
+ },
321
+ diagnosticData: {},
322
+ id: {
323
+ type: "string"
324
+ },
325
+ type: {
326
+ $ref: "#/components/schemas/LoggingEventType.AUDIT"
327
+ },
328
+ system: {
329
+ $ref: "#/components/schemas/System"
330
+ },
331
+ subSystemType: {
332
+ $ref: "#/components/schemas/SubSystem"
333
+ },
334
+ actionType: {
335
+ $ref: "#/components/schemas/ActionType"
336
+ },
337
+ actionSubType: {
338
+ $ref: "#/components/schemas/ActionSubType"
339
+ },
340
+ initiatorType: {
341
+ $ref: "#/components/schemas/InitiatorType"
342
+ },
343
+ systemCorrelationIdType: {
344
+ $ref: "#/components/schemas/SystemCorrelationIdType"
345
+ },
346
+ systemCorrelationId: {
347
+ type: "string"
348
+ },
349
+ systemAlias: {
350
+ type: "string"
351
+ },
352
+ partyCorrelationType: {
353
+ $ref: "#/components/schemas/PartyCorrelationType"
354
+ },
355
+ partyCorrelationId: {
356
+ type: "string"
357
+ },
358
+ partyAlias: {
359
+ type: "string"
360
+ },
361
+ description: {
362
+ type: "string"
363
+ },
364
+ data: {}
365
+ },
366
+ additionalProperties: false
367
+ },
368
+ "LoggingEventType.AUDIT": {
369
+ type: "string",
370
+ const: "audit"
371
+ },
372
+ AuditLoggingEvent: {
373
+ type: "object",
374
+ additionalProperties: false,
375
+ properties: {
376
+ id: {
377
+ type: "string"
378
+ },
379
+ type: {
380
+ $ref: "#/components/schemas/LoggingEventType.AUDIT"
381
+ },
382
+ correlationId: {
383
+ type: "string"
384
+ },
385
+ system: {
386
+ $ref: "#/components/schemas/System"
387
+ },
388
+ subSystemType: {
389
+ $ref: "#/components/schemas/SubSystem"
390
+ },
391
+ actionType: {
392
+ $ref: "#/components/schemas/ActionType"
393
+ },
394
+ actionSubType: {
395
+ $ref: "#/components/schemas/ActionSubType"
396
+ },
397
+ initiatorType: {
398
+ $ref: "#/components/schemas/InitiatorType"
399
+ },
400
+ systemCorrelationIdType: {
401
+ $ref: "#/components/schemas/SystemCorrelationIdType"
402
+ },
403
+ systemCorrelationId: {
404
+ type: "string"
405
+ },
406
+ systemAlias: {
407
+ type: "string"
408
+ },
409
+ partyCorrelationType: {
410
+ $ref: "#/components/schemas/PartyCorrelationType"
411
+ },
412
+ partyCorrelationId: {
413
+ type: "string"
414
+ },
415
+ partyAlias: {
416
+ type: "string"
417
+ },
418
+ description: {
419
+ type: "string"
420
+ },
421
+ data: {},
422
+ level: {
423
+ $ref: "#/components/schemas/LogLevel"
424
+ },
425
+ timestamp: {
426
+ type: "string",
427
+ format: "date-time"
428
+ },
429
+ diagnosticData: {}
430
+ },
431
+ required: [
432
+ "actionSubType",
433
+ "actionType",
434
+ "correlationId",
435
+ "description",
436
+ "id",
437
+ "initiatorType",
438
+ "level",
439
+ "subSystemType",
440
+ "system",
441
+ "timestamp",
442
+ "type"
443
+ ]
444
+ },
445
+ LogEventArgs: {
446
+ type: "object",
447
+ properties: {
448
+ event: {
449
+ $ref: "#/components/schemas/LogEventType"
450
+ }
451
+ },
452
+ required: ["event"],
453
+ additionalProperties: false
454
+ },
455
+ LogEventType: {
456
+ anyOf: [
457
+ {
458
+ $ref: "#/components/schemas/NonPersistedAuditLoggingEvent"
459
+ },
460
+ {
461
+ $ref: "#/components/schemas/NonPersistedActivityLoggingEvent"
462
+ }
463
+ ]
464
+ },
465
+ NonPersistedAuditLoggingEvent: {
466
+ type: "object",
467
+ additionalProperties: false,
468
+ properties: {
469
+ system: {
470
+ $ref: "#/components/schemas/System"
471
+ },
472
+ subSystemType: {
473
+ $ref: "#/components/schemas/SubSystem"
474
+ },
475
+ initiatorType: {
476
+ $ref: "#/components/schemas/InitiatorType"
477
+ },
478
+ diagnosticData: {},
479
+ actionType: {
480
+ $ref: "#/components/schemas/ActionType"
481
+ },
482
+ actionSubType: {
483
+ $ref: "#/components/schemas/ActionSubType"
484
+ },
485
+ systemCorrelationIdType: {
486
+ $ref: "#/components/schemas/SystemCorrelationIdType"
487
+ },
488
+ systemCorrelationId: {
489
+ type: "string"
490
+ },
491
+ systemAlias: {
492
+ type: "string"
493
+ },
494
+ partyCorrelationType: {
495
+ $ref: "#/components/schemas/PartyCorrelationType"
496
+ },
497
+ partyCorrelationId: {
498
+ type: "string"
499
+ },
500
+ partyAlias: {
501
+ type: "string"
502
+ },
503
+ description: {
504
+ type: "string"
505
+ },
506
+ data: {},
507
+ level: {
508
+ $ref: "#/components/schemas/LogLevel"
509
+ },
510
+ correlationId: {
511
+ type: "string"
512
+ }
513
+ },
514
+ required: ["actionSubType", "actionType", "description", "initiatorType", "subSystemType", "system"]
515
+ },
516
+ NonPersistedActivityLoggingEvent: {
517
+ type: "object",
518
+ additionalProperties: false,
519
+ properties: {
520
+ system: {
521
+ $ref: "#/components/schemas/System"
522
+ },
523
+ subSystemType: {
524
+ $ref: "#/components/schemas/SubSystem"
525
+ },
526
+ initiatorType: {
527
+ $ref: "#/components/schemas/InitiatorType"
528
+ },
529
+ originalCredential: {
530
+ type: "string"
531
+ },
532
+ credentialHash: {
533
+ type: "string"
534
+ },
535
+ parentCredentialHash: {
536
+ type: "string"
537
+ },
538
+ credentialType: {
539
+ $ref: "#/components/schemas/CredentialType"
540
+ },
541
+ sharePurpose: {
542
+ type: "string"
543
+ },
544
+ data: {},
545
+ diagnosticData: {},
546
+ actionType: {
547
+ $ref: "#/components/schemas/ActionType"
548
+ },
549
+ actionSubType: {
550
+ $ref: "#/components/schemas/ActionSubType"
551
+ },
552
+ systemCorrelationIdType: {
553
+ $ref: "#/components/schemas/SystemCorrelationIdType"
554
+ },
555
+ systemCorrelationId: {
556
+ type: "string"
557
+ },
558
+ systemAlias: {
559
+ type: "string"
560
+ },
561
+ partyCorrelationType: {
562
+ $ref: "#/components/schemas/PartyCorrelationType"
563
+ },
564
+ partyCorrelationId: {
565
+ type: "string"
566
+ },
567
+ partyAlias: {
568
+ type: "string"
569
+ },
570
+ description: {
571
+ type: "string"
572
+ },
573
+ level: {
574
+ $ref: "#/components/schemas/LogLevel"
575
+ },
576
+ correlationId: {
577
+ type: "string"
578
+ }
579
+ },
580
+ required: ["actionSubType", "actionType", "description", "initiatorType", "subSystemType", "system"]
581
+ }
582
+ },
583
+ methods: {
584
+ loggerGetActivityEvents: {
585
+ description: "",
586
+ arguments: {
587
+ $ref: "#/components/schemas/GetActivityEventsArgs"
588
+ },
589
+ returnType: {
590
+ type: "array",
591
+ items: {
592
+ $ref: "#/components/schemas/ActivityLoggingEvent"
593
+ }
594
+ }
595
+ },
596
+ loggerGetAuditEvents: {
597
+ description: "",
598
+ arguments: {
599
+ $ref: "#/components/schemas/GetAuditEventsArgs"
600
+ },
601
+ returnType: {
602
+ type: "array",
603
+ items: {
604
+ $ref: "#/components/schemas/AuditLoggingEvent"
605
+ }
606
+ }
607
+ },
608
+ loggerLogActivityEvent: {
609
+ description: "",
610
+ arguments: {
611
+ $ref: "#/components/schemas/LogEventArgs"
612
+ },
613
+ returnType: {
614
+ $ref: "#/components/schemas/ActivityLoggingEvent"
615
+ }
616
+ },
617
+ loggerLogAuditEvent: {
618
+ description: "",
619
+ arguments: {
620
+ $ref: "#/components/schemas/LogEventArgs"
621
+ },
622
+ returnType: {
623
+ $ref: "#/components/schemas/AuditLoggingEvent"
624
+ }
625
+ },
626
+ loggerLogGeneralEvent: {
627
+ description: "",
628
+ arguments: {
629
+ $ref: "#/components/schemas/LogEventArgs"
630
+ },
631
+ returnType: {
632
+ $ref: "#/components/schemas/LogEventType"
633
+ }
634
+ }
635
+ }
636
+ }
637
+ }
638
+ };
639
+ }
640
+ });
641
+
642
+ // src/index.ts
643
+ var index_exports = {};
644
+ __export(index_exports, {
645
+ EventLogger: () => EventLogger,
646
+ eventLoggerAuditMethods: () => eventLoggerAuditMethods,
647
+ eventLoggerMethods: () => eventLoggerMethods,
648
+ schema: () => schema
649
+ });
650
+ module.exports = __toCommonJS(index_exports);
651
+
652
+ // src/agent/EventLogger.ts
653
+ var import_ssi_types = require("@sphereon/ssi-types");
654
+ var import_uuid = require("uuid");
655
+ var eventLoggerAuditMethods = [
656
+ "loggerGetAuditEvents",
657
+ "loggerLogAuditEvent",
658
+ "loggerLogGeneralEvent",
659
+ "loggerLogActivityEvent",
660
+ "loggerGetActivityEvents"
661
+ ];
662
+ var eventLoggerMethods = [
663
+ ...eventLoggerAuditMethods
664
+ ];
665
+ var EventLogger = class {
666
+ static {
667
+ __name(this, "EventLogger");
668
+ }
669
+ schema = schema.IEventLogger;
670
+ eventTypes = [];
671
+ store;
672
+ simpleLoggers;
673
+ methods = {
674
+ loggerGetAuditEvents: this.loggerGetAuditEvents.bind(this),
675
+ loggerLogAuditEvent: this.loggerLogAuditEvent.bind(this),
676
+ loggerLogGeneralEvent: this.loggerLogGeneralEvent.bind(this),
677
+ loggerLogActivityEvent: this.loggerLogActivityEvent.bind(this),
678
+ loggerGetActivityEvents: this.loggerGetActivityEvents.bind(this)
679
+ };
680
+ constructor(options) {
681
+ const { store, eventTypes } = options;
682
+ const generalOpts = options.general ?? {
683
+ debugPkg: true
684
+ };
685
+ this.store = store;
686
+ this.eventTypes = eventTypes;
687
+ const methods = [];
688
+ if (generalOpts.debugPkg) {
689
+ methods.push(import_ssi_types.LogMethod.DEBUG_PKG);
690
+ }
691
+ if (generalOpts.console) {
692
+ methods.push(import_ssi_types.LogMethod.CONSOLE);
693
+ }
694
+ if (generalOpts.events) {
695
+ methods.push(import_ssi_types.LogMethod.EVENT);
696
+ }
697
+ this.simpleLoggers = new import_ssi_types.Loggers({
698
+ methods,
699
+ eventName: generalOpts.eventName,
700
+ defaultLogLevel: generalOpts.defaultLogLevel
701
+ });
702
+ }
703
+ async onEvent(event, context) {
704
+ switch (event.type) {
705
+ case import_ssi_types.LoggingEventType.AUDIT:
706
+ await context.agent.loggerLogAuditEvent({
707
+ event: event.data
708
+ });
709
+ break;
710
+ case import_ssi_types.LoggingEventType.GENERAL:
711
+ await context.agent.loggerLogGeneralEvent({
712
+ event: event.data
713
+ });
714
+ break;
715
+ case import_ssi_types.LoggingEventType.ACTIVITY:
716
+ await context.agent.loggerLogActivityEvent({
717
+ event: event.data
718
+ });
719
+ break;
720
+ default:
721
+ return Promise.reject(Error(`Event type ${event.type} not supported`));
722
+ }
723
+ }
724
+ async loggerGetAuditEvents(args) {
725
+ const { filter } = args ?? {};
726
+ if (!this.store) {
727
+ return Promise.reject(Error("No store available in options"));
728
+ }
729
+ return this.store.getAuditEvents({
730
+ filter
731
+ });
732
+ }
733
+ async loggerGetActivityEvents(args) {
734
+ const { filter } = args ?? {};
735
+ if (!this.store) {
736
+ return Promise.reject(Error("No store available in options"));
737
+ }
738
+ return this.store.getActivityEvents({
739
+ filter
740
+ });
741
+ }
742
+ async loggerLogGeneralEvent(args) {
743
+ const { event } = args;
744
+ this.simpleLoggers.get(event.data.system).logl(event.data.level ?? import_ssi_types.LogLevel.INFO, event.data.data, event.data);
745
+ return args.event;
746
+ }
747
+ async loggerLogAuditEvent(args) {
748
+ const { event } = args;
749
+ if (!this.store) {
750
+ return Promise.reject(Error("No store available in options"));
751
+ }
752
+ return this.store.storeAuditEvent({
753
+ event: {
754
+ ...event,
755
+ system: event.system,
756
+ subSystemType: event.subSystemType,
757
+ initiatorType: event.initiatorType,
758
+ level: event.level ?? import_ssi_types.LogLevel.INFO,
759
+ correlationId: event.correlationId ?? (0, import_uuid.v4)(),
760
+ timestamp: /* @__PURE__ */ new Date()
761
+ }
762
+ });
763
+ }
764
+ async loggerLogActivityEvent(args) {
765
+ const { event } = args;
766
+ if (!this.store) {
767
+ return Promise.reject(Error("No store available in options"));
768
+ }
769
+ return this.store.storeActivityEvent({
770
+ event: {
771
+ ...event,
772
+ system: event.system,
773
+ subSystemType: event.subSystemType,
774
+ initiatorType: event.initiatorType,
775
+ level: event.level ?? import_ssi_types.LogLevel.INFO,
776
+ correlationId: event.correlationId ?? (0, import_uuid.v4)(),
777
+ timestamp: /* @__PURE__ */ new Date()
778
+ }
779
+ });
780
+ }
781
+ };
782
+
783
+ // src/index.ts
784
+ var schema = require_plugin_schema();
785
+ //# sourceMappingURL=index.cjs.map