@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.
Files changed (33) hide show
  1. package/build/src/FilterCriteria.d.ts +82 -45
  2. package/build/src/dto/actionExecution.dto.d.ts +3 -2
  3. package/build/src/dto/agents.dto.d.ts +3 -2
  4. package/build/src/dto/assets.dto.d.ts +31 -10
  5. package/build/src/dto/base.dto.d.ts +6 -4
  6. package/build/src/dto/coverage.dto.d.ts +144 -106
  7. package/build/src/dto/customActions.dto.d.ts +32 -28
  8. package/build/src/dto/customScores.dto.d.ts +8 -4
  9. package/build/src/dto/eng/coverage.dto.d.ts +8 -8
  10. package/build/src/dto/findings.dto.d.ts +41 -40
  11. package/build/src/dto/flows.dto.d.ts +222 -179
  12. package/build/src/dto/notification.dto.d.ts +157 -134
  13. package/build/src/dto/page.dto.d.ts +5 -5
  14. package/build/src/dto/platform/platform.actionExecution.dto.d.ts +26 -12
  15. package/build/src/dto/platform/platform.agents.dto.d.ts +3 -2
  16. package/build/src/dto/platform/platform.customActions.dto.d.ts +36 -32
  17. package/build/src/dto/platform/platform.customScores.dto.d.ts +16 -9
  18. package/build/src/dto/platform/platform.findings.dto.d.ts +37 -34
  19. package/build/src/dto/platform/platform.flows.dto.d.ts +176 -136
  20. package/build/src/dto/platform/platform.saasAssets.dto.d.ts +29 -25
  21. package/build/src/dto/platform/platform.saasUsers.dto.d.ts +48 -44
  22. package/build/src/dto/platform/platform.tokens.dto.d.ts +21 -9
  23. package/build/src/dto/platform/tenant.based.dto.d.ts +6 -5
  24. package/build/src/dto/saasAssets.dto.d.ts +84 -58
  25. package/build/src/dto/saasUsers.dto.d.ts +131 -110
  26. package/build/src/dto/tokens.dto.d.ts +3 -2
  27. package/build/src/dto/users.dto.d.ts +8 -8
  28. package/build/src/services/contentful.service.d.ts +12 -12
  29. package/build/src/settings.d.ts +3 -0
  30. package/build/src/settings.js +3 -0
  31. package/build/src/settings.js.map +1 -1
  32. package/package.json +1 -1
  33. package/src/settings.ts +3 -0
@@ -15,11 +15,11 @@ export declare const _FlowTriggerEventDto: z.ZodObject<{
15
15
  uid: z.ZodOptional<z.ZodString>;
16
16
  email: z.ZodOptional<z.ZodString>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- uid?: string | undefined;
19
18
  email?: string | undefined;
20
- }, {
21
19
  uid?: string | undefined;
20
+ }, {
22
21
  email?: string | undefined;
22
+ uid?: string | undefined;
23
23
  }>>;
