@kici-dev/engine 0.1.26 → 0.1.27

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 (48) hide show
  1. package/dist/approval/types.d.ts +3 -3
  2. package/dist/approval/types.js +3 -3
  3. package/dist/audit/access-log-policy.js +12 -11
  4. package/dist/audit/retention-policy.js +24 -22
  5. package/dist/context/host-match.d.ts +25 -0
  6. package/dist/{environment → context}/host-match.js +1 -1
  7. package/dist/context/index.d.ts +6 -0
  8. package/dist/context/index.js +5 -0
  9. package/dist/context/multi-context.d.ts +30 -0
  10. package/dist/context/multi-context.js +38 -0
  11. package/dist/context/scope-resolver.d.ts +46 -0
  12. package/dist/{environment → context}/scope-resolver.js +6 -6
  13. package/dist/context/scope-template.d.ts +18 -0
  14. package/dist/{environment → context}/scope-template.js +1 -1
  15. package/dist/context/types.d.ts +119 -0
  16. package/dist/{environment → context}/types.js +3 -3
  17. package/dist/dev-ops/operations.d.ts +1 -1
  18. package/dist/dev-ops/operations.js +1 -1
  19. package/dist/env/environment-allowlist.d.ts +23 -0
  20. package/dist/env/environment-allowlist.js +35 -1
  21. package/dist/fanout/materialize.js +2 -2
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +8 -8
  24. package/dist/metrics/metric-catalog.generated.d.ts +15 -10
  25. package/dist/metrics/metric-catalog.generated.js +18 -12
  26. package/dist/protocol/dashboard-api-errors.d.ts +12 -0
  27. package/dist/protocol/dashboard-api-errors.js +13 -0
  28. package/dist/protocol/dashboard-write-operations.d.ts +22 -22
  29. package/dist/protocol/dashboard-write-operations.js +52 -52
  30. package/dist/protocol/messages/access-log.d.ts +65 -60
  31. package/dist/protocol/messages/access-log.js +13 -12
  32. package/dist/protocol/messages/agent-run-result.d.ts +2 -2
  33. package/dist/protocol/messages/agent-run-result.js +1 -1
  34. package/dist/protocol/messages/auth.d.ts +7 -7
  35. package/dist/protocol/messages/capabilities.d.ts +7 -7
  36. package/dist/protocol/messages/dashboard.d.ts +235 -233
  37. package/dist/protocol/messages/dashboard.js +191 -191
  38. package/dist/protocol/messages/execution-status.d.ts +9 -9
  39. package/dist/protocol/messages/execution-status.js +8 -8
  40. package/dist/protocol/messages/platform-orchestrator.d.ts +75 -74
  41. package/dist/protocol/session-policy.d.ts +20 -0
  42. package/dist/protocol/session-policy.js +25 -0
  43. package/dist/trigger/types.d.ts +7 -6
  44. package/dist/trigger/types.js +2 -1
  45. package/package.json +15 -7
  46. package/sbom.spdx.json +5 -5
  47. package/dist/environment/index.js +0 -5
  48. package/dist/environment/multi-env.js +0 -38
