@kici-dev/engine 0.1.21 → 0.1.22

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.
@@ -89,10 +89,19 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
89
89
  }, z.core.$strip>>;
90
90
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
91
91
  upstreamName: z.ZodString;
92
- ifFailed: z.ZodEnum<{
93
- run: "run";
94
- skip: "skip";
95
- }>;
92
+ runOn: z.ZodArray<z.ZodEnum<{
93
+ skipped: "skipped";
94
+ success: "success";
95
+ pending: "pending";
96
+ running: "running";
97
+ failed: "failed";
98
+ cancelled: "cancelled";
99
+ cancelling: "cancelling";
100
+ queued: "queued";
101
+ recovering: "recovering";
102
+ timed_out_stale: "timed_out_stale";
103
+ drift_dropped: "drift_dropped";
104
+ }>>;
96
105
  }, z.core.$strip>>>>;
97
106
  steps: z.ZodArray<z.ZodObject<{
98
107
  stepIndex: z.ZodNumber;
@@ -156,10 +165,19 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
156
165
  }, z.core.$strip>>;
157
166
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
158
167
  upstreamName: z.ZodString;
159
- ifFailed: z.ZodEnum<{
160
- run: "run";
161
- skip: "skip";
162
- }>;
168
+ runOn: z.ZodArray<z.ZodEnum<{
169
+ skipped: "skipped";
170
+ success: "success";
171
+ pending: "pending";
172
+ running: "running";
173
+ failed: "failed";
174
+ cancelled: "cancelled";
175
+ cancelling: "cancelling";
176
+ queued: "queued";
177
+ recovering: "recovering";
178
+ timed_out_stale: "timed_out_stale";
179
+ drift_dropped: "drift_dropped";
180
+ }>>;
163
181
  }, z.core.$strip>>>>;
164
182
  steps: z.ZodArray<z.ZodObject<{
165
183
  stepIndex: z.ZodNumber;
@@ -1814,6 +1832,10 @@ declare const heldRunsListResponseSchema: z.ZodObject<{
1814
1832
  }, z.core.$strict>]>>;
1815
1833
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1816
1834
  }, z.core.$strip>>>;
1835
+ payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1836
+ summaryMarkdown: z.ZodString;
1837
+ drift: z.ZodUnknown;
1838
+ }, z.core.$strip>>>;
1817
1839
  decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1818
1840
  approverUserId: z.ZodString;
1819
1841
  decision: z.ZodEnum<{
@@ -1854,6 +1876,7 @@ export declare const heldRunApproveRequestSchema: z.ZodObject<{
1854
1876
  component: z.ZodString;
1855
1877
  }, z.core.$strip>], "type">;
1856
1878
  heldRunId: z.ZodString;
1879
+ autoApprove: z.ZodOptional<z.ZodBoolean>;
1857
1880
  }, z.core.$strip>;
1858
1881
  /** Reject a held run. */
1859
1882
  export declare const heldRunRejectRequestSchema: z.ZodObject<{
@@ -1906,6 +1929,272 @@ export declare const dashboardDiagnosticsRequestSchema: z.ZodObject<{
1906
1929
  }, z.core.$strip>], "type">;
1907
1930
  includeAgents: z.ZodOptional<z.ZodBoolean>;
1908
1931
  }, z.core.$strip>;
