@ampsec/platform-client 62.10.0 → 62.12.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.
@@ -33,57 +33,56 @@ export declare const _NotificationAddress: z.ZodObject<{
33
33
  users?: (string | number)[] | undefined;
34
34
  webhooks?: string[] | undefined;
35
35
  }>;
36
- export declare const _FlowContextKey: z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>;
37
- export declare const _FlowContext: z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>;
36
+ export declare const _FlowContext: z.ZodRecord<z.ZodString, z.ZodAny>;
38
37
  export declare const _RawContentStrategy: z.ZodObject<{
39
38
  kind: z.ZodLiteral<ContentStrategyKind.RAW>;
40
39
  content: z.ZodString;
41
40
  subject: z.ZodOptional<z.ZodString>;
42
41
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
43
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
42
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
44
43
  }, "strip", z.ZodTypeAny, {
45
44
  kind: ContentStrategyKind.RAW;
46
45
  content: string;
47
46
  subject?: string | undefined;
48
47
  context?: Record<string, string> | undefined;
49
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
48
+ flowContext?: Record<string, any> | undefined;
50
49
  }, {
51
50
  kind: ContentStrategyKind.RAW;
52
51
  content: string;
53
52
  subject?: string | undefined;
54
53
  context?: Record<string, string> | undefined;
55
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
54
+ flowContext?: Record<string, any> | undefined;
56
55
  }>;
57
56
  export type RawContentStrategy = z.infer<typeof _RawContentStrategy>;
58
57
  export declare const _TemplateContentStrategy: z.ZodObject<{
59
58
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
60
59
  templateId: z.ZodString;
61
60
  context: z.ZodRecord<z.ZodString, z.ZodString>;
62
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
61
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
63
62
  }, "strip", z.ZodTypeAny, {
64
63
  kind: ContentStrategyKind.TEMPLATE;
65
64
  context: Record<string, string>;
66
65
  templateId: string;
67
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
66
+ flowContext?: Record<string, any> | undefined;
68
67
  }, {
69
68
  kind: ContentStrategyKind.TEMPLATE;
70
69
  context: Record<string, string>;
71
70
  templateId: string;
72
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
71
+ flowContext?: Record<string, any> | undefined;
73
72
  }>;
74
73
  export type TemplateContentStrategy = z.infer<typeof _TemplateContentStrategy>;
75
74
  export declare const _FindingContentStrategy: z.ZodObject<{
76
75
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
77
76
  fid: z.ZodString;
78
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
77
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
79
78
  }, "strip", z.ZodTypeAny, {
80
79
  kind: ContentStrategyKind.FINDING;
81
80
  fid: string;
82
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
81
+ flowContext?: Record<string, any> | undefined;
83
82
  }, {
84
83
  kind: ContentStrategyKind.FINDING;
85
84
  fid: string;
86
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
85
+ flowContext?: Record<string, any> | undefined;
87
86
  }>;
88
87
  export type FindingContentStrategy = z.infer<typeof _FindingContentStrategy>;
89
88
  export declare const _SlackDeliveryStrategy: z.ZodObject<{
@@ -160,46 +159,46 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
160
159
  content: z.ZodString;
161
160
  subject: z.ZodOptional<z.ZodString>;
162
161
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
163
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
162
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
164
163
  }, "strip", z.ZodTypeAny, {
165
164
  kind: ContentStrategyKind.RAW;
166
165
  content: string;
167
166
  subject?: string | undefined;
168
167
  context?: Record<string, string> | undefined;
169
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
168
+ flowContext?: Record<string, any> | undefined;
170
169
  }, {
171
170
  kind: ContentStrategyKind.RAW;
172
171
  content: string;
173
172
  subject?: string | undefined;
174
173
  context?: Record<string, string> | undefined;
175
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
174
+ flowContext?: Record<string, any> | undefined;
176
175
  }>, z.ZodObject<{
177
176
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
178
177
  fid: z.ZodString;
179
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
178
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
180
179
  }, "strip", z.ZodTypeAny, {
181
180
  kind: ContentStrategyKind.FINDING;
182
181
  fid: string;
183
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
182
+ flowContext?: Record<string, any> | undefined;
184
183
  }, {
185
184
  kind: ContentStrategyKind.FINDING;
186
185
  fid: string;
187
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
186
+ flowContext?: Record<string, any> | undefined;
188
187
  }>, z.ZodObject<{
189
188
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
190
189
  templateId: z.ZodString;
191
190
  context: z.ZodRecord<z.ZodString, z.ZodString>;
192
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
191
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
193
192
  }, "strip", z.ZodTypeAny, {
194
193
  kind: ContentStrategyKind.TEMPLATE;
195
194
  context: Record<string, string>;
196
195
  templateId: string;
197
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
196
+ flowContext?: Record<string, any> | undefined;
198
197
  }, {
199
198
  kind: ContentStrategyKind.TEMPLATE;
200
199
  context: Record<string, string>;
201
200
  templateId: string;
202
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
201
+ flowContext?: Record<string, any> | undefined;
203
202
  }>]>;
