@kici-dev/engine 0.1.21 → 0.1.23

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 (60) hide show
  1. package/dist/approval/types.d.ts +1 -1
  2. package/dist/approval/types.js +1 -1
  3. package/dist/audit/access-log-policy.js +9 -0
  4. package/dist/audit/activity.d.ts +3 -1
  5. package/dist/audit/activity.js +8 -16
  6. package/dist/audit/retention-policy.js +12 -0
  7. package/dist/environment/host-match.d.ts +25 -0
  8. package/dist/environment/host-match.js +67 -0
  9. package/dist/environment/index.d.ts +1 -0
  10. package/dist/environment/scope-resolver.d.ts +15 -4
  11. package/dist/environment/scope-resolver.js +55 -15
  12. package/dist/environment/scope-template.d.ts +18 -0
  13. package/dist/environment/scope-template.js +43 -0
  14. package/dist/environment/types.d.ts +7 -0
  15. package/dist/fanout/materialize.d.ts +55 -4
  16. package/dist/fanout/materialize.js +95 -49
  17. package/dist/index.d.ts +4 -2
  18. package/dist/index.js +14 -8
  19. package/dist/inputs/build.d.ts +9 -0
  20. package/dist/inputs/build.js +44 -0
  21. package/dist/inputs/coerce.d.ts +25 -0
  22. package/dist/inputs/coerce.js +51 -0
  23. package/dist/inputs/descriptor.d.ts +53 -0
  24. package/dist/inputs/descriptor.js +42 -0
  25. package/dist/inputs/extract.d.ts +15 -0
  26. package/dist/inputs/extract.js +117 -0
  27. package/dist/inputs/index.d.ts +5 -0
  28. package/dist/inputs/index.js +6 -0
  29. package/dist/inventory.d.ts +2 -2
  30. package/dist/labels/compile.d.ts +9 -0
  31. package/dist/labels/compile.js +10 -1
  32. package/dist/labels-match.d.ts +52 -0
  33. package/dist/labels-match.js +22 -1
  34. package/dist/labels.d.ts +29 -0
  35. package/dist/labels.js +32 -1
  36. package/dist/metrics/catalog-policy.d.ts +7 -0
  37. package/dist/metrics/catalog-policy.js +11 -12
  38. package/dist/metrics/metric-catalog.generated.d.ts +2 -2
  39. package/dist/metrics/metric-catalog.generated.js +10 -2
  40. package/dist/protocol/dashboard-write-operations.d.ts +8 -1
  41. package/dist/protocol/dashboard-write-operations.js +25 -4
  42. package/dist/protocol/messages/access-log.d.ts +40 -0
  43. package/dist/protocol/messages/access-log.js +9 -1
  44. package/dist/protocol/messages/auth.d.ts +2 -0
  45. package/dist/protocol/messages/capabilities.d.ts +2 -0
  46. package/dist/protocol/messages/dashboard.d.ts +766 -25
  47. package/dist/protocol/messages/dashboard.js +173 -9
  48. package/dist/protocol/messages/deployment-identity.d.ts +38 -0
  49. package/dist/protocol/messages/deployment-identity.js +28 -0
  50. package/dist/protocol/messages/orchestrator-agent.d.ts +64 -2
  51. package/dist/protocol/messages/orchestrator-agent.js +26 -7
  52. package/dist/protocol/messages/peer.js +1 -1
  53. package/dist/protocol/messages/platform-orchestrator.d.ts +197 -2
  54. package/dist/protocol/messages/run-events.d.ts +1 -1
  55. package/dist/protocol/messages/source-registration.d.ts +15 -0
  56. package/dist/protocol/messages/source-registration.js +17 -1
  57. package/dist/trigger/types.d.ts +114 -22
  58. package/dist/trigger/types.js +53 -12
  59. package/package.json +9 -1
  60. package/sbom.spdx.json +5 -5
@@ -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;
@@ -1493,6 +1511,16 @@ export declare const envSourceOverrideDeleteRequestSchema: z.ZodObject<{
1493
1511
  routingKey: z.ZodString;
1494
1512
  key: z.ZodString;
1495
1513
  }, z.core.$strip>;
1514
+ /**
1515
+ * A scope→environment binding with its host selector. `hostPattern` is the host
1516
+ * the binding applies to (`'**'` = all hosts); exact / glob / regex over a
1517
+ * fan-out child's agentId / hostname / labels.
1518
+ */
1519
+ export declare const envBindingEntrySchema: z.ZodObject<{
1520
+ scopePattern: z.ZodString;
1521
+ hostPattern: z.ZodString;
1522
+ }, z.core.$strip>;
1523
+ export type EnvBindingEntry = z.infer<typeof envBindingEntrySchema>;
1496
1524
  /** List bindings for an environment. */
1497
1525
  export declare const envBindingsListRequestSchema: z.ZodObject<{
1498
1526
  type: z.ZodLiteral<"dashboard.environments.bindings.list">;
@@ -1518,7 +1546,7 @@ export declare const envBindingsListRequestSchema: z.ZodObject<{
1518
1546
  }, z.core.$strip>], "type">;
1519
1547
  environmentId: z.ZodString;
1520
1548
  }, z.core.$strip>;
1521
- /** Set bindings (scope patterns) for an environment. */
1549
+ /** Set bindings (scope + host patterns) for an environment. */
1522
1550
  export declare const envBindingsSetRequestSchema: z.ZodObject<{
1523
1551
  type: z.ZodLiteral<"dashboard.environments.bindings.set">;
1524
1552
  requestId: z.ZodString;
@@ -1542,7 +1570,10 @@ export declare const envBindingsSetRequestSchema: z.ZodObject<{
1542
1570
  component: z.ZodString;
1543
1571
  }, z.core.$strip>], "type">;
1544
1572
  environmentId: z.ZodString;
1545
- scopePatterns: z.ZodArray<z.ZodString>;
1573
+ bindings: z.ZodArray<z.ZodObject<{
1574
+ scopePattern: z.ZodString;
1575
+ hostPattern: z.ZodString;
1576
+ }, z.core.$strip>>;
1546
1577
  }, z.core.$strip>;
1547
1578
  /** List all scoped secrets for the org. */
1548
1579
  export declare const envSecretsListRequestSchema: z.ZodObject<{
@@ -1814,6 +1845,10 @@ declare const heldRunsListResponseSchema: z.ZodObject<{
1814
1845
  }, z.core.$strict>]>>;
1815
1846
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1816
1847
  }, z.core.$strip>>>;
1848
+ payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1849
+ summaryMarkdown: z.ZodString;
1850
+ drift: z.ZodUnknown;
1851
+ }, z.core.$strip>>>;
1817
1852
  decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1818
1853
  approverUserId: z.ZodString;
1819
1854
  decision: z.ZodEnum<{
@@ -1854,6 +1889,7 @@ export declare const heldRunApproveRequestSchema: z.ZodObject<{
1854
1889
  component: z.ZodString;
1855
1890
  }, z.core.$strip>], "type">;