24
24
  device: z.ZodOptional<z.ZodObject<{
25
25
  aid: z.ZodOptional<z.ZodString>;
@@ -38,33 +38,33 @@ export declare const _FlowTriggerEventDto: z.ZodObject<{
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  tid: string;
40
40
  kind: string;
41
+ payload?: unknown;
41
42
  correlationId?: string | undefined;
42
43
  fid?: string | undefined;
43
44
  user?: {
44
- uid?: string | undefined;
45
45
  email?: string | undefined;
46
+ uid?: string | undefined;
46
47
  } | undefined;
47
48
  device?: {
48
49
  aid?: string | undefined;
49
50
  sn?: string | undefined;
50
51
  mac?: string | undefined;
51
52
  } | undefined;
52
- payload?: unknown;
53
53
  }, {
54
54
  tid: string;
55
55
  kind: string;
56
+ payload?: unknown;
56
57
  correlationId?: string | undefined;
57
58
  fid?: string | undefined;
58
59
  user?: {
59
- uid?: string | undefined;
60
60
  email?: string | undefined;
61
+ uid?: string | undefined;
61
62
  } | undefined;
62
63
  device?: {
63
64
  aid?: string | undefined;
64
65
  sn?: string | undefined;
65
66
  mac?: string | undefined;
66
67
  } | undefined;
67
- payload?: unknown;
68
68
  }>;
69
69
  export type FlowTriggerEventDto = z.infer<typeof _FlowTriggerEventDto>;
70
70
  export declare const _FlowSystemEventDto: z.ZodObject<{
@@ -76,14 +76,14 @@ export declare const _FlowSystemEventDto: z.ZodObject<{
76
76
  }, "strip", z.ZodTypeAny, {
77
77
  type: string;
78
78
  flowId: string;
79
- correlationId?: string | undefined;
80
79
  payload?: unknown;
80
+ correlationId?: string | undefined;
81
81
  error?: unknown;
82
82
  }, {
83
83
  type: string;
84
84
  flowId: string;
85
- correlationId?: string | undefined;
86
85
  payload?: unknown;
86
+ correlationId?: string | undefined;
87
87
  error?: unknown;
88
88
  }>;
89
89
  export type FlowSystemEventDto = z.infer<typeof _FlowSystemEventDto>;
@@ -91,18 +91,21 @@ export declare const _FlowHistoryEntry: z.ZodObject<{
91
91
  nodeName: z.ZodString;
92
92
  ts: z.ZodNumber;
93
93
  e: z.ZodObject<{
94
+ type: z.ZodOptional<z.ZodString>;
94
95
  tid: z.ZodOptional<z.ZodString>;
95
96
  kind: z.ZodOptional<z.ZodString>;
97
+ payload: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
98
+ correlationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
96
99
  fid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
97
100
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
98
101
  uid: z.ZodOptional<z.ZodString>;
99
102
  email: z.ZodOptional<z.ZodString>;
100
103
  }, "strip", z.ZodTypeAny, {
101
- uid?: string | undefined;
102
104
  email?: string | undefined;
103
- }, {
104
105
  uid?: string | undefined;
106
+ }, {
105
107
  email?: string | undefined;
108
+ uid?: string | undefined;
106
109
  }>>>;
107
110
  device: z.ZodOptional<z.ZodOptional<z.ZodObject<{
108
111
  aid: z.ZodOptional<z.ZodString>;
@@ -117,101 +120,100 @@ export declare const _FlowHistoryEntry: z.ZodObject<{
117
120
  sn?: string | undefined;
118
121
  mac?: string | undefined;
119
122
  }>>>;
120
- type: z.ZodOptional<z.ZodString>;
121
123
  flowId: z.ZodOptional<z.ZodString>;
122
- correlationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
123
- payload: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
124
124
  error: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
125
125
  }, "strip", z.ZodTypeAny, {
126
+ type?: string | undefined;
126
127
  tid?: string | undefined;
127
128
  kind?: string | undefined;
129
+ payload?: unknown;
130
+ correlationId?: string | undefined;
128
131
  fid?: string | undefined;
129
132
  user?: {
130
- uid?: string | undefined;
131
133
  email?: string | undefined;
134
+ uid?: string | undefined;
132
135
  } | undefined;
133
136
  device?: {
134
137
  aid?: string | undefined;
135
138
  sn?: string | undefined;
136
139
  mac?: string | undefined;
137
140
  } | undefined;
138
- type?: string | undefined;
139
141
  flowId?: string | undefined;
140
- correlationId?: string | undefined;
141
- payload?: unknown;
142
142
  error?: unknown;
143
143
  }, {
144
+ type?: string | undefined;
144
145
  tid?: string | undefined;
145
146
  kind?: string | undefined;
147
+ payload?: unknown;
148
+ correlationId?: string | undefined;
146
149
  fid?: string | undefined;
147
150
  user?: {
148
- uid?: string | undefined;
149
151
  email?: string | undefined;
152
+ uid?: string | undefined;
150
153
  } | undefined;
151
154
  device?: {
152
155
  aid?: string | undefined;
153
156
  sn?: string | undefined;
154
157
  mac?: string | undefined;
155
158
  } | undefined;
156
- type?: string | undefined;
157
159
  flowId?: string | undefined;
158
- correlationId?: string | undefined;
159
- payload?: unknown;
160
160
  error?: unknown;
161
161
  }>;
162
162
  }, "strip", z.ZodTypeAny, {
163
163
  nodeName: string;
164
164
  ts: number;
165
165
  e: {
166
+ type?: string | undefined;
166
167
  tid?: string | undefined;
167
168
  kind?: string | undefined;
169
+ payload?: unknown;
170
+ correlationId?: string | undefined;
168
171
  fid?: string | undefined;
169
172
  user?: {
170
- uid?: string | undefined;
171
173
  email?: string | undefined;
174
+ uid?: string | undefined;
172
175
  } | undefined;
173
176
  device?: {
174
177
  aid?: string | undefined;
175
178
  sn?: string | undefined;
176
179
  mac?: string | undefined;
177
180
  } | undefined;
178
- type?: string | undefined;
179
181
  flowId?: string | undefined;
180
- correlationId?: string | undefined;
181
- payload?: unknown;
182
182
  error?: unknown;
183
183
  };
184
184
  }, {
185
185
  nodeName: string;
186
186
  ts: number;
187
187
  e: {
188
+ type?: string | undefined;
188
189
  tid?: string | undefined;
189
190
  kind?: string | undefined;
191
+ payload?: unknown;
192
+ correlationId?: string | undefined;
190
193
  fid?: string | undefined;
191
194
  user?: {
192
- uid?: string | undefined;
193
195
  email?: string | undefined;
196
+ uid?: string | undefined;
194
197
  } | undefined;
195
198
  device?: {
196
199
  aid?: string | undefined;
197
200
  sn?: string | undefined;
198
201
  mac?: string | undefined;
199
202
  } | undefined;
200
- type?: string | undefined;
201
203
  flowId?: string | undefined;
202
- correlationId?: string | undefined;
203
- payload?: unknown;
204
204
  error?: unknown;
205
205
  };
206
206
  }>;
207
207
  export type FlowHistoryEvent = z.infer<typeof _FlowHistoryEntry>;
208
208
  export declare const _FlowStateStatusDto: z.ZodEnum<["RUNNING", "ERROR", "SUCCESS", "CANCELLED", "EXPIRED"]>;
209
209
  export type FlowStateStatusDto = z.infer<typeof _FlowStateStatusDto>;
210
- export declare const _FlowStateDto: z.ZodObject<{
210
+ export declare const _FlowStateDto: z.ZodObject<z.objectUtil.extendShape<{
211
211
  id: z.ZodString;
212
212
  createdAt: z.ZodString;
213
213
  updatedAt: z.ZodString;
214
214
  deletedAt: z.ZodNullable<z.ZodString>;
215
+ }, {
216
+ /** `undefined` on NOOP Actions */
215
217
  specId: z.ZodOptional<z.ZodString>;
216
218
  uid: z.ZodOptional<z.ZodString>;
217
219
  fid: z.ZodOptional<z.ZodString>;
@@ -225,18 +227,21 @@ export declare const _FlowStateDto: z.ZodObject<{
225
227
  nodeName: z.ZodString;
226
228
  ts: z.ZodNumber;
227
229
  e: z.ZodObject<{
230
+ type: z.ZodOptional<z.ZodString>;
228
231
  tid: z.ZodOptional<z.ZodString>;
229
232
  kind: z.ZodOptional<z.ZodString>;
233
+ payload: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
234
+ correlationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
230
235
  fid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
231
236
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
232
237
  uid: z.ZodOptional<z.ZodString>;
233
238
  email: z.ZodOptional<z.ZodString>;
234
239
  }, "strip", z.ZodTypeAny, {
235
- uid?: string | undefined;
236
240
  email?: string | undefined;
237
- }, {
238
241
  uid?: string | undefined;
242
+ }, {
239
243
  email?: string | undefined;
244
+ uid?: string | undefined;
240
245
  }>>>;
241
246
  device: z.ZodOptional<z.ZodOptional<z.ZodObject<{
242
247
  aid: z.ZodOptional<z.ZodString>;
@@ -251,95 +256,92 @@ export declare const _FlowStateDto: z.ZodObject<{
251
256
  sn?: string | undefined;
252
257
  mac?: string | undefined;
253
258
  }>>>;
254
- type: z.ZodOptional<z.ZodString>;
255
259
  flowId: z.ZodOptional<z.ZodString>;
256
- correlationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
257
- payload: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
258
260
  error: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
259
261
  }, "strip", z.ZodTypeAny, {
262
+ type?: string | undefined;
260
263
  tid?: string | undefined;
261
264
  kind?: string | undefined;
265
+ payload?: unknown;
266
+ correlationId?: string | undefined;
262
267
  fid?: string | undefined;
263
268
  user?: {
264
- uid?: string | undefined;
265
269
  email?: string | undefined;
270
+ uid?: string | undefined;
266
271
  } | undefined;
267
272
  device?: {
268
273
  aid?: string | undefined;
269
274
  sn?: string | undefined;
270
275
  mac?: string | undefined;
271
276
  } | undefined;
272
- type?: string | undefined;
273
277
  flowId?: string | undefined;
274
- correlationId?: string | undefined;
275
- payload?: unknown;
276
278
  error?: unknown;
277
279
  }, {
280
+ type?: string | undefined;
278
281
  tid?: string | undefined;
279
282
  kind?: string | undefined;
283
+ payload?: unknown;
284
+ correlationId?: string | undefined;
280
285
  fid?: string | undefined;
281
286
  user?: {
282
- uid?: string | undefined;
283
287
  email?: string | undefined;
288
+ uid?: string | undefined;
284
289
  } | undefined;
285
290
  device?: {
286
291
  aid?: string | undefined;
287
292
  sn?: string | undefined;
288
293
  mac?: string | undefined;
289
294
  } | undefined;
290
- type?: string | undefined;
291
295
  flowId?: string | undefined;
292
- correlationId?: string | undefined;
293
- payload?: unknown;
294
296
  error?: unknown;
295
297
  }>;
296
298
  }, "strip", z.ZodTypeAny, {
297
299
  nodeName: string;
298
300
  ts: number;
299
301
  e: {
302
+ type?: string | undefined;
300
303
  tid?: string | undefined;
301
304
  kind?: string | undefined;
305
+ payload?: unknown;
306
+ correlationId?: string | undefined;
302
307
  fid?: string | undefined;
303
308
  user?: {
304
- uid?: string | undefined;
305
309
  email?: string | undefined;
310
+ uid?: string | undefined;
306
311
  } | undefined;
307
312
  device?: {
308
313
  aid?: string | undefined;
309
314
  sn?: string | undefined;
310
315
  mac?: string | undefined;
311
316
  } | undefined;
312
- type?: string | undefined;
313
317
  flowId?: string | undefined;
314
- correlationId?: string | undefined;
315
- payload?: unknown;
316
318
  error?: unknown;
317
319
  };
318
320
  }, {
319
321
  nodeName: string;
320
322
  ts: number;
321
323
  e: {
324
+ type?: string | undefined;
322
325
  tid?: string | undefined;
323
326
  kind?: string | undefined;
327
+ payload?: unknown;
328
+ correlationId?: string | undefined;
324
329
  fid?: string | undefined;
325
330
  user?: {
326
- uid?: string | undefined;
327
331
  email?: string | undefined;
332
+ uid?: string | undefined;
328
333
  } | undefined;
329
334
  device?: {
330
335
  aid?: string | undefined;
331
336
  sn?: string | undefined;
332
337
  mac?: string | undefined;
333
338
  } | undefined;
334
- type?: string | undefined;
335
339
  flowId?: string | undefined;
336
- correlationId?: string | undefined;
337
- payload?: unknown;
338
340
  error?: unknown;
339
341
  };
340
342
  }>, "many">;
341
343
  bucketKey: z.ZodOptional<z.ZodString>;
342
- }, "strip", z.ZodTypeAny, {
344
+ }>, "strip", z.ZodTypeAny, {
343
345
  status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
344
346
  id: string;
345
347
  createdAt: string;
@@ -353,28 +355,28 @@ export declare const _FlowStateDto: z.ZodObject<{
353
355
  nodeName: string;
354
356
  ts: number;
355
357
  e: {
358
+ type?: string | undefined;
356
359
  tid?: string | undefined;
357
360
  kind?: string | undefined;
361
+ payload?: unknown;
362
+ correlationId?: string | undefined;
358
363
  fid?: string | undefined;
359
364
  user?: {
360
- uid?: string | undefined;
361
365
  email?: string | undefined;
366
+ uid?: string | undefined;
362
367
  } | undefined;
363
368
  device?: {
364
369
  aid?: string | undefined;
365
370
  sn?: string | undefined;
366
371
  mac?: string | undefined;
367
372
  } | undefined;
368
- type?: string | undefined;
369
373
  flowId?: string | undefined;
370
- correlationId?: string | undefined;
371
- payload?: unknown;
372
374
  error?: unknown;
373
375
  };
374
376
  }[];
375
- specId?: string | undefined;
376
377
  uid?: string | undefined;
377
378
  fid?: string | undefined;
379
+ specId?: string | undefined;
378
380
  specStatus?: FlowSpecStatusKind | undefined;
379
381
  bucketKey?: string | undefined;
380
382
  }, {
@@ -391,39 +393,45 @@ export declare const _FlowStateDto: z.ZodObject<{
391
393
  nodeName: string;
392
394
  ts: number;
393
395
  e: {
396
+ type?: string | undefined;
394
397
  tid?: string | undefined;
395
398
  kind?: string | undefined;
399
+ payload?: unknown;
400
+ correlationId?: string | undefined;
396
401
  fid?: string | undefined;
397
402
  user?: {
398
- uid?: string | undefined;
399
403
  email?: string | undefined;
404
+ uid?: string | undefined;
400
405
  } | undefined;
401
406
  device?: {
402
407
  aid?: string | undefined;
403
408
  sn?: string | undefined;
404
409
  mac?: string | undefined;
405
410
  } | undefined;
406
- type?: string | undefined;
407
411
  flowId?: string | undefined;
408
- correlationId?: string | undefined;
409
- payload?: unknown;
410
412
  error?: unknown;
411
413
  };
412
414
  }[];
413
- specId?: string | undefined;
414
415
  uid?: string | undefined;
415
416
  fid?: string | undefined;
417
+ specId?: string | undefined;
416
418
  specStatus?: FlowSpecStatusKind | undefined;
417
419
  bucketKey?: string | undefined;
418
420
  }>;
419
421
  export type FlowStateDto = z.infer<typeof _FlowStateDto>;
420
- export declare const _FlowStateUpsertDto: z.ZodObject<{
421
- status: z.ZodEnum<["RUNNING", "ERROR", "SUCCESS", "CANCELLED", "EXPIRED"]>;
422
+ export declare const _FlowStateUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
423
+ id: z.ZodString;
424
+ createdAt: z.ZodString;
425
+ updatedAt: z.ZodString;
426
+ deletedAt: z.ZodNullable<z.ZodString>;
427
+ }, {
428
+ /** `undefined` on NOOP Actions */
429
+ specId: z.ZodOptional<z.ZodString>;
422
430
  uid: z.ZodOptional<z.ZodString>;
423
431
  fid: z.ZodOptional<z.ZodString>;
424
- nodeName: z.ZodString;
425
- specId: z.ZodOptional<z.ZodString>;
432
+ status: z.ZodEnum<["RUNNING", "ERROR", "SUCCESS", "CANCELLED", "EXPIRED"]>;
426
433
  specStatus: z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>;
434
+ nodeName: z.ZodString;
427
435
  totalSteps: z.ZodNumber;
428
436
  currentStep: z.ZodNumber;
429
437
  endTime: z.ZodNullable<z.ZodString>;
@@ -431,18 +439,21 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
431
439
  nodeName: z.ZodString;
432
440
  ts: z.ZodNumber;
433
441
  e: z.ZodObject<{
442
+ type: z.ZodOptional<z.ZodString>;
434
443
  tid: z.ZodOptional<z.ZodString>;
435
444
  kind: z.ZodOptional<z.ZodString>;
445
+ payload: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
446
+ correlationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
436
447
  fid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
437
448
  user: z.ZodOptional<z.ZodOptional<z.ZodObject<{
438
449
  uid: z.ZodOptional<z.ZodString>;
439
450
  email: z.ZodOptional<z.ZodString>;
440
451
  }, "strip", z.ZodTypeAny, {
441
- uid?: string | undefined;
442
452
  email?: string | undefined;
443
- }, {
444
453
  uid?: string | undefined;
454
+ }, {
445
455
  email?: string | undefined;
456
+ uid?: string | undefined;
446
457
  }>>>;
447
458
  device: z.ZodOptional<z.ZodOptional<z.ZodObject<{
448
459
  aid: z.ZodOptional<z.ZodString>;
@@ -457,99 +468,97 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
457
468
  sn?: string | undefined;
458
469
  mac?: string | undefined;
459
470
  }>>>;
460
- type: z.ZodOptional<z.ZodString>;
461
471
  flowId: z.ZodOptional<z.ZodString>;
462
- correlationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
463
- payload: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
464
472
  error: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
465
473
  }, "strip", z.ZodTypeAny, {
474
+ type?: string | undefined;
466
475
  tid?: string | undefined;
467
476
  kind?: string | undefined;
477
+ payload?: unknown;
478
+ correlationId?: string | undefined;
468
479
  fid?: string | undefined;
469
480
  user?: {
470
- uid?: string | undefined;
471
481
  email?: string | undefined;
482
+ uid?: string | undefined;
472
483
  } | undefined;
473
484
  device?: {
474
485
  aid?: string | undefined;
475
486
  sn?: string | undefined;
476
487
  mac?: string | undefined;
477
488
  } | undefined;
478
- type?: string | undefined;
479
489
  flowId?: string | undefined;
480
- correlationId?: string | undefined;
481
- payload?: unknown;
482
490
  error?: unknown;
483
491
  }, {
492
+ type?: string | undefined;
484
493
  tid?: string | undefined;
485
494
  kind?: string | undefined;
495
+ payload?: unknown;
496
+ correlationId?: string | undefined;
486
497
  fid?: string | undefined;
487
498
  user?: {
488
- uid?: string | undefined;
489
499
  email?: string | undefined;
500
+ uid?: string | undefined;
490
501
  } | undefined;
491
502
  device?: {
492
503
  aid?: string | undefined;
493
504
  sn?: string | undefined;
494
505
  mac?: string | undefined;
495
506
  } | undefined;
496
- type?: string | undefined;
497
507
  flowId?: string | undefined;
498
- correlationId?: string | undefined;
499
- payload?: unknown;
500
508
  error?: unknown;
501
509
  }>;
502
510
  }, "strip", z.ZodTypeAny, {
503
511
  nodeName: string;
504
512
  ts: number;
505
513
  e: {
514
+ type?: string | undefined;
506
515
  tid?: string | undefined;
507
516
  kind?: string | undefined;
517
+ payload?: unknown;
518
+ correlationId?: string | undefined;
508
519
  fid?: string | undefined;
509
520
  user?: {
510
- uid?: string | undefined;
511
521
  email?: string | undefined;
522
+ uid?: string | undefined;
512
523
  } | undefined;
513
524
  device?: {
514
525
  aid?: string | undefined;
515
526
  sn?: string | undefined;
516
527
  mac?: string | undefined;
517
528
  } | undefined;
518
- type?: string | undefined;
519
529
  flowId?: string | undefined;
520
- correlationId?: string | undefined;
521
- payload?: unknown;
522
530
  error?: unknown;
523
531
  };
524
532
  }, {
525
533
  nodeName: string;
526
534
  ts: number;
527
535
  e: {
536
+ type?: string | undefined;
528
537
  tid?: string | undefined;
529
538
  kind?: string | undefined;
539
+ payload?: unknown;
540
+ correlationId?: string | undefined;
530
541
  fid?: string | undefined;
531
542
  user?: {
532
- uid?: string | undefined;
533
543
  email?: string | undefined;
544
+ uid?: string | undefined;
534
545
  } | undefined;
535
546
  device?: {
536
547
  aid?: string | undefined;
537
548
  sn?: string | undefined;
538
549
  mac?: string | undefined;
539
550
  } | undefined;
540
- type?: string | undefined;
541
551
  flowId?: string | undefined;
542
- correlationId?: string | undefined;
543
- payload?: unknown;
544
552
  error?: unknown;
545
553
  };
546
554
  }>, "many">;
547
555
  bucketKey: z.ZodOptional<z.ZodString>;
556
+ }>, {
548
557
  id: z.ZodOptional<z.ZodString>;
549
558
  createdAt: z.ZodOptional<z.ZodString>;
550
559
  updatedAt: z.ZodOptional<z.ZodString>;
551
560
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
- }, "strip", z.ZodTypeAny, {
561
+ }>, "strip", z.ZodTypeAny, {
553
562
  status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
554
563
  nodeName: string;
555
564
  totalSteps: number;
@@ -559,34 +568,34 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
559
568
  nodeName: string;
560
569
  ts: number;
561
570
  e: {
571
+ type?: string | undefined;
562
572
  tid?: string | undefined;
563
573
  kind?: string | undefined;
574
+ payload?: unknown;
575
+ correlationId?: string | undefined;
564
576
  fid?: string | undefined;
565
577
  user?: {
566
- uid?: string | undefined;
567
578
  email?: string | undefined;
579
+ uid?: string | undefined;
568
580
  } | undefined;
569
581
  device?: {
570
582
  aid?: string | undefined;
571
583
  sn?: string | undefined;
572
584
  mac?: string | undefined;
573
585
  } | undefined;
574
- type?: string | undefined;
575
586
  flowId?: string | undefined;
576
- correlationId?: string | undefined;
577
- payload?: unknown;
578
587
  error?: unknown;
579
588
  };
580
589
  }[];
590
+ id?: string | undefined;
581
591
  uid?: string | undefined;
592
+ createdAt?: string | undefined;
593
+ updatedAt?: string | undefined;
594
+ deletedAt?: string | null | undefined;
582
595
  fid?: string | undefined;
583
596
  specId?: string | undefined;
584
597
  specStatus?: FlowSpecStatusKind | undefined;
585
598
  bucketKey?: string | undefined;
586
- id?: string | undefined;
587
- createdAt?: string | undefined;
588
- updatedAt?: string | undefined;
589
- deletedAt?: string | null | undefined;
590
599
  }, {
591
600
  status: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED";
592
601
  nodeName: string;
@@ -597,40 +606,38 @@ export declare const _FlowStateUpsertDto: z.ZodObject<{
597
606
  nodeName: string;
598
607
  ts: number;
599
608
  e: {
609
+ type?: string | undefined;
600
610
  tid?: string | undefined;
601
611
  kind?: string | undefined;
612
+ payload?: unknown;
613
+ correlationId?: string | undefined;
602
614
  fid?: string | undefined;
603
615
  user?: {
604
- uid?: string | undefined;
605
616
  email?: string | undefined;
617
+ uid?: string | undefined;
606
618
  } | undefined;
607
619
  device?: {
608
620
  aid?: string | undefined;
609
621
  sn?: string | undefined;
610
622
  mac?: string | undefined;
611
623
  } | undefined;
612
- type?: string | undefined;
613
624
  flowId?: string | undefined;
614
- correlationId?: string | undefined;
615
- payload?: unknown;
616
625
  error?: unknown;
617
626
  };
618
627
  }[];
628
+ id?: string | undefined;
619
629
  uid?: string | undefined;
630
+ createdAt?: string | undefined;
631
+ updatedAt?: string | undefined;
632
+ deletedAt?: string | null | undefined;
620
633
  fid?: string | undefined;
621
634
  specId?: string | undefined;
622
635
  specStatus?: FlowSpecStatusKind | undefined;
623
636
  bucketKey?: string | undefined;
624
- id?: string | undefined;
625
- createdAt?: string | undefined;
626
- updatedAt?: string | undefined;
627
- deletedAt?: string | null | undefined;
628
637
  }>;
629
638
  export type FlowStateUpsertDto = z.infer<typeof _FlowStateUpsertDto>;
630
- export declare const _FlowStateFilter: z.ZodObject<{
639
+ export declare const _FlowStateFilter: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
631
640
  status: z.ZodOptional<z.ZodEnum<["RUNNING", "ERROR", "SUCCESS", "CANCELLED", "EXPIRED"]>>;
632
- limit: z.ZodOptional<z.ZodNumber>;
633
- offset: z.ZodOptional<z.ZodNumber>;
634
641
  id: z.ZodOptional<z.ZodString>;
635
642
  uid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
636
643
  createdAt: z.ZodOptional<z.ZodString>;
@@ -644,8 +651,13 @@ export declare const _FlowStateFilter: z.ZodObject<{
644
651
  currentStep: z.ZodOptional<z.ZodNumber>;
645
652
  endTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
653
  bucketKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
654
+ }, {
655
+ limit: z.ZodOptional<z.ZodNumber>;
656
+ offset: z.ZodOptional<z.ZodNumber>;
657
+ }>, {
647
658
  sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
648
- }, "strip", z.ZodTypeAny, {
659
+ }>, "strip", z.ZodTypeAny, {
660
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
649
661
  status?: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED" | undefined;
650
662
  limit?: number | undefined;
651
663
  offset?: number | undefined;
@@ -662,8 +674,8 @@ export declare const _FlowStateFilter: z.ZodObject<{
662
674
  currentStep?: number | undefined;
663
675
  endTime?: string | null | undefined;
664
676
  bucketKey?: string | undefined;
665
- sort?: Record<string, "ASC" | "DESC"> | undefined;
666
677
  }, {
678
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
667
679
  status?: "RUNNING" | "SUCCESS" | "ERROR" | "CANCELLED" | "EXPIRED" | undefined;
668
680
  limit?: number | undefined;
669
681
  offset?: number | undefined;
@@ -680,7 +692,6 @@ export declare const _FlowStateFilter: z.ZodObject<{
680
692
  currentStep?: number | undefined;
681
693
  endTime?: string | null | undefined;
682
694
  bucketKey?: string | undefined;
683
- sort?: Record<string, "ASC" | "DESC"> | undefined;
684
695
  }>;
685
696
  export type FlowStateFilter = z.infer<typeof _FlowStateFilter>;
686
697
  export declare const _FlowSpecCreateDto: z.ZodObject<{
@@ -892,10 +903,12 @@ export declare const _FlowRewardsConfig: z.ZodObject<{
892
903
  units?: string | undefined;
893
904
  }>;
894
905
  export type FlowRewardsConfig = z.infer<typeof _FlowRewardsConfig>;
895
- export declare const _FlowSpecDto: z.ZodObject<{
906
+ export declare const _FlowSpecDto: z.ZodObject<z.objectUtil.extendShape<{
907
+ id: z.ZodString;
896
908
  createdAt: z.ZodString;
897
909
  updatedAt: z.ZodString;
898
910
  deletedAt: z.ZodNullable<z.ZodString>;
911
+ }, {
899
912
  id: z.ZodString;
900
913
  tid: z.ZodString;
901
914
  status: z.ZodNativeEnum<typeof FlowSpecStatusKind>;
@@ -937,6 +950,7 @@ export declare const _FlowSpecDto: z.ZodObject<{
937
950
  }[];
938
951
  custom?: Record<string, unknown> | undefined;
939
952
  }>;
953
+ /** cohort filter */
940
954
  filter: z.ZodObject<{
941
955
  cohorts: z.ZodArray<z.ZodOptional<z.ZodObject<{
942
956
  id: z.ZodString;
@@ -1175,6 +1189,9 @@ export declare const _FlowSpecDto: z.ZodObject<{
1175
1189
  }, {
1176
1190
  data?: string | undefined;
1177
1191
  }>>;
1192
+ /**
1193
+ * @deprecated Use scheduleResolutionAction instead
1194
+ */
1178
1195
  scheduleConfig: z.ZodOptional<z.ZodObject<{
1179
1196
  required: z.ZodBoolean;
1180
1197
  }, "strip", z.ZodTypeAny, {
@@ -1191,11 +1208,11 @@ export declare const _FlowSpecDto: z.ZodObject<{
1191
1208
  activeCount: number;
1192
1209
  lastTriggered?: string | undefined;
1193
1210
  }, {
1211
+ totalCount?: number | undefined;
1194
1212
  lastTriggered?: string | undefined;
1195
1213
  activeCount?: number | undefined;
1196
- totalCount?: number | undefined;
1197
1214
  }>>;
1198
- }, "strip", z.ZodTypeAny, {
1215
+ }>, "strip", z.ZodTypeAny, {
1199
1216
  filter: {
1200
1217
  cohorts: ({
1201
1218
  inclusive: boolean;
@@ -1207,8 +1224,8 @@ export declare const _FlowSpecDto: z.ZodObject<{
1207
1224
  custom?: Record<string, unknown> | undefined;
1208
1225
  };
1209
1226
  name: string;
1210
- description: string;
1211
1227
  status: FlowSpecStatusKind;
1228
+ description: string;
1212
1229
  id: string;
1213
1230
  tid: string;
1214
1231
  createdAt: string;
@@ -1302,8 +1319,8 @@ export declare const _FlowSpecDto: z.ZodObject<{
1302
1319
  custom?: Record<string, unknown> | undefined;
1303
1320
  };
1304
1321
  name: string;
1305
- description: string;
1306
1322
  status: FlowSpecStatusKind;
1323
+ description: string;
1307
1324
  id: string;
1308
1325
  tid: string;
1309
1326
  createdAt: string;
@@ -1381,13 +1398,60 @@ export declare const _FlowSpecDto: z.ZodObject<{
1381
1398
  required: boolean;
1382
1399
  } | undefined;
1383
1400
  activity?: {
1401
+ totalCount?: number | undefined;
1384
1402
  lastTriggered?: string | undefined;
1385
1403
  activeCount?: number | undefined;
1386
- totalCount?: number | undefined;
1387
1404
  } | undefined;
1388
1405
  }>;
1389
1406
  export type FlowSpecDto = z.infer<typeof _FlowSpecDto>;
1390
- export declare const _FlowSpecUpsertDto: z.ZodObject<{
1407
+ export declare const _FlowSpecUpsertDto: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUtil.extendShape<{
1408
+ id: z.ZodString;
1409
+ createdAt: z.ZodString;
1410
+ updatedAt: z.ZodString;
1411
+ deletedAt: z.ZodNullable<z.ZodString>;
1412
+ }, {
1413
+ id: z.ZodString;
1414
+ tid: z.ZodString;
1415
+ status: z.ZodNativeEnum<typeof FlowSpecStatusKind>;
1416
+ name: z.ZodString;
1417
+ description: z.ZodString;
1418
+ fslStrategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["STANDARD"]>>>;
1419
+ triggerFilter: z.ZodObject<{
1420
+ trigger: z.ZodArray<z.ZodObject<{
1421
+ id: z.ZodString;
1422
+ displayValue: z.ZodString;
1423
+ cid: z.ZodOptional<z.ZodString>;
1424
+ eventType: z.ZodString;
1425
+ }, "strip", z.ZodTypeAny, {
1426
+ id: string;
1427
+ displayValue: string;
1428
+ eventType: string;
1429
+ cid?: string | undefined;
1430
+ }, {
1431
+ id: string;
1432
+ displayValue: string;
1433
+ eventType: string;
1434
+ cid?: string | undefined;
1435
+ }>, "many">;
1436
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ trigger: {
1439
+ id: string;
1440
+ displayValue: string;
1441
+ eventType: string;
1442
+ cid?: string | undefined;
1443
+ }[];
1444
+ custom?: Record<string, unknown> | undefined;
1445
+ }, {
1446
+ trigger: {
1447
+ id: string;
1448
+ displayValue: string;
1449
+ eventType: string;
1450
+ cid?: string | undefined;
1451
+ }[];
1452
+ custom?: Record<string, unknown> | undefined;
1453
+ }>;
1454
+ /** cohort filter */
1391
1455
  filter: z.ZodObject<{
1392
1456
  cohorts: z.ZodArray<z.ZodOptional<z.ZodObject<{
1393
1457
  id: z.ZodString;
@@ -1428,46 +1492,6 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1428
1492
  } | undefined)[];
1429
1493
  custom?: Record<string, unknown> | undefined;
1430
1494
  }>;
1431
- name: z.ZodString;
1432
- description: z.ZodString;
1433
- status: z.ZodNativeEnum<typeof FlowSpecStatusKind>;
1434
- tid: z.ZodString;
1435
- fslStrategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["STANDARD"]>>>;
1436
- triggerFilter: z.ZodObject<{
1437
- trigger: z.ZodArray<z.ZodObject<{
1438
- id: z.ZodString;
1439
- displayValue: z.ZodString;
1440
- cid: z.ZodOptional<z.ZodString>;
1441
- eventType: z.ZodString;
1442
- }, "strip", z.ZodTypeAny, {
1443
- id: string;
1444
- displayValue: string;
1445
- eventType: string;
1446
- cid?: string | undefined;
1447
- }, {
1448
- id: string;
1449
- displayValue: string;
1450
- eventType: string;
1451
- cid?: string | undefined;
1452
- }>, "many">;
1453
- custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1454
- }, "strip", z.ZodTypeAny, {
1455
- trigger: {
1456
- id: string;
1457
- displayValue: string;
1458
- eventType: string;
1459
- cid?: string | undefined;
1460
- }[];
1461
- custom?: Record<string, unknown> | undefined;
1462
- }, {
1463
- trigger: {
1464
- id: string;
1465
- displayValue: string;
1466
- eventType: string;
1467
- cid?: string | undefined;
1468
- }[];
1469
- custom?: Record<string, unknown> | undefined;
1470
- }>;
1471
1495
  engagementChannelCids: z.ZodArray<z.ZodString, "many">;
1472
1496
  tone: z.ZodOptional<z.ZodObject<{
1473
1497
  kind: z.ZodOptional<z.ZodString>;
@@ -1666,6 +1690,9 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1666
1690
  }, {
1667
1691
  data?: string | undefined;
1668
1692
  }>>;
1693
+ /**
1694
+ * @deprecated Use scheduleResolutionAction instead
1695
+ */
1669
1696
  scheduleConfig: z.ZodOptional<z.ZodObject<{
1670
1697
  required: z.ZodBoolean;
1671
1698
  }, "strip", z.ZodTypeAny, {
@@ -1673,11 +1700,25 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1673
1700
  }, {
1674
1701
  required: boolean;
1675
1702
  }>>;
1703
+ activity: z.ZodOptional<z.ZodObject<{
1704
+ lastTriggered: z.ZodOptional<z.ZodString>;
1705
+ activeCount: z.ZodDefault<z.ZodNumber>;
1706
+ totalCount: z.ZodDefault<z.ZodNumber>;
1707
+ }, "strip", z.ZodTypeAny, {
1708
+ totalCount: number;
1709
+ activeCount: number;
1710
+ lastTriggered?: string | undefined;
1711
+ }, {
1712
+ totalCount?: number | undefined;
1713
+ lastTriggered?: string | undefined;
1714
+ activeCount?: number | undefined;
1715
+ }>>;
1716
+ }>, "activity">, {
1676
1717
  id: z.ZodOptional<z.ZodString>;
1677
1718
  createdAt: z.ZodOptional<z.ZodString>;
1678
1719
  updatedAt: z.ZodOptional<z.ZodString>;
1679
1720
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1680
- }, "strip", z.ZodTypeAny, {
1721
+ }>, "strip", z.ZodTypeAny, {
1681
1722
  filter: {
1682
1723
  cohorts: ({
1683
1724
  inclusive: boolean;
@@ -1689,8 +1730,8 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1689
1730
  custom?: Record<string, unknown> | undefined;
1690
1731
  };
1691
1732
  name: string;
1692
- description: string;
1693
1733
  status: FlowSpecStatusKind;
1734
+ description: string;
1694
1735
  tid: string;
1695
1736
  fslStrategy: "STANDARD";
1696
1737
  triggerFilter: {
@@ -1703,6 +1744,10 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1703
1744
  custom?: Record<string, unknown> | undefined;
1704
1745
  };
1705
1746
  engagementChannelCids: string[];
1747
+ id?: string | undefined;
1748
+ createdAt?: string | undefined;
1749
+ updatedAt?: string | undefined;
1750
+ deletedAt?: string | null | undefined;
1706
1751
  tone?: {
1707
1752
  kind?: string | undefined;
1708
1753
  } | undefined;
@@ -1763,10 +1808,6 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1763
1808
  scheduleConfig?: {
1764
1809
  required: boolean;
1765
1810
  } | undefined;
1766
- id?: string | undefined;
1767
- createdAt?: string | undefined;
1768
- updatedAt?: string | undefined;
1769
- deletedAt?: string | null | undefined;
1770
1811
  }, {
1771
1812
  filter: {
1772
1813
  cohorts: ({
@@ -1779,8 +1820,8 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1779
1820
  custom?: Record<string, unknown> | undefined;
1780
1821
  };
1781
1822
  name: string;
1782
- description: string;
1783
1823
  status: FlowSpecStatusKind;
1824
+ description: string;
1784
1825
  tid: string;
1785
1826
  triggerFilter: {
1786
1827
  trigger: {
@@ -1792,6 +1833,10 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1792
1833
  custom?: Record<string, unknown> | undefined;
1793
1834
  };
1794
1835
  engagementChannelCids: string[];
1836
+ id?: string | undefined;
1837
+ createdAt?: string | undefined;
1838
+ updatedAt?: string | undefined;
1839
+ deletedAt?: string | null | undefined;
1795
1840
  fslStrategy?: "STANDARD" | undefined;
1796
1841
  tone?: {
1797
1842
  kind?: string | undefined;
@@ -1853,18 +1898,12 @@ export declare const _FlowSpecUpsertDto: z.ZodObject<{
1853
1898
  scheduleConfig?: {
1854
1899
  required: boolean;
1855
1900
  } | undefined;
1856
- id?: string | undefined;
1857
- createdAt?: string | undefined;
1858
- updatedAt?: string | undefined;
1859
- deletedAt?: string | null | undefined;
1860
1901
  }>;
1861
1902
  export type FlowSpecUpsertDto = z.infer<typeof _FlowSpecUpsertDto>;
1862
- export declare const _FlowSpecFilter: z.ZodObject<{
1903
+ export declare const _FlowSpecFilter: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1863
1904
  name: z.ZodOptional<z.ZodString>;
1864
- description: z.ZodOptional<z.ZodString>;
1865
1905
  status: z.ZodOptional<z.ZodNativeEnum<typeof FlowSpecStatusKind>>;
1866
- limit: z.ZodOptional<z.ZodNumber>;
1867
- offset: z.ZodOptional<z.ZodNumber>;
1906
+ description: z.ZodOptional<z.ZodString>;
1868
1907
  id: z.ZodOptional<z.ZodString>;
1869
1908
  tid: z.ZodOptional<z.ZodString>;
1870
1909
  createdAt: z.ZodOptional<z.ZodString>;
@@ -2085,15 +2124,20 @@ export declare const _FlowSpecFilter: z.ZodObject<{
2085
2124
  activeCount: number;
2086
2125
  lastTriggered?: string | undefined;
2087
2126
  }, {
2127
+ totalCount?: number | undefined;
2088
2128
  lastTriggered?: string | undefined;
2089
2129
  activeCount?: number | undefined;
2090
- totalCount?: number | undefined;
2091
2130
  }>>>;
2131
+ }, {
2132
+ limit: z.ZodOptional<z.ZodNumber>;
2133
+ offset: z.ZodOptional<z.ZodNumber>;
2134
+ }>, {
2092
2135
  sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
2093
- }, "strip", z.ZodTypeAny, {
2136
+ }>, "strip", z.ZodTypeAny, {
2137
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
2094
2138
  name?: string | undefined;
2095
- description?: string | undefined;
2096
2139
  status?: FlowSpecStatusKind | undefined;
2140
+ description?: string | undefined;
2097
2141
  limit?: number | undefined;
2098
2142
  offset?: number | undefined;
2099
2143
  id?: string | undefined;
@@ -2168,11 +2212,11 @@ export declare const _FlowSpecFilter: z.ZodObject<{
2168
2212
  activeCount: number;
2169
2213
  lastTriggered?: string | undefined;
2170
2214
  } | undefined;
2171
- sort?: Record<string, "ASC" | "DESC"> | undefined;
2172
2215
  }, {
2216
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
2173
2217
  name?: string | undefined;
2174
- description?: string | undefined;
2175
2218
  status?: FlowSpecStatusKind | undefined;
2219
+ description?: string | undefined;
2176
2220
  limit?: number | undefined;
2177
2221
  offset?: number | undefined;
2178
2222
  id?: string | undefined;
@@ -2243,11 +2287,10 @@ export declare const _FlowSpecFilter: z.ZodObject<{
2243
2287
  required: boolean;
2244
2288
  } | undefined;
2245
2289
  activity?: {
2290
+ totalCount?: number | undefined;
2246
2291
  lastTriggered?: string | undefined;
2247
2292
  activeCount?: number | undefined;
2248
- totalCount?: number | undefined;
2249
2293
  } | undefined;
2250
- sort?: Record<string, "ASC" | "DESC"> | undefined;
2251
2294
  }>;
2252
2295
  export type FlowSpecFilter = z.infer<typeof _FlowSpecFilter>;
2253
2296
  export {};