@kici-dev/engine 0.1.23 → 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 (49) 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 +9 -1
  4. package/dist/audit/activity.d.ts +2 -2
  5. package/dist/audit/retention-policy.js +2 -0
  6. package/dist/environment/index.d.ts +2 -0
  7. package/dist/environment/index.js +3 -1
  8. package/dist/environment/multi-env.d.ts +30 -0
  9. package/dist/environment/multi-env.js +38 -0
  10. package/dist/environment/types.d.ts +8 -2
  11. package/dist/environment/types.js +18 -1
  12. package/dist/index.d.ts +3 -0
  13. package/dist/index.js +14 -8
  14. package/dist/inputs/index.d.ts +1 -0
  15. package/dist/inputs/index.js +2 -1
  16. package/dist/inputs/schedule.d.ts +19 -0
  17. package/dist/inputs/schedule.js +33 -0
  18. package/dist/mcp/tool-schemas.d.ts +41 -0
  19. package/dist/mcp/tool-schemas.js +49 -0
  20. package/dist/metrics/metric-catalog.generated.d.ts +20 -0
  21. package/dist/metrics/metric-catalog.generated.js +24 -0
  22. package/dist/protocol/messages/access-log.d.ts +29 -15
  23. package/dist/protocol/messages/access-log.js +3 -1
  24. package/dist/protocol/messages/actor.d.ts +8 -0
  25. package/dist/protocol/messages/actor.js +17 -3
  26. package/dist/protocol/messages/agent-run-result.d.ts +350 -0
  27. package/dist/protocol/messages/agent-run-result.js +123 -0
  28. package/dist/protocol/messages/auth.d.ts +2 -0
  29. package/dist/protocol/messages/auth.js +10 -1
  30. package/dist/protocol/messages/capabilities.d.ts +2 -0
  31. package/dist/protocol/messages/capabilities.js +15 -2
  32. package/dist/protocol/messages/dashboard-global-workflows.d.ts +8 -0
  33. package/dist/protocol/messages/dashboard.d.ts +1376 -42
  34. package/dist/protocol/messages/dashboard.js +161 -6
  35. package/dist/protocol/messages/execution-status.d.ts +52 -1
  36. package/dist/protocol/messages/execution-status.js +115 -54
  37. package/dist/protocol/messages/orchestrator-agent.d.ts +21 -5
  38. package/dist/protocol/messages/orchestrator-agent.js +5 -1
  39. package/dist/protocol/messages/pat-kind.d.ts +16 -0
  40. package/dist/protocol/messages/pat-kind.js +17 -0
  41. package/dist/protocol/messages/peer.d.ts +7 -7
  42. package/dist/protocol/messages/platform-orchestrator.d.ts +393 -7
  43. package/dist/protocol/messages/platform-orchestrator.js +3 -3
  44. package/dist/protocol/messages/run-events.d.ts +5 -1
  45. package/dist/provider/check-run-conclusion.d.ts +1 -1
  46. package/dist/trigger/types.d.ts +35 -7
  47. package/dist/trigger/types.js +7 -2
  48. package/package.json +1 -1
  49. 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;
@@ -1083,6 +1282,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1083
1282
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1084
1283
  type: z.ZodLiteral<"user">;
1085
1284
  sub: z.ZodString;