1856
1891
  heldRunId: z.ZodString;
1892
+ autoApprove: z.ZodOptional<z.ZodBoolean>;
1857
1893
  }, z.core.$strip>;
1858
1894
  /** Reject a held run. */
1859
1895
  export declare const heldRunRejectRequestSchema: z.ZodObject<{
@@ -1906,6 +1942,343 @@ export declare const dashboardDiagnosticsRequestSchema: z.ZodObject<{
1906
1942
  }, z.core.$strip>], "type">;
1907
1943
  includeAgents: z.ZodOptional<z.ZodBoolean>;
1908
1944
  }, z.core.$strip>;
1945
+ /** A run pinned to a host, for the host-detail "recent runs" list. */
1946
+ export declare const fleetPinnedRunSchema: z.ZodObject<{
1947
+ runId: z.ZodString;
1948
+ workflowName: z.ZodNullable<z.ZodString>;
1949
+ status: z.ZodString;
1950
+ createdAt: z.ZodString;
1951
+ }, z.core.$strip>;
1952
+ export type FleetPinnedRun = z.infer<typeof fleetPinnedRunSchema>;
1953
+ /** How a runsOnAll fan-out would treat one host, given its current reachability. */
1954
+ export declare const FleetHostDisposition: z.ZodEnum<{
1955
+ target: "target";
1956
+ "unreachable-durable": "unreachable-durable";
1957
+ "skipped-ephemeral": "skipped-ephemeral";
1958
+ }>;
1959
+ export type FleetHostDisposition = z.infer<typeof FleetHostDisposition>;
1960
+ /** A host matched by a runsOnAll preview, plus how the fan-out would treat it. */
1961
+ export declare const fleetPreviewHostSchema: z.ZodObject<{
1962
+ entry: z.ZodObject<{
1963
+ agentId: z.ZodString;
1964
+ labels: z.ZodArray<z.ZodString>;
1965
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
1966
+ hostname: z.ZodNullable<z.ZodString>;
1967
+ platform: z.ZodNullable<z.ZodString>;
1968
+ arch: z.ZodNullable<z.ZodString>;
1969
+ lifecycleClass: z.ZodEnum<{
1970
+ static: "static";
1971
+ ephemeral: "ephemeral";
1972
+ }>;
1973
+ status: z.ZodEnum<{
1974
+ ready: "ready";
1975
+ unreachable: "unreachable";
1976
+ stale: "stale";
1977
+ }>;
1978
+ lastSeen: z.ZodString;
1979
+ }, z.core.$strip>;
1980
+ disposition: z.ZodEnum<{
1981
+ target: "target";
1982
+ "unreachable-durable": "unreachable-durable";
1983
+ "skipped-ephemeral": "skipped-ephemeral";
1984
+ }>;
1985
+ }, z.core.$strip>;
1986
+ export type FleetPreviewHost = z.infer<typeof fleetPreviewHostSchema>;
1987
+ export declare const dashboardFleetHostsRequestSchema: z.ZodObject<{
1988
+ type: z.ZodLiteral<"dashboard.fleet.hosts">;
1989
+ requestId: z.ZodString;
1990
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1991
+ type: z.ZodLiteral<"user">;
1992
+ sub: z.ZodString;
1993
+ }, z.core.$strip>, z.ZodObject<{
1994
+ type: z.ZodLiteral<"api_key">;
1995
+ keyId: z.ZodString;
1996
+ ownerSub: z.ZodString;
1997
+ }, z.core.$strip>, z.ZodObject<{
1998
+ type: z.ZodLiteral<"service_account">;
1999
+ id: z.ZodString;
2000
+ }, z.core.$strip>, z.ZodObject<{
2001
+ type: z.ZodLiteral<"platform_operator">;
2002
+ sub: z.ZodString;
2003
+ reason: z.ZodString;
2004
+ sessionId: z.ZodOptional<z.ZodString>;
2005
+ }, z.core.$strip>, z.ZodObject<{
2006
+ type: z.ZodLiteral<"system">;
2007
+ component: z.ZodString;
2008
+ }, z.core.$strip>], "type">;
2009
+ }, z.core.$strip>;
2010
+ export declare const dashboardFleetHostRequestSchema: z.ZodObject<{
2011
+ type: z.ZodLiteral<"dashboard.fleet.host">;
2012
+ requestId: z.ZodString;
2013
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2014
+ type: z.ZodLiteral<"user">;
2015
+ sub: z.ZodString;
2016
+ }, z.core.$strip>, z.ZodObject<{
2017
+ type: z.ZodLiteral<"api_key">;
2018
+ keyId: z.ZodString;
2019
+ ownerSub: z.ZodString;
2020
+ }, z.core.$strip>, z.ZodObject<{
2021
+ type: z.ZodLiteral<"service_account">;
2022
+ id: z.ZodString;
2023
+ }, z.core.$strip>, z.ZodObject<{
2024
+ type: z.ZodLiteral<"platform_operator">;
2025
+ sub: z.ZodString;
2026
+ reason: z.ZodString;
2027
+ sessionId: z.ZodOptional<z.ZodString>;
2028
+ }, z.core.$strip>, z.ZodObject<{
2029
+ type: z.ZodLiteral<"system">;
2030
+ component: z.ZodString;
2031
+ }, z.core.$strip>], "type">;
2032
+ agentId: z.ZodString;
2033
+ }, z.core.$strip>;
2034
+ export declare const dashboardFleetPreviewRequestSchema: z.ZodObject<{
2035
+ type: z.ZodLiteral<"dashboard.fleet.preview">;
2036
+ requestId: z.ZodString;
2037
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2038
+ type: z.ZodLiteral<"user">;
2039
+ sub: z.ZodString;
2040
+ }, z.core.$strip>, z.ZodObject<{
2041
+ type: z.ZodLiteral<"api_key">;
2042
+ keyId: z.ZodString;
2043
+ ownerSub: z.ZodString;
2044
+ }, z.core.$strip>, z.ZodObject<{
2045
+ type: z.ZodLiteral<"service_account">;
2046
+ id: z.ZodString;
2047
+ }, z.core.$strip>, z.ZodObject<{
2048
+ type: z.ZodLiteral<"platform_operator">;
2049
+ sub: z.ZodString;
2050
+ reason: z.ZodString;
2051
+ sessionId: z.ZodOptional<z.ZodString>;
2052
+ }, z.core.$strip>, z.ZodObject<{
2053
+ type: z.ZodLiteral<"system">;
2054
+ component: z.ZodString;
2055
+ }, z.core.$strip>], "type">;
2056
+ workflowName: z.ZodString;
2057
+ }, z.core.$strip>;
2058
+ export declare const dashboardFleetHostsResponseSchema: z.ZodObject<{
2059
+ type: z.ZodLiteral<"dashboard.fleet.hosts.response">;
2060
+ requestId: z.ZodString;
2061
+ hosts: z.ZodArray<z.ZodObject<{
2062
+ agentId: z.ZodString;
2063
+ labels: z.ZodArray<z.ZodString>;
2064
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2065
+ hostname: z.ZodNullable<z.ZodString>;
2066
+ platform: z.ZodNullable<z.ZodString>;
2067
+ arch: z.ZodNullable<z.ZodString>;
2068
+ lifecycleClass: z.ZodEnum<{
2069
+ static: "static";
2070
+ ephemeral: "ephemeral";
2071
+ }>;
2072
+ status: z.ZodEnum<{
2073
+ ready: "ready";
2074
+ unreachable: "unreachable";
2075
+ stale: "stale";
2076
+ }>;
2077
+ lastSeen: z.ZodString;
2078
+ }, z.core.$strip>>;
2079
+ }, z.core.$strip>;
2080
+ export declare const dashboardFleetHostResponseSchema: z.ZodObject<{
2081
+ type: z.ZodLiteral<"dashboard.fleet.host.response">;
2082
+ requestId: z.ZodString;
2083
+ host: z.ZodNullable<z.ZodObject<{
2084
+ agentId: z.ZodString;
2085
+ labels: z.ZodArray<z.ZodString>;
2086
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2087
+ hostname: z.ZodNullable<z.ZodString>;
2088
+ platform: z.ZodNullable<z.ZodString>;
2089
+ arch: z.ZodNullable<z.ZodString>;
2090
+ lifecycleClass: z.ZodEnum<{
2091
+ static: "static";
2092
+ ephemeral: "ephemeral";
2093
+ }>;
2094
+ status: z.ZodEnum<{
2095
+ ready: "ready";
2096
+ unreachable: "unreachable";
2097
+ stale: "stale";
2098
+ }>;
2099
+ lastSeen: z.ZodString;
2100
+ }, z.core.$strip>>;
2101
+ runs: z.ZodArray<z.ZodObject<{
2102
+ runId: z.ZodString;
2103
+ workflowName: z.ZodNullable<z.ZodString>;
2104
+ status: z.ZodString;
2105
+ createdAt: z.ZodString;
2106
+ }, z.core.$strip>>;
2107
+ }, z.core.$strip>;
2108
+ export declare const dashboardFleetPreviewResponseSchema: z.ZodObject<{
2109
+ type: z.ZodLiteral<"dashboard.fleet.preview.response">;
2110
+ requestId: z.ZodString;
2111
+ matched: z.ZodArray<z.ZodObject<{
2112
+ entry: z.ZodObject<{
2113
+ agentId: z.ZodString;
2114
+ labels: z.ZodArray<z.ZodString>;
2115
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
2116
+ hostname: z.ZodNullable<z.ZodString>;
2117
+ platform: z.ZodNullable<z.ZodString>;
2118
+ arch: z.ZodNullable<z.ZodString>;
2119
+ lifecycleClass: z.ZodEnum<{
2120
+ static: "static";
2121
+ ephemeral: "ephemeral";
2122
+ }>;
2123
+ status: z.ZodEnum<{
2124
+ ready: "ready";
2125
+ unreachable: "unreachable";
2126
+ stale: "stale";
2127
+ }>;
2128
+ lastSeen: z.ZodString;
2129
+ }, z.core.$strip>;
2130
+ disposition: z.ZodEnum<{
2131
+ target: "target";
2132
+ "unreachable-durable": "unreachable-durable";
2133
+ "skipped-ephemeral": "skipped-ephemeral";
2134
+ }>;
2135
+ }, z.core.$strip>>;
2136
+ onUnreachable: z.ZodEnum<{
2137
+ skip: "skip";
2138
+ fail: "fail";
2139
+ hold: "hold";
2140
+ }>;
2141
+ estimatedChildCount: z.ZodNumber;
2142
+ }, z.core.$strip>;
2143
+ export type DashboardFleetHostsRequest = z.infer<typeof dashboardFleetHostsRequestSchema>;
2144
+ export type DashboardFleetHostRequest = z.infer<typeof dashboardFleetHostRequestSchema>;
2145
+ export type DashboardFleetPreviewRequest = z.infer<typeof dashboardFleetPreviewRequestSchema>;
2146
+ export type DashboardFleetHostsResponse = z.infer<typeof dashboardFleetHostsResponseSchema>;
2147
+ export type DashboardFleetHostResponse = z.infer<typeof dashboardFleetHostResponseSchema>;
2148
+ export type DashboardFleetPreviewResponse = z.infer<typeof dashboardFleetPreviewResponseSchema>;
2149
+ /** Request: which registered runsOnAll fan-outs target this host? */
2150
+ export declare const dashboardFleetWorkflowsForHostRequestSchema: z.ZodObject<{
2151
+ type: z.ZodLiteral<"dashboard.fleet.workflows-for-host">;
2152
+ requestId: z.ZodString;
2153
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2154
+ type: z.ZodLiteral<"user">;
2155
+ sub: z.ZodString;
2156
+ }, z.core.$strip>, z.ZodObject<{
2157
+ type: z.ZodLiteral<"api_key">;
2158
+ keyId: z.ZodString;
2159
+ ownerSub: z.ZodString;
2160
+ }, z.core.$strip>, z.ZodObject<{
2161
+ type: z.ZodLiteral<"service_account">;
2162
+ id: z.ZodString;
2163
+ }, z.core.$strip>, z.ZodObject<{
2164
+ type: z.ZodLiteral<"platform_operator">;
2165
+ sub: z.ZodString;
2166
+ reason: z.ZodString;
2167
+ sessionId: z.ZodOptional<z.ZodString>;
2168
+ }, z.core.$strip>, z.ZodObject<{
2169
+ type: z.ZodLiteral<"system">;
2170
+ component: z.ZodString;
2171
+ }, z.core.$strip>], "type">;
2172
+ agentId: z.ZodString;
2173
+ }, z.core.$strip>;
2174
+ /** One registered runsOnAll workflow whose selector matches the host. */
2175
+ export declare const fleetHostWorkflowSchema: z.ZodObject<{
2176
+ workflowName: z.ZodString;
2177
+ repoIdentifier: z.ZodString;
2178
+ sourceFile: z.ZodNullable<z.ZodString>;
2179
+ onUnreachable: z.ZodEnum<{
2180
+ skip: "skip";
2181
+ fail: "fail";
2182
+ hold: "hold";
2183
+ }>;
2184
+ disposition: z.ZodEnum<{
2185
+ target: "target";
2186
+ "unreachable-durable": "unreachable-durable";
2187
+ "skipped-ephemeral": "skipped-ephemeral";
2188
+ }>;
2189
+ }, z.core.$strip>;
2190
+ export type FleetHostWorkflow = z.infer<typeof fleetHostWorkflowSchema>;
2191
+ export declare const dashboardFleetWorkflowsForHostResponseSchema: z.ZodObject<{
2192
+ type: z.ZodLiteral<"dashboard.fleet.workflows-for-host.response">;
2193
+ requestId: z.ZodString;
2194
+ workflows: z.ZodArray<z.ZodObject<{
2195
+ workflowName: z.ZodString;
2196
+ repoIdentifier: z.ZodString;
2197
+ sourceFile: z.ZodNullable<z.ZodString>;
2198
+ onUnreachable: z.ZodEnum<{
2199
+ skip: "skip";
2200
+ fail: "fail";
2201
+ hold: "hold";
2202
+ }>;
2203
+ disposition: z.ZodEnum<{
2204
+ target: "target";
2205
+ "unreachable-durable": "unreachable-durable";
2206
+ "skipped-ephemeral": "skipped-ephemeral";
2207
+ }>;
2208
+ }, z.core.$strip>>;
2209
+ }, z.core.$strip>;
2210
+ export type DashboardFleetWorkflowsForHostRequest = z.infer<typeof dashboardFleetWorkflowsForHostRequestSchema>;
2211
+ export type DashboardFleetWorkflowsForHostResponse = z.infer<typeof dashboardFleetWorkflowsForHostResponseSchema>;
2212
+ /** Declare a static host into the roster (wraps HostRosterStore.declareStatic). */
2213
+ export declare const fleetHostDeclareRequestSchema: z.ZodObject<{
2214
+ type: z.ZodLiteral<"dashboard.fleet.host.declare">;
2215
+ requestId: z.ZodString;
2216
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2217
+ type: z.ZodLiteral<"user">;
2218
+ sub: z.ZodString;
2219
+ }, z.core.$strip>, z.ZodObject<{
2220
+ type: z.ZodLiteral<"api_key">;
2221
+ keyId: z.ZodString;
2222
+ ownerSub: z.ZodString;
2223
+ }, z.core.$strip>, z.ZodObject<{
2224
+ type: z.ZodLiteral<"service_account">;
2225
+ id: z.ZodString;
2226
+ }, z.core.$strip>, z.ZodObject<{
2227
+ type: z.ZodLiteral<"platform_operator">;
2228
+ sub: z.ZodString;
2229
+ reason: z.ZodString;
2230
+ sessionId: z.ZodOptional<z.ZodString>;
2231
+ }, z.core.$strip>, z.ZodObject<{
2232
+ type: z.ZodLiteral<"system">;
2233
+ component: z.ZodString;
2234
+ }, z.core.$strip>], "type">;
2235
+ agentId: z.ZodString;
2236
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
2237
+ hostname: z.ZodOptional<z.ZodString>;
2238
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2239
+ }, z.core.$strip>;
2240
+ export declare const fleetHostDeclareResponseSchema: z.ZodObject<{
2241
+ type: z.ZodLiteral<"dashboard.fleet.host.declare.response">;
2242
+ requestId: z.ZodString;
2243
+ declared: z.ZodOptional<z.ZodBoolean>;
2244
+ created: z.ZodOptional<z.ZodBoolean>;
2245
+ error: z.ZodOptional<z.ZodString>;
2246
+ }, z.core.$strip>;
2247
+ /** Remove a host from the roster by agent id (HostRosterStore.removeStatic). */
2248
+ export declare const fleetHostRemoveRequestSchema: z.ZodObject<{
2249
+ type: z.ZodLiteral<"dashboard.fleet.host.remove">;
2250
+ requestId: z.ZodString;
2251
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2252
+ type: z.ZodLiteral<"user">;
2253
+ sub: z.ZodString;
2254
+ }, z.core.$strip>, z.ZodObject<{
2255
+ type: z.ZodLiteral<"api_key">;
2256
+ keyId: z.ZodString;
2257
+ ownerSub: z.ZodString;
2258
+ }, z.core.$strip>, z.ZodObject<{
2259
+ type: z.ZodLiteral<"service_account">;
2260
+ id: z.ZodString;
2261
+ }, z.core.$strip>, z.ZodObject<{
2262
+ type: z.ZodLiteral<"platform_operator">;
2263
+ sub: z.ZodString;
2264
+ reason: z.ZodString;
2265
+ sessionId: z.ZodOptional<z.ZodString>;
2266
+ }, z.core.$strip>, z.ZodObject<{
2267
+ type: z.ZodLiteral<"system">;
2268
+ component: z.ZodString;
2269
+ }, z.core.$strip>], "type">;
2270
+ agentId: z.ZodString;
2271
+ }, z.core.$strip>;
2272
+ export declare const fleetHostRemoveResponseSchema: z.ZodObject<{
2273
+ type: z.ZodLiteral<"dashboard.fleet.host.remove.response">;
2274
+ requestId: z.ZodString;
2275
+ removed: z.ZodOptional<z.ZodBoolean>;
2276
+ error: z.ZodOptional<z.ZodString>;
2277
+ }, z.core.$strip>;
2278
+ export type FleetHostDeclareRequest = z.infer<typeof fleetHostDeclareRequestSchema>;
2279
+ export type FleetHostDeclareResponse = z.infer<typeof fleetHostDeclareResponseSchema>;
2280
+ export type FleetHostRemoveRequest = z.infer<typeof fleetHostRemoveRequestSchema>;
2281
+ export type FleetHostRemoveResponse = z.infer<typeof fleetHostRemoveResponseSchema>;
1909
2282
  /** Peer orchestrator reported by coordinator in diagnostics. */