1932
+ /** A run pinned to a host, for the host-detail "recent runs" list. */
1933
+ export declare const fleetPinnedRunSchema: z.ZodObject<{
1934
+ runId: z.ZodString;
1935
+ workflowName: z.ZodNullable<z.ZodString>;
1936
+ status: z.ZodString;
1937
+ createdAt: z.ZodString;
1938
+ }, z.core.$strip>;
1939
+ export type FleetPinnedRun = z.infer<typeof fleetPinnedRunSchema>;
1940
+ /** A host matched by a runsOnAll preview, plus how the fan-out would treat it. */
1941
+ export declare const fleetPreviewHostSchema: z.ZodObject<{
1942
+ entry: z.ZodObject<{
1943
+ agentId: z.ZodString;
1944
+ labels: z.ZodArray<z.ZodString>;
1945
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1946
+ hostname: z.ZodNullable<z.ZodString>;
1947
+ platform: z.ZodNullable<z.ZodString>;
1948
+ arch: z.ZodNullable<z.ZodString>;
1949
+ lifecycleClass: z.ZodEnum<{
1950
+ static: "static";
1951
+ ephemeral: "ephemeral";
1952
+ }>;
1953
+ status: z.ZodEnum<{
1954
+ ready: "ready";
1955
+ unreachable: "unreachable";
1956
+ stale: "stale";
1957
+ }>;
1958
+ lastSeen: z.ZodString;
1959
+ }, z.core.$strip>;
1960
+ disposition: z.ZodEnum<{
1961
+ target: "target";
1962
+ "unreachable-durable": "unreachable-durable";
1963
+ "skipped-ephemeral": "skipped-ephemeral";
1964
+ }>;
1965
+ }, z.core.$strip>;
1966
+ export type FleetPreviewHost = z.infer<typeof fleetPreviewHostSchema>;
1967
+ export declare const dashboardFleetHostsRequestSchema: z.ZodObject<{
1968
+ type: z.ZodLiteral<"dashboard.fleet.hosts">;
1969
+ requestId: z.ZodString;
1970
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1971
+ type: z.ZodLiteral<"user">;
1972
+ sub: z.ZodString;
1973
+ }, z.core.$strip>, z.ZodObject<{
1974
+ type: z.ZodLiteral<"api_key">;
1975
+ keyId: z.ZodString;
1976
+ ownerSub: z.ZodString;
1977
+ }, z.core.$strip>, z.ZodObject<{
1978
+ type: z.ZodLiteral<"service_account">;
1979
+ id: z.ZodString;
1980
+ }, z.core.$strip>, z.ZodObject<{
1981
+ type: z.ZodLiteral<"platform_operator">;
1982
+ sub: z.ZodString;
1983
+ reason: z.ZodString;
1984
+ sessionId: z.ZodOptional<z.ZodString>;
1985
+ }, z.core.$strip>, z.ZodObject<{
1986
+ type: z.ZodLiteral<"system">;
1987
+ component: z.ZodString;
1988
+ }, z.core.$strip>], "type">;
1989
+ }, z.core.$strip>;
1990
+ export declare const dashboardFleetHostRequestSchema: z.ZodObject<{
1991
+ type: z.ZodLiteral<"dashboard.fleet.host">;
1992
+ requestId: z.ZodString;
1993
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1994
+ type: z.ZodLiteral<"user">;
1995
+ sub: z.ZodString;
1996
+ }, z.core.$strip>, z.ZodObject<{
1997
+ type: z.ZodLiteral<"api_key">;
1998
+ keyId: z.ZodString;
1999
+ ownerSub: z.ZodString;
2000
+ }, z.core.$strip>, z.ZodObject<{
2001
+ type: z.ZodLiteral<"service_account">;
2002
+ id: z.ZodString;
2003
+ }, z.core.$strip>, z.ZodObject<{
2004
+ type: z.ZodLiteral<"platform_operator">;
2005
+ sub: z.ZodString;
2006
+ reason: z.ZodString;
2007
+ sessionId: z.ZodOptional<z.ZodString>;
2008
+ }, z.core.$strip>, z.ZodObject<{
2009
+ type: z.ZodLiteral<"system">;
2010
+ component: z.ZodString;
2011
+ }, z.core.$strip>], "type">;
2012
+ agentId: z.ZodString;
2013
+ }, z.core.$strip>;
2014
+ export declare const dashboardFleetPreviewRequestSchema: z.ZodObject<{
2015
+ type: z.ZodLiteral<"dashboard.fleet.preview">;
2016
+ requestId: z.ZodString;
2017
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2018
+ type: z.ZodLiteral<"user">;
2019
+ sub: z.ZodString;
2020
+ }, z.core.$strip>, z.ZodObject<{
2021
+ type: z.ZodLiteral<"api_key">;
2022
+ keyId: z.ZodString;
2023
+ ownerSub: z.ZodString;
2024
+ }, z.core.$strip>, z.ZodObject<{
2025
+ type: z.ZodLiteral<"service_account">;
2026
+ id: z.ZodString;
2027
+ }, z.core.$strip>, z.ZodObject<{
2028
+ type: z.ZodLiteral<"platform_operator">;
2029
+ sub: z.ZodString;
2030
+ reason: z.ZodString;
2031
+ sessionId: z.ZodOptional<z.ZodString>;
2032
+ }, z.core.$strip>, z.ZodObject<{
2033
+ type: z.ZodLiteral<"system">;
2034
+ component: z.ZodString;
2035
+ }, z.core.$strip>], "type">;
2036
+ workflowName: z.ZodString;
2037
+ }, z.core.$strip>;
2038
+ export declare const dashboardFleetHostsResponseSchema: z.ZodObject<{
2039
+ type: z.ZodLiteral<"dashboard.fleet.hosts.response">;
2040
+ requestId: z.ZodString;
2041
+ hosts: z.ZodArray<z.ZodObject<{
2042
+ agentId: z.ZodString;
2043
+ labels: z.ZodArray<z.ZodString>;
2044
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2045
+ hostname: z.ZodNullable<z.ZodString>;
2046
+ platform: z.ZodNullable<z.ZodString>;
2047
+ arch: z.ZodNullable<z.ZodString>;
2048
+ lifecycleClass: z.ZodEnum<{
2049
+ static: "static";
2050
+ ephemeral: "ephemeral";
2051
+ }>;
2052
+ status: z.ZodEnum<{
2053
+ ready: "ready";
2054
+ unreachable: "unreachable";
2055
+ stale: "stale";
2056
+ }>;
2057
+ lastSeen: z.ZodString;
2058
+ }, z.core.$strip>>;
2059
+ }, z.core.$strip>;
2060
+ export declare const dashboardFleetHostResponseSchema: z.ZodObject<{
2061
+ type: z.ZodLiteral<"dashboard.fleet.host.response">;
2062
+ requestId: z.ZodString;
2063
+ host: z.ZodNullable<z.ZodObject<{
2064
+ agentId: z.ZodString;
2065
+ labels: z.ZodArray<z.ZodString>;
2066
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2067
+ hostname: z.ZodNullable<z.ZodString>;
2068
+ platform: z.ZodNullable<z.ZodString>;
2069
+ arch: z.ZodNullable<z.ZodString>;
2070
+ lifecycleClass: z.ZodEnum<{
2071
+ static: "static";
2072
+ ephemeral: "ephemeral";
2073
+ }>;
2074
+ status: z.ZodEnum<{
2075
+ ready: "ready";
2076
+ unreachable: "unreachable";
2077
+ stale: "stale";
2078
+ }>;
2079
+ lastSeen: z.ZodString;
2080
+ }, z.core.$strip>>;
2081
+ runs: z.ZodArray<z.ZodObject<{
2082
+ runId: z.ZodString;
2083
+ workflowName: z.ZodNullable<z.ZodString>;
2084
+ status: z.ZodString;
2085
+ createdAt: z.ZodString;
2086
+ }, z.core.$strip>>;
2087
+ }, z.core.$strip>;
2088
+ export declare const dashboardFleetPreviewResponseSchema: z.ZodObject<{
2089
+ type: z.ZodLiteral<"dashboard.fleet.preview.response">;
2090
+ requestId: z.ZodString;
2091
+ matched: z.ZodArray<z.ZodObject<{
2092
+ entry: z.ZodObject<{
2093
+ agentId: z.ZodString;
2094
+ labels: z.ZodArray<z.ZodString>;
2095
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2096
+ hostname: z.ZodNullable<z.ZodString>;
2097
+ platform: z.ZodNullable<z.ZodString>;
2098
+ arch: z.ZodNullable<z.ZodString>;
2099
+ lifecycleClass: z.ZodEnum<{
2100
+ static: "static";
2101
+ ephemeral: "ephemeral";
2102
+ }>;
2103
+ status: z.ZodEnum<{
2104
+ ready: "ready";
2105
+ unreachable: "unreachable";
2106
+ stale: "stale";
2107
+ }>;
2108
+ lastSeen: z.ZodString;
2109
+ }, z.core.$strip>;
2110
+ disposition: z.ZodEnum<{
2111
+ target: "target";
2112
+ "unreachable-durable": "unreachable-durable";
2113
+ "skipped-ephemeral": "skipped-ephemeral";
2114
+ }>;
2115
+ }, z.core.$strip>>;
2116
+ onUnreachable: z.ZodEnum<{
2117
+ skip: "skip";
2118
+ fail: "fail";
2119
+ hold: "hold";
2120
+ }>;
2121
+ estimatedChildCount: z.ZodNumber;
2122
+ }, z.core.$strip>;
2123
+ export type DashboardFleetHostsRequest = z.infer<typeof dashboardFleetHostsRequestSchema>;
2124
+ export type DashboardFleetHostRequest = z.infer<typeof dashboardFleetHostRequestSchema>;
2125
+ export type DashboardFleetPreviewRequest = z.infer<typeof dashboardFleetPreviewRequestSchema>;
2126
+ export type DashboardFleetHostsResponse = z.infer<typeof dashboardFleetHostsResponseSchema>;
2127
+ export type DashboardFleetHostResponse = z.infer<typeof dashboardFleetHostResponseSchema>;
2128
+ export type DashboardFleetPreviewResponse = z.infer<typeof dashboardFleetPreviewResponseSchema>;
2129
+ /** Declare a static host into the roster (wraps HostRosterStore.declareStatic). */
2130
+ export declare const fleetHostDeclareRequestSchema: z.ZodObject<{
2131
+ type: z.ZodLiteral<"dashboard.fleet.host.declare">;
2132
+ requestId: z.ZodString;
2133
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2134
+ type: z.ZodLiteral<"user">;
2135
+ sub: z.ZodString;
2136
+ }, z.core.$strip>, z.ZodObject<{
2137
+ type: z.ZodLiteral<"api_key">;
2138
+ keyId: z.ZodString;
2139
+ ownerSub: z.ZodString;
2140
+ }, z.core.$strip>, z.ZodObject<{
2141
+ type: z.ZodLiteral<"service_account">;
2142
+ id: z.ZodString;
2143
+ }, z.core.$strip>, z.ZodObject<{
2144
+ type: z.ZodLiteral<"platform_operator">;
2145
+ sub: z.ZodString;
2146
+ reason: z.ZodString;
2147
+ sessionId: z.ZodOptional<z.ZodString>;
2148
+ }, z.core.$strip>, z.ZodObject<{
2149
+ type: z.ZodLiteral<"system">;
2150
+ component: z.ZodString;
2151
+ }, z.core.$strip>], "type">;
2152
+ agentId: z.ZodString;
2153
+ labels: z.ZodArray<z.ZodString>;
2154
+ hostname: z.ZodOptional<z.ZodString>;
2155
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2156
+ }, z.core.$strip>;
2157
+ export declare const fleetHostDeclareResponseSchema: z.ZodObject<{
2158
+ type: z.ZodLiteral<"dashboard.fleet.host.declare.response">;
2159
+ requestId: z.ZodString;
2160
+ declared: z.ZodOptional<z.ZodBoolean>;
2161
+ error: z.ZodOptional<z.ZodString>;
2162
+ }, z.core.$strip>;
2163
+ /** Remove a host from the roster by agent id (HostRosterStore.removeStatic). */
2164
+ export declare const fleetHostRemoveRequestSchema: z.ZodObject<{
2165
+ type: z.ZodLiteral<"dashboard.fleet.host.remove">;
2166
+ requestId: z.ZodString;
2167
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2168
+ type: z.ZodLiteral<"user">;
2169
+ sub: z.ZodString;
2170
+ }, z.core.$strip>, z.ZodObject<{
2171
+ type: z.ZodLiteral<"api_key">;
2172
+ keyId: z.ZodString;
2173
+ ownerSub: z.ZodString;
2174
+ }, z.core.$strip>, z.ZodObject<{
2175
+ type: z.ZodLiteral<"service_account">;
2176
+ id: z.ZodString;
2177
+ }, z.core.$strip>, z.ZodObject<{
2178
+ type: z.ZodLiteral<"platform_operator">;
2179
+ sub: z.ZodString;
2180
+ reason: z.ZodString;
2181
+ sessionId: z.ZodOptional<z.ZodString>;
2182
+ }, z.core.$strip>, z.ZodObject<{
2183
+ type: z.ZodLiteral<"system">;
2184
+ component: z.ZodString;
2185
+ }, z.core.$strip>], "type">;
2186
+ agentId: z.ZodString;
2187
+ }, z.core.$strip>;
2188
+ export declare const fleetHostRemoveResponseSchema: z.ZodObject<{
2189
+ type: z.ZodLiteral<"dashboard.fleet.host.remove.response">;
2190
+ requestId: z.ZodString;
2191
+ removed: z.ZodOptional<z.ZodBoolean>;
2192
+ error: z.ZodOptional<z.ZodString>;
2193
+ }, z.core.$strip>;
2194
+ export type FleetHostDeclareRequest = z.infer<typeof fleetHostDeclareRequestSchema>;
2195
+ export type FleetHostDeclareResponse = z.infer<typeof fleetHostDeclareResponseSchema>;
2196
+ export type FleetHostRemoveRequest = z.infer<typeof fleetHostRemoveRequestSchema>;
2197
+ export type FleetHostRemoveResponse = z.infer<typeof fleetHostRemoveResponseSchema>;
1909
2198
  /** Peer orchestrator reported by coordinator in diagnostics. */
