@kici-dev/engine 0.1.2 → 0.1.5

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.
@@ -28,6 +28,31 @@ export declare const orchCapabilitiesSchema: z.ZodObject<{
28
28
  coordinator: "coordinator";
29
29
  worker: "worker";
30
30
  }>>;
31
+ dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
32
+ "secrets.set": "secrets.set";
33
+ "secrets.delete": "secrets.delete";
34
+ "secrets.scope.create": "secrets.scope.create";
35
+ "secrets.scope.rename": "secrets.scope.rename";
36
+ "secrets.scope.delete": "secrets.scope.delete";
37
+ "variables.set": "variables.set";
38
+ "variables.delete": "variables.delete";
39
+ "environments.create": "environments.create";
40
+ "environments.update": "environments.update";
41
+ "environments.delete": "environments.delete";
42
+ "environments.bindings.set": "environments.bindings.set";
43
+ "environments.source_overrides.set": "environments.source_overrides.set";
44
+ "environments.source_overrides.delete": "environments.source_overrides.delete";
45
+ "held_runs.approve": "held_runs.approve";
46
+ "held_runs.reject": "held_runs.reject";
47
+ "event_dlq.retry": "event_dlq.retry";
48
+ "event_dlq.discard": "event_dlq.discard";
49
+ "registration.disable": "registration.disable";
50
+ "registration.delete": "registration.delete";
51
+ "global_workflows.update": "global_workflows.update";
52
+ "backends.sync": "backends.sync";
53
+ "backends.sync_one": "backends.sync_one";
54
+ "backends.test": "backends.test";
55
+ }> & z.core.$partial, z.ZodBoolean>>;
31
56
  }, z.core.$loose>;
32
57
  /** Inferred type for orchestrator capabilities. */
33
58
  export type OrchCapabilities = z.infer<typeof orchCapabilitiesSchema>;
@@ -1,4 +1,5 @@
1
1
  import "../../chunk-gOLHoazu.js";
2
+ import { dashboardWritePolicyMap } from "../dashboard-write-operations.js";
2
3
  import { z } from "zod";
3
4
  //#region src/protocol/messages/capabilities.ts
4
5
  /**
@@ -21,9 +22,19 @@ const OrchRole = z.enum(["coordinator", "worker"]);
21
22
  * Orchestrator-advertised capabilities sent in auth.request.
22
23
  * Uses .passthrough() so newer orchestrators sending unknown flags are preserved.
23
24
  */
24
- const orchCapabilitiesSchema = z.object({
25
- /** Orchestrator's role in the cluster (coordinator manages DB/vault, worker is stateless). */
26
- orchRole: OrchRole.optional() }).passthrough();
25
+ const orchCapabilitiesSchema = z.object({
26
+ /** Orchestrator's role in the cluster (coordinator manages DB/vault, worker is stateless). */
27
+ orchRole: OrchRole.optional(),
28
+ /**
29
+ * Per-operation dashboard-write policy. Sparse map where each
30
+ * present key flips one `DashboardWriteOperation` to false. Missing
31
+ * keys are treated as `true` (permissive default). Sent on auth so
32
+ * Platform's per-org cache populates immediately; rebroadcast via
33
+ * the standalone `orch.capabilities.update` message on policy
34
+ * change (see platform-orchestrator.ts).
35
+ */
36
+ dashboardWrites: dashboardWritePolicyMap.optional()
37
+ }).passthrough();
27
38
  /** Default orchestrator capabilities sent in auth.request. */
28
39
  const ORCH_CAPABILITIES = Object.freeze({ orchRole: OrchRole.enum.coordinator });