1910
2283
  declare const diagnosticsPeerSchema: z.ZodObject<{
1911
2284
  instanceId: z.ZodString;
@@ -2353,9 +2726,9 @@ export declare const backendItemSchema: z.ZodObject<{
2353
2726
  enabled: z.ZodBoolean;
2354
2727
  healthStatus: z.ZodEnum<{
2355
2728
  unknown: "unknown";
2729
+ unreachable: "unreachable";
2356
2730
  healthy: "healthy";
2357
2731
  degraded: "degraded";
2358
- unreachable: "unreachable";
2359
2732
  }>;
2360
2733
  scopeCount: z.ZodNumber;
2361
2734
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -2380,9 +2753,9 @@ export declare const backendsListResponseSchema: z.ZodObject<{
2380
2753
  enabled: z.ZodBoolean;
2381
2754
  healthStatus: z.ZodEnum<{
2382
2755
  unknown: "unknown";
2756
+ unreachable: "unreachable";
2383
2757
  healthy: "healthy";
2384
2758
  degraded: "degraded";
2385
- unreachable: "unreachable";
2386
2759
  }>;
2387
2760
  scopeCount: z.ZodNumber;
2388
2761
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -2434,9 +2807,9 @@ export declare const backendGetResponseSchema: z.ZodObject<{
2434
2807
  enabled: z.ZodBoolean;
2435
2808
  healthStatus: z.ZodEnum<{
2436
2809
  unknown: "unknown";
2810
+ unreachable: "unreachable";
2437
2811
  healthy: "healthy";
2438
2812
  degraded: "degraded";
2439
- unreachable: "unreachable";
2440
2813
  }>;
2441
2814
  scopeCount: z.ZodNumber;
2442
2815
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -2636,6 +3009,28 @@ export declare const testRelayTriggerRequestSchema: z.ZodObject<{
2636
3009
  check: "check";
2637
3010
  "check-fail-on-drift": "check-fail-on-drift";
2638
3011
  }>>;
3012
+ target: z.ZodOptional<z.ZodObject<{
3013
+ values: z.ZodArray<z.ZodObject<{
3014
+ include: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3015
+ kind: z.ZodLiteral<"exact">;
3016
+ value: z.ZodString;
3017
+ }, z.core.$strip>, z.ZodObject<{
3018
+ kind: z.ZodLiteral<"regex">;
3019
+ source: z.ZodString;
3020
+ flags: z.ZodString;
3021
+ }, z.core.$strip>], "kind">>;
3022
+ exclude: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3023
+ kind: z.ZodLiteral<"exact">;
3024
+ value: z.ZodString;
3025
+ }, z.core.$strip>, z.ZodObject<{
3026
+ kind: z.ZodLiteral<"regex">;
3027
+ source: z.ZodString;
3028
+ flags: z.ZodString;
3029
+ }, z.core.$strip>], "kind">>;
3030
+ }, z.core.$strip>>;
3031
+ allowEmpty: z.ZodBoolean;
3032
+ }, z.core.$strip>>;
3033
+ dispatchInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2639
3034
  secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2640
