@automate.ax/integration-contracts 0.102.0 → 0.103.1

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.
@@ -1,10 +1,41 @@
1
1
  import * as z from "zod";
2
+ export declare const AUTOMATE_ERROR_SCHEMA: z.ZodObject<{
3
+ code: z.ZodString;
4
+ details: z.ZodOptional<z.ZodJSONSchema>;
5
+ message: z.ZodString;
6
+ name: z.ZodOptional<z.ZodString>;
7
+ cause: z.ZodOptional<z.ZodObject<{
8
+ code: z.ZodString;
9
+ details: z.ZodOptional<z.ZodJSONSchema>;
10
+ message: z.ZodString;
11
+ name: z.ZodOptional<z.ZodString>;
12
+ cause: z.ZodOptional<z.ZodObject<{
13
+ code: z.ZodString;
14
+ details: z.ZodOptional<z.ZodJSONSchema>;
15
+ message: z.ZodString;
16
+ name: z.ZodOptional<z.ZodString>;
17
+ cause: z.ZodOptional<z.ZodObject<{
18
+ code: z.ZodString;
19
+ details: z.ZodOptional<z.ZodJSONSchema>;
20
+ message: z.ZodString;
21
+ name: z.ZodOptional<z.ZodString>;
22
+ cause: z.ZodOptional<z.ZodNever>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
2
27
  export declare const AUTOMATE_AUTOMATION_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{
3
28
  automationId: z.ZodString;
4
29
  }, z.core.$strip>;
5
30
  export declare const AUTOMATE_DEPLOYMENT_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{
6
31
  projectId: z.ZodString;
7
32
  }, z.core.$strip>;
33
+ export declare const AUTOMATE_EXECUTION_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{
34
+ automationId: z.ZodString;
35
+ }, z.core.$strip>;
36
+ export declare const AUTOMATE_ACTION_ATTEMPT_TRIGGER_CONFIG_SCHEMA: z.ZodObject<{
37
+ automationId: z.ZodString;
38
+ }, z.core.$strip>;
8
39
  export declare const AUTOMATE_AUTOMATION_STATE_EVENT_SCHEMA: z.ZodObject<{
9
40
  automation: z.ZodObject<{
10
41
  description: z.ZodString;
@@ -206,7 +237,679 @@ export declare const AUTOMATE_DEPLOYMENT_SUCCEEDED_EVENT_SCHEMA: z.ZodObject<{
206
237
  failure: z.ZodNull;
207
238
  status: z.ZodLiteral<"succeeded">;
208
239
  }, z.core.$strip>;
240
+ export declare const AUTOMATE_EXECUTION_EVENT_SCHEMA: z.ZodObject<{
241
+ automation: z.ZodObject<{
242
+ description: z.ZodString;
243
+ id: z.ZodString;
244
+ identityKey: z.ZodString;
245
+ }, z.core.$strip>;
246
+ eventTypes: z.ZodArray<z.ZodString>;
247
+ execution: z.ZodObject<{
248
+ createdAt: z.ZodDate;
249
+ id: z.ZodString;
250
+ settledAt: z.ZodNullable<z.ZodDate>;
251
+ status: z.ZodEnum<{
252
+ failed: "failed";
253
+ running: "running";
254
+ settled: "settled";
255
+ }>;
256
+ }, z.core.$strip>;
257
+ failure: z.ZodNullable<z.ZodObject<{
258
+ code: z.ZodString;
259
+ details: z.ZodOptional<z.ZodJSONSchema>;
260
+ message: z.ZodString;
261
+ name: z.ZodOptional<z.ZodString>;
262
+ cause: z.ZodOptional<z.ZodObject<{
263
+ code: z.ZodString;
264
+ details: z.ZodOptional<z.ZodJSONSchema>;
265
+ message: z.ZodString;
266
+ name: z.ZodOptional<z.ZodString>;
267
+ cause: z.ZodOptional<z.ZodObject<{
268
+ code: z.ZodString;
269
+ details: z.ZodOptional<z.ZodJSONSchema>;
270
+ message: z.ZodString;
271
+ name: z.ZodOptional<z.ZodString>;
272
+ cause: z.ZodOptional<z.ZodObject<{
273
+ code: z.ZodString;
274
+ details: z.ZodOptional<z.ZodJSONSchema>;
275
+ message: z.ZodString;
276
+ name: z.ZodOptional<z.ZodString>;
277
+ cause: z.ZodOptional<z.ZodNever>;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>>;
280
+ }, z.core.$strip>>;
281
+ }, z.core.$strip>>;
282
+ organization: z.ZodObject<{
283
+ id: z.ZodString;
284
+ name: z.ZodString;
285
+ }, z.core.$strip>;
286
+ project: z.ZodObject<{
287
+ id: z.ZodString;
288
+ name: z.ZodString;
289
+ }, z.core.$strip>;
290
+ transitionedAt: z.ZodDate;
291
+ }, z.core.$strip>;
292
+ export declare const AUTOMATE_EXECUTION_SETTLED_EVENT_SCHEMA: z.ZodObject<{
293
+ automation: z.ZodObject<{
294
+ description: z.ZodString;
295
+ id: z.ZodString;
296
+ identityKey: z.ZodString;
297
+ }, z.core.$strip>;
298
+ eventTypes: z.ZodArray<z.ZodString>;
299
+ organization: z.ZodObject<{
300
+ id: z.ZodString;
301
+ name: z.ZodString;
302
+ }, z.core.$strip>;
303
+ project: z.ZodObject<{
304
+ id: z.ZodString;
305
+ name: z.ZodString;
306
+ }, z.core.$strip>;
307
+ transitionedAt: z.ZodDate;
308
+ execution: z.ZodObject<{
309
+ createdAt: z.ZodDate;
310
+ id: z.ZodString;
311
+ settledAt: z.ZodDate;
312
+ status: z.ZodLiteral<"settled">;
313
+ }, z.core.$strip>;
314
+ failure: z.ZodNull;
315
+ }, z.core.$strip>;
316
+ export declare const AUTOMATE_EXECUTION_FAILED_EVENT_SCHEMA: z.ZodObject<{
317
+ automation: z.ZodObject<{
318
+ description: z.ZodString;
319
+ id: z.ZodString;
320
+ identityKey: z.ZodString;
321
+ }, z.core.$strip>;
322
+ eventTypes: z.ZodArray<z.ZodString>;
323
+ organization: z.ZodObject<{
324
+ id: z.ZodString;
325
+ name: z.ZodString;
326
+ }, z.core.$strip>;
327
+ project: z.ZodObject<{
328
+ id: z.ZodString;
329
+ name: z.ZodString;
330
+ }, z.core.$strip>;
331
+ transitionedAt: z.ZodDate;
332
+ execution: z.ZodObject<{
333
+ createdAt: z.ZodDate;
334
+ id: z.ZodString;
335
+ settledAt: z.ZodDate;
336
+ status: z.ZodLiteral<"failed">;
337
+ }, z.core.$strip>;
338
+ failure: z.ZodObject<{
339
+ code: z.ZodString;
340
+ details: z.ZodOptional<z.ZodJSONSchema>;
341
+ message: z.ZodString;
342
+ name: z.ZodOptional<z.ZodString>;
343
+ cause: z.ZodOptional<z.ZodObject<{
344
+ code: z.ZodString;
345
+ details: z.ZodOptional<z.ZodJSONSchema>;
346
+ message: z.ZodString;
347
+ name: z.ZodOptional<z.ZodString>;
348
+ cause: z.ZodOptional<z.ZodObject<{
349
+ code: z.ZodString;
350
+ details: z.ZodOptional<z.ZodJSONSchema>;
351
+ message: z.ZodString;
352
+ name: z.ZodOptional<z.ZodString>;
353
+ cause: z.ZodOptional<z.ZodObject<{
354
+ code: z.ZodString;
355
+ details: z.ZodOptional<z.ZodJSONSchema>;
356
+ message: z.ZodString;
357
+ name: z.ZodOptional<z.ZodString>;
358
+ cause: z.ZodOptional<z.ZodNever>;
359
+ }, z.core.$strip>>;
360
+ }, z.core.$strip>>;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strip>;
363
+ }, z.core.$strip>;
364
+ export declare const AUTOMATE_ACTION_ATTEMPT_EVENT_SCHEMA: z.ZodObject<{
365
+ action: z.ZodObject<{
366
+ id: z.ZodString;
367
+ maxAttempts: z.ZodNumber;
368
+ name: z.ZodString;
369
+ replaySafety: z.ZodNullable<z.ZodEnum<{
370
+ safe: "safe";
371
+ unsafe: "unsafe";
372
+ }>>;
373
+ slot: z.ZodNumber;
374
+ status: z.ZodEnum<{
375
+ succeeded: "succeeded";
376
+ failed: "failed";
377
+ pending: "pending";
378
+ skipped: "skipped";
379
+ }>;
380
+ }, z.core.$strip>;
381
+ attempt: z.ZodObject<{
382
+ completedAt: z.ZodNullable<z.ZodDate>;
383
+ id: z.ZodString;
384
+ ordinal: z.ZodNumber;
385
+ retryAt: z.ZodNullable<z.ZodDate>;
386
+ startedAt: z.ZodDate;
387
+ status: z.ZodEnum<{
388
+ succeeded: "succeeded";
389
+ failed: "failed";
390
+ running: "running";
391
+ retrying: "retrying";
392
+ indeterminate: "indeterminate";
393
+ }>;
394
+ }, z.core.$strip>;
395
+ automation: z.ZodObject<{
396
+ id: z.ZodString;
397
+ identityKey: z.ZodString;
398
+ }, z.core.$strip>;
399
+ execution: z.ZodObject<{
400
+ id: z.ZodString;
401
+ }, z.core.$strip>;
402
+ failure: z.ZodNullable<z.ZodObject<{
403
+ code: z.ZodString;
404
+ details: z.ZodOptional<z.ZodJSONSchema>;
405
+ message: z.ZodString;
406
+ name: z.ZodOptional<z.ZodString>;
407
+ cause: z.ZodOptional<z.ZodObject<{
408
+ code: z.ZodString;
409
+ details: z.ZodOptional<z.ZodJSONSchema>;
410
+ message: z.ZodString;
411
+ name: z.ZodOptional<z.ZodString>;
412
+ cause: z.ZodOptional<z.ZodObject<{
413
+ code: z.ZodString;
414
+ details: z.ZodOptional<z.ZodJSONSchema>;
415
+ message: z.ZodString;
416
+ name: z.ZodOptional<z.ZodString>;
417
+ cause: z.ZodOptional<z.ZodObject<{
418
+ code: z.ZodString;
419
+ details: z.ZodOptional<z.ZodJSONSchema>;
420
+ message: z.ZodString;
421
+ name: z.ZodOptional<z.ZodString>;
422
+ cause: z.ZodOptional<z.ZodNever>;
423
+ }, z.core.$strip>>;
424
+ }, z.core.$strip>>;
425
+ }, z.core.$strip>>;
426
+ }, z.core.$strip>>;
427
+ organization: z.ZodObject<{
428
+ id: z.ZodString;
429
+ name: z.ZodString;
430
+ }, z.core.$strip>;
431
+ project: z.ZodObject<{
432
+ id: z.ZodString;
433
+ name: z.ZodString;
434
+ }, z.core.$strip>;
435
+ transitionedAt: z.ZodDate;
436
+ }, z.core.$strip>;
437
+ export declare const AUTOMATE_ACTION_RETRY_SCHEDULED_EVENT_SCHEMA: z.ZodObject<{
438
+ action: z.ZodObject<{
439
+ id: z.ZodString;
440
+ maxAttempts: z.ZodNumber;
441
+ name: z.ZodString;
442
+ replaySafety: z.ZodNullable<z.ZodEnum<{
443
+ safe: "safe";
444
+ unsafe: "unsafe";
445
+ }>>;
446
+ slot: z.ZodNumber;
447
+ status: z.ZodEnum<{
448
+ succeeded: "succeeded";
449
+ failed: "failed";
450
+ pending: "pending";
451
+ skipped: "skipped";
452
+ }>;
453
+ }, z.core.$strip>;
454
+ automation: z.ZodObject<{
455
+ id: z.ZodString;
456
+ identityKey: z.ZodString;
457
+ }, z.core.$strip>;
458
+ execution: z.ZodObject<{
459
+ id: z.ZodString;
460
+ }, z.core.$strip>;
461
+ organization: z.ZodObject<{
462
+ id: z.ZodString;
463
+ name: z.ZodString;
464
+ }, z.core.$strip>;
465
+ project: z.ZodObject<{
466
+ id: z.ZodString;
467
+ name: z.ZodString;
468
+ }, z.core.$strip>;
469
+ transitionedAt: z.ZodDate;
470
+ attempt: z.ZodObject<{
471
+ id: z.ZodString;
472
+ ordinal: z.ZodNumber;
473
+ startedAt: z.ZodDate;
474
+ completedAt: z.ZodDate;
475
+ retryAt: z.ZodDate;
476
+ status: z.ZodLiteral<"retrying">;
477
+ }, z.core.$strip>;
478
+ failure: z.ZodObject<{
479
+ code: z.ZodString;
480
+ details: z.ZodOptional<z.ZodJSONSchema>;
481
+ message: z.ZodString;
482
+ name: z.ZodOptional<z.ZodString>;
483
+ cause: z.ZodOptional<z.ZodObject<{
484
+ code: z.ZodString;
485
+ details: z.ZodOptional<z.ZodJSONSchema>;
486
+ message: z.ZodString;
487
+ name: z.ZodOptional<z.ZodString>;
488
+ cause: z.ZodOptional<z.ZodObject<{
489
+ code: z.ZodString;
490
+ details: z.ZodOptional<z.ZodJSONSchema>;
491
+ message: z.ZodString;
492
+ name: z.ZodOptional<z.ZodString>;
493
+ cause: z.ZodOptional<z.ZodObject<{
494
+ code: z.ZodString;
495
+ details: z.ZodOptional<z.ZodJSONSchema>;
496
+ message: z.ZodString;
497
+ name: z.ZodOptional<z.ZodString>;
498
+ cause: z.ZodOptional<z.ZodNever>;
499
+ }, z.core.$strip>>;
500
+ }, z.core.$strip>>;
501
+ }, z.core.$strip>>;
502
+ }, z.core.$strip>;
503
+ }, z.core.$strip>;
504
+ export declare const AUTOMATE_ACTION_FAILED_EVENT_SCHEMA: z.ZodObject<{
505
+ automation: z.ZodObject<{
506
+ id: z.ZodString;
507
+ identityKey: z.ZodString;
508
+ }, z.core.$strip>;
509
+ execution: z.ZodObject<{
510
+ id: z.ZodString;
511
+ }, z.core.$strip>;
512
+ organization: z.ZodObject<{
513
+ id: z.ZodString;
514
+ name: z.ZodString;
515
+ }, z.core.$strip>;
516
+ project: z.ZodObject<{
517
+ id: z.ZodString;
518
+ name: z.ZodString;
519
+ }, z.core.$strip>;
520
+ transitionedAt: z.ZodDate;
521
+ action: z.ZodObject<{
522
+ id: z.ZodString;
523
+ maxAttempts: z.ZodNumber;
524
+ name: z.ZodString;
525
+ replaySafety: z.ZodNullable<z.ZodEnum<{
526
+ safe: "safe";
527
+ unsafe: "unsafe";
528
+ }>>;
529
+ slot: z.ZodNumber;
530
+ status: z.ZodLiteral<"failed">;
531
+ }, z.core.$strip>;
532
+ attempt: z.ZodObject<{
533
+ id: z.ZodString;
534
+ ordinal: z.ZodNumber;
535
+ retryAt: z.ZodNullable<z.ZodDate>;
536
+ startedAt: z.ZodDate;
537
+ completedAt: z.ZodDate;
538
+ status: z.ZodLiteral<"failed">;
539
+ }, z.core.$strip>;
540
+ failure: z.ZodObject<{
541
+ code: z.ZodString;
542
+ details: z.ZodOptional<z.ZodJSONSchema>;
543
+ message: z.ZodString;
544
+ name: z.ZodOptional<z.ZodString>;
545
+ cause: z.ZodOptional<z.ZodObject<{
546
+ code: z.ZodString;
547
+ details: z.ZodOptional<z.ZodJSONSchema>;
548
+ message: z.ZodString;
549
+ name: z.ZodOptional<z.ZodString>;
550
+ cause: z.ZodOptional<z.ZodObject<{
551
+ code: z.ZodString;
552
+ details: z.ZodOptional<z.ZodJSONSchema>;
553
+ message: z.ZodString;
554
+ name: z.ZodOptional<z.ZodString>;
555
+ cause: z.ZodOptional<z.ZodObject<{
556
+ code: z.ZodString;
557
+ details: z.ZodOptional<z.ZodJSONSchema>;
558
+ message: z.ZodString;
559
+ name: z.ZodOptional<z.ZodString>;
560
+ cause: z.ZodOptional<z.ZodNever>;
561
+ }, z.core.$strip>>;
562
+ }, z.core.$strip>>;
563
+ }, z.core.$strip>>;
564
+ }, z.core.$strip>;
565
+ }, z.core.$strip>;
566
+ export declare const AUTOMATE_ACTION_INDETERMINATE_EVENT_SCHEMA: z.ZodObject<{
567
+ automation: z.ZodObject<{
568
+ id: z.ZodString;
569
+ identityKey: z.ZodString;
570
+ }, z.core.$strip>;
571
+ execution: z.ZodObject<{
572
+ id: z.ZodString;
573
+ }, z.core.$strip>;
574
+ organization: z.ZodObject<{
575
+ id: z.ZodString;
576
+ name: z.ZodString;
577
+ }, z.core.$strip>;
578
+ project: z.ZodObject<{
579
+ id: z.ZodString;
580
+ name: z.ZodString;
581
+ }, z.core.$strip>;
582
+ transitionedAt: z.ZodDate;
583
+ action: z.ZodObject<{
584
+ id: z.ZodString;
585
+ maxAttempts: z.ZodNumber;
586
+ name: z.ZodString;
587
+ replaySafety: z.ZodNullable<z.ZodEnum<{
588
+ safe: "safe";
589
+ unsafe: "unsafe";
590
+ }>>;
591
+ slot: z.ZodNumber;
592
+ status: z.ZodLiteral<"failed">;
593
+ }, z.core.$strip>;
594
+ attempt: z.ZodObject<{
595
+ id: z.ZodString;
596
+ ordinal: z.ZodNumber;
597
+ retryAt: z.ZodNullable<z.ZodDate>;
598
+ startedAt: z.ZodDate;
599
+ completedAt: z.ZodDate;
600
+ status: z.ZodLiteral<"indeterminate">;
601
+ }, z.core.$strip>;
602
+ failure: z.ZodObject<{
603
+ code: z.ZodString;
604
+ details: z.ZodOptional<z.ZodJSONSchema>;
605
+ message: z.ZodString;
606
+ name: z.ZodOptional<z.ZodString>;
607
+ cause: z.ZodOptional<z.ZodObject<{
608
+ code: z.ZodString;
609
+ details: z.ZodOptional<z.ZodJSONSchema>;
610
+ message: z.ZodString;
611
+ name: z.ZodOptional<z.ZodString>;
612
+ cause: z.ZodOptional<z.ZodObject<{
613
+ code: z.ZodString;
614
+ details: z.ZodOptional<z.ZodJSONSchema>;
615
+ message: z.ZodString;
616
+ name: z.ZodOptional<z.ZodString>;
617
+ cause: z.ZodOptional<z.ZodObject<{
618
+ code: z.ZodString;
619
+ details: z.ZodOptional<z.ZodJSONSchema>;
620
+ message: z.ZodString;
621
+ name: z.ZodOptional<z.ZodString>;
622
+ cause: z.ZodOptional<z.ZodNever>;
623
+ }, z.core.$strip>>;
624
+ }, z.core.$strip>>;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strip>;
627
+ }, z.core.$strip>;
209
628
  export declare const automateTriggerContracts: {
629
+ readonly "automate.action.failed": {
630
+ readonly configSchema: z.ZodObject<{
631
+ automationId: z.ZodString;
632
+ }, z.core.$strip>;
633
+ readonly eventSchema: z.ZodObject<{
634
+ automation: z.ZodObject<{
635
+ id: z.ZodString;
636
+ identityKey: z.ZodString;
637
+ }, z.core.$strip>;
638
+ execution: z.ZodObject<{
639
+ id: z.ZodString;
640
+ }, z.core.$strip>;
641
+ organization: z.ZodObject<{
642
+ id: z.ZodString;
643
+ name: z.ZodString;
644
+ }, z.core.$strip>;
645
+ project: z.ZodObject<{
646
+ id: z.ZodString;
647
+ name: z.ZodString;
648
+ }, z.core.$strip>;
649
+ transitionedAt: z.ZodDate;
650
+ action: z.ZodObject<{
651
+ id: z.ZodString;
652
+ maxAttempts: z.ZodNumber;
653
+ name: z.ZodString;
654
+ replaySafety: z.ZodNullable<z.ZodEnum<{
655
+ safe: "safe";
656
+ unsafe: "unsafe";
657
+ }>>;
658
+ slot: z.ZodNumber;
659
+ status: z.ZodLiteral<"failed">;
660
+ }, z.core.$strip>;
661
+ attempt: z.ZodObject<{
662
+ id: z.ZodString;
663
+ ordinal: z.ZodNumber;
664
+ retryAt: z.ZodNullable<z.ZodDate>;
665
+ startedAt: z.ZodDate;
666
+ completedAt: z.ZodDate;
667
+ status: z.ZodLiteral<"failed">;
668
+ }, z.core.$strip>;
669
+ failure: z.ZodObject<{
670
+ code: z.ZodString;
671
+ details: z.ZodOptional<z.ZodJSONSchema>;
672
+ message: z.ZodString;
673
+ name: z.ZodOptional<z.ZodString>;
674
+ cause: z.ZodOptional<z.ZodObject<{
675
+ code: z.ZodString;
676
+ details: z.ZodOptional<z.ZodJSONSchema>;
677
+ message: z.ZodString;
678
+ name: z.ZodOptional<z.ZodString>;
679
+ cause: z.ZodOptional<z.ZodObject<{
680
+ code: z.ZodString;
681
+ details: z.ZodOptional<z.ZodJSONSchema>;
682
+ message: z.ZodString;
683
+ name: z.ZodOptional<z.ZodString>;
684
+ cause: z.ZodOptional<z.ZodObject<{
685
+ code: z.ZodString;
686
+ details: z.ZodOptional<z.ZodJSONSchema>;
687
+ message: z.ZodString;
688
+ name: z.ZodOptional<z.ZodString>;
689
+ cause: z.ZodOptional<z.ZodNever>;
690
+ }, z.core.$strip>>;
691
+ }, z.core.$strip>>;
692
+ }, z.core.$strip>>;
693
+ }, z.core.$strip>;
694
+ }, z.core.$strip>;
695
+ };
696
+ readonly "automate.action.indeterminate": {
697
+ readonly configSchema: z.ZodObject<{
698
+ automationId: z.ZodString;
699
+ }, z.core.$strip>;
700
+ readonly eventSchema: z.ZodObject<{
701
+ automation: z.ZodObject<{
702
+ id: z.ZodString;
703
+ identityKey: z.ZodString;
704
+ }, z.core.$strip>;
705
+ execution: z.ZodObject<{
706
+ id: z.ZodString;
707
+ }, z.core.$strip>;
708
+ organization: z.ZodObject<{
709
+ id: z.ZodString;
710
+ name: z.ZodString;
711
+ }, z.core.$strip>;
712
+ project: z.ZodObject<{
713
+ id: z.ZodString;
714
+ name: z.ZodString;
715
+ }, z.core.$strip>;
716
+ transitionedAt: z.ZodDate;
717
+ action: z.ZodObject<{
718
+ id: z.ZodString;
719
+ maxAttempts: z.ZodNumber;
720
+ name: z.ZodString;
721
+ replaySafety: z.ZodNullable<z.ZodEnum<{
722
+ safe: "safe";
723
+ unsafe: "unsafe";
724
+ }>>;
725
+ slot: z.ZodNumber;
726
+ status: z.ZodLiteral<"failed">;
727
+ }, z.core.$strip>;
728
+ attempt: z.ZodObject<{
729
+ id: z.ZodString;
730
+ ordinal: z.ZodNumber;
731
+ retryAt: z.ZodNullable<z.ZodDate>;
732
+ startedAt: z.ZodDate;
733
+ completedAt: z.ZodDate;
734
+ status: z.ZodLiteral<"indeterminate">;
735
+ }, z.core.$strip>;
736
+ failure: z.ZodObject<{
737
+ code: z.ZodString;
738
+ details: z.ZodOptional<z.ZodJSONSchema>;
739
+ message: z.ZodString;
740
+ name: z.ZodOptional<z.ZodString>;
741
+ cause: z.ZodOptional<z.ZodObject<{
742
+ code: z.ZodString;
743
+ details: z.ZodOptional<z.ZodJSONSchema>;
744
+ message: z.ZodString;
745
+ name: z.ZodOptional<z.ZodString>;
746
+ cause: z.ZodOptional<z.ZodObject<{
747
+ code: z.ZodString;
748
+ details: z.ZodOptional<z.ZodJSONSchema>;
749
+ message: z.ZodString;
750
+ name: z.ZodOptional<z.ZodString>;
751
+ cause: z.ZodOptional<z.ZodObject<{
752
+ code: z.ZodString;
753
+ details: z.ZodOptional<z.ZodJSONSchema>;
754
+ message: z.ZodString;
755
+ name: z.ZodOptional<z.ZodString>;
756
+ cause: z.ZodOptional<z.ZodNever>;
757
+ }, z.core.$strip>>;
758
+ }, z.core.$strip>>;
759
+ }, z.core.$strip>>;
760
+ }, z.core.$strip>;
761
+ }, z.core.$strip>;
762
+ };
763
+ readonly "automate.action.retryScheduled": {
764
+ readonly configSchema: z.ZodObject<{
765
+ automationId: z.ZodString;
766
+ }, z.core.$strip>;
767
+ readonly eventSchema: z.ZodObject<{
768
+ action: z.ZodObject<{
769
+ id: z.ZodString;
770
+ maxAttempts: z.ZodNumber;
771
+ name: z.ZodString;
772
+ replaySafety: z.ZodNullable<z.ZodEnum<{
773
+ safe: "safe";
774
+ unsafe: "unsafe";
775
+ }>>;
776
+ slot: z.ZodNumber;
777
+ status: z.ZodEnum<{
778
+ succeeded: "succeeded";
779
+ failed: "failed";
780
+ pending: "pending";
781
+ skipped: "skipped";
782
+ }>;
783
+ }, z.core.$strip>;
784
+ automation: z.ZodObject<{
785
+ id: z.ZodString;
786
+ identityKey: z.ZodString;
787
+ }, z.core.$strip>;
788
+ execution: z.ZodObject<{
789
+ id: z.ZodString;
790
+ }, z.core.$strip>;
791
+ organization: z.ZodObject<{
792
+ id: z.ZodString;
793
+ name: z.ZodString;
794
+ }, z.core.$strip>;
795
+ project: z.ZodObject<{
796
+ id: z.ZodString;
797
+ name: z.ZodString;
798
+ }, z.core.$strip>;
799
+ transitionedAt: z.ZodDate;
800
+ attempt: z.ZodObject<{
801
+ id: z.ZodString;
802
+ ordinal: z.ZodNumber;
803
+ startedAt: z.ZodDate;
804
+ completedAt: z.ZodDate;
805
+ retryAt: z.ZodDate;
806
+ status: z.ZodLiteral<"retrying">;
807
+ }, z.core.$strip>;
808
+ failure: z.ZodObject<{
809
+ code: z.ZodString;
810
+ details: z.ZodOptional<z.ZodJSONSchema>;
811
+ message: z.ZodString;
812
+ name: z.ZodOptional<z.ZodString>;
813
+ cause: z.ZodOptional<z.ZodObject<{
814
+ code: z.ZodString;
815
+ details: z.ZodOptional<z.ZodJSONSchema>;
816
+ message: z.ZodString;
817
+ name: z.ZodOptional<z.ZodString>;
818
+ cause: z.ZodOptional<z.ZodObject<{
819
+ code: z.ZodString;
820
+ details: z.ZodOptional<z.ZodJSONSchema>;
821
+ message: z.ZodString;
822
+ name: z.ZodOptional<z.ZodString>;
823
+ cause: z.ZodOptional<z.ZodObject<{
824
+ code: z.ZodString;
825
+ details: z.ZodOptional<z.ZodJSONSchema>;
826
+ message: z.ZodString;
827
+ name: z.ZodOptional<z.ZodString>;
828
+ cause: z.ZodOptional<z.ZodNever>;
829
+ }, z.core.$strip>>;
830
+ }, z.core.$strip>>;
831
+ }, z.core.$strip>>;
832
+ }, z.core.$strip>;
833
+ }, z.core.$strip>;
834
+ };
835
+ readonly "automate.actionAttempt.event": {
836
+ readonly configSchema: z.ZodObject<{
837
+ automationId: z.ZodString;
838
+ }, z.core.$strip>;
839
+ readonly eventSchema: z.ZodObject<{
840
+ action: z.ZodObject<{
841
+ id: z.ZodString;
842
+ maxAttempts: z.ZodNumber;
843
+ name: z.ZodString;
844
+ replaySafety: z.ZodNullable<z.ZodEnum<{
845
+ safe: "safe";
846
+ unsafe: "unsafe";
847
+ }>>;
848
+ slot: z.ZodNumber;
849
+ status: z.ZodEnum<{
850
+ succeeded: "succeeded";
851
+ failed: "failed";
852
+ pending: "pending";
853
+ skipped: "skipped";
854
+ }>;
855
+ }, z.core.$strip>;
856
+ attempt: z.ZodObject<{
857
+ completedAt: z.ZodNullable<z.ZodDate>;
858
+ id: z.ZodString;
859
+ ordinal: z.ZodNumber;
860
+ retryAt: z.ZodNullable<z.ZodDate>;
861
+ startedAt: z.ZodDate;
862
+ status: z.ZodEnum<{
863
+ succeeded: "succeeded";
864
+ failed: "failed";
865
+ running: "running";
866
+ retrying: "retrying";
867
+ indeterminate: "indeterminate";
868
+ }>;
869
+ }, z.core.$strip>;
870
+ automation: z.ZodObject<{
871
+ id: z.ZodString;
872
+ identityKey: z.ZodString;
873
+ }, z.core.$strip>;
874
+ execution: z.ZodObject<{
875
+ id: z.ZodString;
876
+ }, z.core.$strip>;
877
+ failure: z.ZodNullable<z.ZodObject<{
878
+ code: z.ZodString;
879
+ details: z.ZodOptional<z.ZodJSONSchema>;
880
+ message: z.ZodString;
881
+ name: z.ZodOptional<z.ZodString>;
882
+ cause: z.ZodOptional<z.ZodObject<{
883
+ code: z.ZodString;
884
+ details: z.ZodOptional<z.ZodJSONSchema>;
885
+ message: z.ZodString;
886
+ name: z.ZodOptional<z.ZodString>;
887
+ cause: z.ZodOptional<z.ZodObject<{
888
+ code: z.ZodString;
889
+ details: z.ZodOptional<z.ZodJSONSchema>;
890
+ message: z.ZodString;
891
+ name: z.ZodOptional<z.ZodString>;
892
+ cause: z.ZodOptional<z.ZodObject<{
893
+ code: z.ZodString;
894
+ details: z.ZodOptional<z.ZodJSONSchema>;
895
+ message: z.ZodString;
896
+ name: z.ZodOptional<z.ZodString>;
897
+ cause: z.ZodOptional<z.ZodNever>;
898
+ }, z.core.$strip>>;
899
+ }, z.core.$strip>>;
900
+ }, z.core.$strip>>;
901
+ }, z.core.$strip>>;
902
+ organization: z.ZodObject<{
903
+ id: z.ZodString;
904
+ name: z.ZodString;
905
+ }, z.core.$strip>;
906
+ project: z.ZodObject<{
907
+ id: z.ZodString;
908
+ name: z.ZodString;
909
+ }, z.core.$strip>;
910
+ transitionedAt: z.ZodDate;
911
+ }, z.core.$strip>;
912
+ };
210
913
  readonly "automate.automation.disabled": {
211
914
  readonly configSchema: z.ZodObject<{
212
915
  automationId: z.ZodString;
@@ -448,4 +1151,143 @@ export declare const automateTriggerContracts: {
448
1151
  status: z.ZodLiteral<"succeeded">;
449
1152
  }, z.core.$strip>;
450
1153
  };
1154
+ readonly "automate.execution.event": {
1155
+ readonly configSchema: z.ZodObject<{
1156
+ automationId: z.ZodString;
1157
+ }, z.core.$strip>;
1158
+ readonly eventSchema: z.ZodObject<{
1159
+ automation: z.ZodObject<{
1160
+ description: z.ZodString;
1161
+ id: z.ZodString;
1162
+ identityKey: z.ZodString;
1163
+ }, z.core.$strip>;
1164
+ eventTypes: z.ZodArray<z.ZodString>;
1165
+ execution: z.ZodObject<{
1166
+ createdAt: z.ZodDate;
1167
+ id: z.ZodString;
1168
+ settledAt: z.ZodNullable<z.ZodDate>;
1169
+ status: z.ZodEnum<{
1170
+ failed: "failed";
1171
+ running: "running";
1172
+ settled: "settled";
1173
+ }>;
1174
+ }, z.core.$strip>;
1175
+ failure: z.ZodNullable<z.ZodObject<{
1176
+ code: z.ZodString;
1177
+ details: z.ZodOptional<z.ZodJSONSchema>;
1178
+ message: z.ZodString;
1179
+ name: z.ZodOptional<z.ZodString>;
1180
+ cause: z.ZodOptional<z.ZodObject<{
1181
+ code: z.ZodString;
1182
+ details: z.ZodOptional<z.ZodJSONSchema>;
1183
+ message: z.ZodString;
1184
+ name: z.ZodOptional<z.ZodString>;
1185
+ cause: z.ZodOptional<z.ZodObject<{
1186
+ code: z.ZodString;
1187
+ details: z.ZodOptional<z.ZodJSONSchema>;
1188
+ message: z.ZodString;
1189
+ name: z.ZodOptional<z.ZodString>;
1190
+ cause: z.ZodOptional<z.ZodObject<{
1191
+ code: z.ZodString;
1192
+ details: z.ZodOptional<z.ZodJSONSchema>;
1193
+ message: z.ZodString;
1194
+ name: z.ZodOptional<z.ZodString>;
1195
+ cause: z.ZodOptional<z.ZodNever>;
1196
+ }, z.core.$strip>>;
1197
+ }, z.core.$strip>>;
1198
+ }, z.core.$strip>>;
1199
+ }, z.core.$strip>>;
1200
+ organization: z.ZodObject<{
1201
+ id: z.ZodString;
1202
+ name: z.ZodString;
1203
+ }, z.core.$strip>;
1204
+ project: z.ZodObject<{
1205
+ id: z.ZodString;
1206
+ name: z.ZodString;
1207
+ }, z.core.$strip>;
1208
+ transitionedAt: z.ZodDate;
1209
+ }, z.core.$strip>;
1210
+ };
1211
+ readonly "automate.execution.failed": {
1212
+ readonly configSchema: z.ZodObject<{
1213
+ automationId: z.ZodString;
1214
+ }, z.core.$strip>;
1215
+ readonly eventSchema: z.ZodObject<{
1216
+ automation: z.ZodObject<{
1217
+ description: z.ZodString;
1218
+ id: z.ZodString;
1219
+ identityKey: z.ZodString;
1220
+ }, z.core.$strip>;
1221
+ eventTypes: z.ZodArray<z.ZodString>;
1222
+ organization: z.ZodObject<{
1223
+ id: z.ZodString;
1224
+ name: z.ZodString;
1225
+ }, z.core.$strip>;
1226
+ project: z.ZodObject<{
1227
+ id: z.ZodString;
1228
+ name: z.ZodString;
1229
+ }, z.core.$strip>;
1230
+ transitionedAt: z.ZodDate;
1231
+ execution: z.ZodObject<{
1232
+ createdAt: z.ZodDate;
1233
+ id: z.ZodString;
1234
+ settledAt: z.ZodDate;
1235
+ status: z.ZodLiteral<"failed">;
1236
+ }, z.core.$strip>;
1237
+ failure: z.ZodObject<{
1238
+ code: z.ZodString;
1239
+ details: z.ZodOptional<z.ZodJSONSchema>;
1240
+ message: z.ZodString;
1241
+ name: z.ZodOptional<z.ZodString>;
1242
+ cause: z.ZodOptional<z.ZodObject<{
1243
+ code: z.ZodString;
1244
+ details: z.ZodOptional<z.ZodJSONSchema>;
1245
+ message: z.ZodString;
1246
+ name: z.ZodOptional<z.ZodString>;
1247
+ cause: z.ZodOptional<z.ZodObject<{
1248
+ code: z.ZodString;
1249
+ details: z.ZodOptional<z.ZodJSONSchema>;
1250
+ message: z.ZodString;
1251
+ name: z.ZodOptional<z.ZodString>;
1252
+ cause: z.ZodOptional<z.ZodObject<{
1253
+ code: z.ZodString;
1254
+ details: z.ZodOptional<z.ZodJSONSchema>;
1255
+ message: z.ZodString;
1256
+ name: z.ZodOptional<z.ZodString>;
1257
+ cause: z.ZodOptional<z.ZodNever>;
1258
+ }, z.core.$strip>>;
1259
+ }, z.core.$strip>>;
1260
+ }, z.core.$strip>>;
1261
+ }, z.core.$strip>;
1262
+ }, z.core.$strip>;
1263
+ };
1264
+ readonly "automate.execution.settled": {
1265
+ readonly configSchema: z.ZodObject<{
1266
+ automationId: z.ZodString;
1267
+ }, z.core.$strip>;
1268
+ readonly eventSchema: z.ZodObject<{
1269
+ automation: z.ZodObject<{
1270
+ description: z.ZodString;
1271
+ id: z.ZodString;
1272
+ identityKey: z.ZodString;
1273
+ }, z.core.$strip>;
1274
+ eventTypes: z.ZodArray<z.ZodString>;
1275
+ organization: z.ZodObject<{
1276
+ id: z.ZodString;
1277
+ name: z.ZodString;
1278
+ }, z.core.$strip>;
1279
+ project: z.ZodObject<{
1280
+ id: z.ZodString;
1281
+ name: z.ZodString;
1282
+ }, z.core.$strip>;
1283
+ transitionedAt: z.ZodDate;
1284
+ execution: z.ZodObject<{
1285
+ createdAt: z.ZodDate;
1286
+ id: z.ZodString;
1287
+ settledAt: z.ZodDate;
1288
+ status: z.ZodLiteral<"settled">;
1289
+ }, z.core.$strip>;
1290
+ failure: z.ZodNull;
1291
+ }, z.core.$strip>;
1292
+ };
451
1293
  };