@kici-dev/engine 0.1.22 → 0.1.24

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 (72) hide show
  1. package/dist/approval/types.d.ts +1 -1
  2. package/dist/audit/access-log-policy.d.ts +4 -1
  3. package/dist/audit/access-log-policy.js +11 -1
  4. package/dist/audit/activity.d.ts +3 -1
  5. package/dist/audit/activity.js +8 -16
  6. package/dist/audit/retention-policy.js +6 -0
  7. package/dist/environment/host-match.d.ts +25 -0
  8. package/dist/environment/host-match.js +67 -0
  9. package/dist/environment/index.d.ts +3 -0
  10. package/dist/environment/index.js +3 -1
  11. package/dist/environment/multi-env.d.ts +30 -0
  12. package/dist/environment/multi-env.js +38 -0
  13. package/dist/environment/scope-resolver.d.ts +15 -4
  14. package/dist/environment/scope-resolver.js +55 -15
  15. package/dist/environment/scope-template.d.ts +18 -0
  16. package/dist/environment/scope-template.js +43 -0
  17. package/dist/environment/types.d.ts +15 -2
  18. package/dist/environment/types.js +18 -1
  19. package/dist/fanout/materialize.d.ts +34 -0
  20. package/dist/fanout/materialize.js +72 -45
  21. package/dist/index.d.ts +5 -1
  22. package/dist/index.js +21 -10
  23. package/dist/inputs/build.d.ts +9 -0
  24. package/dist/inputs/build.js +44 -0
  25. package/dist/inputs/coerce.d.ts +25 -0
  26. package/dist/inputs/coerce.js +51 -0
  27. package/dist/inputs/descriptor.d.ts +53 -0
  28. package/dist/inputs/descriptor.js +42 -0
  29. package/dist/inputs/extract.d.ts +15 -0
  30. package/dist/inputs/extract.js +117 -0
  31. package/dist/inputs/index.d.ts +6 -0
  32. package/dist/inputs/index.js +7 -0
  33. package/dist/inputs/schedule.d.ts +19 -0
  34. package/dist/inputs/schedule.js +33 -0
  35. package/dist/labels/compile.d.ts +9 -0
  36. package/dist/labels/compile.js +10 -1
  37. package/dist/labels.d.ts +29 -0
  38. package/dist/labels.js +32 -1
  39. package/dist/mcp/tool-schemas.d.ts +41 -0
  40. package/dist/mcp/tool-schemas.js +49 -0
  41. package/dist/metrics/catalog-policy.d.ts +7 -0
  42. package/dist/metrics/catalog-policy.js +11 -12
  43. package/dist/metrics/metric-catalog.generated.d.ts +22 -2
  44. package/dist/metrics/metric-catalog.generated.js +34 -2
  45. package/dist/protocol/messages/access-log.d.ts +39 -10
  46. package/dist/protocol/messages/access-log.js +7 -2
  47. package/dist/protocol/messages/actor.d.ts +8 -0
  48. package/dist/protocol/messages/actor.js +17 -3
  49. package/dist/protocol/messages/agent-run-result.d.ts +350 -0
  50. package/dist/protocol/messages/agent-run-result.js +123 -0
  51. package/dist/protocol/messages/auth.d.ts +2 -0
  52. package/dist/protocol/messages/auth.js +10 -1
  53. package/dist/protocol/messages/capabilities.d.ts +2 -0
  54. package/dist/protocol/messages/capabilities.js +15 -2
  55. package/dist/protocol/messages/dashboard-global-workflows.d.ts +8 -0
  56. package/dist/protocol/messages/dashboard.d.ts +1513 -39
  57. package/dist/protocol/messages/dashboard.js +210 -15
  58. package/dist/protocol/messages/execution-status.d.ts +52 -1
  59. package/dist/protocol/messages/execution-status.js +115 -54
  60. package/dist/protocol/messages/orchestrator-agent.d.ts +21 -5
  61. package/dist/protocol/messages/orchestrator-agent.js +5 -1
  62. package/dist/protocol/messages/pat-kind.d.ts +16 -0
  63. package/dist/protocol/messages/pat-kind.js +17 -0
  64. package/dist/protocol/messages/peer.d.ts +7 -7
  65. package/dist/protocol/messages/platform-orchestrator.d.ts +424 -8
  66. package/dist/protocol/messages/platform-orchestrator.js +3 -3
  67. package/dist/protocol/messages/run-events.d.ts +5 -1
  68. package/dist/provider/check-run-conclusion.d.ts +1 -1
  69. package/dist/trigger/types.d.ts +75 -7
  70. package/dist/trigger/types.js +19 -2
  71. package/package.json +9 -1
  72. package/sbom.spdx.json +5 -5
@@ -317,6 +317,7 @@ export declare const orchCapabilitiesUpdateSchema: z.ZodObject<{
317
317
  "fleet.host.declare": "fleet.host.declare";
318
318
  "fleet.host.remove": "fleet.host.remove";
319
319
  }> & z.core.$partial, z.ZodBoolean>>;
320
+ supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
320
321
  }, z.core.$loose>;
321
322
  }, z.core.$strip>;
322
323
  export type OrchCapabilitiesUpdate = z.infer<typeof orchCapabilitiesUpdateSchema>;
@@ -413,6 +414,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
413
414
  connectionId: z.ZodString;
414
415
  orgPublicAlias: z.ZodOptional<z.ZodString>;
415
416
  orgId: z.ZodOptional<z.ZodString>;
417
+ provenanceIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
418
  }, z.core.$strip>, z.ZodObject<{
417
419
  type: z.ZodLiteral<"auth.failure">;
418
420
  reason: z.ZodString;
@@ -453,6 +455,37 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
453
455
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
454
456
  type: z.ZodLiteral<"user">;
455
457
  sub: z.ZodString;
458
+ agent: z.ZodOptional<z.ZodObject<{
459
+ patId: z.ZodString;
460
+ label: z.ZodString;
461
+ }, z.core.$strip>>;
462
+ }, z.core.$strip>, z.ZodObject<{
463
+ type: z.ZodLiteral<"api_key">;
464
+ keyId: z.ZodString;
465
+ ownerSub: z.ZodString;
466
+ }, z.core.$strip>, z.ZodObject<{
467
+ type: z.ZodLiteral<"service_account">;
468
+ id: z.ZodString;
469
+ }, z.core.$strip>, z.ZodObject<{
470
+ type: z.ZodLiteral<"platform_operator">;
471
+ sub: z.ZodString;
472
+ reason: z.ZodString;
473
+ sessionId: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ type: z.ZodLiteral<"system">;
476
+ component: z.ZodString;
477
+ }, z.core.$strip>], "type">;
478
+ runId: z.ZodString;
479
+ }, z.core.$strip>, z.ZodObject<{
480
+ type: z.ZodLiteral<"dashboard.run.structured">;
481
+ requestId: z.ZodString;
482
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
483
+ type: z.ZodLiteral<"user">;
484
+ sub: z.ZodString;
485
+ agent: z.ZodOptional<z.ZodObject<{
486
+ patId: z.ZodString;
487
+ label: z.ZodString;
488
+ }, z.core.$strip>>;
456
489
  }, z.core.$strip>, z.ZodObject<{
457
490
  type: z.ZodLiteral<"api_key">;
458
491
  keyId: z.ZodString;
@@ -476,6 +509,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
476
509
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
477
510
  type: z.ZodLiteral<"user">;
478
511
  sub: z.ZodString;
512
+ agent: z.ZodOptional<z.ZodObject<{
513
+ patId: z.ZodString;
514
+ label: z.ZodString;
515
+ }, z.core.$strip>>;
479
516
  }, z.core.$strip>, z.ZodObject<{
480
517
  type: z.ZodLiteral<"api_key">;
481
518
  keyId: z.ZodString;
@@ -501,6 +538,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
501
538
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
502
539
  type: z.ZodLiteral<"user">;
503
540
  sub: z.ZodString;
541
+ agent: z.ZodOptional<z.ZodObject<{
542
+ patId: z.ZodString;
543
+ label: z.ZodString;
544
+ }, z.core.$strip>>;
504
545
  }, z.core.$strip>, z.ZodObject<{
505
546
  type: z.ZodLiteral<"api_key">;
506
547
  keyId: z.ZodString;
@@ -518,12 +559,86 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
518
559
  component: z.ZodString;
519
560
  }, z.core.$strip>], "type">;