@@ -161,7 +161,7 @@ export declare const dashboardRunStructuredResponseSchema: z.ZodObject<{
161
161
  install_secrets: "install_secrets";
162
162
  lock_resolution: "lock_resolution";
163
163
  build_coordination: "build_coordination";
164
- environment_rules: "environment_rules";
164
+ context_rules: "context_rules";
165
165
  dynamic_eval: "dynamic_eval";
166
166
  no_agent: "no_agent";
167
167
  matrix_expansion: "matrix_expansion";
@@ -284,8 +284,8 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
284
284
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
285
  errorMessage: z.ZodNullable<z.ZodString>;
286
286
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
287
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
288
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
287
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
288
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
289
289
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
290
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
291
291
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -299,7 +299,7 @@ export declare const dashboardJobDetailSchema: z.ZodObject<{
299
299
  install_secrets: "install_secrets";
300
300
  lock_resolution: "lock_resolution";
301
301
  build_coordination: "build_coordination";
302
- environment_rules: "environment_rules";
302
+ context_rules: "context_rules";
303
303
  dynamic_eval: "dynamic_eval";
304
304
  no_agent: "no_agent";
305
305
  matrix_expansion: "matrix_expansion";
@@ -369,8 +369,8 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
369
369
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
370
  errorMessage: z.ZodNullable<z.ZodString>;
371
371
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
372
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
373
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
372
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
373
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
374
374
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
375
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
376
376
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -384,7 +384,7 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
384
384
  install_secrets: "install_secrets";
385
385
  lock_resolution: "lock_resolution";
386
386
  build_coordination: "build_coordination";
387
- environment_rules: "environment_rules";
387
+ context_rules: "context_rules";
388
388
  dynamic_eval: "dynamic_eval";
389
389
  no_agent: "no_agent";
390
390
  matrix_expansion: "matrix_expansion";
@@ -457,7 +457,7 @@ export declare const dashboardRunDetailResponseSchema: z.ZodObject<{
457
457
  install_secrets: "install_secrets";
458
458
  lock_resolution: "lock_resolution";
459
459
  build_coordination: "build_coordination";
460
- environment_rules: "environment_rules";
460
+ context_rules: "context_rules";
461
461
  dynamic_eval: "dynamic_eval";
462
462
  no_agent: "no_agent";
463
463
  matrix_expansion: "matrix_expansion";
@@ -913,7 +913,7 @@ export declare const dashboardRunSummarySchema: z.ZodObject<{
913
913
  triggerEvent: z.ZodOptional<z.ZodString>;
914
914
  commitMessage: z.ZodOptional<z.ZodString>;
915
915
  jobCount: z.ZodOptional<z.ZodNumber>;
916
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
916
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
917
917
  startedAt: z.ZodOptional<z.ZodString>;
918
918
  completedAt: z.ZodOptional<z.ZodString>;
919
919
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -986,7 +986,7 @@ export declare const dashboardRunsListResponseSchema: z.ZodObject<{
986
986
  triggerEvent: z.ZodOptional<z.ZodString>;
987
987
  commitMessage: z.ZodOptional<z.ZodString>;
988
988
  jobCount: z.ZodOptional<z.ZodNumber>;
989
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
989
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
990
990
  startedAt: z.ZodOptional<z.ZodString>;
991
991
  completedAt: z.ZodOptional<z.ZodString>;
992
992
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -1764,9 +1764,9 @@ declare const dashboardEventDlqDiscardResponseSchema: z.ZodObject<{
1764
1764
  discarded: z.ZodOptional<z.ZodBoolean>;
1765
1765
  error: z.ZodOptional<z.ZodString>;
1766
1766
  }, z.core.$strip>;
1767
- /** List all environments for the org. */
1768
- export declare const envListRequestSchema: z.ZodObject<{
1769
- type: z.ZodLiteral<"dashboard.environments.list">;
1767
+ /** List all contexts for the org. */
1768
+ export declare const contextListRequestSchema: z.ZodObject<{
1769
+ type: z.ZodLiteral<"dashboard.contexts.list">;
1770
1770
  requestId: z.ZodString;
1771
1771
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
1772
  type: z.ZodLiteral<"user">;
@@ -1797,10 +1797,10 @@ export declare const envListRequestSchema: z.ZodObject<{
1797
1797
  includeSecrets: z.ZodOptional<z.ZodBoolean>;
1798
1798
  orgId: z.ZodOptional<z.ZodString>;
1799
1799
  }, z.core.$strip>;
1800
- declare const envListResponseSchema: z.ZodObject<{
1801
- type: z.ZodLiteral<"dashboard.environments.list.response">;
1800
+ declare const contextListResponseSchema: z.ZodObject<{
1801
+ type: z.ZodLiteral<"dashboard.contexts.list.response">;
1802
1802
  requestId: z.ZodString;
1803
- environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1803
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1804
1804
  id: z.ZodString;
1805
1805
  name: z.ZodString;
1806
1806
  type: z.ZodEnum<{
@@ -1816,9 +1816,9 @@ declare const envListResponseSchema: z.ZodObject<{
1816
1816
  }, z.core.$strip>>>;
1817
1817
  error: z.ZodOptional<z.ZodString>;
1818
1818
  }, z.core.$strip>;
1819
- /** Get a single environment by ID. */
1820
- export declare const envGetRequestSchema: z.ZodObject<{
1821
- type: z.ZodLiteral<"dashboard.environments.get">;
1819
+ /** Get a single context by ID. */
1820
+ export declare const contextGetRequestSchema: z.ZodObject<{
1821
+ type: z.ZodLiteral<"dashboard.contexts.get">;
1822
1822
  requestId: z.ZodString;
1823
1823
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1824
1824
  type: z.ZodLiteral<"user">;
@@ -1846,12 +1846,12 @@ export declare const envGetRequestSchema: z.ZodObject<{
1846
1846
  type: z.ZodLiteral<"system">;
1847
1847
  component: z.ZodString;
1848
1848
  }, z.core.$strip>], "type">;
1849
- environmentId: z.ZodString;
1849
+ contextId: z.ZodString;
1850
1850
  }, z.core.$strip>;
1851
- declare const envGetResponseSchema: z.ZodObject<{
1852
- type: z.ZodLiteral<"dashboard.environments.get.response">;
1851
+ declare const contextGetResponseSchema: z.ZodObject<{
1852
+ type: z.ZodLiteral<"dashboard.contexts.get.response">;
1853
1853
  requestId: z.ZodString;
1854
- environment: z.ZodOptional<z.ZodObject<{
1854
+ context: z.ZodOptional<z.ZodObject<{
1855
1855
  id: z.ZodString;
1856
1856
  name: z.ZodString;
1857
1857
  type: z.ZodEnum<{
@@ -1875,9 +1875,9 @@ declare const envGetResponseSchema: z.ZodObject<{
1875
1875
  }, z.core.$strip>>;
1876
1876
  error: z.ZodOptional<z.ZodString>;
1877
1877
  }, z.core.$strip>;
1878
- /** Create a new environment. */
1879
- export declare const envCreateRequestSchema: z.ZodObject<{
1880
- type: z.ZodLiteral<"dashboard.environments.create">;
1878
+ /** Create a new context. */
1879
+ export declare const contextCreateRequestSchema: z.ZodObject<{
1880
+ type: z.ZodLiteral<"dashboard.contexts.create">;
1881
1881
  requestId: z.ZodString;
1882
1882
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1883
1883
  type: z.ZodLiteral<"user">;
@@ -1906,7 +1906,7 @@ export declare const envCreateRequestSchema: z.ZodObject<{
1906
1906
  component: z.ZodString;
1907
1907
  }, z.core.$strip>], "type">;
1908
1908
  name: z.ZodString;
1909
- envType: z.ZodEnum<{
1909
+ contextType: z.ZodEnum<{
1910
1910
  fixed: "fixed";
1911
1911
  glob: "glob";
1912
1912
  }>;
@@ -1922,9 +1922,9 @@ export declare const envCreateRequestSchema: z.ZodObject<{
1922
1922
  holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
1923
1923
  enabled: z.ZodOptional<z.ZodBoolean>;
1924
1924
  }, z.core.$strip>;
1925
- /** Update an existing environment. */
1926
- export declare const envUpdateRequestSchema: z.ZodObject<{
1927
- type: z.ZodLiteral<"dashboard.environments.update">;
1925
+ /** Update an existing context. */
1926
+ export declare const contextUpdateRequestSchema: z.ZodObject<{
1927
+ type: z.ZodLiteral<"dashboard.contexts.update">;
1928
1928
  requestId: z.ZodString;
1929
1929
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1930
1930
  type: z.ZodLiteral<"user">;
@@ -1952,10 +1952,10 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
1952
1952
  type: z.ZodLiteral<"system">;
1953
1953
  component: z.ZodString;
1954
1954
  }, z.core.$strip>], "type">;
1955
- environmentId: z.ZodString;
1955
+ contextId: z.ZodString;
1956
1956
  updates: z.ZodObject<{
1957
1957
  name: z.ZodOptional<z.ZodString>;
1958
- envType: z.ZodOptional<z.ZodEnum<{
1958
+ contextType: z.ZodOptional<z.ZodEnum<{
1959
1959
  fixed: "fixed";
1960
1960
  glob: "glob";
1961
1961
  }>>;
@@ -1972,9 +1972,9 @@ export declare const envUpdateRequestSchema: z.ZodObject<{
1972
1972
  enabled: z.ZodOptional<z.ZodBoolean>;
1973
1973
  }, z.core.$strip>;
1974
1974
  }, z.core.$strip>;
1975
- /** Set an environment's test-run access flag (allowLocalExecution). */
1976
- export declare const envTestAccessSetRequestSchema: z.ZodObject<{
1977
- type: z.ZodLiteral<"dashboard.environments.test_access.set">;
1975
+ /** Set an context's test-run access flag (allowLocalExecution). */
1976
+ export declare const contextTestAccessSetRequestSchema: z.ZodObject<{
1977
+ type: z.ZodLiteral<"dashboard.contexts.test_access.set">;
1978
1978
  requestId: z.ZodString;
1979
1979
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1980
1980
  type: z.ZodLiteral<"user">;
@@ -2002,12 +2002,12 @@ export declare const envTestAccessSetRequestSchema: z.ZodObject<{
2002
2002
  type: z.ZodLiteral<"system">;
2003
2003
  component: z.ZodString;
2004
2004
  }, z.core.$strip>], "type">;
2005
- environmentId: z.ZodString;
2005
+ contextId: z.ZodString;
2006
2006
  allowLocalExecution: z.ZodBoolean;
2007
2007
  }, z.core.$strip>;
2008
- /** Delete an environment. */
2009
- export declare const envDeleteRequestSchema: z.ZodObject<{
2010
- type: z.ZodLiteral<"dashboard.environments.delete">;
2008
+ /** Delete an context. */
2009
+ export declare const contextDeleteRequestSchema: z.ZodObject<{
2010
+ type: z.ZodLiteral<"dashboard.contexts.delete">;
2011
2011
  requestId: z.ZodString;
2012
2012
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2013
2013
  type: z.ZodLiteral<"user">;
@@ -2035,25 +2035,25 @@ export declare const envDeleteRequestSchema: z.ZodObject<{
2035
2035
  type: z.ZodLiteral<"system">;
2036
2036
  component: z.ZodString;
2037
2037
  }, z.core.$strip>], "type">;
2038
- environmentId: z.ZodString;
2038
+ contextId: z.ZodString;
2039
2039
  }, z.core.$strip>;
2040
2040
  /**
2041
- * Machine-readable codes for environment-delete rejections.
2041
+ * Machine-readable codes for context-delete rejections.
2042
2042
  *
2043
2043
  * Three-category response taxonomy on dashboard responses, each mapped to a
2044
2044
  * distinct HTTP status by the Platform proxy: a bare free-text `error` is the
2045
- * human message and maps to 400; a missing result (e.g. environment not found)
2045
+ * human message and maps to 400; a missing result (e.g. context not found)
2046
2046
  * maps to 404; an `errorCode` flags a specific business rejection mapped to a
2047
2047
  * non-400/404 status — here `pending_held_runs` → 409. The sibling precedent is
2048
2048
  * the rerun response's `errorCode` (`runArchivedNotRerunnable` → 410) above.
2049
2049
  */
2050
- export declare const EnvDeleteErrorCode: z.ZodEnum<{
2050
+ export declare const ContextDeleteErrorCode: z.ZodEnum<{
2051
2051
  pending_held_runs: "pending_held_runs";
2052
2052
  }>;
2053
- export type EnvDeleteErrorCode = z.infer<typeof EnvDeleteErrorCode>;
2054
- /** List variables for an environment. */
2055
- export declare const envVarsListRequestSchema: z.ZodObject<{
2056
- type: z.ZodLiteral<"dashboard.environments.variables.list">;
2053
+ export type ContextDeleteErrorCode = z.infer<typeof ContextDeleteErrorCode>;
2054
+ /** List variables for an context. */
2055
+ export declare const contextVarsListRequestSchema: z.ZodObject<{
2056
+ type: z.ZodLiteral<"dashboard.contexts.variables.list">;
2057
2057
  requestId: z.ZodString;
2058
2058
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2059
2059
  type: z.ZodLiteral<"user">;
@@ -2081,10 +2081,10 @@ export declare const envVarsListRequestSchema: z.ZodObject<{
2081
2081
  type: z.ZodLiteral<"system">;
2082
2082
  component: z.ZodString;
2083
2083
  }, z.core.$strip>], "type">;
2084
- environmentId: z.ZodString;
2084
+ contextId: z.ZodString;
2085
2085
  }, z.core.$strip>;
2086
- declare const envVarsListResponseSchema: z.ZodObject<{
2087
- type: z.ZodLiteral<"dashboard.environments.variables.list.response">;
2086
+ declare const contextVarsListResponseSchema: z.ZodObject<{
2087
+ type: z.ZodLiteral<"dashboard.contexts.variables.list.response">;
2088
2088
  requestId: z.ZodString;
2089
2089
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
2090
2090
  key: z.ZodString;
@@ -2093,9 +2093,9 @@ declare const envVarsListResponseSchema: z.ZodObject<{
2093
2093
  }, z.core.$strip>>>;
2094
2094
  error: z.ZodOptional<z.ZodString>;
2095
2095
  }, z.core.$strip>;
2096
- /** Set (create or update) a variable on an environment. */
2097
- export declare const envVarSetRequestSchema: z.ZodObject<{
2098
- type: z.ZodLiteral<"dashboard.environments.variables.set">;
2096
+ /** Set (create or update) a variable on an context. */
2097
+ export declare const contextVarSetRequestSchema: z.ZodObject<{
2098
+ type: z.ZodLiteral<"dashboard.contexts.variables.set">;
2099
2099
  requestId: z.ZodString;
2100
2100
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2101
2101
  type: z.ZodLiteral<"user">;
@@ -2123,14 +2123,14 @@ export declare const envVarSetRequestSchema: z.ZodObject<{
2123
2123
  type: z.ZodLiteral<"system">;
2124
2124
  component: z.ZodString;
2125
2125
  }, z.core.$strip>], "type">;
2126
- environmentId: z.ZodString;
2126
+ contextId: z.ZodString;
2127
2127
  key: z.ZodString;
2128
2128
  value: z.ZodString;
2129
2129
  locked: z.ZodOptional<z.ZodBoolean>;
2130
2130
  }, z.core.$strip>;
2131
- /** Delete a variable from an environment. */
2132
- export declare const envVarDeleteRequestSchema: z.ZodObject<{
2133
- type: z.ZodLiteral<"dashboard.environments.variables.delete">;
2131
+ /** Delete a variable from an context. */
2132
+ export declare const contextVarDeleteRequestSchema: z.ZodObject<{
2133
+ type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
2134
2134
  requestId: z.ZodString;
2135
2135
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2136
2136
  type: z.ZodLiteral<"user">;
@@ -2158,12 +2158,12 @@ export declare const envVarDeleteRequestSchema: z.ZodObject<{
2158
2158
  type: z.ZodLiteral<"system">;
2159
2159
  component: z.ZodString;
2160
2160
  }, z.core.$strip>], "type">;
2161
- environmentId: z.ZodString;
2161
+ contextId: z.ZodString;
2162
2162
  key: z.ZodString;
2163
2163
  }, z.core.$strip>;
2164
- /** List source overrides for an environment + routing key. */
2165
- export declare const envSourceOverridesListRequestSchema: z.ZodObject<{
2166
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
2164
+ /** List source overrides for an context + routing key. */
2165
+ export declare const contextSourceOverridesListRequestSchema: z.ZodObject<{
2166
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.list">;
2167
2167
  requestId: z.ZodString;
2168
2168
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2169
2169
  type: z.ZodLiteral<"user">;
@@ -2191,12 +2191,12 @@ export declare const envSourceOverridesListRequestSchema: z.ZodObject<{
2191
2191
  type: z.ZodLiteral<"system">;
2192
2192
  component: z.ZodString;
2193
2193
  }, z.core.$strip>], "type">;
2194
- environmentId: z.ZodString;
2194
+ contextId: z.ZodString;
2195
2195
  routingKey: z.ZodString;
2196
2196
  }, z.core.$strip>;
2197
2197
  /** Set a source override variable. */
2198
- export declare const envSourceOverrideSetRequestSchema: z.ZodObject<{
2199
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
2198
+ export declare const contextSourceOverrideSetRequestSchema: z.ZodObject<{
2199
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.set">;
2200
2200
  requestId: z.ZodString;
2201
2201
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2202
2202
  type: z.ZodLiteral<"user">;
@@ -2224,14 +2224,14 @@ export declare const envSourceOverrideSetRequestSchema: z.ZodObject<{
2224
2224
  type: z.ZodLiteral<"system">;
2225
2225
  component: z.ZodString;
2226
2226
  }, z.core.$strip>], "type">;
2227
- environmentId: z.ZodString;
2227
+ contextId: z.ZodString;
2228
2228
  routingKey: z.ZodString;
2229
2229
  key: z.ZodString;
2230
2230
  value: z.ZodString;
2231
2231
  }, z.core.$strip>;
2232
2232
  /** Delete a source override variable. */
2233
- export declare const envSourceOverrideDeleteRequestSchema: z.ZodObject<{
2234
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
2233
+ export declare const contextSourceOverrideDeleteRequestSchema: z.ZodObject<{
2234
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete">;
2235
2235
  requestId: z.ZodString;
2236
2236
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2237
2237
  type: z.ZodLiteral<"user">;
@@ -2259,23 +2259,23 @@ export declare const envSourceOverrideDeleteRequestSchema: z.ZodObject<{
2259
2259
  type: z.ZodLiteral<"system">;
2260
2260
  component: z.ZodString;
2261
2261
  }, z.core.$strip>], "type">;
2262
- environmentId: z.ZodString;
2262
+ contextId: z.ZodString;
2263
2263
  routingKey: z.ZodString;
2264
2264
  key: z.ZodString;
2265
2265
  }, z.core.$strip>;
2266
2266
  /**
2267
- * A scope→environment binding with its host selector. `hostPattern` is the host
2267
+ * A scope→context binding with its host selector. `hostPattern` is the host
2268
2268
  * the binding applies to (`'**'` = all hosts); exact / glob / regex over a
2269
2269
  * fan-out child's agentId / hostname / labels.
2270
2270
  */
2271
- export declare const envBindingEntrySchema: z.ZodObject<{
2271
+ export declare const contextBindingEntrySchema: z.ZodObject<{
2272
2272
  scopePattern: z.ZodString;
2273
2273
  hostPattern: z.ZodString;
2274
2274
  }, z.core.$strip>;
2275
- export type EnvBindingEntry = z.infer<typeof envBindingEntrySchema>;
2276
- /** List bindings for an environment. */
2277
- export declare const envBindingsListRequestSchema: z.ZodObject<{
2278
- type: z.ZodLiteral<"dashboard.environments.bindings.list">;
2275
+ export type ContextBindingEntry = z.infer<typeof contextBindingEntrySchema>;
2276
+ /** List bindings for an context. */
2277
+ export declare const contextBindingsListRequestSchema: z.ZodObject<{
2278
+ type: z.ZodLiteral<"dashboard.contexts.bindings.list">;
2279
2279
  requestId: z.ZodString;
2280
2280
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2281
2281
  type: z.ZodLiteral<"user">;
@@ -2303,11 +2303,11 @@ export declare const envBindingsListRequestSchema: z.ZodObject<{
2303
2303
  type: z.ZodLiteral<"system">;
2304
2304
  component: z.ZodString;
2305
2305
  }, z.core.$strip>], "type">;
2306
- environmentId: z.ZodString;
2306
+ contextId: z.ZodString;
2307
2307
  }, z.core.$strip>;
2308
- /** Set bindings (scope + host patterns) for an environment. */
2309
- export declare const envBindingsSetRequestSchema: z.ZodObject<{
2310
- type: z.ZodLiteral<"dashboard.environments.bindings.set">;
2308
+ /** Set bindings (scope + host patterns) for an context. */
2309
+ export declare const contextBindingsSetRequestSchema: z.ZodObject<{
2310
+ type: z.ZodLiteral<"dashboard.contexts.bindings.set">;
2311
2311
  requestId: z.ZodString;
2312
2312
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2313
2313
  type: z.ZodLiteral<"user">;
@@ -2335,15 +2335,15 @@ export declare const envBindingsSetRequestSchema: z.ZodObject<{
2335
2335
  type: z.ZodLiteral<"system">;
2336
2336
  component: z.ZodString;
2337
2337
  }, z.core.$strip>], "type">;
2338
- environmentId: z.ZodString;
2338
+ contextId: z.ZodString;
2339
2339
  bindings: z.ZodArray<z.ZodObject<{
2340
2340
  scopePattern: z.ZodString;
2341
2341
  hostPattern: z.ZodString;
2342
2342
  }, z.core.$strip>>;
2343
2343
  }, z.core.$strip>;
2344
2344
  /** List all scoped secrets for the org. */
2345
- export declare const envSecretsListRequestSchema: z.ZodObject<{
2346
- type: z.ZodLiteral<"dashboard.environments.secrets.list">;
2345
+ export declare const contextSecretsListRequestSchema: z.ZodObject<{
2346
+ type: z.ZodLiteral<"dashboard.contexts.secrets.list">;
2347
2347
  requestId: z.ZodString;
2348
2348
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2349
2349
  type: z.ZodLiteral<"user">;
@@ -2373,8 +2373,8 @@ export declare const envSecretsListRequestSchema: z.ZodObject<{
2373
2373
  }, z.core.$strip>], "type">;
2374
2374
  }, z.core.$strip>;
2375
2375
  /** Set (create or update) a scoped secret. */
2376
- export declare const envSecretSetRequestSchema: z.ZodObject<{
2377
- type: z.ZodLiteral<"dashboard.environments.secrets.set">;
2376
+ export declare const contextSecretSetRequestSchema: z.ZodObject<{
2377
+ type: z.ZodLiteral<"dashboard.contexts.secrets.set">;
2378
2378
  requestId: z.ZodString;
2379
2379
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2380
2380
  type: z.ZodLiteral<"user">;
@@ -2407,8 +2407,8 @@ export declare const envSecretSetRequestSchema: z.ZodObject<{
2407
2407
  value: z.ZodString;
2408
2408
  }, z.core.$strip>;
2409
2409
  /** Delete a scoped secret. */
2410
- export declare const envSecretDeleteRequestSchema: z.ZodObject<{
2411
- type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
2410
+ export declare const contextSecretDeleteRequestSchema: z.ZodObject<{
2411
+ type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
2412
2412
  requestId: z.ZodString;
2413
2413
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2414
2414
  type: z.ZodLiteral<"user">;
@@ -2440,8 +2440,8 @@ export declare const envSecretDeleteRequestSchema: z.ZodObject<{
2440
2440
  key: z.ZodString;
2441
2441
  }, z.core.$strip>;
2442
2442
  /** Create an empty scope. */
2443
- export declare const envSecretScopeCreateRequestSchema: z.ZodObject<{
2444
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
2443
+ export declare const contextSecretScopeCreateRequestSchema: z.ZodObject<{
2444
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create">;
2445
2445
  requestId: z.ZodString;
2446
2446
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2447
2447
  type: z.ZodLiteral<"user">;
@@ -2471,9 +2471,9 @@ export declare const envSecretScopeCreateRequestSchema: z.ZodObject<{
2471
2471
  }, z.core.$strip>], "type">;
2472
2472
  scope: z.ZodString;
2473
2473
  }, z.core.$strip>;
2474
- /** Rename a scope -- also updates all environment bindings referencing old scope. */
2475
- export declare const envSecretScopeRenameRequestSchema: z.ZodObject<{
2476
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
2474
+ /** Rename a scope -- also updates all context bindings referencing old scope. */
2475
+ export declare const contextSecretScopeRenameRequestSchema: z.ZodObject<{
2476
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename">;
2477
2477
  requestId: z.ZodString;
2478
2478
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2479
2479
  type: z.ZodLiteral<"user">;
@@ -2504,9 +2504,9 @@ export declare const envSecretScopeRenameRequestSchema: z.ZodObject<{
2504
2504
  oldScope: z.ZodString;
2505
2505
  newScope: z.ZodString;
2506
2506
  }, z.core.$strip>;
2507
- /** Delete a scope and all its secrets. Also removes environment bindings referencing this scope. */
2508
- export declare const envSecretScopeDeleteRequestSchema: z.ZodObject<{
2509
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
2507
+ /** Delete a scope and all its secrets. Also removes context bindings referencing this scope. */
2508
+ export declare const contextSecretScopeDeleteRequestSchema: z.ZodObject<{
2509
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete">;
2510
2510
  requestId: z.ZodString;
2511
2511
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2512
2512
  type: z.ZodLiteral<"user">;
@@ -2536,9 +2536,9 @@ export declare const envSecretScopeDeleteRequestSchema: z.ZodObject<{
2536
2536
  }, z.core.$strip>], "type">;
2537
2537
  scope: z.ZodString;
2538
2538
  }, z.core.$strip>;
2539
- /** Fetch runs that targeted a specific environment, keyed by environment id. */
2540
- export declare const envHistoryRequestSchema: z.ZodObject<{
2541
- type: z.ZodLiteral<"dashboard.environments.history">;
2539
+ /** Fetch runs that targeted a specific context, keyed by context id. */
2540
+ export declare const contextHistoryRequestSchema: z.ZodObject<{
2541
+ type: z.ZodLiteral<"dashboard.contexts.history">;
2542
2542
  requestId: z.ZodString;
2543
2543
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
2544
2544
  type: z.ZodLiteral<"user">;
@@ -2566,7 +2566,7 @@ export declare const envHistoryRequestSchema: z.ZodObject<{
2566
2566
  type: z.ZodLiteral<"system">;
2567
2567
  component: z.ZodString;
2568
2568
  }, z.core.$strip>], "type">;
2569
- environmentId: z.ZodString;
2569
+ contextId: z.ZodString;
2570
2570
  limit: z.ZodOptional<z.ZodNumber>;
2571
2571
  offset: z.ZodOptional<z.ZodNumber>;
2572
2572
  }, z.core.$strip>;
@@ -2580,7 +2580,7 @@ export declare const HeldRunStatus: z.ZodEnum<{
2580
2580
  export type HeldRunStatus = z.infer<typeof HeldRunStatus>;
2581
2581
  /** Queue type for held runs. */
2582
2582
  export declare const HeldRunQueueType: z.ZodEnum<{
2583
- environment: "environment";
2583
+ context: "context";
2584
2584
  security: "security";
2585
2585
  }>;
2586
2586
  export type HeldRunQueueType = z.infer<typeof HeldRunQueueType>;
@@ -2621,7 +2621,7 @@ export declare const heldRunsListRequestSchema: z.ZodObject<{
2621
2621
  expired: "expired";
2622
2622
  }>>;
2623
2623
  queueType: z.ZodOptional<z.ZodEnum<{
2624
- environment: "environment";
2624
+ context: "context";
2625
2625
  security: "security";
2626
2626
  }>>;
2627
2627
  runId: z.ZodOptional<z.ZodString>;
@@ -2633,11 +2633,11 @@ declare const heldRunsListResponseSchema: z.ZodObject<{
2633
2633
  heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
2634
2634
  id: z.ZodString;
2635
2635
  runId: z.ZodString;
2636
- environmentId: z.ZodNullable<z.ZodString>;
2637
- environmentName: z.ZodNullable<z.ZodString>;
2636
+ contextId: z.ZodNullable<z.ZodString>;
2637
+ contextName: z.ZodNullable<z.ZodString>;
2638
2638
  holdType: z.ZodString;
2639
2639
  queueType: z.ZodEnum<{
2640
- environment: "environment";
2640
+ context: "context";
2641
2641
  security: "security";
2642
2642
  }>;
2643
2643
  status: z.ZodEnum<{
@@ -4638,7 +4638,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4638
4638
  runId: z.ZodString;
4639
4639
  jobId: z.ZodString;
4640
4640
  }, z.core.$strip>, z.ZodObject<{
4641
- type: z.ZodLiteral<"dashboard.environments.list">;
4641
+ type: z.ZodLiteral<"dashboard.contexts.list">;
4642
4642
  requestId: z.ZodString;
4643
4643
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4644
4644
  type: z.ZodLiteral<"user">;
@@ -4669,7 +4669,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4669
4669
  includeSecrets: z.ZodOptional<z.ZodBoolean>;
4670
4670
  orgId: z.ZodOptional<z.ZodString>;
4671
4671
  }, z.core.$strip>, z.ZodObject<{
4672
- type: z.ZodLiteral<"dashboard.environments.get">;
4672
+ type: z.ZodLiteral<"dashboard.contexts.get">;
4673
4673
  requestId: z.ZodString;
4674
4674
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4675
4675
  type: z.ZodLiteral<"user">;
@@ -4697,9 +4697,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4697
4697
  type: z.ZodLiteral<"system">;
4698
4698
  component: z.ZodString;
4699
4699
  }, z.core.$strip>], "type">;
4700
- environmentId: z.ZodString;
4700
+ contextId: z.ZodString;
4701
4701
  }, z.core.$strip>, z.ZodObject<{
4702
- type: z.ZodLiteral<"dashboard.environments.create">;
4702
+ type: z.ZodLiteral<"dashboard.contexts.create">;
4703
4703
  requestId: z.ZodString;
4704
4704
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4705
4705
  type: z.ZodLiteral<"user">;
@@ -4728,7 +4728,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4728
4728
  component: z.ZodString;
4729
4729
  }, z.core.$strip>], "type">;
4730
4730
  name: z.ZodString;
4731
- envType: z.ZodEnum<{
4731
+ contextType: z.ZodEnum<{
4732
4732
  fixed: "fixed";
4733
4733
  glob: "glob";
4734
4734
  }>;
@@ -4744,7 +4744,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4744
4744
  holdExpirySeconds: z.ZodOptional<z.ZodNumber>;
4745
4745
  enabled: z.ZodOptional<z.ZodBoolean>;
4746
4746
  }, z.core.$strip>, z.ZodObject<{
4747
- type: z.ZodLiteral<"dashboard.environments.update">;
4747
+ type: z.ZodLiteral<"dashboard.contexts.update">;
4748
4748
  requestId: z.ZodString;
4749
4749
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4750
4750
  type: z.ZodLiteral<"user">;
@@ -4772,10 +4772,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4772
4772
  type: z.ZodLiteral<"system">;
4773
4773
  component: z.ZodString;
4774
4774
  }, z.core.$strip>], "type">;
4775
- environmentId: z.ZodString;
4775
+ contextId: z.ZodString;
4776
4776
  updates: z.ZodObject<{
4777
4777
  name: z.ZodOptional<z.ZodString>;
4778
- envType: z.ZodOptional<z.ZodEnum<{
4778
+ contextType: z.ZodOptional<z.ZodEnum<{
4779
4779
  fixed: "fixed";
4780
4780
  glob: "glob";
4781
4781
  }>>;
@@ -4792,7 +4792,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4792
4792
  enabled: z.ZodOptional<z.ZodBoolean>;
4793
4793
  }, z.core.$strip>;
4794
4794
  }, z.core.$strip>, z.ZodObject<{
4795
- type: z.ZodLiteral<"dashboard.environments.test_access.set">;
4795
+ type: z.ZodLiteral<"dashboard.contexts.test_access.set">;
4796
4796
  requestId: z.ZodString;
4797
4797
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4798
4798
  type: z.ZodLiteral<"user">;
@@ -4820,10 +4820,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4820
4820
  type: z.ZodLiteral<"system">;
4821
4821
  component: z.ZodString;
4822
4822
  }, z.core.$strip>], "type">;
4823
- environmentId: z.ZodString;
4823
+ contextId: z.ZodString;
4824
4824
  allowLocalExecution: z.ZodBoolean;
4825
4825
  }, z.core.$strip>, z.ZodObject<{
4826
- type: z.ZodLiteral<"dashboard.environments.delete">;
4826
+ type: z.ZodLiteral<"dashboard.contexts.delete">;
4827
4827
  requestId: z.ZodString;
4828
4828
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4829
4829
  type: z.ZodLiteral<"user">;
@@ -4851,9 +4851,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4851
4851
  type: z.ZodLiteral<"system">;
4852
4852
  component: z.ZodString;
4853
4853
  }, z.core.$strip>], "type">;
4854
- environmentId: z.ZodString;
4854
+ contextId: z.ZodString;
4855
4855
  }, z.core.$strip>, z.ZodObject<{
4856
- type: z.ZodLiteral<"dashboard.environments.variables.list">;
4856
+ type: z.ZodLiteral<"dashboard.contexts.variables.list">;
4857
4857
  requestId: z.ZodString;
4858
4858
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4859
4859
  type: z.ZodLiteral<"user">;
@@ -4881,9 +4881,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4881
4881
  type: z.ZodLiteral<"system">;
4882
4882
  component: z.ZodString;
4883
4883
  }, z.core.$strip>], "type">;
4884
- environmentId: z.ZodString;
4884
+ contextId: z.ZodString;
4885
4885
  }, z.core.$strip>, z.ZodObject<{
4886
- type: z.ZodLiteral<"dashboard.environments.variables.set">;
4886
+ type: z.ZodLiteral<"dashboard.contexts.variables.set">;
4887
4887
  requestId: z.ZodString;
4888
4888
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4889
4889
  type: z.ZodLiteral<"user">;
@@ -4911,12 +4911,12 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4911
4911
  type: z.ZodLiteral<"system">;
4912
4912
  component: z.ZodString;
4913
4913
  }, z.core.$strip>], "type">;
4914
- environmentId: z.ZodString;
4914
+ contextId: z.ZodString;
4915
4915
  key: z.ZodString;
4916
4916
  value: z.ZodString;
4917
4917
  locked: z.ZodOptional<z.ZodBoolean>;
4918
4918
  }, z.core.$strip>, z.ZodObject<{
4919
- type: z.ZodLiteral<"dashboard.environments.variables.delete">;
4919
+ type: z.ZodLiteral<"dashboard.contexts.variables.delete">;
4920
4920
  requestId: z.ZodString;
4921
4921
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4922
4922
  type: z.ZodLiteral<"user">;
@@ -4944,10 +4944,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4944
4944
  type: z.ZodLiteral<"system">;
4945
4945
  component: z.ZodString;
4946
4946
  }, z.core.$strip>], "type">;
4947
- environmentId: z.ZodString;
4947
+ contextId: z.ZodString;
4948
4948
  key: z.ZodString;
4949
4949
  }, z.core.$strip>, z.ZodObject<{
4950
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list">;
4950
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.list">;
4951
4951
  requestId: z.ZodString;
4952
4952
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4953
4953
  type: z.ZodLiteral<"user">;
@@ -4975,10 +4975,10 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
4975
4975
  type: z.ZodLiteral<"system">;
4976
4976
  component: z.ZodString;
4977
4977
  }, z.core.$strip>], "type">;
4978
- environmentId: z.ZodString;
4978
+ contextId: z.ZodString;
4979
4979
  routingKey: z.ZodString;
4980
4980
  }, z.core.$strip>, z.ZodObject<{
4981
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set">;
4981
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.set">;
4982
4982
  requestId: z.ZodString;
4983
4983
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
4984
4984
  type: z.ZodLiteral<"user">;
@@ -5006,12 +5006,12 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5006
5006
  type: z.ZodLiteral<"system">;
5007
5007
  component: z.ZodString;
5008
5008
  }, z.core.$strip>], "type">;
5009
- environmentId: z.ZodString;
5009
+ contextId: z.ZodString;
5010
5010
  routingKey: z.ZodString;
5011
5011
  key: z.ZodString;
5012
5012
  value: z.ZodString;
5013
5013
  }, z.core.$strip>, z.ZodObject<{
5014
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete">;
5014
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete">;
5015
5015
  requestId: z.ZodString;
5016
5016
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5017
5017
  type: z.ZodLiteral<"user">;
@@ -5039,11 +5039,11 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5039
5039
  type: z.ZodLiteral<"system">;
5040
5040
  component: z.ZodString;
5041
5041
  }, z.core.$strip>], "type">;
5042
- environmentId: z.ZodString;
5042
+ contextId: z.ZodString;
5043
5043
  routingKey: z.ZodString;
5044
5044
  key: z.ZodString;
5045
5045
  }, z.core.$strip>, z.ZodObject<{
5046
- type: z.ZodLiteral<"dashboard.environments.bindings.list">;
5046
+ type: z.ZodLiteral<"dashboard.contexts.bindings.list">;
5047
5047
  requestId: z.ZodString;
5048
5048
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5049
5049
  type: z.ZodLiteral<"user">;
@@ -5071,9 +5071,9 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5071
5071
  type: z.ZodLiteral<"system">;
5072
5072
  component: z.ZodString;
5073
5073
  }, z.core.$strip>], "type">;
5074
- environmentId: z.ZodString;
5074
+ contextId: z.ZodString;
5075
5075
  }, z.core.$strip>, z.ZodObject<{
5076
- type: z.ZodLiteral<"dashboard.environments.bindings.set">;
5076
+ type: z.ZodLiteral<"dashboard.contexts.bindings.set">;
5077
5077
  requestId: z.ZodString;
5078
5078
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5079
5079
  type: z.ZodLiteral<"user">;
@@ -5101,13 +5101,13 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5101
5101
  type: z.ZodLiteral<"system">;
5102
5102
  component: z.ZodString;
5103
5103
  }, z.core.$strip>], "type">;
5104
- environmentId: z.ZodString;
5104
+ contextId: z.ZodString;
5105
5105
  bindings: z.ZodArray<z.ZodObject<{
5106
5106
  scopePattern: z.ZodString;
5107
5107
  hostPattern: z.ZodString;
5108
5108
  }, z.core.$strip>>;
5109
5109
  }, z.core.$strip>, z.ZodObject<{
5110
- type: z.ZodLiteral<"dashboard.environments.secrets.list">;
5110
+ type: z.ZodLiteral<"dashboard.contexts.secrets.list">;
5111
5111
  requestId: z.ZodString;
5112
5112
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5113
5113
  type: z.ZodLiteral<"user">;
@@ -5136,7 +5136,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5136
5136
  component: z.ZodString;
5137
5137
  }, z.core.$strip>], "type">;
5138
5138
  }, z.core.$strip>, z.ZodObject<{
5139
- type: z.ZodLiteral<"dashboard.environments.secrets.set">;
5139
+ type: z.ZodLiteral<"dashboard.contexts.secrets.set">;
5140
5140
  requestId: z.ZodString;
5141
5141
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5142
5142
  type: z.ZodLiteral<"user">;
@@ -5168,7 +5168,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5168
5168
  key: z.ZodString;
5169
5169
  value: z.ZodString;
5170
5170
  }, z.core.$strip>, z.ZodObject<{
5171
- type: z.ZodLiteral<"dashboard.environments.secrets.delete">;
5171
+ type: z.ZodLiteral<"dashboard.contexts.secrets.delete">;
5172
5172
  requestId: z.ZodString;
5173
5173
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5174
5174
  type: z.ZodLiteral<"user">;
@@ -5199,7 +5199,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5199
5199
  scope: z.ZodString;
5200
5200
  key: z.ZodString;
5201
5201
  }, z.core.$strip>, z.ZodObject<{
5202
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create">;
5202
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create">;
5203
5203
  requestId: z.ZodString;
5204
5204
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5205
5205
  type: z.ZodLiteral<"user">;
@@ -5229,7 +5229,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5229
5229
  }, z.core.$strip>], "type">;
