@ampsec/platform-client 63.1.1 → 63.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.
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { FindingStatus } from './enums';
2
3
  export declare const _FlowTriggerEventDto: z.ZodObject<{
3
4
  kind: z.ZodString;
4
5
  tid: z.ZodString;
@@ -763,22 +764,106 @@ export declare const _FlowInterval: z.ZodObject<{
763
764
  export type FlowInterval = z.infer<typeof _FlowInterval>;
764
765
  export declare const _FlowActions: z.ZodObject<{
765
766
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
767
+ /**
768
+ * @deprecated Use expirationAction instead
769
+ */
766
770
  expirationActionId: z.ZodOptional<z.ZodString>;
771
+ expirationAction: z.ZodOptional<z.ZodObject<{
772
+ actionId: z.ZodString;
773
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
774
+ }, "strip", z.ZodTypeAny, {
775
+ actionId: string;
776
+ findingStatus?: FindingStatus | undefined;
777
+ }, {
778
+ actionId: string;
779
+ findingStatus?: FindingStatus | undefined;
780
+ }>>;
781
+ /**
782
+ * @deprecated Use simpleTriageYesAction instead
783
+ */
767
784
  simpleTriageYesActId: z.ZodOptional<z.ZodString>;
785
+ simpleTriageYesAction: z.ZodOptional<z.ZodObject<{
786
+ actionId: z.ZodString;
787
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
788
+ }, "strip", z.ZodTypeAny, {
789
+ actionId: string;
790
+ findingStatus?: FindingStatus | undefined;
791
+ }, {
792
+ actionId: string;
793
+ findingStatus?: FindingStatus | undefined;
794
+ }>>;
795
+ /**
796
+ * @deprecated Use simpleTriageNoAction instead
797
+ */
768
798
  simpleTriageNoActId: z.ZodOptional<z.ZodString>;
799
+ simpleTriageNoAction: z.ZodOptional<z.ZodObject<{
800
+ actionId: z.ZodString;
801
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ actionId: string;
804
+ findingStatus?: FindingStatus | undefined;
805
+ }, {
806
+ actionId: string;
807
+ findingStatus?: FindingStatus | undefined;
808
+ }>>;
809
+ /**
810
+ * @deprecated Use resolveNowAction instead
811
+ */
769
812
  resolveNowActionId: z.ZodOptional<z.ZodString>;
813
+ resolveNowAction: z.ZodOptional<z.ZodObject<{
814
+ actionId: z.ZodString;
815
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ actionId: string;
818
+ findingStatus?: FindingStatus | undefined;
819
+ }, {
820
+ actionId: string;
821
+ findingStatus?: FindingStatus | undefined;
822
+ }>>;
770
823
  }, "strip", z.ZodTypeAny, {
771
824
  includeInstructions?: boolean | undefined;
772
825
  expirationActionId?: string | undefined;
826
+ expirationAction?: {
827
+ actionId: string;
828
+ findingStatus?: FindingStatus | undefined;
829
+ } | undefined;
773
830
  simpleTriageYesActId?: string | undefined;
831
+ simpleTriageYesAction?: {
832
+ actionId: string;
833
+ findingStatus?: FindingStatus | undefined;
834
+ } | undefined;
774
835
  simpleTriageNoActId?: string | undefined;
836
+ simpleTriageNoAction?: {
837
+ actionId: string;
838
+ findingStatus?: FindingStatus | undefined;
839
+ } | undefined;
775
840
  resolveNowActionId?: string | undefined;
841
+ resolveNowAction?: {
842
+ actionId: string;
843
+ findingStatus?: FindingStatus | undefined;
844
+ } | undefined;
776
845
  }, {
777
846
  includeInstructions?: boolean | undefined;
778
847
  expirationActionId?: string | undefined;
848
+ expirationAction?: {
849
+ actionId: string;
850
+ findingStatus?: FindingStatus | undefined;
851
+ } | undefined;
779
852
  simpleTriageYesActId?: string | undefined;
853
+ simpleTriageYesAction?: {
854
+ actionId: string;
855
+ findingStatus?: FindingStatus | undefined;
856
+ } | undefined;
780
857
  simpleTriageNoActId?: string | undefined;
858
+ simpleTriageNoAction?: {
859
+ actionId: string;
860
+ findingStatus?: FindingStatus | undefined;
861
+ } | undefined;
781
862
  resolveNowActionId?: string | undefined;
863
+ resolveNowAction?: {
864
+ actionId: string;
865
+ findingStatus?: FindingStatus | undefined;
866
+ } | undefined;
782
867
  }>;
783
868
  export type FlowActions = z.infer<typeof _FlowActions>;
784
869
  export declare const _FlowRewardsConfig: z.ZodObject<{
@@ -922,22 +1007,106 @@ export declare const _FlowSpecDto: z.ZodObject<{
922
1007
  }>>;
923
1008
  actions: z.ZodOptional<z.ZodObject<{
924
1009
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
1010
+ /**
1011
+ * @deprecated Use expirationAction instead
1012
+ */
925
1013
  expirationActionId: z.ZodOptional<z.ZodString>;
1014
+ expirationAction: z.ZodOptional<z.ZodObject<{
1015
+ actionId: z.ZodString;
1016
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ actionId: string;
1019
+ findingStatus?: FindingStatus | undefined;
1020
+ }, {
1021
+ actionId: string;
1022
+ findingStatus?: FindingStatus | undefined;
1023
+ }>>;
1024
+ /**
1025
+ * @deprecated Use simpleTriageYesAction instead
1026
+ */
926
1027
  simpleTriageYesActId: z.ZodOptional<z.ZodString>;
1028
+ simpleTriageYesAction: z.ZodOptional<z.ZodObject<{
1029
+ actionId: z.ZodString;
1030
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ actionId: string;
1033
+ findingStatus?: FindingStatus | undefined;
1034
+ }, {
1035
+ actionId: string;
1036
+ findingStatus?: FindingStatus | undefined;
1037
+ }>>;
1038
+ /**
1039
+ * @deprecated Use simpleTriageNoAction instead
1040
+ */
927
1041
  simpleTriageNoActId: z.ZodOptional<z.ZodString>;
1042
+ simpleTriageNoAction: z.ZodOptional<z.ZodObject<{
1043
+ actionId: z.ZodString;
1044
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ actionId: string;
1047
+ findingStatus?: FindingStatus | undefined;
1048
+ }, {
1049
+ actionId: string;
1050
+ findingStatus?: FindingStatus | undefined;
1051
+ }>>;
1052
+ /**
1053
+ * @deprecated Use resolveNowAction instead
1054
+ */
928
1055
  resolveNowActionId: z.ZodOptional<z.ZodString>;
1056
+ resolveNowAction: z.ZodOptional<z.ZodObject<{
1057
+ actionId: z.ZodString;
1058
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ actionId: string;
1061
+ findingStatus?: FindingStatus | undefined;
1062
+ }, {
1063
+ actionId: string;
1064
+ findingStatus?: FindingStatus | undefined;
1065
+ }>>;
929
1066
  }, "strip", z.ZodTypeAny, {
930
1067
  includeInstructions?: boolean | undefined;
931
1068
  expirationActionId?: string | undefined;
1069
+ expirationAction?: {
1070
+ actionId: string;
1071
+ findingStatus?: FindingStatus | undefined;
1072
+ } | undefined;
932
1073
  simpleTriageYesActId?: string | undefined;
1074
+ simpleTriageYesAction?: {
1075
+ actionId: string;
1076
+ findingStatus?: FindingStatus | undefined;
1077
+ } | undefined;
933
1078
  simpleTriageNoActId?: string | undefined;
1079
+ simpleTriageNoAction?: {
1080
+ actionId: string;
1081
+ findingStatus?: FindingStatus | undefined;
1082
+ } | undefined;
934
1083
  resolveNowActionId?: string | undefined;
1084
+ resolveNowAction?: {
1085
+ actionId: string;
1086
+ findingStatus?: FindingStatus | undefined;
1087
+ } | undefined;
935
1088
  }, {
936
1089
  includeInstructions?: boolean | undefined;
937
1090
  expirationActionId?: string | undefined;
1091
+ expirationAction?: {
1092
+ actionId: string;
1093
+ findingStatus?: FindingStatus | undefined;
1094
+ } | undefined;
938
1095
  simpleTriageYesActId?: string | undefined;
1096
+ simpleTriageYesAction?: {
1097
+ actionId: string;
1098
+ findingStatus?: FindingStatus | undefined;
1099
+ } | undefined;
939
1100
  simpleTriageNoActId?: string | undefined;
1101
+ simpleTriageNoAction?: {
1102
+ actionId: string;
1103
+ findingStatus?: FindingStatus | undefined;
1104
+ } | undefined;
940
1105
  resolveNowActionId?: string | undefined;
1106
+ resolveNowAction?: {
1107
+ actionId: string;
1108
+ findingStatus?: FindingStatus | undefined;
1109
+ } | undefined;
941
1110
  }>>;
942
1111
  rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
943
1112
  isUpperBound: z.ZodBoolean;
@@ -1041,9 +1210,25 @@ export declare const _FlowSpecDto: z.ZodObject<{
1041
1210
  actions?: {
1042
1211
  includeInstructions?: boolean | undefined;
1043
1212
  expirationActionId?: string | undefined;
1213
+ expirationAction?: {
1214
+ actionId: string;
1215
+ findingStatus?: FindingStatus | undefined;
1216
+ } | undefined;
1044
1217
  simpleTriageYesActId?: string | undefined;
1218
+ simpleTriageYesAction?: {
1219
+ actionId: string;
1220
+ findingStatus?: FindingStatus | undefined;
1221
+ } | undefined;
1045
1222
  simpleTriageNoActId?: string | undefined;
1223
+ simpleTriageNoAction?: {
1224
+ actionId: string;
1225
+ findingStatus?: FindingStatus | undefined;
1226
+ } | undefined;
1046
1227
  resolveNowActionId?: string | undefined;
1228
+ resolveNowAction?: {
1229
+ actionId: string;
1230
+ findingStatus?: FindingStatus | undefined;
1231
+ } | undefined;
1047
1232
  } | undefined;
1048
1233
  rewards?: {
1049
1234
  minutes: number;
@@ -1113,9 +1298,25 @@ export declare const _FlowSpecDto: z.ZodObject<{
1113
1298
  actions?: {
1114
1299
  includeInstructions?: boolean | undefined;
1115
1300
  expirationActionId?: string | undefined;
1301
+ expirationAction?: {
1302
+ actionId: string;
1303
+ findingStatus?: FindingStatus | undefined;
1304
+ } | undefined;
1116
1305
  simpleTriageYesActId?: string | undefined;
1306
+ simpleTriageYesAction?: {
1307
+ actionId: string;
1308
+ findingStatus?: FindingStatus | undefined;
1309
+ } | undefined;
1117
1310
  simpleTriageNoActId?: string | undefined;
1311
+ simpleTriageNoAction?: {
1312
+ actionId: string;
1313
+ findingStatus?: FindingStatus | undefined;
1314
+ } | undefined;
1118
1315
  resolveNowActionId?: string | undefined;
1316
+ resolveNowAction?: {
1317
+ actionId: string;
1318
+ findingStatus?: FindingStatus | undefined;
1319
+ } | undefined;
1119
1320
  } | undefined;
1120
1321
  rewards?: {
1121
1322
  minutes: number;
@@ -1258,22 +1459,106 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1258
1459
  }>>;
1259
1460
  actions: z.ZodOptional<z.ZodObject<{
1260
1461
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
1462
+ /**
1463
+ * @deprecated Use expirationAction instead
1464
+ */
1261
1465
  expirationActionId: z.ZodOptional<z.ZodString>;
1466
+ expirationAction: z.ZodOptional<z.ZodObject<{
1467
+ actionId: z.ZodString;
1468
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ actionId: string;
1471
+ findingStatus?: FindingStatus | undefined;
1472
+ }, {
1473
+ actionId: string;
1474
+ findingStatus?: FindingStatus | undefined;
1475
+ }>>;
1476
+ /**
1477
+ * @deprecated Use simpleTriageYesAction instead
1478
+ */
1262
1479
  simpleTriageYesActId: z.ZodOptional<z.ZodString>;
1480
+ simpleTriageYesAction: z.ZodOptional<z.ZodObject<{
1481
+ actionId: z.ZodString;
1482
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ actionId: string;
1485
+ findingStatus?: FindingStatus | undefined;
1486
+ }, {
1487
+ actionId: string;
1488
+ findingStatus?: FindingStatus | undefined;
1489
+ }>>;
1490
+ /**
1491
+ * @deprecated Use simpleTriageNoAction instead
1492
+ */
1263
1493
  simpleTriageNoActId: z.ZodOptional<z.ZodString>;
1494
+ simpleTriageNoAction: z.ZodOptional<z.ZodObject<{
1495
+ actionId: z.ZodString;
1496
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1497
+ }, "strip", z.ZodTypeAny, {
1498
+ actionId: string;
1499
+ findingStatus?: FindingStatus | undefined;
1500
+ }, {
1501
+ actionId: string;
1502
+ findingStatus?: FindingStatus | undefined;
1503
+ }>>;
1504
+ /**
1505
+ * @deprecated Use resolveNowAction instead
1506
+ */
1264
1507
  resolveNowActionId: z.ZodOptional<z.ZodString>;
1508
+ resolveNowAction: z.ZodOptional<z.ZodObject<{
1509
+ actionId: z.ZodString;
1510
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ actionId: string;
1513
+ findingStatus?: FindingStatus | undefined;
1514
+ }, {
1515
+ actionId: string;
1516
+ findingStatus?: FindingStatus | undefined;
1517
+ }>>;
1265
1518
  }, "strip", z.ZodTypeAny, {
1266
1519
  includeInstructions?: boolean | undefined;
1267
1520
  expirationActionId?: string | undefined;
1521
+ expirationAction?: {
1522
+ actionId: string;
1523
+ findingStatus?: FindingStatus | undefined;
1524
+ } | undefined;
1268
1525
  simpleTriageYesActId?: string | undefined;
1526
+ simpleTriageYesAction?: {
1527
+ actionId: string;
1528
+ findingStatus?: FindingStatus | undefined;
1529
+ } | undefined;
1269
1530
  simpleTriageNoActId?: string | undefined;
1531
+ simpleTriageNoAction?: {
1532
+ actionId: string;
1533
+ findingStatus?: FindingStatus | undefined;
1534
+ } | undefined;
1270
1535
  resolveNowActionId?: string | undefined;
1536
+ resolveNowAction?: {
1537
+ actionId: string;
1538
+ findingStatus?: FindingStatus | undefined;
1539
+ } | undefined;
1271
1540
  }, {
1272
1541
  includeInstructions?: boolean | undefined;
1273
1542
  expirationActionId?: string | undefined;
1543
+ expirationAction?: {
1544
+ actionId: string;
1545
+ findingStatus?: FindingStatus | undefined;
1546
+ } | undefined;
1274
1547
  simpleTriageYesActId?: string | undefined;
1548
+ simpleTriageYesAction?: {
1549
+ actionId: string;
1550
+ findingStatus?: FindingStatus | undefined;
1551
+ } | undefined;
1275
1552
  simpleTriageNoActId?: string | undefined;
1553
+ simpleTriageNoAction?: {
1554
+ actionId: string;
1555
+ findingStatus?: FindingStatus | undefined;
1556
+ } | undefined;
1276
1557
  resolveNowActionId?: string | undefined;
1558
+ resolveNowAction?: {
1559
+ actionId: string;
1560
+ findingStatus?: FindingStatus | undefined;
1561
+ } | undefined;
1277
1562
  }>>;
1278
1563
  rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
1279
1564
  isUpperBound: z.ZodBoolean;
@@ -1364,9 +1649,25 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1364
1649
  actions?: {
1365
1650
  includeInstructions?: boolean | undefined;
1366
1651
  expirationActionId?: string | undefined;
1652
+ expirationAction?: {
1653
+ actionId: string;
1654
+ findingStatus?: FindingStatus | undefined;
1655
+ } | undefined;
1367
1656
  simpleTriageYesActId?: string | undefined;
1657
+ simpleTriageYesAction?: {
1658
+ actionId: string;
1659
+ findingStatus?: FindingStatus | undefined;
1660
+ } | undefined;
1368
1661
  simpleTriageNoActId?: string | undefined;
1662
+ simpleTriageNoAction?: {
1663
+ actionId: string;
1664
+ findingStatus?: FindingStatus | undefined;
1665
+ } | undefined;
1369
1666
  resolveNowActionId?: string | undefined;
1667
+ resolveNowAction?: {
1668
+ actionId: string;
1669
+ findingStatus?: FindingStatus | undefined;
1670
+ } | undefined;
1370
1671
  } | undefined;
1371
1672
  rewards?: {
1372
1673
  minutes: number;
@@ -1431,9 +1732,25 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1431
1732
  actions?: {
1432
1733
  includeInstructions?: boolean | undefined;
1433
1734
  expirationActionId?: string | undefined;
1735
+ expirationAction?: {
1736
+ actionId: string;
1737
+ findingStatus?: FindingStatus | undefined;
1738
+ } | undefined;
1434
1739
  simpleTriageYesActId?: string | undefined;
1740
+ simpleTriageYesAction?: {
1741
+ actionId: string;
1742
+ findingStatus?: FindingStatus | undefined;
1743
+ } | undefined;
1435
1744
  simpleTriageNoActId?: string | undefined;
1745
+ simpleTriageNoAction?: {
1746
+ actionId: string;
1747
+ findingStatus?: FindingStatus | undefined;
1748
+ } | undefined;
1436
1749
  resolveNowActionId?: string | undefined;
1750
+ resolveNowAction?: {
1751
+ actionId: string;
1752
+ findingStatus?: FindingStatus | undefined;
1753
+ } | undefined;
1437
1754
  } | undefined;
1438
1755
  rewards?: {
1439
1756
  minutes: number;
@@ -1506,22 +1823,106 @@ export declare const _FlowSpecFilter: z.ZodObject<{
1506
1823
  }>>>;
1507
1824
  actions: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1508
1825
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
1826
+ /**
1827
+ * @deprecated Use expirationAction instead
1828
+ */
1509
1829
  expirationActionId: z.ZodOptional<z.ZodString>;
1830
+ expirationAction: z.ZodOptional<z.ZodObject<{
1831
+ actionId: z.ZodString;
1832
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1833
+ }, "strip", z.ZodTypeAny, {
1834
+ actionId: string;
1835
+ findingStatus?: FindingStatus | undefined;
1836
+ }, {
1837
+ actionId: string;
1838
+ findingStatus?: FindingStatus | undefined;
1839
+ }>>;
1840
+ /**
1841
+ * @deprecated Use simpleTriageYesAction instead
1842
+ */
1510
1843
  simpleTriageYesActId: z.ZodOptional<z.ZodString>;
1844
+ simpleTriageYesAction: z.ZodOptional<z.ZodObject<{
1845
+ actionId: z.ZodString;
1846
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1847
+ }, "strip", z.ZodTypeAny, {
1848
+ actionId: string;
1849
+ findingStatus?: FindingStatus | undefined;
1850
+ }, {
1851
+ actionId: string;
1852
+ findingStatus?: FindingStatus | undefined;
1853
+ }>>;
1854
+ /**
1855
+ * @deprecated Use simpleTriageNoAction instead
1856
+ */
1511
1857
  simpleTriageNoActId: z.ZodOptional<z.ZodString>;
1858
+ simpleTriageNoAction: z.ZodOptional<z.ZodObject<{
1859
+ actionId: z.ZodString;
1860
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1861
+ }, "strip", z.ZodTypeAny, {
1862
+ actionId: string;
1863
+ findingStatus?: FindingStatus | undefined;
1864
+ }, {
1865
+ actionId: string;
1866
+ findingStatus?: FindingStatus | undefined;
1867
+ }>>;
1868
+ /**
1869
+ * @deprecated Use resolveNowAction instead
1870
+ */
1512
1871
  resolveNowActionId: z.ZodOptional<z.ZodString>;
1872
+ resolveNowAction: z.ZodOptional<z.ZodObject<{
1873
+ actionId: z.ZodString;
1874
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof FindingStatus>>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ actionId: string;
1877
+ findingStatus?: FindingStatus | undefined;
1878
+ }, {
1879
+ actionId: string;
1880
+ findingStatus?: FindingStatus | undefined;
1881
+ }>>;
1513
1882
  }, "strip", z.ZodTypeAny, {
1514
1883
  includeInstructions?: boolean | undefined;
1515
1884
  expirationActionId?: string | undefined;
1885
+ expirationAction?: {
1886
+ actionId: string;
1887
+ findingStatus?: FindingStatus | undefined;
1888
+ } | undefined;
1516
1889
  simpleTriageYesActId?: string | undefined;
1890
+ simpleTriageYesAction?: {
1891
+ actionId: string;
1892
+ findingStatus?: FindingStatus | undefined;
1893
+ } | undefined;
1517
1894
  simpleTriageNoActId?: string | undefined;
1895
+ simpleTriageNoAction?: {
1896
+ actionId: string;
1897
+ findingStatus?: FindingStatus | undefined;
1898
+ } | undefined;
1518
1899
  resolveNowActionId?: string | undefined;
1900
+ resolveNowAction?: {
1901
+ actionId: string;
1902
+ findingStatus?: FindingStatus | undefined;
1903
+ } | undefined;
1519
1904
  }, {
1520
1905
  includeInstructions?: boolean | undefined;
1521
1906
  expirationActionId?: string | undefined;
1907
+ expirationAction?: {
1908
+ actionId: string;
1909
+ findingStatus?: FindingStatus | undefined;
1910
+ } | undefined;
1522
1911
  simpleTriageYesActId?: string | undefined;
1912
+ simpleTriageYesAction?: {
1913
+ actionId: string;
1914
+ findingStatus?: FindingStatus | undefined;
1915
+ } | undefined;
1523
1916
  simpleTriageNoActId?: string | undefined;
1917
+ simpleTriageNoAction?: {
1918
+ actionId: string;
1919
+ findingStatus?: FindingStatus | undefined;
1920
+ } | undefined;
1524
1921
  resolveNowActionId?: string | undefined;
1922
+ resolveNowAction?: {
1923
+ actionId: string;
1924
+ findingStatus?: FindingStatus | undefined;
1925
+ } | undefined;
1525
1926
  }>>>;
1526
1927
  rewards: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1527
1928
  isUpperBound: z.ZodBoolean;
@@ -1609,9 +2010,25 @@ export declare const _FlowSpecFilter: z.ZodObject<{
1609
2010
  actions?: {
1610
2011
  includeInstructions?: boolean | undefined;
1611
2012
  expirationActionId?: string | undefined;
2013
+ expirationAction?: {
2014
+ actionId: string;
2015
+ findingStatus?: FindingStatus | undefined;
2016
+ } | undefined;
1612
2017
  simpleTriageYesActId?: string | undefined;
2018
+ simpleTriageYesAction?: {
2019
+ actionId: string;
2020
+ findingStatus?: FindingStatus | undefined;
2021
+ } | undefined;
1613
2022
  simpleTriageNoActId?: string | undefined;
2023
+ simpleTriageNoAction?: {
2024
+ actionId: string;
2025
+ findingStatus?: FindingStatus | undefined;
2026
+ } | undefined;
1614
2027
  resolveNowActionId?: string | undefined;
2028
+ resolveNowAction?: {
2029
+ actionId: string;
2030
+ findingStatus?: FindingStatus | undefined;
2031
+ } | undefined;
1615
2032
  } | undefined;
1616
2033
  rewards?: {
1617
2034
  minutes: number;
@@ -1665,9 +2082,25 @@ export declare const _FlowSpecFilter: z.ZodObject<{
1665
2082
  actions?: {
1666
2083
  includeInstructions?: boolean | undefined;
1667
2084
  expirationActionId?: string | undefined;
2085
+ expirationAction?: {
2086
+ actionId: string;
2087
+ findingStatus?: FindingStatus | undefined;
2088
+ } | undefined;
1668
2089
  simpleTriageYesActId?: string | undefined;
2090
+ simpleTriageYesAction?: {
2091
+ actionId: string;
2092
+ findingStatus?: FindingStatus | undefined;
2093
+ } | undefined;
1669
2094
  simpleTriageNoActId?: string | undefined;
2095
+ simpleTriageNoAction?: {
2096
+ actionId: string;
2097
+ findingStatus?: FindingStatus | undefined;
2098
+ } | undefined;
1670
2099
  resolveNowActionId?: string | undefined;
2100
+ resolveNowAction?: {
2101
+ actionId: string;
2102
+ findingStatus?: FindingStatus | undefined;
2103
+ } | undefined;
1671
2104
  } | undefined;
1672
2105
  rewards?: {
1673
2106
  minutes: number;
@@ -4,6 +4,7 @@ exports._FlowSpecFilter = exports._FlowSpecUpsertDto = exports._FlowSpecDto = ex
4
4
  const zod_1 = require("zod");
5
5
  const base_dto_1 = require("./base.dto");
6
6
  const FilterCriteria_1 = require("../FilterCriteria");
7
+ const enums_1 = require("./enums");
7
8
  /*
8
9
  * /============================\
9
10
  * | Events + History |
@@ -106,13 +107,33 @@ exports._FlowInterval = zod_1.z.object({
106
107
  value: zod_1.z.number().optional(),
107
108
  units: zod_1.z.string().optional(),
108
109
  });
110
+ const _FlowActionDetails = zod_1.z.object({
111
+ actionId: zod_1.z.string(),
112
+ findingStatus: zod_1.z.nativeEnum(enums_1.FindingStatus).optional(),
113
+ });
109
114
  exports._FlowActions = zod_1.z.object({
110
115
  includeInstructions: zod_1.z.boolean().optional(),
111
116
  // TODO instructions contact address???
117
+ /**
118
+ * @deprecated Use expirationAction instead
119
+ */
112
120
  expirationActionId: zod_1.z.string().optional(),
121
+ expirationAction: _FlowActionDetails.optional(),
122
+ /**
123
+ * @deprecated Use simpleTriageYesAction instead
124
+ */
113
125
  simpleTriageYesActId: zod_1.z.string().optional(),
126
+ simpleTriageYesAction: _FlowActionDetails.optional(),
127
+ /**
128
+ * @deprecated Use simpleTriageNoAction instead
129
+ */
114
130
  simpleTriageNoActId: zod_1.z.string().optional(),
131
+ simpleTriageNoAction: _FlowActionDetails.optional(),
132
+ /**
133
+ * @deprecated Use resolveNowAction instead
134
+ */
115
135
  resolveNowActionId: zod_1.z.string().optional(),
136
+ resolveNowAction: _FlowActionDetails.optional(),
116
137
  });
117
138
  exports._FlowRewardsConfig = zod_1.z.object({
118
139
  isUpperBound: zod_1.z.boolean(),
@@ -1 +1 @@
1
- {"version":3,"file":"flows.dto.js","sourceRoot":"","sources":["../../../src/dto/flows.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAoD;AACpD,sDAAiE;AAEjE;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,IAAI,EAAE,OAAC;SACJ,MAAM,CAAC;QACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC;SACD,QAAQ,EAAE;IACb,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACzB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC3B,CAAC;SACD,QAAQ,EAAE;IACb,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAIU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,OAAO,EAAE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OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;QAClC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;KAClC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CACH,CAAC;AAGW,QAAA,kBAAkB,GAAG,oBAAY,CAAC,IAAI,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"}
@@ -118,21 +118,93 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<{
118
118
  actions: z.ZodOptional<z.ZodObject<{
119
119
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
120
120
  expirationActionId: z.ZodOptional<z.ZodString>;
121
+ expirationAction: z.ZodOptional<z.ZodObject<{
122
+ actionId: z.ZodString;
123
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ actionId: string;
126
+ findingStatus?: import("..").FindingStatus | undefined;
127
+ }, {
128
+ actionId: string;
129
+ findingStatus?: import("..").FindingStatus | undefined;
130
+ }>>;
121
131
  simpleTriageYesActId: z.ZodOptional<z.ZodString>;
132
+ simpleTriageYesAction: z.ZodOptional<z.ZodObject<{
133
+ actionId: z.ZodString;
134
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ actionId: string;
137
+ findingStatus?: import("..").FindingStatus | undefined;
138
+ }, {
139
+ actionId: string;
140
+ findingStatus?: import("..").FindingStatus | undefined;
141
+ }>>;
122
142
  simpleTriageNoActId: z.ZodOptional<z.ZodString>;
143
+ simpleTriageNoAction: z.ZodOptional<z.ZodObject<{
144
+ actionId: z.ZodString;
145
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ actionId: string;
148
+ findingStatus?: import("..").FindingStatus | undefined;
149
+ }, {
150
+ actionId: string;
151
+ findingStatus?: import("..").FindingStatus | undefined;
152
+ }>>;
123
153
  resolveNowActionId: z.ZodOptional<z.ZodString>;
154
+ resolveNowAction: z.ZodOptional<z.ZodObject<{
155
+ actionId: z.ZodString;
156
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ actionId: string;
159
+ findingStatus?: import("..").FindingStatus | undefined;
160
+ }, {
161
+ actionId: string;
162
+ findingStatus?: import("..").FindingStatus | undefined;
163
+ }>>;
124
164
  }, "strip", z.ZodTypeAny, {
125
165
  includeInstructions?: boolean | undefined;
126
166
  expirationActionId?: string | undefined;
167
+ expirationAction?: {
168
+ actionId: string;
169
+ findingStatus?: import("..").FindingStatus | undefined;
170
+ } | undefined;
127
171
  simpleTriageYesActId?: string | undefined;
172
+ simpleTriageYesAction?: {
173
+ actionId: string;
174
+ findingStatus?: import("..").FindingStatus | undefined;
175
+ } | undefined;
128
176
  simpleTriageNoActId?: string | undefined;
177
+ simpleTriageNoAction?: {
178
+ actionId: string;
179
+ findingStatus?: import("..").FindingStatus | undefined;
180
+ } | undefined;
129
181
  resolveNowActionId?: string | undefined;
182
+ resolveNowAction?: {
183
+ actionId: string;
184
+ findingStatus?: import("..").FindingStatus | undefined;
185
+ } | undefined;
130
186
  }, {
131
187
  includeInstructions?: boolean | undefined;
132
188
  expirationActionId?: string | undefined;
189
+ expirationAction?: {
190
+ actionId: string;
191
+ findingStatus?: import("..").FindingStatus | undefined;
192
+ } | undefined;
133
193
  simpleTriageYesActId?: string | undefined;
194
+ simpleTriageYesAction?: {
195
+ actionId: string;
196
+ findingStatus?: import("..").FindingStatus | undefined;
197
+ } | undefined;
134
198
  simpleTriageNoActId?: string | undefined;
199
+ simpleTriageNoAction?: {
200
+ actionId: string;
201
+ findingStatus?: import("..").FindingStatus | undefined;
202
+ } | undefined;
135
203
  resolveNowActionId?: string | undefined;
204
+ resolveNowAction?: {
205
+ actionId: string;
206
+ findingStatus?: import("..").FindingStatus | undefined;
207
+ } | undefined;
136
208
  }>>;
137
209
  rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
210
  isUpperBound: z.ZodBoolean;
@@ -223,9 +295,25 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<{
223
295
  actions?: {
224
296
  includeInstructions?: boolean | undefined;
225
297
  expirationActionId?: string | undefined;
298
+ expirationAction?: {
299
+ actionId: string;
300
+ findingStatus?: import("..").FindingStatus | undefined;
301
+ } | undefined;
226
302
  simpleTriageYesActId?: string | undefined;
303
+ simpleTriageYesAction?: {
304
+ actionId: string;
305
+ findingStatus?: import("..").FindingStatus | undefined;
306
+ } | undefined;
227
307
  simpleTriageNoActId?: string | undefined;
308
+ simpleTriageNoAction?: {
309
+ actionId: string;
310
+ findingStatus?: import("..").FindingStatus | undefined;
311
+ } | undefined;
228
312
  resolveNowActionId?: string | undefined;
313
+ resolveNowAction?: {
314
+ actionId: string;
315
+ findingStatus?: import("..").FindingStatus | undefined;
316
+ } | undefined;
229
317
  } | undefined;
230
318
  rewards?: {
231
319
  minutes: number;
@@ -290,9 +378,25 @@ export declare const _PlatformFlowSpecUpsertDto: z.ZodObject<{
290
378
  actions?: {
291
379
  includeInstructions?: boolean | undefined;
292
380
  expirationActionId?: string | undefined;
381
+ expirationAction?: {
382
+ actionId: string;
383
+ findingStatus?: import("..").FindingStatus | undefined;
384
+ } | undefined;
293
385
  simpleTriageYesActId?: string | undefined;
386
+ simpleTriageYesAction?: {
387
+ actionId: string;
388
+ findingStatus?: import("..").FindingStatus | undefined;
389
+ } | undefined;
294
390
  simpleTriageNoActId?: string | undefined;
391
+ simpleTriageNoAction?: {
392
+ actionId: string;
393
+ findingStatus?: import("..").FindingStatus | undefined;
394
+ } | undefined;
295
395
  resolveNowActionId?: string | undefined;
396
+ resolveNowAction?: {
397
+ actionId: string;
398
+ findingStatus?: import("..").FindingStatus | undefined;
399
+ } | undefined;
296
400
  } | undefined;
297
401
  rewards?: {
298
402
  minutes: number;
@@ -439,21 +543,93 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<{
439
543
  actions: z.ZodOptional<z.ZodObject<{
440
544
  includeInstructions: z.ZodOptional<z.ZodBoolean>;
441
545
  expirationActionId: z.ZodOptional<z.ZodString>;
546
+ expirationAction: z.ZodOptional<z.ZodObject<{
547
+ actionId: z.ZodString;
548
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ actionId: string;
551
+ findingStatus?: import("..").FindingStatus | undefined;
552
+ }, {
553
+ actionId: string;
554
+ findingStatus?: import("..").FindingStatus | undefined;
555
+ }>>;
442
556
  simpleTriageYesActId: z.ZodOptional<z.ZodString>;
557
+ simpleTriageYesAction: z.ZodOptional<z.ZodObject<{
558
+ actionId: z.ZodString;
559
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ actionId: string;
562
+ findingStatus?: import("..").FindingStatus | undefined;
563
+ }, {
564
+ actionId: string;
565
+ findingStatus?: import("..").FindingStatus | undefined;
566
+ }>>;
443
567
  simpleTriageNoActId: z.ZodOptional<z.ZodString>;
568
+ simpleTriageNoAction: z.ZodOptional<z.ZodObject<{
569
+ actionId: z.ZodString;
570
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ actionId: string;
573
+ findingStatus?: import("..").FindingStatus | undefined;
574
+ }, {
575
+ actionId: string;
576
+ findingStatus?: import("..").FindingStatus | undefined;
577
+ }>>;
444
578
  resolveNowActionId: z.ZodOptional<z.ZodString>;
579
+ resolveNowAction: z.ZodOptional<z.ZodObject<{
580
+ actionId: z.ZodString;
581
+ findingStatus: z.ZodOptional<z.ZodNativeEnum<typeof import("..").FindingStatus>>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ actionId: string;
584
+ findingStatus?: import("..").FindingStatus | undefined;
585
+ }, {
586
+ actionId: string;
587
+ findingStatus?: import("..").FindingStatus | undefined;
588
+ }>>;
445
589
  }, "strip", z.ZodTypeAny, {
446
590
  includeInstructions?: boolean | undefined;
447
591
  expirationActionId?: string | undefined;
592
+ expirationAction?: {
593
+ actionId: string;
594
+ findingStatus?: import("..").FindingStatus | undefined;
595
+ } | undefined;
448
596
  simpleTriageYesActId?: string | undefined;
597
+ simpleTriageYesAction?: {
598
+ actionId: string;
599
+ findingStatus?: import("..").FindingStatus | undefined;
600
+ } | undefined;
449
601
  simpleTriageNoActId?: string | undefined;
602
+ simpleTriageNoAction?: {
603
+ actionId: string;
604
+ findingStatus?: import("..").FindingStatus | undefined;
605
+ } | undefined;
450
606
  resolveNowActionId?: string | undefined;
607
+ resolveNowAction?: {
608
+ actionId: string;
609
+ findingStatus?: import("..").FindingStatus | undefined;
610
+ } | undefined;
451
611
  }, {
452
612
  includeInstructions?: boolean | undefined;
453
613
  expirationActionId?: string | undefined;
614
+ expirationAction?: {
615
+ actionId: string;
616
+ findingStatus?: import("..").FindingStatus | undefined;
617
+ } | undefined;
454
618
  simpleTriageYesActId?: string | undefined;
619
+ simpleTriageYesAction?: {
620
+ actionId: string;
621
+ findingStatus?: import("..").FindingStatus | undefined;
622
+ } | undefined;
455
623
  simpleTriageNoActId?: string | undefined;
624
+ simpleTriageNoAction?: {
625
+ actionId: string;
626
+ findingStatus?: import("..").FindingStatus | undefined;
627
+ } | undefined;
456
628
  resolveNowActionId?: string | undefined;
629
+ resolveNowAction?: {
630
+ actionId: string;
631
+ findingStatus?: import("..").FindingStatus | undefined;
632
+ } | undefined;
457
633
  }>>;
458
634
  rewards: z.ZodOptional<z.ZodArray<z.ZodObject<{
459
635
  isUpperBound: z.ZodBoolean;
@@ -557,9 +733,25 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<{
557
733
  actions?: {
558
734
  includeInstructions?: boolean | undefined;
559
735
  expirationActionId?: string | undefined;
736
+ expirationAction?: {
737
+ actionId: string;
738
+ findingStatus?: import("..").FindingStatus | undefined;
739
+ } | undefined;
560
740
  simpleTriageYesActId?: string | undefined;
741
+ simpleTriageYesAction?: {
742
+ actionId: string;
743
+ findingStatus?: import("..").FindingStatus | undefined;
744
+ } | undefined;
561
745
  simpleTriageNoActId?: string | undefined;
746
+ simpleTriageNoAction?: {
747
+ actionId: string;
748
+ findingStatus?: import("..").FindingStatus | undefined;
749
+ } | undefined;
562
750
  resolveNowActionId?: string | undefined;
751
+ resolveNowAction?: {
752
+ actionId: string;
753
+ findingStatus?: import("..").FindingStatus | undefined;
754
+ } | undefined;
563
755
  } | undefined;
564
756
  rewards?: {
565
757
  minutes: number;
@@ -629,9 +821,25 @@ export declare const _PlatformFlowSpecDto: z.ZodObject<{
629
821
  actions?: {
630
822
  includeInstructions?: boolean | undefined;
631
823
  expirationActionId?: string | undefined;
824
+ expirationAction?: {
825
+ actionId: string;
826
+ findingStatus?: import("..").FindingStatus | undefined;
827
+ } | undefined;
632
828
  simpleTriageYesActId?: string | undefined;
829
+ simpleTriageYesAction?: {
830
+ actionId: string;
831
+ findingStatus?: import("..").FindingStatus | undefined;
832
+ } | undefined;
633
833
  simpleTriageNoActId?: string | undefined;
834
+ simpleTriageNoAction?: {
835
+ actionId: string;
836
+ findingStatus?: import("..").FindingStatus | undefined;
837
+ } | undefined;
634
838
  resolveNowActionId?: string | undefined;
839
+ resolveNowAction?: {
840
+ actionId: string;
841
+ findingStatus?: import("..").FindingStatus | undefined;
842
+ } | undefined;
635
843
  } | undefined;
636
844
  rewards?: {
637
845
  minutes: number;
@@ -1,5 +1,5 @@
1
- import { ActionExecutionDto, AgentDto, AgentUpsertDto, AssetDto, CustomActionDto, CustomActionUpsertDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, TokenDto, UserDto } from '../dto';
2
- import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService } from '.';
1
+ import { ActionExecutionDto, AgentDto, AgentUpsertDto, AssetDto, CustomScoreCohortDto, CustomScoreCohortUpsertDto, CustomScoreValueDto, CustomScoreValueUpsertDto, FindingSpecDto, FindingSpecUpsertDto, ProviderDto, ReportResultDto, SaasAssetDto, SaasComponentDto, SaasUserDto, TenantDto, TenantUpsertDto, TokenDto, UserDto } from '../dto';
2
+ import { AmpEntityService, AmpDataService, AmpReportService, AmpSettingsService, ConnectorsService, FindingsInsightsService, FindingsService, NotificationService, PredictionService, CustomActionsService } from '.';
3
3
  import { AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, EnumService, RestClient } from './rest';
4
4
  import { UsersInsightsService } from './usersInsights.service';
5
5
  import { FlowSpecsService } from './flowSpecs.service';
@@ -23,7 +23,7 @@ export declare class AmpApi {
23
23
  readonly asset: AmpDataService<AssetDto>;
24
24
  readonly cohorts: CohortService;
25
25
  readonly connectors: ConnectorsService;
26
- readonly customActions: AmpEntityService<CustomActionUpsertDto, CustomActionDto>;
26
+ readonly customActions: CustomActionsService;
27
27
  readonly customScoreValues: AmpEntityService<CustomScoreValueUpsertDto, CustomScoreValueDto>;
28
28
  readonly customScoreCohorts: AmpEntityService<CustomScoreCohortUpsertDto, CustomScoreCohortDto>;
29
29
  readonly enums: EnumService;
@@ -26,7 +26,7 @@ class AmpApi {
26
26
  this.asset = new _1.AmpDataServiceImpl(rest, constants_1.KIND.ASSETS);
27
27
  this.cohorts = new CohortService_1.CohortService(rest);
28
28
  this.connectors = new _1.ConnectorsService(rest);
29
- this.customActions = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_ACTIONS);
29
+ this.customActions = new _1.CustomActionsService(rest);
30
30
  this.customScoreCohorts = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_COHORTS);
31
31
  this.customScoreValues = new _1.AmpEntityServiceImpl(rest, constants_1.KIND.CUSTOM_SCORE_VALUES);
32
32
  this.enums = new rest_1.DefaultEnumService(rest);
@@ -1 +1 @@
1
- {"version":3,"file":"AmpApi.js","sourceRoot":"","sources":["../../../src/services/AmpApi.ts"],"names":[],"mappings":";;;AAuBA,wBAaW;AACX,2CAAmD;AACnD,iCAA0J;AAC1J,mEAA6D;AAC7D,2DAAqD;AACrD,wDAAmD;AAInD;;;;;;;;;;;GAWG;AACH,MAAa,MAAM;IA8BjB,YAAY,IAAgB;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,qBAAkB,CAAqB,IAAI,EAAE,gBAAI,CAAC,gBAAgB,CAAC,CAAC;QAChG,IAAI,CAAC,MAAM,GAAG,IAAI,uBAAoB,CAA2B,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,qBAAkB,CAAW,IAAI,EAAE,gBAAI,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,OAAO,GAAG,IAAI,6BAAa,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAoB,CAAyC,IAAI,EAAE,gBAAI,CAAC,cAAc,CAAC,CAAC;QACjH,IAAI,CAAC,kBAAkB,GAAG,IAAI,uBAAoB,CAAmD,IAA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ActionSummaryDto, Page } from '../dto';
3
+ import { AmpEntityServiceImpl } from './entity.service';
4
+ import { RestClient } from './rest';
5
+ export declare class CustomActionsService extends AmpEntityServiceImpl<CustomActionUpsertDto, CustomActionDto> {
6
+ constructor(rest: RestClient);
7
+ summary: (filter?: FilterCriteria) => Promise<Page<CustomerActionSummaryDto>>;
8
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomActionsService = void 0;
4
+ const constants_1 = require("./constants");
5
+ const entity_service_1 = require("./entity.service");
6
+ class CustomActionsService extends entity_service_1.AmpEntityServiceImpl {
7
+ constructor(rest) {
8
+ super(rest, constants_1.KIND.CUSTOM_ACTIONS);
9
+ this.summary = async (filter) => {
10
+ const res = await this.rest.call({
11
+ url: `/${this.targetApi}/v1/${this.kind}/_summary`,
12
+ method: 'GET',
13
+ params: filter,
14
+ });
15
+ return res.data;
16
+ };
17
+ }
18
+ }
19
+ exports.CustomActionsService = CustomActionsService;
20
+ //# sourceMappingURL=customActionsService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customActionsService.js","sourceRoot":"","sources":["../../../src/services/customActionsService.ts"],"names":[],"mappings":";;;AAEA,2CAAiC;AACjC,qDAAsD;AAGtD,MAAa,oBAAqB,SAAQ,qCAA4D;IACpG,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,EAAE,gBAAI,CAAC,cAAc,CAAC,CAAC;QAEnC,YAAO,GAAG,KAAK,EAAE,MAAuB,EAA2C,EAAE;YACnF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC/B,GAAG,EAAE,IAAI,IAAI,CAAC,SAAS,OAAO,IAAI,CAAC,IAAI,WAAW;gBAClD,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,MAAM;aACf,CAAC,CAAC;YACH,OAAO,GAAG,CAAC,IAAsC,CAAC;QACpD,CAAC,CAAC;IARF,CAAC;CASF;AAZD,oDAYC"}
@@ -17,3 +17,4 @@ export * from './notification.service';
17
17
  export * from './reports.service';
18
18
  export * from './contentful.service';
19
19
  export * from './prediction.service';
20
+ export * from './customActionsService';
@@ -33,4 +33,5 @@ __exportStar(require("./notification.service"), exports);
33
33
  __exportStar(require("./reports.service"), exports);
34
34
  __exportStar(require("./contentful.service"), exports);
35
35
  __exportStar(require("./prediction.service"), exports);
36
+ __exportStar(require("./customActionsService"), exports);
36
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2DAAyC;AACzC,iDAA+B;AAC/B,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,yCAAuB;AACvB,uDAAqC;AACrC,qDAAmC;AACnC,0CAAwB;AACxB,uDAAqC;AACrC,yDAAuC;AACvC,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2DAAyC;AACzC,iDAA+B;AAC/B,mDAAiC;AACjC,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,yCAAuB;AACvB,uDAAqC;AACrC,qDAAmC;AACnC,0CAAwB;AACxB,uDAAqC;AACrC,yDAAuC;AACvC,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AACrC,yDAAuC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "63.1.1",
3
+ "version": "63.3.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,6 +1,7 @@
1
1
  import {z} from 'zod';
2
2
  import {_BaseDto, _BaseUpsertDto} from './base.dto';
3
3
  import {_PaginationFilter, _SortFilter} from '../FilterCriteria';
4
+ import {FindingStatus} from './enums';
4
5
 
5
6
  /*
6
7
  * /============================\
@@ -129,13 +130,34 @@ export const _FlowInterval = z.object({
129
130
  });
130
131
  export type FlowInterval = z.infer<typeof _FlowInterval>;
131
132
 
133
+ const _FlowActionDetails = z.object({
134
+ actionId: z.string(),
135
+ findingStatus: z.nativeEnum(FindingStatus).optional(),
136
+ });
137
+
132
138
  export const _FlowActions = z.object({
133
139
  includeInstructions: z.boolean().optional(),
134
140
  // TODO instructions contact address???
141
+ /**
142
+ * @deprecated Use expirationAction instead
143
+ */
135
144
  expirationActionId: z.string().optional(),
145
+ expirationAction: _FlowActionDetails.optional(),
146
+ /**
147
+ * @deprecated Use simpleTriageYesAction instead
148
+ */
136
149
  simpleTriageYesActId: z.string().optional(),
150
+ simpleTriageYesAction: _FlowActionDetails.optional(),
151
+ /**
152
+ * @deprecated Use simpleTriageNoAction instead
153
+ */
137
154
  simpleTriageNoActId: z.string().optional(),
155
+ simpleTriageNoAction: _FlowActionDetails.optional(),
156
+ /**
157
+ * @deprecated Use resolveNowAction instead
158
+ */
138
159
  resolveNowActionId: z.string().optional(),
160
+ resolveNowAction: _FlowActionDetails.optional(),
139
161
  });
140
162
  export type FlowActions = z.infer<typeof _FlowActions>;
141
163
  export const _FlowRewardsConfig = z.object({
@@ -3,8 +3,6 @@ import {
3
3
  AgentDto,
4
4
  AgentUpsertDto,
5
5
  AssetDto,
6
- CustomActionDto,
7
- CustomActionUpsertDto,
8
6
  CustomScoreCohortDto,
9
7
  CustomScoreCohortUpsertDto,
10
8
  CustomScoreValueDto,
@@ -34,6 +32,7 @@ import {
34
32
  FindingsService,
35
33
  NotificationService,
36
34
  PredictionService,
35
+ CustomActionsService,
37
36
  } from '.';
38
37
  import {KIND, TARGET_API_AGENT} from './constants';
39
38
  import {getAmpRestClient, AmpRestClientOptions, AgentIdentityService, ConnectorInstallService, DefaultEnumService, EnumService, RestClient} from './rest';
@@ -61,7 +60,7 @@ export class AmpApi {
61
60
  readonly asset: AmpDataService<AssetDto>;
62
61
  readonly cohorts: CohortService;
63
62
  readonly connectors: ConnectorsService;
64
- readonly customActions: AmpEntityService<CustomActionUpsertDto, CustomActionDto>;
63
+ readonly customActions: CustomActionsService;
65
64
  readonly customScoreValues: AmpEntityService<CustomScoreValueUpsertDto, CustomScoreValueDto>;
66
65
  readonly customScoreCohorts: AmpEntityService<CustomScoreCohortUpsertDto, CustomScoreCohortDto>;
67
66
  readonly enums: EnumService;
@@ -91,7 +90,7 @@ export class AmpApi {
91
90
  this.asset = new AmpDataServiceImpl<AssetDto>(rest, KIND.ASSETS);
92
91
  this.cohorts = new CohortService(rest);
93
92
  this.connectors = new ConnectorsService(rest);
94
- this.customActions = new AmpEntityServiceImpl<CustomActionUpsertDto, CustomActionDto>(rest, KIND.CUSTOM_ACTIONS);
93
+ this.customActions = new CustomActionsService(rest);
95
94
  this.customScoreCohorts = new AmpEntityServiceImpl<CustomScoreCohortUpsertDto, CustomScoreCohortDto>(rest, KIND.CUSTOM_SCORE_COHORTS);
96
95
  this.customScoreValues = new AmpEntityServiceImpl<CustomScoreValueUpsertDto, CustomScoreValueDto>(rest, KIND.CUSTOM_SCORE_VALUES);
97
96
  this.enums = new DefaultEnumService(rest);
@@ -0,0 +1,19 @@
1
+ import {FilterCriteria} from '../FilterCriteria';
2
+ import {CustomActionDto, CustomActionUpsertDto, CustomerActionSummaryDto, Page} from '../dto';
3
+ import {KIND} from './constants';
4
+ import {AmpEntityServiceImpl} from './entity.service';
5
+ import {RestClient} from './rest';
6
+
7
+ export class CustomActionsService extends AmpEntityServiceImpl<CustomActionUpsertDto, CustomActionDto> {
8
+ constructor(rest: RestClient) {
9
+ super(rest, KIND.CUSTOM_ACTIONS);
10
+ }
11
+ summary = async (filter?: FilterCriteria): Promise<Page<CustomerActionSummaryDto>> => {
12
+ const res = await this.rest.call({
13
+ url: `/${this.targetApi}/v1/${this.kind}/_summary`,
14
+ method: 'GET',
15
+ params: filter,
16
+ });
17
+ return res.data as Page<CustomerActionSummaryDto>;
18
+ };
19
+ }
@@ -17,3 +17,4 @@ export * from './notification.service';
17
17
  export * from './reports.service';
18
18
  export * from './contentful.service';
19
19
  export * from './prediction.service';
20
+ export * from './customActionsService';