520
561
  runId: z.ZodString;
562
+ }, z.core.$strip>, z.ZodObject<{
563
+ type: z.ZodLiteral<"dashboard.attestations.list.all">;
564
+ requestId: z.ZodString;
565
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
566
+ type: z.ZodLiteral<"user">;
567
+ sub: z.ZodString;
568
+ agent: z.ZodOptional<z.ZodObject<{
569
+ patId: z.ZodString;
570
+ label: z.ZodString;
571
+ }, z.core.$strip>>;
572
+ }, z.core.$strip>, z.ZodObject<{
573
+ type: z.ZodLiteral<"api_key">;
574
+ keyId: z.ZodString;
575
+ ownerSub: z.ZodString;
576
+ }, z.core.$strip>, z.ZodObject<{
577
+ type: z.ZodLiteral<"service_account">;
578
+ id: z.ZodString;
579
+ }, z.core.$strip>, z.ZodObject<{
580
+ type: z.ZodLiteral<"platform_operator">;
581
+ sub: z.ZodString;
582
+ reason: z.ZodString;
583
+ sessionId: z.ZodOptional<z.ZodString>;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ type: z.ZodLiteral<"system">;
586
+ component: z.ZodString;
587
+ }, z.core.$strip>], "type">;
588
+ page: z.ZodNumber;
589
+ sort: z.ZodOptional<z.ZodString>;
590
+ filters: z.ZodDefault<z.ZodObject<{
591
+ digest: z.ZodOptional<z.ZodString>;
592
+ name: z.ZodOptional<z.ZodString>;
593
+ status: z.ZodOptional<z.ZodEnum<{
594
+ pending: "pending";
595
+ failed: "failed";
596
+ verified: "verified";
597
+ unverifiable: "unverifiable";
598
+ }>>;
599
+ repository: z.ZodOptional<z.ZodString>;
600
+ workflow: z.ZodOptional<z.ZodString>;
601
+ job: z.ZodOptional<z.ZodString>;
602
+ createdAfter: z.ZodOptional<z.ZodString>;
603
+ createdBefore: z.ZodOptional<z.ZodString>;
604
+ }, z.core.$strip>>;
605
+ }, z.core.$strip>, z.ZodObject<{
606
+ type: z.ZodLiteral<"dashboard.attestation.get">;
607
+ requestId: z.ZodString;
608
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
609
+ type: z.ZodLiteral<"user">;
610
+ sub: z.ZodString;
611
+ agent: z.ZodOptional<z.ZodObject<{
612
+ patId: z.ZodString;
613
+ label: z.ZodString;
614
+ }, z.core.$strip>>;
615
+ }, z.core.$strip>, z.ZodObject<{
616
+ type: z.ZodLiteral<"api_key">;
617
+ keyId: z.ZodString;
618
+ ownerSub: z.ZodString;
619
+ }, z.core.$strip>, z.ZodObject<{
620
+ type: z.ZodLiteral<"service_account">;
621
+ id: z.ZodString;
622
+ }, z.core.$strip>, z.ZodObject<{
623
+ type: z.ZodLiteral<"platform_operator">;
624
+ sub: z.ZodString;
625
+ reason: z.ZodString;
626
+ sessionId: z.ZodOptional<z.ZodString>;
627
+ }, z.core.$strip>, z.ZodObject<{
628
+ type: z.ZodLiteral<"system">;
629
+ component: z.ZodString;
630
+ }, z.core.$strip>], "type">;
631
+ attestationId: z.ZodString;
521
632
  }, z.core.$strip>, z.ZodObject<{
522
633
  type: z.ZodLiteral<"dashboard.runs.list">;
523
634
  requestId: z.ZodString;
524
635
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
525
636
  type: z.ZodLiteral<"user">;
526
637
  sub: z.ZodString;
638
+ agent: z.ZodOptional<z.ZodObject<{
639
+ patId: z.ZodString;
640
+ label: z.ZodString;
641
+ }, z.core.$strip>>;
527
642
  }, z.core.$strip>, z.ZodObject<{
528
643
  type: z.ZodLiteral<"api_key">;
529
644
  keyId: z.ZodString;
@@ -548,6 +663,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
548
663
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
549
664
  type: z.ZodLiteral<"user">;
550
665
  sub: z.ZodString;
666
+ agent: z.ZodOptional<z.ZodObject<{
667
+ patId: z.ZodString;
668
+ label: z.ZodString;
669
+ }, z.core.$strip>>;
551
670
  }, z.core.$strip>, z.ZodObject<{
552
671
  type: z.ZodLiteral<"api_key">;
553
672
  keyId: z.ZodString;
@@ -570,6 +689,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
570
689
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
571
690
  type: z.ZodLiteral<"user">;
572
691
  sub: z.ZodString;
692
+ agent: z.ZodOptional<z.ZodObject<{
693
+ patId: z.ZodString;
694
+ label: z.ZodString;
695
+ }, z.core.$strip>>;
573
696
  }, z.core.$strip>, z.ZodObject<{
574
697
  type: z.ZodLiteral<"api_key">;
575
698
  keyId: z.ZodString;
@@ -594,6 +717,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
594
717
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
595
718
  type: z.ZodLiteral<"user">;
596
719
  sub: z.ZodString;
720
+ agent: z.ZodOptional<z.ZodObject<{
721
+ patId: z.ZodString;
722
+ label: z.ZodString;
723
+ }, z.core.$strip>>;
597
724
  }, z.core.$strip>, z.ZodObject<{
598
725
  type: z.ZodLiteral<"api_key">;
599
726
  keyId: z.ZodString;
@@ -618,6 +745,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
618
745
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
619
746
  type: z.ZodLiteral<"user">;
620
747
  sub: z.ZodString;
748
+ agent: z.ZodOptional<z.ZodObject<{
749
+ patId: z.ZodString;
750
+ label: z.ZodString;
751
+ }, z.core.$strip>>;
621
752
  }, z.core.$strip>, z.ZodObject<{
622
753
  type: z.ZodLiteral<"api_key">;
623
754
  keyId: z.ZodString;
@@ -641,6 +772,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
641
772
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
642
773
  type: z.ZodLiteral<"user">;
643
774
  sub: z.ZodString;
775
+ agent: z.ZodOptional<z.ZodObject<{
776
+ patId: z.ZodString;
777
+ label: z.ZodString;
778
+ }, z.core.$strip>>;
644
779
  }, z.core.$strip>, z.ZodObject<{
645
780
  type: z.ZodLiteral<"api_key">;
646
781
  keyId: z.ZodString;
@@ -665,6 +800,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
665
800
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
666
801
  type: z.ZodLiteral<"user">;
667
802
  sub: z.ZodString;
803
+ agent: z.ZodOptional<z.ZodObject<{
804
+ patId: z.ZodString;
805
+ label: z.ZodString;
806
+ }, z.core.$strip>>;
668
807
  }, z.core.$strip>, z.ZodObject<{
669
808
  type: z.ZodLiteral<"api_key">;
670
809
  keyId: z.ZodString;
@@ -688,6 +827,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
688
827
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
689
828
  type: z.ZodLiteral<"user">;
690
829
  sub: z.ZodString;
830
+ agent: z.ZodOptional<z.ZodObject<{
831
+ patId: z.ZodString;
832
+ label: z.ZodString;
833
+ }, z.core.$strip>>;
691
834
  }, z.core.$strip>, z.ZodObject<{
692
835
  type: z.ZodLiteral<"api_key">;
693
836
  keyId: z.ZodString;
@@ -712,6 +855,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
712
855
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
713
856
  type: z.ZodLiteral<"user">;
714
857
  sub: z.ZodString;
858
+ agent: z.ZodOptional<z.ZodObject<{
859
+ patId: z.ZodString;
860
+ label: z.ZodString;
861
+ }, z.core.$strip>>;
715
862
  }, z.core.$strip>, z.ZodObject<{
716
863
  type: z.ZodLiteral<"api_key">;
717
864
  keyId: z.ZodString;
@@ -736,6 +883,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
736
883
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
737
884
  type: z.ZodLiteral<"user">;
738
885
  sub: z.ZodString;
886
+ agent: z.ZodOptional<z.ZodObject<{
887
+ patId: z.ZodString;
888
+ label: z.ZodString;
889
+ }, z.core.$strip>>;
739
890
  }, z.core.$strip>, z.ZodObject<{
740
891
  type: z.ZodLiteral<"api_key">;
741
892
  keyId: z.ZodString;
@@ -759,6 +910,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
759
910
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
760
911
  type: z.ZodLiteral<"user">;
761
912
  sub: z.ZodString;
913
+ agent: z.ZodOptional<z.ZodObject<{
914
+ patId: z.ZodString;
915
+ label: z.ZodString;
916
+ }, z.core.$strip>>;
762
917
  }, z.core.$strip>, z.ZodObject<{
763
918
  type: z.ZodLiteral<"api_key">;
764
919
  keyId: z.ZodString;
@@ -777,8 +932,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
777
932
  }, z.core.$strip>], "type">;