1910
2199
  declare const diagnosticsPeerSchema: z.ZodObject<{
1911
2200
  instanceId: z.ZodString;
@@ -2353,9 +2642,9 @@ export declare const backendItemSchema: z.ZodObject<{
2353
2642
  enabled: z.ZodBoolean;
2354
2643
  healthStatus: z.ZodEnum<{
2355
2644
  unknown: "unknown";
2645
+ unreachable: "unreachable";
2356
2646
  healthy: "healthy";
2357
2647
  degraded: "degraded";
2358
- unreachable: "unreachable";
2359
2648
  }>;
2360
2649
  scopeCount: z.ZodNumber;
2361
2650
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -2380,9 +2669,9 @@ export declare const backendsListResponseSchema: z.ZodObject<{
2380
2669
  enabled: z.ZodBoolean;
2381
2670
  healthStatus: z.ZodEnum<{
2382
2671
  unknown: "unknown";
2672
+ unreachable: "unreachable";
2383
2673
  healthy: "healthy";
2384
2674
  degraded: "degraded";
2385
- unreachable: "unreachable";
2386
2675
  }>;
2387
2676
  scopeCount: z.ZodNumber;
2388
2677
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -2434,9 +2723,9 @@ export declare const backendGetResponseSchema: z.ZodObject<{
2434
2723
  enabled: z.ZodBoolean;
2435
2724
  healthStatus: z.ZodEnum<{
2436
2725
  unknown: "unknown";
2726
+ unreachable: "unreachable";
2437
2727
  healthy: "healthy";
2438
2728
  degraded: "degraded";
2439
- unreachable: "unreachable";
2440
2729
  }>;
2441
2730
  scopeCount: z.ZodNumber;
2442
2731
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -2636,6 +2925,27 @@ export declare const testRelayTriggerRequestSchema: z.ZodObject<{
2636
2925
  check: "check";
2637
2926
  "check-fail-on-drift": "check-fail-on-drift";
2638
2927
  }>>;
2928
+ target: z.ZodOptional<z.ZodObject<{
2929
+ values: z.ZodArray<z.ZodObject<{
2930
+ include: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2931
+ kind: z.ZodLiteral<"exact">;
2932
+ value: z.ZodString;
2933
+ }, z.core.$strip>, z.ZodObject<{
2934
+ kind: z.ZodLiteral<"regex">;
2935
+ source: z.ZodString;
2936
+ flags: z.ZodString;
2937
+ }, z.core.$strip>], "kind">>;
2938
+ exclude: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2939
+ kind: z.ZodLiteral<"exact">;
2940
+ value: z.ZodString;
2941
+ }, z.core.$strip>, z.ZodObject<{
2942
+ kind: z.ZodLiteral<"regex">;
2943
+ source: z.ZodString;
2944
+ flags: z.ZodString;
2945
+ }, z.core.$strip>], "kind">>;
2946
+ }, z.core.$strip>>;
2947
+ allowEmpty: z.ZodBoolean;
2948
+ }, z.core.$strip>>;
2639
2949
  secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2640