3035
  encryptedSecrets: z.ZodOptional<z.ZodString>;
2641
3036
  encryptedSecretsKey: z.ZodOptional<z.ZodString>;
@@ -3399,7 +3794,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3399
3794
  component: z.ZodString;
3400
3795
  }, z.core.$strip>], "type">;
3401
3796
  environmentId: z.ZodString;
3402
- scopePatterns: z.ZodArray<z.ZodString>;
3797
+ bindings: z.ZodArray<z.ZodObject<{
3798
+ scopePattern: z.ZodString;
3799
+ hostPattern: z.ZodString;
3800
+ }, z.core.$strip>>;
3403
3801
  }, z.core.$strip>, z.ZodObject<{
3404
3802
  type: z.ZodLiteral<"dashboard.environments.secrets.list">;
3405
3803
  requestId: z.ZodString;
@@ -3622,6 +4020,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3622
4020
  component: z.ZodString;
3623
4021
  }, z.core.$strip>], "type">;
3624
4022
  heldRunId: z.ZodString;
4023
+ autoApprove: z.ZodOptional<z.ZodBoolean>;
3625
4024
  }, z.core.$strip>, z.ZodObject<{
3626
4025
  type: z.ZodLiteral<"dashboard.held-runs.reject">;
3627
4026
  requestId: z.ZodString;
@@ -3741,6 +4140,146 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
3741
4140
  component: z.ZodString;
3742
4141
  }, z.core.$strip>], "type">;