778
933
  name: z.ZodString;
779
934
  envType: z.ZodEnum<{
780
- glob: "glob";
781
935
  fixed: "fixed";
936
+ glob: "glob";
782
937
  }>;
783
938
  globPattern: z.ZodOptional<z.ZodString>;
784
939
  branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -797,6 +952,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
797
952
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
798
953
  type: z.ZodLiteral<"user">;
799
954
  sub: z.ZodString;
955
+ agent: z.ZodOptional<z.ZodObject<{
956
+ patId: z.ZodString;
957
+ label: z.ZodString;
958
+ }, z.core.$strip>>;
800
959
  }, z.core.$strip>, z.ZodObject<{
801
960
  type: z.ZodLiteral<"api_key">;
802
961
  keyId: z.ZodString;
@@ -817,8 +976,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
817
976
  updates: z.ZodObject<{
818
977
  name: z.ZodOptional<z.ZodString>;
819
978
  envType: z.ZodOptional<z.ZodEnum<{
820
- glob: "glob";
821
979
  fixed: "fixed";
980
+ glob: "glob";
822
981
  }>>;
823
982
  globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
824
983
  branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -838,6 +997,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
838
997
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
839
998
  type: z.ZodLiteral<"user">;
840
999
  sub: z.ZodString;
1000
+ agent: z.ZodOptional<z.ZodObject<{
1001
+ patId: z.ZodString;
1002
+ label: z.ZodString;
1003
+ }, z.core.$strip>>;
841
1004
  }, z.core.$strip>, z.ZodObject<{
842
1005
  type: z.ZodLiteral<"api_key">;
843
1006
  keyId: z.ZodString;
@@ -862,6 +1025,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
862
1025
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
863
1026
  type: z.ZodLiteral<"user">;
864
1027
  sub: z.ZodString;
1028
+ agent: z.ZodOptional<z.ZodObject<{
1029
+ patId: z.ZodString;
1030
+ label: z.ZodString;
1031
+ }, z.core.$strip>>;
865
1032
  }, z.core.$strip>, z.ZodObject<{
866
1033
  type: z.ZodLiteral<"api_key">;
867
1034
  keyId: z.ZodString;
@@ -885,6 +1052,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
885
1052
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
886
1053
  type: z.ZodLiteral<"user">;
887
1054
  sub: z.ZodString;
1055
+ agent: z.ZodOptional<z.ZodObject<{
1056
+ patId: z.ZodString;
1057
+ label: z.ZodString;
1058
+ }, z.core.$strip>>;
888
1059
  }, z.core.$strip>, z.ZodObject<{
889
1060
  type: z.ZodLiteral<"api_key">;
890
1061
  keyId: z.ZodString;
@@ -908,6 +1079,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
908
1079
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
909
1080
  type: z.ZodLiteral<"user">;
910
1081
  sub: z.ZodString;
1082
+ agent: z.ZodOptional<z.ZodObject<{
1083
+ patId: z.ZodString;
1084
+ label: z.ZodString;
1085
+ }, z.core.$strip>>;
911
1086
  }, z.core.$strip>, z.ZodObject<{
912
1087
  type: z.ZodLiteral<"api_key">;
913
1088
  keyId: z.ZodString;
@@ -934,6 +1109,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
934
1109
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
935
1110
  type: z.ZodLiteral<"user">;
936
1111
  sub: z.ZodString;
1112
+ agent: z.ZodOptional<z.ZodObject<{
1113
+ patId: z.ZodString;
1114
+ label: z.ZodString;
1115
+ }, z.core.$strip>>;
937
1116
  }, z.core.$strip>, z.ZodObject<{
938
1117
  type: z.ZodLiteral<"api_key">;
939
1118
  keyId: z.ZodString;
@@ -958,6 +1137,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
958
1137
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
959
1138
  type: z.ZodLiteral<"user">;
960
1139
  sub: z.ZodString;
1140
+ agent: z.ZodOptional<z.ZodObject<{
1141
+ patId: z.ZodString;
1142
+ label: z.ZodString;
1143
+ }, z.core.$strip>>;
961
1144
  }, z.core.$strip>, z.ZodObject<{
962
1145
  type: z.ZodLiteral<"api_key">;
963
1146
  keyId: z.ZodString;
@@ -982,6 +1165,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
982
1165
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
983
1166
  type: z.ZodLiteral<"user">;
984
1167
  sub: z.ZodString;
1168
+ agent: z.ZodOptional<z.ZodObject<{
1169
+ patId: z.ZodString;
1170
+ label: z.ZodString;
1171
+ }, z.core.$strip>>;
985
1172
  }, z.core.$strip>, z.ZodObject<{
986
1173
  type: z.ZodLiteral<"api_key">;
987
1174
  keyId: z.ZodString;
@@ -1008,6 +1195,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1008
1195
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1009
1196
  type: z.ZodLiteral<"user">;
1010
1197
  sub: z.ZodString;
1198
+ agent: z.ZodOptional<z.ZodObject<{
1199
+ patId: z.ZodString;
1200
+ label: z.ZodString;
1201
+ }, z.core.$strip>>;
1011
1202
  }, z.core.$strip>, z.ZodObject<{
1012
1203
  type: z.ZodLiteral<"api_key">;
1013
1204
  keyId: z.ZodString;
@@ -1033,6 +1224,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1033
1224
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
1225
  type: z.ZodLiteral<"user">;
1035
1226
  sub: z.ZodString;
1227
+ agent: z.ZodOptional<z.ZodObject<{
1228
+ patId: z.ZodString;
1229
+ label: z.ZodString;
1230
+ }, z.core.$strip>>;
1036
1231
  }, z.core.$strip>, z.ZodObject<{
1037
1232
  type: z.ZodLiteral<"api_key">;
1038
1233
  keyId: z.ZodString;
@@ -1056,6 +1251,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1056
1251
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1057
1252
  type: z.ZodLiteral<"user">;
1058
1253
  sub: z.ZodString;
1254
+ agent: z.ZodOptional<z.ZodObject<{
1255
+ patId: z.ZodString;
1256
+ label: z.ZodString;
1257
+ }, z.core.$strip>>;
1059
1258
  }, z.core.$strip>, z.ZodObject<{
1060
1259
  type: z.ZodLiteral<"api_key">;
1061
1260
  keyId: z.ZodString;
@@ -1073,13 +1272,20 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1073
1272
  component: z.ZodString;
1074
1273
  }, z.core.$strip>], "type">;