5230
5230
  scope: z.ZodString;
5231
5231
  }, z.core.$strip>, z.ZodObject<{
5232
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename">;
5232
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename">;
5233
5233
  requestId: z.ZodString;
5234
5234
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5235
5235
  type: z.ZodLiteral<"user">;
@@ -5260,7 +5260,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5260
5260
  oldScope: z.ZodString;
5261
5261
  newScope: z.ZodString;
5262
5262
  }, z.core.$strip>, z.ZodObject<{
5263
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete">;
5263
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete">;
5264
5264
  requestId: z.ZodString;
5265
5265
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5266
5266
  type: z.ZodLiteral<"user">;
@@ -5290,7 +5290,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5290
5290
  }, z.core.$strip>], "type">;
5291
5291
  scope: z.ZodString;
5292
5292
  }, z.core.$strip>, z.ZodObject<{
5293
- type: z.ZodLiteral<"dashboard.environments.history">;
5293
+ type: z.ZodLiteral<"dashboard.contexts.history">;
5294
5294
  requestId: z.ZodString;
5295
5295
  actor: z.ZodDiscriminatedUnion<[z.ZodObject<{
5296
5296
  type: z.ZodLiteral<"user">;
@@ -5318,7 +5318,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5318
5318
  type: z.ZodLiteral<"system">;
5319
5319
  component: z.ZodString;
5320
5320
  }, z.core.$strip>], "type">;
5321
- environmentId: z.ZodString;
5321
+ contextId: z.ZodString;
5322
5322
  limit: z.ZodOptional<z.ZodNumber>;
5323
5323
  offset: z.ZodOptional<z.ZodNumber>;
5324
5324
  }, z.core.$strip>, z.ZodObject<{
@@ -5357,7 +5357,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
5357
5357
  expired: "expired";
5358
5358
  }>>;