29
40
  /**
@@ -518,6 +518,161 @@ export declare const browserEventLogPayloadChunkSchema: z.ZodObject<{
518
518
  }>>;
519
519
  totalBytes: z.ZodOptional<z.ZodNumber>;
520
520
  }, z.core.$strip>;
521
+ /** Single DLQ event in the list response. */
522
+ export declare const dashboardEventDlqListItemSchema: z.ZodObject<{
523
+ id: z.ZodString;
524
+ eventName: z.ZodString;
525
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
526
+ sourceRepo: z.ZodNullable<z.ZodString>;
527
+ sourceRoutingKey: z.ZodNullable<z.ZodString>;
528
+ sourceRunId: z.ZodNullable<z.ZodString>;
529
+ sourceJobId: z.ZodNullable<z.ZodString>;
530
+ chainDepth: z.ZodNumber;
531
+ createdAt: z.ZodString;
532
+ dlqAt: z.ZodNullable<z.ZodString>;
533
+ dlqReason: z.ZodNullable<z.ZodString>;
534
+ attempts: z.ZodNumber;
535
+ lastError: z.ZodNullable<z.ZodString>;
536
+ }, z.core.$strip>;
537
+ /** Request a paginated list of DLQ events from the orchestrator. */
538
+ export declare const dashboardEventDlqListRequestSchema: z.ZodObject<{
539
+ type: z.ZodLiteral<"dashboard.event-dlq.list">;
540
+ requestId: z.ZodString;
541
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
+ type: z.ZodLiteral<"user">;
543
+ sub: z.ZodString;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ type: z.ZodLiteral<"api_key">;
546
+ keyId: z.ZodString;
547
+ ownerSub: z.ZodString;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ type: z.ZodLiteral<"service_account">;
550
+ id: z.ZodString;
551
+ }, z.core.$strip>, z.ZodObject<{
552
+ type: z.ZodLiteral<"platform_operator">;
553
+ sub: z.ZodString;
554
+ reason: z.ZodString;
555
+ }, z.core.$strip>, z.ZodObject<{
556
+ type: z.ZodLiteral<"system">;
557
+ component: z.ZodString;
558
+ }, z.core.$strip>], "type">;
559
+ orgId: z.ZodString;
560
+ limit: z.ZodOptional<z.ZodNumber>;
561
+ before: z.ZodOptional<z.ZodString>;
562
+ }, z.core.$strip>;
563
+ declare const dashboardEventDlqListResponseSchema: z.ZodObject<{
564
+ type: z.ZodLiteral<"dashboard.event-dlq.list.response">;
565
+ requestId: z.ZodString;
566
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
567
+ id: z.ZodString;
568
+ eventName: z.ZodString;
569
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
570
+ sourceRepo: z.ZodNullable<z.ZodString>;
571
+ sourceRoutingKey: z.ZodNullable<z.ZodString>;
572
+ sourceRunId: z.ZodNullable<z.ZodString>;
573
+ sourceJobId: z.ZodNullable<z.ZodString>;
574
+ chainDepth: z.ZodNumber;
575
+ createdAt: z.ZodString;
576
+ dlqAt: z.ZodNullable<z.ZodString>;
577
+ dlqReason: z.ZodNullable<z.ZodString>;
578
+ attempts: z.ZodNumber;
579
+ lastError: z.ZodNullable<z.ZodString>;
580
+ }, z.core.$strip>>>;
581
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
582
+ error: z.ZodOptional<z.ZodString>;
583
+ }, z.core.$strip>;
584
+ /** Request the DLQ depth for the sidebar badge. */
585
+ export declare const dashboardEventDlqCountRequestSchema: z.ZodObject<{
586
+ type: z.ZodLiteral<"dashboard.event-dlq.count">;
587
+ requestId: z.ZodString;
588
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
+ type: z.ZodLiteral<"user">;
590
+ sub: z.ZodString;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ type: z.ZodLiteral<"api_key">;
593
+ keyId: z.ZodString;
594
+ ownerSub: z.ZodString;
595
+ }, z.core.$strip>, z.ZodObject<{
596
+ type: z.ZodLiteral<"service_account">;
597
+ id: z.ZodString;
598
+ }, z.core.$strip>, z.ZodObject<{
599
+ type: z.ZodLiteral<"platform_operator">;
600
+ sub: z.ZodString;
601
+ reason: z.ZodString;
602
+ }, z.core.$strip>, z.ZodObject<{
603
+ type: z.ZodLiteral<"system">;
604
+ component: z.ZodString;
605
+ }, z.core.$strip>], "type">;
606
+ orgId: z.ZodString;
607
+ }, z.core.$strip>;
608
+ declare const dashboardEventDlqCountResponseSchema: z.ZodObject<{
609
+ type: z.ZodLiteral<"dashboard.event-dlq.count.response">;
610
+ requestId: z.ZodString;
611
+ total: z.ZodOptional<z.ZodNumber>;
612
+ error: z.ZodOptional<z.ZodString>;
613
+ }, z.core.$strip>;
614
+ /** Clear DLQ flag + re-publish for retry. */
615
+ export declare const dashboardEventDlqRetryRequestSchema: z.ZodObject<{
616
+ type: z.ZodLiteral<"dashboard.event-dlq.retry">;
617
+ requestId: z.ZodString;
618
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
619
+ type: z.ZodLiteral<"user">;
620
+ sub: z.ZodString;
621
+ }, z.core.$strip>, z.ZodObject<{
622
+ type: z.ZodLiteral<"api_key">;
623
+ keyId: z.ZodString;
624
+ ownerSub: z.ZodString;
625
+ }, z.core.$strip>, z.ZodObject<{
626
+ type: z.ZodLiteral<"service_account">;
627
+ id: z.ZodString;
628
+ }, z.core.$strip>, z.ZodObject<{
629
+ type: z.ZodLiteral<"platform_operator">;
630
+ sub: z.ZodString;
631
+ reason: z.ZodString;
632
+ }, z.core.$strip>, z.ZodObject<{
633
+ type: z.ZodLiteral<"system">;
634
+ component: z.ZodString;
635
+ }, z.core.$strip>], "type">;
636
+ orgId: z.ZodString;
637
+ eventId: z.ZodString;
638
+ }, z.core.$strip>;
639
+ declare const dashboardEventDlqRetryResponseSchema: z.ZodObject<{
640
+ type: z.ZodLiteral<"dashboard.event-dlq.retry.response">;
641
+ requestId: z.ZodString;
642
+ retried: z.ZodOptional<z.ZodBoolean>;
643
+ error: z.ZodOptional<z.ZodString>;
644
+ }, z.core.$strip>;
645
+ /** Permanently delete the DLQ row. */
646
+ export declare const dashboardEventDlqDiscardRequestSchema: z.ZodObject<{
647
+ type: z.ZodLiteral<"dashboard.event-dlq.discard">;
648
+ requestId: z.ZodString;
649
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
650
+ type: z.ZodLiteral<"user">;
651
+ sub: z.ZodString;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ type: z.ZodLiteral<"api_key">;
654
+ keyId: z.ZodString;
655
+ ownerSub: z.ZodString;
656
+ }, z.core.$strip>, z.ZodObject<{
657
+ type: z.ZodLiteral<"service_account">;
658
+ id: z.ZodString;
659
+ }, z.core.$strip>, z.ZodObject<{
660
+ type: z.ZodLiteral<"platform_operator">;
661
+ sub: z.ZodString;
662
+ reason: z.ZodString;
663
+ }, z.core.$strip>, z.ZodObject<{
664
+ type: z.ZodLiteral<"system">;
665
+ component: z.ZodString;
666
+ }, z.core.$strip>], "type">;
667
+ orgId: z.ZodString;
668
+ eventId: z.ZodString;
669
+ }, z.core.$strip>;
670
+ declare const dashboardEventDlqDiscardResponseSchema: z.ZodObject<{
671
+ type: z.ZodLiteral<"dashboard.event-dlq.discard.response">;
672
+ requestId: z.ZodString;
673
+ discarded: z.ZodOptional<z.ZodBoolean>;
674
+ error: z.ZodOptional<z.ZodString>;
675
+ }, z.core.$strip>;
521
676
  /** List all environments for the org. */