1075
1274
  environmentId: z.ZodString;
1076
- scopePatterns: z.ZodArray<z.ZodString>;
1275
+ bindings: z.ZodArray<z.ZodObject<{
1276
+ scopePattern: z.ZodString;
1277
+ hostPattern: z.ZodString;
1278
+ }, z.core.$strip>>;
1077
1279
  }, z.core.$strip>, z.ZodObject<{
1078
1280
  type: z.ZodLiteral<"dashboard.environments.secrets.list">;
1079
1281
  requestId: z.ZodString;
1080
1282
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1081
1283
  type: z.ZodLiteral<"user">;
1082
1284
  sub: z.ZodString;
1285
+ agent: z.ZodOptional<z.ZodObject<{
1286
+ patId: z.ZodString;
1287
+ label: z.ZodString;
1288
+ }, z.core.$strip>>;
1083
1289
  }, z.core.$strip>, z.ZodObject<{
1084
1290
  type: z.ZodLiteral<"api_key">;
1085
1291
  keyId: z.ZodString;
@@ -1102,6 +1308,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1102
1308
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1103
1309
  type: z.ZodLiteral<"user">;
1104
1310
  sub: z.ZodString;
1311
+ agent: z.ZodOptional<z.ZodObject<{
1312
+ patId: z.ZodString;
1313
+ label: z.ZodString;
1314
+ }, z.core.$strip>>;
1105
1315
  }, z.core.$strip>, z.ZodObject<{
1106
1316
  type: z.ZodLiteral<"api_key">;
1107
1317
  keyId: z.ZodString;
@@ -1127,6 +1337,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1127
1337
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1128
1338
  type: z.ZodLiteral<"user">;
1129
1339
  sub: z.ZodString;
1340
+ agent: z.ZodOptional<z.ZodObject<{
1341
+ patId: z.ZodString;
1342
+ label: z.ZodString;
1343
+ }, z.core.$strip>>;
1130
1344
  }, z.core.$strip>, z.ZodObject<{
1131
1345
  type: z.ZodLiteral<"api_key">;
1132
1346
  keyId: z.ZodString;
@@ -1151,6 +1365,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1151
1365
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1152
1366
  type: z.ZodLiteral<"user">;
1153
1367
  sub: z.ZodString;
1368
+ agent: z.ZodOptional<z.ZodObject<{
1369
+ patId: z.ZodString;
1370
+ label: z.ZodString;
1371
+ }, z.core.$strip>>;
1154
1372
  }, z.core.$strip>, z.ZodObject<{
1155
1373
  type: z.ZodLiteral<"api_key">;
1156
1374
  keyId: z.ZodString;
@@ -1174,6 +1392,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1174
1392
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1175
1393
  type: z.ZodLiteral<"user">;
1176
1394
  sub: z.ZodString;
1395
+ agent: z.ZodOptional<z.ZodObject<{
1396
+ patId: z.ZodString;
1397
+ label: z.ZodString;
1398
+ }, z.core.$strip>>;
1177
1399
  }, z.core.$strip>, z.ZodObject<{
1178
1400
  type: z.ZodLiteral<"api_key">;
1179
1401
  keyId: z.ZodString;
@@ -1198,6 +1420,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1198
1420
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1199
1421
  type: z.ZodLiteral<"user">;
1200
1422
  sub: z.ZodString;
1423
+ agent: z.ZodOptional<z.ZodObject<{
1424
+ patId: z.ZodString;
1425
+ label: z.ZodString;
1426
+ }, z.core.$strip>>;
1201
1427
  }, z.core.$strip>, z.ZodObject<{
1202
1428
  type: z.ZodLiteral<"api_key">;
1203
1429
  keyId: z.ZodString;
@@ -1221,6 +1447,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1221
1447
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1222
1448
  type: z.ZodLiteral<"user">;
1223
1449
  sub: z.ZodString;
1450
+ agent: z.ZodOptional<z.ZodObject<{
1451
+ patId: z.ZodString;
1452
+ label: z.ZodString;
1453
+ }, z.core.$strip>>;
1224
1454
  }, z.core.$strip>, z.ZodObject<{
1225
1455
  type: z.ZodLiteral<"api_key">;
1226
1456
  keyId: z.ZodString;
@@ -1246,6 +1476,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1246
1476
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1247
1477
  type: z.ZodLiteral<"user">;
1248
1478
  sub: z.ZodString;
1479
+ agent: z.ZodOptional<z.ZodObject<{
1480
+ patId: z.ZodString;
1481
+ label: z.ZodString;
1482
+ }, z.core.$strip>>;
1249
1483
  }, z.core.$strip>, z.ZodObject<{
1250
1484
  type: z.ZodLiteral<"api_key">;
1251
1485
  keyId: z.ZodString;
@@ -1264,8 +1498,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1264
1498
  }, z.core.$strip>], "type">;