2950
  encryptedSecrets: z.ZodOptional<z.ZodString>;
2641
2951
  encryptedSecretsKey: z.ZodOptional<z.ZodString>;
@@ -3622,6 +3932,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3622
3932
  component: z.ZodString;
3623
3933
  }, z.core.$strip>], "type">;
3624
3934
  heldRunId: z.ZodString;
3935
+ autoApprove: z.ZodOptional<z.ZodBoolean>;
3625
3936
  }, z.core.$strip>, z.ZodObject<{
3626
3937
  type: z.ZodLiteral<"dashboard.held-runs.reject">;
3627
3938
  requestId: z.ZodString;
@@ -3741,6 +4052,123 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3741
4052
  component: z.ZodString;
3742
4053
  }, z.core.$strip>], "type">;
3743
4054
  includeAgents: z.ZodOptional<z.ZodBoolean>;
4055
+ }, z.core.$strip>, z.ZodObject<{
4056
+ type: z.ZodLiteral<"dashboard.fleet.hosts">;
4057
+ requestId: z.ZodString;
4058
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4059
+ type: z.ZodLiteral<"user">;
4060
+ sub: z.ZodString;
4061
+ }, z.core.$strip>, z.ZodObject<{
4062
+ type: z.ZodLiteral<"api_key">;
4063
+ keyId: z.ZodString;
4064
+ ownerSub: z.ZodString;
4065
+ }, z.core.$strip>, z.ZodObject<{
4066
+ type: z.ZodLiteral<"service_account">;
4067
+ id: z.ZodString;
4068
+ }, z.core.$strip>, z.ZodObject<{
4069
+ type: z.ZodLiteral<"platform_operator">;
4070
+ sub: z.ZodString;
4071
+ reason: z.ZodString;
4072
+ sessionId: z.ZodOptional<z.ZodString>;
4073
+ }, z.core.$strip>, z.ZodObject<{
4074
+ type: z.ZodLiteral<"system">;
4075
+ component: z.ZodString;
4076
+ }, z.core.$strip>], "type">;
4077
+ }, z.core.$strip>, z.ZodObject<{
4078
+ type: z.ZodLiteral<"dashboard.fleet.host">;
4079
+ requestId: z.ZodString;
4080
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4081
+ type: z.ZodLiteral<"user">;
4082
+ sub: z.ZodString;
4083
+ }, z.core.$strip>, z.ZodObject<{
4084
+ type: z.ZodLiteral<"api_key">;
4085
+ keyId: z.ZodString;
4086
+ ownerSub: z.ZodString;
4087
+ }, z.core.$strip>, z.ZodObject<{
4088
+ type: z.ZodLiteral<"service_account">;
4089
+ id: z.ZodString;
4090
+ }, z.core.$strip>, z.ZodObject<{
4091
+ type: z.ZodLiteral<"platform_operator">;
4092
+ sub: z.ZodString;
4093
+ reason: z.ZodString;
4094
+ sessionId: z.ZodOptional<z.ZodString>;
4095
+ }, z.core.$strip>, z.ZodObject<{
4096
+ type: z.ZodLiteral<"system">;
4097
+ component: z.ZodString;
4098
+ }, z.core.$strip>], "type">;
4099
+ agentId: z.ZodString;
4100
+ }, z.core.$strip>, z.ZodObject<{
4101
+ type: z.ZodLiteral<"dashboard.fleet.preview">;
4102
+ requestId: z.ZodString;
4103
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4104
+ type: z.ZodLiteral<"user">;
4105
+ sub: z.ZodString;
4106
+ }, z.core.$strip>, z.ZodObject<{
4107
+ type: z.ZodLiteral<"api_key">;
4108
+ keyId: z.ZodString;
4109
+ ownerSub: z.ZodString;
4110
+ }, z.core.$strip>, z.ZodObject<{
4111
+ type: z.ZodLiteral<"service_account">;
4112
+ id: z.ZodString;
4113
+ }, z.core.$strip>, z.ZodObject<{
4114
+ type: z.ZodLiteral<"platform_operator">;
4115
+ sub: z.ZodString;
4116
+ reason: z.ZodString;
4117
+ sessionId: z.ZodOptional<z.ZodString>;
4118
+ }, z.core.$strip>, z.ZodObject<{
4119
+ type: z.ZodLiteral<"system">;
4120
+ component: z.ZodString;
4121
+ }, z.core.$strip>], "type">;
4122
+ workflowName: z.ZodString;
4123
+ }, z.core.$strip>, z.ZodObject<{
4124
+ type: z.ZodLiteral<"dashboard.fleet.host.declare">;
4125
+ requestId: z.ZodString;
4126
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4127
+ type: z.ZodLiteral<"user">;
4128
+ sub: z.ZodString;
4129
+ }, z.core.$strip>, z.ZodObject<{
4130
+ type: z.ZodLiteral<"api_key">;
4131
+ keyId: z.ZodString;
4132
+ ownerSub: z.ZodString;
4133
+ }, z.core.$strip>, z.ZodObject<{
4134
+ type: z.ZodLiteral<"service_account">;
4135
+ id: z.ZodString;
4136
+ }, z.core.$strip>, z.ZodObject<{
4137
+ type: z.ZodLiteral<"platform_operator">;
4138
+ sub: z.ZodString;
4139
+ reason: z.ZodString;
4140
+ sessionId: z.ZodOptional<z.ZodString>;
4141
+ }, z.core.$strip>, z.ZodObject<{
4142
+ type: z.ZodLiteral<"system">;
4143
+ component: z.ZodString;
4144
+ }, z.core.$strip>], "type">;
4145
+ agentId: z.ZodString;
4146
+ labels: z.ZodArray<z.ZodString>;
4147
+ hostname: z.ZodOptional<z.ZodString>;
4148
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4149
+ }, z.core.$strip>, z.ZodObject<{
4150
+ type: z.ZodLiteral<"dashboard.fleet.host.remove">;
4151
+ requestId: z.ZodString;
4152
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4153
+ type: z.ZodLiteral<"user">;
4154
+ sub: z.ZodString;
4155
+ }, z.core.$strip>, z.ZodObject<{
4156
+ type: z.ZodLiteral<"api_key">;
4157
+ keyId: z.ZodString;
4158
+ ownerSub: z.ZodString;
4159
+ }, z.core.$strip>, z.ZodObject<{
4160
+ type: z.ZodLiteral<"service_account">;
4161
+ id: z.ZodString;
4162
+ }, z.core.$strip>, z.ZodObject<{
4163
+ type: z.ZodLiteral<"platform_operator">;
4164
+ sub: z.ZodString;
4165
+ reason: z.ZodString;
4166
+ sessionId: z.ZodOptional<z.ZodString>;
4167
+ }, z.core.$strip>, z.ZodObject<{
4168
+ type: z.ZodLiteral<"system">;
4169
+ component: z.ZodString;
4170
+ }, z.core.$strip>], "type">;
4171
+ agentId: z.ZodString;
3744
4172
  }, z.core.$strip>, z.ZodObject<{
3745
4173
  type: z.ZodLiteral<"dashboard.scaler.capacity">;
3746
4174
  requestId: z.ZodString;
@@ -4177,6 +4605,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4177
4605
  "registration.disable": "registration.disable";
4178
4606
  "registration.delete": "registration.delete";
4179
4607
  "global_workflows.update": "global_workflows.update";
4608
+ "fleet.host.declare": "fleet.host.declare";
4609
+ "fleet.host.remove": "fleet.host.remove";
4180
4610
  "run.detail.read": "run.detail.read";
4181
4611
  "runs.list.read": "runs.list.read";
4182
4612
  "runs.filters.read": "runs.filters.read";
@@ -4216,6 +4646,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4216
4646
  "environment.history.read": "environment.history.read";
4217
4647
  "held_run.list.read": "held_run.list.read";
4218
4648
  "held_run.approve": "held_run.approve";
4649
+ "held_run.auto_approve": "held_run.auto_approve";
4219
4650
  "held_run.reject": "held_run.reject";
4220
4651
  "held_run.request": "held_run.request";
4221
4652
  "held_run.expire": "held_run.expire";
@@ -4223,6 +4654,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4223
4654
  "diagnostics.read": "diagnostics.read";
4224
4655
  "scaler.capacity.read": "scaler.capacity.read";
4225
4656
  "scaler.agents.read": "scaler.agents.read";
4657
+ "fleet.read": "fleet.read";
4226
4658
  "backend.list.read": "backend.list.read";
4227
4659
  "backend.get.read": "backend.get.read";
4228
4660
  "backend.sync": "backend.sync";
@@ -4259,6 +4691,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4259
4691
  backend: "backend";
4260
4692
  diagnostics: "diagnostics";
4261
4693
  scaler: "scaler";
4694
+ fleet: "fleet";
4262
4695
  held_run: "held_run";
4263
4696
  access_log: "access_log";
4264
4697
  event_dlq: "event_dlq";
@@ -4339,6 +4772,27 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4339
4772
  check: "check";
4340
4773
  "check-fail-on-drift": "check-fail-on-drift";
4341
4774
  }>>;