5359
5359
  queueType: z.ZodOptional<z.ZodEnum<{
5360
- environment: "environment";
5360
+ context: "context";
5361
5361
  security: "security";
5362
5362
  }>>;
5363
5363
  runId: z.ZodOptional<z.ZodString>;
@@ -6305,19 +6305,19 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
6305
6305
  "event_log.list.read": "event_log.list.read";
6306
6306
  "event_log.detail.read": "event_log.detail.read";
6307
6307
  "event_log.payload.read": "event_log.payload.read";
6308
- "environment.list.read": "environment.list.read";
6309
- "environment.get.read": "environment.get.read";
6310
- "environment.create": "environment.create";
6311
- "environment.update": "environment.update";
6312
- "environment.delete": "environment.delete";
6313
- "env_var.list.read": "env_var.list.read";
6314
- "env_var.set": "env_var.set";
6315
- "env_var.delete": "env_var.delete";
6308
+ "context.list.read": "context.list.read";
6309
+ "context.get.read": "context.get.read";
6310
+ "context.create": "context.create";
6311
+ "context.update": "context.update";
6312
+ "context.delete": "context.delete";
6313
+ "context_var.list.read": "context_var.list.read";
6314
+ "context_var.set": "context_var.set";
6315
+ "context_var.delete": "context_var.delete";
6316
6316
  "source_override.list.read": "source_override.list.read";