1265
1499
  status: z.ZodOptional<z.ZodEnum<{
1266
1500
  pending: "pending";
1267
- rejected: "rejected";
1268
1501
  approved: "approved";
1502
+ rejected: "rejected";
1269
1503
  expired: "expired";
1270
1504
  }>>;
1271
1505
  queueType: z.ZodOptional<z.ZodEnum<{
@@ -1279,6 +1513,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1279
1513
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1280
1514
  type: z.ZodLiteral<"user">;
1281
1515
  sub: z.ZodString;
1516
+ agent: z.ZodOptional<z.ZodObject<{
1517
+ patId: z.ZodString;
1518
+ label: z.ZodString;
1519
+ }, z.core.$strip>>;
1282
1520
  }, z.core.$strip>, z.ZodObject<{
1283
1521
  type: z.ZodLiteral<"api_key">;
1284
1522
  keyId: z.ZodString;
@@ -1303,6 +1541,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1303
1541
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1304
1542
  type: z.ZodLiteral<"user">;
1305
1543
  sub: z.ZodString;
1544
+ agent: z.ZodOptional<z.ZodObject<{
1545
+ patId: z.ZodString;
1546
+ label: z.ZodString;
1547
+ }, z.core.$strip>>;
1306
1548
  }, z.core.$strip>, z.ZodObject<{
1307
1549
  type: z.ZodLiteral<"api_key">;
1308
1550
  keyId: z.ZodString;
@@ -1327,6 +1569,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1327
1569
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1328
1570
  type: z.ZodLiteral<"user">;
1329
1571
  sub: z.ZodString;
1572
+ agent: z.ZodOptional<z.ZodObject<{
1573
+ patId: z.ZodString;
1574
+ label: z.ZodString;
1575
+ }, z.core.$strip>>;
1330
1576
  }, z.core.$strip>, z.ZodObject<{
1331
1577
  type: z.ZodLiteral<"api_key">;
1332
1578
  keyId: z.ZodString;
@@ -1351,6 +1597,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1351
1597
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1352
1598
  type: z.ZodLiteral<"user">;
1353
1599
  sub: z.ZodString;
1600
+ agent: z.ZodOptional<z.ZodObject<{
1601
+ patId: z.ZodString;
1602
+ label: z.ZodString;
1603
+ }, z.core.$strip>>;
1354
1604
  }, z.core.$strip>, z.ZodObject<{
1355
1605
  type: z.ZodLiteral<"api_key">;
1356
1606
  keyId: z.ZodString;
@@ -1375,6 +1625,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1375
1625
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1376
1626
  type: z.ZodLiteral<"user">;
1377
1627
  sub: z.ZodString;
1628
+ agent: z.ZodOptional<z.ZodObject<{
1629
+ patId: z.ZodString;
1630
+ label: z.ZodString;
1631
+ }, z.core.$strip>>;
1378
1632
  }, z.core.$strip>, z.ZodObject<{
1379
1633
  type: z.ZodLiteral<"api_key">;
1380
1634
  keyId: z.ZodString;
@@ -1399,6 +1653,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1399
1653
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1400
1654
  type: z.ZodLiteral<"user">;
1401
1655
  sub: z.ZodString;
1656
+ agent: z.ZodOptional<z.ZodObject<{
1657
+ patId: z.ZodString;
1658
+ label: z.ZodString;
1659
+ }, z.core.$strip>>;
1402
1660
  }, z.core.$strip>, z.ZodObject<{
1403
1661
  type: z.ZodLiteral<"api_key">;
1404
1662
  keyId: z.ZodString;
@@ -1422,6 +1680,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1422
1680
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1423
1681
  type: z.ZodLiteral<"user">;
1424
1682
  sub: z.ZodString;
1683
+ agent: z.ZodOptional<z.ZodObject<{
1684
+ patId: z.ZodString;
1685
+ label: z.ZodString;
1686
+ }, z.core.$strip>>;
1425
1687
  }, z.core.$strip>, z.ZodObject<{
1426
1688
  type: z.ZodLiteral<"api_key">;
1427
1689
  keyId: z.ZodString;
@@ -1444,6 +1706,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1444
1706
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1445
1707
  type: z.ZodLiteral<"user">;
1446
1708
  sub: z.ZodString;
1709
+ agent: z.ZodOptional<z.ZodObject<{
1710
+ patId: z.ZodString;
1711
+ label: z.ZodString;
1712
+ }, z.core.$strip>>;
1447
1713
  }, z.core.$strip>, z.ZodObject<{
1448
1714
  type: z.ZodLiteral<"api_key">;
1449
1715
  keyId: z.ZodString;
@@ -1467,6 +1733,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1467
1733
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1468
1734
  type: z.ZodLiteral<"user">;
1469
1735
  sub: z.ZodString;
1736
+ agent: z.ZodOptional<z.ZodObject<{
1737
+ patId: z.ZodString;
1738
+ label: z.ZodString;
1739
+ }, z.core.$strip>>;
1470
1740
  }, z.core.$strip>, z.ZodObject<{
1471
1741
  type: z.ZodLiteral<"api_key">;
1472
1742
  keyId: z.ZodString;
@@ -1484,12 +1754,43 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1484
1754
  component: z.ZodString;
1485
1755
  }, z.core.$strip>], "type">;
1486
1756
  workflowName: z.ZodString;