204
203
  fid: z.ZodOptional<z.ZodString>;
205
204
  uid: z.ZodOptional<z.ZodString>;
@@ -211,16 +210,16 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
211
210
  content: string;
212
211
  subject?: string | undefined;
213
212
  context?: Record<string, string> | undefined;
214
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
213
+ flowContext?: Record<string, any> | undefined;
215
214
  } | {
216
215
  kind: ContentStrategyKind.TEMPLATE;
217
216
  context: Record<string, string>;
218
217
  templateId: string;
219
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
218
+ flowContext?: Record<string, any> | undefined;
220
219
  } | {
221
220
  kind: ContentStrategyKind.FINDING;
222
221
  fid: string;
223
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
222
+ flowContext?: Record<string, any> | undefined;
224
223
  };
225
224
  id?: string | undefined;
226
225
  createdAt?: string | undefined;
@@ -236,16 +235,16 @@ export declare const _BaseNotificationUpsertDto: z.ZodObject<{
236
235
  content: string;
237
236
  subject?: string | undefined;
238
237
  context?: Record<string, string> | undefined;
239
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
238
+ flowContext?: Record<string, any> | undefined;
240
239
  } | {
241
240
  kind: ContentStrategyKind.TEMPLATE;
242
241
  context: Record<string, string>;
243
242
  templateId: string;
244
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
243
+ flowContext?: Record<string, any> | undefined;
245
244
  } | {
246
245
  kind: ContentStrategyKind.FINDING;
247
246
  fid: string;
248
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
247
+ flowContext?: Record<string, any> | undefined;
249
248
  };
250
249
  id?: string | undefined;
251
250
  createdAt?: string | undefined;
@@ -268,46 +267,46 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
268
267
  content: z.ZodString;
269
268
  subject: z.ZodOptional<z.ZodString>;
270
269
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
271
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
270
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
272
271
  }, "strip", z.ZodTypeAny, {
273
272
  kind: ContentStrategyKind.RAW;
274
273
  content: string;
275
274
  subject?: string | undefined;
276
275
  context?: Record<string, string> | undefined;
277
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
276
+ flowContext?: Record<string, any> | undefined;
278
277
  }, {
279
278
  kind: ContentStrategyKind.RAW;
280
279
  content: string;
281
280
  subject?: string | undefined;
282
281
  context?: Record<string, string> | undefined;
283
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
282
+ flowContext?: Record<string, any> | undefined;
284
283
  }>, z.ZodObject<{
285
284
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
286
285
  fid: z.ZodString;
287
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
286
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
288
287
  }, "strip", z.ZodTypeAny, {
289
288
  kind: ContentStrategyKind.FINDING;
290
289
  fid: string;
291
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
290
+ flowContext?: Record<string, any> | undefined;
292
291
  }, {
293
292
  kind: ContentStrategyKind.FINDING;
294
293
  fid: string;
295
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
294
+ flowContext?: Record<string, any> | undefined;
296
295
  }>, z.ZodObject<{
297
296
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
298
297
  templateId: z.ZodString;
299
298
  context: z.ZodRecord<z.ZodString, z.ZodString>;
300
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
299
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
301
300
  }, "strip", z.ZodTypeAny, {
302
301
  kind: ContentStrategyKind.TEMPLATE;
303
302
  context: Record<string, string>;
304
303
  templateId: string;
305
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
304
+ flowContext?: Record<string, any> | undefined;
306
305
  }, {
307
306
  kind: ContentStrategyKind.TEMPLATE;
308
307
  context: Record<string, string>;
309
308
  templateId: string;
310
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
309
+ flowContext?: Record<string, any> | undefined;
311
310
  }>]>;
312
311
  agentId: z.ZodOptional<z.ZodString>;
313
312
  deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
@@ -356,16 +355,16 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
356
355
  content: string;
357
356
  subject?: string | undefined;
358
357
  context?: Record<string, string> | undefined;