6317
6317
  "source_override.set": "source_override.set";
6318
6318
  "source_override.delete": "source_override.delete";
6319
- "env_binding.list.read": "env_binding.list.read";
6320
- "env_binding.set": "env_binding.set";
6319
+ "context_binding.list.read": "context_binding.list.read";
6320
+ "context_binding.set": "context_binding.set";
6321
6321
  "secret.list.read": "secret.list.read";
6322
6322
  "secret.set": "secret.set";
6323
6323
  "secret.delete": "secret.delete";
@@ -6325,7 +6325,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
6325
6325
  "secret_scope.create": "secret_scope.create";
6326
6326
  "secret_scope.rename": "secret_scope.rename";
6327
6327
  "secret_scope.delete": "secret_scope.delete";
6328
- "environment.history.read": "environment.history.read";
6328
+ "context.history.read": "context.history.read";
6329
6329
  "held_run.list.read": "held_run.list.read";
6330
6330
  "held_run.approve": "held_run.approve";
6331
6331
  "held_run.auto_approve": "held_run.auto_approve";
@@ -6347,6 +6347,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
6347
6347
  "global_workflows.get.read": "global_workflows.get.read";
6348
6348
  "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
6349
6349
  "cluster_name.update": "cluster_name.update";
6350
+ "attestation.retry": "attestation.retry";
6350
6351
  "access_log.list.read": "access_log.list.read";