1757
+ }, z.core.$strip>, z.ZodObject<{
1758
+ type: z.ZodLiteral<"dashboard.fleet.workflows-for-host">;
1759
+ requestId: z.ZodString;
1760
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1761
+ type: z.ZodLiteral<"user">;
1762
+ sub: z.ZodString;
1763
+ agent: z.ZodOptional<z.ZodObject<{
1764
+ patId: z.ZodString;
1765
+ label: z.ZodString;
1766
+ }, z.core.$strip>>;
1767
+ }, z.core.$strip>, z.ZodObject<{
1768
+ type: z.ZodLiteral<"api_key">;
1769
+ keyId: z.ZodString;
1770
+ ownerSub: z.ZodString;
1771
+ }, z.core.$strip>, z.ZodObject<{
1772
+ type: z.ZodLiteral<"service_account">;
1773
+ id: z.ZodString;
1774
+ }, z.core.$strip>, z.ZodObject<{
1775
+ type: z.ZodLiteral<"platform_operator">;
1776
+ sub: z.ZodString;
1777
+ reason: z.ZodString;
1778
+ sessionId: z.ZodOptional<z.ZodString>;
1779
+ }, z.core.$strip>, z.ZodObject<{
1780
+ type: z.ZodLiteral<"system">;
1781
+ component: z.ZodString;
1782
+ }, z.core.$strip>], "type">;
1783
+ agentId: z.ZodString;
1487
1784
  }, z.core.$strip>, z.ZodObject<{
1488
1785
  type: z.ZodLiteral<"dashboard.fleet.host.declare">;
1489
1786
  requestId: z.ZodString;
1490
1787
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1491
1788
  type: z.ZodLiteral<"user">;
1492
1789
  sub: z.ZodString;
1790
+ agent: z.ZodOptional<z.ZodObject<{
1791
+ patId: z.ZodString;
1792
+ label: z.ZodString;
1793
+ }, z.core.$strip>>;
1493
1794
  }, z.core.$strip>, z.ZodObject<{
1494
1795
  type: z.ZodLiteral<"api_key">;
1495
1796
  keyId: z.ZodString;
@@ -1507,7 +1808,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1507
1808
  component: z.ZodString;
1508
1809
  }, z.core.$strip>], "type">;
1509
1810
  agentId: z.ZodString;
1510
- labels: z.ZodArray<z.ZodString>;
1811
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
1511
1812
  hostname: z.ZodOptional<z.ZodString>;