1285
+ agent: z.ZodOptional<z.ZodObject<{
1286
+ patId: z.ZodString;
1287
+ label: z.ZodString;
1288
+ }, z.core.$strip>>;
1086
1289
  }, z.core.$strip>, z.ZodObject<{
1087
1290
  type: z.ZodLiteral<"api_key">;
1088
1291
  keyId: z.ZodString;
@@ -1105,6 +1308,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1105
1308
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1106
1309
  type: z.ZodLiteral<"user">;
1107
1310
  sub: z.ZodString;
1311
+ agent: z.ZodOptional<z.ZodObject<{
1312
+ patId: z.ZodString;
1313
+ label: z.ZodString;
1314
+ }, z.core.$strip>>;
1108
1315
  }, z.core.$strip>, z.ZodObject<{
1109
1316
  type: z.ZodLiteral<"api_key">;
1110
1317
  keyId: z.ZodString;
@@ -1130,6 +1337,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1130
1337
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1131
1338
  type: z.ZodLiteral<"user">;
1132
1339
  sub: z.ZodString;
1340
+ agent: z.ZodOptional<z.ZodObject<{
1341
+ patId: z.ZodString;
1342
+ label: z.ZodString;
1343
+ }, z.core.$strip>>;
1133
1344
  }, z.core.$strip>, z.ZodObject<{
1134
1345
  type: z.ZodLiteral<"api_key">;
1135
1346
  keyId: z.ZodString;
@@ -1154,6 +1365,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1154
1365
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
1366
  type: z.ZodLiteral<"user">;
1156
1367
  sub: z.ZodString;
1368
+ agent: z.ZodOptional<z.ZodObject<{
1369
+ patId: z.ZodString;
1370
+ label: z.ZodString;
1371
+ }, z.core.$strip>>;
1157
1372
  }, z.core.$strip>, z.ZodObject<{
1158
1373
  type: z.ZodLiteral<"api_key">;
1159
1374
  keyId: z.ZodString;
@@ -1177,6 +1392,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1177
1392
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1178
1393
  type: z.ZodLiteral<"user">;
1179
1394
  sub: z.ZodString;
1395
+ agent: z.ZodOptional<z.ZodObject<{
1396
+ patId: z.ZodString;
1397
+ label: z.ZodString;
1398
+ }, z.core.$strip>>;
1180
1399
  }, z.core.$strip>, z.ZodObject<{
1181
1400
  type: z.ZodLiteral<"api_key">;
1182
1401
  keyId: z.ZodString;
@@ -1201,6 +1420,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1201
1420
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1202
1421
  type: z.ZodLiteral<"user">;
1203
1422
  sub: z.ZodString;
1423
+ agent: z.ZodOptional<z.ZodObject<{
1424
+ patId: z.ZodString;
1425
+ label: z.ZodString;
1426
+ }, z.core.$strip>>;
1204
1427
  }, z.core.$strip>, z.ZodObject<{
1205
1428
  type: z.ZodLiteral<"api_key">;
1206
1429
  keyId: z.ZodString;
@@ -1224,6 +1447,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1224
1447
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1225
1448
  type: z.ZodLiteral<"user">;
1226
1449
  sub: z.ZodString;
1450
+ agent: z.ZodOptional<z.ZodObject<{
1451
+ patId: z.ZodString;
1452
+ label: z.ZodString;
1453
+ }, z.core.$strip>>;
1227
1454
  }, z.core.$strip>, z.ZodObject<{
1228
1455
  type: z.ZodLiteral<"api_key">;
1229
1456
  keyId: z.ZodString;
@@ -1249,6 +1476,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1249
1476
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1250
1477
  type: z.ZodLiteral<"user">;
1251
1478
  sub: z.ZodString;
1479
+ agent: z.ZodOptional<z.ZodObject<{
1480
+ patId: z.ZodString;
1481
+ label: z.ZodString;
1482
+ }, z.core.$strip>>;
1252
1483
  }, z.core.$strip>, z.ZodObject<{
1253
1484
  type: z.ZodLiteral<"api_key">;
1254
1485
  keyId: z.ZodString;
@@ -1267,8 +1498,8 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1267
1498
  }, z.core.$strip>], "type">;
1268
1499
  status: z.ZodOptional<z.ZodEnum<{
1269
1500
  pending: "pending";
1270
- rejected: "rejected";
1271
1501
  approved: "approved";
1502
+ rejected: "rejected";
1272
1503
  expired: "expired";
1273
1504
  }>>;