6351
6352
  "event_dlq.list.read": "event_dlq.list.read";
6352
6353
  archive_chunk: "archive_chunk";
@@ -6367,7 +6368,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
6367
6368
  job: "job";
6368
6369
  step: "step";
6369
6370
  run: "run";
6370
- environment: "environment";
6371
+ context: "context";
6371
6372
  payload: "payload";
6372
6373
  event_log: "event_log";
6373
6374
  event_log_payload: "event_log_payload";
@@ -6611,8 +6612,8 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6611
6612
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6612
6613
  errorMessage: z.ZodNullable<z.ZodString>;
6613
6614
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6614
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6615
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6615
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6616
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6616
6617
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6617
6618
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
6618
6619
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -6626,7 +6627,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6626
6627
  install_secrets: "install_secrets";
6627
6628
  lock_resolution: "lock_resolution";
6628
6629
  build_coordination: "build_coordination";
6629
- environment_rules: "environment_rules";
6630
+ context_rules: "context_rules";
6630
6631
  dynamic_eval: "dynamic_eval";
6631
6632
  no_agent: "no_agent";
6632
6633
  matrix_expansion: "matrix_expansion";
@@ -6699,7 +6700,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6699
6700
  install_secrets: "install_secrets";
6700
6701
  lock_resolution: "lock_resolution";
6701
6702
  build_coordination: "build_coordination";
6702
- environment_rules: "environment_rules";
6703
+ context_rules: "context_rules";
6703
6704
  dynamic_eval: "dynamic_eval";
6704
6705
  no_agent: "no_agent";
6705
6706
  matrix_expansion: "matrix_expansion";
@@ -6800,7 +6801,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
6800
6801
  install_secrets: "install_secrets";
6801
6802
  lock_resolution: "lock_resolution";
6802
6803
  build_coordination: "build_coordination";
6803
- environment_rules: "environment_rules";
6804
+ context_rules: "context_rules";
6804
6805
  dynamic_eval: "dynamic_eval";
6805
6806
  no_agent: "no_agent";
6806
6807
  matrix_expansion: "matrix_expansion";
@@ -7030,7 +7031,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7030
7031
  triggerEvent: z.ZodOptional<z.ZodString>;
7031
7032
  commitMessage: z.ZodOptional<z.ZodString>;
7032
7033
  jobCount: z.ZodOptional<z.ZodNumber>;
7033
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
7034
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
7034
7035
  startedAt: z.ZodOptional<z.ZodString>;
7035
7036
  completedAt: z.ZodOptional<z.ZodString>;
7036
7037
  durationMs: z.ZodOptional<z.ZodNumber>;
@@ -7111,9 +7112,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7111
7112
  totalLines: z.ZodNumber;
7112
7113
  error: z.ZodOptional<z.ZodString>;