359
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
358
+ flowContext?: Record<string, any> | undefined;
360
359
  } | {
361
360
  kind: ContentStrategyKind.TEMPLATE;
362
361
  context: Record<string, string>;
363
362
  templateId: string;
364
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
363
+ flowContext?: Record<string, any> | undefined;
365
364
  } | {
366
365
  kind: ContentStrategyKind.FINDING;
367
366
  fid: string;
368
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
367
+ flowContext?: Record<string, any> | undefined;
369
368
  };
370
369
  deliveryChannel: DeliveryStrategyKind.SLACK;
371
370
  deliveryStrategy: {
@@ -392,16 +391,16 @@ export declare const _SlackNotificationUpsertDto: z.ZodObject<{
392
391
  content: string;
393
392
  subject?: string | undefined;
394
393
  context?: Record<string, string> | undefined;
395
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
394
+ flowContext?: Record<string, any> | undefined;
396
395
  } | {
397
396
  kind: ContentStrategyKind.TEMPLATE;
398
397
  context: Record<string, string>;
399
398
  templateId: string;
400
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
399
+ flowContext?: Record<string, any> | undefined;
401
400
  } | {
402
401
  kind: ContentStrategyKind.FINDING;
403
402
  fid: string;
404
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
403
+ flowContext?: Record<string, any> | undefined;
405
404
  };
406
405
  deliveryChannel: DeliveryStrategyKind.SLACK;
407
406
  deliveryStrategy: {
@@ -436,46 +435,46 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
436
435
  content: z.ZodString;
437
436
  subject: z.ZodOptional<z.ZodString>;
438
437
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
439
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
438
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
440
439
  }, "strip", z.ZodTypeAny, {
441
440
  kind: ContentStrategyKind.RAW;
442
441
  content: string;
443
442
  subject?: string | undefined;
444
443
  context?: Record<string, string> | undefined;
445
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
444
+ flowContext?: Record<string, any> | undefined;
446
445
  }, {
447
446
  kind: ContentStrategyKind.RAW;
448
447
  content: string;
449
448
  subject?: string | undefined;
450
449
  context?: Record<string, string> | undefined;
451
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
450
+ flowContext?: Record<string, any> | undefined;
452
451
  }>, z.ZodObject<{
453
452
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
454
453
  fid: z.ZodString;
455
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
454
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
456
455
  }, "strip", z.ZodTypeAny, {
457
456
  kind: ContentStrategyKind.FINDING;
458
457
  fid: string;
459
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
458
+ flowContext?: Record<string, any> | undefined;
460
459
  }, {
461
460
  kind: ContentStrategyKind.FINDING;
462
461
  fid: string;
463
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
462
+ flowContext?: Record<string, any> | undefined;
464
463
  }>, z.ZodObject<{
465
464
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
466
465
  templateId: z.ZodString;
467
466
  context: z.ZodRecord<z.ZodString, z.ZodString>;
468
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
467
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
469
468
  }, "strip", z.ZodTypeAny, {
470
469
  kind: ContentStrategyKind.TEMPLATE;
471
470
  context: Record<string, string>;
472
471
  templateId: string;
473
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
472
+ flowContext?: Record<string, any> | undefined;
474
473
  }, {
475
474
  kind: ContentStrategyKind.TEMPLATE;
476
475
  context: Record<string, string>;
477
476
  templateId: string;
478
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
477
+ flowContext?: Record<string, any> | undefined;
479
478
  }>]>;
480
479
  agentId: z.ZodOptional<z.ZodString>;
481
480
  deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
@@ -509,16 +508,16 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
509
508
  content: string;
510
509
  subject?: string | undefined;
511
510
  context?: Record<string, string> | undefined;
512
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
511
+ flowContext?: Record<string, any> | undefined;
513
512
  } | {
514
513
  kind: ContentStrategyKind.TEMPLATE;
515
514
  context: Record<string, string>;
516
515
  templateId: string;
517
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
516
+ flowContext?: Record<string, any> | undefined;
518
517
  } | {
519
518
  kind: ContentStrategyKind.FINDING;
520
519
  fid: string;
521
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
520
+ flowContext?: Record<string, any> | undefined;
522
521
  };
523
522
  deliveryChannel: DeliveryStrategyKind.EMAIL;