4775
+ target: z.ZodOptional<z.ZodObject<{
4776
+ values: z.ZodArray<z.ZodObject<{
4777
+ include: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4778
+ kind: z.ZodLiteral<"exact">;
4779
+ value: z.ZodString;
4780
+ }, z.core.$strip>, z.ZodObject<{
4781
+ kind: z.ZodLiteral<"regex">;
4782
+ source: z.ZodString;
4783
+ flags: z.ZodString;
4784
+ }, z.core.$strip>], "kind">>;
4785
+ exclude: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4786
+ kind: z.ZodLiteral<"exact">;
4787
+ value: z.ZodString;
4788
+ }, z.core.$strip>, z.ZodObject<{
4789
+ kind: z.ZodLiteral<"regex">;
4790
+ source: z.ZodString;
4791
+ flags: z.ZodString;
4792
+ }, z.core.$strip>], "kind">>;
4793
+ }, z.core.$strip>>;
4794
+ allowEmpty: z.ZodBoolean;
4795
+ }, z.core.$strip>>;
4342
4796
  secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4343
4797
  encryptedSecrets: z.ZodOptional<z.ZodString>;
4344
4798
  encryptedSecretsKey: z.ZodOptional<z.ZodString>;
@@ -4455,10 +4909,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4455
4909
  }, z.core.$strip>>;