1274
1505
  queueType: z.ZodOptional<z.ZodEnum<{
@@ -1282,6 +1513,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1282
1513
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1283
1514
  type: z.ZodLiteral<"user">;
1284
1515
  sub: z.ZodString;
1516
+ agent: z.ZodOptional<z.ZodObject<{
1517
+ patId: z.ZodString;
1518
+ label: z.ZodString;
1519
+ }, z.core.$strip>>;
1285
1520
  }, z.core.$strip>, z.ZodObject<{
1286
1521
  type: z.ZodLiteral<"api_key">;
1287
1522
  keyId: z.ZodString;
@@ -1306,6 +1541,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1306
1541
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1307
1542
  type: z.ZodLiteral<"user">;
1308
1543
  sub: z.ZodString;
1544
+ agent: z.ZodOptional<z.ZodObject<{
1545
+ patId: z.ZodString;
1546
+ label: z.ZodString;
1547
+ }, z.core.$strip>>;
1309
1548
  }, z.core.$strip>, z.ZodObject<{
1310
1549
  type: z.ZodLiteral<"api_key">;
1311
1550
  keyId: z.ZodString;
@@ -1330,6 +1569,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1330
1569
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1331
1570
  type: z.ZodLiteral<"user">;
1332
1571
  sub: z.ZodString;
1572
+ agent: z.ZodOptional<z.ZodObject<{
1573
+ patId: z.ZodString;
1574
+ label: z.ZodString;
1575
+ }, z.core.$strip>>;
1333
1576
  }, z.core.$strip>, z.ZodObject<{
1334
1577
  type: z.ZodLiteral<"api_key">;
1335
1578
  keyId: z.ZodString;
@@ -1354,6 +1597,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1354
1597
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1355
1598
  type: z.ZodLiteral<"user">;
1356
1599
  sub: z.ZodString;
1600
+ agent: z.ZodOptional<z.ZodObject<{
1601
+ patId: z.ZodString;
1602
+ label: z.ZodString;
1603
+ }, z.core.$strip>>;
1357
1604
  }, z.core.$strip>, z.ZodObject<{
1358
1605
  type: z.ZodLiteral<"api_key">;
1359
1606
  keyId: z.ZodString;
@@ -1378,6 +1625,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1378
1625
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1379
1626
  type: z.ZodLiteral<"user">;
1380
1627
  sub: z.ZodString;
1628
+ agent: z.ZodOptional<z.ZodObject<{
1629
+ patId: z.ZodString;
1630
+ label: z.ZodString;
1631
+ }, z.core.$strip>>;
1381
1632
  }, z.core.$strip>, z.ZodObject<{
1382
1633
  type: z.ZodLiteral<"api_key">;
1383
1634
  keyId: z.ZodString;
@@ -1402,6 +1653,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1402
1653
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1403
1654
  type: z.ZodLiteral<"user">;
1404
1655
  sub: z.ZodString;
1656
+ agent: z.ZodOptional<z.ZodObject<{
1657
+ patId: z.ZodString;
1658
+ label: z.ZodString;
1659
+ }, z.core.$strip>>;
1405
1660
  }, z.core.$strip>, z.ZodObject<{
1406
1661
  type: z.ZodLiteral<"api_key">;
1407
1662
  keyId: z.ZodString;
@@ -1425,6 +1680,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1425
1680
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1426
1681
  type: z.ZodLiteral<"user">;
1427
1682
  sub: z.ZodString;
1683
+ agent: z.ZodOptional<z.ZodObject<{
1684
+ patId: z.ZodString;
1685
+ label: z.ZodString;
1686
+ }, z.core.$strip>>;
1428
1687
  }, z.core.$strip>, z.ZodObject<{
1429
1688
  type: z.ZodLiteral<"api_key">;
1430
1689
  keyId: z.ZodString;
@@ -1447,6 +1706,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1447
1706
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1448
1707
  type: z.ZodLiteral<"user">;
1449
1708
  sub: z.ZodString;
1709
+ agent: z.ZodOptional<z.ZodObject<{
1710
+ patId: z.ZodString;
1711
+ label: z.ZodString;
1712
+ }, z.core.$strip>>;
1450
1713
  }, z.core.$strip>, z.ZodObject<{
1451
1714
  type: z.ZodLiteral<"api_key">;
1452
1715
  keyId: z.ZodString;
@@ -1470,6 +1733,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1470
1733
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1471
1734
  type: z.ZodLiteral<"user">;
1472
1735
  sub: z.ZodString;
1736
+ agent: z.ZodOptional<z.ZodObject<{
1737
+ patId: z.ZodString;
1738
+ label: z.ZodString;
1739
+ }, z.core.$strip>>;
1473
1740
  }, z.core.$strip>, z.ZodObject<{
1474
1741
  type: z.ZodLiteral<"api_key">;
1475
1742
  keyId: z.ZodString;
@@ -1493,6 +1760,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1493
1760
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1494
1761
  type: z.ZodLiteral<"user">;
1495
1762
  sub: z.ZodString;
1763
+ agent: z.ZodOptional<z.ZodObject<{
1764
+ patId: z.ZodString;
1765
+ label: z.ZodString;
1766
+ }, z.core.$strip>>;
1496
1767
  }, z.core.$strip>, z.ZodObject<{
1497
1768
  type: z.ZodLiteral<"api_key">;
1498
1769
  keyId: z.ZodString;
@@ -1516,6 +1787,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1516
1787
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1517
1788
  type: z.ZodLiteral<"user">;
1518
1789
  sub: z.ZodString;
1790
+ agent: z.ZodOptional<z.ZodObject<{
1791
+ patId: z.ZodString;
1792
+ label: z.ZodString;
1793
+ }, z.core.$strip>>;
1519
1794
  }, z.core.$strip>, z.ZodObject<{
1520
1795
  type: z.ZodLiteral<"api_key">;
1521
1796
  keyId: z.ZodString;
@@ -1542,6 +1817,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1542
1817
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1543
1818
  type: z.ZodLiteral<"user">;
1544
1819
  sub: z.ZodString;
1820
+ agent: z.ZodOptional<z.ZodObject<{
1821
+ patId: z.ZodString;
1822
+ label: z.ZodString;
1823
+ }, z.core.$strip>>;
1545
1824
  }, z.core.$strip>, z.ZodObject<{
1546
1825
  type: z.ZodLiteral<"api_key">;
1547
1826
  keyId: z.ZodString;
@@ -1565,6 +1844,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1565
1844
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1566
1845
  type: z.ZodLiteral<"user">;
1567
1846
  sub: z.ZodString;
1847
+ agent: z.ZodOptional<z.ZodObject<{
1848
+ patId: z.ZodString;
1849
+ label: z.ZodString;
1850
+ }, z.core.$strip>>;
1568
1851
  }, z.core.$strip>, z.ZodObject<{
1569
1852
  type: z.ZodLiteral<"api_key">;
1570
1853
  keyId: z.ZodString;
@@ -1587,6 +1870,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1587
1870
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1588
1871
  type: z.ZodLiteral<"user">;
1589
1872
  sub: z.ZodString;
1873
+ agent: z.ZodOptional<z.ZodObject<{
1874
+ patId: z.ZodString;
1875
+ label: z.ZodString;
1876
+ }, z.core.$strip>>;
1590
1877
  }, z.core.$strip>, z.ZodObject<{
1591
1878
  type: z.ZodLiteral<"api_key">;
1592
1879
  keyId: z.ZodString;
@@ -1610,6 +1897,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1610
1897
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1611
1898
  type: z.ZodLiteral<"user">;
1612
1899
  sub: z.ZodString;
1900
+ agent: z.ZodOptional<z.ZodObject<{
1901
+ patId: z.ZodString;
1902
+ label: z.ZodString;
1903
+ }, z.core.$strip>>;
1613
1904
  }, z.core.$strip>, z.ZodObject<{
1614
1905
  type: z.ZodLiteral<"api_key">;
1615
1906
  keyId: z.ZodString;
@@ -1632,6 +1923,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1632
1923
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1633
1924
  type: z.ZodLiteral<"user">;
1634
1925
  sub: z.ZodString;
1926
+ agent: z.ZodOptional<z.ZodObject<{
1927
+ patId: z.ZodString;
1928
+ label: z.ZodString;
1929
+ }, z.core.$strip>>;
1635
1930
  }, z.core.$strip>, z.ZodObject<{
1636
1931
  type: z.ZodLiteral<"api_key">;
1637
1932
  keyId: z.ZodString;
@@ -1655,6 +1950,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1655
1950
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1656
1951
  type: z.ZodLiteral<"user">;
1657
1952
  sub: z.ZodString;
1953
+ agent: z.ZodOptional<z.ZodObject<{
1954
+ patId: z.ZodString;
1955
+ label: z.ZodString;
1956
+ }, z.core.$strip>>;
1658
1957
  }, z.core.$strip>, z.ZodObject<{
1659
1958
  type: z.ZodLiteral<"api_key">;
1660
1959
  keyId: z.ZodString;
@@ -1677,6 +1976,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1677
1976
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1678
1977
  type: z.ZodLiteral<"user">;
1679
1978
  sub: z.ZodString;
1979
+ agent: z.ZodOptional<z.ZodObject<{
1980
+ patId: z.ZodString;
1981
+ label: z.ZodString;
1982
+ }, z.core.$strip>>;
1680
1983
  }, z.core.$strip>, z.ZodObject<{
1681
1984
  type: z.ZodLiteral<"api_key">;
1682
1985
  keyId: z.ZodString;
@@ -1700,6 +2003,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1700
2003
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1701
2004
  type: z.ZodLiteral<"user">;
1702
2005
  sub: z.ZodString;
2006
+ agent: z.ZodOptional<z.ZodObject<{
2007
+ patId: z.ZodString;
2008
+ label: z.ZodString;
2009
+ }, z.core.$strip>>;
1703
2010
  }, z.core.$strip>, z.ZodObject<{
1704
2011
  type: z.ZodLiteral<"api_key">;
1705
2012
  keyId: z.ZodString;
@@ -1723,6 +2030,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1723
2030
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1724
2031
  type: z.ZodLiteral<"user">;
1725
2032
  sub: z.ZodString;
2033
+ agent: z.ZodOptional<z.ZodObject<{
2034
+ patId: z.ZodString;
2035
+ label: z.ZodString;
2036
+ }, z.core.$strip>>;
1726
2037
  }, z.core.$strip>, z.ZodObject<{
1727
2038
  type: z.ZodLiteral<"api_key">;
1728
2039
  keyId: z.ZodString;
@@ -1761,6 +2072,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1761
2072
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1762
2073
  type: z.ZodLiteral<"user">;
1763
2074
  sub: z.ZodString;
2075
+ agent: z.ZodOptional<z.ZodObject<{
2076
+ patId: z.ZodString;
2077
+ label: z.ZodString;
2078
+ }, z.core.$strip>>;
1764
2079
  }, z.core.$strip>, z.ZodObject<{
1765
2080
  type: z.ZodLiteral<"api_key">;
1766
2081
  keyId: z.ZodString;
@@ -1786,6 +2101,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1786
2101
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1787
2102
  type: z.ZodLiteral<"user">;
1788
2103
  sub: z.ZodString;
2104
+ agent: z.ZodOptional<z.ZodObject<{
2105
+ patId: z.ZodString;
2106
+ label: z.ZodString;
2107
+ }, z.core.$strip>>;
1789
2108
  }, z.core.$strip>, z.ZodObject<{
1790
2109
  type: z.ZodLiteral<"api_key">;
1791
2110
  keyId: z.ZodString;
@@ -1811,6 +2130,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1811
2130
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1812
2131
  type: z.ZodLiteral<"user">;
1813
2132
  sub: z.ZodString;
2133
+ agent: z.ZodOptional<z.ZodObject<{
2134
+ patId: z.ZodString;
2135
+ label: z.ZodString;
2136
+ }, z.core.$strip>>;
1814
2137
  }, z.core.$strip>, z.ZodObject<{
1815
2138
  type: z.ZodLiteral<"api_key">;
1816
2139
  keyId: z.ZodString;
@@ -1836,6 +2159,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1836
2159
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1837
2160
  type: z.ZodLiteral<"user">;
1838
2161
  sub: z.ZodString;
2162
+ agent: z.ZodOptional<z.ZodObject<{
2163
+ patId: z.ZodString;
2164
+ label: z.ZodString;
2165
+ }, z.core.$strip>>;
1839
2166
  }, z.core.$strip>, z.ZodObject<{
1840
2167
  type: z.ZodLiteral<"api_key">;
1841
2168
  keyId: z.ZodString;
@@ -1859,6 +2186,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1859
2186
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1860
2187
  type: z.ZodLiteral<"user">;
1861
2188
  sub: z.ZodString;
2189
+ agent: z.ZodOptional<z.ZodObject<{
2190
+ patId: z.ZodString;
2191
+ label: z.ZodString;
2192
+ }, z.core.$strip>>;
1862
2193
  }, z.core.$strip>, z.ZodObject<{
1863
2194
  type: z.ZodLiteral<"api_key">;
1864
2195
  keyId: z.ZodString;
@@ -1883,6 +2214,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1883
2214
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1884
2215
  type: z.ZodLiteral<"user">;
1885
2216
  sub: z.ZodString;
2217
+ agent: z.ZodOptional<z.ZodObject<{
2218
+ patId: z.ZodString;
2219
+ label: z.ZodString;
2220
+ }, z.core.$strip>>;
1886
2221
  }, z.core.$strip>, z.ZodObject<{
1887
2222
  type: z.ZodLiteral<"api_key">;
1888
2223
  keyId: z.ZodString;
@@ -1907,6 +2242,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1907
2242
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1908
2243
  type: z.ZodLiteral<"user">;
1909
2244
  sub: z.ZodString;
2245
+ agent: z.ZodOptional<z.ZodObject<{
2246
+ patId: z.ZodString;
2247
+ label: z.ZodString;
2248
+ }, z.core.$strip>>;
1910
2249
  }, z.core.$strip>, z.ZodObject<{
1911
2250
  type: z.ZodLiteral<"api_key">;
1912
2251
  keyId: z.ZodString;
@@ -1929,6 +2268,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1929
2268
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1930
2269
  type: z.ZodLiteral<"user">;
1931
2270
  sub: z.ZodString;
2271
+ agent: z.ZodOptional<z.ZodObject<{
2272
+ patId: z.ZodString;
2273
+ label: z.ZodString;
2274
+ }, z.core.$strip>>;
1932
2275
  }, z.core.$strip>, z.ZodObject<{
1933
2276
  type: z.ZodLiteral<"api_key">;
1934
2277
  keyId: z.ZodString;
@@ -1964,6 +2307,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1964
2307
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1965
2308
  type: z.ZodLiteral<"user">;
1966
2309
  sub: z.ZodString;
2310
+ agent: z.ZodOptional<z.ZodObject<{
2311
+ patId: z.ZodString;
2312
+ label: z.ZodString;
2313
+ }, z.core.$strip>>;
1967
2314
  }, z.core.$strip>, z.ZodObject<{
1968
2315
  type: z.ZodLiteral<"api_key">;
1969
2316
  keyId: z.ZodString;
@@ -1998,6 +2345,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
1998
2345
  "fleet.host.declare": "fleet.host.declare";
1999
2346
  "fleet.host.remove": "fleet.host.remove";
2000
2347
  "run.detail.read": "run.detail.read";
2348
+ "run.structured.read": "run.structured.read";
2001
2349
  "runs.list.read": "runs.list.read";
2002
2350
  "runs.filters.read": "runs.filters.read";
2003
2351
  "sources.list.read": "sources.list.read";
@@ -2061,10 +2409,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2061
2409
  purge_chunk: "purge_chunk";
2062
2410
  }>>;