524
523
  deliveryStrategy: {
@@ -542,16 +541,16 @@ export declare const _EmailNotificationUpsertDto: z.ZodObject<{
542
541
  content: string;
543
542
  subject?: string | undefined;
544
543
  context?: Record<string, string> | undefined;
545
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
544
+ flowContext?: Record<string, any> | undefined;
546
545
  } | {
547
546
  kind: ContentStrategyKind.TEMPLATE;
548
547
  context: Record<string, string>;
549
548
  templateId: string;
550
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
549
+ flowContext?: Record<string, any> | undefined;
551
550
  } | {
552
551
  kind: ContentStrategyKind.FINDING;
553
552
  fid: string;
554
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
553
+ flowContext?: Record<string, any> | undefined;
555
554
  };
556
555
  deliveryChannel: DeliveryStrategyKind.EMAIL;
557
556
  deliveryStrategy: {
@@ -583,46 +582,46 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
583
582
  content: z.ZodString;
584
583
  subject: z.ZodOptional<z.ZodString>;
585
584
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
586
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
585
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
587
586
  }, "strip", z.ZodTypeAny, {
588
587
  kind: ContentStrategyKind.RAW;
589
588
  content: string;
590
589
  subject?: string | undefined;
591
590
  context?: Record<string, string> | undefined;
592
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
591
+ flowContext?: Record<string, any> | undefined;
593
592
  }, {
594
593
  kind: ContentStrategyKind.RAW;
595
594
  content: string;
596
595
  subject?: string | undefined;
597
596
  context?: Record<string, string> | undefined;
598
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
597
+ flowContext?: Record<string, any> | undefined;
599
598
  }>, z.ZodObject<{
600
599
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
601
600
  fid: z.ZodString;
602
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
601
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
603
602
  }, "strip", z.ZodTypeAny, {
604
603
  kind: ContentStrategyKind.FINDING;
605
604
  fid: string;
606
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
605
+ flowContext?: Record<string, any> | undefined;
607
606
  }, {
608
607
  kind: ContentStrategyKind.FINDING;
609
608
  fid: string;
610
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
609
+ flowContext?: Record<string, any> | undefined;
611
610
  }>, z.ZodObject<{
612
611
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
613
612
  templateId: z.ZodString;
614
613
  context: z.ZodRecord<z.ZodString, z.ZodString>;
615
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
614
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
616
615
  }, "strip", z.ZodTypeAny, {
617
616
  kind: ContentStrategyKind.TEMPLATE;
618
617
  context: Record<string, string>;
619
618
  templateId: string;
620
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
619
+ flowContext?: Record<string, any> | undefined;
621
620
  }, {
622
621
  kind: ContentStrategyKind.TEMPLATE;
623
622
  context: Record<string, string>;
624
623
  templateId: string;
625
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
624
+ flowContext?: Record<string, any> | undefined;
626
625
  }>]>;
627
626
  agentId: z.ZodOptional<z.ZodString>;
628
627
  deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
@@ -671,16 +670,16 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
671
670
  content: string;
672
671
  subject?: string | undefined;
673
672
  context?: Record<string, string> | undefined;
674
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
673
+ flowContext?: Record<string, any> | undefined;
675
674
  } | {
676
675
  kind: ContentStrategyKind.TEMPLATE;
677
676
  context: Record<string, string>;
678
677
  templateId: string;
679
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
678
+ flowContext?: Record<string, any> | undefined;
680
679
  } | {
681
680
  kind: ContentStrategyKind.FINDING;
682
681
  fid: string;
683
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
682
+ flowContext?: Record<string, any> | undefined;
684
683
  };
685
684
  deliveryChannel: DeliveryStrategyKind.SLACK;
686
685
  deliveryStrategy: {
@@ -707,16 +706,16 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
707
706
  content: string;
708
707
  subject?: string | undefined;
709
708
  context?: Record<string, string> | undefined;
710
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
709
+ flowContext?: Record<string, any> | undefined;
711
710
  } | {
712
711
  kind: ContentStrategyKind.TEMPLATE;
713
712
  context: Record<string, string>;
714
713
  templateId: string;
715
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
714
+ flowContext?: Record<string, any> | undefined;
716
715
  } | {
717
716
  kind: ContentStrategyKind.FINDING;
718
717
  fid: string;
719
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
718
+ flowContext?: Record<string, any> | undefined;
720
719
  };
721
720
  deliveryChannel: DeliveryStrategyKind.SLACK;
