@ampsec/platform-client 82.1.1 → 82.3.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.
@@ -9,6 +9,10 @@ export declare enum FlowSpecStatusKind {
9
9
  GHOST = "GHOST",
10
10
  ARCHIVE = "ARCHIVE"
11
11
  }
12
+ export declare enum ENGAGEMENT_TRIGGER_SOURCE {
13
+ MANUAL = "MANUAL",
14
+ CONSOLIDATION = "CONSOLIDATION"
15
+ }
12
16
  export declare const _FlowTriggerEventDto: z.ZodObject<{
13
17
  kind: z.ZodString;
14
18
  tid: z.ZodString;
@@ -346,10 +350,13 @@ export declare const _FlowStateDto: z.ZodObject<z.objectUtil.extendShape<{
346
350
  bucketKey: z.ZodOptional<z.ZodString>;
347
351
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
348
352
  overrideWorkingHours: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
353
+ engagementTriggerSource: z.ZodOptional<z.ZodNativeEnum<typeof ENGAGEMENT_TRIGGER_SOURCE>>;
349
354
  }, "strip", z.ZodTypeAny, {
350
355
  overrideWorkingHours?: boolean | undefined;
356
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
351
357
  }, {
352
358
  overrideWorkingHours?: boolean | undefined;
359
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
353
360
  }>>>;
354
361
  }>, "strip", z.ZodTypeAny, {
355
362
  status: "SUCCESS" | "RUNNING" | "ERROR" | "CANCELLED" | "EXPIRED";
@@ -387,6 +394,7 @@ export declare const _FlowStateDto: z.ZodObject<z.objectUtil.extendShape<{
387
394
  uid?: string | undefined;
388
395
  meta?: {
389
396
  overrideWorkingHours?: boolean | undefined;
397
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
390
398
  } | null | undefined;
391
399
  fid?: string | undefined;
392
400
  specId?: string | undefined;
@@ -428,6 +436,7 @@ export declare const _FlowStateDto: z.ZodObject<z.objectUtil.extendShape<{
428
436
  uid?: string | undefined;
429
437
  meta?: {
430
438
  overrideWorkingHours?: boolean | undefined;
439
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
431
440
  } | null | undefined;
432
441
  fid?: string | undefined;
433
442
  specId?: string | undefined;
@@ -571,10 +580,13 @@ export declare const _FlowStateUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
571
580
  bucketKey: z.ZodOptional<z.ZodString>;
572
581
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
573
582
  overrideWorkingHours: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
583
+ engagementTriggerSource: z.ZodOptional<z.ZodNativeEnum<typeof ENGAGEMENT_TRIGGER_SOURCE>>;
574
584
  }, "strip", z.ZodTypeAny, {
575
585
  overrideWorkingHours?: boolean | undefined;
586
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
576
587
  }, {
577
588
  overrideWorkingHours?: boolean | undefined;
589
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
578
590
  }>>>;
579
591
  }>, {
580
592
  id: z.ZodOptional<z.ZodString>;
@@ -617,6 +629,7 @@ export declare const _FlowStateUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
617
629
  deletedAt?: string | null | undefined;
618
630
  meta?: {
619
631
  overrideWorkingHours?: boolean | undefined;
632
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
620
633
  } | null | undefined;
621
634
  fid?: string | undefined;
622
635
  specId?: string | undefined;
@@ -658,6 +671,7 @@ export declare const _FlowStateUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
658
671
  deletedAt?: string | null | undefined;
659
672
  meta?: {
660
673
  overrideWorkingHours?: boolean | undefined;
674
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
661
675
  } | null | undefined;
662
676
  fid?: string | undefined;
663
677
  specId?: string | undefined;
@@ -674,10 +688,13 @@ export declare const _FlowStateFilter: z.ZodObject<z.objectUtil.extendShape<z.ob
674
688
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
675
689
  meta: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
676
690
  overrideWorkingHours: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
691
+ engagementTriggerSource: z.ZodOptional<z.ZodNativeEnum<typeof ENGAGEMENT_TRIGGER_SOURCE>>;
677
692
  }, "strip", z.ZodTypeAny, {
678
693
  overrideWorkingHours?: boolean | undefined;
694
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
679
695
  }, {
680
696
  overrideWorkingHours?: boolean | undefined;
697
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
681
698
  }>>>>;
682
699
  fid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
683
700
  nodeName: z.ZodOptional<z.ZodString>;
@@ -704,6 +721,7 @@ export declare const _FlowStateFilter: z.ZodObject<z.objectUtil.extendShape<z.ob
704
721
  deletedAt?: string | null | undefined;
705
722
  meta?: {
706
723
  overrideWorkingHours?: boolean | undefined;
724
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
707
725
  } | null | undefined;
708
726
  fid?: string | undefined;
709
727
  nodeName?: string | undefined;
@@ -725,6 +743,7 @@ export declare const _FlowStateFilter: z.ZodObject<z.objectUtil.extendShape<z.ob
725
743
  deletedAt?: string | null | undefined;
726
744
  meta?: {
727
745
  overrideWorkingHours?: boolean | undefined;
746
+ engagementTriggerSource?: ENGAGEMENT_TRIGGER_SOURCE | undefined;
728
747
  } | null | undefined;
729
748
  fid?: string | undefined;
730
749
  nodeName?: string | undefined;
@@ -865,6 +884,19 @@ export declare const _FlowFilter: z.ZodObject<{
865
884
  } | undefined)[];