1512
1813
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1513
1814
  }, z.core.$strip>, z.ZodObject<{
@@ -1516,6 +1817,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1516
1817
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1517
1818
  type: z.ZodLiteral<"user">;
1518
1819
  sub: z.ZodString;
1820
+ agent: z.ZodOptional<z.ZodObject<{
1821
+ patId: z.ZodString;
1822
+ label: z.ZodString;
1823
+ }, z.core.$strip>>;
1519
1824
  }, z.core.$strip>, z.ZodObject<{
1520
1825
  type: z.ZodLiteral<"api_key">;
1521
1826
  keyId: z.ZodString;
@@ -1539,6 +1844,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1539
1844
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1540
1845
  type: z.ZodLiteral<"user">;
1541
1846
  sub: z.ZodString;
1847
+ agent: z.ZodOptional<z.ZodObject<{
1848
+ patId: z.ZodString;
1849
+ label: z.ZodString;
1850
+ }, z.core.$strip>>;
1542
1851
  }, z.core.$strip>, z.ZodObject<{
1543
1852
  type: z.ZodLiteral<"api_key">;
1544
1853
  keyId: z.ZodString;
@@ -1561,6 +1870,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1561
1870
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1562
1871
  type: z.ZodLiteral<"user">;
1563
1872
  sub: z.ZodString;
1873
+ agent: z.ZodOptional<z.ZodObject<{
1874
+ patId: z.ZodString;
1875
+ label: z.ZodString;
1876
+ }, z.core.$strip>>;
1564
1877
  }, z.core.$strip>, z.ZodObject<{
1565
1878
  type: z.ZodLiteral<"api_key">;
1566
1879
  keyId: z.ZodString;
@@ -1584,6 +1897,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1584
1897
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1585
1898
  type: z.ZodLiteral<"user">;
1586
1899
  sub: z.ZodString;
1900
+ agent: z.ZodOptional<z.ZodObject<{
1901
+ patId: z.ZodString;
1902
+ label: z.ZodString;
1903
+ }, z.core.$strip>>;
1587
1904
  }, z.core.$strip>, z.ZodObject<{
1588
1905
  type: z.ZodLiteral<"api_key">;
1589
1906
  keyId: z.ZodString;
@@ -1606,6 +1923,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1606
1923
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1607
1924
  type: z.ZodLiteral<"user">;
1608
1925
  sub: z.ZodString;
1926
+ agent: z.ZodOptional<z.ZodObject<{
1927
+ patId: z.ZodString;
1928
+ label: z.ZodString;
1929
+ }, z.core.$strip>>;
1609
1930
  }, z.core.$strip>, z.ZodObject<{
1610
1931
  type: z.ZodLiteral<"api_key">;
1611
1932
  keyId: z.ZodString;
@@ -1629,6 +1950,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1629
1950
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1630
1951
  type: z.ZodLiteral<"user">;
1631
1952
  sub: z.ZodString;
1953
+ agent: z.ZodOptional<z.ZodObject<{
1954
+ patId: z.ZodString;
1955
+ label: z.ZodString;
1956
+ }, z.core.$strip>>;
1632
1957
  }, z.core.$strip>, z.ZodObject<{
1633
1958
  type: z.ZodLiteral<"api_key">;
1634
1959
  keyId: z.ZodString;
@@ -1651,6 +1976,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1651
1976
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1652
1977
  type: z.ZodLiteral<"user">;
1653
1978
  sub: z.ZodString;
1979
+ agent: z.ZodOptional<z.ZodObject<{
1980
+ patId: z.ZodString;
1981
+ label: z.ZodString;
1982
+ }, z.core.$strip>>;
1654
1983
  }, z.core.$strip>, z.ZodObject<{
1655
1984
  type: z.ZodLiteral<"api_key">;
1656
1985
  keyId: z.ZodString;
@@ -1674,6 +2003,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1674
2003
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1675
2004
  type: z.ZodLiteral<"user">;
1676
2005
  sub: z.ZodString;
2006
+ agent: z.ZodOptional<z.ZodObject<{
2007
+ patId: z.ZodString;
2008
+ label: z.ZodString;
2009
+ }, z.core.$strip>>;
1677
2010
  }, z.core.$strip>, z.ZodObject<{
1678
2011
  type: z.ZodLiteral<"api_key">;
1679
2012
  keyId: z.ZodString;
@@ -1697,6 +2030,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1697
2030
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1698
2031
  type: z.ZodLiteral<"user">;
1699
2032
  sub: z.ZodString;
2033
+ agent: z.ZodOptional<z.ZodObject<{
2034
+ patId: z.ZodString;
2035
+ label: z.ZodString;
2036
+ }, z.core.$strip>>;
1700
2037
  }, z.core.$strip>, z.ZodObject<{
1701
2038
  type: z.ZodLiteral<"api_key">;
1702
2039
  keyId: z.ZodString;
@@ -1735,6 +2072,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1735
2072
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1736
2073
  type: z.ZodLiteral<"user">;
1737
2074
  sub: z.ZodString;
2075
+ agent: z.ZodOptional<z.ZodObject<{
2076
+ patId: z.ZodString;
2077
+ label: z.ZodString;
2078
+ }, z.core.$strip>>;
1738
2079
  }, z.core.$strip>, z.ZodObject<{
1739
2080
  type: z.ZodLiteral<"api_key">;
1740
2081
  keyId: z.ZodString;
@@ -1760,6 +2101,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1760
2101
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1761
2102
  type: z.ZodLiteral<"user">;
1762
2103
  sub: z.ZodString;
2104
+ agent: z.ZodOptional<z.ZodObject<{
2105
+ patId: z.ZodString;
2106
+ label: z.ZodString;
2107
+ }, z.core.$strip>>;
1763
2108
  }, z.core.$strip>, z.ZodObject<{
1764
2109
  type: z.ZodLiteral<"api_key">;
1765
2110
  keyId: z.ZodString;
@@ -1785,6 +2130,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1785
2130
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1786
2131
  type: z.ZodLiteral<"user">;
1787
2132
  sub: z.ZodString;
2133
+ agent: z.ZodOptional<z.ZodObject<{
2134
+ patId: z.ZodString;
2135
+ label: z.ZodString;
2136
+ }, z.core.$strip>>;
1788
2137
  }, z.core.$strip>, z.ZodObject<{
1789
2138
  type: z.ZodLiteral<"api_key">;
1790
2139
  keyId: z.ZodString;
@@ -1810,6 +2159,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1810
2159
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1811
2160
  type: z.ZodLiteral<"user">;
1812
2161
  sub: z.ZodString;
2162
+ agent: z.ZodOptional<z.ZodObject<{
2163
+ patId: z.ZodString;
2164
+ label: z.ZodString;
2165
+ }, z.core.$strip>>;
1813
2166
  }, z.core.$strip>, z.ZodObject<{
1814
2167
  type: z.ZodLiteral<"api_key">;
1815
2168
  keyId: z.ZodString;
@@ -1833,6 +2186,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1833
2186
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1834
2187
  type: z.ZodLiteral<"user">;
1835
2188
  sub: z.ZodString;
2189
+ agent: z.ZodOptional<z.ZodObject<{
2190
+ patId: z.ZodString;
2191
+ label: z.ZodString;
2192
+ }, z.core.$strip>>;
1836
2193
  }, z.core.$strip>, z.ZodObject<{
1837
2194
  type: z.ZodLiteral<"api_key">;
1838
2195
  keyId: z.ZodString;
@@ -1857,6 +2214,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1857
2214
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1858
2215
  type: z.ZodLiteral<"user">;
1859
2216
  sub: z.ZodString;
2217
+ agent: z.ZodOptional<z.ZodObject<{
2218
+ patId: z.ZodString;
2219
+ label: z.ZodString;
2220
+ }, z.core.$strip>>;
1860
2221
  }, z.core.$strip>, z.ZodObject<{
1861
2222
  type: z.ZodLiteral<"api_key">;
1862
2223
  keyId: z.ZodString;
@@ -1881,6 +2242,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1881
2242
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1882
2243
  type: z.ZodLiteral<"user">;
1883
2244
  sub: z.ZodString;
2245
+ agent: z.ZodOptional<z.ZodObject<{
2246
+ patId: z.ZodString;
2247
+ label: z.ZodString;
2248
+ }, z.core.$strip>>;
1884
2249
  }, z.core.$strip>, z.ZodObject<{
1885
2250
  type: z.ZodLiteral<"api_key">;
1886
2251
  keyId: z.ZodString;
@@ -1903,6 +2268,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1903
2268
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1904
2269
  type: z.ZodLiteral<"user">;
1905
2270
  sub: z.ZodString;
2271
+ agent: z.ZodOptional<z.ZodObject<{
2272
+ patId: z.ZodString;
2273
+ label: z.ZodString;
2274
+ }, z.core.$strip>>;
1906
2275
  }, z.core.$strip>, z.ZodObject<{
1907
2276
  type: z.ZodLiteral<"api_key">;
1908
2277
  keyId: z.ZodString;
@@ -1938,6 +2307,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1938
2307
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1939
2308
  type: z.ZodLiteral<"user">;
1940
2309
  sub: z.ZodString;
2310
+ agent: z.ZodOptional<z.ZodObject<{
2311
+ patId: z.ZodString;
2312
+ label: z.ZodString;
2313
+ }, z.core.$strip>>;
1941
2314
  }, z.core.$strip>, z.ZodObject<{
1942
2315
  type: z.ZodLiteral<"api_key">;
1943
2316
  keyId: z.ZodString;
@@ -1972,6 +2345,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1972
2345
  "fleet.host.declare": "fleet.host.declare";
1973
2346
  "fleet.host.remove": "fleet.host.remove";
1974
2347
  "run.detail.read": "run.detail.read";
2348
+ "run.structured.read": "run.structured.read";
1975
2349
  "runs.list.read": "runs.list.read";
1976
2350
  "runs.filters.read": "runs.filters.read";
1977
2351
  "sources.list.read": "sources.list.read";
@@ -2019,6 +2393,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2019
2393
  "scaler.capacity.read": "scaler.capacity.read";
2020
2394
  "scaler.agents.read": "scaler.agents.read";
2021
2395
  "fleet.read": "fleet.read";
2396
+ "fleet.init_runner.bringup": "fleet.init_runner.bringup";
2397
+ "fleet.pre_boot.send": "fleet.pre_boot.send";
2022
2398
  "backend.list.read": "backend.list.read";
2023
2399
  "backend.get.read": "backend.get.read";
2024
2400
  "backend.sync": "backend.sync";
@@ -2033,6 +2409,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2033
2409
  purge_chunk: "purge_chunk";
2034
2410
  }>>;
2035
2411
  source: z.ZodOptional<z.ZodEnum<{
2412
+ agent: "agent";
2036
2413
  platform_proxy: "platform_proxy";
2037
2414
  admin_http: "admin_http";
2038
2415
  admin_cli: "admin_cli";
@@ -2045,12 +2422,12 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2045
2422
  targetType: z.ZodOptional<z.ZodEnum<{
2046
2423
  run: "run";
2047
2424
  job: "job";
2048
- payload: "payload";
2049
2425
  step: "step";
2426
+ environment: "environment";
2427
+ payload: "payload";
2050
2428
  event_log: "event_log";
2051
2429
  event_log_payload: "event_log_payload";
2052
2430
  secret_scope: "secret_scope";
2053
- environment: "environment";
2054
2431
  registration: "registration";
2055
2432
  backend: "backend";
2056
2433
  diagnostics: "diagnostics";
@@ -2061,6 +2438,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2061
2438
  event_dlq: "event_dlq";
2062
2439
  org_settings: "org_settings";
2063
2440
  cluster_meta: "cluster_meta";
2441
+ attestation: "attestation";
2064
2442
  }>>;
2065
2443
  targetId: z.ZodOptional<z.ZodString>;
2066
2444
  fromTimestamp: z.ZodOptional<z.ZodString>;
@@ -2074,6 +2452,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2074
2452
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2075
2453
  type: z.ZodLiteral<"user">;
2076
2454
  sub: z.ZodString;
2455
+ agent: z.ZodOptional<z.ZodObject<{
2456
+ patId: z.ZodString;
2457
+ label: z.ZodString;
2458
+ }, z.core.$strip>>;
2077
2459
  }, z.core.$strip>, z.ZodObject<{
2078
2460
  type: z.ZodLiteral<"api_key">;
2079
2461
  keyId: z.ZodString;
@@ -2100,6 +2482,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2100
2482
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2101
2483
  type: z.ZodLiteral<"user">;
2102
2484
  sub: z.ZodString;
2485
+ agent: z.ZodOptional<z.ZodObject<{
2486
+ patId: z.ZodString;
2487
+ label: z.ZodString;
2488
+ }, z.core.$strip>>;
2103
2489
  }, z.core.$strip>, z.ZodObject<{
2104
2490
  type: z.ZodLiteral<"api_key">;
2105
2491
  keyId: z.ZodString;
@@ -2157,6 +2543,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2157
2543
  }, z.core.$strip>>;