722
721
  deliveryStrategy: {
@@ -749,46 +748,46 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
749
748
  content: z.ZodString;
750
749
  subject: z.ZodOptional<z.ZodString>;
751
750
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
752
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
751
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
753
752
  }, "strip", z.ZodTypeAny, {
754
753
  kind: ContentStrategyKind.RAW;
755
754
  content: string;
756
755
  subject?: string | undefined;
757
756
  context?: Record<string, string> | undefined;
758
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
757
+ flowContext?: Record<string, any> | undefined;
759
758
  }, {
760
759
  kind: ContentStrategyKind.RAW;
761
760
  content: string;
762
761
  subject?: string | undefined;
763
762
  context?: Record<string, string> | undefined;
764
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
763
+ flowContext?: Record<string, any> | undefined;
765
764
  }>, z.ZodObject<{
766
765
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
767
766
  fid: z.ZodString;
768
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
767
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
769
768
  }, "strip", z.ZodTypeAny, {
770
769
  kind: ContentStrategyKind.FINDING;
771
770
  fid: string;
772
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
771
+ flowContext?: Record<string, any> | undefined;
773
772
  }, {
774
773
  kind: ContentStrategyKind.FINDING;
775
774
  fid: string;
776
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
775
+ flowContext?: Record<string, any> | undefined;
777
776
  }>, z.ZodObject<{
778
777
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
779
778
  templateId: z.ZodString;
780
779
  context: z.ZodRecord<z.ZodString, z.ZodString>;
781
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
780
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
782
781
  }, "strip", z.ZodTypeAny, {
783
782
  kind: ContentStrategyKind.TEMPLATE;
784
783
  context: Record<string, string>;
785
784
  templateId: string;
786
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
785
+ flowContext?: Record<string, any> | undefined;
787
786
  }, {
788
787
  kind: ContentStrategyKind.TEMPLATE;
789
788
  context: Record<string, string>;
790
789
  templateId: string;
791
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
790
+ flowContext?: Record<string, any> | undefined;
792
791
  }>]>;
793
792
  agentId: z.ZodOptional<z.ZodString>;
794
793
  deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
@@ -822,16 +821,16 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
822
821
  content: string;
823
822
  subject?: string | undefined;
824
823
  context?: Record<string, string> | undefined;
825
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
824
+ flowContext?: Record<string, any> | undefined;
826
825
  } | {
827
826
  kind: ContentStrategyKind.TEMPLATE;
828
827
  context: Record<string, string>;
829
828
  templateId: string;
830
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
829
+ flowContext?: Record<string, any> | undefined;
831
830
  } | {
832
831
  kind: ContentStrategyKind.FINDING;
833
832
  fid: string;
834
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
833
+ flowContext?: Record<string, any> | undefined;
835
834
  };
836
835
  deliveryChannel: DeliveryStrategyKind.EMAIL;
837
836
  deliveryStrategy: {
@@ -855,16 +854,16 @@ export declare const _NotificationUpsertDto: z.ZodDiscriminatedUnion<"deliveryCh
855
854
  content: string;
856
855
  subject?: string | undefined;
857
856
  context?: Record<string, string> | undefined;
858
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
857
+ flowContext?: Record<string, any> | undefined;
859
858
  } | {
860
859
  kind: ContentStrategyKind.TEMPLATE;
861
860
  context: Record<string, string>;
862
861
  templateId: string;
863
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
862
+ flowContext?: Record<string, any> | undefined;
864
863
  } | {
865
864
  kind: ContentStrategyKind.FINDING;
866
865
  fid: string;
867
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
866
+ flowContext?: Record<string, any> | undefined;
868
867
  };
869
868
  deliveryChannel: DeliveryStrategyKind.EMAIL;
870
869
  deliveryStrategy: {
@@ -896,46 +895,46 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
896
895
  content: z.ZodString;
897
896
  subject: z.ZodOptional<z.ZodString>;
898
897
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
899
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
898
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
900
899
  }, "strip", z.ZodTypeAny, {
901
900
  kind: ContentStrategyKind.RAW;
902
901
  content: string;
903
902
  subject?: string | undefined;
904
903
  context?: Record<string, string> | undefined;
905
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
904
+ flowContext?: Record<string, any> | undefined;
906
905
  }, {
907
906
  kind: ContentStrategyKind.RAW;
908
907
  content: string;
909
908
  subject?: string | undefined;
910
909
  context?: Record<string, string> | undefined;
911
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
910
+ flowContext?: Record<string, any> | undefined;
912
911
  }>, z.ZodObject<{
913
912
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
914
913
  fid: z.ZodString;
915
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
914
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
916
915
  }, "strip", z.ZodTypeAny, {
917
916
  kind: ContentStrategyKind.FINDING;
918
917
  fid: string;
919
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
918
+ flowContext?: Record<string, any> | undefined;
920
919
  }, {
921
920
  kind: ContentStrategyKind.FINDING;
922
921
  fid: string;
923
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
922
+ flowContext?: Record<string, any> | undefined;
924
923
  }>, z.ZodObject<{
925
924
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
926
925
  templateId: z.ZodString;
927
926
  context: z.ZodRecord<z.ZodString, z.ZodString>;
928
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
927
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
929
928
  }, "strip", z.ZodTypeAny, {
930
929
  kind: ContentStrategyKind.TEMPLATE;
931
930
  context: Record<string, string>;
932
931
  templateId: string;
933
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
932
+ flowContext?: Record<string, any> | undefined;
934
933
  }, {
935
934
  kind: ContentStrategyKind.TEMPLATE;
936
935
  context: Record<string, string>;
937
936
  templateId: string;
938
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
937
+ flowContext?: Record<string, any> | undefined;
939
938
  }>]>;
