@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,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
3
|
-
description: z.ZodString
|
|
3
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
createdAt: z.ZodString;
|
|
6
6
|
updatedAt: z.ZodString;
|
|
@@ -10,7 +10,7 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
10
10
|
request: z.ZodObject<{
|
|
11
11
|
url: z.ZodString;
|
|
12
12
|
method: z.ZodString;
|
|
13
|
-
payload: z.ZodObject<{
|
|
13
|
+
payload: z.ZodOptional<z.ZodObject<{
|
|
14
14
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
15
15
|
format: z.ZodLiteral<"JSON">;
|
|
16
16
|
value: z.ZodString;
|
|
@@ -22,55 +22,55 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
22
22
|
value: string;
|
|
23
23
|
kind: "TEMPLATE";
|
|
24
24
|
format: "JSON";
|
|
25
|
-
}
|
|
26
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
27
|
-
params: z.ZodRecord<z.ZodString, z.ZodString
|
|
25
|
+
}>>;
|
|
26
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
27
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
method: string;
|
|
30
30
|
url: string;
|
|
31
|
-
|
|
32
|
-
payload: {
|
|
31
|
+
payload?: {
|
|
33
32
|
value: string;
|
|
34
33
|
kind: "TEMPLATE";
|
|
35
34
|
format: "JSON";
|
|
36
|
-
};
|
|
37
|
-
headers
|
|
35
|
+
} | undefined;
|
|
36
|
+
headers?: Record<string, string> | undefined;
|
|
37
|
+
params?: Record<string, string> | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
method: string;
|
|
40
40
|
url: string;
|
|
41
|
-
|
|
42
|
-
payload: {
|
|
41
|
+
payload?: {
|
|
43
42
|
value: string;
|
|
44
43
|
kind: "TEMPLATE";
|
|
45
44
|
format: "JSON";
|
|
46
|
-
};
|
|
47
|
-
headers
|
|
45
|
+
} | undefined;
|
|
46
|
+
headers?: Record<string, string> | undefined;
|
|
47
|
+
params?: Record<string, string> | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
51
|
request: {
|
|
52
52
|
method: string;
|
|
53
53
|
url: string;
|
|
54
|
-
|
|
55
|
-
payload: {
|
|
54
|
+
payload?: {
|
|
56
55
|
value: string;
|
|
57
56
|
kind: "TEMPLATE";
|
|
58
57
|
format: "JSON";
|
|
59
|
-
};
|
|
60
|
-
headers
|
|
58
|
+
} | undefined;
|
|
59
|
+
headers?: Record<string, string> | undefined;
|
|
60
|
+
params?: Record<string, string> | undefined;
|
|
61
61
|
};
|
|
62
62
|
timeout?: number | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
request: {
|
|
65
65
|
method: string;
|
|
66
66
|
url: string;
|
|
67
|
-
|
|
68
|
-
payload: {
|
|
67
|
+
payload?: {
|
|
69
68
|
value: string;
|
|
70
69
|
kind: "TEMPLATE";
|
|
71
70
|
format: "JSON";
|
|
72
|
-
};
|
|
73
|
-
headers
|
|
71
|
+
} | undefined;
|
|
72
|
+
headers?: Record<string, string> | undefined;
|
|
73
|
+
params?: Record<string, string> | undefined;
|
|
74
74
|
};
|
|
75
75
|
timeout?: number | undefined;
|
|
76
76
|
}>;
|
|
@@ -91,7 +91,6 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
91
91
|
}>>;
|
|
92
92
|
tid: z.ZodString;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
description: string;
|
|
95
94
|
id: string;
|
|
96
95
|
tid: string;
|
|
97
96
|
createdAt: string;
|
|
@@ -102,25 +101,25 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
102
101
|
request: {
|
|
103
102
|
method: string;
|
|
104
103
|
url: string;
|
|
105
|
-
|
|
106
|
-
payload: {
|
|
104
|
+
payload?: {
|
|
107
105
|
value: string;
|
|
108
106
|
kind: "TEMPLATE";
|
|
109
107
|
format: "JSON";
|
|
110
|
-
};
|
|
111
|
-
headers
|
|
108
|
+
} | undefined;
|
|
109
|
+
headers?: Record<string, string> | undefined;
|
|
110
|
+
params?: Record<string, string> | undefined;
|
|
112
111
|
};
|
|
113
112
|
timeout?: number | undefined;
|
|
114
113
|
};
|
|
115
114
|
isTemplate: boolean;
|
|
116
115
|
kind: "REST_ACTION";
|
|
116
|
+
description?: string | undefined;
|
|
117
117
|
retryStrategy?: {
|
|
118
118
|
kind: "CONSTANT_BACKOFF";
|
|
119
119
|
maxRetries: number;
|
|
120
120
|
delay: number;
|
|
121
121
|
} | undefined;
|
|
122
122
|
}, {
|
|
123
|
-
description: string;
|
|
124
123
|
id: string;
|
|
125
124
|
tid: string;
|
|
126
125
|
createdAt: string;
|
|
@@ -131,18 +130,19 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
131
130
|
request: {
|
|
132
131
|
method: string;
|
|
133
132
|
url: string;
|
|
134
|
-
|
|
135
|
-
payload: {
|
|
133
|
+
payload?: {
|
|
136
134
|
value: string;
|
|
137
135
|
kind: "TEMPLATE";
|
|
138
136
|
format: "JSON";
|
|
139
|
-
};
|
|
140
|
-
headers
|
|
137
|
+
} | undefined;
|
|
138
|
+
headers?: Record<string, string> | undefined;
|
|
139
|
+
params?: Record<string, string> | undefined;
|
|
141
140
|
};
|
|
142
141
|
timeout?: number | undefined;
|
|
143
142
|
};
|
|
144
143
|
isTemplate: boolean;
|
|
145
144
|
kind: "REST_ACTION";
|
|
145
|
+
description?: string | undefined;
|
|
146
146
|
retryStrategy?: {
|
|
147
147
|
kind: "CONSTANT_BACKOFF";
|
|
148
148
|
maxRetries: number;
|
|
@@ -151,7 +151,7 @@ export declare const _PlatformCustomActionDto: z.ZodObject<{
|
|
|
151
151
|
}>;
|
|
152
152
|
export type PlatformCustomActionDto = z.infer<typeof _PlatformCustomActionDto>;
|
|
153
153
|
export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
154
|
-
description: z.ZodString
|
|
154
|
+
description: z.ZodOptional<z.ZodString>;
|
|
155
155
|
id: z.ZodOptional<z.ZodString>;
|
|
156
156
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
157
157
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -161,7 +161,7 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
161
161
|
request: z.ZodObject<{
|
|
162
162
|
url: z.ZodString;
|
|
163
163
|
method: z.ZodString;
|
|
164
|
-
payload: z.ZodObject<{
|
|
164
|
+
payload: z.ZodOptional<z.ZodObject<{
|
|
165
165
|
kind: z.ZodLiteral<"TEMPLATE">;
|
|
166
166
|
format: z.ZodLiteral<"JSON">;
|
|
167
167
|
value: z.ZodString;
|
|
@@ -173,55 +173,55 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
173
173
|
value: string;
|
|
174
174
|
kind: "TEMPLATE";
|
|
175
175
|
format: "JSON";
|
|
176
|
-
}
|
|
177
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
178
|
-
params: z.ZodRecord<z.ZodString, z.ZodString
|
|
176
|
+
}>>;
|
|
177
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
178
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
method: string;
|
|
181
181
|
url: string;
|
|
182
|
-
|
|
183
|
-
payload: {
|
|
182
|
+
payload?: {
|
|
184
183
|
value: string;
|
|
185
184
|
kind: "TEMPLATE";
|
|
186
185
|
format: "JSON";
|
|
187
|
-
};
|
|
188
|
-
headers
|
|
186
|
+
} | undefined;
|
|
187
|
+
headers?: Record<string, string> | undefined;
|
|
188
|
+
params?: Record<string, string> | undefined;
|
|
189
189
|
}, {
|
|
190
190
|
method: string;
|
|
191
191
|
url: string;
|
|
192
|
-
|
|
193
|
-
payload: {
|
|
192
|
+
payload?: {
|
|
194
193
|
value: string;
|
|
195
194
|
kind: "TEMPLATE";
|
|
196
195
|
format: "JSON";
|
|
197
|
-
};
|
|
198
|
-
headers
|
|
196
|
+
} | undefined;
|
|
197
|
+
headers?: Record<string, string> | undefined;
|
|
198
|
+
params?: Record<string, string> | undefined;
|
|
199
199
|
}>;
|
|
200
200
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
201
201
|
}, "strip", z.ZodTypeAny, {
|
|
202
202
|
request: {
|
|
203
203
|
method: string;
|
|
204
204
|
url: string;
|
|
205
|
-
|
|
206
|
-
payload: {
|
|
205
|
+
payload?: {
|
|
207
206
|
value: string;
|
|
208
207
|
kind: "TEMPLATE";
|
|
209
208
|
format: "JSON";
|
|
210
|
-
};
|
|
211
|
-
headers
|
|
209
|
+
} | undefined;
|
|
210
|
+
headers?: Record<string, string> | undefined;
|
|
211
|
+
params?: Record<string, string> | undefined;
|
|
212
212
|
};
|
|
213
213
|
timeout?: number | undefined;
|
|
214
214
|
}, {
|
|
215
215
|
request: {
|
|
216
216
|
method: string;
|
|
217
217
|
url: string;
|
|
218
|
-
|
|
219
|
-
payload: {
|
|
218
|
+
payload?: {
|
|
220
219
|
value: string;
|
|
221
220
|
kind: "TEMPLATE";
|
|
222
221
|
format: "JSON";
|
|
223
|
-
};
|
|
224
|
-
headers
|
|
222
|
+
} | undefined;
|
|
223
|
+
headers?: Record<string, string> | undefined;
|
|
224
|
+
params?: Record<string, string> | undefined;
|
|
225
225
|
};
|
|
226
226
|
timeout?: number | undefined;
|
|
227
227
|
}>;
|
|
@@ -242,25 +242,25 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
242
242
|
}>>;
|
|
243
243
|
tid: z.ZodString;
|
|
244
244
|
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
description: string;
|
|
246
245
|
tid: string;
|
|
247
246
|
displayValue: string;
|
|
248
247
|
meta: {
|
|
249
248
|
request: {
|
|
250
249
|
method: string;
|
|
251
250
|
url: string;
|
|
252
|
-
|
|
253
|
-
payload: {
|
|
251
|
+
payload?: {
|
|
254
252
|
value: string;
|
|
255
253
|
kind: "TEMPLATE";
|
|
256
254
|
format: "JSON";
|
|
257
|
-
};
|
|
258
|
-
headers
|
|
255
|
+
} | undefined;
|
|
256
|
+
headers?: Record<string, string> | undefined;
|
|
257
|
+
params?: Record<string, string> | undefined;
|
|
259
258
|
};
|
|
260
259
|
timeout?: number | undefined;
|
|
261
260
|
};
|
|
262
261
|
isTemplate: boolean;
|
|
263
262
|
kind: "REST_ACTION";
|
|
263
|
+
description?: string | undefined;
|
|
264
264
|
id?: string | undefined;
|
|
265
265
|
createdAt?: string | undefined;
|
|
266
266
|
updatedAt?: string | undefined;
|
|
@@ -271,25 +271,25 @@ export declare const _PlatformCustomActionUpsertDto: z.ZodObject<{
|
|
|
271
271
|
delay: number;
|
|
272
272
|
} | undefined;
|
|
273
273
|
}, {
|
|
274
|
-
description: string;
|
|
275
274
|
tid: string;
|
|
276
275
|
displayValue: string;
|
|
277
276
|
meta: {
|
|
278
277
|
request: {
|
|
279
278
|
method: string;
|
|
280
279
|
url: string;
|
|
281
|
-
|
|
282
|
-
payload: {
|
|
280
|
+
payload?: {
|
|
283
281
|
value: string;
|
|
284
282
|
kind: "TEMPLATE";
|
|
285
283
|
format: "JSON";
|
|
286
|
-
};
|
|
287
|
-
headers
|
|
284
|
+
} | undefined;
|
|
285
|
+
headers?: Record<string, string> | undefined;
|
|
286
|
+
params?: Record<string, string> | undefined;
|
|
288
287
|
};
|
|
289
288
|
timeout?: number | undefined;
|
|
290
289
|
};
|
|
291
290
|
isTemplate: boolean;
|
|
292
291
|
kind: "REST_ACTION";
|
|
292
|
+
description?: string | undefined;
|
|
293
293
|
id?: string | undefined;
|
|
294
294
|
createdAt?: string | undefined;
|
|
295
295
|
updatedAt?: string | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
|
|
|
56
56
|
createdAt: z.ZodString;
|
|
57
57
|
updatedAt: z.ZodString;
|
|
58
58
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
59
|
-
cohort: z.
|
|
59
|
+
cohort: z.ZodArray<z.ZodObject<{
|
|
60
60
|
id: z.ZodString;
|
|
61
61
|
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
62
62
|
displayValue: z.ZodString;
|
|
@@ -74,25 +74,7 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
|
|
|
74
74
|
id: string;
|
|
75
75
|
displayValue: string;
|
|
76
76
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
77
|
-
}>,
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
80
|
-
displayValue: z.ZodString;
|
|
81
|
-
value: z.ZodString;
|
|
82
|
-
inclusive: z.ZodBoolean;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
inclusive: boolean;
|
|
85
|
-
value: string;
|
|
86
|
-
id: string;
|
|
87
|
-
displayValue: string;
|
|
88
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
89
|
-
}, {
|
|
90
|
-
inclusive: boolean;
|
|
91
|
-
value: string;
|
|
92
|
-
id: string;
|
|
93
|
-
displayValue: string;
|
|
94
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
95
|
-
}>, "many">]>;
|
|
77
|
+
}>, "many">;
|
|
96
78
|
multiplier: z.ZodNumber;
|
|
97
79
|
tid: z.ZodString;
|
|
98
80
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -101,31 +83,13 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
|
|
|
101
83
|
createdAt: string;
|
|
102
84
|
updatedAt: string;
|
|
103
85
|
deletedAt: string | null;
|
|
104
|
-
cohort:
|
|
105
|
-
inclusive: boolean;
|
|
106
|
-
value: string;
|
|
107
|
-
id: string;
|
|
108
|
-
displayValue: string;
|
|
109
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
110
|
-
} | {
|
|
86
|
+
cohort: {
|
|
111
87
|
inclusive: boolean;
|
|
112
88
|
value: string;
|
|
113
89
|
id: string;
|
|
114
90
|
displayValue: string;
|
|
115
91
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
116
|
-
}[]
|
|
117
|
-
inclusive: boolean;
|
|
118
|
-
value: string;
|
|
119
|
-
id: string;
|
|
120
|
-
displayValue: string;
|
|
121
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
122
|
-
} | {
|
|
123
|
-
inclusive: boolean;
|
|
124
|
-
value: string;
|
|
125
|
-
id: string;
|
|
126
|
-
displayValue: string;
|
|
127
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
128
|
-
}[] | undefined);
|
|
92
|
+
}[];
|
|
129
93
|
multiplier: number;
|
|
130
94
|
}, {
|
|
131
95
|
id: string;
|
|
@@ -133,31 +97,13 @@ export declare const _PlatformCustomScoreCohortDto: z.ZodObject<{
|
|
|
133
97
|
createdAt: string;
|
|
134
98
|
updatedAt: string;
|
|
135
99
|
deletedAt: string | null;
|
|
136
|
-
cohort:
|
|
137
|
-
inclusive: boolean;
|
|
138
|
-
value: string;
|
|
139
|
-
id: string;
|
|
140
|
-
displayValue: string;
|
|
141
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
142
|
-
} | {
|
|
143
|
-
inclusive: boolean;
|
|
144
|
-
value: string;
|
|
145
|
-
id: string;
|
|
146
|
-
displayValue: string;
|
|
147
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
148
|
-
}[]) & ({
|
|
149
|
-
inclusive: boolean;
|
|
150
|
-
value: string;
|
|
151
|
-
id: string;
|
|
152
|
-
displayValue: string;
|
|
153
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
154
|
-
} | {
|
|
100
|
+
cohort: {
|
|
155
101
|
inclusive: boolean;
|
|
156
102
|
value: string;
|
|
157
103
|
id: string;
|
|
158
104
|
displayValue: string;
|
|
159
105
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
160
|
-
}[]
|
|
106
|
+
}[];
|
|
161
107
|
multiplier: number;
|
|
162
108
|
}>;
|
|
163
109
|
export type PlatformCustomScoreCohortDto = z.infer<typeof _PlatformCustomScoreCohortDto>;
|
|
@@ -166,7 +112,7 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
166
112
|
createdAt: z.ZodString;
|
|
167
113
|
updatedAt: z.ZodString;
|
|
168
114
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
169
|
-
cohort: z.
|
|
115
|
+
cohort: z.ZodArray<z.ZodObject<{
|
|
170
116
|
id: z.ZodString;
|
|
171
117
|
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
172
118
|
displayValue: z.ZodString;
|
|
@@ -184,25 +130,7 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
184
130
|
id: string;
|
|
185
131
|
displayValue: string;
|
|
186
132
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
187
|
-
}>,
|
|
188
|
-
id: z.ZodString;
|
|
189
|
-
kind: z.ZodEnum<["ORGANIZATION", "DEPARTMENT", "USER", "RISK_CONTRIBUTOR"]>;
|
|
190
|
-
displayValue: z.ZodString;
|
|
191
|
-
value: z.ZodString;
|
|
192
|
-
inclusive: z.ZodBoolean;
|
|
193
|
-
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
inclusive: boolean;
|
|
195
|
-
value: string;
|
|
196
|
-
id: string;
|
|
197
|
-
displayValue: string;
|
|
198
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
199
|
-
}, {
|
|
200
|
-
inclusive: boolean;
|
|
201
|
-
value: string;
|
|
202
|
-
id: string;
|
|
203
|
-
displayValue: string;
|
|
204
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
205
|
-
}>, "many">]>;
|
|
133
|
+
}>, "many">;
|
|
206
134
|
multiplier: z.ZodNumber;
|
|
207
135
|
tid: z.ZodString;
|
|
208
136
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -211,31 +139,13 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
211
139
|
createdAt: string;
|
|
212
140
|
updatedAt: string;
|
|
213
141
|
deletedAt: string | null;
|
|
214
|
-
cohort:
|
|
215
|
-
inclusive: boolean;
|
|
216
|
-
value: string;
|
|
217
|
-
id: string;
|
|
218
|
-
displayValue: string;
|
|
219
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
220
|
-
} | {
|
|
142
|
+
cohort: {
|
|
221
143
|
inclusive: boolean;
|
|
222
144
|
value: string;
|
|
223
145
|
id: string;
|
|
224
146
|
displayValue: string;
|
|
225
147
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
226
|
-
}[]
|
|
227
|
-
inclusive: boolean;
|
|
228
|
-
value: string;
|
|
229
|
-
id: string;
|
|
230
|
-
displayValue: string;
|
|
231
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
232
|
-
} | {
|
|
233
|
-
inclusive: boolean;
|
|
234
|
-
value: string;
|
|
235
|
-
id: string;
|
|
236
|
-
displayValue: string;
|
|
237
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
238
|
-
}[] | undefined);
|
|
148
|
+
}[];
|
|
239
149
|
multiplier: number;
|
|
240
150
|
}, {
|
|
241
151
|
id: string;
|
|
@@ -243,31 +153,13 @@ export declare const _PlatformCustomScoreCohortUpsertDto: z.ZodObject<{
|
|
|
243
153
|
createdAt: string;
|
|
244
154
|
updatedAt: string;
|
|
245
155
|
deletedAt: string | null;
|
|
246
|
-
cohort:
|
|
247
|
-
inclusive: boolean;
|
|
248
|
-
value: string;
|
|
249
|
-
id: string;
|
|
250
|
-
displayValue: string;
|
|
251
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
252
|
-
} | {
|
|
253
|
-
inclusive: boolean;
|
|
254
|
-
value: string;
|
|
255
|
-
id: string;
|
|
256
|
-
displayValue: string;
|
|
257
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
258
|
-
}[]) & ({
|
|
259
|
-
inclusive: boolean;
|
|
260
|
-
value: string;
|
|
261
|
-
id: string;
|
|
262
|
-
displayValue: string;
|
|
263
|
-
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
264
|
-
} | {
|
|
156
|
+
cohort: {
|
|
265
157
|
inclusive: boolean;
|
|
266
158
|
value: string;
|
|
267
159
|
id: string;
|
|
268
160
|
displayValue: string;
|
|
269
161
|
kind: "USER" | "ORGANIZATION" | "DEPARTMENT" | "RISK_CONTRIBUTOR";
|
|
270
|
-
}[]
|
|
162
|
+
}[];
|
|
271
163
|
multiplier: number;
|
|
272
164
|
}>;
|
|
273
165
|
export type PlatformCustomScoreCohortUpsertDto = z.infer<typeof _PlatformCustomScoreCohortUpsertDto>;
|