3743
4142
  includeAgents: z.ZodOptional<z.ZodBoolean>;
4143
+ }, z.core.$strip>, z.ZodObject<{
4144
+ type: z.ZodLiteral<"dashboard.fleet.hosts">;
4145
+ requestId: z.ZodString;
4146
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4147
+ type: z.ZodLiteral<"user">;
4148
+ sub: z.ZodString;
4149
+ }, z.core.$strip>, z.ZodObject<{
4150
+ type: z.ZodLiteral<"api_key">;
4151
+ keyId: z.ZodString;
4152
+ ownerSub: z.ZodString;
4153
+ }, z.core.$strip>, z.ZodObject<{
4154
+ type: z.ZodLiteral<"service_account">;
4155
+ id: z.ZodString;
4156
+ }, z.core.$strip>, z.ZodObject<{
4157
+ type: z.ZodLiteral<"platform_operator">;
4158
+ sub: z.ZodString;
4159
+ reason: z.ZodString;
4160
+ sessionId: z.ZodOptional<z.ZodString>;
4161
+ }, z.core.$strip>, z.ZodObject<{
4162
+ type: z.ZodLiteral<"system">;
4163
+ component: z.ZodString;
4164
+ }, z.core.$strip>], "type">;
4165
+ }, z.core.$strip>, z.ZodObject<{
4166
+ type: z.ZodLiteral<"dashboard.fleet.host">;
4167
+ requestId: z.ZodString;
4168
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4169
+ type: z.ZodLiteral<"user">;
4170
+ sub: z.ZodString;
4171
+ }, z.core.$strip>, z.ZodObject<{
4172
+ type: z.ZodLiteral<"api_key">;
4173
+ keyId: z.ZodString;
4174
+ ownerSub: z.ZodString;
4175
+ }, z.core.$strip>, z.ZodObject<{
4176
+ type: z.ZodLiteral<"service_account">;
4177
+ id: z.ZodString;
4178
+ }, z.core.$strip>, z.ZodObject<{
4179
+ type: z.ZodLiteral<"platform_operator">;
4180
+ sub: z.ZodString;
4181
+ reason: z.ZodString;
4182
+ sessionId: z.ZodOptional<z.ZodString>;
4183
+ }, z.core.$strip>, z.ZodObject<{
4184
+ type: z.ZodLiteral<"system">;
4185
+ component: z.ZodString;
4186
+ }, z.core.$strip>], "type">;
4187
+ agentId: z.ZodString;
4188
+ }, z.core.$strip>, z.ZodObject<{
4189
+ type: z.ZodLiteral<"dashboard.fleet.preview">;
4190
+ requestId: z.ZodString;
4191
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4192
+ type: z.ZodLiteral<"user">;
4193
+ sub: z.ZodString;
4194
+ }, z.core.$strip>, z.ZodObject<{
4195
+ type: z.ZodLiteral<"api_key">;
4196
+ keyId: z.ZodString;
4197
+ ownerSub: z.ZodString;
4198
+ }, z.core.$strip>, z.ZodObject<{
4199
+ type: z.ZodLiteral<"service_account">;
4200
+ id: z.ZodString;
4201
+ }, z.core.$strip>, z.ZodObject<{
4202
+ type: z.ZodLiteral<"platform_operator">;
4203
+ sub: z.ZodString;
4204
+ reason: z.ZodString;
4205
+ sessionId: z.ZodOptional<z.ZodString>;
4206
+ }, z.core.$strip>, z.ZodObject<{
4207
+ type: z.ZodLiteral<"system">;
4208
+ component: z.ZodString;
4209
+ }, z.core.$strip>], "type">;
4210
+ workflowName: z.ZodString;
4211
+ }, z.core.$strip>, z.ZodObject<{
4212
+ type: z.ZodLiteral<"dashboard.fleet.workflows-for-host">;
4213
+ requestId: z.ZodString;
4214
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4215
+ type: z.ZodLiteral<"user">;
4216
+ sub: z.ZodString;
4217
+ }, z.core.$strip>, z.ZodObject<{
4218
+ type: z.ZodLiteral<"api_key">;
4219
+ keyId: z.ZodString;
4220
+ ownerSub: z.ZodString;
4221
+ }, z.core.$strip>, z.ZodObject<{
4222
+ type: z.ZodLiteral<"service_account">;
4223
+ id: z.ZodString;
4224
+ }, z.core.$strip>, z.ZodObject<{
4225
+ type: z.ZodLiteral<"platform_operator">;
4226
+ sub: z.ZodString;
4227
+ reason: z.ZodString;
4228
+ sessionId: z.ZodOptional<z.ZodString>;
4229
+ }, z.core.$strip>, z.ZodObject<{
4230
+ type: z.ZodLiteral<"system">;
4231
+ component: z.ZodString;
4232
+ }, z.core.$strip>], "type">;
4233
+ agentId: z.ZodString;
4234
+ }, z.core.$strip>, z.ZodObject<{
4235
+ type: z.ZodLiteral<"dashboard.fleet.host.declare">;
4236
+ requestId: z.ZodString;
4237
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4238
+ type: z.ZodLiteral<"user">;
4239
+ sub: z.ZodString;
4240
+ }, z.core.$strip>, z.ZodObject<{
4241
+ type: z.ZodLiteral<"api_key">;
4242
+ keyId: z.ZodString;
4243
+ ownerSub: z.ZodString;
4244
+ }, z.core.$strip>, z.ZodObject<{
4245
+ type: z.ZodLiteral<"service_account">;
4246
+ id: z.ZodString;
4247
+ }, z.core.$strip>, z.ZodObject<{
4248
+ type: z.ZodLiteral<"platform_operator">;
4249
+ sub: z.ZodString;
4250
+ reason: z.ZodString;
4251
+ sessionId: z.ZodOptional<z.ZodString>;
4252
+ }, z.core.$strip>, z.ZodObject<{
4253
+ type: z.ZodLiteral<"system">;
4254
+ component: z.ZodString;
4255
+ }, z.core.$strip>], "type">;
4256
+ agentId: z.ZodString;
4257
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
4258
+ hostname: z.ZodOptional<z.ZodString>;
4259
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
4260
+ }, z.core.$strip>, z.ZodObject<{
4261
+ type: z.ZodLiteral<"dashboard.fleet.host.remove">;
4262
+ requestId: z.ZodString;
4263
+ actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4264
+ type: z.ZodLiteral<"user">;
4265
+ sub: z.ZodString;
4266
+ }, z.core.$strip>, z.ZodObject<{
4267
+ type: z.ZodLiteral<"api_key">;
4268
+ keyId: z.ZodString;
4269
+ ownerSub: z.ZodString;
4270
+ }, z.core.$strip>, z.ZodObject<{
4271
+ type: z.ZodLiteral<"service_account">;
4272
+ id: z.ZodString;
4273
+ }, z.core.$strip>, z.ZodObject<{
4274
+ type: z.ZodLiteral<"platform_operator">;
4275
+ sub: z.ZodString;
4276
+ reason: z.ZodString;
4277
+ sessionId: z.ZodOptional<z.ZodString>;
4278
+ }, z.core.$strip>, z.ZodObject<{
4279
+ type: z.ZodLiteral<"system">;
4280
+ component: z.ZodString;
4281
+ }, z.core.$strip>], "type">;
4282
+ agentId: z.ZodString;
3744
4283
  }, z.core.$strip>, z.ZodObject<{
3745
4284
  type: z.ZodLiteral<"dashboard.scaler.capacity">;
3746
4285
  requestId: z.ZodString;
@@ -4177,6 +4716,8 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4177
4716
  "registration.disable": "registration.disable";
4178
4717
  "registration.delete": "registration.delete";
4179
4718
  "global_workflows.update": "global_workflows.update";
4719
+ "fleet.host.declare": "fleet.host.declare";
4720
+ "fleet.host.remove": "fleet.host.remove";
4180
4721
  "run.detail.read": "run.detail.read";
4181
4722
  "runs.list.read": "runs.list.read";
4182
4723
  "runs.filters.read": "runs.filters.read";
@@ -4216,6 +4757,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4216
4757
  "environment.history.read": "environment.history.read";
4217
4758
  "held_run.list.read": "held_run.list.read";
4218
4759
  "held_run.approve": "held_run.approve";
4760
+ "held_run.auto_approve": "held_run.auto_approve";
4219
4761
  "held_run.reject": "held_run.reject";
4220
4762
  "held_run.request": "held_run.request";
4221
4763
  "held_run.expire": "held_run.expire";
@@ -4223,6 +4765,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4223
4765
  "diagnostics.read": "diagnostics.read";
4224
4766
  "scaler.capacity.read": "scaler.capacity.read";
4225
4767
  "scaler.agents.read": "scaler.agents.read";
4768
+ "fleet.read": "fleet.read";
4769
+ "fleet.init_runner.bringup": "fleet.init_runner.bringup";
4770
+ "fleet.pre_boot.send": "fleet.pre_boot.send";
4226
4771
  "backend.list.read": "backend.list.read";
4227
4772
  "backend.get.read": "backend.get.read";
4228
4773
  "backend.sync": "backend.sync";
@@ -4240,6 +4785,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4240
4785
  platform_proxy: "platform_proxy";
4241
4786
  admin_http: "admin_http";
4242
4787
  admin_cli: "admin_cli";
4788
+ agent: "agent";
4243
4789
  }>>;