522
677
  export declare const envListRequestSchema: z.ZodObject<{
523
678
  type: z.ZodLiteral<"dashboard.environments.list">;
@@ -2918,6 +3073,98 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
2918
3073
  orgId: z.ZodString;
2919
3074
  deliveryId: z.ZodString;
2920
3075
  routingKey: z.ZodOptional<z.ZodString>;
3076
+ }, z.core.$strip>, z.ZodObject<{
3077
+ type: z.ZodLiteral<"dashboard.event-dlq.list">;
3078
+ requestId: z.ZodString;
3079
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
3080
+ type: z.ZodLiteral<"user">;
3081
+ sub: z.ZodString;
3082
+ }, z.core.$strip>, z.ZodObject<{
3083
+ type: z.ZodLiteral<"api_key">;
3084
+ keyId: z.ZodString;
3085
+ ownerSub: z.ZodString;
3086
+ }, z.core.$strip>, z.ZodObject<{
3087
+ type: z.ZodLiteral<"service_account">;
3088
+ id: z.ZodString;
3089
+ }, z.core.$strip>, z.ZodObject<{
3090
+ type: z.ZodLiteral<"platform_operator">;
3091
+ sub: z.ZodString;
3092
+ reason: z.ZodString;
3093
+ }, z.core.$strip>, z.ZodObject<{
3094
+ type: z.ZodLiteral<"system">;
3095
+ component: z.ZodString;
3096
+ }, z.core.$strip>], "type">;
3097
+ orgId: z.ZodString;
3098
+ limit: z.ZodOptional<z.ZodNumber>;
3099
+ before: z.ZodOptional<z.ZodString>;
3100
+ }, z.core.$strip>, z.ZodObject<{
3101
+ type: z.ZodLiteral<"dashboard.event-dlq.count">;
3102
+ requestId: z.ZodString;
3103
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
3104
+ type: z.ZodLiteral<"user">;
3105
+ sub: z.ZodString;
3106
+ }, z.core.$strip>, z.ZodObject<{
3107
+ type: z.ZodLiteral<"api_key">;
3108
+ keyId: z.ZodString;
3109
+ ownerSub: z.ZodString;
3110
+ }, z.core.$strip>, z.ZodObject<{
3111
+ type: z.ZodLiteral<"service_account">;
3112
+ id: z.ZodString;
3113
+ }, z.core.$strip>, z.ZodObject<{
3114
+ type: z.ZodLiteral<"platform_operator">;
3115
+ sub: z.ZodString;
3116
+ reason: z.ZodString;
3117
+ }, z.core.$strip>, z.ZodObject<{
3118
+ type: z.ZodLiteral<"system">;
3119
+ component: z.ZodString;
3120
+ }, z.core.$strip>], "type">;
3121
+ orgId: z.ZodString;
3122
+ }, z.core.$strip>, z.ZodObject<{
3123
+ type: z.ZodLiteral<"dashboard.event-dlq.retry">;
3124
+ requestId: z.ZodString;
3125
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
3126
+ type: z.ZodLiteral<"user">;
3127
+ sub: z.ZodString;
3128
+ }, z.core.$strip>, z.ZodObject<{
3129
+ type: z.ZodLiteral<"api_key">;
3130
+ keyId: z.ZodString;
3131
+ ownerSub: z.ZodString;
3132
+ }, z.core.$strip>, z.ZodObject<{
3133
+ type: z.ZodLiteral<"service_account">;
3134
+ id: z.ZodString;
3135
+ }, z.core.$strip>, z.ZodObject<{
3136
+ type: z.ZodLiteral<"platform_operator">;
3137
+ sub: z.ZodString;
3138
+ reason: z.ZodString;
3139
+ }, z.core.$strip>, z.ZodObject<{
3140
+ type: z.ZodLiteral<"system">;
3141
+ component: z.ZodString;
3142
+ }, z.core.$strip>], "type">;
3143
+ orgId: z.ZodString;
3144
+ eventId: z.ZodString;
3145
+ }, z.core.$strip>, z.ZodObject<{
3146
+ type: z.ZodLiteral<"dashboard.event-dlq.discard">;
3147
+ requestId: z.ZodString;
3148
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
3149
+ type: z.ZodLiteral<"user">;
3150
+ sub: z.ZodString;
3151
+ }, z.core.$strip>, z.ZodObject<{
3152
+ type: z.ZodLiteral<"api_key">;
3153
+ keyId: z.ZodString;
3154
+ ownerSub: z.ZodString;
3155
+ }, z.core.$strip>, z.ZodObject<{
3156
+ type: z.ZodLiteral<"service_account">;
3157
+ id: z.ZodString;
3158
+ }, z.core.$strip>, z.ZodObject<{
3159
+ type: z.ZodLiteral<"platform_operator">;
3160
+ sub: z.ZodString;
3161
+ reason: z.ZodString;
3162
+ }, z.core.$strip>, z.ZodObject<{
3163
+ type: z.ZodLiteral<"system">;
3164
+ component: z.ZodString;
3165
+ }, z.core.$strip>], "type">;
3166
+ orgId: z.ZodString;
3167
+ eventId: z.ZodString;
2921
3168
  }, z.core.$strip>, z.ZodObject<{
2922
3169
  type: z.ZodLiteral<"dashboard.global-workflows.get">;
2923
3170
  requestId: z.ZodString;
@@ -3004,6 +3251,11 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3004
3251
  }>>;