7113
7114
  }, z.core.$strip>, z.ZodObject<{
7114
- type: z.ZodLiteral<"dashboard.environments.list.response">;
7115
+ type: z.ZodLiteral<"dashboard.contexts.list.response">;
7115
7116
  requestId: z.ZodString;
7116
- environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
7117
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
7117
7118
  id: z.ZodString;
7118
7119
  name: z.ZodString;
7119
7120
  type: z.ZodEnum<{
@@ -7129,9 +7130,9 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7129
7130
  }, z.core.$strip>>>;
7130
7131
  error: z.ZodOptional<z.ZodString>;
7131
7132
  }, z.core.$strip>, z.ZodObject<{
7132
- type: z.ZodLiteral<"dashboard.environments.get.response">;
7133
+ type: z.ZodLiteral<"dashboard.contexts.get.response">;
7133
7134
  requestId: z.ZodString;
7134
- environment: z.ZodOptional<z.ZodObject<{
7135
+ context: z.ZodOptional<z.ZodObject<{
7135
7136
  id: z.ZodString;
7136
7137
  name: z.ZodString;
7137
7138
  type: z.ZodEnum<{
@@ -7155,27 +7156,27 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7155
7156
  }, z.core.$strip>>;
7156
7157
  error: z.ZodOptional<z.ZodString>;
7157
7158
  }, z.core.$strip>, z.ZodObject<{
7158
- type: z.ZodLiteral<"dashboard.environments.create.response">;
7159
+ type: z.ZodLiteral<"dashboard.contexts.create.response">;
7159
7160
  requestId: z.ZodString;
7160
- environmentId: z.ZodOptional<z.ZodString>;
7161
+ contextId: z.ZodOptional<z.ZodString>;
7161
7162
  error: z.ZodOptional<z.ZodString>;
7162
7163
  }, z.core.$strip>, z.ZodObject<{
7163
- type: z.ZodLiteral<"dashboard.environments.update.response">;
7164
+ type: z.ZodLiteral<"dashboard.contexts.update.response">;
7164
7165
  requestId: z.ZodString;
7165
7166
  error: z.ZodOptional<z.ZodString>;
7166
7167
  }, z.core.$strip>, z.ZodObject<{
7167
- type: z.ZodLiteral<"dashboard.environments.test_access.set.response">;
7168
+ type: z.ZodLiteral<"dashboard.contexts.test_access.set.response">;
7168
7169
  requestId: z.ZodString;
7169
7170
  error: z.ZodOptional<z.ZodString>;
7170
7171
  }, z.core.$strip>, z.ZodObject<{
7171
- type: z.ZodLiteral<"dashboard.environments.delete.response">;
7172
+ type: z.ZodLiteral<"dashboard.contexts.delete.response">;
7172
7173
  requestId: z.ZodString;
7173
7174
  error: z.ZodOptional<z.ZodString>;
7174
7175
  errorCode: z.ZodOptional<z.ZodEnum<{
7175
7176
  pending_held_runs: "pending_held_runs";
7176
7177
  }>>;
7177
7178
  }, z.core.$strip>, z.ZodObject<{
7178
- type: z.ZodLiteral<"dashboard.environments.variables.list.response">;
7179
+ type: z.ZodLiteral<"dashboard.contexts.variables.list.response">;
7179
7180
  requestId: z.ZodString;
7180
7181
  variables: z.ZodOptional<z.ZodArray<z.ZodObject<{
7181
7182
  key: z.ZodString;
@@ -7184,15 +7185,15 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7184
7185
  }, z.core.$strip>>>;
7185
7186
  error: z.ZodOptional<z.ZodString>;
7186
7187
  }, z.core.$strip>, z.ZodObject<{
7187
- type: z.ZodLiteral<"dashboard.environments.variables.set.response">;
7188
+ type: z.ZodLiteral<"dashboard.contexts.variables.set.response">;
7188
7189
  requestId: z.ZodString;
7189
7190
  error: z.ZodOptional<z.ZodString>;
7190
7191
  }, z.core.$strip>, z.ZodObject<{
7191
- type: z.ZodLiteral<"dashboard.environments.variables.delete.response">;
7192
+ type: z.ZodLiteral<"dashboard.contexts.variables.delete.response">;
7192
7193
  requestId: z.ZodString;
7193
7194
  error: z.ZodOptional<z.ZodString>;
7194
7195
  }, z.core.$strip>, z.ZodObject<{
7195
- type: z.ZodLiteral<"dashboard.environments.source-overrides.list.response">;
7196
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.list.response">;
7196
7197
  requestId: z.ZodString;
7197
7198
  overrides: z.ZodOptional<z.ZodArray<z.ZodObject<{
7198
7199
  key: z.ZodString;
@@ -7200,15 +7201,15 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7200
7201
  }, z.core.$strip>>>;
7201
7202
  error: z.ZodOptional<z.ZodString>;
7202
7203
  }, z.core.$strip>, z.ZodObject<{
7203
- type: z.ZodLiteral<"dashboard.environments.source-overrides.set.response">;
7204
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.set.response">;
7204
7205
  requestId: z.ZodString;
7205
7206
  error: z.ZodOptional<z.ZodString>;
7206
7207
  }, z.core.$strip>, z.ZodObject<{
7207
- type: z.ZodLiteral<"dashboard.environments.source-overrides.delete.response">;
7208
+ type: z.ZodLiteral<"dashboard.contexts.source-overrides.delete.response">;
7208
7209
  requestId: z.ZodString;
7209
7210
  error: z.ZodOptional<z.ZodString>;
7210
7211
  }, z.core.$strip>, z.ZodObject<{
7211
- type: z.ZodLiteral<"dashboard.environments.bindings.list.response">;
7212
+ type: z.ZodLiteral<"dashboard.contexts.bindings.list.response">;
7212
7213
  requestId: z.ZodString;
7213
7214
  bindings: z.ZodOptional<z.ZodArray<z.ZodObject<{
7214
7215
  scopePattern: z.ZodString;
@@ -7216,11 +7217,11 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7216
7217
  }, z.core.$strip>>>;
7217
7218
  error: z.ZodOptional<z.ZodString>;
7218
7219
  }, z.core.$strip>, z.ZodObject<{
7219
- type: z.ZodLiteral<"dashboard.environments.bindings.set.response">;
7220
+ type: z.ZodLiteral<"dashboard.contexts.bindings.set.response">;
7220
7221
  requestId: z.ZodString;
7221
7222
  error: z.ZodOptional<z.ZodString>;
7222
7223
  }, z.core.$strip>, z.ZodObject<{
7223
- type: z.ZodLiteral<"dashboard.environments.secrets.list.response">;
7224
+ type: z.ZodLiteral<"dashboard.contexts.secrets.list.response">;
7224
7225
  requestId: z.ZodString;
7225
7226
  secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
7226
7227
  scope: z.ZodString;
@@ -7230,27 +7231,27 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7230
7231
  }, z.core.$strip>>>;
7231
7232
  error: z.ZodOptional<z.ZodString>;
7232
7233
  }, z.core.$strip>, z.ZodObject<{
7233
- type: z.ZodLiteral<"dashboard.environments.secrets.set.response">;
7234
+ type: z.ZodLiteral<"dashboard.contexts.secrets.set.response">;
7234
7235
  requestId: z.ZodString;
7235
7236
  error: z.ZodOptional<z.ZodString>;
7236
7237
  }, z.core.$strip>, z.ZodObject<{
7237
- type: z.ZodLiteral<"dashboard.environments.secrets.delete.response">;
7238
+ type: z.ZodLiteral<"dashboard.contexts.secrets.delete.response">;
7238
7239
  requestId: z.ZodString;
7239
7240
  error: z.ZodOptional<z.ZodString>;
7240
7241
  }, z.core.$strip>, z.ZodObject<{
7241
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.create.response">;
7242
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.create.response">;
7242
7243
  requestId: z.ZodString;
7243
7244
  error: z.ZodOptional<z.ZodString>;
7244
7245
  }, z.core.$strip>, z.ZodObject<{
7245
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.rename.response">;
7246
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.rename.response">;
7246
7247
  requestId: z.ZodString;
7247
7248
  error: z.ZodOptional<z.ZodString>;
7248
7249
  }, z.core.$strip>, z.ZodObject<{
7249
- type: z.ZodLiteral<"dashboard.environments.secrets.scope.delete.response">;
7250
+ type: z.ZodLiteral<"dashboard.contexts.secrets.scope.delete.response">;
7250
7251
  requestId: z.ZodString;
7251
7252
  error: z.ZodOptional<z.ZodString>;
7252
7253
  }, z.core.$strip>, z.ZodObject<{
7253
- type: z.ZodLiteral<"dashboard.environments.history.response">;
7254
+ type: z.ZodLiteral<"dashboard.contexts.history.response">;
7254
7255
  requestId: z.ZodString;
7255
7256
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7256
7257
  id: z.ZodString;
@@ -7261,7 +7262,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7261
7262
  commitSha: z.ZodNullable<z.ZodString>;
7262
7263
  startedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
7263
7264
  completedAt: z.ZodNullable<z.ZodCoercedString<unknown>>;
7264
- environment: z.ZodNullable<z.ZodString>;
7265
+ context: z.ZodNullable<z.ZodString>;
7265
7266
  }, z.core.$strip>>>;
7266
7267
  error: z.ZodOptional<z.ZodString>;
7267
7268
  }, z.core.$strip>, z.ZodObject<{
@@ -7270,11 +7271,11 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7270
7271
  heldRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
7271
7272
  id: z.ZodString;
7272
7273
  runId: z.ZodString;
7273
- environmentId: z.ZodNullable<z.ZodString>;
7274
- environmentName: z.ZodNullable<z.ZodString>;
7274
+ contextId: z.ZodNullable<z.ZodString>;
7275
+ contextName: z.ZodNullable<z.ZodString>;
7275
7276
  holdType: z.ZodString;
7276
7277
  queueType: z.ZodEnum<{
7277
- environment: "environment";
7278
+ context: "context";
7278
7279
  security: "security";
7279
7280
  }>;
7280
7281
  status: z.ZodEnum<{
@@ -7930,19 +7931,19 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7930
7931
  "event_log.list.read": "event_log.list.read";
7931
7932
  "event_log.detail.read": "event_log.detail.read";
7932
7933
  "event_log.payload.read": "event_log.payload.read";
7933
- "environment.list.read": "environment.list.read";
7934
- "environment.get.read": "environment.get.read";
7935
- "environment.create": "environment.create";
7936
- "environment.update": "environment.update";
7937
- "environment.delete": "environment.delete";
7938
- "env_var.list.read": "env_var.list.read";
7939
- "env_var.set": "env_var.set";
7940
- "env_var.delete": "env_var.delete";
7934
+ "context.list.read": "context.list.read";
7935
+ "context.get.read": "context.get.read";
7936
+ "context.create": "context.create";
7937
+ "context.update": "context.update";
7938
+ "context.delete": "context.delete";
7939
+ "context_var.list.read": "context_var.list.read";
7940
+ "context_var.set": "context_var.set";
7941
+ "context_var.delete": "context_var.delete";
7941
7942
  "source_override.list.read": "source_override.list.read";
7942
7943
  "source_override.set": "source_override.set";
7943
7944
  "source_override.delete": "source_override.delete";
7944
- "env_binding.list.read": "env_binding.list.read";
7945
- "env_binding.set": "env_binding.set";
7945
+ "context_binding.list.read": "context_binding.list.read";
7946
+ "context_binding.set": "context_binding.set";
7946
7947
  "secret.list.read": "secret.list.read";
7947
7948
  "secret.set": "secret.set";
7948
7949
  "secret.delete": "secret.delete";
@@ -7950,7 +7951,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7950
7951
  "secret_scope.create": "secret_scope.create";
7951
7952
  "secret_scope.rename": "secret_scope.rename";
7952
7953
  "secret_scope.delete": "secret_scope.delete";
7953
- "environment.history.read": "environment.history.read";
7954
+ "context.history.read": "context.history.read";
7954
7955
  "held_run.list.read": "held_run.list.read";
7955
7956
  "held_run.approve": "held_run.approve";
7956
7957
  "held_run.auto_approve": "held_run.auto_approve";
@@ -7972,6 +7973,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7972
7973
  "global_workflows.get.read": "global_workflows.get.read";
7973
7974
  "org_settings.dashboard_write_policy.update": "org_settings.dashboard_write_policy.update";
7974
7975
  "cluster_name.update": "cluster_name.update";
7976
+ "attestation.retry": "attestation.retry";
7975
7977
  "access_log.list.read": "access_log.list.read";
7976
7978
  "event_dlq.list.read": "event_dlq.list.read";
7977
7979
  archive_chunk: "archive_chunk";
@@ -7981,7 +7983,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
7981
7983
  job: "job";
7982
7984
  step: "step";
7983
7985
  run: "run";
7984
- environment: "environment";
7986
+ context: "context";
7985
7987
  payload: "payload";
7986
7988
  event_log: "event_log";
7987
7989
  event_log_payload: "event_log_payload";
@@ -8088,30 +8090,30 @@ export type DashboardEventDlqRetryRequest = z.infer<typeof dashboardEventDlqRetr
8088
8090
  export type DashboardEventDlqRetryResponse = z.infer<typeof dashboardEventDlqRetryResponseSchema>;
8089
8091
  export type DashboardEventDlqDiscardRequest = z.infer<typeof dashboardEventDlqDiscardRequestSchema>;
8090
8092
  export type DashboardEventDlqDiscardResponse = z.infer<typeof dashboardEventDlqDiscardResponseSchema>;
8091
- export type EnvListRequest = z.infer<typeof envListRequestSchema>;
8092
- type EnvListResponse = z.infer<typeof envListResponseSchema>;
8093
- export type EnvGetRequest = z.infer<typeof envGetRequestSchema>;
8094
- type EnvGetResponse = z.infer<typeof envGetResponseSchema>;
8095
- export type EnvCreateRequest = z.infer<typeof envCreateRequestSchema>;
8096
- export type EnvUpdateRequest = z.infer<typeof envUpdateRequestSchema>;
8097
- export type EnvTestAccessSetRequest = z.infer<typeof envTestAccessSetRequestSchema>;
8098
- export type EnvDeleteRequest = z.infer<typeof envDeleteRequestSchema>;
8099
- export type EnvVarsListRequest = z.infer<typeof envVarsListRequestSchema>;
8100
- type EnvVarsListResponse = z.infer<typeof envVarsListResponseSchema>;
8101
- export type EnvVarSetRequest = z.infer<typeof envVarSetRequestSchema>;
8102
- export type EnvVarDeleteRequest = z.infer<typeof envVarDeleteRequestSchema>;
8103
- export type EnvSourceOverridesListRequest = z.infer<typeof envSourceOverridesListRequestSchema>;
8104
- export type EnvSourceOverrideSetRequest = z.infer<typeof envSourceOverrideSetRequestSchema>;
8105
- export type EnvSourceOverrideDeleteRequest = z.infer<typeof envSourceOverrideDeleteRequestSchema>;
8106
- export type EnvBindingsListRequest = z.infer<typeof envBindingsListRequestSchema>;
8107
- export type EnvBindingsSetRequest = z.infer<typeof envBindingsSetRequestSchema>;
8108
- export type EnvSecretsListRequest = z.infer<typeof envSecretsListRequestSchema>;
8109
- export type EnvSecretSetRequest = z.infer<typeof envSecretSetRequestSchema>;
8110
- export type EnvSecretDeleteRequest = z.infer<typeof envSecretDeleteRequestSchema>;
8111
- export type EnvSecretScopeCreateRequest = z.infer<typeof envSecretScopeCreateRequestSchema>;
8112
- export type EnvSecretScopeRenameRequest = z.infer<typeof envSecretScopeRenameRequestSchema>;
8113
- export type EnvSecretScopeDeleteRequest = z.infer<typeof envSecretScopeDeleteRequestSchema>;
8114
- export type EnvHistoryRequest = z.infer<typeof envHistoryRequestSchema>;
8093
+ export type ContextListRequest = z.infer<typeof contextListRequestSchema>;
8094
+ type ContextListResponse = z.infer<typeof contextListResponseSchema>;
8095
+ export type ContextGetRequest = z.infer<typeof contextGetRequestSchema>;
8096
+ type ContextGetResponse = z.infer<typeof contextGetResponseSchema>;
8097
+ export type ContextCreateRequest = z.infer<typeof contextCreateRequestSchema>;
8098
+ export type ContextUpdateRequest = z.infer<typeof contextUpdateRequestSchema>;
8099
+ export type ContextTestAccessSetRequest = z.infer<typeof contextTestAccessSetRequestSchema>;
8100
+ export type ContextDeleteRequest = z.infer<typeof contextDeleteRequestSchema>;
8101
+ export type ContextVarsListRequest = z.infer<typeof contextVarsListRequestSchema>;
8102
+ type ContextVarsListResponse = z.infer<typeof contextVarsListResponseSchema>;
8103
+ export type ContextVarSetRequest = z.infer<typeof contextVarSetRequestSchema>;
8104
+ export type ContextVarDeleteRequest = z.infer<typeof contextVarDeleteRequestSchema>;
8105
+ export type ContextSourceOverridesListRequest = z.infer<typeof contextSourceOverridesListRequestSchema>;
8106
+ export type ContextSourceOverrideSetRequest = z.infer<typeof contextSourceOverrideSetRequestSchema>;
8107
+ export type ContextSourceOverrideDeleteRequest = z.infer<typeof contextSourceOverrideDeleteRequestSchema>;
8108
+ export type ContextBindingsListRequest = z.infer<typeof contextBindingsListRequestSchema>;
8109
+ export type ContextBindingsSetRequest = z.infer<typeof contextBindingsSetRequestSchema>;
8110
+ export type ContextSecretsListRequest = z.infer<typeof contextSecretsListRequestSchema>;
8111
+ export type ContextSecretSetRequest = z.infer<typeof contextSecretSetRequestSchema>;
8112
+ export type ContextSecretDeleteRequest = z.infer<typeof contextSecretDeleteRequestSchema>;
8113
+ export type ContextSecretScopeCreateRequest = z.infer<typeof contextSecretScopeCreateRequestSchema>;
8114
+ export type ContextSecretScopeRenameRequest = z.infer<typeof contextSecretScopeRenameRequestSchema>;
8115
+ export type ContextSecretScopeDeleteRequest = z.infer<typeof contextSecretScopeDeleteRequestSchema>;
8116
+ export type ContextHistoryRequest = z.infer<typeof contextHistoryRequestSchema>;
8115
8117
  export type HeldRunsListRequest = z.infer<typeof heldRunsListRequestSchema>;
8116
8118
  type HeldRunsListResponse = z.infer<typeof heldRunsListResponseSchema>;
8117
8119
  export type HeldRunApproveRequest = z.infer<typeof heldRunApproveRequestSchema>;
@@ -8147,8 +8149,8 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8147
8149
  orchestratorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8148
8150
  errorMessage: z.ZodNullable<z.ZodString>;
8149
8151
  runsOnLabels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8150
- environments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8151
- skippedEnvironments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8152
+ contexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8153
+ skippedContexts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8152
8154
  envWarning: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8153
8155
  outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
8154
8156
  secretOutputKeys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -8162,7 +8164,7 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8162
8164
  install_secrets: "install_secrets";
8163
8165
  lock_resolution: "lock_resolution";
8164
8166
  build_coordination: "build_coordination";
8165
- environment_rules: "environment_rules";
8167
+ context_rules: "context_rules";
8166
8168
  dynamic_eval: "dynamic_eval";
8167
8169
  no_agent: "no_agent";
8168
8170
  matrix_expansion: "matrix_expansion";
@@ -8240,7 +8242,7 @@ export declare const dashboardRunDetailApiResponseSchema: z.ZodObject<{
8240
8242
  install_secrets: "install_secrets";
8241
8243
  lock_resolution: "lock_resolution";
8242
8244
  build_coordination: "build_coordination";
8243
- environment_rules: "environment_rules";
8245
+ context_rules: "context_rules";
8244
8246
  dynamic_eval: "dynamic_eval";
8245
8247
  no_agent: "no_agent";
8246
8248
  matrix_expansion: "matrix_expansion";
@@ -8345,7 +8347,7 @@ export declare const runListItemSchema: z.ZodObject<{
8345
8347
  failureReason: z.ZodOptional<z.ZodString>;
8346
8348
  hadCompileJob: z.ZodBoolean;
8347
8349
  compileJobId: z.ZodNullable<z.ZodString>;
8348
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
8350
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
8349
8351
  repoProvider: z.ZodNullable<z.ZodString>;
8350
8352
  localWorkingTree: z.ZodBoolean;
8351
8353
  source: z.ZodNullable<z.ZodObject<{
@@ -8395,7 +8397,7 @@ export declare const runListResponseSchema: z.ZodObject<{
8395
8397
  failureReason: z.ZodOptional<z.ZodString>;
8396
8398
  hadCompileJob: z.ZodBoolean;
8397
8399
  compileJobId: z.ZodNullable<z.ZodString>;
8398
- environments: z.ZodOptional<z.ZodArray<z.ZodString>>;
8400
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString>>;
8399
8401
  repoProvider: z.ZodNullable<z.ZodString>;
8400
8402
  localWorkingTree: z.ZodBoolean;
8401
8403
  source: z.ZodNullable<z.ZodObject<{
@@ -8648,12 +8650,12 @@ export type DashboardRunDetailApiResponse = z.infer<typeof dashboardRunDetailApi
8648
8650
  export type DashboardStepLogsApiResponse = z.infer<typeof dashboardStepLogsApiResponseSchema>;
8649
8651
  export type DashboardAttestationsApiResponse = z.infer<typeof dashboardAttestationsApiResponseSchema>;
8650
8652
  export type DashboardJobDetail = z.infer<typeof dashboardJobDetailSchema>;
8651
- /** Single environment from the list response. */
8652
- export type DashboardEnvironment = NonNullable<EnvListResponse['environments']>[number];
8653
- /** Full environment detail from the get response. */
8654
- export type DashboardEnvironmentDetail = NonNullable<EnvGetResponse['environment']>;
8655
- /** Single environment variable from the variables list response. */
8656
- export type DashboardEnvironmentVariable = NonNullable<EnvVarsListResponse['variables']>[number];
8653
+ /** Single context from the list response. */
8654
+ export type DashboardContext = NonNullable<ContextListResponse['contexts']>[number];
8655
+ /** Full context detail from the get response. */
8656
+ export type DashboardContextDetail = NonNullable<ContextGetResponse['context']>;
8657
+ /** Single context variable from the variables list response. */
8658
+ export type DashboardContextVariable = NonNullable<ContextVarsListResponse['variables']>[number];
8657
8659
  /** Single held run from the held runs list response. */
8658
8660
  export type DashboardHeldRun = NonNullable<HeldRunsListResponse['heldRuns']>[number];
8659
8661
  /** Single infrastructure event for a run (from run_events table). */