@ampsec/platform-client 74.5.3 → 74.7.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.
- package/build/src/dto/notification.dto.d.ts +76 -2
- package/build/src/dto/notification.dto.js +21 -3
- package/build/src/dto/notification.dto.js.map +1 -1
- package/build/src/settings.d.ts +2 -0
- package/build/src/settings.js +2 -0
- package/build/src/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/notification.dto.ts +20 -2
- package/src/settings.ts +2 -0
|
@@ -7,11 +7,25 @@ export declare enum NotificationStatus {
|
|
|
7
7
|
SENT = "SENT"
|
|
8
8
|
}
|
|
9
9
|
export declare enum NotificationContextKind {
|
|
10
|
+
WELCOME = "WELCOME",
|
|
10
11
|
ROOT = "ROOT",
|
|
12
|
+
STANDARD_ENGAGEMENT = "STANDARD_ENGAGEMENT",
|
|
13
|
+
DIRECT_MESSAGE = "DIRECT_MESSAGE",
|
|
14
|
+
TRIAGE = "TRIAGE",
|
|
11
15
|
REMINDER = "REMINDER",
|
|
16
|
+
STANDARD_REMINDER = "STANDARD_REMINDER",
|
|
17
|
+
SCHEDULE_RESOLUTION_REMINDER = "SCHEDULE_RESOLUTION_REMINDER",
|
|
12
18
|
PENDING_VERIFICATION_ACK = "PENDING_VERIFICATION_ACK",
|
|
13
19
|
RESOLVED_ACK = "RESOLVED_ACK"
|
|
14
20
|
}
|
|
21
|
+
export declare enum NotificationActionKind {
|
|
22
|
+
VIEW_DETAILS = "VIEW_DETAILS",
|
|
23
|
+
GET_INSTRUCTIONS = "GET_INSTRUCTIONS",
|
|
24
|
+
MARK_COMPLETE = "MARK_COMPLETE",
|
|
25
|
+
RESOLVE_NOW = "RESOLVE_NOW",
|
|
26
|
+
TRIAGE = "TRIAGE",
|
|
27
|
+
SCHEDULE_RESOLUTION = "SCHEDULE_RESOLUTION"
|
|
28
|
+
}
|
|
15
29
|
export declare enum ContentStrategyKind {
|
|
16
30
|
RAW = "RAW",
|
|
17
31
|
TEMPLATE = "TEMPLATE",
|
|
@@ -20,8 +34,6 @@ export declare enum ContentStrategyKind {
|
|
|
20
34
|
}
|
|
21
35
|
export declare enum DeliveryStrategyKind {
|
|
22
36
|
EMAIL = "EMAIL",
|
|
23
|
-
/** @deprecated Use SLACK Instead */
|
|
24
|
-
MESSAGING = "MESSAGING",
|
|
25
37
|
SLACK = "SLACK"
|
|
26
38
|
}
|
|
27
39
|
export declare enum DeliveryModeKind {
|
|
@@ -67,6 +79,7 @@ export declare const _RawContentStrategy: z.ZodObject<{
|
|
|
67
79
|
export type RawContentStrategy = z.infer<typeof _RawContentStrategy>;
|
|
68
80
|
export declare const _TemplateContentStrategy: z.ZodObject<{
|
|
69
81
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
82
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
70
83
|
templateId: z.ZodString;
|
|
71
84
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
72
85
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -75,11 +88,13 @@ export declare const _TemplateContentStrategy: z.ZodObject<{
|
|
|
75
88
|
context: Record<string, string>;
|
|
76
89
|
templateId: string;
|
|
77
90
|
flowContext?: Record<string, any> | undefined;
|
|
91
|
+
templateType?: string | undefined;
|
|
78
92
|
}, {
|
|
79
93
|
kind: ContentStrategyKind.TEMPLATE;
|
|
80
94
|
context: Record<string, string>;
|
|
81
95
|
templateId: string;
|
|
82
96
|
flowContext?: Record<string, any> | undefined;
|
|
97
|
+
templateType?: string | undefined;
|
|
83
98
|
}>;
|
|
84
99
|
export type TemplateContentStrategy = z.infer<typeof _TemplateContentStrategy>;
|
|
85
100
|
export declare const _FindingContentStrategy: z.ZodObject<{
|
|
@@ -217,6 +232,7 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
217
232
|
flowContext?: Record<string, any> | undefined;
|
|
218
233
|
}>, z.ZodObject<{
|
|
219
234
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
235
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
220
236
|
templateId: z.ZodString;
|
|
221
237
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
222
238
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -225,11 +241,13 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
225
241
|
context: Record<string, string>;
|
|
226
242
|
templateId: string;
|
|
227
243
|
flowContext?: Record<string, any> | undefined;
|
|
244
|
+
templateType?: string | undefined;
|
|
228
245
|
}, {
|
|
229
246
|
kind: ContentStrategyKind.TEMPLATE;
|
|
230
247
|
context: Record<string, string>;
|
|
231
248
|
templateId: string;
|
|
232
249
|
flowContext?: Record<string, any> | undefined;
|
|
250
|
+
templateType?: string | undefined;
|
|
233
251
|
}>, z.ZodObject<{
|
|
234
252
|
kind: z.ZodLiteral<ContentStrategyKind.CUSTOM_CONTENT>;
|
|
235
253
|
content: z.ZodString;
|
|
@@ -252,6 +270,7 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
252
270
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
253
271
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
254
272
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
273
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
255
274
|
}>, "strip", z.ZodTypeAny, {
|
|
256
275
|
status: NotificationStatus;
|
|
257
276
|
contentStrategy: {
|
|
@@ -265,6 +284,7 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
265
284
|
context: Record<string, string>;
|
|
266
285
|
templateId: string;
|
|
267
286
|
flowContext?: Record<string, any> | undefined;
|
|
287
|
+
templateType?: string | undefined;
|
|
268
288
|
} | {
|
|
269
289
|
kind: ContentStrategyKind.FINDING;
|
|
270
290
|
fid: string;
|
|
@@ -283,6 +303,7 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
283
303
|
flowStateId?: string | undefined;
|
|
284
304
|
context?: NotificationContextKind | undefined;
|
|
285
305
|
fid?: string | undefined;
|
|
306
|
+
actions?: NotificationActionKind[] | undefined;
|
|
286
307
|
agentId?: string | undefined;
|
|
287
308
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
288
309
|
}, {
|
|
@@ -298,6 +319,7 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
298
319
|
context: Record<string, string>;
|
|
299
320
|
templateId: string;
|
|
300
321
|
flowContext?: Record<string, any> | undefined;
|
|
322
|
+
templateType?: string | undefined;
|
|
301
323
|
} | {
|
|
302
324
|
kind: ContentStrategyKind.FINDING;
|
|
303
325
|
fid: string;
|
|
@@ -316,6 +338,7 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extend
|
|
|
316
338
|
flowStateId?: string | undefined;
|
|
317
339
|
context?: NotificationContextKind | undefined;
|
|
318
340
|
fid?: string | undefined;
|
|
341
|
+
actions?: NotificationActionKind[] | undefined;
|
|
319
342
|
agentId?: string | undefined;
|
|
320
343
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
321
344
|
}>;
|
|
@@ -358,6 +381,7 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
358
381
|
flowContext?: Record<string, any> | undefined;
|
|
359
382
|
}>, z.ZodObject<{
|
|
360
383
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
384
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
361
385
|
templateId: z.ZodString;
|
|
362
386
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
363
387
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -366,11 +390,13 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
366
390
|
context: Record<string, string>;
|
|
367
391
|
templateId: string;
|
|
368
392
|
flowContext?: Record<string, any> | undefined;
|
|
393
|
+
templateType?: string | undefined;
|
|
369
394
|
}, {
|
|
370
395
|
kind: ContentStrategyKind.TEMPLATE;
|
|
371
396
|
context: Record<string, string>;
|
|
372
397
|
templateId: string;
|
|
373
398
|
flowContext?: Record<string, any> | undefined;
|
|
399
|
+
templateType?: string | undefined;
|
|
374
400
|
}>, z.ZodObject<{
|
|
375
401
|
kind: z.ZodLiteral<ContentStrategyKind.CUSTOM_CONTENT>;
|
|
376
402
|
content: z.ZodString;
|
|
@@ -393,6 +419,7 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
393
419
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
394
420
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
395
421
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
422
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
396
423
|
}>, {
|
|
397
424
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
398
425
|
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -447,6 +474,7 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
447
474
|
context: Record<string, string>;
|
|
448
475
|
templateId: string;
|
|
449
476
|
flowContext?: Record<string, any> | undefined;
|
|
477
|
+
templateType?: string | undefined;
|
|
450
478
|
} | {
|
|
451
479
|
kind: ContentStrategyKind.FINDING;
|
|
452
480
|
fid: string;
|
|
@@ -476,6 +504,7 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
476
504
|
flowStateId?: string | undefined;
|
|
477
505
|
context?: NotificationContextKind | undefined;
|
|
478
506
|
fid?: string | undefined;
|
|
507
|
+
actions?: NotificationActionKind[] | undefined;
|
|
479
508
|
agentId?: string | undefined;
|
|
480
509
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
481
510
|
}, {
|
|
@@ -491,6 +520,7 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
491
520
|
context: Record<string, string>;
|
|
492
521
|
templateId: string;
|
|
493
522
|
flowContext?: Record<string, any> | undefined;
|
|
523
|
+
templateType?: string | undefined;
|
|
494
524
|
} | {
|
|
495
525
|
kind: ContentStrategyKind.FINDING;
|
|
496
526
|
fid: string;
|
|
@@ -520,6 +550,7 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
520
550
|
flowStateId?: string | undefined;
|
|
521
551
|
context?: NotificationContextKind | undefined;
|
|
522
552
|
fid?: string | undefined;
|
|
553
|
+
actions?: NotificationActionKind[] | undefined;
|
|
523
554
|
agentId?: string | undefined;
|
|
524
555
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
525
556
|
}>;
|
|
@@ -563,6 +594,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
563
594
|
flowContext?: Record<string, any> | undefined;
|
|
564
595
|
}>, z.ZodObject<{
|
|
565
596
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
597
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
566
598
|
templateId: z.ZodString;
|
|
567
599
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
568
600
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -571,11 +603,13 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
571
603
|
context: Record<string, string>;
|
|
572
604
|
templateId: string;
|
|
573
605
|
flowContext?: Record<string, any> | undefined;
|
|
606
|
+
templateType?: string | undefined;
|
|
574
607
|
}, {
|
|
575
608
|
kind: ContentStrategyKind.TEMPLATE;
|
|
576
609
|
context: Record<string, string>;
|
|
577
610
|
templateId: string;
|
|
578
611
|
flowContext?: Record<string, any> | undefined;
|
|
612
|
+
templateType?: string | undefined;
|
|
579
613
|
}>, z.ZodObject<{
|
|
580
614
|
kind: z.ZodLiteral<ContentStrategyKind.CUSTOM_CONTENT>;
|
|
581
615
|
content: z.ZodString;
|
|
@@ -598,6 +632,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
598
632
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
599
633
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
600
634
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
635
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
601
636
|
}>, {
|
|
602
637
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
603
638
|
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -637,6 +672,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
637
672
|
context: Record<string, string>;
|
|
638
673
|
templateId: string;
|
|
639
674
|
flowContext?: Record<string, any> | undefined;
|
|
675
|
+
templateType?: string | undefined;
|
|
640
676
|
} | {
|
|
641
677
|
kind: ContentStrategyKind.FINDING;
|
|
642
678
|
fid: string;
|
|
@@ -663,6 +699,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
663
699
|
flowStateId?: string | undefined;
|
|
664
700
|
context?: NotificationContextKind | undefined;
|
|
665
701
|
fid?: string | undefined;
|
|
702
|
+
actions?: NotificationActionKind[] | undefined;
|
|
666
703
|
agentId?: string | undefined;
|
|
667
704
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
668
705
|
}, {
|
|
@@ -678,6 +715,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
678
715
|
context: Record<string, string>;
|
|
679
716
|
templateId: string;
|
|
680
717
|
flowContext?: Record<string, any> | undefined;
|
|
718
|
+
templateType?: string | undefined;
|
|
681
719
|
} | {
|
|
682
720
|
kind: ContentStrategyKind.FINDING;
|
|
683
721
|
fid: string;
|
|
@@ -704,6 +742,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.exten
|
|
|
704
742
|
flowStateId?: string | undefined;
|
|
705
743
|
context?: NotificationContextKind | undefined;
|
|
706
744
|
fid?: string | undefined;
|
|
745
|
+
actions?: NotificationActionKind[] | undefined;
|
|
707
746
|
agentId?: string | undefined;
|
|
708
747
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
709
748
|
}>;
|
|
@@ -747,6 +786,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
747
786
|
flowContext?: Record<string, any> | undefined;
|
|
748
787
|
}>, z.ZodObject<{
|
|
749
788
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
789
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
750
790
|
templateId: z.ZodString;
|
|
751
791
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
752
792
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -755,11 +795,13 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
755
795
|
context: Record<string, string>;
|
|
756
796
|
templateId: string;
|
|
757
797
|
flowContext?: Record<string, any> | undefined;
|
|
798
|
+
templateType?: string | undefined;
|
|
758
799
|
}, {
|
|
759
800
|
kind: ContentStrategyKind.TEMPLATE;
|
|
760
801
|
context: Record<string, string>;
|
|
761
802
|
templateId: string;
|
|
762
803
|
flowContext?: Record<string, any> | undefined;
|
|
804
|
+
templateType?: string | undefined;
|
|
763
805
|
}>, z.ZodObject<{
|
|
764
806
|
kind: z.ZodLiteral<ContentStrategyKind.CUSTOM_CONTENT>;
|
|
765
807
|
content: z.ZodString;
|
|
@@ -782,6 +824,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
782
824
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
783
825
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
784
826
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
827
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
785
828
|
}>, {
|
|
786
829
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
787
830
|
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -836,6 +879,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
836
879
|
context: Record<string, string>;
|
|
837
880
|
templateId: string;
|
|
838
881
|
flowContext?: Record<string, any> | undefined;
|
|
882
|
+
templateType?: string | undefined;
|
|
839
883
|
} | {
|
|
840
884
|
kind: ContentStrategyKind.FINDING;
|
|
841
885
|
fid: string;
|
|
@@ -865,6 +909,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
865
909
|
flowStateId?: string | undefined;
|
|
866
910
|
context?: NotificationContextKind | undefined;
|
|
867
911
|
fid?: string | undefined;
|
|
912
|
+
actions?: NotificationActionKind[] | undefined;
|
|
868
913
|
agentId?: string | undefined;
|
|
869
914
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
870
915
|
}, {
|
|
@@ -880,6 +925,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
880
925
|
context: Record<string, string>;
|
|
881
926
|
templateId: string;
|
|
882
927
|
flowContext?: Record<string, any> | undefined;
|
|
928
|
+
templateType?: string | undefined;
|
|
883
929
|
} | {
|
|
884
930
|
kind: ContentStrategyKind.FINDING;
|
|
885
931
|
fid: string;
|
|
@@ -909,6 +955,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
909
955
|
flowStateId?: string | undefined;
|
|
910
956
|
context?: NotificationContextKind | undefined;
|
|
911
957
|
fid?: string | undefined;
|
|
958
|
+
actions?: NotificationActionKind[] | undefined;
|
|
912
959
|
agentId?: string | undefined;
|
|
913
960
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
914
961
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -950,6 +997,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
950
997
|
flowContext?: Record<string, any> | undefined;
|
|
951
998
|
}>, z.ZodObject<{
|
|
952
999
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
1000
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
953
1001
|
templateId: z.ZodString;
|
|
954
1002
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
955
1003
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -958,11 +1006,13 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
958
1006
|
context: Record<string, string>;
|
|
959
1007
|
templateId: string;
|
|
960
1008
|
flowContext?: Record<string, any> | undefined;
|
|
1009
|
+
templateType?: string | undefined;
|
|
961
1010
|
}, {
|
|
962
1011
|
kind: ContentStrategyKind.TEMPLATE;
|
|
963
1012
|
context: Record<string, string>;
|
|
964
1013
|
templateId: string;
|
|
965
1014
|
flowContext?: Record<string, any> | undefined;
|
|
1015
|
+
templateType?: string | undefined;
|
|
966
1016
|
}>, z.ZodObject<{
|
|
967
1017
|
kind: z.ZodLiteral<ContentStrategyKind.CUSTOM_CONTENT>;
|
|
968
1018
|
content: z.ZodString;
|
|
@@ -985,6 +1035,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
985
1035
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
986
1036
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
987
1037
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1038
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
988
1039
|
}>, {
|
|
989
1040
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
990
1041
|
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1024,6 +1075,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
1024
1075
|
context: Record<string, string>;
|
|
1025
1076
|
templateId: string;
|
|
1026
1077
|
flowContext?: Record<string, any> | undefined;
|
|
1078
|
+
templateType?: string | undefined;
|
|
1027
1079
|
} | {
|
|
1028
1080
|
kind: ContentStrategyKind.FINDING;
|
|
1029
1081
|
fid: string;
|
|
@@ -1050,6 +1102,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
1050
1102
|
flowStateId?: string | undefined;
|
|
1051
1103
|
context?: NotificationContextKind | undefined;
|
|
1052
1104
|
fid?: string | undefined;
|
|
1105
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1053
1106
|
agentId?: string | undefined;
|
|
1054
1107
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1055
1108
|
}, {
|
|
@@ -1065,6 +1118,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
1065
1118
|
context: Record<string, string>;
|
|
1066
1119
|
templateId: string;
|
|
1067
1120
|
flowContext?: Record<string, any> | undefined;
|
|
1121
|
+
templateType?: string | undefined;
|
|
1068
1122
|
} | {
|
|
1069
1123
|
kind: ContentStrategyKind.FINDING;
|
|
1070
1124
|
fid: string;
|
|
@@ -1091,6 +1145,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
1091
1145
|
flowStateId?: string | undefined;
|
|
1092
1146
|
context?: NotificationContextKind | undefined;
|
|
1093
1147
|
fid?: string | undefined;
|
|
1148
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1094
1149
|
agentId?: string | undefined;
|
|
1095
1150
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1096
1151
|
}>]>;
|
|
@@ -1134,6 +1189,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1134
1189
|
flowContext?: Record<string, any> | undefined;
|
|
1135
1190
|
}>, z.ZodObject<{
|
|
1136
1191
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
1192
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
1137
1193
|
templateId: z.ZodString;
|
|
1138
1194
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1139
1195
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1142,11 +1198,13 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1142
1198
|
context: Record<string, string>;
|
|
1143
1199
|
templateId: string;
|
|
1144
1200
|
flowContext?: Record<string, any> | undefined;
|
|
1201
|
+
templateType?: string | undefined;
|
|
1145
1202
|
}, {
|
|
1146
1203
|
kind: ContentStrategyKind.TEMPLATE;
|
|
1147
1204
|
context: Record<string, string>;
|
|
1148
1205
|
templateId: string;
|
|
1149
1206
|
flowContext?: Record<string, any> | undefined;
|
|
1207
|
+
templateType?: string | undefined;
|
|
1150
1208
|
}>, z.ZodObject<{
|
|
1151
1209
|
kind: z.ZodLiteral<ContentStrategyKind.CUSTOM_CONTENT>;
|
|
1152
1210
|
content: z.ZodString;
|
|
@@ -1169,6 +1227,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1169
1227
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1170
1228
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1171
1229
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1230
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
1172
1231
|
}>, {
|
|
1173
1232
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
1174
1233
|
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1223,6 +1282,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1223
1282
|
context: Record<string, string>;
|
|
1224
1283
|
templateId: string;
|
|
1225
1284
|
flowContext?: Record<string, any> | undefined;
|
|
1285
|
+
templateType?: string | undefined;
|
|
1226
1286
|
} | {
|
|
1227
1287
|
kind: ContentStrategyKind.FINDING;
|
|
1228
1288
|
fid: string;
|
|
@@ -1252,6 +1312,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1252
1312
|
flowStateId?: string | undefined;
|
|
1253
1313
|
context?: NotificationContextKind | undefined;
|
|
1254
1314
|
fid?: string | undefined;
|
|
1315
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1255
1316
|
agentId?: string | undefined;
|
|
1256
1317
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1257
1318
|
}, {
|
|
@@ -1267,6 +1328,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1267
1328
|
context: Record<string, string>;
|
|
1268
1329
|
templateId: string;
|
|
1269
1330
|
flowContext?: Record<string, any> | undefined;
|
|
1331
|
+
templateType?: string | undefined;
|
|
1270
1332
|
} | {
|
|
1271
1333
|
kind: ContentStrategyKind.FINDING;
|
|
1272
1334
|
fid: string;
|
|
@@ -1296,6 +1358,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1296
1358
|
flowStateId?: string | undefined;
|
|
1297
1359
|
context?: NotificationContextKind | undefined;
|
|
1298
1360
|
fid?: string | undefined;
|
|
1361
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1299
1362
|
agentId?: string | undefined;
|
|
1300
1363
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1301
1364
|
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -1337,6 +1400,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1337
1400
|
flowContext?: Record<string, any> | undefined;
|
|
1338
1401
|
}>, z.ZodObject<{
|
|
1339
1402
|
kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
|
|
1403
|
+
templateType: z.ZodOptional<z.ZodString>;
|
|
1340
1404
|
templateId: z.ZodString;
|
|
1341
1405
|
context: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1342
1406
|
flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
@@ -1345,11 +1409,13 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1345
1409
|
context: Record<string, string>;
|
|
1346
1410
|
templateId: string;
|
|
1347
1411
|
flowContext?: Record<string, any> | undefined;
|
|
1412
|
+
templateType?: string | undefined;
|
|
1348
1413
|
}, {
|
|
1349
1414
|
kind: ContentStrategyKind.TEMPLATE;
|
|
1350
1415
|
context: Record<string, string>;
|
|
1351
1416
|
templateId: string;
|
|
1352
1417
|
flowContext?: Record<string, any> | undefined;
|
|
1418
|
+
templateType?: string | undefined;
|
|
1353
1419
|
}>, z.ZodObject<{
|
|
1354
1420
|
kind: z.ZodLiteral<ContentStrategyKind.CUSTOM_CONTENT>;
|
|
1355
1421
|
content: z.ZodString;
|
|
@@ -1372,6 +1438,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1372
1438
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1373
1439
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1374
1440
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1441
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
1375
1442
|
}>, {
|
|
1376
1443
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
1377
1444
|
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1411,6 +1478,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1411
1478
|
context: Record<string, string>;
|
|
1412
1479
|
templateId: string;
|
|
1413
1480
|
flowContext?: Record<string, any> | undefined;
|
|
1481
|
+
templateType?: string | undefined;
|
|
1414
1482
|
} | {
|
|
1415
1483
|
kind: ContentStrategyKind.FINDING;
|
|
1416
1484
|
fid: string;
|
|
@@ -1437,6 +1505,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1437
1505
|
flowStateId?: string | undefined;
|
|
1438
1506
|
context?: NotificationContextKind | undefined;
|
|
1439
1507
|
fid?: string | undefined;
|
|
1508
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1440
1509
|
agentId?: string | undefined;
|
|
1441
1510
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1442
1511
|
}, {
|
|
@@ -1452,6 +1521,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1452
1521
|
context: Record<string, string>;
|
|
1453
1522
|
templateId: string;
|
|
1454
1523
|
flowContext?: Record<string, any> | undefined;
|
|
1524
|
+
templateType?: string | undefined;
|
|
1455
1525
|
} | {
|
|
1456
1526
|
kind: ContentStrategyKind.FINDING;
|
|
1457
1527
|
fid: string;
|
|
@@ -1478,6 +1548,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1478
1548
|
flowStateId?: string | undefined;
|
|
1479
1549
|
context?: NotificationContextKind | undefined;
|
|
1480
1550
|
fid?: string | undefined;
|
|
1551
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1481
1552
|
agentId?: string | undefined;
|
|
1482
1553
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1483
1554
|
}>]>, z.ZodObject<{
|
|
@@ -1540,6 +1611,7 @@ export declare const _CreateNotificationDto: z.ZodObject<z.objectUtil.extendShap
|
|
|
1540
1611
|
faid: z.ZodOptional<z.ZodString>;
|
|
1541
1612
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1542
1613
|
includeFinding: z.ZodOptional<z.ZodBoolean>;
|
|
1614
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationActionKind>, "many">>;
|
|
1543
1615
|
}>, "strip", z.ZodTypeAny, {
|
|
1544
1616
|
options: {
|
|
1545
1617
|
copySecOpsTeam?: boolean | undefined;
|
|
@@ -1560,6 +1632,7 @@ export declare const _CreateNotificationDto: z.ZodObject<z.objectUtil.extendShap
|
|
|
1560
1632
|
flowStateId?: string | undefined;
|
|
1561
1633
|
context?: NotificationContextKind | undefined;
|
|
1562
1634
|
fid?: string | undefined;
|
|
1635
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1563
1636
|
agentId?: string | undefined;
|
|
1564
1637
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1565
1638
|
test?: boolean | undefined;
|
|
@@ -1585,6 +1658,7 @@ export declare const _CreateNotificationDto: z.ZodObject<z.objectUtil.extendShap
|
|
|
1585
1658
|
flowStateId?: string | undefined;
|
|
1586
1659
|
context?: NotificationContextKind | undefined;
|
|
1587
1660
|
fid?: string | undefined;
|
|
1661
|
+
actions?: NotificationActionKind[] | undefined;
|
|
1588
1662
|
agentId?: string | undefined;
|
|
1589
1663
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1590
1664
|
test?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._CreateNotificationDto = exports._NotificationDto = exports._NotificationUpsertDto = exports._EmailNotificationUpsertDto = exports._SlackNotificationUpsertDto = exports._BaseNotificationUpsertDto = exports._EmailDeliveryStrategy = exports._SlackDeliveryStrategy = exports._CustomContentStrategy = exports._FindingContentStrategy = exports._TemplateContentStrategy = exports._RawContentStrategy = exports._FlowContext = exports._NotificationAddress = exports.DeliveryModeKind = exports.DeliveryStrategyKind = exports.ContentStrategyKind = exports.NotificationContextKind = exports.NotificationStatus = void 0;
|
|
3
|
+
exports._CreateNotificationDto = exports._NotificationDto = exports._NotificationUpsertDto = exports._EmailNotificationUpsertDto = exports._SlackNotificationUpsertDto = exports._BaseNotificationUpsertDto = exports._EmailDeliveryStrategy = exports._SlackDeliveryStrategy = exports._CustomContentStrategy = exports._FindingContentStrategy = exports._TemplateContentStrategy = exports._RawContentStrategy = exports._FlowContext = exports._NotificationAddress = exports.DeliveryModeKind = exports.DeliveryStrategyKind = exports.ContentStrategyKind = exports.NotificationActionKind = exports.NotificationContextKind = exports.NotificationStatus = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
6
|
var NotificationStatus;
|
|
@@ -12,11 +12,28 @@ var NotificationStatus;
|
|
|
12
12
|
})(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
|
|
13
13
|
var NotificationContextKind;
|
|
14
14
|
(function (NotificationContextKind) {
|
|
15
|
+
NotificationContextKind["WELCOME"] = "WELCOME";
|
|
16
|
+
// @deprecated use STANDARD_ENGAGEMENT | DIRECT_MESSAGE | TRIAGE instead
|
|
15
17
|
NotificationContextKind["ROOT"] = "ROOT";
|
|
18
|
+
NotificationContextKind["STANDARD_ENGAGEMENT"] = "STANDARD_ENGAGEMENT";
|
|
19
|
+
NotificationContextKind["DIRECT_MESSAGE"] = "DIRECT_MESSAGE";
|
|
20
|
+
NotificationContextKind["TRIAGE"] = "TRIAGE";
|
|
21
|
+
// @deprecated use STANDARD_REMINDER | SCHEDULE_RESOLUTION_REMINDER instead
|
|
16
22
|
NotificationContextKind["REMINDER"] = "REMINDER";
|
|
23
|
+
NotificationContextKind["STANDARD_REMINDER"] = "STANDARD_REMINDER";
|
|
24
|
+
NotificationContextKind["SCHEDULE_RESOLUTION_REMINDER"] = "SCHEDULE_RESOLUTION_REMINDER";
|
|
17
25
|
NotificationContextKind["PENDING_VERIFICATION_ACK"] = "PENDING_VERIFICATION_ACK";
|
|
18
26
|
NotificationContextKind["RESOLVED_ACK"] = "RESOLVED_ACK";
|
|
19
27
|
})(NotificationContextKind || (exports.NotificationContextKind = NotificationContextKind = {}));
|
|
28
|
+
var NotificationActionKind;
|
|
29
|
+
(function (NotificationActionKind) {
|
|
30
|
+
NotificationActionKind["VIEW_DETAILS"] = "VIEW_DETAILS";
|
|
31
|
+
NotificationActionKind["GET_INSTRUCTIONS"] = "GET_INSTRUCTIONS";
|
|
32
|
+
NotificationActionKind["MARK_COMPLETE"] = "MARK_COMPLETE";
|
|
33
|
+
NotificationActionKind["RESOLVE_NOW"] = "RESOLVE_NOW";
|
|
34
|
+
NotificationActionKind["TRIAGE"] = "TRIAGE";
|
|
35
|
+
NotificationActionKind["SCHEDULE_RESOLUTION"] = "SCHEDULE_RESOLUTION";
|
|
36
|
+
})(NotificationActionKind || (exports.NotificationActionKind = NotificationActionKind = {}));
|
|
20
37
|
var ContentStrategyKind;
|
|
21
38
|
(function (ContentStrategyKind) {
|
|
22
39
|
ContentStrategyKind["RAW"] = "RAW";
|
|
@@ -27,8 +44,6 @@ var ContentStrategyKind;
|
|
|
27
44
|
var DeliveryStrategyKind;
|
|
28
45
|
(function (DeliveryStrategyKind) {
|
|
29
46
|
DeliveryStrategyKind["EMAIL"] = "EMAIL";
|
|
30
|
-
/** @deprecated Use SLACK Instead */
|
|
31
|
-
DeliveryStrategyKind["MESSAGING"] = "MESSAGING";
|
|
32
47
|
DeliveryStrategyKind["SLACK"] = "SLACK";
|
|
33
48
|
})(DeliveryStrategyKind || (exports.DeliveryStrategyKind = DeliveryStrategyKind = {}));
|
|
34
49
|
var DeliveryModeKind;
|
|
@@ -57,6 +72,7 @@ exports._RawContentStrategy = zod_1.z.object({
|
|
|
57
72
|
});
|
|
58
73
|
exports._TemplateContentStrategy = zod_1.z.object({
|
|
59
74
|
kind: zod_1.z.literal(ContentStrategyKind.TEMPLATE),
|
|
75
|
+
templateType: zod_1.z.string().optional(),
|
|
60
76
|
templateId: zod_1.z.string(),
|
|
61
77
|
context: zod_1.z.record(zod_1.z.string()),
|
|
62
78
|
flowContext: exports._FlowContext.optional(),
|
|
@@ -100,6 +116,7 @@ exports._BaseNotificationUpsertDto = base_dto_1._BaseUpsertDto.merge(zod_1.z.obj
|
|
|
100
116
|
flowStateId: zod_1.z.string().optional(),
|
|
101
117
|
context: zod_1.z.nativeEnum(NotificationContextKind).optional(),
|
|
102
118
|
deliveryMode: zod_1.z.nativeEnum(DeliveryModeKind).optional(),
|
|
119
|
+
actions: zod_1.z.array(zod_1.z.nativeEnum(NotificationActionKind)).optional(),
|
|
103
120
|
}));
|
|
104
121
|
exports._SlackNotificationUpsertDto = exports._BaseNotificationUpsertDto.merge(zod_1.z.object({
|
|
105
122
|
deliveryChannel: zod_1.z.literal(DeliveryStrategyKind.SLACK),
|
|
@@ -128,5 +145,6 @@ exports._CreateNotificationDto = base_dto_1._BaseUpsertDto.merge(zod_1.z.object(
|
|
|
128
145
|
faid: zod_1.z.string().optional(),
|
|
129
146
|
agentId: zod_1.z.string().optional(),
|
|
130
147
|
includeFinding: zod_1.z.boolean().optional(),
|
|
148
|
+
actions: zod_1.z.array(zod_1.z.nativeEnum(NotificationActionKind)).optional(),
|
|
131
149
|
}));
|
|
132
150
|
//# sourceMappingURL=notification.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.dto.js","sourceRoot":"","sources":["../../../src/dto/notification.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAA6D;AAE7D,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"notification.dto.js","sourceRoot":"","sources":["../../../src/dto/notification.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAA6D;AAE7D,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAY,uBAaX;AAbD,WAAY,uBAAuB;IACjC,8CAAmB,CAAA;IACnB,wEAAwE;IACxE,wCAAa,CAAA;IACb,sEAA2C,CAAA;IAC3C,4DAAiC,CAAA;IACjC,4CAAiB,CAAA;IACjB,2EAA2E;IAC3E,gDAAqB,CAAA;IACrB,kEAAuC,CAAA;IACvC,wFAA6D,CAAA;IAC7D,gFAAqD,CAAA;IACrD,wDAA6B,CAAA;AAC/B,CAAC,EAbW,uBAAuB,uCAAvB,uBAAuB,QAalC;AAED,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,uDAA6B,CAAA;IAC7B,+DAAqC,CAAA;IACrC,yDAA+B,CAAA;IAC/B,qDAA2B,CAAA;IAC3B,2CAAiB,CAAA;IACjB,qEAA2C,CAAA;AAC7C,CAAC,EAPW,s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B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAC3C,OAAO,EAAE,2BAAmB;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC;QAChB,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KACvC,CAAC;IACF,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC,QAAQ,EAAE;IACzD,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IACvD,uEAAuE;IACvE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,QAAQ,EAAE;CAClE,CAAC,CACH,CAAC"}
|
package/build/src/settings.d.ts
CHANGED
|
@@ -149,6 +149,8 @@ export declare const AMP_SETTINGS: {
|
|
|
149
149
|
CARBONBLACK_VULN_LOW_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
150
150
|
};
|
|
151
151
|
sentinelone: {
|
|
152
|
+
/** Used to calculate `active` status. */
|
|
153
|
+
SENTINELONE_ACTIVE_LAST_ACTIVITY_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
152
154
|
SENTINELONE_VULN_CRIT_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
153
155
|
SENTINELONE_VULN_HIGH_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
|
154
156
|
SENTINELONE_VULN_MEDIUM_DEADLINE_THRESHOLD: import("./services").TypedAmpSettingsKey<string>;
|
package/build/src/settings.js
CHANGED
|
@@ -135,6 +135,8 @@ const CARBONBLACK_SETTINGS = {
|
|
|
135
135
|
CARBONBLACK_VULN_LOW_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('carbonblack.vuln.low.deadline', '180 day'),
|
|
136
136
|
};
|
|
137
137
|
const SENTINELONE_SETTINGS = {
|
|
138
|
+
/** Used to calculate `active` status. */
|
|
139
|
+
SENTINELONE_ACTIVE_LAST_ACTIVITY_THRESHOLD: services_1.AmpSettingsMap.asKey('sentinelone.active.lastActivity.threshold', '14 day'),
|
|
138
140
|
SENTINELONE_VULN_CRIT_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('sentinelone.vuln.crit.deadline', '13 day'),
|
|
139
141
|
SENTINELONE_VULN_HIGH_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('sentinelone.vuln.high.deadline', '30 day'),
|
|
140
142
|
SENTINELONE_VULN_MEDIUM_DEADLINE_THRESHOLD: services_1.AmpSettingsMap.asKey('sentinelone.vuln.medium.deadline', '90 day'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/settings.ts"],"names":[],"mappings":";;;AACA,yCAA0C;AAE1C;;2BAE2B;AAC3B;;;;GAIG;AACH,MAAM,eAAe,GAAG;IACtB,kBAAkB;IAClB,UAAU,EAAE,yBAAc,CAAC,KAAK,CAAU,iCAAiC,EAAE,IAAI,CAAC;IAClF,oEAAoE;IACpE,qBAAqB,EAAE,yBAAc,CAAC,KAAK,CAAU,uBAAuB,EAAE,IAAI,CAAC;IACnF,4CAA4C;IAC5C,YAAY,EAAE,yBAAc,CAAC,KAAK,CAAU,eAAe,EAAE,KAA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AqC,EAAE,yBAAc,CAAC,KAAK,CAAS,6BAA6B,EAAE,QAAQ,CAAC;IAC5G,kCAAkC,EAAE,yBAAc,CAAC,KAAK,CAAS,0BAA0B,EAAE,SAAS,CAAC;CACxG,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACU,QAAA,YAAY,GAAG;IAC1B;;;;OAIG;IACH,MAAM,EAAE;QACN,GAAG,eAAe;QAClB,4EAA4E;QAC5E,iCAAiC,EAAE,yBAAc,CAAC,KAAK,CAAkC,kCAAkC,CAAC;KAC7H;IACD;;;OAGG;IACH,iBAAiB,EAAE;QACjB,GAAG,iCAAiC;KACrC;IACD;;0BAEsB;IACtB,WAAW,EAAE,EAAC,GAAG,oBAAoB,EAAC;IACtC,MAAM,EAAE,EAAC,GAAG,eAAe,EAAC;IAC5B,IAAI,EAAE,EAAC,GAAG,aAAa,EAAC;IACxB,QAAQ,EAAE,EAAC,GAAG,iBAAiB,EAAC;IAChC,KAAK,EAAE,EAAC,GAAG,cAAc,EAAC;IAC1B,OAAO,EAAE,EAAC,GAAG,gBAAgB,EAAC;IAC9B,OAAO,EAAE,EAAC,GAAG,gBAAgB,EAAC;IAC9B,MAAM,EAAE,EAAC,GAAG,eAAe,EAAC;IAC5B,MAAM,EAAE,EAAC,GAAG,eAAe,EAAC;IAC5B,WAAW,EAAE,EAAC,GAAG,oBAAoB,EAAC;IACtC,WAAW,EAAE,EAAC,GAAG,oBAAoB,EAAC;IACtC,MAAM,EAAE,EAAC,GAAG,eAAe,EAAC;CAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -9,12 +9,29 @@ export enum NotificationStatus {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export enum NotificationContextKind {
|
|
12
|
+
WELCOME = 'WELCOME',
|
|
13
|
+
// @deprecated use STANDARD_ENGAGEMENT | DIRECT_MESSAGE | TRIAGE instead
|
|
12
14
|
ROOT = 'ROOT',
|
|
15
|
+
STANDARD_ENGAGEMENT = 'STANDARD_ENGAGEMENT',
|
|
16
|
+
DIRECT_MESSAGE = 'DIRECT_MESSAGE',
|
|
17
|
+
TRIAGE = 'TRIAGE',
|
|
18
|
+
// @deprecated use STANDARD_REMINDER | SCHEDULE_RESOLUTION_REMINDER instead
|
|
13
19
|
REMINDER = 'REMINDER',
|
|
20
|
+
STANDARD_REMINDER = 'STANDARD_REMINDER',
|
|
21
|
+
SCHEDULE_RESOLUTION_REMINDER = 'SCHEDULE_RESOLUTION_REMINDER',
|
|
14
22
|
PENDING_VERIFICATION_ACK = 'PENDING_VERIFICATION_ACK',
|
|
15
23
|
RESOLVED_ACK = 'RESOLVED_ACK',
|
|
16
24
|
}
|
|
17
25
|
|
|
26
|
+
export enum NotificationActionKind {
|
|
27
|
+
VIEW_DETAILS = 'VIEW_DETAILS',
|
|
28
|
+
GET_INSTRUCTIONS = 'GET_INSTRUCTIONS',
|
|
29
|
+
MARK_COMPLETE = 'MARK_COMPLETE',
|
|
30
|
+
RESOLVE_NOW = 'RESOLVE_NOW',
|
|
31
|
+
TRIAGE = 'TRIAGE',
|
|
32
|
+
SCHEDULE_RESOLUTION = 'SCHEDULE_RESOLUTION',
|
|
33
|
+
}
|
|
34
|
+
|
|
18
35
|
export enum ContentStrategyKind {
|
|
19
36
|
RAW = 'RAW',
|
|
20
37
|
TEMPLATE = 'TEMPLATE',
|
|
@@ -24,8 +41,6 @@ export enum ContentStrategyKind {
|
|
|
24
41
|
|
|
25
42
|
export enum DeliveryStrategyKind {
|
|
26
43
|
EMAIL = 'EMAIL',
|
|
27
|
-
/** @deprecated Use SLACK Instead */
|
|
28
|
-
MESSAGING = 'MESSAGING',
|
|
29
44
|
SLACK = 'SLACK',
|
|
30
45
|
}
|
|
31
46
|
|
|
@@ -59,6 +74,7 @@ export type RawContentStrategy = z.infer<typeof _RawContentStrategy>;
|
|
|
59
74
|
|
|
60
75
|
export const _TemplateContentStrategy = z.object({
|
|
61
76
|
kind: z.literal(ContentStrategyKind.TEMPLATE),
|
|
77
|
+
templateType: z.string().optional(),
|
|
62
78
|
templateId: z.string(),
|
|
63
79
|
context: z.record(z.string()),
|
|
64
80
|
flowContext: _FlowContext.optional(),
|
|
@@ -118,6 +134,7 @@ export const _BaseNotificationUpsertDto = _BaseUpsertDto.merge(
|
|
|
118
134
|
flowStateId: z.string().optional(),
|
|
119
135
|
context: z.nativeEnum(NotificationContextKind).optional(),
|
|
120
136
|
deliveryMode: z.nativeEnum(DeliveryModeKind).optional(),
|
|
137
|
+
actions: z.array(z.nativeEnum(NotificationActionKind)).optional(),
|
|
121
138
|
})
|
|
122
139
|
);
|
|
123
140
|
|
|
@@ -161,6 +178,7 @@ export const _CreateNotificationDto = _BaseUpsertDto.merge(
|
|
|
161
178
|
faid: z.string().optional(),
|
|
162
179
|
agentId: z.string().optional(),
|
|
163
180
|
includeFinding: z.boolean().optional(),
|
|
181
|
+
actions: z.array(z.nativeEnum(NotificationActionKind)).optional(),
|
|
164
182
|
})
|
|
165
183
|
);
|
|
166
184
|
export type CreateNotificationDto = z.infer<typeof _CreateNotificationDto>;
|
package/src/settings.ts
CHANGED
|
@@ -149,6 +149,8 @@ const CARBONBLACK_SETTINGS = {
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
const SENTINELONE_SETTINGS = {
|
|
152
|
+
/** Used to calculate `active` status. */
|
|
153
|
+
SENTINELONE_ACTIVE_LAST_ACTIVITY_THRESHOLD: AmpSettingsMap.asKey<string>('sentinelone.active.lastActivity.threshold', '14 day'),
|
|
152
154
|
SENTINELONE_VULN_CRIT_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('sentinelone.vuln.crit.deadline', '13 day'),
|
|
153
155
|
SENTINELONE_VULN_HIGH_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('sentinelone.vuln.high.deadline', '30 day'),
|
|
154
156
|
SENTINELONE_VULN_MEDIUM_DEADLINE_THRESHOLD: AmpSettingsMap.asKey<string>('sentinelone.vuln.medium.deadline', '90 day'),
|