940
939
  agentId: z.ZodOptional<z.ZodString>;
941
940
  deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.SLACK>;
@@ -984,16 +983,16 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
984
983
  content: string;
985
984
  subject?: string | undefined;
986
985
  context?: Record<string, string> | undefined;
987
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
986
+ flowContext?: Record<string, any> | undefined;
988
987
  } | {
989
988
  kind: ContentStrategyKind.TEMPLATE;
990
989
  context: Record<string, string>;
991
990
  templateId: string;
992
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
991
+ flowContext?: Record<string, any> | undefined;
993
992
  } | {
994
993
  kind: ContentStrategyKind.FINDING;
995
994
  fid: string;
996
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
995
+ flowContext?: Record<string, any> | undefined;
997
996
  };
998
997
  deliveryChannel: DeliveryStrategyKind.SLACK;
999
998
  deliveryStrategy: {
@@ -1020,16 +1019,16 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
1020
1019
  content: string;
1021
1020
  subject?: string | undefined;
1022
1021
  context?: Record<string, string> | undefined;
1023
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1022
+ flowContext?: Record<string, any> | undefined;
1024
1023
  } | {
1025
1024
  kind: ContentStrategyKind.TEMPLATE;
1026
1025
  context: Record<string, string>;
1027
1026
  templateId: string;
1028
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1027
+ flowContext?: Record<string, any> | undefined;
1029
1028
  } | {
1030
1029
  kind: ContentStrategyKind.FINDING;
1031
1030
  fid: string;
1032
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1031
+ flowContext?: Record<string, any> | undefined;
1033
1032
  };
1034
1033
  deliveryChannel: DeliveryStrategyKind.SLACK;
1035
1034
  deliveryStrategy: {
@@ -1062,46 +1061,46 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
1062
1061
  content: z.ZodString;
1063
1062
  subject: z.ZodOptional<z.ZodString>;
1064
1063
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1065
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
1064
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1066
1065
  }, "strip", z.ZodTypeAny, {
1067
1066
  kind: ContentStrategyKind.RAW;
1068
1067
  content: string;
1069
1068
  subject?: string | undefined;
1070
1069
  context?: Record<string, string> | undefined;
1071
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1070
+ flowContext?: Record<string, any> | undefined;
1072
1071
  }, {
1073
1072
  kind: ContentStrategyKind.RAW;
1074
1073
  content: string;
1075
1074
  subject?: string | undefined;
1076
1075
  context?: Record<string, string> | undefined;
1077
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1076
+ flowContext?: Record<string, any> | undefined;
1078
1077
  }>, z.ZodObject<{
1079
1078
  kind: z.ZodLiteral<ContentStrategyKind.FINDING>;
1080
1079
  fid: z.ZodString;
1081
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
1080
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1082
1081
  }, "strip", z.ZodTypeAny, {
1083
1082
  kind: ContentStrategyKind.FINDING;
1084
1083
  fid: string;
1085
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1084
+ flowContext?: Record<string, any> | undefined;
1086
1085
  }, {
1087
1086
  kind: ContentStrategyKind.FINDING;
1088
1087
  fid: string;
1089
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1088
+ flowContext?: Record<string, any> | undefined;
1090
1089
  }>, z.ZodObject<{
1091
1090
  kind: z.ZodLiteral<ContentStrategyKind.TEMPLATE>;
1092
1091
  templateId: z.ZodString;
1093
1092
  context: z.ZodRecord<z.ZodString, z.ZodString>;
1094
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
1093
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1095
1094
  }, "strip", z.ZodTypeAny, {
1096
1095
  kind: ContentStrategyKind.TEMPLATE;
1097
1096
  context: Record<string, string>;
1098
1097
  templateId: string;
1099
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1098
+ flowContext?: Record<string, any> | undefined;
1100
1099
  }, {
1101
1100
  kind: ContentStrategyKind.TEMPLATE;
1102
1101
  context: Record<string, string>;
1103
1102
  templateId: string;
1104
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1103
+ flowContext?: Record<string, any> | undefined;
1105
1104
  }>]>;
1106
1105
  agentId: z.ZodOptional<z.ZodString>;
