@ampsec/platform-client 69.3.0 → 69.5.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/actionExecution.dto.d.ts +5 -5
- package/build/src/dto/flows.dto.d.ts +15 -6
- package/build/src/dto/flows.dto.js +9 -8
- package/build/src/dto/flows.dto.js.map +1 -1
- package/build/src/dto/notification.dto.d.ts +82 -0
- package/build/src/dto/notification.dto.js +19 -1
- package/build/src/dto/notification.dto.js.map +1 -1
- package/build/src/dto/platform/platform.actionExecution.dto.d.ts +6 -6
- package/build/src/dto/platform/platform.flows.dto.d.ts +6 -0
- package/build/src/services/engagements.service.d.ts +3 -0
- package/build/src/services/engagements.service.js +1 -0
- package/build/src/services/engagements.service.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/flows.dto.ts +8 -7
- package/src/dto/notification.dto.ts +18 -0
- package/src/services/engagements.service.ts +1 -0
|
@@ -24,8 +24,8 @@ export declare const _ActionExecutionDto: z.ZodObject<{
|
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
26
|
deletedAt: string | null;
|
|
27
|
-
actionSpecId: string;
|
|
28
27
|
flowStateId: string | null;
|
|
28
|
+
actionSpecId: string;
|
|
29
29
|
executionTime: string | null;
|
|
30
30
|
executionDuration: number | null;
|
|
31
31
|
input?: unknown;
|
|
@@ -37,8 +37,8 @@ export declare const _ActionExecutionDto: z.ZodObject<{
|
|
|
37
37
|
createdAt: string;
|
|
38
38
|
updatedAt: string;
|
|
39
39
|
deletedAt: string | null;
|
|
40
|
-
actionSpecId: string;
|
|
41
40
|
flowStateId: string | null;
|
|
41
|
+
actionSpecId: string;
|
|
42
42
|
executionTime: string | null;
|
|
43
43
|
executionDuration: number | null;
|
|
44
44
|
input?: unknown;
|
|
@@ -53,16 +53,16 @@ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
|
|
|
53
53
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
54
54
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
55
55
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
-
actionSpecId: z.ZodString;
|
|
57
56
|
flowStateId: z.ZodNullable<z.ZodString>;
|
|
57
|
+
actionSpecId: z.ZodString;
|
|
58
58
|
output: z.ZodUnknown;
|
|
59
59
|
executionTime: z.ZodNullable<z.ZodString>;
|
|
60
60
|
executionDuration: z.ZodNullable<z.ZodNumber>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
62
|
status: ActionExecutionStatus;
|
|
63
63
|
tid: string;
|
|
64
|
-
actionSpecId: string;
|
|
65
64
|
flowStateId: string | null;
|
|
65
|
+
actionSpecId: string;
|
|
66
66
|
executionTime: string | null;
|
|
67
67
|
executionDuration: number | null;
|
|
68
68
|
input?: unknown;
|
|
@@ -74,8 +74,8 @@ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
|
|
|
74
74
|
}, {
|
|
75
75
|
status: ActionExecutionStatus;
|
|
76
76
|
tid: string;
|
|
77
|
-
actionSpecId: string;
|
|
78
77
|
flowStateId: string | null;
|
|
78
|
+
actionSpecId: string;
|
|
79
79
|
executionTime: string | null;
|
|
80
80
|
executionDuration: number | null;
|
|
81
81
|
input?: unknown;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { FindingStatus } from './enums';
|
|
3
|
+
export declare enum FlowSpecStatusKind {
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
PAUSED = "PAUSED",
|
|
6
|
+
ERROR = "ERROR",
|
|
7
|
+
GHOST = "GHOST"
|
|
8
|
+
}
|
|
3
9
|
export declare const _FlowTriggerEventDto: z.ZodObject<{
|
|
4
10
|
kind: z.ZodString;
|
|
5
11
|
tid: z.ZodString;
|
|
@@ -210,6 +216,7 @@ export declare const _FlowStateDto: z.ZodObject<{
|
|
|
210
216
|
uid: z.ZodOptional<z.ZodString>;
|
|
211
217
|
fid: z.ZodOptional<z.ZodString>;
|
|
212
218
|
status: z.ZodEnum<["RUNNING", "ERROR", "SUCCESS", "CANCELLED", "EXPIRED"]>;
|
|
219
|
+
specStatus: z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>;
|
|
213
220
|
nodeName: z.ZodString;
|
|
214
221
|
totalSteps: z.ZodNumber;
|
|
215
222
|
currentStep: z.ZodNumber;
|
|
@@ -367,6 +374,7 @@ export declare const _FlowStateDto: z.ZodObject<{
|
|
|
367
374
|
specId?: string | undefined;
|
|
368
375
|
uid?: string | undefined;
|
|
369
376
|
fid?: string | undefined;
|
|
377
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
370
378
|
}, {
|
|
371
379
|
status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
|
|
372
380
|
id: string;
|
|
@@ -403,6 +411,7 @@ export declare const _FlowStateDto: z.ZodObject<{
|
|
|
403
411
|
specId?: string | undefined;
|
|
404
412
|
uid?: string | undefined;
|
|
405
413
|
fid?: string | undefined;
|
|
414
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
406
415
|
}>;
|
|
407
416
|
export type FlowStateDto = z.infer<typeof _FlowStateDto>;
|
|
408
417
|
export declare const _FlowStateUpsertDto: z.ZodObject<{
|
|
@@ -411,6 +420,7 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
|
|
|
411
420
|
fid: z.ZodOptional<z.ZodString>;
|
|
412
421
|
nodeName: z.ZodString;
|
|
413
422
|
specId: z.ZodOptional<z.ZodString>;
|
|
423
|
+
specStatus: z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>;
|
|
414
424
|
totalSteps: z.ZodNumber;
|
|
415
425
|
currentStep: z.ZodNumber;
|
|
416
426
|
endTime: z.ZodNullable<z.ZodString>;
|
|
@@ -567,6 +577,7 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
|
|
|
567
577
|
uid?: string | undefined;
|
|
568
578
|
fid?: string | undefined;
|
|
569
579
|
specId?: string | undefined;
|
|
580
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
570
581
|
id?: string | undefined;
|
|
571
582
|
createdAt?: string | undefined;
|
|
572
583
|
updatedAt?: string | undefined;
|
|
@@ -603,6 +614,7 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
|
|
|
603
614
|
uid?: string | undefined;
|
|
604
615
|
fid?: string | undefined;
|
|
605
616
|
specId?: string | undefined;
|
|
617
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
606
618
|
id?: string | undefined;
|
|
607
619
|
createdAt?: string | undefined;
|
|
608
620
|
updatedAt?: string | undefined;
|
|
@@ -621,6 +633,7 @@ export declare const _FlowStateFilter: z.ZodObject<{
|
|
|
621
633
|
fid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
622
634
|
nodeName: z.ZodOptional<z.ZodString>;
|
|
623
635
|
specId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
636
|
+
specStatus: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>>;
|
|
624
637
|
totalSteps: z.ZodOptional<z.ZodNumber>;
|
|
625
638
|
currentStep: z.ZodOptional<z.ZodNumber>;
|
|
626
639
|
endTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -637,6 +650,7 @@ export declare const _FlowStateFilter: z.ZodObject<{
|
|
|
637
650
|
fid?: string | undefined;
|
|
638
651
|
nodeName?: string | undefined;
|
|
639
652
|
specId?: string | undefined;
|
|
653
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
640
654
|
totalSteps?: number | undefined;
|
|
641
655
|
currentStep?: number | undefined;
|
|
642
656
|
endTime?: string | null | undefined;
|
|
@@ -653,6 +667,7 @@ export declare const _FlowStateFilter: z.ZodObject<{
|
|
|
653
667
|
fid?: string | undefined;
|
|
654
668
|
nodeName?: string | undefined;
|
|
655
669
|
specId?: string | undefined;
|
|
670
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
656
671
|
totalSteps?: number | undefined;
|
|
657
672
|
currentStep?: number | undefined;
|
|
658
673
|
endTime?: string | null | undefined;
|
|
@@ -670,12 +685,6 @@ export declare const _FlowSpecCreateDto: z.ZodObject<{
|
|
|
670
685
|
description: string;
|
|
671
686
|
}>;
|
|
672
687
|
export type FlowSpecCreateDto = z.infer<typeof _FlowSpecCreateDto>;
|
|
673
|
-
export declare enum FlowSpecStatusKind {
|
|
674
|
-
ACTIVE = "ACTIVE",
|
|
675
|
-
PAUSED = "PAUSED",
|
|
676
|
-
ERROR = "ERROR",
|
|
677
|
-
GHOST = "GHOST"
|
|
678
|
-
}
|
|
679
688
|
declare const _FlowTrigger: z.ZodObject<{
|
|
680
689
|
id: z.ZodString;
|
|
681
690
|
displayValue: z.ZodString;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._FlowSpecFilter = exports._FlowSpecUpsertDto = exports._FlowSpecDto = exports._FlowRewardsConfig = exports._FlowActions = exports._FlowInterval = exports._AmplifierCohortDto = exports.CohortKind = exports.
|
|
3
|
+
exports._FlowSpecFilter = exports._FlowSpecUpsertDto = exports._FlowSpecDto = exports._FlowRewardsConfig = exports._FlowActions = exports._FlowInterval = exports._AmplifierCohortDto = exports.CohortKind = exports._FlowSpecCreateDto = exports._FlowStateFilter = exports._FlowStateUpsertDto = exports._FlowStateDto = exports._FlowStateStatusDto = exports._FlowHistoryEntry = exports._FlowSystemEventDto = exports._FlowTriggerEventDto = exports.FlowSpecStatusKind = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
6
|
const FilterCriteria_1 = require("../FilterCriteria");
|
|
7
7
|
const enums_1 = require("./enums");
|
|
8
|
+
var FlowSpecStatusKind;
|
|
9
|
+
(function (FlowSpecStatusKind) {
|
|
10
|
+
FlowSpecStatusKind["ACTIVE"] = "ACTIVE";
|
|
11
|
+
FlowSpecStatusKind["PAUSED"] = "PAUSED";
|
|
12
|
+
FlowSpecStatusKind["ERROR"] = "ERROR";
|
|
13
|
+
FlowSpecStatusKind["GHOST"] = "GHOST";
|
|
14
|
+
})(FlowSpecStatusKind || (exports.FlowSpecStatusKind = FlowSpecStatusKind = {}));
|
|
8
15
|
/*
|
|
9
16
|
* /============================\
|
|
10
17
|
* | Events + History |
|
|
@@ -54,6 +61,7 @@ exports._FlowStateDto = base_dto_1._BaseDto.extend({
|
|
|
54
61
|
uid: zod_1.z.string().optional(),
|
|
55
62
|
fid: zod_1.z.string().optional(),
|
|
56
63
|
status: exports._FlowStateStatusDto,
|
|
64
|
+
specStatus: zod_1.z.nativeEnum(FlowSpecStatusKind).optional(),
|
|
57
65
|
nodeName: zod_1.z.string(),
|
|
58
66
|
totalSteps: zod_1.z.number(),
|
|
59
67
|
currentStep: zod_1.z.number(),
|
|
@@ -71,13 +79,6 @@ exports._FlowSpecCreateDto = zod_1.z.object({
|
|
|
71
79
|
name: zod_1.z.string(),
|
|
72
80
|
description: zod_1.z.string(),
|
|
73
81
|
});
|
|
74
|
-
var FlowSpecStatusKind;
|
|
75
|
-
(function (FlowSpecStatusKind) {
|
|
76
|
-
FlowSpecStatusKind["ACTIVE"] = "ACTIVE";
|
|
77
|
-
FlowSpecStatusKind["PAUSED"] = "PAUSED";
|
|
78
|
-
FlowSpecStatusKind["ERROR"] = "ERROR";
|
|
79
|
-
FlowSpecStatusKind["GHOST"] = "GHOST";
|
|
80
|
-
})(FlowSpecStatusKind || (exports.FlowSpecStatusKind = FlowSpecStatusKind = {}));
|
|
81
82
|
const _FlowTrigger = zod_1.z.object({
|
|
82
83
|
id: zod_1.z.string(),
|
|
83
84
|
displayValue: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.dto.js","sourceRoot":"","sources":["../../../src/dto/flows.dto.ts"],"names":[],"mappings":";;;AAAA,6BA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I,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC,KAAK,CAAC,yBAAc,CAAC,CAAC;AAG/E,QAAA,eAAe,GAAG,oBAAY,CAAC,IAAI,CAAC,EAAC,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,kCAAiB,CAAC,CAAC,KAAK,CAAC,4BAAW,CAAC,CAAC"}
|
|
@@ -6,6 +6,12 @@ export declare enum NotificationStatus {
|
|
|
6
6
|
READ = "READ",
|
|
7
7
|
SENT = "SENT"
|
|
8
8
|
}
|
|
9
|
+
export declare enum NotificationContextKind {
|
|
10
|
+
ROOT = "ROOT",
|
|
11
|
+
REMINDER = "REMINDER",
|
|
12
|
+
PENDING_VERIFICATION_ACK = "PENDING_VERIFICATION_ACK",
|
|
13
|
+
RESOLVED_ACK = "RESOLVED_ACK"
|
|
14
|
+
}
|
|
9
15
|
export declare enum ContentStrategyKind {
|
|
10
16
|
RAW = "RAW",
|
|
11
17
|
TEMPLATE = "TEMPLATE",
|
|
@@ -18,6 +24,10 @@ export declare enum DeliveryStrategyKind {
|
|
|
18
24
|
MESSAGING = "MESSAGING",
|
|
19
25
|
SLACK = "SLACK"
|
|
20
26
|
}
|
|
27
|
+
export declare enum DeliveryModeKind {
|
|
28
|
+
ACTIVE = "ACTIVE",
|
|
29
|
+
GHOST = "GHOST"
|
|
30
|
+
}
|
|
21
31
|
export declare const _NotificationAddress: z.ZodObject<{
|
|
22
32
|
cid: z.ZodOptional<z.ZodString>;
|
|
23
33
|
groups: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
@@ -236,6 +246,9 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
|
236
246
|
fid: z.ZodOptional<z.ZodString>;
|
|
237
247
|
uid: z.ZodOptional<z.ZodString>;
|
|
238
248
|
agentId: z.ZodOptional<z.ZodString>;
|
|
249
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
250
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
251
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
239
252
|
}, "strip", z.ZodTypeAny, {
|
|
240
253
|
status: NotificationStatus;
|
|
241
254
|
contentStrategy: {
|
|
@@ -266,6 +279,9 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
|
266
279
|
fid?: string | undefined;
|
|
267
280
|
uid?: string | undefined;
|
|
268
281
|
agentId?: string | undefined;
|
|
282
|
+
flowStateId?: string | undefined;
|
|
283
|
+
context?: NotificationContextKind | undefined;
|
|
284
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
269
285
|
}, {
|
|
270
286
|
status: NotificationStatus;
|
|
271
287
|
contentStrategy: {
|
|
@@ -296,6 +312,9 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
|
296
312
|
fid?: string | undefined;
|
|
297
313
|
uid?: string | undefined;
|
|
298
314
|
agentId?: string | undefined;
|
|
315
|
+
flowStateId?: string | undefined;
|
|
316
|
+
context?: NotificationContextKind | undefined;
|
|
317
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
299
318
|
}>;
|
|
300
319
|
export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
301
320
|
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
@@ -305,6 +324,7 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
305
324
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
306
325
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
326
|
fid: z.ZodOptional<z.ZodString>;
|
|
327
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
308
328
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
309
329
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
310
330
|
content: z.ZodString;
|
|
@@ -367,6 +387,8 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
367
387
|
flowContext?: Record<string, any> | undefined;
|
|
368
388
|
}>]>;
|
|
369
389
|
agentId: z.ZodOptional<z.ZodString>;
|
|
390
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
370
392
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
371
393
|
deliveryStrategy: z.ZodObject<{
|
|
372
394
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -446,7 +468,10 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
446
468
|
updatedAt?: string | undefined;
|
|
447
469
|
deletedAt?: string | null | undefined;
|
|
448
470
|
fid?: string | undefined;
|
|
471
|
+
context?: NotificationContextKind | undefined;
|
|
449
472
|
agentId?: string | undefined;
|
|
473
|
+
flowStateId?: string | undefined;
|
|
474
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
450
475
|
}, {
|
|
451
476
|
status: NotificationStatus;
|
|
452
477
|
contentStrategy: {
|
|
@@ -487,7 +512,10 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
487
512
|
updatedAt?: string | undefined;
|
|
488
513
|
deletedAt?: string | null | undefined;
|
|
489
514
|
fid?: string | undefined;
|
|
515
|
+
context?: NotificationContextKind | undefined;
|
|
490
516
|
agentId?: string | undefined;
|
|
517
|
+
flowStateId?: string | undefined;
|
|
518
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
491
519
|
}>;
|
|
492
520
|
export type SlackNotificationUpsertDto = z.infer<typeof _SlackNotificationUpsertDto>;
|
|
493
521
|
export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
@@ -498,6 +526,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
498
526
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
499
527
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
528
|
fid: z.ZodOptional<z.ZodString>;
|
|
529
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
501
530
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
502
531
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
503
532
|
content: z.ZodString;
|
|
@@ -560,6 +589,8 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
560
589
|
flowContext?: Record<string, any> | undefined;
|
|
561
590
|
}>]>;
|
|
562
591
|
agentId: z.ZodOptional<z.ZodString>;
|
|
592
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
593
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
563
594
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
564
595
|
deliveryStrategy: z.ZodObject<{
|
|
565
596
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -621,7 +652,10 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
621
652
|
updatedAt?: string | undefined;
|
|
622
653
|
deletedAt?: string | null | undefined;
|
|
623
654
|
fid?: string | undefined;
|
|
655
|
+
context?: NotificationContextKind | undefined;
|
|
624
656
|
agentId?: string | undefined;
|
|
657
|
+
flowStateId?: string | undefined;
|
|
658
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
625
659
|
}, {
|
|
626
660
|
status: NotificationStatus;
|
|
627
661
|
contentStrategy: {
|
|
@@ -659,7 +693,10 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
659
693
|
updatedAt?: string | undefined;
|
|
660
694
|
deletedAt?: string | null | undefined;
|
|
661
695
|
fid?: string | undefined;
|
|
696
|
+
context?: NotificationContextKind | undefined;
|
|
662
697
|
agentId?: string | undefined;
|
|
698
|
+
flowStateId?: string | undefined;
|
|
699
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
663
700
|
}>;
|
|
664
701
|
export type EmailNotificationUpsertDto = z.infer<typeof _EmailNotificationUpsertDto>;
|
|
665
702
|
export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryChannel", [z.ZodObject<{
|
|
@@ -670,6 +707,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
670
707
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
671
708
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
672
709
|
fid: z.ZodOptional<z.ZodString>;
|
|
710
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
673
711
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
674
712
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
675
713
|
content: z.ZodString;
|
|
@@ -732,6 +770,8 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
732
770
|
flowContext?: Record<string, any> | undefined;
|
|
733
771
|
}>]>;
|
|
734
772
|
agentId: z.ZodOptional<z.ZodString>;
|
|
773
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
774
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
735
775
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
736
776
|
deliveryStrategy: z.ZodObject<{
|
|
737
777
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -811,7 +851,10 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
811
851
|
updatedAt?: string | undefined;
|
|
812
852
|
deletedAt?: string | null | undefined;
|
|
813
853
|
fid?: string | undefined;
|
|
854
|
+
context?: NotificationContextKind | undefined;
|
|
814
855
|
agentId?: string | undefined;
|
|
856
|
+
flowStateId?: string | undefined;
|
|
857
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
815
858
|
}, {
|
|
816
859
|
status: NotificationStatus;
|
|
817
860
|
contentStrategy: {
|
|
@@ -852,7 +895,10 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
852
895
|
updatedAt?: string | undefined;
|
|
853
896
|
deletedAt?: string | null | undefined;
|
|
854
897
|
fid?: string | undefined;
|
|
898
|
+
context?: NotificationContextKind | undefined;
|
|
855
899
|
agentId?: string | undefined;
|
|
900
|
+
flowStateId?: string | undefined;
|
|
901
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
856
902
|
}>, z.ZodObject<{
|
|
857
903
|
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
858
904
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -861,6 +907,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
861
907
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
862
908
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
863
909
|
fid: z.ZodOptional<z.ZodString>;
|
|
910
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
864
911
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
865
912
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
866
913
|
content: z.ZodString;
|
|
@@ -923,6 +970,8 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
923
970
|
flowContext?: Record<string, any> | undefined;
|
|
924
971
|
}>]>;
|
|
925
972
|
agentId: z.ZodOptional<z.ZodString>;
|
|
973
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
974
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
926
975
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
927
976
|
deliveryStrategy: z.ZodObject<{
|
|
928
977
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -984,7 +1033,10 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
984
1033
|
updatedAt?: string | undefined;
|
|
985
1034
|
deletedAt?: string | null | undefined;
|
|
986
1035
|
fid?: string | undefined;
|
|
1036
|
+
context?: NotificationContextKind | undefined;
|
|
987
1037
|
agentId?: string | undefined;
|
|
1038
|
+
flowStateId?: string | undefined;
|
|
1039
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
988
1040
|
}, {
|
|
989
1041
|
status: NotificationStatus;
|
|
990
1042
|
contentStrategy: {
|
|
@@ -1022,7 +1074,10 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
1022
1074
|
updatedAt?: string | undefined;
|
|
1023
1075
|
deletedAt?: string | null | undefined;
|
|
1024
1076
|
fid?: string | undefined;
|
|
1077
|
+
context?: NotificationContextKind | undefined;
|
|
1025
1078
|
agentId?: string | undefined;
|
|
1079
|
+
flowStateId?: string | undefined;
|
|
1080
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
1026
1081
|
}>]>;
|
|
1027
1082
|
export type NotificationUpsertDto = z.infer<typeof _NotificationUpsertDto>;
|
|
1028
1083
|
export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion<"deliveryChannel", [z.ZodObject<{
|
|
@@ -1033,6 +1088,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1033
1088
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1034
1089
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1035
1090
|
fid: z.ZodOptional<z.ZodString>;
|
|
1091
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1036
1092
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1037
1093
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
1038
1094
|
content: z.ZodString;
|
|
@@ -1095,6 +1151,8 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1095
1151
|
flowContext?: Record<string, any> | undefined;
|
|
1096
1152
|
}>]>;
|
|
1097
1153
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1154
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1155
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1098
1156
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
1099
1157
|
deliveryStrategy: z.ZodObject<{
|
|
1100
1158
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1174,7 +1232,10 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1174
1232
|
updatedAt?: string | undefined;
|
|
1175
1233
|
deletedAt?: string | null | undefined;
|
|
1176
1234
|
fid?: string | undefined;
|
|
1235
|
+
context?: NotificationContextKind | undefined;
|
|
1177
1236
|
agentId?: string | undefined;
|
|
1237
|
+
flowStateId?: string | undefined;
|
|
1238
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
1178
1239
|
}, {
|
|
1179
1240
|
status: NotificationStatus;
|
|
1180
1241
|
contentStrategy: {
|
|
@@ -1215,7 +1276,10 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1215
1276
|
updatedAt?: string | undefined;
|
|
1216
1277
|
deletedAt?: string | null | undefined;
|
|
1217
1278
|
fid?: string | undefined;
|
|
1279
|
+
context?: NotificationContextKind | undefined;
|
|
1218
1280
|
agentId?: string | undefined;
|
|
1281
|
+
flowStateId?: string | undefined;
|
|
1282
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
1219
1283
|
}>, z.ZodObject<{
|
|
1220
1284
|
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
1221
1285
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1224,6 +1288,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1224
1288
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1225
1289
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1226
1290
|
fid: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1227
1292
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1228
1293
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
1229
1294
|
content: z.ZodString;
|
|
@@ -1286,6 +1351,8 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1286
1351
|
flowContext?: Record<string, any> | undefined;
|
|
1287
1352
|
}>]>;
|
|
1288
1353
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1289
1356
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
1290
1357
|
deliveryStrategy: z.ZodObject<{
|
|
1291
1358
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1347,7 +1414,10 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1347
1414
|
updatedAt?: string | undefined;
|
|
1348
1415
|
deletedAt?: string | null | undefined;
|
|
1349
1416
|
fid?: string | undefined;
|
|
1417
|
+
context?: NotificationContextKind | undefined;
|
|
1350
1418
|
agentId?: string | undefined;
|
|
1419
|
+
flowStateId?: string | undefined;
|
|
1420
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
1351
1421
|
}, {
|
|
1352
1422
|
status: NotificationStatus;
|
|
1353
1423
|
contentStrategy: {
|
|
@@ -1385,7 +1455,10 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1385
1455
|
updatedAt?: string | undefined;
|
|
1386
1456
|
deletedAt?: string | null | undefined;
|
|
1387
1457
|
fid?: string | undefined;
|
|
1458
|
+
context?: NotificationContextKind | undefined;
|
|
1388
1459
|
agentId?: string | undefined;
|
|
1460
|
+
flowStateId?: string | undefined;
|
|
1461
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
1389
1462
|
}>]>, z.ZodObject<{
|
|
1390
1463
|
id: z.ZodString;
|
|
1391
1464
|
createdAt: z.ZodString;
|
|
@@ -1438,6 +1511,9 @@ export declare const _CreateNotificationDto: z.ZodObject<{
|
|
|
1438
1511
|
}>;
|
|
1439
1512
|
uid: z.ZodOptional<z.ZodString>;
|
|
1440
1513
|
fid: z.ZodOptional<z.ZodString>;
|
|
1514
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1515
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1516
|
+
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1441
1517
|
faid: z.ZodOptional<z.ZodString>;
|
|
1442
1518
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1443
1519
|
includeFinding: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1460,6 +1536,9 @@ export declare const _CreateNotificationDto: z.ZodObject<{
|
|
|
1460
1536
|
test?: boolean | undefined;
|
|
1461
1537
|
uid?: string | undefined;
|
|
1462
1538
|
fid?: string | undefined;
|
|
1539
|
+
flowStateId?: string | undefined;
|
|
1540
|
+
context?: NotificationContextKind | undefined;
|
|
1541
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
1463
1542
|
faid?: string | undefined;
|
|
1464
1543
|
agentId?: string | undefined;
|
|
1465
1544
|
includeFinding?: boolean | undefined;
|
|
@@ -1482,6 +1561,9 @@ export declare const _CreateNotificationDto: z.ZodObject<{
|
|
|
1482
1561
|
test?: boolean | undefined;
|
|
1483
1562
|
uid?: string | undefined;
|
|
1484
1563
|
fid?: string | undefined;
|
|
1564
|
+
flowStateId?: string | undefined;
|
|
1565
|
+
context?: NotificationContextKind | undefined;
|
|
1566
|
+
deliveryMode?: DeliveryModeKind | undefined;
|
|
1485
1567
|
faid?: string | undefined;
|
|
1486
1568
|
agentId?: string | undefined;
|
|
1487
1569
|
includeFinding?: 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.DeliveryStrategyKind = exports.ContentStrategyKind = 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.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;
|
|
@@ -10,6 +10,13 @@ var NotificationStatus;
|
|
|
10
10
|
NotificationStatus["READ"] = "READ";
|
|
11
11
|
NotificationStatus["SENT"] = "SENT";
|
|
12
12
|
})(NotificationStatus || (exports.NotificationStatus = NotificationStatus = {}));
|
|
13
|
+
var NotificationContextKind;
|
|
14
|
+
(function (NotificationContextKind) {
|
|
15
|
+
NotificationContextKind["ROOT"] = "ROOT";
|
|
16
|
+
NotificationContextKind["REMINDER"] = "REMINDER";
|
|
17
|
+
NotificationContextKind["PENDING_VERIFICATION_ACK"] = "PENDING_VERIFICATION_ACK";
|
|
18
|
+
NotificationContextKind["RESOLVED_ACK"] = "RESOLVED_ACK";
|
|
19
|
+
})(NotificationContextKind || (exports.NotificationContextKind = NotificationContextKind = {}));
|
|
13
20
|
var ContentStrategyKind;
|
|
14
21
|
(function (ContentStrategyKind) {
|
|
15
22
|
ContentStrategyKind["RAW"] = "RAW";
|
|
@@ -24,6 +31,11 @@ var DeliveryStrategyKind;
|
|
|
24
31
|
DeliveryStrategyKind["MESSAGING"] = "MESSAGING";
|
|
25
32
|
DeliveryStrategyKind["SLACK"] = "SLACK";
|
|
26
33
|
})(DeliveryStrategyKind || (exports.DeliveryStrategyKind = DeliveryStrategyKind = {}));
|
|
34
|
+
var DeliveryModeKind;
|
|
35
|
+
(function (DeliveryModeKind) {
|
|
36
|
+
DeliveryModeKind["ACTIVE"] = "ACTIVE";
|
|
37
|
+
DeliveryModeKind["GHOST"] = "GHOST";
|
|
38
|
+
})(DeliveryModeKind || (exports.DeliveryModeKind = DeliveryModeKind = {}));
|
|
27
39
|
exports._NotificationAddress = zod_1.z.object({
|
|
28
40
|
cid: zod_1.z.string().optional(),
|
|
29
41
|
groups: zod_1.z.array(zod_1.z.union([zod_1.z.string(), zod_1.z.number()])).optional(),
|
|
@@ -85,6 +97,9 @@ exports._BaseNotificationUpsertDto = base_dto_1._BaseUpsertDto.merge(zod_1.z.obj
|
|
|
85
97
|
fid: zod_1.z.string().optional(),
|
|
86
98
|
uid: zod_1.z.string().optional(),
|
|
87
99
|
agentId: zod_1.z.string().optional(),
|
|
100
|
+
flowStateId: zod_1.z.string().optional(),
|
|
101
|
+
context: zod_1.z.nativeEnum(NotificationContextKind).optional(),
|
|
102
|
+
deliveryMode: zod_1.z.nativeEnum(DeliveryModeKind).optional(),
|
|
88
103
|
}));
|
|
89
104
|
exports._SlackNotificationUpsertDto = exports._BaseNotificationUpsertDto.merge(zod_1.z.object({
|
|
90
105
|
deliveryChannel: zod_1.z.literal(DeliveryStrategyKind.SLACK),
|
|
@@ -106,6 +121,9 @@ exports._CreateNotificationDto = base_dto_1._BaseUpsertDto.merge(zod_1.z.object(
|
|
|
106
121
|
}),
|
|
107
122
|
uid: zod_1.z.string().optional(),
|
|
108
123
|
fid: zod_1.z.string().optional(),
|
|
124
|
+
flowStateId: zod_1.z.string().optional(),
|
|
125
|
+
context: zod_1.z.nativeEnum(NotificationContextKind).optional(),
|
|
126
|
+
deliveryMode: zod_1.z.nativeEnum(DeliveryModeKind).optional(),
|
|
109
127
|
/** @deprecated ID of the agent from which the notification was sent */
|
|
110
128
|
faid: zod_1.z.string().optional(),
|
|
111
129
|
agentId: zod_1.z.string().optional(),
|
|
@@ -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,mBAKX;AALD,WAAY,mBAAmB;IAC7B,kCAAW,CAAA;IACX,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wDAAiC,CAAA;AACnC,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,oBAKX;AALD,WAAY,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,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5B,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;CACvC,CAAC,CACH,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const _PlatformActionExecutionDto: z.ZodObject<{
|
|
3
3
|
input: z.ZodUnknown;
|
|
4
4
|
status: z.ZodNativeEnum<typeof import("..").ActionExecutionStatus>;
|
|
5
|
-
actionSpecId: z.ZodString;
|
|
6
5
|
flowStateId: z.ZodNullable<z.ZodString>;
|
|
6
|
+
actionSpecId: z.ZodString;
|
|
7
7
|
output: z.ZodUnknown;
|
|
8
8
|
executionTime: z.ZodNullable<z.ZodString>;
|
|
9
9
|
executionDuration: z.ZodNullable<z.ZodNumber>;
|
|
@@ -19,8 +19,8 @@ export declare const _PlatformActionExecutionDto: z.ZodObject<{
|
|
|
19
19
|
createdAt: string;
|
|
20
20
|
updatedAt: string;
|
|
21
21
|
deletedAt: string | null;
|
|
22
|
-
actionSpecId: string;
|
|
23
22
|
flowStateId: string | null;
|
|
23
|
+
actionSpecId: string;
|
|
24
24
|
executionTime: string | null;
|
|
25
25
|
executionDuration: number | null;
|
|
26
26
|
input?: unknown;
|
|
@@ -32,8 +32,8 @@ export declare const _PlatformActionExecutionDto: z.ZodObject<{
|
|
|
32
32
|
createdAt: string;
|
|
33
33
|
updatedAt: string;
|
|
34
34
|
deletedAt: string | null;
|
|
35
|
-
actionSpecId: string;
|
|
36
35
|
flowStateId: string | null;
|
|
36
|
+
actionSpecId: string;
|
|
37
37
|
executionTime: string | null;
|
|
38
38
|
executionDuration: number | null;
|
|
39
39
|
input?: unknown;
|
|
@@ -43,8 +43,8 @@ export type PlatformActionExecutionDto = z.infer<typeof _PlatformActionExecution
|
|
|
43
43
|
export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<{
|
|
44
44
|
input: z.ZodUnknown;
|
|
45
45
|
status: z.ZodNativeEnum<typeof import("..").ActionExecutionStatus>;
|
|
46
|
-
actionSpecId: z.ZodString;
|
|
47
46
|
flowStateId: z.ZodNullable<z.ZodString>;
|
|
47
|
+
actionSpecId: z.ZodString;
|
|
48
48
|
output: z.ZodUnknown;
|
|
49
49
|
executionTime: z.ZodNullable<z.ZodString>;
|
|
50
50
|
executionDuration: z.ZodNullable<z.ZodNumber>;
|
|
@@ -55,8 +55,8 @@ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<{
|
|
|
55
55
|
tid: z.ZodOptional<z.ZodString>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
status: import("..").ActionExecutionStatus;
|
|
58
|
-
actionSpecId: string;
|
|
59
58
|
flowStateId: string | null;
|
|
59
|
+
actionSpecId: string;
|
|
60
60
|
executionTime: string | null;
|
|
61
61
|
executionDuration: number | null;
|
|
62
62
|
input?: unknown;
|
|
@@ -68,8 +68,8 @@ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<{
|
|
|
68
68
|
tid?: string | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
status: import("..").ActionExecutionStatus;
|
|
71
|
-
actionSpecId: string;
|
|
72
71
|
flowStateId: string | null;
|
|
72
|
+
actionSpecId: string;
|
|
73
73
|
executionTime: string | null;
|
|
74
74
|
executionDuration: number | null;
|
|
75
75
|
input?: unknown;
|
|
@@ -949,6 +949,7 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<{
|
|
|
949
949
|
fid: z.ZodOptional<z.ZodString>;
|
|
950
950
|
nodeName: z.ZodString;
|
|
951
951
|
specId: z.ZodOptional<z.ZodString>;
|
|
952
|
+
specStatus: z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>;
|
|
952
953
|
totalSteps: z.ZodNumber;
|
|
953
954
|
currentStep: z.ZodNumber;
|
|
954
955
|
endTime: z.ZodNullable<z.ZodString>;
|
|
@@ -1106,6 +1107,7 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<{
|
|
|
1106
1107
|
uid?: string | undefined;
|
|
1107
1108
|
fid?: string | undefined;
|
|
1108
1109
|
specId?: string | undefined;
|
|
1110
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
1109
1111
|
id?: string | undefined;
|
|
1110
1112
|
createdAt?: string | undefined;
|
|
1111
1113
|
updatedAt?: string | undefined;
|
|
@@ -1143,6 +1145,7 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<{
|
|
|
1143
1145
|
uid?: string | undefined;
|
|
1144
1146
|
fid?: string | undefined;
|
|
1145
1147
|
specId?: string | undefined;
|
|
1148
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
1146
1149
|
id?: string | undefined;
|
|
1147
1150
|
createdAt?: string | undefined;
|
|
1148
1151
|
updatedAt?: string | undefined;
|
|
@@ -1156,6 +1159,7 @@ export declare const _PlatformFlowStateDto: z.ZodObject<{
|
|
|
1156
1159
|
fid: z.ZodOptional<z.ZodString>;
|
|
1157
1160
|
nodeName: z.ZodString;
|
|
1158
1161
|
specId: z.ZodOptional<z.ZodString>;
|
|
1162
|
+
specStatus: z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>;
|
|
1159
1163
|
totalSteps: z.ZodNumber;
|
|
1160
1164
|
currentStep: z.ZodNumber;
|
|
1161
1165
|
endTime: z.ZodNullable<z.ZodString>;
|
|
@@ -1318,6 +1322,7 @@ export declare const _PlatformFlowStateDto: z.ZodObject<{
|
|
|
1318
1322
|
uid?: string | undefined;
|
|
1319
1323
|
fid?: string | undefined;
|
|
1320
1324
|
specId?: string | undefined;
|
|
1325
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
1321
1326
|
}, {
|
|
1322
1327
|
status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
|
|
1323
1328
|
id: string;
|
|
@@ -1355,6 +1360,7 @@ export declare const _PlatformFlowStateDto: z.ZodObject<{
|
|
|
1355
1360
|
uid?: string | undefined;
|
|
1356
1361
|
fid?: string | undefined;
|
|
1357
1362
|
specId?: string | undefined;
|
|
1363
|
+
specStatus?: FlowSpecStatusKind | undefined;
|
|
1358
1364
|
}>;
|
|
1359
1365
|
export type PlatformFlowStateDto = z.infer<typeof _PlatformFlowStateDto>;
|
|
1360
1366
|
export declare const NOOP_FLOW_SPEC: PlatformFlowSpecDto;
|
|
@@ -4,12 +4,15 @@ import { z } from 'zod';
|
|
|
4
4
|
declare const _TriggerRequest: z.ZodObject<{
|
|
5
5
|
fids: z.ZodArray<z.ZodString, "many">;
|
|
6
6
|
allowDuplicates: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
overrideGhostMode: z.ZodDefault<z.ZodBoolean>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
fids: string[];
|
|
9
10
|
allowDuplicates: boolean;
|
|
11
|
+
overrideGhostMode: boolean;
|
|
10
12
|
}, {
|
|
11
13
|
fids: string[];
|
|
12
14
|
allowDuplicates?: boolean | undefined;
|
|
15
|
+
overrideGhostMode?: boolean | undefined;
|
|
13
16
|
}>;
|
|
14
17
|
type TriggerRequest = z.infer<typeof _TriggerRequest>;
|
|
15
18
|
type EngagementMessage = {
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const _TriggerRequest = zod_1.z.object({
|
|
6
6
|
fids: zod_1.z.array(zod_1.z.string()),
|
|
7
7
|
allowDuplicates: zod_1.z.boolean().default(true),
|
|
8
|
+
overrideGhostMode: zod_1.z.boolean().default(false),
|
|
8
9
|
});
|
|
9
10
|
class EngagementService {
|
|
10
11
|
constructor(rest, targetApi = 'api') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engagements.service.js","sourceRoot":"","sources":["../../../src/services/engagements.service.ts"],"names":[],"mappings":";;;AAGA,6BAAsB;AAEtB,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"engagements.service.js","sourceRoot":"","sources":["../../../src/services/engagements.service.ts"],"names":[],"mappings":";;;AAGA,6BAAsB;AAEtB,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC1C,iBAAiB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAC9C,CAAC,CAAC;AASH,MAAa,iBAAiB;IAG5B,YAAY,IAAgB,EAAE,YAAuB,KAAK;QAK1D,YAAO,GAAG,KAAK,EAAE,cAA8B,EAA8B,EAAE;YAC7E,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,GAAG,IAAI,CAAC,SAAS,yBAAyB;gBAC/C,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,cAAc;aACrB,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,GAAG,CAAC,IAAyB,CAAC;YAC9C,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC;QAbA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CAYF;AAlBD,8CAkBC"}
|
package/package.json
CHANGED
package/src/dto/flows.dto.ts
CHANGED
|
@@ -3,6 +3,13 @@ import {_BaseDto, _BaseUpsertDto} from './base.dto';
|
|
|
3
3
|
import {_PaginationFilter, _SortFilter} from '../FilterCriteria';
|
|
4
4
|
import {FindingStatus} from './enums';
|
|
5
5
|
|
|
6
|
+
export enum FlowSpecStatusKind {
|
|
7
|
+
ACTIVE = 'ACTIVE',
|
|
8
|
+
PAUSED = 'PAUSED',
|
|
9
|
+
ERROR = 'ERROR',
|
|
10
|
+
GHOST = 'GHOST',
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
/*
|
|
7
14
|
* /============================\
|
|
8
15
|
* | Events + History |
|
|
@@ -62,6 +69,7 @@ export const _FlowStateDto = _BaseDto.extend({
|
|
|
62
69
|
uid: z.string().optional(),
|
|
63
70
|
fid: z.string().optional(),
|
|
64
71
|
status: _FlowStateStatusDto,
|
|
72
|
+
specStatus: z.nativeEnum(FlowSpecStatusKind).optional(),
|
|
65
73
|
nodeName: z.string(),
|
|
66
74
|
totalSteps: z.number(),
|
|
67
75
|
currentStep: z.number(),
|
|
@@ -88,13 +96,6 @@ export const _FlowSpecCreateDto = z.object({
|
|
|
88
96
|
});
|
|
89
97
|
export type FlowSpecCreateDto = z.infer<typeof _FlowSpecCreateDto>;
|
|
90
98
|
|
|
91
|
-
export enum FlowSpecStatusKind {
|
|
92
|
-
ACTIVE = 'ACTIVE',
|
|
93
|
-
PAUSED = 'PAUSED',
|
|
94
|
-
ERROR = 'ERROR',
|
|
95
|
-
GHOST = 'GHOST',
|
|
96
|
-
}
|
|
97
|
-
|
|
98
99
|
const _FlowTrigger = z.object({
|
|
99
100
|
id: z.string(),
|
|
100
101
|
displayValue: z.string(),
|
|
@@ -8,6 +8,13 @@ export enum NotificationStatus {
|
|
|
8
8
|
SENT = 'SENT',
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
export enum NotificationContextKind {
|
|
12
|
+
ROOT = 'ROOT',
|
|
13
|
+
REMINDER = 'REMINDER',
|
|
14
|
+
PENDING_VERIFICATION_ACK = 'PENDING_VERIFICATION_ACK',
|
|
15
|
+
RESOLVED_ACK = 'RESOLVED_ACK',
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
export enum ContentStrategyKind {
|
|
12
19
|
RAW = 'RAW',
|
|
13
20
|
TEMPLATE = 'TEMPLATE',
|
|
@@ -22,6 +29,11 @@ export enum DeliveryStrategyKind {
|
|
|
22
29
|
SLACK = 'SLACK',
|
|
23
30
|
}
|
|
24
31
|
|
|
32
|
+
export enum DeliveryModeKind {
|
|
33
|
+
ACTIVE = 'ACTIVE',
|
|
34
|
+
GHOST = 'GHOST',
|
|
35
|
+
}
|
|
36
|
+
|
|
25
37
|
export const _NotificationAddress = z.object({
|
|
26
38
|
cid: z.string().optional(),
|
|
27
39
|
groups: z.array(z.union([z.string(), z.number()])).optional(),
|
|
@@ -103,6 +115,9 @@ export const _BaseNotificationUpsertDto = _BaseUpsertDto.merge(
|
|
|
103
115
|
fid: z.string().optional(),
|
|
104
116
|
uid: z.string().optional(),
|
|
105
117
|
agentId: z.string().optional(),
|
|
118
|
+
flowStateId: z.string().optional(),
|
|
119
|
+
context: z.nativeEnum(NotificationContextKind).optional(),
|
|
120
|
+
deliveryMode: z.nativeEnum(DeliveryModeKind).optional(),
|
|
106
121
|
})
|
|
107
122
|
);
|
|
108
123
|
|
|
@@ -139,6 +154,9 @@ export const _CreateNotificationDto = _BaseUpsertDto.merge(
|
|
|
139
154
|
}),
|
|
140
155
|
uid: z.string().optional(),
|
|
141
156
|
fid: z.string().optional(),
|
|
157
|
+
flowStateId: z.string().optional(),
|
|
158
|
+
context: z.nativeEnum(NotificationContextKind).optional(),
|
|
159
|
+
deliveryMode: z.nativeEnum(DeliveryModeKind).optional(),
|
|
142
160
|
/** @deprecated ID of the agent from which the notification was sent */
|
|
143
161
|
faid: z.string().optional(),
|
|
144
162
|
agentId: z.string().optional(),
|