4244
4790
  outcome: z.ZodOptional<z.ZodEnum<{
4245
4791
  error: "error";
@@ -4259,6 +4805,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4259
4805
  backend: "backend";
4260
4806
  diagnostics: "diagnostics";
4261
4807
  scaler: "scaler";
4808
+ fleet: "fleet";
4262
4809
  held_run: "held_run";
4263
4810
  access_log: "access_log";
4264
4811
  event_dlq: "event_dlq";
@@ -4339,6 +4886,28 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4339
4886
  check: "check";
4340
4887
  "check-fail-on-drift": "check-fail-on-drift";
4341
4888
  }>>;
4889
+ target: z.ZodOptional<z.ZodObject<{
4890
+ values: z.ZodArray<z.ZodObject<{
4891
+ include: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4892
+ kind: z.ZodLiteral<"exact">;
4893
+ value: z.ZodString;
4894
+ }, z.core.$strip>, z.ZodObject<{
4895
+ kind: z.ZodLiteral<"regex">;
4896
+ source: z.ZodString;
4897
+ flags: z.ZodString;
4898
+ }, z.core.$strip>], "kind">>;
4899
+ exclude: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4900
+ kind: z.ZodLiteral<"exact">;
4901
+ value: z.ZodString;
4902
+ }, z.core.$strip>, z.ZodObject<{
4903
+ kind: z.ZodLiteral<"regex">;
4904
+ source: z.ZodString;
4905
+ flags: z.ZodString;
4906
+ }, z.core.$strip>], "kind">>;
4907
+ }, z.core.$strip>>;
4908
+ allowEmpty: z.ZodBoolean;
4909
+ }, z.core.$strip>>;
4910
+ dispatchInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4342
4911
  secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4343
4912
  encryptedSecrets: z.ZodOptional<z.ZodString>;
4344
4913
  encryptedSecretsKey: z.ZodOptional<z.ZodString>;
@@ -4455,10 +5024,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4455
5024
  }, z.core.$strip>>;
4456
5025
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4457
5026
  upstreamName: z.ZodString;