1107
1106
  deliveryChannel: z.ZodLiteral<DeliveryStrategyKind.EMAIL>;
@@ -1135,16 +1134,16 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
1135
1134
  content: string;
1136
1135
  subject?: string | undefined;
1137
1136
  context?: Record<string, string> | undefined;
1138
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1137
+ flowContext?: Record<string, any> | undefined;
1139
1138
  } | {
1140
1139
  kind: ContentStrategyKind.TEMPLATE;
1141
1140
  context: Record<string, string>;
1142
1141
  templateId: string;
1143
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1142
+ flowContext?: Record<string, any> | undefined;
1144
1143
  } | {
1145
1144
  kind: ContentStrategyKind.FINDING;
1146
1145
  fid: string;
1147
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1146
+ flowContext?: Record<string, any> | undefined;
1148
1147
  };
1149
1148
  deliveryChannel: DeliveryStrategyKind.EMAIL;
1150
1149
  deliveryStrategy: {
@@ -1168,16 +1167,16 @@ export declare const _NotificationDto: z.ZodIntersection<z.ZodDiscriminatedUnion
1168
1167
  content: string;
1169
1168
  subject?: string | undefined;
1170
1169
  context?: Record<string, string> | undefined;
1171
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1170
+ flowContext?: Record<string, any> | undefined;
1172
1171
  } | {
1173
1172
  kind: ContentStrategyKind.TEMPLATE;
1174
1173
  context: Record<string, string>;
1175
1174
  templateId: string;
1176
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1175
+ flowContext?: Record<string, any> | undefined;
1177
1176
  } | {
1178
1177
  kind: ContentStrategyKind.FINDING;
1179
1178
  fid: string;
1180
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1179
+ flowContext?: Record<string, any> | undefined;
1181
1180
  };
1182
1181
  deliveryChannel: DeliveryStrategyKind.EMAIL;