2158
2544
  allowEmpty: z.ZodBoolean;
2159
2545
  }, z.core.$strip>>;
2546
+ dispatchInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2160
2547
  secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2161
2548
  encryptedSecrets: z.ZodOptional<z.ZodString>;
2162
2549
  encryptedSecretsKey: z.ZodOptional<z.ZodString>;
@@ -2166,6 +2553,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2166
2553
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2167
2554
  type: z.ZodLiteral<"user">;
2168
2555
  sub: z.ZodString;
2556
+ agent: z.ZodOptional<z.ZodObject<{
2557
+ patId: z.ZodString;
2558
+ label: z.ZodString;
2559
+ }, z.core.$strip>>;
2169
2560
  }, z.core.$strip>, z.ZodObject<{
2170
2561
  type: z.ZodLiteral<"api_key">;
2171
2562
  keyId: z.ZodString;
@@ -2189,6 +2580,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2189
2580
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2190
2581
  type: z.ZodLiteral<"user">;
2191
2582
  sub: z.ZodString;
2583
+ agent: z.ZodOptional<z.ZodObject<{
2584
+ patId: z.ZodString;
2585
+ label: z.ZodString;
2586
+ }, z.core.$strip>>;
2192
2587
  }, z.core.$strip>, z.ZodObject<{
2193
2588
  type: z.ZodLiteral<"api_key">;
2194
2589
  keyId: z.ZodString;
@@ -2213,6 +2608,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2213
2608
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2214
2609
  type: z.ZodLiteral<"user">;
2215
2610
  sub: z.ZodString;
2611
+ agent: z.ZodOptional<z.ZodObject<{
2612
+ patId: z.ZodString;
2613
+ label: z.ZodString;
2614
+ }, z.core.$strip>>;
2216
2615
  }, z.core.$strip>, z.ZodObject<{
2217
2616
  type: z.ZodLiteral<"api_key">;
2218
2617
  keyId: z.ZodString;
@@ -2285,6 +2684,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2285
2684
  held: "held";
2286
2685
  }>;
2287
2686
  repoIdentifier: z.ZodOptional<z.ZodString>;
2687
+ repoProvider: z.ZodOptional<z.ZodString>;
2688
+ localWorkingTree: z.ZodOptional<z.ZodBoolean>;
2288
2689
  sha: z.ZodOptional<z.ZodString>;
2289
2690
  ref: z.ZodOptional<z.ZodString>;
2290
2691
  triggerEvent: z.ZodOptional<z.ZodString>;
@@ -2297,6 +2698,9 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2297
2698
  parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2298
2699
  originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2299
2700
  triggeredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2701
+ triggerActorProvider: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2702
+ triggerActorUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2703
+ triggerActorUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2300
2704
  failureReason: z.ZodOptional<z.ZodString>;
2301
2705
  logBytes: z.ZodOptional<z.ZodNumber>;
2302
2706
  initFailure: z.ZodOptional<z.ZodObject<{
@@ -2328,12 +2732,20 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2328
2732
  state: z.ZodEnum<{
2329
2733
  skipped: "skipped";
2330
2734
  success: "success";
2735
+ pending: "pending";
2331
2736
  running: "running";
2332
2737
  failed: "failed";
2738
+ cancelled: "cancelled";
2333
2739
  }>;
2334
2740
  timestamp: z.ZodNumber;
2335
2741
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2336
2742
  secretsAccessed: z.ZodOptional<z.ZodArray<z.ZodString>>;
2743
+ concurrencyKind: z.ZodOptional<z.ZodEnum<{
2744
+ sequential: "sequential";
2745
+ "parallel-child": "parallel-child";
2746
+ "parallel-group": "parallel-group";
2747
+ }>>;
2748
+ groupId: z.ZodOptional<z.ZodString>;
2337
2749
  }, z.core.$strip>, z.ZodObject<{
2338
2750
  type: z.ZodLiteral<"job.status.forward">;
2339
2751
  messageId: z.ZodString;
@@ -2361,6 +2773,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2361
2773
  agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2362
2774
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2363
2775
  runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2776
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2364
2777
  logBytes: z.ZodOptional<z.ZodNumber>;
2365
2778
  timestamp: z.ZodNumber;
2366
2779
  initFailure: z.ZodOptional<z.ZodObject<{
@@ -2420,6 +2833,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2420
2833
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2421
2834
  agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2422
2835
  runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2836
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2423
2837
  }, z.core.$strip>>;
2424
2838
  }, z.core.$strip>>;
2425
2839
  timestamp: z.ZodNumber;
@@ -2458,6 +2872,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2458
2872
  "fleet.host.declare": "fleet.host.declare";
2459
2873
  "fleet.host.remove": "fleet.host.remove";
2460
2874
  }> & z.core.$partial, z.ZodBoolean>>;
2875
+ supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2461
2876
  }, z.core.$loose>;
2462
2877
  }, z.core.$strip>, z.ZodObject<{
2463
2878
  type: z.ZodLiteral<"source.register">;
@@ -2554,6 +2969,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2554
2969
  "fleet.host.declare": "fleet.host.declare";
2555
2970
  "fleet.host.remove": "fleet.host.remove";
2556
2971
  }> & z.core.$partial, z.ZodBoolean>>;
2972
+ supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2557
2973
  }, z.core.$loose>>;
2558
2974
  }, z.core.$strip>, z.ZodObject<{
2559
2975
  type: z.ZodLiteral<"heartbeat">;
@@ -2564,9 +2980,9 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2564
2980
  eventType: z.ZodString;
2565
2981
  timestampMs: z.ZodNumber;
2566
2982
  sourceService: z.ZodEnum<{
2983
+ agent: "agent";
2567
2984
  platform: "platform";
2568
2985
  orchestrator: "orchestrator";
2569
- agent: "agent";
2570
2986
  }>;
2571
2987
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2572
2988
  traceId: z.ZodOptional<z.ZodString>;