@ampsec/platform-client 64.3.0 → 65.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/agents.dto.d.ts +80 -2
- package/build/src/dto/agents.dto.js +17 -0
- package/build/src/dto/agents.dto.js.map +1 -1
- package/build/src/dto/customActions.dto.d.ts +113 -113
- package/build/src/dto/customActions.dto.js +7 -5
- package/build/src/dto/customActions.dto.js.map +1 -1
- package/build/src/dto/customScores.dto.d.ts +12 -120
- package/build/src/dto/customScores.dto.js +1 -1
- package/build/src/dto/customScores.dto.js.map +1 -1
- package/build/src/dto/flows.dto.d.ts +203 -200
- package/build/src/dto/flows.dto.js +3 -4
- package/build/src/dto/flows.dto.js.map +1 -1
- package/build/src/dto/platform/platform.customActions.dto.d.ts +62 -62
- package/build/src/dto/platform/platform.customScores.dto.d.ts +12 -120
- package/build/src/dto/platform/platform.flows.dto.d.ts +130 -104
- package/build/src/services/AgentsService.d.ts +47 -0
- package/build/src/services/AgentsService.js +23 -0
- package/build/src/services/AgentsService.js.map +1 -0
- package/build/src/services/AmpApi.d.ts +3 -2
- package/build/src/services/AmpApi.js +2 -1
- package/build/src/services/AmpApi.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/agents.dto.ts +22 -3
- package/src/dto/customActions.dto.ts +10 -8
- package/src/dto/customScores.dto.ts +1 -1
- package/src/dto/flows.dto.ts +4 -4
- package/src/services/AgentsService.ts +25 -0
- package/src/services/AmpApi.ts +3 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customActions.dto.js","sourceRoot":"","sources":["../../../src/dto/customActions.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AAErD,MAAM,iBAAiB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACxC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3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AAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAC9B,IAAI,EAAE,gCAAwB;CAC/B,CAAC,CAAC;AAGH,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAEpE,QAAA,gBAAgB,GAAG,oBAAoB,CAAC;AAGxC,QAAA,sBAAsB,GAAG,0BAA0B,CAAC;AAGpD,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC;QACvB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACxC,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC5C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;QACtB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;KACzB,CAAC;CACH,CAAC,CAAC;AAGH,yCAAyC"}
|
|
@@ -54,7 +54,7 @@ export declare const _CustomScoreCohortDto: z.ZodObject<{
|
|
|
54
54
|
createdAt: z.ZodString;
|
|
55
55
|
updatedAt: z.ZodString;
|
|
56
56
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
57
|
-
cohort: z.
|
|
57
|
+
cohort: z.ZodArray<z.ZodObject<{
|
|
58
58
|
id: z.ZodString;
|
|
59
59
|
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
60
60
|
displayValue: z.ZodString;
|
|
@@ -72,87 +72,33 @@ export declare const _CustomScoreCohortDto: z.ZodObject<{
|
|
|
72
72
|
id: string;
|
|
73
73
|
displayValue: string;
|
|
74
74
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
75
|
-
}>,
|
|
76
|
-
id: z.ZodString;
|
|
77
|
-
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
78
|
-
displayValue: z.ZodString;
|
|
79
|
-
value: z.ZodString;
|
|
80
|
-
inclusive: z.ZodBoolean;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
inclusive: boolean;
|
|
83
|
-
value: string;
|
|
84
|
-
id: string;
|
|
85
|
-
displayValue: string;
|
|
86
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
87
|
-
}, {
|
|
88
|
-
inclusive: boolean;
|
|
89
|
-
value: string;
|
|
90
|
-
id: string;
|
|
91
|
-
displayValue: string;
|
|
92
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
93
|
-
}>, "many">]>;
|
|
75
|
+
}>, "many">;
|
|
94
76
|
multiplier: z.ZodNumber;
|
|
95
77
|
}, "strip", z.ZodTypeAny, {
|
|
96
78
|
id: string;
|
|
97
79
|
createdAt: string;
|
|
98
80
|
updatedAt: string;
|
|
99
81
|
deletedAt: string | null;
|
|
100
|
-
cohort:
|
|
101
|
-
inclusive: boolean;
|
|
102
|
-
value: string;
|
|
103
|
-
id: string;
|
|
104
|
-
displayValue: string;
|
|
105
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
106
|
-
} | {
|
|
82
|
+
cohort: {
|
|
107
83
|
inclusive: boolean;
|
|
108
84
|
value: string;
|
|
109
85
|
id: string;
|
|
110
86
|
displayValue: string;
|
|
111
87
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
112
|
-
}[]
|
|
113
|
-
inclusive: boolean;
|
|
114
|
-
value: string;
|
|
115
|
-
id: string;
|
|
116
|
-
displayValue: string;
|
|
117
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
118
|
-
} | {
|
|
119
|
-
inclusive: boolean;
|
|
120
|
-
value: string;
|
|
121
|
-
id: string;
|
|
122
|
-
displayValue: string;
|
|
123
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
124
|
-
}[] | undefined);
|
|
88
|
+
}[];
|
|
125
89
|
multiplier: number;
|
|
126
90
|
}, {
|
|
127
91
|
id: string;
|
|
128
92
|
createdAt: string;
|
|
129
93
|
updatedAt: string;
|
|
130
94
|
deletedAt: string | null;
|
|
131
|
-
cohort:
|
|
132
|
-
inclusive: boolean;
|
|
133
|
-
value: string;
|
|
134
|
-
id: string;
|
|
135
|
-
displayValue: string;
|
|
136
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
137
|
-
} | {
|
|
138
|
-
inclusive: boolean;
|
|
139
|
-
value: string;
|
|
140
|
-
id: string;
|
|
141
|
-
displayValue: string;
|
|
142
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
143
|
-
}[]) & ({
|
|
144
|
-
inclusive: boolean;
|
|
145
|
-
value: string;
|
|
146
|
-
id: string;
|
|
147
|
-
displayValue: string;
|
|
148
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
149
|
-
} | {
|
|
95
|
+
cohort: {
|
|
150
96
|
inclusive: boolean;
|
|
151
97
|
value: string;
|
|
152
98
|
id: string;
|
|
153
99
|
displayValue: string;
|
|
154
100
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
155
|
-
}[]
|
|
101
|
+
}[];
|
|
156
102
|
multiplier: number;
|
|
157
103
|
}>;
|
|
158
104
|
export type CustomScoreCohortDto = z.infer<typeof _CustomScoreCohortDto>;
|
|
@@ -161,7 +107,7 @@ export declare const _CustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
161
107
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
162
108
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
163
109
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
-
cohort: z.
|
|
110
|
+
cohort: z.ZodArray<z.ZodObject<{
|
|
165
111
|
id: z.ZodString;
|
|
166
112
|
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
167
113
|
displayValue: z.ZodString;
|
|
@@ -179,83 +125,29 @@ export declare const _CustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
179
125
|
id: string;
|
|
180
126
|
displayValue: string;
|
|
181
127
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
182
|
-
}>,
|
|
183
|
-
id: z.ZodString;
|
|
184
|
-
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
185
|
-
displayValue: z.ZodString;
|
|
186
|
-
value: z.ZodString;
|
|
187
|
-
inclusive: z.ZodBoolean;
|
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
inclusive: boolean;
|
|
190
|
-
value: string;
|
|
191
|
-
id: string;
|
|
192
|
-
displayValue: string;
|
|
193
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
194
|
-
}, {
|
|
195
|
-
inclusive: boolean;
|
|
196
|
-
value: string;
|
|
197
|
-
id: string;
|
|
198
|
-
displayValue: string;
|
|
199
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
200
|
-
}>, "many">]>;
|
|
128
|
+
}>, "many">;
|
|
201
129
|
multiplier: z.ZodNumber;
|
|
202
130
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
cohort:
|
|
204
|
-
inclusive: boolean;
|
|
205
|
-
value: string;
|
|
206
|
-
id: string;
|
|
207
|
-
displayValue: string;
|
|
208
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
209
|
-
} | {
|
|
131
|
+
cohort: {
|
|
210
132
|
inclusive: boolean;
|
|
211
133
|
value: string;
|
|
212
134
|
id: string;
|
|
213
135
|
displayValue: string;
|
|
214
136
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
215
|
-
}[]
|
|
216
|
-
inclusive: boolean;
|
|
217
|
-
value: string;
|
|
218
|
-
id: string;
|
|
219
|
-
displayValue: string;
|
|
220
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
221
|
-
} | {
|
|
222
|
-
inclusive: boolean;
|
|
223
|
-
value: string;
|
|
224
|
-
id: string;
|
|
225
|
-
displayValue: string;
|
|
226
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
227
|
-
}[] | undefined);
|
|
137
|
+
}[];
|
|
228
138
|
multiplier: number;
|
|
229
139
|
id?: string | undefined;
|
|
230
140
|
createdAt?: string | undefined;
|
|
231
141
|
updatedAt?: string | undefined;
|
|
232
142
|
deletedAt?: string | null | undefined;
|
|
233
143
|
}, {
|
|
234
|
-
cohort:
|
|
235
|
-
inclusive: boolean;
|
|
236
|
-
value: string;
|
|
237
|
-
id: string;
|
|
238
|
-
displayValue: string;
|
|
239
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
240
|
-
} | {
|
|
241
|
-
inclusive: boolean;
|
|
242
|
-
value: string;
|
|
243
|
-
id: string;
|
|
244
|
-
displayValue: string;
|
|
245
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
246
|
-
}[]) & ({
|
|
247
|
-
inclusive: boolean;
|
|
248
|
-
value: string;
|
|
249
|
-
id: string;
|
|
250
|
-
displayValue: string;
|
|
251
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
252
|
-
} | {
|
|
144
|
+
cohort: {
|
|
253
145
|
inclusive: boolean;
|
|
254
146
|
value: string;
|
|
255
147
|
id: string;
|
|
256
148
|
displayValue: string;
|
|
257
149
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
258
|
-
}[]
|
|
150
|
+
}[];
|
|
259
151
|
multiplier: number;
|
|
260
152
|
id?: string | undefined;
|
|
261
153
|
createdAt?: string | undefined;
|
|
@@ -12,7 +12,7 @@ exports._CustomScoreValueDto = base_dto_1._BaseDto.extend({
|
|
|
12
12
|
/** @deprecated */
|
|
13
13
|
exports._CustomScoreValueUpsertDto = exports._CustomScoreValueDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
14
14
|
exports._CustomScoreCohortDto = base_dto_1._BaseDto.extend({
|
|
15
|
-
cohort: zod_1.z.
|
|
15
|
+
cohort: zod_1.z.array(flows_dto_1._AmplifierCohortDto),
|
|
16
16
|
multiplier: zod_1.z.number(),
|
|
17
17
|
});
|
|
18
18
|
exports._CustomScoreCohortUpsertDto = exports._CustomScoreCohortDto.partial(base_dto_1.UPSERT_DTO_MASK);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEhD,kBAAkB;AACL,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAIH,kBAAkB;AACL,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAI3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"customScores.dto.js","sourceRoot":"","sources":["../../../src/dto/customScores.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAqD;AACrD,2CAAgD;AAEhD,kBAAkB;AACL,QAAA,oBAAoB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IAClD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAIH,kBAAkB;AACL,QAAA,0BAA0B,GAAG,4BAAoB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC;AAI3E,QAAA,qBAAqB,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACnD,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAmB,CAAC;IACpC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGU,QAAA,2BAA2B,GAAG,6BAAqB,CAAC,OAAO,CAAC,0BAAe,CAAC,CAAC"}
|