4456
4910
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4457
4911
  upstreamName: z.ZodString;
4458
- ifFailed: z.ZodEnum<{
4459
- run: "run";
4460
- skip: "skip";
4461
- }>;
4912
+ runOn: z.ZodArray<z.ZodEnum<{
4913
+ skipped: "skipped";
4914
+ success: "success";
4915
+ pending: "pending";
4916
+ running: "running";
4917
+ failed: "failed";
4918
+ cancelled: "cancelled";
4919
+ cancelling: "cancelling";
4920
+ queued: "queued";
4921
+ recovering: "recovering";
4922
+ timed_out_stale: "timed_out_stale";
4923
+ drift_dropped: "drift_dropped";
4924
+ }>>;
4462
4925
  }, z.core.$strip>>>>;
4463
4926
  steps: z.ZodArray<z.ZodObject<{
4464
4927
  stepIndex: z.ZodNumber;
@@ -4833,6 +5296,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4833
5296
  }, z.core.$strict>]>>;
4834
5297
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4835
5298
  }, z.core.$strip>>>;
5299
+ payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5300
+ summaryMarkdown: z.ZodString;
5301
+ drift: z.ZodUnknown;
5302
+ }, z.core.$strip>>>;
4836
5303
  decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4837
5304
  approverUserId: z.ZodString;