866
885
  custom?: Record<string, unknown> | undefined;
867
886
  }>;
887
+ export declare const _FlowInstructionsDetails: z.ZodObject<{
888
+ includeCustomInstructions: z.ZodOptional<z.ZodBoolean>;
889
+ customInstructions: z.ZodOptional<z.ZodString>;
890
+ includeOnlyCustomInstructions: z.ZodOptional<z.ZodBoolean>;
891
+ }, "strip", z.ZodTypeAny, {
892
+ includeCustomInstructions?: boolean | undefined;
893
+ customInstructions?: string | undefined;
894
+ includeOnlyCustomInstructions?: boolean | undefined;
895
+ }, {
896
+ includeCustomInstructions?: boolean | undefined;
897
+ customInstructions?: string | undefined;
898
+ includeOnlyCustomInstructions?: boolean | undefined;
899
+ }>;
868
900
  export declare const _FlowInterval: z.ZodObject<{
869
901
  minutes: z.ZodNumber;
870
902
  value: z.ZodOptional<z.ZodNumber>;
@@ -930,7 +962,21 @@ export declare const _FlowLaunchAction: z.ZodObject<{
930
962
  }>;
931
963
  export type FlowActionButton = z.infer<typeof _FlowActionButton>;
932
964
  export declare const _FlowActions: z.ZodObject<{
965
+ /** @deprecated */
933
966
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
967
+ getInstructionsAction: z.ZodOptional<z.ZodObject<{
968
+ includeCustomInstructions: z.ZodOptional<z.ZodBoolean>;
969
+ customInstructions: z.ZodOptional<z.ZodString>;
970
+ includeOnlyCustomInstructions: z.ZodOptional<z.ZodBoolean>;
971
+ }, "strip", z.ZodTypeAny, {
972
+ includeCustomInstructions?: boolean | undefined;
973
+ customInstructions?: string | undefined;
974
+ includeOnlyCustomInstructions?: boolean | undefined;
975
+ }, {
976
+ includeCustomInstructions?: boolean | undefined;
977
+ customInstructions?: string | undefined;
978
+ includeOnlyCustomInstructions?: boolean | undefined;
979
+ }>>;
934
980
  includeMarkComplete: z.ZodOptional<z.ZodBoolean>;
935
981
  /**
936
982
  * @deprecated Use expirationAction instead
@@ -1051,6 +1097,11 @@ export declare const _FlowActions: z.ZodObject<{
1051
1097
  }>, "many">>;
1052
1098
  }, "strip", z.ZodTypeAny, {
1053
1099
  includeInstructions?: boolean | undefined;
1100
+ getInstructionsAction?: {
1101
+ includeCustomInstructions?: boolean | undefined;
1102
+ customInstructions?: string | undefined;
1103
+ includeOnlyCustomInstructions?: boolean | undefined;
1104
+ } | undefined;
1054
1105
  includeMarkComplete?: boolean | undefined;
1055
1106
  expirationActionId?: string | undefined;
1056
1107
  expirationAction?: {
@@ -1093,6 +1144,11 @@ export declare const _FlowActions: z.ZodObject<{
1093
1144
  }[] | undefined;
1094
1145
  }, {
1095
1146
  includeInstructions?: boolean | undefined;
1147
+ getInstructionsAction?: {
1148
+ includeCustomInstructions?: boolean | undefined;
1149
+ customInstructions?: string | undefined;
1150
+ includeOnlyCustomInstructions?: boolean | undefined;
1151
+ } | undefined;
1096
1152
  includeMarkComplete?: boolean | undefined;
1097
1153
  expirationActionId?: string | undefined;
1098
1154
  expirationAction?: {
@@ -1494,7 +1550,21 @@ export declare const _FlowSpecDto: z.ZodObject<z.objectUtil.extendShape<{
1494
1550
  units?: string | undefined;
1495
1551
  }>>;
1496
1552
  actions: z.ZodOptional<z.ZodObject<{
1553
+ /** @deprecated */
1497
1554
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
1555
+ getInstructionsAction: z.ZodOptional<z.ZodObject<{
1556
+ includeCustomInstructions: z.ZodOptional<z.ZodBoolean>;
1557
+ customInstructions: z.ZodOptional<z.ZodString>;
1558
+ includeOnlyCustomInstructions: z.ZodOptional<z.ZodBoolean>;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ includeCustomInstructions?: boolean | undefined;
1561
+ customInstructions?: string | undefined;
1562
+ includeOnlyCustomInstructions?: boolean | undefined;
1563
+ }, {
1564
+ includeCustomInstructions?: boolean | undefined;
1565
+ customInstructions?: string | undefined;
1566
+ includeOnlyCustomInstructions?: boolean | undefined;
1567
+ }>>;
1498
1568
  includeMarkComplete: z.ZodOptional<z.ZodBoolean>;
1499
1569
  /**
1500
1570
  * @deprecated Use expirationAction instead
@@ -1615,6 +1685,11 @@ export declare const _FlowSpecDto: z.ZodObject<z.objectUtil.extendShape<{
1615
1685
  }>, "many">>;
1616
1686
  }, "strip", z.ZodTypeAny, {
1617
1687
  includeInstructions?: boolean | undefined;
1688
+ getInstructionsAction?: {
1689
+ includeCustomInstructions?: boolean | undefined;
1690
+ customInstructions?: string | undefined;
1691
+ includeOnlyCustomInstructions?: boolean | undefined;
1692
+ } | undefined;
1618
1693
  includeMarkComplete?: boolean | undefined;
1619
1694
  expirationActionId?: string | undefined;
1620
1695
  expirationAction?: {
@@ -1657,6 +1732,11 @@ export declare const _FlowSpecDto: z.ZodObject<z.objectUtil.extendShape<{
1657
1732
  }[] | undefined;
1658
1733
  }, {
1659
1734
  includeInstructions?: boolean | undefined;
1735
+ getInstructionsAction?: {
1736
+ includeCustomInstructions?: boolean | undefined;
1737
+ customInstructions?: string | undefined;
1738
+ includeOnlyCustomInstructions?: boolean | undefined;
1739
+ } | undefined;
1660
1740
  includeMarkComplete?: boolean | undefined;
1661
1741
  expirationActionId?: string | undefined;
1662
1742
  expirationAction?: {
@@ -2021,6 +2101,11 @@ export declare const _FlowSpecDto: z.ZodObject<z.objectUtil.extendShape<{
2021
2101
  engagementChannelCids: string[];
2022
2102
  actions?: {
2023
2103
  includeInstructions?: boolean | undefined;
2104
+ getInstructionsAction?: {
2105
+ includeCustomInstructions?: boolean | undefined;
2106
+ customInstructions?: string | undefined;
2107
+ includeOnlyCustomInstructions?: boolean | undefined;
2108
+ } | undefined;
2024
2109
  includeMarkComplete?: boolean | undefined;
2025
2110
  expirationActionId?: string | undefined;
2026
2111
  expirationAction?: {
@@ -2208,6 +2293,11 @@ export declare const _FlowSpecDto: z.ZodObject<z.objectUtil.extendShape<{
2208
2293
  engagementChannelCids: string[];
2209
2294
  actions?: {
2210
2295
  includeInstructions?: boolean | undefined;
2296
+ getInstructionsAction?: {
2297
+ includeCustomInstructions?: boolean | undefined;
2298
+ customInstructions?: string | undefined;
2299
+ includeOnlyCustomInstructions?: boolean | undefined;
2300
+ } | undefined;
2211
2301
  includeMarkComplete?: boolean | undefined;
2212
2302
  expirationActionId?: string | undefined;
2213
2303
  expirationAction?: {
@@ -2566,7 +2656,21 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<z.objectUtil.extendShape<Om
2566
2656
  units?: string | undefined;
2567
2657
  }>>;
2568
2658
  actions: z.ZodOptional<z.ZodObject<{
2659
+ /** @deprecated */
2569
2660
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
2661
+ getInstructionsAction: z.ZodOptional<z.ZodObject<{
2662
+ includeCustomInstructions: z.ZodOptional<z.ZodBoolean>;
2663
+ customInstructions: z.ZodOptional<z.ZodString>;
2664
+ includeOnlyCustomInstructions: z.ZodOptional<z.ZodBoolean>;
2665
+ }, "strip", z.ZodTypeAny, {
2666
+ includeCustomInstructions?: boolean | undefined;
2667
+ customInstructions?: string | undefined;
2668
+ includeOnlyCustomInstructions?: boolean | undefined;
2669
+ }, {
2670
+ includeCustomInstructions?: boolean | undefined;
2671
+ customInstructions?: string | undefined;
2672
+ includeOnlyCustomInstructions?: boolean | undefined;
2673
+ }>>;
2570
2674
  includeMarkComplete: z.ZodOptional<z.ZodBoolean>;
2571
2675
  /**
2572
2676
  * @deprecated Use expirationAction instead
@@ -2687,6 +2791,11 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<z.objectUtil.extendShape<Om
2687
2791
  }>, "many">>;
2688
2792
  }, "strip", z.ZodTypeAny, {
2689
2793
  includeInstructions?: boolean | undefined;
2794
+ getInstructionsAction?: {
2795
+ includeCustomInstructions?: boolean | undefined;
2796
+ customInstructions?: string | undefined;
2797
+ includeOnlyCustomInstructions?: boolean | undefined;
2798
+ } | undefined;
2690
2799
  includeMarkComplete?: boolean | undefined;
2691
2800
  expirationActionId?: string | undefined;
2692
2801
  expirationAction?: {
@@ -2729,6 +2838,11 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<z.objectUtil.extendShape<Om
2729
2838
  }[] | undefined;
2730
2839
  }, {
2731
2840
  includeInstructions?: boolean | undefined;
2841
+ getInstructionsAction?: {
2842
+ includeCustomInstructions?: boolean | undefined;
2843
+ customInstructions?: string | undefined;
2844
+ includeOnlyCustomInstructions?: boolean | undefined;
2845
+ } | undefined;
2732
2846
  includeMarkComplete?: boolean | undefined;
2733
2847
  expirationActionId?: string | undefined;
2734
2848
  expirationAction?: {
@@ -3098,6 +3212,11 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<z.objectUtil.extendShape<Om
3098
3212
  deletedAt?: string | null | undefined;
3099
3213
  actions?: {
3100
3214
  includeInstructions?: boolean | undefined;
3215
+ getInstructionsAction?: {
3216
+ includeCustomInstructions?: boolean | undefined;
3217
+ customInstructions?: string | undefined;
3218
+ includeOnlyCustomInstructions?: boolean | undefined;
3219
+ } | undefined;
3101
3220
  includeMarkComplete?: boolean | undefined;
3102
3221
  expirationActionId?: string | undefined;
3103
3222
  expirationAction?: {
@@ -3277,6 +3396,11 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<z.objectUtil.extendShape<Om
3277
3396
  deletedAt?: string | null | undefined;
3278
3397
  actions?: {
3279
3398
  includeInstructions?: boolean | undefined;
3399
+ getInstructionsAction?: {
3400
+ includeCustomInstructions?: boolean | undefined;
3401
+ customInstructions?: string | undefined;
3402
+ includeOnlyCustomInstructions?: boolean | undefined;
3403
+ } | undefined;
3280
3404
  includeMarkComplete?: boolean | undefined;
3281
3405
  expirationActionId?: string | undefined;
3282
3406
  expirationAction?: {
@@ -3438,7 +3562,21 @@ export declare const _FlowSpecFilter: z.ZodObject<z.objectUtil.extendShape<z.obj
3438
3562
  updatedAt: z.ZodOptional<z.ZodString>;
3439
3563
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3440
3564
  actions: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3565
+ /** @deprecated */
3441
3566
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
3567
+ getInstructionsAction: z.ZodOptional<z.ZodObject<{
3568
+ includeCustomInstructions: z.ZodOptional<z.ZodBoolean>;
3569
+ customInstructions: z.ZodOptional<z.ZodString>;
3570
+ includeOnlyCustomInstructions: z.ZodOptional<z.ZodBoolean>;
3571
+ }, "strip", z.ZodTypeAny, {
3572
+ includeCustomInstructions?: boolean | undefined;
3573
+ customInstructions?: string | undefined;
3574
+ includeOnlyCustomInstructions?: boolean | undefined;
3575
+ }, {
3576
+ includeCustomInstructions?: boolean | undefined;
3577
+ customInstructions?: string | undefined;
3578
+ includeOnlyCustomInstructions?: boolean | undefined;
3579
+ }>>;
3442
3580
  includeMarkComplete: z.ZodOptional<z.ZodBoolean>;
3443
3581
  /**
3444
3582
  * @deprecated Use expirationAction instead
@@ -3559,6 +3697,11 @@ export declare const _FlowSpecFilter: z.ZodObject<z.objectUtil.extendShape<z.obj
3559
3697
  }>, "many">>;
3560
3698
  }, "strip", z.ZodTypeAny, {
3561
3699
  includeInstructions?: boolean | undefined;
3700
+ getInstructionsAction?: {
3701
+ includeCustomInstructions?: boolean | undefined;
3702
+ customInstructions?: string | undefined;
3703
+ includeOnlyCustomInstructions?: boolean | undefined;
3704
+ } | undefined;
3562
3705
  includeMarkComplete?: boolean | undefined;
3563
3706
  expirationActionId?: string | undefined;
3564
3707
  expirationAction?: {
@@ -3601,6 +3744,11 @@ export declare const _FlowSpecFilter: z.ZodObject<z.objectUtil.extendShape<z.obj
3601
3744
  }[] | undefined;
3602
3745
  }, {
3603
3746
  includeInstructions?: boolean | undefined;
3747
+ getInstructionsAction?: {
3748
+ includeCustomInstructions?: boolean | undefined;
3749
+ customInstructions?: string | undefined;
3750
+ includeOnlyCustomInstructions?: boolean | undefined;
3751
+ } | undefined;
3604
3752
  includeMarkComplete?: boolean | undefined;
3605
3753
  expirationActionId?: string | undefined;
3606
3754
  expirationAction?: {
@@ -4060,6 +4208,11 @@ export declare const _FlowSpecFilter: z.ZodObject<z.objectUtil.extendShape<z.obj
4060
4208
  deletedAt?: string | null | undefined;
4061
4209
  actions?: {
4062
4210
  includeInstructions?: boolean | undefined;
4211
+ getInstructionsAction?: {
4212
+ includeCustomInstructions?: boolean | undefined;
4213
+ customInstructions?: string | undefined;
4214
+ includeOnlyCustomInstructions?: boolean | undefined;
4215
+ } | undefined;
4063
4216
  includeMarkComplete?: boolean | undefined;
4064
4217
  expirationActionId?: string | undefined;
4065
4218
  expirationAction?: {
@@ -4232,6 +4385,11 @@ export declare const _FlowSpecFilter: z.ZodObject<z.objectUtil.extendShape<z.obj
4232
4385
  deletedAt?: string | null | undefined;
4233
4386
  actions?: {
4234
4387
  includeInstructions?: boolean | undefined;
4388
+ getInstructionsAction?: {
4389
+ includeCustomInstructions?: boolean | undefined;
4390
+ customInstructions?: string | undefined;
4391
+ includeOnlyCustomInstructions?: boolean | undefined;
4392
+ } | undefined;
4235
4393
  includeMarkComplete?: boolean | undefined;
4236
4394
  expirationActionId?: string | undefined;
4237
4395
  expirationAction?: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._ActiveEngagementFilterCriteria = exports._ActiveEngagement = exports._EngagementState = exports.EngagementState = exports._FlowSpecFilter = exports._FlowSpecUpsertDto = exports._FlowSpecDto = exports._EngagementEscalationConfig = exports._EmailChannelRedirection = exports._TeamsChannelRedirection = exports._SlackChannelRedirection = exports.EngagementRedirectionKind = exports._FlowRewardsConfig = exports._FlowActions = exports._FlowLaunchAction = exports._FlowActionButton = exports._FlowInterval = exports._FlowFilter = exports._AmplifierCohortDto = exports.CohortKind = exports._FlowTriggerFilter = exports._FlowSpecCreateDto = exports._FlowStateFilter = exports._FlowStateUpsertDto = exports._FlowStateDto = exports._FlowStateStatusDto = exports._FlowHistoryEntry = exports._FlowSystemEventDto = exports._FlowTriggerEventDto = exports.FlowSpecStatusKind = exports.CUSTOM_FINDINGS_CID = exports.EMAIL_CID = void 0;
3
+ exports._ActiveEngagementFilterCriteria = exports._ActiveEngagement = exports._EngagementState = exports.EngagementState = exports._FlowSpecFilter = exports._FlowSpecUpsertDto = exports._FlowSpecDto = exports._EngagementEscalationConfig = exports._EmailChannelRedirection = exports._TeamsChannelRedirection = exports._SlackChannelRedirection = exports.EngagementRedirectionKind = exports._FlowRewardsConfig = exports._FlowActions = exports._FlowLaunchAction = exports._FlowActionButton = exports._FlowInterval = exports._FlowInstructionsDetails = exports._FlowFilter = exports._AmplifierCohortDto = exports.CohortKind = exports._FlowTriggerFilter = exports._FlowSpecCreateDto = exports._FlowStateFilter = exports._FlowStateUpsertDto = exports._FlowStateDto = exports._FlowStateStatusDto = exports._FlowHistoryEntry = exports._FlowSystemEventDto = exports._FlowTriggerEventDto = exports.ENGAGEMENT_TRIGGER_SOURCE = exports.FlowSpecStatusKind = exports.CUSTOM_FINDINGS_CID = exports.EMAIL_CID = 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");
@@ -15,6 +15,11 @@ var FlowSpecStatusKind;
15
15
  FlowSpecStatusKind["GHOST"] = "GHOST";
16
16
  FlowSpecStatusKind["ARCHIVE"] = "ARCHIVE";
17
17
  })(FlowSpecStatusKind || (exports.FlowSpecStatusKind = FlowSpecStatusKind = {}));
18
+ var ENGAGEMENT_TRIGGER_SOURCE;
19
+ (function (ENGAGEMENT_TRIGGER_SOURCE) {
20
+ ENGAGEMENT_TRIGGER_SOURCE["MANUAL"] = "MANUAL";
21
+ ENGAGEMENT_TRIGGER_SOURCE["CONSOLIDATION"] = "CONSOLIDATION";
22
+ })(ENGAGEMENT_TRIGGER_SOURCE || (exports.ENGAGEMENT_TRIGGER_SOURCE = ENGAGEMENT_TRIGGER_SOURCE = {}));
18
23
  /*
19
24
  * /============================\
20
25
  * | Events + History |
@@ -71,9 +76,11 @@ exports._FlowStateDto = base_dto_1._BaseDto.extend({
71
76
  endTime: zod_1.z.string().nullable(),
72
77
  history: zod_1.z.array(exports._FlowHistoryEntry),
73
78
  bucketKey: zod_1.z.string().optional(),
79
+ // TODO: make meta field more generic
74
80
  meta: zod_1.z
75
81
  .object({
76
82
  overrideWorkingHours: zod_1.z.boolean().default(false).optional(),
83
+ engagementTriggerSource: zod_1.z.nativeEnum(ENGAGEMENT_TRIGGER_SOURCE).optional(),
77
84
  })
78
85
  .nullish(),
79
86
  });
@@ -116,6 +123,11 @@ exports._FlowFilter = zod_1.z.object({
116
123
  cohorts: zod_1.z.array(exports._AmplifierCohortDto.optional()),
117
124
  custom: zod_1.z.record(zod_1.z.unknown()).optional(),
118
125
  });
126
+ exports._FlowInstructionsDetails = zod_1.z.object({
127
+ includeCustomInstructions: zod_1.z.boolean().optional(),
128
+ customInstructions: zod_1.z.string().optional(),
129
+ includeOnlyCustomInstructions: zod_1.z.boolean().optional(),
130
+ });
119
131
  const _FlowTone = zod_1.z.object({
120
132
  kind: zod_1.z.string().optional(),
121
133
  });
@@ -150,7 +162,9 @@ const _FlowActionDetails = zod_1.z.object({
150
162
  responseMessage: zod_1.z.string().optional(),
151
163
  });
152
164
  exports._FlowActions = zod_1.z.object({
165
+ /** @deprecated */
153
166
  includeInstructions: zod_1.z.boolean().optional(),
167
+ getInstructionsAction: exports._FlowInstructionsDetails.optional(),
154
168
  includeMarkComplete: zod_1.z.boolean().optional(),
155
169
  // TODO instructions contact address???
156
170
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"flows.dto.js","sourceRoot":"","sources":["../../../src/dto/flows.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAoD;AACpD,sDAAiE;AACjE,mCAAsC;AAEzB,QAAA,SAAS,GAAG,cAAc,CAAC;AAC3B,QAAA,mBAAmB,GAAG,cAAc,CAAC;AAElD,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,yCAAmB,CAAA;AACrB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AAED;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,G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S,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC7B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,qBAAa,CAAC,KAAK,CAAC,MAAM;IAClC,KAAK,EAAE,qBAAa,CAAC,KAAK,CAAC,UAAU;IACrC,KAAK,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAGU,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC,KAAK,CAAC,kCAAiB,CAAC,CAAC"}
@@ -199,6 +199,19 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
199
199
  }>>;
200
200
  actions: z.ZodOptional<z.ZodObject<{
201
201
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
202
+ getInstructionsAction: z.ZodOptional<z.ZodObject<{
203
+ includeCustomInstructions: z.ZodOptional<z.ZodBoolean>;
204
+ customInstructions: z.ZodOptional<z.ZodString>;
205
+ includeOnlyCustomInstructions: z.ZodOptional<z.ZodBoolean>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ includeCustomInstructions?: boolean | undefined;
208
+ customInstructions?: string | undefined;
209
+ includeOnlyCustomInstructions?: boolean | undefined;
210
+ }, {
211
+ includeCustomInstructions?: boolean | undefined;
212
+ customInstructions?: string | undefined;
213
+ includeOnlyCustomInstructions?: boolean | undefined;
214
+ }>>;
202
215
  includeMarkComplete: z.ZodOptional<z.ZodBoolean>;
203
216
  expirationActionId: z.ZodOptional<z.ZodString>;
204
217
  expirationAction: z.ZodOptional<z.ZodObject<{
@@ -307,6 +320,11 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
307
320
  }>, "many">>;
308
321
  }, "strip", z.ZodTypeAny, {
309
322
  includeInstructions?: boolean | undefined;
323
+ getInstructionsAction?: {
324
+ includeCustomInstructions?: boolean | undefined;
325
+ customInstructions?: string | undefined;
326
+ includeOnlyCustomInstructions?: boolean | undefined;
327
+ } | undefined;
310
328
  includeMarkComplete?: boolean | undefined;
311
329
  expirationActionId?: string | undefined;
312
330
  expirationAction?: {
@@ -349,6 +367,11 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
349
367
  }[] | undefined;
350
368
  }, {
351
369
  includeInstructions?: boolean | undefined;
370
+ getInstructionsAction?: {
371
+ includeCustomInstructions?: boolean | undefined;
372
+ customInstructions?: string | undefined;
373
+ includeOnlyCustomInstructions?: boolean | undefined;
374
+ } | undefined;
352
375
  includeMarkComplete?: boolean | undefined;
353
376
  expirationActionId?: string | undefined;
354
377
  expirationAction?: {
@@ -715,6 +738,11 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
715
738
  deletedAt?: string | null | undefined;
716
739
  actions?: {
717
740
  includeInstructions?: boolean | undefined;
741
+ getInstructionsAction?: {
742
+ includeCustomInstructions?: boolean | undefined;
743
+ customInstructions?: string | undefined;
744
+ includeOnlyCustomInstructions?: boolean | undefined;
745
+ } | undefined;
718
746
  includeMarkComplete?: boolean | undefined;
719
747
  expirationActionId?: string | undefined;
720
748
  expirationAction?: {
@@ -894,6 +922,11 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<z.objectUtil.extend
894
922
  deletedAt?: string | null | undefined;
895
923
  actions?: {
896
924
  includeInstructions?: boolean | undefined;
925
+ getInstructionsAction?: {
926
+ includeCustomInstructions?: boolean | undefined;
927
+ customInstructions?: string | undefined;
928
+ includeOnlyCustomInstructions?: boolean | undefined;
929
+ } | undefined;
897
930
  includeMarkComplete?: boolean | undefined;
898
931
  expirationActionId?: string | undefined;
899
932
  expirationAction?: {
@@ -1244,6 +1277,19 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1244
1277
  }>>;
1245
1278
  actions: z.ZodOptional<z.ZodObject<{
1246
1279
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
1280
+ getInstructionsAction: z.ZodOptional<z.ZodObject<{
1281
+ includeCustomInstructions: z.ZodOptional<z.ZodBoolean>;
1282
+ customInstructions: z.ZodOptional<z.ZodString>;
1283
+ includeOnlyCustomInstructions: z.ZodOptional<z.ZodBoolean>;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ includeCustomInstructions?: boolean | undefined;
1286
+ customInstructions?: string | undefined;
1287
+ includeOnlyCustomInstructions?: boolean | undefined;
1288
+ }, {
1289
+ includeCustomInstructions?: boolean | undefined;
1290
+ customInstructions?: string | undefined;
1291
+ includeOnlyCustomInstructions?: boolean | undefined;
1292
+ }>>;
1247
1293
  includeMarkComplete: z.ZodOptional<z.ZodBoolean>;
1248
1294
  expirationActionId: z.ZodOptional<z.ZodString>;
1249
1295
  expirationAction: z.ZodOptional<z.ZodObject<{
@@ -1352,6 +1398,11 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1352
1398
  }>, "many">>;
1353
1399
  }, "strip", z.ZodTypeAny, {
1354
1400
  includeInstructions?: boolean | undefined;
1401
+ getInstructionsAction?: {
1402
+ includeCustomInstructions?: boolean | undefined;
1403
+ customInstructions?: string | undefined;
1404
+ includeOnlyCustomInstructions?: boolean | undefined;
1405
+ } | undefined;
1355
1406
  includeMarkComplete?: boolean | undefined;
1356
1407
  expirationActionId?: string | undefined;
1357
1408
  expirationAction?: {
@@ -1394,6 +1445,11 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1394
1445
  }[] | undefined;
1395
1446
  }, {
1396
1447
  includeInstructions?: boolean | undefined;
1448
+ getInstructionsAction?: {
1449
+ includeCustomInstructions?: boolean | undefined;
1450
+ customInstructions?: string | undefined;
1451
+ includeOnlyCustomInstructions?: boolean | undefined;
1452
+ } | undefined;
1397
1453
  includeMarkComplete?: boolean | undefined;
1398
1454
  expirationActionId?: string | undefined;
1399
1455
  expirationAction?: {
@@ -1755,6 +1811,11 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1755
1811
  engagementChannelCids: string[];
1756
1812
  actions?: {
1757
1813
  includeInstructions?: boolean | undefined;
1814
+ getInstructionsAction?: {
1815
+ includeCustomInstructions?: boolean | undefined;
1816
+ customInstructions?: string | undefined;
1817
+ includeOnlyCustomInstructions?: boolean | undefined;
1818
+ } | undefined;
1758
1819
  includeMarkComplete?: boolean | undefined;
1759
1820
  expirationActionId?: string | undefined;
1760
1821
  expirationAction?: {
@@ -1942,6 +2003,11 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<z.objectUtil.extendShape<
1942
2003
  engagementChannelCids: string[];
1943
2004
  actions?: {
1944
2005
  includeInstructions?: boolean | undefined;
2006
+ getInstructionsAction?: {
2007
+ includeCustomInstructions?: boolean | undefined;
2008
+ customInstructions?: string | undefined;
2009
+ includeOnlyCustomInstructions?: boolean | undefined;
2010
+ } | undefined;
1945
2011
  includeMarkComplete?: boolean | undefined;
1946
2012
  expirationActionId?: string | undefined;
1947
2013
  expirationAction?: {
@@ -2236,10 +2302,13 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<z.objectUtil.exten
2236
2302
  bucketKey: z.ZodOptional<z.ZodString>;
2237
2303
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2238
2304
  overrideWorkingHours: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2305
+ engagementTriggerSource: z.ZodOptional<z.ZodNativeEnum<typeof import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE>>;
2239
2306
  }, "strip", z.ZodTypeAny, {
2240
2307
  overrideWorkingHours?: boolean | undefined;
2308
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2241
2309
  }, {
2242
2310
  overrideWorkingHours?: boolean | undefined;
2311
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2243
2312
  }>>>;
2244
2313
  }>, {
2245
2314
  id: z.ZodOptional<z.ZodString>;
@@ -2289,6 +2358,7 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<z.objectUtil.exten
2289
2358
  deletedAt?: string | null | undefined;
2290
2359
  meta?: {
2291
2360
  overrideWorkingHours?: boolean | undefined;
2361
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2292
2362
  } | null | undefined;
2293
2363
  fid?: string | undefined;
2294
2364
  specId?: string | undefined;
@@ -2331,6 +2401,7 @@ export declare const _PlatformFlowStateUpsertDto: z.ZodObject<z.objectUtil.exten
2331
2401
  deletedAt?: string | null | undefined;
2332
2402
  meta?: {
2333
2403
  overrideWorkingHours?: boolean | undefined;
2404
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2334
2405
  } | null | undefined;
2335
2406
  fid?: string | undefined;
2336
2407
  specId?: string | undefined;
@@ -2473,10 +2544,13 @@ export declare const _PlatformFlowStateDto: z.ZodObject<z.objectUtil.extendShape
2473
2544
  bucketKey: z.ZodOptional<z.ZodString>;
2474
2545
  meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2475
2546
  overrideWorkingHours: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2547
+ engagementTriggerSource: z.ZodOptional<z.ZodNativeEnum<typeof import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE>>;
2476
2548
  }, "strip", z.ZodTypeAny, {
2477
2549
  overrideWorkingHours?: boolean | undefined;
2550
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2478
2551
  }, {
2479
2552
  overrideWorkingHours?: boolean | undefined;
2553
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2480
2554
  }>>>;
2481
2555
  }>, z.objectUtil.extendShape<{
2482
2556
  id: z.ZodString;
@@ -2522,6 +2596,7 @@ export declare const _PlatformFlowStateDto: z.ZodObject<z.objectUtil.extendShape
2522
2596
  uid?: string | undefined;
2523
2597
  meta?: {
2524
2598
  overrideWorkingHours?: boolean | undefined;
2599
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2525
2600
  } | null | undefined;
2526
2601
  fid?: string | undefined;
2527
2602
  specId?: string | undefined;
@@ -2564,6 +2639,7 @@ export declare const _PlatformFlowStateDto: z.ZodObject<z.objectUtil.extendShape
2564
2639
  uid?: string | undefined;
2565
2640
  meta?: {
2566
2641
  overrideWorkingHours?: boolean | undefined;
2642
+ engagementTriggerSource?: import("../flows.dto").ENGAGEMENT_TRIGGER_SOURCE | undefined;
2567
2643
  } | null | undefined;
2568
2644
  fid?: string | undefined;
2569
2645
  specId?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "82.1.1",
3
+ "version": "82.3.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -14,6 +14,11 @@ export enum FlowSpecStatusKind {
14
14
  ARCHIVE = 'ARCHIVE',
15
15
  }
16
16
 
17
+ export enum ENGAGEMENT_TRIGGER_SOURCE {
18
+ MANUAL = 'MANUAL',
19
+ CONSOLIDATION = 'CONSOLIDATION',
20
+ }
21
+
17
22
  /*
18
23
  * /============================\
19
24
  * | Events + History |
@@ -80,9 +85,11 @@ export const _FlowStateDto = _BaseDto.extend({
80
85
  endTime: z.string().nullable(),
81
86
  history: z.array(_FlowHistoryEntry),
82
87
  bucketKey: z.string().optional(),
88
+ // TODO: make meta field more generic
83
89
  meta: z
84
90
  .object({
85
91
  overrideWorkingHours: z.boolean().default(false).optional(),
92
+ engagementTriggerSource: z.nativeEnum(ENGAGEMENT_TRIGGER_SOURCE).optional(),
86
93
  })
87
94
  .nullish(),
88
95
  });
@@ -139,6 +146,11 @@ export const _FlowFilter = z.object({
139
146
  cohorts: z.array(_AmplifierCohortDto.optional()),
140
147
  custom: z.record(z.unknown()).optional(),
141
148
  });
149
+ export const _FlowInstructionsDetails = z.object({
150
+ includeCustomInstructions: z.boolean().optional(),
151
+ customInstructions: z.string().optional(),
152
+ includeOnlyCustomInstructions: z.boolean().optional(),
153
+ });
142
154
  const _FlowTone = z.object({
143
155
  kind: z.string().optional(),
144
156
  });
@@ -180,7 +192,9 @@ const _FlowActionDetails = z.object({
180
192
  });
181
193
 
182
194
  export const _FlowActions = z.object({
195
+ /** @deprecated */
183
196
  includeInstructions: z.boolean().optional(),
197
+ getInstructionsAction: _FlowInstructionsDetails.optional(),
184
198
  includeMarkComplete: z.boolean().optional(),
185
199
  // TODO instructions contact address???
186
200
  /**