1183
1182
  deliveryStrategy: {
@@ -1223,19 +1222,19 @@ export declare const _CreateNotificationDto: z.ZodObject<{
1223
1222
  content: z.ZodString;
1224
1223
  subject: z.ZodOptional<z.ZodString>;
1225
1224
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1226
- flowContext: z.ZodOptional<z.ZodRecord<z.ZodEnum<["TONE", "ACTION_GET_INSTRUCTIONS_ENABLED", "GHOST_MODE_ENABLED", "REMINDER_COUNT"]>, z.ZodAny>>;
1225
+ flowContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1227
1226
  }, "strip", z.ZodTypeAny, {
1228
1227
  kind: ContentStrategyKind.RAW;
1229
1228
  content: string;
1230
1229
  subject?: string | undefined;
1231
1230
  context?: Record<string, string> | undefined;
1232
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1231
+ flowContext?: Record<string, any> | undefined;
1233
1232
  }, {
1234
1233
  kind: ContentStrategyKind.RAW;
1235
1234
  content: string;
1236
1235
  subject?: string | undefined;
1237
1236
  context?: Record<string, string> | undefined;
1238
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1237
+ flowContext?: Record<string, any> | undefined;
1239
1238
  }>;
1240
1239
  options: z.ZodObject<{
1241
1240
  copySecOpsTeam: z.ZodOptional<z.ZodBoolean>;
@@ -1257,7 +1256,7 @@ export declare const _CreateNotificationDto: z.ZodObject<{
1257
1256
  content: string;
1258
1257
  subject?: string | undefined;
1259
1258
  context?: Record<string, string> | undefined;
1260
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1259
+ flowContext?: Record<string, any> | undefined;
1261
1260
  };
1262
1261
  channel: DeliveryStrategyKind;
1263
1262
  id?: string | undefined;
@@ -1278,7 +1277,7 @@ export declare const _CreateNotificationDto: z.ZodObject<{
1278
1277
  content: string;
1279
1278
  subject?: string | undefined;
1280
1279
  context?: Record<string, string> | undefined;
1281
- flowContext?: Partial<Record<"TONE" | "ACTION_GET_INSTRUCTIONS_ENABLED" | "GHOST_MODE_ENABLED" | "REMINDER_COUNT", any>> | undefined;
1280
+ flowContext?: Record<string, any> | undefined;
1282
1281
  };
1283
1282
  channel: DeliveryStrategyKind;
1284
1283
  id?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports._CreateNotificationDto = exports._NotificationDto = exports._NotificationUpsertDto = exports._EmailNotificationUpsertDto = exports._SlackNotificationUpsertDto = exports._BaseNotificationUpsertDto = exports._EmailDeliveryStrategy = exports._SlackDeliveryStrategy = exports._FindingContentStrategy = exports._TemplateContentStrategy = exports._RawContentStrategy = exports._FlowContext = exports._FlowContextKey = exports._NotificationAddress = exports.DeliveryStrategyKind = exports.ContentStrategyKind = exports.NotificationStatus = void 0;
3
+ exports._CreateNotificationDto = exports._NotificationDto = exports._NotificationUpsertDto = exports._EmailNotificationUpsertDto = exports._SlackNotificationUpsertDto = exports._BaseNotificationUpsertDto = exports._EmailDeliveryStrategy = exports._SlackDeliveryStrategy = exports._FindingContentStrategy = exports._TemplateContentStrategy = exports._RawContentStrategy = exports._FlowContext = exports._NotificationAddress = exports.DeliveryStrategyKind = exports.ContentStrategyKind = exports.NotificationStatus = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const base_dto_1 = require("./base.dto");
6
6
  var NotificationStatus;
@@ -29,8 +29,11 @@ exports._NotificationAddress = zod_1.z.object({
29
29
  users: zod_1.z.array(zod_1.z.union([zod_1.z.string(), zod_1.z.number()])).optional(),
30
30
  webhooks: zod_1.z.array(zod_1.z.string()).optional(),
31
31
  });
32
- exports._FlowContextKey = zod_1.z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED', 'REMINDER_COUNT']);
33
- exports._FlowContext = zod_1.z.record(exports._FlowContextKey, zod_1.z.any());
32
+ // export const _FlowContextKey = z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED', 'ROOT_NOTIFICATION_ID', 'REMINDER_COUNT']);
33
+ // Use a generic string key for flow context temporarily to reduce dev time
34
+ // until engagement flow builder base functionality is implemented
35
+ // TODO : Switch back to enum key (or a more well defined schema) once the engagement functionality is stable
36
+ exports._FlowContext = zod_1.z.record(zod_1.z.string(), zod_1.z.any());
34
37
  exports._RawContentStrategy = zod_1.z.object({
35
38
  kind: zod_1.z.literal(ContentStrategyKind.RAW),
36
39
  content: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"notification.dto.js","sourceRoot":"","sources":["../../../src/dto/notification.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAA6D;AAE7D,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,kCAAW,CAAA;IACX,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;AACrB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,oCAAoC;IACpC,+CAAuB,CAAA;IACvB,uCAAe,CAAA;AACjB,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAEY,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7D,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CA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E,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CACH,CAAC"}
@@ -24,5 +24,7 @@ export type PlatformJobExecutionStateUpsertDto = BaseUpsertDto & {
24
24
  error: string | null;
25
25
  /** Scratch space for job executors to maintain state incase of failure. */
26
26
  scratch: unknown;
27
+ /** Optional string used by ETL and Insights to coordinate data processing */
28
+ sessionId?: string;
27
29
  } & UpsertTenantBased;
28
30
  export type PlatformJobExecutionStateDto = BaseDto & PlatformJobExecutionStateUpsertDto & TenantBased;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "62.10.0",
3
+ "version": "62.12.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -28,8 +28,11 @@ export const _NotificationAddress = z.object({
28
28
  webhooks: z.array(z.string()).optional(),
29
29
  });
30
30
 
31
- export const _FlowContextKey = z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED', 'REMINDER_COUNT']);
32
- export const _FlowContext = z.record(_FlowContextKey, z.any());
31
+ // export const _FlowContextKey = z.enum(['TONE', 'ACTION_GET_INSTRUCTIONS_ENABLED', 'GHOST_MODE_ENABLED', 'ROOT_NOTIFICATION_ID', 'REMINDER_COUNT']);
32
+ // Use a generic string key for flow context temporarily to reduce dev time
33
+ // until engagement flow builder base functionality is implemented
34
+ // TODO : Switch back to enum key (or a more well defined schema) once the engagement functionality is stable
35
+ export const _FlowContext = z.record(z.string(), z.any());
33
36
 
34
37
  export const _RawContentStrategy = z.object({
35
38
  kind: z.literal(ContentStrategyKind.RAW),
@@ -26,6 +26,8 @@ export type PlatformJobExecutionStateUpsertDto = BaseUpsertDto & {
26
26
  error: string | null;
27
27
  /** Scratch space for job executors to maintain state incase of failure. */
28
28
  scratch: unknown;
29
+ /** Optional string used by ETL and Insights to coordinate data processing */
30
+ sessionId?: string;
29
31
  } & UpsertTenantBased;
30
32
 
31
33
  export type PlatformJobExecutionStateDto = BaseDto & PlatformJobExecutionStateUpsertDto & TenantBased;