4838
5305
  decision: z.ZodEnum<{
@@ -5023,6 +5490,98 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5023
5490
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5024
5491
  }, z.core.$strip>>>;
5025
5492
  error: z.ZodOptional<z.ZodString>;
5493
+ }, z.core.$strip>, z.ZodObject<{
5494
+ type: z.ZodLiteral<"dashboard.fleet.hosts.response">;
5495
+ requestId: z.ZodString;
5496
+ hosts: z.ZodArray<z.ZodObject<{
5497
+ agentId: z.ZodString;
5498
+ labels: z.ZodArray<z.ZodString>;
5499
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5500
+ hostname: z.ZodNullable<z.ZodString>;
5501
+ platform: z.ZodNullable<z.ZodString>;
5502
+ arch: z.ZodNullable<z.ZodString>;
5503
+ lifecycleClass: z.ZodEnum<{
5504
+ static: "static";
5505
+ ephemeral: "ephemeral";
5506
+ }>;
5507
+ status: z.ZodEnum<{
5508
+ ready: "ready";
5509
+ unreachable: "unreachable";
5510
+ stale: "stale";
5511
+ }>;
5512
+ lastSeen: z.ZodString;
5513
+ }, z.core.$strip>>;
5514
+ }, z.core.$strip>, z.ZodObject<{
5515
+ type: z.ZodLiteral<"dashboard.fleet.host.response">;
5516
+ requestId: z.ZodString;
5517
+ host: z.ZodNullable<z.ZodObject<{
5518
+ agentId: z.ZodString;
5519
+ labels: z.ZodArray<z.ZodString>;
5520
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5521
+ hostname: z.ZodNullable<z.ZodString>;
5522
+ platform: z.ZodNullable<z.ZodString>;
5523
+ arch: z.ZodNullable<z.ZodString>;
5524
+ lifecycleClass: z.ZodEnum<{
5525
+ static: "static";
5526
+ ephemeral: "ephemeral";
5527
+ }>;
5528
+ status: z.ZodEnum<{
5529
+ ready: "ready";
5530
+ unreachable: "unreachable";
5531
+ stale: "stale";
5532
+ }>;
5533
+ lastSeen: z.ZodString;
5534
+ }, z.core.$strip>>;
5535
+ runs: z.ZodArray<z.ZodObject<{
5536
+ runId: z.ZodString;
5537
+ workflowName: z.ZodNullable<z.ZodString>;
5538
+ status: z.ZodString;
5539
+ createdAt: z.ZodString;
5540
+ }, z.core.$strip>>;
5541
+ }, z.core.$strip>, z.ZodObject<{
5542
+ type: z.ZodLiteral<"dashboard.fleet.preview.response">;
5543
+ requestId: z.ZodString;
5544
+ matched: z.ZodArray<z.ZodObject<{
5545
+ entry: z.ZodObject<{
5546
+ agentId: z.ZodString;
5547
+ labels: z.ZodArray<z.ZodString>;
5548
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5549
+ hostname: z.ZodNullable<z.ZodString>;
5550
+ platform: z.ZodNullable<z.ZodString>;
5551
+ arch: z.ZodNullable<z.ZodString>;
5552
+ lifecycleClass: z.ZodEnum<{
5553
+ static: "static";
5554
+ ephemeral: "ephemeral";
5555
+ }>;
5556
+ status: z.ZodEnum<{
5557
+ ready: "ready";
5558
+ unreachable: "unreachable";
5559
+ stale: "stale";
5560
+ }>;
5561
+ lastSeen: z.ZodString;
5562
+ }, z.core.$strip>;
5563
+ disposition: z.ZodEnum<{
5564
+ target: "target";
5565
+ "unreachable-durable": "unreachable-durable";
5566
+ "skipped-ephemeral": "skipped-ephemeral";
5567
+ }>;
5568
+ }, z.core.$strip>>;
5569
+ onUnreachable: z.ZodEnum<{
5570
+ skip: "skip";
5571
+ fail: "fail";
5572
+ hold: "hold";
5573
+ }>;
5574
+ estimatedChildCount: z.ZodNumber;
5575
+ }, z.core.$strip>, z.ZodObject<{
5576
+ type: z.ZodLiteral<"dashboard.fleet.host.declare.response">;
5577
+ requestId: z.ZodString;
5578
+ declared: z.ZodOptional<z.ZodBoolean>;
5579
+ error: z.ZodOptional<z.ZodString>;
5580
+ }, z.core.$strip>, z.ZodObject<{
5581
+ type: z.ZodLiteral<"dashboard.fleet.host.remove.response">;
5582
+ requestId: z.ZodString;
5583
+ removed: z.ZodOptional<z.ZodBoolean>;
5584
+ error: z.ZodOptional<z.ZodString>;
5026
5585
  }, z.core.$strip>, z.ZodObject<{
5027
5586
  type: z.ZodLiteral<"dashboard.scaler.capacity.response">;
5028
5587
  requestId: z.ZodString;
@@ -5077,9 +5636,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5077
5636
  enabled: z.ZodBoolean;
5078
5637
  healthStatus: z.ZodEnum<{
5079
5638
  unknown: "unknown";
5639
+ unreachable: "unreachable";
5080
5640
  healthy: "healthy";
5081
5641
  degraded: "degraded";
5082
- unreachable: "unreachable";
5083
5642
  }>;
5084
5643
  scopeCount: z.ZodNumber;
5085
5644
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -5104,9 +5663,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5104
5663
  enabled: z.ZodBoolean;
5105
5664
  healthStatus: z.ZodEnum<{
5106
5665
  unknown: "unknown";
5666
+ unreachable: "unreachable";
5107
5667
  healthy: "healthy";
5108
5668
  degraded: "degraded";
5109
- unreachable: "unreachable";
5110
5669
  }>;
5111
5670
  scopeCount: z.ZodNumber;
5112
5671
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -5324,6 +5883,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5324
5883
  "registration.disable": "registration.disable";
5325
5884
  "registration.delete": "registration.delete";
5326
5885
  "global_workflows.update": "global_workflows.update";
5886
+ "fleet.host.declare": "fleet.host.declare";
5887
+ "fleet.host.remove": "fleet.host.remove";
5327
5888
  "run.detail.read": "run.detail.read";
5328
5889
  "runs.list.read": "runs.list.read";
5329
5890
  "runs.filters.read": "runs.filters.read";
@@ -5363,6 +5924,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5363
5924
  "environment.history.read": "environment.history.read";
5364
5925
  "held_run.list.read": "held_run.list.read";
5365
5926
  "held_run.approve": "held_run.approve";
5927
+ "held_run.auto_approve": "held_run.auto_approve";
5366
5928
  "held_run.reject": "held_run.reject";
5367
5929
  "held_run.request": "held_run.request";
5368
5930
  "held_run.expire": "held_run.expire";
@@ -5370,6 +5932,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5370
5932
  "diagnostics.read": "diagnostics.read";
5371
5933
  "scaler.capacity.read": "scaler.capacity.read";
5372
5934
  "scaler.agents.read": "scaler.agents.read";
5935
+ "fleet.read": "fleet.read";
5373
5936
  "backend.list.read": "backend.list.read";
5374
5937
  "backend.get.read": "backend.get.read";
5375
5938
  "backend.sync": "backend.sync";
@@ -5396,6 +5959,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5396
5959
  backend: "backend";
5397
5960
  diagnostics: "diagnostics";
5398
5961
  scaler: "scaler";
5962
+ fleet: "fleet";
5399
5963
  held_run: "held_run";
5400
5964
  access_log: "access_log";
5401
5965
  event_dlq: "event_dlq";
@@ -5570,10 +6134,19 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
5570
6134
  }, z.core.$strip>>;