2063
2411
  source: z.ZodOptional<z.ZodEnum<{
2412
+ agent: "agent";
2064
2413
  platform_proxy: "platform_proxy";
2065
2414
  admin_http: "admin_http";
2066
2415
  admin_cli: "admin_cli";
2067
- agent: "agent";
2068
2416
  }>>;
2069
2417
  outcome: z.ZodOptional<z.ZodEnum<{
2070
2418
  error: "error";
@@ -2074,12 +2422,12 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2074
2422
  targetType: z.ZodOptional<z.ZodEnum<{
2075
2423
  run: "run";
2076
2424
  job: "job";
2077
- payload: "payload";
2078
2425
  step: "step";
2426
+ environment: "environment";
2427
+ payload: "payload";
2079
2428
  event_log: "event_log";
2080
2429
  event_log_payload: "event_log_payload";
2081
2430
  secret_scope: "secret_scope";
2082
- environment: "environment";
2083
2431
  registration: "registration";
2084
2432
  backend: "backend";
2085
2433
  diagnostics: "diagnostics";
@@ -2090,6 +2438,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2090
2438
  event_dlq: "event_dlq";
2091
2439
  org_settings: "org_settings";
2092
2440
  cluster_meta: "cluster_meta";
2441
+ attestation: "attestation";
2093
2442
  }>>;
2094
2443
  targetId: z.ZodOptional<z.ZodString>;
2095
2444
  fromTimestamp: z.ZodOptional<z.ZodString>;
@@ -2103,6 +2452,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2103
2452
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2104
2453
  type: z.ZodLiteral<"user">;
2105
2454
  sub: z.ZodString;
2455
+ agent: z.ZodOptional<z.ZodObject<{
2456
+ patId: z.ZodString;
2457
+ label: z.ZodString;
2458
+ }, z.core.$strip>>;
2106
2459
  }, z.core.$strip>, z.ZodObject<{
2107
2460
  type: z.ZodLiteral<"api_key">;
2108
2461
  keyId: z.ZodString;
@@ -2129,6 +2482,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2129
2482
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2130
2483
  type: z.ZodLiteral<"user">;
2131
2484
  sub: z.ZodString;
2485
+ agent: z.ZodOptional<z.ZodObject<{
2486
+ patId: z.ZodString;
2487
+ label: z.ZodString;
2488
+ }, z.core.$strip>>;
2132
2489
  }, z.core.$strip>, z.ZodObject<{
2133
2490
  type: z.ZodLiteral<"api_key">;
2134
2491
  keyId: z.ZodString;
@@ -2196,6 +2553,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2196
2553
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2197
2554
  type: z.ZodLiteral<"user">;
2198
2555
  sub: z.ZodString;
2556
+ agent: z.ZodOptional<z.ZodObject<{
2557
+ patId: z.ZodString;
2558
+ label: z.ZodString;
2559
+ }, z.core.$strip>>;
2199
2560
  }, z.core.$strip>, z.ZodObject<{
2200
2561
  type: z.ZodLiteral<"api_key">;
2201
2562
  keyId: z.ZodString;
@@ -2219,6 +2580,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2219
2580
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2220
2581
  type: z.ZodLiteral<"user">;
2221
2582
  sub: z.ZodString;
2583
+ agent: z.ZodOptional<z.ZodObject<{
2584
+ patId: z.ZodString;
2585
+ label: z.ZodString;
2586
+ }, z.core.$strip>>;
2222
2587
  }, z.core.$strip>, z.ZodObject<{
2223
2588
  type: z.ZodLiteral<"api_key">;
2224
2589
  keyId: z.ZodString;
@@ -2243,6 +2608,10 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
2243
2608
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2244
2609
  type: z.ZodLiteral<"user">;
2245
2610
  sub: z.ZodString;
2611
+ agent: z.ZodOptional<z.ZodObject<{
2612
+ patId: z.ZodString;
2613
+ label: z.ZodString;
2614
+ }, z.core.$strip>>;
2246
2615
  }, z.core.$strip>, z.ZodObject<{
2247
2616
  type: z.ZodLiteral<"api_key">;
2248
2617
  keyId: z.ZodString;
@@ -2315,6 +2684,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2315
2684
  held: "held";
2316
2685
  }>;