3005
3252
  actorId: z.ZodOptional<z.ZodString>;
3006
3253
  action: z.ZodOptional<z.ZodEnum<{
3254
+ "event_dlq.retry": "event_dlq.retry";
3255
+ "event_dlq.discard": "event_dlq.discard";
3256
+ "registration.disable": "registration.disable";
3257
+ "registration.delete": "registration.delete";
3258
+ "global_workflows.update": "global_workflows.update";
3007
3259
  "run.detail.read": "run.detail.read";
3008
3260
  "run.payload.read": "run.payload.read";
3009
3261
  "run.orch_logs.read": "run.orch_logs.read";
@@ -3040,8 +3292,6 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3040
3292
  "held_run.approve": "held_run.approve";
3041
3293
  "held_run.reject": "held_run.reject";
3042
3294
  "registration.list.read": "registration.list.read";
3043
- "registration.disable": "registration.disable";
3044
- "registration.delete": "registration.delete";
3045
3295
  "diagnostics.read": "diagnostics.read";
3046
3296
  "scaler.capacity.read": "scaler.capacity.read";
3047
3297
  "scaler.agents.read": "scaler.agents.read";
@@ -3051,12 +3301,12 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3051
3301
  "backend.sync.one": "backend.sync.one";
3052
3302
  "backend.test": "backend.test";
3053
3303
  "global_workflows.get.read": "global_workflows.get.read";
3054
- "global_workflows.update": "global_workflows.update";
3304
+ "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
3305
+ "cluster_name.update": "cluster_name.update";
3055
3306
  "access_log.list.read": "access_log.list.read";
3056
3307
  "event_dlq.list.read": "event_dlq.list.read";
3057
- "event_dlq.retry": "event_dlq.retry";
3058
- "event_dlq.discard": "event_dlq.discard";
3059
3308
  archive_chunk: "archive_chunk";
3309
+ purge_chunk: "purge_chunk";
3060
3310
  }>>;
