@ampsec/platform-client 63.2.0 → 64.0.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 +12 -6
- package/build/src/dto/actionExecution.dto.js +2 -1
- package/build/src/dto/actionExecution.dto.js.map +1 -1
- package/build/src/dto/flows.dto.d.ts +433 -0
- package/build/src/dto/flows.dto.js +21 -0
- package/build/src/dto/flows.dto.js.map +1 -1
- package/build/src/dto/platform/platform.actionExecution.dto.d.ts +12 -6
- package/build/src/dto/platform/platform.flows.dto.d.ts +208 -0
- package/package.json +1 -1
- package/src/dto/actionExecution.dto.ts +2 -1
- package/src/dto/flows.dto.ts +22 -0
|
@@ -10,7 +10,8 @@ export declare const _ActionExecutionDto: z.ZodObject<{
|
|
|
10
10
|
updatedAt: z.ZodString;
|
|
11
11
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
12
12
|
tid: z.ZodString;
|
|
13
|
-
|
|
13
|
+
actionSpecId: z.ZodString;
|
|
14
|
+
flowStateId: z.ZodNullable<z.ZodString>;
|
|
14
15
|
status: z.ZodNativeEnum<typeof ActionExecutionStatus>;
|
|
15
16
|
input: z.ZodUnknown;
|
|
16
17
|
output: z.ZodUnknown;
|
|
@@ -23,7 +24,8 @@ export declare const _ActionExecutionDto: z.ZodObject<{
|
|
|
23
24
|
createdAt: string;
|
|
24
25
|
updatedAt: string;
|
|
25
26
|
deletedAt: string | null;
|
|
26
|
-
|
|
27
|
+
actionSpecId: string;
|
|
28
|
+
flowStateId: string | null;
|
|
27
29
|
executionTime: string | null;
|
|
28
30
|
executionDuration: number | null;
|
|
29
31
|
input?: unknown;
|
|
@@ -35,7 +37,8 @@ export declare const _ActionExecutionDto: z.ZodObject<{
|
|
|
35
37
|
createdAt: string;
|
|
36
38
|
updatedAt: string;
|
|
37
39
|
deletedAt: string | null;
|
|
38
|
-
|
|
40
|
+
actionSpecId: string;
|
|
41
|
+
flowStateId: string | null;
|
|
39
42
|
executionTime: string | null;
|
|
40
43
|
executionDuration: number | null;
|
|
41
44
|
input?: unknown;
|
|
@@ -50,14 +53,16 @@ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
|
|
|
50
53
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
51
54
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
52
55
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
|
|
56
|
+
actionSpecId: z.ZodString;
|
|
57
|
+
flowStateId: z.ZodNullable<z.ZodString>;
|
|
54
58
|
output: z.ZodUnknown;
|
|
55
59
|
executionTime: z.ZodNullable<z.ZodString>;
|
|
56
60
|
executionDuration: z.ZodNullable<z.ZodNumber>;
|
|
57
61
|
}, "strip", z.ZodTypeAny, {
|
|
58
62
|
status: ActionExecutionStatus;
|
|
59
63
|
tid: string;
|
|
60
|
-
|
|
64
|
+
actionSpecId: string;
|
|
65
|
+
flowStateId: string | null;
|
|
61
66
|
executionTime: string | null;
|
|
62
67
|
executionDuration: number | null;
|
|
63
68
|
input?: unknown;
|
|
@@ -69,7 +74,8 @@ export declare const _ActionExecutionUpsertDto: z.ZodObject<{
|
|
|
69
74
|
}, {
|
|
70
75
|
status: ActionExecutionStatus;
|
|
71
76
|
tid: string;
|
|
72
|
-
|
|
77
|
+
actionSpecId: string;
|
|
78
|
+
flowStateId: string | null;
|
|
73
79
|
executionTime: string | null;
|
|
74
80
|
executionDuration: number | null;
|
|
75
81
|
input?: unknown;
|
|
@@ -10,7 +10,8 @@ exports._ActionExecutionInput = zod_1.z.unknown();
|
|
|
10
10
|
exports._ActionExecutionOutput = zod_1.z.unknown();
|
|
11
11
|
exports._ActionExecutionDto = base_dto_1._BaseDto.extend({
|
|
12
12
|
tid: zod_1.z.string(),
|
|
13
|
-
|
|
13
|
+
actionSpecId: zod_1.z.string(),
|
|
14
|
+
flowStateId: zod_1.z.nullable(zod_1.z.string()),
|
|
14
15
|
status: zod_1.z.nativeEnum(actionExecution_status_1.ActionExecutionStatus),
|
|
15
16
|
input: exports._ActionExecutionInput,
|
|
16
17
|
output: exports._ActionExecutionOutput,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionExecution.dto.js","sourceRoot":"","sources":["../../../src/dto/actionExecution.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2EAAqE;AAErE,kIAAkI;AACrH,QAAA,qBAAqB,GAAG,OAAC,CAAC,OAAO,EAAE,CAAC;AAEjD,kIAAkI;AACrH,QAAA,sBAAsB,GAAG,OAAC,CAAC,OAAO,EAAE,CAAC;AAGrC,QAAA,mBAAmB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACjD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"actionExecution.dto.js","sourceRoot":"","sources":["../../../src/dto/actionExecution.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2EAAqE;AAErE,kIAAkI;AACrH,QAAA,qBAAqB,GAAG,OAAC,CAAC,OAAO,EAAE,CAAC;AAEjD,kIAAkI;AACrH,QAAA,sBAAsB,GAAG,OAAC,CAAC,OAAO,EAAE,CAAC;AAGrC,QAAA,mBAAmB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACjD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,8CAAqB,CAAC;IAC3C,KAAK,EAAE,6BAAqB;IAC5B,MAAM,EAAE,8BAAsB;IAC9B,aAAa,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACrC,iBAAiB,EAAE,OAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1C,CAAC,CAAC;AAGU,QAAA,yBAAyB,GAAG,2BAAmB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"flows.dto.js","sourceRoot":"","sources":["../../../src/dto/flows.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAoD;AACpD,sDAAiE;AACjE,mCAAsC;AAEtC;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,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AC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAC,CAAC,CAAC,QAAQ,EAAE;IACrE,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,EAAC,CAAC,CAAC,QAAQ,EAAE;IAC5D,QAAQ,EAAE,OAAC;SACR,MAAM,CAAC;QACN,aAAa,EAAE,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"}
|
|
@@ -2,7 +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
|
-
|
|
5
|
+
actionSpecId: z.ZodString;
|
|
6
|
+
flowStateId: z.ZodNullable<z.ZodString>;
|
|
6
7
|
output: z.ZodUnknown;
|
|
7
8
|
executionTime: z.ZodNullable<z.ZodString>;
|
|
8
9
|
executionDuration: z.ZodNullable<z.ZodNumber>;
|
|
@@ -18,7 +19,8 @@ export declare const _PlatformActionExecutionDto: z.ZodObject<{
|
|
|
18
19
|
createdAt: string;
|
|
19
20
|
updatedAt: string;
|
|
20
21
|
deletedAt: string | null;
|
|
21
|
-
|
|
22
|
+
actionSpecId: string;
|
|
23
|
+
flowStateId: string | null;
|
|
22
24
|
executionTime: string | null;
|
|
23
25
|
executionDuration: number | null;
|
|
24
26
|
input?: unknown;
|
|
@@ -30,7 +32,8 @@ export declare const _PlatformActionExecutionDto: z.ZodObject<{
|
|
|
30
32
|
createdAt: string;
|
|
31
33
|
updatedAt: string;
|
|
32
34
|
deletedAt: string | null;
|
|
33
|
-
|
|
35
|
+
actionSpecId: string;
|
|
36
|
+
flowStateId: string | null;
|
|
34
37
|
executionTime: string | null;
|
|
35
38
|
executionDuration: number | null;
|
|
36
39
|
input?: unknown;
|
|
@@ -40,7 +43,8 @@ export type PlatformActionExecutionDto = z.infer<typeof _PlatformActionExecution
|
|
|
40
43
|
export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<{
|
|
41
44
|
input: z.ZodUnknown;
|
|
42
45
|
status: z.ZodNativeEnum<typeof import("..").ActionExecutionStatus>;
|
|
43
|
-
|
|
46
|
+
actionSpecId: z.ZodString;
|
|
47
|
+
flowStateId: z.ZodNullable<z.ZodString>;
|
|
44
48
|
output: z.ZodUnknown;
|
|
45
49
|
executionTime: z.ZodNullable<z.ZodString>;
|
|
46
50
|
executionDuration: z.ZodNullable<z.ZodNumber>;
|
|
@@ -51,7 +55,8 @@ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<{
|
|
|
51
55
|
tid: z.ZodOptional<z.ZodString>;
|
|
52
56
|
}, "strip", z.ZodTypeAny, {
|
|
53
57
|
status: import("..").ActionExecutionStatus;
|
|
54
|
-
|
|
58
|
+
actionSpecId: string;
|
|
59
|
+
flowStateId: string | null;
|
|
55
60
|
executionTime: string | null;
|
|
56
61
|
executionDuration: number | null;
|
|
57
62
|
input?: unknown;
|
|
@@ -63,7 +68,8 @@ export declare const _PlatformActionExecutionUpsertDto: z.ZodObject<{
|
|
|
63
68
|
tid?: string | undefined;
|
|
64
69
|
}, {
|
|
65
70
|
status: import("..").ActionExecutionStatus;
|
|
66
|
-
|
|
71
|
+
actionSpecId: string;
|
|
72
|
+
flowStateId: string | null;
|
|
67
73
|
executionTime: string | null;
|
|
68
74
|
executionDuration: number | null;
|
|
69
75
|
input?: unknown;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -11,7 +11,8 @@ export type ActionExecutionOutput = z.infer<typeof _ActionExecutionOutput>;
|
|
|
11
11
|
|
|
12
12
|
export const _ActionExecutionDto = _BaseDto.extend({
|
|
13
13
|
tid: z.string(),
|
|
14
|
-
|
|
14
|
+
actionSpecId: z.string(),
|
|
15
|
+
flowStateId: z.nullable(z.string()),
|
|
15
16
|
status: z.nativeEnum(ActionExecutionStatus),
|
|
16
17
|
input: _ActionExecutionInput,
|
|
17
18
|
output: _ActionExecutionOutput,
|
package/src/dto/flows.dto.ts
CHANGED
|
@@ -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({
|