5571
6135
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
5572
6136
  upstreamName: z.ZodString;
5573
- ifFailed: z.ZodEnum<{
5574
- run: "run";
5575
- skip: "skip";
5576
- }>;
6137
+ runOn: z.ZodArray<z.ZodEnum<{
6138
+ skipped: "skipped";
6139
+ success: "success";
6140
+ pending: "pending";
6141
+ running: "running";
6142
+ failed: "failed";
6143
+ cancelled: "cancelled";
6144
+ cancelling: "cancelling";
6145
+ queued: "queued";
6146
+ recovering: "recovering";
6147
+ timed_out_stale: "timed_out_stale";
6148
+ drift_dropped: "drift_dropped";
6149
+ }>>;
5577
6150
  }, z.core.$strip>>>>;
5578
6151
  steps: z.ZodArray<z.ZodObject<{
5579
6152
  stepIndex: z.ZodNumber;
@@ -5808,6 +6381,20 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
5808
6381
  raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5809
6382
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5810
6383
  scalerBackends: z.ZodArray<z.ZodString>;
6384
+ deployment: z.ZodObject<{
6385
+ mode: z.ZodEnum<{
6386
+ unknown: "unknown";
6387
+ systemd: "systemd";
6388
+ launchd: "launchd";
6389
+ windows: "windows";
6390
+ compose: "compose";
6391
+ }>;
6392
+ containerName: z.ZodNullable<z.ZodString>;
6393
+ containerRuntime: z.ZodNullable<z.ZodEnum<{
6394
+ podman: "podman";
6395
+ docker: "docker";
6396
+ }>>;
6397
+ }, z.core.$strip>;
5811
6398
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5812
6399
  agentCount: z.ZodNumber;
5813
6400
  runningJobs: z.ZodNumber;
@@ -5886,6 +6473,20 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
5886
6473
  raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5887
6474
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5888
6475
  scalerBackends: z.ZodArray<z.ZodString>;
6476
+ deployment: z.ZodObject<{
6477
+ mode: z.ZodEnum<{
6478
+ unknown: "unknown";
6479
+ systemd: "systemd";
6480
+ launchd: "launchd";
6481
+ windows: "windows";
6482
+ compose: "compose";
6483
+ }>;
6484
+ containerName: z.ZodNullable<z.ZodString>;
6485
+ containerRuntime: z.ZodNullable<z.ZodEnum<{
6486
+ podman: "podman";
6487
+ docker: "docker";
6488
+ }>>;
6489
+ }, z.core.$strip>;
5889
6490
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5890
6491
  agentCount: z.ZodNumber;
5891
6492
  runningJobs: z.ZodNumber;