4458
- ifFailed: z.ZodEnum<{
4459
- run: "run";
4460
- skip: "skip";
4461
- }>;
5027
+ runOn: z.ZodArray<z.ZodEnum<{
5028
+ skipped: "skipped";
5029
+ success: "success";
5030
+ pending: "pending";
5031
+ running: "running";
5032
+ failed: "failed";
5033
+ cancelled: "cancelled";
5034
+ cancelling: "cancelling";
5035
+ queued: "queued";
5036
+ recovering: "recovering";
5037
+ timed_out_stale: "timed_out_stale";
5038
+ drift_dropped: "drift_dropped";
5039
+ }>>;
4462
5040
  }, z.core.$strip>>>>;
4463
5041
  steps: z.ZodArray<z.ZodObject<{
4464
5042
  stepIndex: z.ZodNumber;
@@ -4741,7 +5319,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4741
5319
  }, z.core.$strip>, z.ZodObject<{
4742
5320
  type: z.ZodLiteral<"dashboard.environments.bindings.list.response">;
4743
5321
  requestId: z.ZodString;
4744
- scopePatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
5322
+ bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
5323
+ scopePattern: z.ZodString;
5324
+ hostPattern: z.ZodString;
5325
+ }, z.core.$strip>>>;
4745
5326
  error: z.ZodOptional<z.ZodString>;
4746
5327
  }, z.core.$strip>, z.ZodObject<{
4747
5328
  type: z.ZodLiteral<"dashboard.environments.bindings.set.response">;
@@ -4833,6 +5414,10 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
4833
5414
  }, z.core.$strict>]>>;
4834
5415
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4835
5416
  }, z.core.$strip>>>;
5417
+ payload: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5418
+ summaryMarkdown: z.ZodString;
5419
+ drift: z.ZodUnknown;
5420
+ }, z.core.$strip>>>;
4836
5421
  decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4837
5422
  approverUserId: z.ZodString;
4838
5423
  decision: z.ZodEnum<{
@@ -5023,6 +5608,117 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5023
5608
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5024
5609
  }, z.core.$strip>>>;
5025
5610
  error: z.ZodOptional<z.ZodString>;
5611
+ }, z.core.$strip>, z.ZodObject<{
5612
+ type: z.ZodLiteral<"dashboard.fleet.hosts.response">;
5613
+ requestId: z.ZodString;
5614
+ hosts: z.ZodArray<z.ZodObject<{
5615
+ agentId: z.ZodString;
5616
+ labels: z.ZodArray<z.ZodString>;
5617
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5618
+ hostname: z.ZodNullable<z.ZodString>;
5619
+ platform: z.ZodNullable<z.ZodString>;
5620
+ arch: z.ZodNullable<z.ZodString>;
5621
+ lifecycleClass: z.ZodEnum<{
5622
+ static: "static";
5623
+ ephemeral: "ephemeral";
5624
+ }>;
5625
+ status: z.ZodEnum<{
5626
+ ready: "ready";
5627
+ unreachable: "unreachable";
5628
+ stale: "stale";
5629
+ }>;
5630
+ lastSeen: z.ZodString;
5631
+ }, z.core.$strip>>;
5632
+ }, z.core.$strip>, z.ZodObject<{
5633
+ type: z.ZodLiteral<"dashboard.fleet.host.response">;
5634
+ requestId: z.ZodString;
5635
+ host: z.ZodNullable<z.ZodObject<{
5636
+ agentId: z.ZodString;
5637
+ labels: z.ZodArray<z.ZodString>;
5638
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5639
+ hostname: z.ZodNullable<z.ZodString>;
5640
+ platform: z.ZodNullable<z.ZodString>;
5641
+ arch: z.ZodNullable<z.ZodString>;
5642
+ lifecycleClass: z.ZodEnum<{
5643
+ static: "static";
5644
+ ephemeral: "ephemeral";
5645
+ }>;
5646
+ status: z.ZodEnum<{
5647
+ ready: "ready";
5648
+ unreachable: "unreachable";
5649
+ stale: "stale";
5650
+ }>;
5651
+ lastSeen: z.ZodString;
5652
+ }, z.core.$strip>>;
5653
+ runs: z.ZodArray<z.ZodObject<{
5654
+ runId: z.ZodString;
5655
+ workflowName: z.ZodNullable<z.ZodString>;
5656
+ status: z.ZodString;
5657
+ createdAt: z.ZodString;
5658
+ }, z.core.$strip>>;
5659
+ }, z.core.$strip>, z.ZodObject<{
5660
+ type: z.ZodLiteral<"dashboard.fleet.preview.response">;
5661
+ requestId: z.ZodString;
5662
+ matched: z.ZodArray<z.ZodObject<{
5663
+ entry: z.ZodObject<{
5664
+ agentId: z.ZodString;
5665
+ labels: z.ZodArray<z.ZodString>;
5666
+ properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
5667
+ hostname: z.ZodNullable<z.ZodString>;
5668
+ platform: z.ZodNullable<z.ZodString>;
5669
+ arch: z.ZodNullable<z.ZodString>;
5670
+ lifecycleClass: z.ZodEnum<{
5671
+ static: "static";
5672
+ ephemeral: "ephemeral";
5673
+ }>;
5674
+ status: z.ZodEnum<{
5675
+ ready: "ready";
5676
+ unreachable: "unreachable";
5677
+ stale: "stale";
5678
+ }>;
5679
+ lastSeen: z.ZodString;
5680
+ }, z.core.$strip>;
5681
+ disposition: z.ZodEnum<{
5682
+ target: "target";
5683
+ "unreachable-durable": "unreachable-durable";
5684
+ "skipped-ephemeral": "skipped-ephemeral";
5685
+ }>;
5686
+ }, z.core.$strip>>;
5687
+ onUnreachable: z.ZodEnum<{
5688
+ skip: "skip";
5689
+ fail: "fail";
5690
+ hold: "hold";
5691
+ }>;
5692
+ estimatedChildCount: z.ZodNumber;
5693
+ }, z.core.$strip>, z.ZodObject<{
5694
+ type: z.ZodLiteral<"dashboard.fleet.workflows-for-host.response">;
5695
+ requestId: z.ZodString;
5696
+ workflows: z.ZodArray<z.ZodObject<{
5697
+ workflowName: z.ZodString;
5698
+ repoIdentifier: z.ZodString;
5699
+ sourceFile: z.ZodNullable<z.ZodString>;
5700
+ onUnreachable: z.ZodEnum<{
5701
+ skip: "skip";
5702
+ fail: "fail";
5703
+ hold: "hold";
5704
+ }>;
5705
+ disposition: z.ZodEnum<{
5706
+ target: "target";
5707
+ "unreachable-durable": "unreachable-durable";
5708
+ "skipped-ephemeral": "skipped-ephemeral";
5709
+ }>;
5710
+ }, z.core.$strip>>;
5711
+ }, z.core.$strip>, z.ZodObject<{
5712
+ type: z.ZodLiteral<"dashboard.fleet.host.declare.response">;
5713
+ requestId: z.ZodString;
5714
+ declared: z.ZodOptional<z.ZodBoolean>;
5715
+ created: z.ZodOptional<z.ZodBoolean>;
5716
+ error: z.ZodOptional<z.ZodString>;
5717
+ }, z.core.$strip>, z.ZodObject<{
5718
+ type: z.ZodLiteral<"dashboard.fleet.host.remove.response">;
5719
+ requestId: z.ZodString;
5720
+ removed: z.ZodOptional<z.ZodBoolean>;
5721
+ error: z.ZodOptional<z.ZodString>;
5026
5722
  }, z.core.$strip>, z.ZodObject<{
5027
5723
  type: z.ZodLiteral<"dashboard.scaler.capacity.response">;
5028
5724
  requestId: z.ZodString;
@@ -5077,9 +5773,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5077
5773
  enabled: z.ZodBoolean;
5078
5774
  healthStatus: z.ZodEnum<{
5079
5775
  unknown: "unknown";
5776
+ unreachable: "unreachable";
5080
5777
  healthy: "healthy";
5081
5778
  degraded: "degraded";
5082
- unreachable: "unreachable";
5083
5779
  }>;
5084
5780
  scopeCount: z.ZodNumber;
5085
5781
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -5104,9 +5800,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5104
5800
  enabled: z.ZodBoolean;
5105
5801
  healthStatus: z.ZodEnum<{
5106
5802
  unknown: "unknown";
5803
+ unreachable: "unreachable";
5107
5804
  healthy: "healthy";
5108
5805
  degraded: "degraded";
5109
- unreachable: "unreachable";
5110
5806
  }>;
5111
5807
  scopeCount: z.ZodNumber;
5112
5808
  lastSyncAt: z.ZodNullable<z.ZodString>;
@@ -5324,6 +6020,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5324
6020
  "registration.disable": "registration.disable";
5325
6021
  "registration.delete": "registration.delete";
5326
6022
  "global_workflows.update": "global_workflows.update";
6023
+ "fleet.host.declare": "fleet.host.declare";
6024
+ "fleet.host.remove": "fleet.host.remove";
5327
6025
  "run.detail.read": "run.detail.read";
5328
6026
  "runs.list.read": "runs.list.read";
5329
6027
  "runs.filters.read": "runs.filters.read";
@@ -5363,6 +6061,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5363
6061
  "environment.history.read": "environment.history.read";
5364
6062
  "held_run.list.read": "held_run.list.read";
5365
6063
  "held_run.approve": "held_run.approve";
6064
+ "held_run.auto_approve": "held_run.auto_approve";
5366
6065
  "held_run.reject": "held_run.reject";
5367
6066
  "held_run.request": "held_run.request";
5368
6067
  "held_run.expire": "held_run.expire";
@@ -5370,6 +6069,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5370
6069
  "diagnostics.read": "diagnostics.read";
5371
6070
  "scaler.capacity.read": "scaler.capacity.read";
5372
6071
  "scaler.agents.read": "scaler.agents.read";
6072
+ "fleet.read": "fleet.read";
6073
+ "fleet.init_runner.bringup": "fleet.init_runner.bringup";
6074
+ "fleet.pre_boot.send": "fleet.pre_boot.send";
5373
6075
  "backend.list.read": "backend.list.read";
5374
6076
  "backend.get.read": "backend.get.read";
5375
6077
  "backend.sync": "backend.sync";
@@ -5396,6 +6098,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5396
6098
  backend: "backend";
5397
6099
  diagnostics: "diagnostics";
5398
6100
  scaler: "scaler";
6101
+ fleet: "fleet";
5399
6102
  held_run: "held_run";
5400
6103
  access_log: "access_log";
5401
6104
  event_dlq: "event_dlq";
@@ -5408,6 +6111,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
5408
6111
  platform_proxy: "platform_proxy";
5409
6112
  admin_http: "admin_http";
5410
6113
  admin_cli: "admin_cli";
6114
+ agent: "agent";
5411
6115
  }>;