2317
2686
  repoIdentifier: z.ZodOptional<z.ZodString>;
2687
+ repoProvider: z.ZodOptional<z.ZodString>;
2688
+ localWorkingTree: z.ZodOptional<z.ZodBoolean>;
2318
2689
  sha: z.ZodOptional<z.ZodString>;
2319
2690
  ref: z.ZodOptional<z.ZodString>;
2320
2691
  triggerEvent: z.ZodOptional<z.ZodString>;
@@ -2327,6 +2698,9 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2327
2698
  parentRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2328
2699
  originalRunId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2329
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>>;
2330
2704
  failureReason: z.ZodOptional<z.ZodString>;
2331
2705
  logBytes: z.ZodOptional<z.ZodNumber>;
2332
2706
  initFailure: z.ZodOptional<z.ZodObject<{
@@ -2358,12 +2732,20 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2358
2732
  state: z.ZodEnum<{
2359
2733
  skipped: "skipped";
2360
2734
  success: "success";
2735
+ pending: "pending";
2361
2736
  running: "running";
2362
2737
  failed: "failed";
2738
+ cancelled: "cancelled";
2363
2739
  }>;
2364
2740
  timestamp: z.ZodNumber;
2365
2741
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2366
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>;
2367
2749
  }, z.core.$strip>, z.ZodObject<{
2368
2750
  type: z.ZodLiteral<"job.status.forward">;
2369
2751
  messageId: z.ZodString;
@@ -2391,6 +2773,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2391
2773
  agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2392
2774
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2393
2775
  runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2776
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2394
2777
  logBytes: z.ZodOptional<z.ZodNumber>;
2395
2778
  timestamp: z.ZodNumber;
2396
2779
  initFailure: z.ZodOptional<z.ZodObject<{
@@ -2450,6 +2833,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2450
2833
  errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2451
2834
  agentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2452
2835
  runsOnLabels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2836
+ environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
2453
2837
  }, z.core.$strip>>;
2454
2838
  }, z.core.$strip>>;
