@ampsec/platform-client 70.0.0 → 70.2.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/FilterCriteria.d.ts +82 -45
- package/build/src/dto/actionExecution.dto.d.ts +3 -2
- package/build/src/dto/agents.dto.d.ts +3 -2
- package/build/src/dto/assets.dto.d.ts +31 -10
- package/build/src/dto/base.dto.d.ts +6 -4
- package/build/src/dto/coverage.dto.d.ts +144 -106
- package/build/src/dto/customActions.dto.d.ts +32 -28
- package/build/src/dto/customScores.dto.d.ts +8 -4
- package/build/src/dto/eng/coverage.dto.d.ts +8 -8
- package/build/src/dto/findings.dto.d.ts +41 -40
- package/build/src/dto/flows.dto.d.ts +222 -179
- package/build/src/dto/notification.dto.d.ts +157 -134
- package/build/src/dto/page.dto.d.ts +5 -5
- package/build/src/dto/platform/platform.actionExecution.dto.d.ts +26 -12
- package/build/src/dto/platform/platform.agents.dto.d.ts +3 -2
- package/build/src/dto/platform/platform.customActions.dto.d.ts +36 -32
- package/build/src/dto/platform/platform.customScores.dto.d.ts +16 -9
- package/build/src/dto/platform/platform.findings.dto.d.ts +37 -34
- package/build/src/dto/platform/platform.flows.dto.d.ts +176 -136
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +29 -25
- package/build/src/dto/platform/platform.saasUsers.dto.d.ts +48 -44
- package/build/src/dto/platform/platform.tokens.dto.d.ts +21 -9
- package/build/src/dto/platform/tenant.based.dto.d.ts +6 -5
- package/build/src/dto/saasAssets.dto.d.ts +84 -58
- package/build/src/dto/saasUsers.dto.d.ts +131 -110
- package/build/src/dto/tokens.dto.d.ts +3 -2
- package/build/src/dto/users.dto.d.ts +8 -8
- package/build/src/services/contentful.service.d.ts +12 -12
- package/build/src/settings.d.ts +3 -0
- package/build/src/settings.js +3 -0
- package/build/src/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/settings.ts +3 -0
|
@@ -34,13 +34,13 @@ export declare const _NotificationAddress: z.ZodObject<{
|
|
|
34
34
|
users: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
35
35
|
webhooks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
cid?: string | undefined;
|
|
38
37
|
groups?: (string | number)[] | undefined;
|
|
38
|
+
cid?: string | undefined;
|
|
39
39
|
users?: (string | number)[] | undefined;
|
|
40
40
|
webhooks?: string[] | undefined;
|
|
41
41
|
}, {
|
|
42
|
-
cid?: string | undefined;
|
|
43
42
|
groups?: (string | number)[] | undefined;
|
|
43
|
+
cid?: string | undefined;
|
|
44
44
|
users?: (string | number)[] | undefined;
|
|
45
45
|
webhooks?: string[] | undefined;
|
|
46
46
|
}>;
|
|
@@ -54,14 +54,14 @@ export declare const _RawContentStrategy: z.ZodObject<{
|
|
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
|
55
55
|
kind: ContentStrategyKind.RAW;
|
|
56
56
|
content: string;
|
|
57
|
-
subject?: string | undefined;
|
|
58
57
|
context?: Record<string, string> | undefined;
|
|
58
|
+
subject?: string | undefined;
|
|
59
59
|
flowContext?: Record<string, any> | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
kind: ContentStrategyKind.RAW;
|
|
62
62
|
content: string;
|
|
63
|
-
subject?: string | undefined;
|
|
64
63
|
context?: Record<string, string> | undefined;
|
|
64
|
+
subject?: string | undefined;
|
|
65
65
|
flowContext?: Record<string, any> | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
export type RawContentStrategy = z.infer<typeof _RawContentStrategy>;
|
|
@@ -113,29 +113,30 @@ export declare const _CustomContentStrategy: z.ZodObject<{
|
|
|
113
113
|
flowContext?: Record<string, any> | undefined;
|
|
114
114
|
}>;
|
|
115
115
|
export type CustomContentStrategy = z.infer<typeof _CustomContentStrategy>;
|
|
116
|
-
export declare const _SlackDeliveryStrategy: z.ZodObject<{
|
|
116
|
+
export declare const _SlackDeliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
117
117
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
}, {
|
|
118
119
|
to: z.ZodObject<{
|
|
119
120
|
cid: z.ZodOptional<z.ZodString>;
|
|
120
121
|
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
121
122
|
users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
122
123
|
webhooks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
123
124
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
cid?: string | undefined;
|
|
125
125
|
groups?: string[] | undefined;
|
|
126
|
+
cid?: string | undefined;
|
|
126
127
|
users?: string[] | undefined;
|
|
127
128
|
webhooks?: string[] | undefined;
|
|
128
129
|
}, {
|
|
129
|
-
cid?: string | undefined;
|
|
130
130
|
groups?: string[] | undefined;
|
|
131
|
+
cid?: string | undefined;
|
|
131
132
|
users?: string[] | undefined;
|
|
132
133
|
webhooks?: string[] | undefined;
|
|
133
134
|
}>;
|
|
134
135
|
teamId: z.ZodString;
|
|
135
|
-
}
|
|
136
|
+
}>, "strip", z.ZodTypeAny, {
|
|
136
137
|
to: {
|
|
137
|
-
cid?: string | undefined;
|
|
138
138
|
groups?: string[] | undefined;
|
|
139
|
+
cid?: string | undefined;
|
|
139
140
|
users?: string[] | undefined;
|
|
140
141
|
webhooks?: string[] | undefined;
|
|
141
142
|
};
|
|
@@ -143,8 +144,8 @@ export declare const _SlackDeliveryStrategy: z.ZodObject<{
|
|
|
143
144
|
copySecOpsTeam?: boolean | undefined;
|
|
144
145
|
}, {
|
|
145
146
|
to: {
|
|
146
|
-
cid?: string | undefined;
|
|
147
147
|
groups?: string[] | undefined;
|
|
148
|
+
cid?: string | undefined;
|
|
148
149
|
users?: string[] | undefined;
|
|
149
150
|
webhooks?: string[] | undefined;
|
|
150
151
|
};
|
|
@@ -152,8 +153,9 @@ export declare const _SlackDeliveryStrategy: z.ZodObject<{
|
|
|
152
153
|
copySecOpsTeam?: boolean | undefined;
|
|
153
154
|
}>;
|
|
154
155
|
export type SlackDeliveryStrategy = z.infer<typeof _SlackDeliveryStrategy>;
|
|
155
|
-
export declare const _EmailDeliveryStrategy: z.ZodObject<{
|
|
156
|
+
export declare const _EmailDeliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
156
157
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
}, {
|
|
157
159
|
to: z.ZodObject<{
|
|
158
160
|
users: z.ZodArray<z.ZodString, "many">;
|
|
159
161
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -162,7 +164,7 @@ export declare const _EmailDeliveryStrategy: z.ZodObject<{
|
|
|
162
164
|
users: string[];
|
|
163
165
|
}>;
|
|
164
166
|
subject: z.ZodString;
|
|
165
|
-
}
|
|
167
|
+
}>, "strip", z.ZodTypeAny, {
|
|
166
168
|
subject: string;
|
|
167
169
|
to: {
|
|
168
170
|
users: string[];
|
|
@@ -176,11 +178,12 @@ export declare const _EmailDeliveryStrategy: z.ZodObject<{
|
|
|
176
178
|
copySecOpsTeam?: boolean | undefined;
|
|
177
179
|
}>;
|
|
178
180
|
export type EmailDeliveryStrategy = z.infer<typeof _EmailDeliveryStrategy>;
|
|
179
|
-
export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
181
|
+
export declare const _BaseNotificationUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
180
182
|
id: z.ZodOptional<z.ZodString>;
|
|
181
183
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
182
184
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
183
185
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
|
+
}, {
|
|
184
187
|
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
185
188
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
186
189
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
@@ -191,14 +194,14 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
|
191
194
|
}, "strip", z.ZodTypeAny, {
|
|
192
195
|
kind: ContentStrategyKind.RAW;
|
|
193
196
|
content: string;
|
|
194
|
-
subject?: string | undefined;
|
|
195
197
|
context?: Record<string, string> | undefined;
|
|
198
|
+
subject?: string | undefined;
|
|
196
199
|
flowContext?: Record<string, any> | undefined;
|
|
197
200
|
}, {
|
|
198
201
|
kind: ContentStrategyKind.RAW;
|
|
199
202
|
content: string;
|
|
200
|
-
subject?: string | undefined;
|
|
201
203
|
context?: Record<string, string> | undefined;
|
|
204
|
+
subject?: string | undefined;
|
|
202
205
|
flowContext?: Record<string, any> | undefined;
|
|
203
206
|
}>, z.ZodObject<{
|
|
204
207
|
kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
|
|
@@ -249,13 +252,13 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
|
249
252
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
250
253
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
251
254
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
252
|
-
}
|
|
255
|
+
}>, "strip", z.ZodTypeAny, {
|
|
253
256
|
status: NotificationStatus;
|
|
254
257
|
contentStrategy: {
|
|
255
258
|
kind: ContentStrategyKind.RAW;
|
|
256
259
|
content: string;
|
|
257
|
-
subject?: string | undefined;
|
|
258
260
|
context?: Record<string, string> | undefined;
|
|
261
|
+
subject?: string | undefined;
|
|
259
262
|
flowContext?: Record<string, any> | undefined;
|
|
260
263
|
} | {
|
|
261
264
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -273,22 +276,22 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
|
273
276
|
flowContext?: Record<string, any> | undefined;
|
|
274
277
|
};
|
|
275
278
|
id?: string | undefined;
|
|
279
|
+
uid?: string | undefined;
|
|
276
280
|
createdAt?: string | undefined;
|
|
277
281
|
updatedAt?: string | undefined;
|
|
278
282
|
deletedAt?: string | null | undefined;
|
|
279
|
-
fid?: string | undefined;
|
|
280
|
-
uid?: string | undefined;
|
|
281
|
-
agentId?: string | undefined;
|
|
282
283
|
flowStateId?: string | undefined;
|
|
283
284
|
context?: NotificationContextKind | undefined;
|
|
285
|
+
fid?: string | undefined;
|
|
286
|
+
agentId?: string | undefined;
|
|
284
287
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
285
288
|
}, {
|
|
286
289
|
status: NotificationStatus;
|
|
287
290
|
contentStrategy: {
|
|
288
291
|
kind: ContentStrategyKind.RAW;
|
|
289
292
|
content: string;
|
|
290
|
-
subject?: string | undefined;
|
|
291
293
|
context?: Record<string, string> | undefined;
|
|
294
|
+
subject?: string | undefined;
|
|
292
295
|
flowContext?: Record<string, any> | undefined;
|
|
293
296
|
} | {
|
|
294
297
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -306,26 +309,23 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
|
|
|
306
309
|
flowContext?: Record<string, any> | undefined;
|
|
307
310
|
};
|
|
308
311
|
id?: string | undefined;
|
|
312
|
+
uid?: string | undefined;
|
|
309
313
|
createdAt?: string | undefined;
|
|
310
314
|
updatedAt?: string | undefined;
|
|
311
315
|
deletedAt?: string | null | undefined;
|
|
312
|
-
fid?: string | undefined;
|
|
313
|
-
uid?: string | undefined;
|
|
314
|
-
agentId?: string | undefined;
|
|
315
316
|
flowStateId?: string | undefined;
|
|
316
317
|
context?: NotificationContextKind | undefined;
|
|
318
|
+
fid?: string | undefined;
|
|
319
|
+
agentId?: string | undefined;
|
|
317
320
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
318
321
|
}>;
|
|
319
|
-
export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
320
|
-
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
322
|
+
export declare const _SlackNotificationUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
321
323
|
id: z.ZodOptional<z.ZodString>;
|
|
322
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
323
324
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
324
325
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
325
326
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
fid: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, {
|
|
328
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
329
329
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
330
330
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
331
331
|
content: z.ZodString;
|
|
@@ -335,14 +335,14 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
335
335
|
}, "strip", z.ZodTypeAny, {
|
|
336
336
|
kind: ContentStrategyKind.RAW;
|
|
337
337
|
content: string;
|
|
338
|
-
subject?: string | undefined;
|
|
339
338
|
context?: Record<string, string> | undefined;
|
|
339
|
+
subject?: string | undefined;
|
|
340
340
|
flowContext?: Record<string, any> | undefined;
|
|
341
341
|
}, {
|
|
342
342
|
kind: ContentStrategyKind.RAW;
|
|
343
343
|
content: string;
|
|
344
|
-
subject?: string | undefined;
|
|
345
344
|
context?: Record<string, string> | undefined;
|
|
345
|
+
subject?: string | undefined;
|
|
346
346
|
flowContext?: Record<string, any> | undefined;
|
|
347
347
|
}>, z.ZodObject<{
|
|
348
348
|
kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
|
|
@@ -387,32 +387,38 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
387
387
|
fid?: string | undefined;
|
|
388
388
|
flowContext?: Record<string, any> | undefined;
|
|
389
389
|
}>]>;
|
|
390
|
+
fid: z.ZodOptional<z.ZodString>;
|
|
391
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
390
392
|
agentId: z.ZodOptional<z.ZodString>;
|
|
393
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
394
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
391
395
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
396
|
+
}>, {
|
|
392
397
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
393
|
-
deliveryStrategy: z.ZodObject<{
|
|
398
|
+
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
394
399
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
400
|
+
}, {
|
|
395
401
|
to: z.ZodObject<{
|
|
396
402
|
cid: z.ZodOptional<z.ZodString>;
|
|
397
403
|
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
398
404
|
users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
399
405
|
webhooks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
400
406
|
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
cid?: string | undefined;
|
|
402
407
|
groups?: string[] | undefined;
|
|
408
|
+
cid?: string | undefined;
|
|
403
409
|
users?: string[] | undefined;
|
|
404
410
|
webhooks?: string[] | undefined;
|
|
405
411
|
}, {
|
|
406
|
-
cid?: string | undefined;
|
|
407
412
|
groups?: string[] | undefined;
|
|
413
|
+
cid?: string | undefined;
|
|
408
414
|
users?: string[] | undefined;
|
|
409
415
|
webhooks?: string[] | undefined;
|
|
410
416
|
}>;
|
|
411
417
|
teamId: z.ZodString;
|
|
412
|
-
}
|
|
418
|
+
}>, "strip", z.ZodTypeAny, {
|
|
413
419
|
to: {
|
|
414
|
-
cid?: string | undefined;
|
|
415
420
|
groups?: string[] | undefined;
|
|
421
|
+
cid?: string | undefined;
|
|
416
422
|
users?: string[] | undefined;
|
|
417
423
|
webhooks?: string[] | undefined;
|
|
418
424
|
};
|
|
@@ -420,21 +426,21 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
420
426
|
copySecOpsTeam?: boolean | undefined;
|
|
421
427
|
}, {
|
|
422
428
|
to: {
|
|
423
|
-
cid?: string | undefined;
|
|
424
429
|
groups?: string[] | undefined;
|
|
430
|
+
cid?: string | undefined;
|
|
425
431
|
users?: string[] | undefined;
|
|
426
432
|
webhooks?: string[] | undefined;
|
|
427
433
|
};
|
|
428
434
|
teamId: string;
|
|
429
435
|
copySecOpsTeam?: boolean | undefined;
|
|
430
436
|
}>;
|
|
431
|
-
}
|
|
437
|
+
}>, "strip", z.ZodTypeAny, {
|
|
432
438
|
status: NotificationStatus;
|
|
433
439
|
contentStrategy: {
|
|
434
440
|
kind: ContentStrategyKind.RAW;
|
|
435
441
|
content: string;
|
|
436
|
-
subject?: string | undefined;
|
|
437
442
|
context?: Record<string, string> | undefined;
|
|
443
|
+
subject?: string | undefined;
|
|
438
444
|
flowContext?: Record<string, any> | undefined;
|
|
439
445
|
} | {
|
|
440
446
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -454,8 +460,8 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
454
460
|
deliveryChannel: DeliveryStrategyKind.SLACK;
|
|
455
461
|
deliveryStrategy: {
|
|
456
462
|
to: {
|
|
457
|
-
cid?: string | undefined;
|
|
458
463
|
groups?: string[] | undefined;
|
|
464
|
+
cid?: string | undefined;
|
|
459
465
|
users?: string[] | undefined;
|
|
460
466
|
webhooks?: string[] | undefined;
|
|
461
467
|
};
|
|
@@ -477,8 +483,8 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
477
483
|
contentStrategy: {
|
|
478
484
|
kind: ContentStrategyKind.RAW;
|
|
479
485
|
content: string;
|
|
480
|
-
subject?: string | undefined;
|
|
481
486
|
context?: Record<string, string> | undefined;
|
|
487
|
+
subject?: string | undefined;
|
|
482
488
|
flowContext?: Record<string, any> | undefined;
|
|
483
489
|
} | {
|
|
484
490
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -498,8 +504,8 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
498
504
|
deliveryChannel: DeliveryStrategyKind.SLACK;
|
|
499
505
|
deliveryStrategy: {
|
|
500
506
|
to: {
|
|
501
|
-
cid?: string | undefined;
|
|
502
507
|
groups?: string[] | undefined;
|
|
508
|
+
cid?: string | undefined;
|
|
503
509
|
users?: string[] | undefined;
|
|
504
510
|
webhooks?: string[] | undefined;
|
|
505
511
|
};
|
|
@@ -518,16 +524,13 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
|
|
|
518
524
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
519
525
|
}>;
|
|
520
526
|
export type SlackNotificationUpsertDto = z.infer<typeof _SlackNotificationUpsertDto>;
|
|
521
|
-
export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
522
|
-
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
527
|
+
export declare const _EmailNotificationUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
523
528
|
id: z.ZodOptional<z.ZodString>;
|
|
524
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
525
529
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
526
530
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
527
531
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
fid: z.ZodOptional<z.ZodString>;
|
|
532
|
+
}, {
|
|
533
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
531
534
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
532
535
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
533
536
|
content: z.ZodString;
|
|
@@ -537,14 +540,14 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
537
540
|
}, "strip", z.ZodTypeAny, {
|
|
538
541
|
kind: ContentStrategyKind.RAW;
|
|
539
542
|
content: string;
|
|
540
|
-
subject?: string | undefined;
|
|
541
543
|
context?: Record<string, string> | undefined;
|
|
544
|
+
subject?: string | undefined;
|
|
542
545
|
flowContext?: Record<string, any> | undefined;
|
|
543
546
|
}, {
|
|
544
547
|
kind: ContentStrategyKind.RAW;
|
|
545
548
|
content: string;
|
|
546
|
-
subject?: string | undefined;
|
|
547
549
|
context?: Record<string, string> | undefined;
|
|
550
|
+
subject?: string | undefined;
|
|
548
551
|
flowContext?: Record<string, any> | undefined;
|
|
549
552
|
}>, z.ZodObject<{
|
|
550
553
|
kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
|
|
@@ -589,11 +592,17 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
589
592
|
fid?: string | undefined;
|
|
590
593
|
flowContext?: Record<string, any> | undefined;
|
|
591
594
|
}>]>;
|
|
595
|
+
fid: z.ZodOptional<z.ZodString>;
|
|
596
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
592
597
|
agentId: z.ZodOptional<z.ZodString>;
|
|
598
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
599
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
593
600
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
601
|
+
}>, {
|
|
594
602
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
595
|
-
deliveryStrategy: z.ZodObject<{
|
|
603
|
+
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
596
604
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
605
|
+
}, {
|
|
597
606
|
to: z.ZodObject<{
|
|
598
607
|
users: z.ZodArray<z.ZodString, "many">;
|
|
599
608
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -602,7 +611,7 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
602
611
|
users: string[];
|
|
603
612
|
}>;
|
|
604
613
|
subject: z.ZodString;
|
|
605
|
-
}
|
|
614
|
+
}>, "strip", z.ZodTypeAny, {
|
|
606
615
|
subject: string;
|
|
607
616
|
to: {
|
|
608
617
|
users: string[];
|
|
@@ -615,13 +624,13 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
615
624
|
};
|
|
616
625
|
copySecOpsTeam?: boolean | undefined;
|
|
617
626
|
}>;
|
|
618
|
-
}
|
|
627
|
+
}>, "strip", z.ZodTypeAny, {
|
|
619
628
|
status: NotificationStatus;
|
|
620
629
|
contentStrategy: {
|
|
621
630
|
kind: ContentStrategyKind.RAW;
|
|
622
631
|
content: string;
|
|
623
|
-
subject?: string | undefined;
|
|
624
632
|
context?: Record<string, string> | undefined;
|
|
633
|
+
subject?: string | undefined;
|
|
625
634
|
flowContext?: Record<string, any> | undefined;
|
|
626
635
|
} | {
|
|
627
636
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -661,8 +670,8 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
661
670
|
contentStrategy: {
|
|
662
671
|
kind: ContentStrategyKind.RAW;
|
|
663
672
|
content: string;
|
|
664
|
-
subject?: string | undefined;
|
|
665
673
|
context?: Record<string, string> | undefined;
|
|
674
|
+
subject?: string | undefined;
|
|
666
675
|
flowContext?: Record<string, any> | undefined;
|
|
667
676
|
} | {
|
|
668
677
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -699,16 +708,13 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
|
|
|
699
708
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
700
709
|
}>;
|
|
701
710
|
export type EmailNotificationUpsertDto = z.infer<typeof _EmailNotificationUpsertDto>;
|
|
702
|
-
export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryChannel", [z.ZodObject<{
|
|
703
|
-
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
711
|
+
export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryChannel", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
704
712
|
id: z.ZodOptional<z.ZodString>;
|
|
705
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
706
713
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
707
714
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
708
715
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
fid: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, {
|
|
717
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
712
718
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
713
719
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
714
720
|
content: z.ZodString;
|
|
@@ -718,14 +724,14 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
718
724
|
}, "strip", z.ZodTypeAny, {
|
|
719
725
|
kind: ContentStrategyKind.RAW;
|
|
720
726
|
content: string;
|
|
721
|
-
subject?: string | undefined;
|
|
722
727
|
context?: Record<string, string> | undefined;
|
|
728
|
+
subject?: string | undefined;
|
|
723
729
|
flowContext?: Record<string, any> | undefined;
|
|
724
730
|
}, {
|
|
725
731
|
kind: ContentStrategyKind.RAW;
|
|
726
732
|
content: string;
|
|
727
|
-
subject?: string | undefined;
|
|
728
733
|
context?: Record<string, string> | undefined;
|
|
734
|
+
subject?: string | undefined;
|
|
729
735
|
flowContext?: Record<string, any> | undefined;
|
|
730
736
|
}>, z.ZodObject<{
|
|
731
737
|
kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
|
|
@@ -770,32 +776,38 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
770
776
|
fid?: string | undefined;
|
|
771
777
|
flowContext?: Record<string, any> | undefined;
|
|
772
778
|
}>]>;
|
|
779
|
+
fid: z.ZodOptional<z.ZodString>;
|
|
780
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
773
781
|
agentId: z.ZodOptional<z.ZodString>;
|
|
782
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
783
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
774
784
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
785
|
+
}>, {
|
|
775
786
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
776
|
-
deliveryStrategy: z.ZodObject<{
|
|
787
|
+
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
777
788
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
789
|
+
}, {
|
|
778
790
|
to: z.ZodObject<{
|
|
779
791
|
cid: z.ZodOptional<z.ZodString>;
|
|
780
792
|
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
781
793
|
users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
782
794
|
webhooks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
783
795
|
}, "strip", z.ZodTypeAny, {
|
|
784
|
-
cid?: string | undefined;
|
|
785
796
|
groups?: string[] | undefined;
|
|
797
|
+
cid?: string | undefined;
|
|
786
798
|
users?: string[] | undefined;
|
|
787
799
|
webhooks?: string[] | undefined;
|
|
788
800
|
}, {
|
|
789
|
-
cid?: string | undefined;
|
|
790
801
|
groups?: string[] | undefined;
|
|
802
|
+
cid?: string | undefined;
|
|
791
803
|
users?: string[] | undefined;
|
|
792
804
|
webhooks?: string[] | undefined;
|
|
793
805
|
}>;
|
|
794
806
|
teamId: z.ZodString;
|
|
795
|
-
}
|
|
807
|
+
}>, "strip", z.ZodTypeAny, {
|
|
796
808
|
to: {
|
|
797
|
-
cid?: string | undefined;
|
|
798
809
|
groups?: string[] | undefined;
|
|
810
|
+
cid?: string | undefined;
|
|
799
811
|
users?: string[] | undefined;
|
|
800
812
|
webhooks?: string[] | undefined;
|
|
801
813
|
};
|
|
@@ -803,21 +815,21 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
803
815
|
copySecOpsTeam?: boolean | undefined;
|
|
804
816
|
}, {
|
|
805
817
|
to: {
|
|
806
|
-
cid?: string | undefined;
|
|
807
818
|
groups?: string[] | undefined;
|
|
819
|
+
cid?: string | undefined;
|
|
808
820
|
users?: string[] | undefined;
|
|
809
821
|
webhooks?: string[] | undefined;
|
|
810
822
|
};
|
|
811
823
|
teamId: string;
|
|
812
824
|
copySecOpsTeam?: boolean | undefined;
|
|
813
825
|
}>;
|
|
814
|
-
}
|
|
826
|
+
}>, "strip", z.ZodTypeAny, {
|
|
815
827
|
status: NotificationStatus;
|
|
816
828
|
contentStrategy: {
|
|
817
829
|
kind: ContentStrategyKind.RAW;
|
|
818
830
|
content: string;
|
|
819
|
-
subject?: string | undefined;
|
|
820
831
|
context?: Record<string, string> | undefined;
|
|
832
|
+
subject?: string | undefined;
|
|
821
833
|
flowContext?: Record<string, any> | undefined;
|
|
822
834
|
} | {
|
|
823
835
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -837,8 +849,8 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
837
849
|
deliveryChannel: DeliveryStrategyKind.SLACK;
|
|
838
850
|
deliveryStrategy: {
|
|
839
851
|
to: {
|
|
840
|
-
cid?: string | undefined;
|
|
841
852
|
groups?: string[] | undefined;
|
|
853
|
+
cid?: string | undefined;
|
|
842
854
|
users?: string[] | undefined;
|
|
843
855
|
webhooks?: string[] | undefined;
|
|
844
856
|
};
|
|
@@ -860,8 +872,8 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
860
872
|
contentStrategy: {
|
|
861
873
|
kind: ContentStrategyKind.RAW;
|
|
862
874
|
content: string;
|
|
863
|
-
subject?: string | undefined;
|
|
864
875
|
context?: Record<string, string> | undefined;
|
|
876
|
+
subject?: string | undefined;
|
|
865
877
|
flowContext?: Record<string, any> | undefined;
|
|
866
878
|
} | {
|
|
867
879
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -881,8 +893,8 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
881
893
|
deliveryChannel: DeliveryStrategyKind.SLACK;
|
|
882
894
|
deliveryStrategy: {
|
|
883
895
|
to: {
|
|
884
|
-
cid?: string | undefined;
|
|
885
896
|
groups?: string[] | undefined;
|
|
897
|
+
cid?: string | undefined;
|
|
886
898
|
users?: string[] | undefined;
|
|
887
899
|
webhooks?: string[] | undefined;
|
|
888
900
|
};
|
|
@@ -899,16 +911,13 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
899
911
|
fid?: string | undefined;
|
|
900
912
|
agentId?: string | undefined;
|
|
901
913
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
902
|
-
}>, z.ZodObject<{
|
|
903
|
-
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
914
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
904
915
|
id: z.ZodOptional<z.ZodString>;
|
|
905
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
906
916
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
907
917
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
908
918
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
fid: z.ZodOptional<z.ZodString>;
|
|
919
|
+
}, {
|
|
920
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
912
921
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
913
922
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
914
923
|
content: z.ZodString;
|
|
@@ -918,14 +927,14 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
918
927
|
}, "strip", z.ZodTypeAny, {
|
|
919
928
|
kind: ContentStrategyKind.RAW;
|
|
920
929
|
content: string;
|
|
921
|
-
subject?: string | undefined;
|
|
922
930
|
context?: Record<string, string> | undefined;
|
|
931
|
+
subject?: string | undefined;
|
|
923
932
|
flowContext?: Record<string, any> | undefined;
|
|
924
933
|
}, {
|
|
925
934
|
kind: ContentStrategyKind.RAW;
|
|
926
935
|
content: string;
|
|
927
|
-
subject?: string | undefined;
|
|
928
936
|
context?: Record<string, string> | undefined;
|
|
937
|
+
subject?: string | undefined;
|
|
929
938
|
flowContext?: Record<string, any> | undefined;
|
|
930
939
|
}>, z.ZodObject<{
|
|
931
940
|
kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
|
|
@@ -970,11 +979,17 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
970
979
|
fid?: string | undefined;
|
|
971
980
|
flowContext?: Record<string, any> | undefined;
|
|
972
981
|
}>]>;
|
|
982
|
+
fid: z.ZodOptional<z.ZodString>;
|
|
983
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
973
984
|
agentId: z.ZodOptional<z.ZodString>;
|
|
985
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
986
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
974
987
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
988
|
+
}>, {
|
|
975
989
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
976
|
-
deliveryStrategy: z.ZodObject<{
|
|
990
|
+
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
977
991
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
992
|
+
}, {
|
|
978
993
|
to: z.ZodObject<{
|
|
979
994
|
users: z.ZodArray<z.ZodString, "many">;
|
|
980
995
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -983,7 +998,7 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
983
998
|
users: string[];
|
|
984
999
|
}>;
|
|
985
1000
|
subject: z.ZodString;
|
|
986
|
-
}
|
|
1001
|
+
}>, "strip", z.ZodTypeAny, {
|
|
987
1002
|
subject: string;
|
|
988
1003
|
to: {
|
|
989
1004
|
users: string[];
|
|
@@ -996,13 +1011,13 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
996
1011
|
};
|
|
997
1012
|
copySecOpsTeam?: boolean | undefined;
|
|
998
1013
|
}>;
|
|
999
|
-
}
|
|
1014
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1000
1015
|
status: NotificationStatus;
|
|
1001
1016
|
contentStrategy: {
|
|
1002
1017
|
kind: ContentStrategyKind.RAW;
|
|
1003
1018
|
content: string;
|
|
1004
|
-
subject?: string | undefined;
|
|
1005
1019
|
context?: Record<string, string> | undefined;
|
|
1020
|
+
subject?: string | undefined;
|
|
1006
1021
|
flowContext?: Record<string, any> | undefined;
|
|
1007
1022
|
} | {
|
|
1008
1023
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -1042,8 +1057,8 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
1042
1057
|
contentStrategy: {
|
|
1043
1058
|
kind: ContentStrategyKind.RAW;
|
|
1044
1059
|
content: string;
|
|
1045
|
-
subject?: string | undefined;
|
|
1046
1060
|
context?: Record<string, string> | undefined;
|
|
1061
|
+
subject?: string | undefined;
|
|
1047
1062
|
flowContext?: Record<string, any> | undefined;
|
|
1048
1063
|
} | {
|
|
1049
1064
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -1080,16 +1095,13 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
|
|
|
1080
1095
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1081
1096
|
}>]>;
|
|
1082
1097
|
export type NotificationUpsertDto = z.infer<typeof _NotificationUpsertDto>;
|
|
1083
|
-
export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion<"deliveryChannel", [z.ZodObject<{
|
|
1084
|
-
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
1098
|
+
export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion<"deliveryChannel", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1085
1099
|
id: z.ZodOptional<z.ZodString>;
|
|
1086
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
1087
1100
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1088
1101
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1089
1102
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
fid: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
}, {
|
|
1104
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
1093
1105
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1094
1106
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
1095
1107
|
content: z.ZodString;
|
|
@@ -1099,14 +1111,14 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1099
1111
|
}, "strip", z.ZodTypeAny, {
|
|
1100
1112
|
kind: ContentStrategyKind.RAW;
|
|
1101
1113
|
content: string;
|
|
1102
|
-
subject?: string | undefined;
|
|
1103
1114
|
context?: Record<string, string> | undefined;
|
|
1115
|
+
subject?: string | undefined;
|
|
1104
1116
|
flowContext?: Record<string, any> | undefined;
|
|
1105
1117
|
}, {
|
|
1106
1118
|
kind: ContentStrategyKind.RAW;
|
|
1107
1119
|
content: string;
|
|
1108
|
-
subject?: string | undefined;
|
|
1109
1120
|
context?: Record<string, string> | undefined;
|
|
1121
|
+
subject?: string | undefined;
|
|
1110
1122
|
flowContext?: Record<string, any> | undefined;
|
|
1111
1123
|
}>, z.ZodObject<{
|
|
1112
1124
|
kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
|
|
@@ -1151,32 +1163,38 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1151
1163
|
fid?: string | undefined;
|
|
1152
1164
|
flowContext?: Record<string, any> | undefined;
|
|
1153
1165
|
}>]>;
|
|
1166
|
+
fid: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
1154
1168
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1169
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1155
1171
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1172
|
+
}>, {
|
|
1156
1173
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
|
|
1157
|
-
deliveryStrategy: z.ZodObject<{
|
|
1174
|
+
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
1158
1175
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
1176
|
+
}, {
|
|
1159
1177
|
to: z.ZodObject<{
|
|
1160
1178
|
cid: z.ZodOptional<z.ZodString>;
|
|
1161
1179
|
groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1162
1180
|
users: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1163
1181
|
webhooks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1164
1182
|
}, "strip", z.ZodTypeAny, {
|
|
1165
|
-
cid?: string | undefined;
|
|
1166
1183
|
groups?: string[] | undefined;
|
|
1184
|
+
cid?: string | undefined;
|
|
1167
1185
|
users?: string[] | undefined;
|
|
1168
1186
|
webhooks?: string[] | undefined;
|
|
1169
1187
|
}, {
|
|
1170
|
-
cid?: string | undefined;
|
|
1171
1188
|
groups?: string[] | undefined;
|
|
1189
|
+
cid?: string | undefined;
|
|
1172
1190
|
users?: string[] | undefined;
|
|
1173
1191
|
webhooks?: string[] | undefined;
|
|
1174
1192
|
}>;
|
|
1175
1193
|
teamId: z.ZodString;
|
|
1176
|
-
}
|
|
1194
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1177
1195
|
to: {
|
|
1178
|
-
cid?: string | undefined;
|
|
1179
1196
|
groups?: string[] | undefined;
|
|
1197
|
+
cid?: string | undefined;
|
|
1180
1198
|
users?: string[] | undefined;
|
|
1181
1199
|
webhooks?: string[] | undefined;
|
|
1182
1200
|
};
|
|
@@ -1184,21 +1202,21 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1184
1202
|
copySecOpsTeam?: boolean | undefined;
|
|
1185
1203
|
}, {
|
|
1186
1204
|
to: {
|
|
1187
|
-
cid?: string | undefined;
|
|
1188
1205
|
groups?: string[] | undefined;
|
|
1206
|
+
cid?: string | undefined;
|
|
1189
1207
|
users?: string[] | undefined;
|
|
1190
1208
|
webhooks?: string[] | undefined;
|
|
1191
1209
|
};
|
|
1192
1210
|
teamId: string;
|
|
1193
1211
|
copySecOpsTeam?: boolean | undefined;
|
|
1194
1212
|
}>;
|
|
1195
|
-
}
|
|
1213
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1196
1214
|
status: NotificationStatus;
|
|
1197
1215
|
contentStrategy: {
|
|
1198
1216
|
kind: ContentStrategyKind.RAW;
|
|
1199
1217
|
content: string;
|
|
1200
|
-
subject?: string | undefined;
|
|
1201
1218
|
context?: Record<string, string> | undefined;
|
|
1219
|
+
subject?: string | undefined;
|
|
1202
1220
|
flowContext?: Record<string, any> | undefined;
|
|
1203
1221
|
} | {
|
|
1204
1222
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -1218,8 +1236,8 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1218
1236
|
deliveryChannel: DeliveryStrategyKind.SLACK;
|
|
1219
1237
|
deliveryStrategy: {
|
|
1220
1238
|
to: {
|
|
1221
|
-
cid?: string | undefined;
|
|
1222
1239
|
groups?: string[] | undefined;
|
|
1240
|
+
cid?: string | undefined;
|
|
1223
1241
|
users?: string[] | undefined;
|
|
1224
1242
|
webhooks?: string[] | undefined;
|
|
1225
1243
|
};
|
|
@@ -1241,8 +1259,8 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1241
1259
|
contentStrategy: {
|
|
1242
1260
|
kind: ContentStrategyKind.RAW;
|
|
1243
1261
|
content: string;
|
|
1244
|
-
subject?: string | undefined;
|
|
1245
1262
|
context?: Record<string, string> | undefined;
|
|
1263
|
+
subject?: string | undefined;
|
|
1246
1264
|
flowContext?: Record<string, any> | undefined;
|
|
1247
1265
|
} | {
|
|
1248
1266
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -1262,8 +1280,8 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1262
1280
|
deliveryChannel: DeliveryStrategyKind.SLACK;
|
|
1263
1281
|
deliveryStrategy: {
|
|
1264
1282
|
to: {
|
|
1265
|
-
cid?: string | undefined;
|
|
1266
1283
|
groups?: string[] | undefined;
|
|
1284
|
+
cid?: string | undefined;
|
|
1267
1285
|
users?: string[] | undefined;
|
|
1268
1286
|
webhooks?: string[] | undefined;
|
|
1269
1287
|
};
|
|
@@ -1280,16 +1298,13 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1280
1298
|
fid?: string | undefined;
|
|
1281
1299
|
agentId?: string | undefined;
|
|
1282
1300
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1283
|
-
}>, z.ZodObject<{
|
|
1284
|
-
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
1301
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1285
1302
|
id: z.ZodOptional<z.ZodString>;
|
|
1286
|
-
uid: z.ZodOptional<z.ZodString>;
|
|
1287
1303
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1288
1304
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1289
1305
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
fid: z.ZodOptional<z.ZodString>;
|
|
1306
|
+
}, {
|
|
1307
|
+
status: z.ZodNativeEnum<typeof NotificationStatus>;
|
|
1293
1308
|
contentStrategy: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1294
1309
|
kind: z.ZodLiteral<ContentStrategyKind.RAW>;
|
|
1295
1310
|
content: z.ZodString;
|
|
@@ -1299,14 +1314,14 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1299
1314
|
}, "strip", z.ZodTypeAny, {
|
|
1300
1315
|
kind: ContentStrategyKind.RAW;
|
|
1301
1316
|
content: string;
|
|
1302
|
-
subject?: string | undefined;
|
|
1303
1317
|
context?: Record<string, string> | undefined;
|
|
1318
|
+
subject?: string | undefined;
|
|
1304
1319
|
flowContext?: Record<string, any> | undefined;
|
|
1305
1320
|
}, {
|
|
1306
1321
|
kind: ContentStrategyKind.RAW;
|
|
1307
1322
|
content: string;
|
|
1308
|
-
subject?: string | undefined;
|
|
1309
1323
|
context?: Record<string, string> | undefined;
|
|
1324
|
+
subject?: string | undefined;
|
|
1310
1325
|
flowContext?: Record<string, any> | undefined;
|
|
1311
1326
|
}>, z.ZodObject<{
|
|
1312
1327
|
kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
|
|
@@ -1351,11 +1366,17 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1351
1366
|
fid?: string | undefined;
|
|
1352
1367
|
flowContext?: Record<string, any> | undefined;
|
|
1353
1368
|
}>]>;
|
|
1369
|
+
fid: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
1354
1371
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1372
|
+
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1355
1374
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1375
|
+
}>, {
|
|
1356
1376
|
deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
|
|
1357
|
-
deliveryStrategy: z.ZodObject<{
|
|
1377
|
+
deliveryStrategy: z.ZodObject<z.objectUtil.extendShape<{
|
|
1358
1378
|
copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
|
|
1379
|
+
}, {
|
|
1359
1380
|
to: z.ZodObject<{
|
|
1360
1381
|
users: z.ZodArray<z.ZodString, "many">;
|
|
1361
1382
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1364,7 +1385,7 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1364
1385
|
users: string[];
|
|
1365
1386
|
}>;
|
|
1366
1387
|
subject: z.ZodString;
|
|
1367
|
-
}
|
|
1388
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1368
1389
|
subject: string;
|
|
1369
1390
|
to: {
|
|
1370
1391
|
users: string[];
|
|
@@ -1377,13 +1398,13 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1377
1398
|
};
|
|
1378
1399
|
copySecOpsTeam?: boolean | undefined;
|
|
1379
1400
|
}>;
|
|
1380
|
-
}
|
|
1401
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1381
1402
|
status: NotificationStatus;
|
|
1382
1403
|
contentStrategy: {
|
|
1383
1404
|
kind: ContentStrategyKind.RAW;
|
|
1384
1405
|
content: string;
|
|
1385
|
-
subject?: string | undefined;
|
|
1386
1406
|
context?: Record<string, string> | undefined;
|
|
1407
|
+
subject?: string | undefined;
|
|
1387
1408
|
flowContext?: Record<string, any> | undefined;
|
|
1388
1409
|
} | {
|
|
1389
1410
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -1423,8 +1444,8 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1423
1444
|
contentStrategy: {
|
|
1424
1445
|
kind: ContentStrategyKind.RAW;
|
|
1425
1446
|
content: string;
|
|
1426
|
-
subject?: string | undefined;
|
|
1427
1447
|
context?: Record<string, string> | undefined;
|
|
1448
|
+
subject?: string | undefined;
|
|
1428
1449
|
flowContext?: Record<string, any> | undefined;
|
|
1429
1450
|
} | {
|
|
1430
1451
|
kind: ContentStrategyKind.TEMPLATE;
|
|
@@ -1476,11 +1497,12 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
|
|
|
1476
1497
|
deletedAt: string | null;
|
|
1477
1498
|
}>>;
|
|
1478
1499
|
export type NotificationDto = NotificationUpsertDto & BaseDto;
|
|
1479
|
-
export declare const _CreateNotificationDto: z.ZodObject<{
|
|
1500
|
+
export declare const _CreateNotificationDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
1480
1501
|
id: z.ZodOptional<z.ZodString>;
|
|
1481
1502
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
1482
1503
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1483
1504
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1505
|
+
}, {
|
|
1484
1506
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
1485
1507
|
channel: z.ZodNativeEnum<typeof DeliveryStrategyKind>;
|
|
1486
1508
|
content: z.ZodObject<{
|
|
@@ -1492,14 +1514,14 @@ export declare const _CreateNotificationDto: z.ZodObject<{
|
|
|
1492
1514
|
}, "strip", z.ZodTypeAny, {
|
|
1493
1515
|
kind: ContentStrategyKind.RAW;
|
|
1494
1516
|
content: string;
|
|
1495
|
-
subject?: string | undefined;
|
|
1496
1517
|
context?: Record<string, string> | undefined;
|
|
1518
|
+
subject?: string | undefined;
|
|
1497
1519
|
flowContext?: Record<string, any> | undefined;
|
|
1498
1520
|
}, {
|
|
1499
1521
|
kind: ContentStrategyKind.RAW;
|
|
1500
1522
|
content: string;
|
|
1501
|
-
subject?: string | undefined;
|
|
1502
1523
|
context?: Record<string, string> | undefined;
|
|
1524
|
+
subject?: string | undefined;
|
|
1503
1525
|
flowContext?: Record<string, any> | undefined;
|
|
1504
1526
|
}>;
|
|
1505
1527
|
options: z.ZodObject<{
|
|
@@ -1514,33 +1536,34 @@ export declare const _CreateNotificationDto: z.ZodObject<{
|
|
|
1514
1536
|
flowStateId: z.ZodOptional<z.ZodString>;
|
|
1515
1537
|
context: z.ZodOptional<z.ZodNativeEnum<typeof NotificationContextKind>>;
|
|
1516
1538
|
deliveryMode: z.ZodOptional<z.ZodNativeEnum<typeof DeliveryModeKind>>;
|
|
1539
|
+
/** @deprecated ID of the agent from which the notification was sent */
|
|
1517
1540
|
faid: z.ZodOptional<z.ZodString>;
|
|
1518
1541
|
agentId: z.ZodOptional<z.ZodString>;
|
|
1519
1542
|
includeFinding: z.ZodOptional<z.ZodBoolean>;
|
|
1520
|
-
}
|
|
1543
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1521
1544
|
options: {
|
|
1522
1545
|
copySecOpsTeam?: boolean | undefined;
|
|
1523
1546
|
};
|
|
1524
1547
|
content: {
|
|
1525
1548
|
kind: ContentStrategyKind.RAW;
|
|
1526
1549
|
content: string;
|
|
1527
|
-
subject?: string | undefined;
|
|
1528
1550
|
context?: Record<string, string> | undefined;
|
|
1551
|
+
subject?: string | undefined;
|
|
1529
1552
|
flowContext?: Record<string, any> | undefined;
|
|
1530
1553
|
};
|
|
1531
1554
|
channel: DeliveryStrategyKind;
|
|
1532
1555
|
id?: string | undefined;
|
|
1556
|
+
uid?: string | undefined;
|
|
1533
1557
|
createdAt?: string | undefined;
|
|
1534
1558
|
updatedAt?: string | undefined;
|
|
1535
1559
|
deletedAt?: string | null | undefined;
|
|
1536
|
-
test?: boolean | undefined;
|
|
1537
|
-
uid?: string | undefined;
|
|
1538
|
-
fid?: string | undefined;
|
|
1539
1560
|
flowStateId?: string | undefined;
|
|
1540
1561
|
context?: NotificationContextKind | undefined;
|
|
1562
|
+
fid?: string | undefined;
|
|
1563
|
+
agentId?: string | undefined;
|
|
1541
1564
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1565
|
+
test?: boolean | undefined;
|
|
1542
1566
|
faid?: string | undefined;
|
|
1543
|
-
agentId?: string | undefined;
|
|
1544
1567
|
includeFinding?: boolean | undefined;
|
|
1545
1568
|
}, {
|
|
1546
1569
|
options: {
|
|
@@ -1549,23 +1572,23 @@ export declare const _CreateNotificationDto: z.ZodObject<{
|
|
|
1549
1572
|
content: {
|
|
1550
1573
|
kind: ContentStrategyKind.RAW;
|
|
1551
1574
|
content: string;
|
|
1552
|
-
subject?: string | undefined;
|
|
1553
1575
|
context?: Record<string, string> | undefined;
|
|
1576
|
+
subject?: string | undefined;
|
|
1554
1577
|
flowContext?: Record<string, any> | undefined;
|
|
1555
1578
|
};
|
|
1556
1579
|
channel: DeliveryStrategyKind;
|
|
1557
1580
|
id?: string | undefined;
|
|
1581
|
+
uid?: string | undefined;
|
|
1558
1582
|
createdAt?: string | undefined;
|
|
1559
1583
|
updatedAt?: string | undefined;
|
|
1560
1584
|
deletedAt?: string | null | undefined;
|
|
1561
|
-
test?: boolean | undefined;
|
|
1562
|
-
uid?: string | undefined;
|
|
1563
|
-
fid?: string | undefined;
|
|
1564
1585
|
flowStateId?: string | undefined;
|
|
1565
1586
|
context?: NotificationContextKind | undefined;
|
|
1587
|
+
fid?: string | undefined;
|
|
1588
|
+
agentId?: string | undefined;
|
|
1566
1589
|
deliveryMode?: DeliveryModeKind | undefined;
|
|
1590
|
+
test?: boolean | undefined;
|
|
1567
1591
|
faid?: string | undefined;
|
|
1568
|
-
agentId?: string | undefined;
|
|
1569
1592
|
includeFinding?: boolean | undefined;
|
|
1570
1593
|
}>;
|
|
1571
1594
|
export type CreateNotificationDto = z.infer<typeof _CreateNotificationDto>;
|