5412
6116
  outcome: z.ZodEnum<{
5413
6117
  error: "error";
@@ -5570,10 +6274,19 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
5570
6274
  }, z.core.$strip>>;
5571
6275
  needs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
5572
6276
  upstreamName: z.ZodString;
5573
- ifFailed: z.ZodEnum<{
5574
- run: "run";
5575
- skip: "skip";
5576
- }>;
6277
+ runOn: z.ZodArray<z.ZodEnum<{
6278
+ skipped: "skipped";
6279
+ success: "success";
6280
+ pending: "pending";
6281
+ running: "running";
6282
+ failed: "failed";
6283
+ cancelled: "cancelled";
6284
+ cancelling: "cancelling";
6285
+ queued: "queued";
6286
+ recovering: "recovering";
6287
+ timed_out_stale: "timed_out_stale";
6288
+ drift_dropped: "drift_dropped";
6289
+ }>>;
5577
6290
  }, z.core.$strip>>>>;
5578
6291
  steps: z.ZodArray<z.ZodObject<{
5579
6292
  stepIndex: z.ZodNumber;
@@ -5808,6 +6521,20 @@ declare const diagnosticsInfraOrchestratorSchema: z.ZodObject<{
5808
6521
  raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5809
6522
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5810
6523
  scalerBackends: z.ZodArray<z.ZodString>;
6524
+ deployment: z.ZodObject<{
6525
+ mode: z.ZodEnum<{
6526
+ unknown: "unknown";
6527
+ systemd: "systemd";
6528
+ launchd: "launchd";
6529
+ windows: "windows";
6530
+ compose: "compose";
6531
+ }>;
6532
+ containerName: z.ZodNullable<z.ZodString>;
6533
+ containerRuntime: z.ZodNullable<z.ZodEnum<{
6534
+ podman: "podman";
6535
+ docker: "docker";
6536
+ }>>;
6537
+ }, z.core.$strip>;
5811
6538
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5812
6539
  agentCount: z.ZodNumber;
5813
6540
  runningJobs: z.ZodNumber;
@@ -5886,6 +6613,20 @@ export declare const diagnosticsInfrastructureResponseSchema: z.ZodObject<{
5886
6613
  raftTerm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5887
6614
  raftLeaderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5888
6615
  scalerBackends: z.ZodArray<z.ZodString>;
6616
+ deployment: z.ZodObject<{
6617
+ mode: z.ZodEnum<{
6618
+ unknown: "unknown";
6619
+ systemd: "systemd";
6620
+ launchd: "launchd";
6621
+ windows: "windows";
6622
+ compose: "compose";
6623
+ }>;
6624
+ containerName: z.ZodNullable<z.ZodString>;
6625
+ containerRuntime: z.ZodNullable<z.ZodEnum<{
6626
+ podman: "podman";
6627
+ docker: "docker";
6628
+ }>>;
6629
+ }, z.core.$strip>;
5889
6630
  s3LogAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5890
6631
  agentCount: z.ZodNumber;
5891
6632
  runningJobs: z.ZodNumber;