3061
3311
  source: z.ZodOptional<z.ZodEnum<{
3062
3312
  platform_proxy: "platform_proxy";
@@ -3084,6 +3334,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3084
3334
  held_run: "held_run";
3085
3335
  access_log: "access_log";
3086
3336
  event_dlq: "event_dlq";
3337
+ org_settings: "org_settings";
3338
+ cluster_meta: "cluster_meta";
3087
3339
  }>>;
3088
3340
  targetId: z.ZodOptional<z.ZodString>;
3089
3341
  fromTimestamp: z.ZodOptional<z.ZodString>;
@@ -3701,6 +3953,41 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3701
3953
  orchestrator_unavailable: "orchestrator_unavailable";
3702
3954
  }>>;
3703
3955
  totalBytes: z.ZodOptional<z.ZodNumber>;
3956
+ }, z.core.$strip>, z.ZodObject<{
3957
+ type: z.ZodLiteral<"dashboard.event-dlq.list.response">;
3958
+ requestId: z.ZodString;
3959
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3960
+ id: z.ZodString;
3961
+ eventName: z.ZodString;
3962
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3963
+ sourceRepo: z.ZodNullable<z.ZodString>;
3964
+ sourceRoutingKey: z.ZodNullable<z.ZodString>;
3965
+ sourceRunId: z.ZodNullable<z.ZodString>;
3966
+ sourceJobId: z.ZodNullable<z.ZodString>;
3967
+ chainDepth: z.ZodNumber;
3968
+ createdAt: z.ZodString;
3969
+ dlqAt: z.ZodNullable<z.ZodString>;
3970
+ dlqReason: z.ZodNullable<z.ZodString>;
3971
+ attempts: z.ZodNumber;
3972
+ lastError: z.ZodNullable<z.ZodString>;
3973
+ }, z.core.$strip>>>;
3974
+ nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3975
+ error: z.ZodOptional<z.ZodString>;
3976
+ }, z.core.$strip>, z.ZodObject<{
3977
+ type: z.ZodLiteral<"dashboard.event-dlq.count.response">;
3978
+ requestId: z.ZodString;
3979
+ total: z.ZodOptional<z.ZodNumber>;
3980
+ error: z.ZodOptional<z.ZodString>;
3981
+ }, z.core.$strip>, z.ZodObject<{
3982
+ type: z.ZodLiteral<"dashboard.event-dlq.retry.response">;
3983
+ requestId: z.ZodString;
3984
+ retried: z.ZodOptional<z.ZodBoolean>;
3985
+ error: z.ZodOptional<z.ZodString>;
3986
+ }, z.core.$strip>, z.ZodObject<{
3987
+ type: z.ZodLiteral<"dashboard.event-dlq.discard.response">;
3988
+ requestId: z.ZodString;
3989
+ discarded: z.ZodOptional<z.ZodBoolean>;
3990
+ error: z.ZodOptional<z.ZodString>;
3704
3991
  }, z.core.$strip>, z.ZodObject<{
3705
3992
  type: z.ZodLiteral<"dashboard.global-workflows.get.response">;
3706
3993
  requestId: z.ZodString;
@@ -3764,6 +4051,11 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3764
4051
  actorEmail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3765
4052
  actorDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3766
4053
  action: z.ZodEnum<{
4054
+ "event_dlq.retry": "event_dlq.retry";
4055
+ "event_dlq.discard": "event_dlq.discard";
4056
+ "registration.disable": "registration.disable";
4057
+ "registration.delete": "registration.delete";
4058
+ "global_workflows.update": "global_workflows.update";
3767
4059
  "run.detail.read": "run.detail.read";
3768
4060
  "run.payload.read": "run.payload.read";
3769
4061
  "run.orch_logs.read": "run.orch_logs.read";
@@ -3800,8 +4092,6 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3800
4092
  "held_run.approve": "held_run.approve";
3801
4093
  "held_run.reject": "held_run.reject";
3802
4094
  "registration.list.read": "registration.list.read";
3803
- "registration.disable": "registration.disable";
3804
- "registration.delete": "registration.delete";
3805
4095
  "diagnostics.read": "diagnostics.read";
3806
4096
  "scaler.capacity.read": "scaler.capacity.read";
3807
4097
  "scaler.agents.read": "scaler.agents.read";
@@ -3811,12 +4101,12 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3811
4101
  "backend.sync.one": "backend.sync.one";
3812
4102
  "backend.test": "backend.test";
3813
4103
  "global_workflows.get.read": "global_workflows.get.read";
3814
- "global_workflows.update": "global_workflows.update";
4104
+ "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
4105
+ "cluster_name.update": "cluster_name.update";
3815
4106
  "access_log.list.read": "access_log.list.read";
3816
4107
  "event_dlq.list.read": "event_dlq.list.read";
3817
- "event_dlq.retry": "event_dlq.retry";
3818
- "event_dlq.discard": "event_dlq.discard";
3819
4108
  archive_chunk: "archive_chunk";
4109
+ purge_chunk: "purge_chunk";
3820
4110
  }>;
3821
4111
  targetType: z.ZodNullable<z.ZodEnum<{
3822
4112
  run: "run";
@@ -3834,6 +4124,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
3834
4124
  held_run: "held_run";
3835
4125
  access_log: "access_log";
3836
4126
  event_dlq: "event_dlq";
4127
+ org_settings: "org_settings";
4128
+ cluster_meta: "cluster_meta";
3837
4129
  }>>;
3838
4130
  targetId: z.ZodNullable<z.ZodString>;
3839
4131
  requestId: z.ZodNullable<z.ZodString>;
@@ -3868,6 +4160,15 @@ export type DashboardEventLogDetailResponse = z.infer<typeof dashboardEventLogDe
3868
4160
  export type DashboardEventLogPayloadStreamRequest = z.infer<typeof dashboardEventLogPayloadStreamRequestSchema>;
3869
4161
  export type DashboardEventLogPayloadChunk = z.infer<typeof dashboardEventLogPayloadChunkSchema>;
3870
4162
  export type BrowserEventLogPayloadChunk = z.infer<typeof browserEventLogPayloadChunkSchema>;
4163
+ export type DashboardEventDlqListItem = z.infer<typeof dashboardEventDlqListItemSchema>;
4164
+ export type DashboardEventDlqListRequest = z.infer<typeof dashboardEventDlqListRequestSchema>;
4165
+ export type DashboardEventDlqListResponse = z.infer<typeof dashboardEventDlqListResponseSchema>;
4166
+ export type DashboardEventDlqCountRequest = z.infer<typeof dashboardEventDlqCountRequestSchema>;
4167
+ export type DashboardEventDlqCountResponse = z.infer<typeof dashboardEventDlqCountResponseSchema>;
4168
+ export type DashboardEventDlqRetryRequest = z.infer<typeof dashboardEventDlqRetryRequestSchema>;
4169
+ export type DashboardEventDlqRetryResponse = z.infer<typeof dashboardEventDlqRetryResponseSchema>;
4170
+ export type DashboardEventDlqDiscardRequest = z.infer<typeof dashboardEventDlqDiscardRequestSchema>;
4171
+ export type DashboardEventDlqDiscardResponse = z.infer<typeof dashboardEventDlqDiscardResponseSchema>;
3871
4172
  export type EnvListRequest = z.infer<typeof envListRequestSchema>;
3872
4173
  type EnvListResponse = z.infer<typeof envListResponseSchema>;
3873
4174
  export type EnvGetRequest = z.infer<typeof envGetRequestSchema>;
@@ -324,6 +324,82 @@ const browserEventLogPayloadChunkSchema = z.object({
324
324
  error: EventLogPayloadStreamError.optional(),
325
325
  totalBytes: z.number().int().min(0).optional()
326
326
  });
327
+ /** Single DLQ event in the list response. */
328
+ const dashboardEventDlqListItemSchema = z.object({
329
+ id: z.string(),
330
+ eventName: z.string(),
331
+ payload: z.record(z.string(), z.unknown()),
332
+ sourceRepo: z.string().nullable(),
333
+ sourceRoutingKey: z.string().nullable(),
334
+ sourceRunId: z.string().nullable(),
335
+ sourceJobId: z.string().nullable(),
336
+ chainDepth: z.number(),
337
+ createdAt: z.string(),
338
+ dlqAt: z.string().nullable(),
339
+ dlqReason: z.string().nullable(),
340
+ attempts: z.number(),
341
+ lastError: z.string().nullable()
342
+ });
343
+ /** Request a paginated list of DLQ events from the orchestrator. */
344
+ const dashboardEventDlqListRequestSchema = z.object({
345
+ type: z.literal("dashboard.event-dlq.list"),
346
+ requestId: z.string(),
347
+ actor: actorPrincipalSchema,
348
+ /** Tenant ID -- the orchestrator scopes by org_id, not routing key. */
349
+ orgId: z.string(),
350
+ /** Page size (default 50, max 200). */
351
+ limit: z.number().optional(),
352
+ /** Cursor: ISO `dlq_at` of the last row on the previous page. */
353
+ before: z.string().optional()
354
+ });
355
+ const dashboardEventDlqListResponseSchema = z.object({
356
+ type: z.literal("dashboard.event-dlq.list.response"),
357
+ requestId: z.string(),
358
+ items: z.array(dashboardEventDlqListItemSchema).optional(),
359
+ nextCursor: z.string().nullable().optional(),
360
+ error: z.string().optional()
361
+ });
362
+ /** Request the DLQ depth for the sidebar badge. */
363
+ const dashboardEventDlqCountRequestSchema = z.object({
364
+ type: z.literal("dashboard.event-dlq.count"),
365
+ requestId: z.string(),
366
+ actor: actorPrincipalSchema,
367
+ orgId: z.string()
368
+ });
369
+ const dashboardEventDlqCountResponseSchema = z.object({
370
+ type: z.literal("dashboard.event-dlq.count.response"),
371
+ requestId: z.string(),
372
+ total: z.number().optional(),
373
+ error: z.string().optional()
374
+ });
375
+ /** Clear DLQ flag + re-publish for retry. */
376
+ const dashboardEventDlqRetryRequestSchema = z.object({
377
+ type: z.literal("dashboard.event-dlq.retry"),
378
+ requestId: z.string(),
379
+ actor: actorPrincipalSchema,
380
+ orgId: z.string(),
381
+ eventId: z.string()
382
+ });
383
+ const dashboardEventDlqRetryResponseSchema = z.object({
384
+ type: z.literal("dashboard.event-dlq.retry.response"),
385
+ requestId: z.string(),
386
+ retried: z.boolean().optional(),
387
+ error: z.string().optional()
388
+ });
389
+ /** Permanently delete the DLQ row. */
390
+ const dashboardEventDlqDiscardRequestSchema = z.object({
391
+ type: z.literal("dashboard.event-dlq.discard"),
392
+ requestId: z.string(),
393
+ actor: actorPrincipalSchema,
394
+ orgId: z.string(),
395
+ eventId: z.string()
396
+ });
397
+ const dashboardEventDlqDiscardResponseSchema = z.object({
398
+ type: z.literal("dashboard.event-dlq.discard.response"),
399
+ requestId: z.string(),
400
+ discarded: z.boolean().optional(),
401
+ error: z.string().optional()
402
+ });
327
403
  const environmentTypeSchema = z.enum(["fixed", "glob"]);
328
404
  const concurrencyStrategySchema = z.enum(["queue", "cancel-pending"]);
329
405
  /** List all environments for the org. */
@@ -1110,6 +1186,10 @@ const dashboardPlatformToOrchSchema = z.discriminatedUnion("type", [
1110
1186
  dashboardEventLogListRequestSchema,
1111
1187
  dashboardEventLogDetailRequestSchema,
1112
1188
  dashboardEventLogPayloadStreamRequestSchema,
1189
+ dashboardEventDlqListRequestSchema,
1190
+ dashboardEventDlqCountRequestSchema,
1191
+ dashboardEventDlqRetryRequestSchema,
1192
+ dashboardEventDlqDiscardRequestSchema,
1113
1193
  globalWorkflowsGetRequestSchema,
1114
1194
  globalWorkflowsUpdateRequestSchema,
1115
1195
  dashboardAccessLogListRequestSchema
@@ -1160,6 +1240,10 @@ const dashboardOrchToPlatformSchema = z.discriminatedUnion("type", [
1160
1240
  dashboardEventLogListResponseSchema,
1161
1241
  dashboardEventLogDetailResponseSchema,
1162
1242
  dashboardEventLogPayloadChunkSchema,
1243
+ dashboardEventDlqListResponseSchema,
1244
+ dashboardEventDlqCountResponseSchema,
1245
+ dashboardEventDlqRetryResponseSchema,
1246
+ dashboardEventDlqDiscardResponseSchema,
1163
1247
  globalWorkflowsGetResponseSchema,
1164
1248
  globalWorkflowsUpdateResponseSchema,
1165
1249
  dashboardAccessLogListResponseSchema
@@ -1232,6 +1316,6 @@ const orgMemberSchema = z.object({
1232
1316
  /** Response for org members list endpoint. */
1233
1317
  const memberListResponseSchema = z.object({ members: z.array(orgMemberSchema) });
1234
1318
  //#endregion
1235
- export { EventLogPayloadStreamError, HeldRunQueueType, HeldRunStatus, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, envBindingsListRequestSchema, envBindingsSetRequestSchema, envCreateRequestSchema, envDeleteRequestSchema, envGetRequestSchema, envHistoryRequestSchema, envListRequestSchema, envSecretDeleteRequestSchema, envSecretScopeCreateRequestSchema, envSecretScopeDeleteRequestSchema, envSecretScopeRenameRequestSchema, envSecretSetRequestSchema, envSecretsListRequestSchema, envSourceOverrideDeleteRequestSchema, envSourceOverrideSetRequestSchema, envSourceOverridesListRequestSchema, envUpdateRequestSchema, envVarDeleteRequestSchema, envVarSetRequestSchema, envVarsListRequestSchema, eventLogListItemSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runRerunRequestSchema, trustPolicyResponseSchema };
1319
+ export { EventLogPayloadStreamError, HeldRunQueueType, HeldRunStatus, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, envBindingsListRequestSchema, envBindingsSetRequestSchema, envCreateRequestSchema, envDeleteRequestSchema, envGetRequestSchema, envHistoryRequestSchema, envListRequestSchema, envSecretDeleteRequestSchema, envSecretScopeCreateRequestSchema, envSecretScopeDeleteRequestSchema, envSecretScopeRenameRequestSchema, envSecretSetRequestSchema, envSecretsListRequestSchema, envSourceOverrideDeleteRequestSchema, envSourceOverrideSetRequestSchema, envSourceOverridesListRequestSchema, envUpdateRequestSchema, envVarDeleteRequestSchema, envVarSetRequestSchema, envVarsListRequestSchema, eventLogListItemSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runRerunRequestSchema, trustPolicyResponseSchema };
1236
1320
 
1237
1321
  //# sourceMappingURL=dashboard.js.map