2455
2839
  timestamp: z.ZodNumber;
@@ -2488,6 +2872,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2488
2872
  "fleet.host.declare": "fleet.host.declare";
2489
2873
  "fleet.host.remove": "fleet.host.remove";
2490
2874
  }> & z.core.$partial, z.ZodBoolean>>;
2875
+ supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2491
2876
  }, z.core.$loose>;
2492
2877
  }, z.core.$strip>, z.ZodObject<{
2493
2878
  type: z.ZodLiteral<"source.register">;
@@ -2584,6 +2969,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2584
2969
  "fleet.host.declare": "fleet.host.declare";
2585
2970
  "fleet.host.remove": "fleet.host.remove";
2586
2971
  }> & z.core.$partial, z.ZodBoolean>>;
2972
+ supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2587
2973
  }, z.core.$loose>>;
2588
2974
  }, z.core.$strip>, z.ZodObject<{
2589
2975
  type: z.ZodLiteral<"heartbeat">;
@@ -2594,8 +2980,8 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
2594
2980
  eventType: z.ZodString;
2595
2981
  timestampMs: z.ZodNumber;
2596
2982
  sourceService: z.ZodEnum<{
2597
- platform: "platform";
2598
2983
  agent: "agent";
2984
+ platform: "platform";
2599
2985
  orchestrator: "orchestrator";
2600
2986
  }>;
2601
2987
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;