@lace-cloud/canvas 0.21.1 → 0.23.0

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.
@@ -3,56 +3,36 @@ import { z } from 'zod';
3
3
  import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire';
4
4
 
5
5
  declare const COMMANDS: {
6
- readonly "chaos get": {
7
- readonly path: "chaos get";
8
- readonly positionals: readonly [{
9
- readonly name: "run";
10
- readonly kind: "required";
11
- }];
6
+ readonly "chaos run": {
7
+ readonly path: "chaos run";
8
+ readonly positionals: readonly [];
12
9
  readonly flags: {
13
- readonly org: {
10
+ readonly commit: {
14
11
  readonly type: "string";
15
12
  };
16
- readonly output: {
13
+ readonly credential: {
17
14
  readonly type: "string";
18
- readonly values: readonly ["table", "json"];
19
15
  };
20
- readonly team: {
16
+ readonly duration: {
21
17
  readonly type: "string";
22
18
  };
23
- };
24
- readonly hidden: false;
25
- readonly yes: false;
26
- };
27
- readonly "chaos list": {
28
- readonly path: "chaos list";
29
- readonly positionals: readonly [];
30
- readonly flags: {
31
- readonly org: {
19
+ readonly engine: {
32
20
  readonly type: "string";
21
+ readonly values: readonly ["aws_fis", "gremlin", "litmus_chaos"];
33
22
  };
34
- readonly output: {
35
- readonly type: "string";
36
- readonly values: readonly ["table", "json"];
23
+ readonly excludeResourceType: {
24
+ readonly type: "stringArray";
25
+ readonly repeated: true;
37
26
  };
38
- readonly stack: {
39
- readonly type: "string";
40
- readonly required: true;
27
+ readonly excludeResourceUri: {
28
+ readonly type: "stringArray";
29
+ readonly repeated: true;
41
30
  };
42
- readonly team: {
31
+ readonly experimentId: {
43
32
  readonly type: "string";
44
33
  };
45
- };
46
- readonly hidden: false;
47
- readonly yes: false;
48
- };
49
- readonly "chaos run": {
50
- readonly path: "chaos run";
51
- readonly positionals: readonly [];
52
- readonly flags: {
53
- readonly chaosBinding: {
34
+ readonly file: {
54
35
  readonly type: "string";
55
- readonly required: true;
56
36
  };
57
37
  readonly org: {
58
38
  readonly type: "string";
@@ -61,10 +41,31 @@ declare const COMMANDS: {
61
41
  readonly type: "string";
62
42
  readonly values: readonly ["table", "json"];
63
43
  };
44
+ readonly prUrl: {
45
+ readonly type: "string";
46
+ };
47
+ readonly ref: {
48
+ readonly type: "string";
49
+ };
50
+ readonly resourceType: {
51
+ readonly type: "stringArray";
52
+ readonly repeated: true;
53
+ };
54
+ readonly selector: {
55
+ readonly type: "string";
56
+ readonly values: readonly ["first", "random"];
57
+ };
64
58
  readonly stack: {
65
59
  readonly type: "string";
66
60
  readonly required: true;
67
61
  };
62
+ readonly tag: {
63
+ readonly type: "string";
64
+ };
65
+ readonly tagFilter: {
66
+ readonly type: "stringArray";
67
+ readonly repeated: true;
68
+ };
68
69
  readonly team: {
69
70
  readonly type: "string";
70
71
  };
@@ -1174,6 +1175,10 @@ interface Interface {
1174
1175
  declare const Interface: MessageFns$1<Interface>;
1175
1176
  interface InputDef$1 {
1176
1177
  name: string;
1178
+ /**
1179
+ * The type constraint the variable's type line spells, as written; empty
1180
+ * for a variable with no type line. `any` is a type line of its own.
1181
+ */
1177
1182
  type: string;
1178
1183
  required: boolean;
1179
1184
  description: string;
@@ -1193,6 +1198,10 @@ interface ValidationBlock$1 {
1193
1198
  declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
1194
1199
  interface OutputDef$1 {
1195
1200
  name: string;
1201
+ /**
1202
+ * The type of the child output the output's export reads; empty when
1203
+ * nothing types it. An output block declares no type.
1204
+ */
1196
1205
  type: string;
1197
1206
  description: string;
1198
1207
  sensitive: boolean;
@@ -1323,12 +1332,15 @@ interface ModuleReference {
1323
1332
  splat: boolean;
1324
1333
  }
1325
1334
  declare const ModuleReference: MessageFns$1<ModuleReference>;
1335
+ /**
1336
+ * A module's terraform block as the IR holds it. It holds no backend: Lace
1337
+ * manages state, and a backend block is a fact about the files.
1338
+ */
1326
1339
  interface TerraformBlock {
1327
1340
  required_version: string;
1328
1341
  required_providers: {
1329
1342
  [key: string]: ProviderRequirement;
1330
1343
  };
1331
- backend: BackendConfig | undefined;
1332
1344
  }
1333
1345
  declare const TerraformBlock: MessageFns$1<TerraformBlock>;
1334
1346
  interface ProviderRequirement {
@@ -1337,13 +1349,6 @@ interface ProviderRequirement {
1337
1349
  configuration_aliases: string[];
1338
1350
  }
1339
1351
  declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
1340
- interface BackendConfig {
1341
- type: string;
1342
- config: {
1343
- [key: string]: any | undefined;
1344
- };
1345
- }
1346
- declare const BackendConfig: MessageFns$1<BackendConfig>;
1347
1352
  interface ProviderConfig {
1348
1353
  name: string;
1349
1354
  alias: string;
@@ -1400,7 +1405,11 @@ declare enum DiagnosticSeverity {
1400
1405
  */
1401
1406
  declare enum Reason {
1402
1407
  REASON_UNSPECIFIED = 0,
1403
- /** REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form. */
1408
+ /**
1409
+ * REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
1410
+ * module convert and stack import: lacification cannot take the tree to
1411
+ * lace shape; the report names each managed resource and the IR gap holding it.
1412
+ */
1404
1413
  REASON_NOT_LACE_FORM = 1,
1405
1414
  /** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
1406
1415
  REASON_HASH_MISMATCH = 2,
@@ -1413,7 +1422,8 @@ declare enum Reason {
1413
1422
  /** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
1414
1423
  REASON_CONFLICT = 6,
1415
1424
  /**
1416
- * REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused.
1425
+ * REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
1426
+ * (`BundleState.source_refused`).
1417
1427
  * module convert and stack import: the tree's tf does not parse, has a
1418
1428
  * non-empty residual report, or its Bundle fails its own validation.
1419
1429
  * stack apply / stack destroy / registry register: a source in the stack
@@ -1712,43 +1722,117 @@ interface UngroupAction {
1712
1722
  scope: string;
1713
1723
  }
1714
1724
  declare const UngroupAction: MessageFns<UngroupAction>;
1725
+ /**
1726
+ * SetVariablesAction sets the variables `scope` declares, whole: a
1727
+ * variable the action does not name is removed.
1728
+ */
1715
1729
  interface SetVariablesAction {
1716
1730
  variables: InputDef[];
1731
+ scope: string;
1717
1732
  }
1718
1733
  declare const SetVariablesAction: MessageFns<SetVariablesAction>;
1734
+ /**
1735
+ * SetExportsAction sets the outputs `scope` declares, whole: each output's
1736
+ * value and what its definition carries beside it.
1737
+ */
1719
1738
  interface SetExportsAction {
1720
1739
  outputs: OutputExportEntry[];
1721
1740
  output_defs: OutputDef[];
1741
+ scope: string;
1722
1742
  }
1723
1743
  declare const SetExportsAction: MessageFns<SetExportsAction>;
1744
+ /**
1745
+ * OutputExportEntry is one output's value as text, read as the parse reads
1746
+ * an output block's `value`: a resource's or a data source's attribute, a
1747
+ * call's output, a literal, a variable or any other expression.
1748
+ */
1724
1749
  interface OutputExportEntry {
1725
1750
  name: string;
1726
- source_instance: string;
1727
- source_output: string;
1751
+ value: string;
1728
1752
  }
1729
1753
  declare const OutputExportEntry: MessageFns<OutputExportEntry>;
1754
+ /**
1755
+ * SetTerraformAction sets the terraform block `scope` holds, whole: its
1756
+ * required version and required providers. The IR holds no backend: Lace
1757
+ * manages state, and a backend block is a fact about the files.
1758
+ */
1730
1759
  interface SetTerraformAction {
1731
1760
  required_version: string;
1732
1761
  required_providers: ProviderReqView[];
1733
- backend: BackendView | undefined;
1762
+ scope: string;
1734
1763
  }
1735
1764
  declare const SetTerraformAction: MessageFns<SetTerraformAction>;
1765
+ /** SetProvidersAction sets the provider configurations `scope` holds, whole. */
1736
1766
  interface SetProvidersAction {
1737
1767
  providers: ProviderView[];
1768
+ scope: string;
1738
1769
  }
1739
1770
  declare const SetProvidersAction: MessageFns<SetProvidersAction>;
1771
+ /** SetLocalsAction sets the locals `scope` holds, whole. */
1740
1772
  interface SetLocalsAction {
1741
1773
  locals: LocalEntry[];
1774
+ scope: string;
1742
1775
  }
1743
1776
  declare const SetLocalsAction: MessageFns<SetLocalsAction>;
1777
+ /** LocalEntry is one local's value as text. */
1744
1778
  interface LocalEntry {
1745
1779
  name: string;
1746
- mode: string;
1747
- value: any | undefined;
1748
- variable: string;
1749
- expression: string;
1780
+ value: string;
1750
1781
  }
1751
1782
  declare const LocalEntry: MessageFns<LocalEntry>;
1783
+ /**
1784
+ * SetDirectivesAction sets the `moved` and `import` blocks `scope` holds,
1785
+ * whole, in the order the render writes them. A block of any other type is
1786
+ * refused: the parse holds no other top-level block.
1787
+ */
1788
+ interface SetDirectivesAction {
1789
+ blocks: BlockView[];
1790
+ scope: string;
1791
+ }
1792
+ declare const SetDirectivesAction: MessageFns<SetDirectivesAction>;
1793
+ /**
1794
+ * SetBlocksAction sets the nested blocks of the resource or data source
1795
+ * `instance_id` of `scope`, whole: adding a block, removing one and editing
1796
+ * one's attributes are each this action. A module call holds no nested
1797
+ * block, so one naming a call is refused.
1798
+ */
1799
+ interface SetBlocksAction {
1800
+ instance_id: string;
1801
+ blocks: BlockView[];
1802
+ scope: string;
1803
+ }
1804
+ declare const SetBlocksAction: MessageFns<SetBlocksAction>;
1805
+ /**
1806
+ * SetMetaArgumentsAction sets the meta-arguments of the child `instance_id`
1807
+ * of `scope`, each as text and empty for none: `count` and `for_each`, of
1808
+ * which a child takes at most one, and `provider`, the provider
1809
+ * configuration a resource or data source uses (`aws.west`). A module call
1810
+ * passes providers through its `providers` map (`set_use_providers`), so a
1811
+ * `provider` naming one for a call is refused.
1812
+ */
1813
+ interface SetMetaArgumentsAction {
1814
+ instance_id: string;
1815
+ count: string;
1816
+ for_each: string;
1817
+ provider: string;
1818
+ scope: string;
1819
+ }
1820
+ declare const SetMetaArgumentsAction: MessageFns<SetMetaArgumentsAction>;
1821
+ /**
1822
+ * AddResourceAction adds a managed resource (`kind` "resource") or a data
1823
+ * source (`kind` "data") of `type`, named `name`, to `scope`, with no
1824
+ * argument: its id is `<kind>.<type>.<name>`, reported in
1825
+ * `BundleApplyResult.created`. One `scope` already holds, a type or name
1826
+ * that is not an identifier, and any other kind are refused. A resource is
1827
+ * removed by `delete_instance`.
1828
+ */
1829
+ interface AddResourceAction {
1830
+ kind: string;
1831
+ type: string;
1832
+ name: string;
1833
+ scope: string;
1834
+ }
1835
+ declare const AddResourceAction: MessageFns<AddResourceAction>;
1752
1836
  interface SetDependsOnAction {
1753
1837
  instance_id: string;
1754
1838
  depends_on: string[];
@@ -1816,6 +1900,10 @@ interface Action {
1816
1900
  place_module?: PlaceModuleAction | undefined;
1817
1901
  set_use_providers?: SetUseProvidersAction | undefined;
1818
1902
  ungroup?: UngroupAction | undefined;
1903
+ set_blocks?: SetBlocksAction | undefined;
1904
+ set_directives?: SetDirectivesAction | undefined;
1905
+ set_meta_arguments?: SetMetaArgumentsAction | undefined;
1906
+ add_resource?: AddResourceAction | undefined;
1819
1907
  }
1820
1908
  declare const Action: MessageFns<Action>;
1821
1909
  interface ApplyActionRequest {
@@ -1876,7 +1964,10 @@ interface InvokeRequest {
1876
1964
  invoke_id: string;
1877
1965
  /** e.g. ["stack","preview"] */
1878
1966
  path: string[];
1879
- /** positionals + flags from toArgv; never -o/--output */
1967
+ /**
1968
+ * The command's positionals and flags, as a terminal user types them.
1969
+ * -o/--output may name only json, the format the stream carries.
1970
+ */
1880
1971
  argv: string[];
1881
1972
  /**
1882
1973
  * The absolute directory the command runs in, as a terminal invocation
@@ -1888,6 +1979,11 @@ interface InvokeRequest {
1888
1979
  * directory is sent with the developer's home.
1889
1980
  */
1890
1981
  working_directory: string;
1982
+ /**
1983
+ * The command's standard input: the bytes a terminal user would type,
1984
+ * such as the name a destroy asks to be confirmed with.
1985
+ */
1986
+ stdin: Uint8Array;
1891
1987
  }
1892
1988
  declare const InvokeRequest: MessageFns<InvokeRequest>;
1893
1989
  interface InvokeEvent {
@@ -2035,10 +2131,13 @@ interface BundleState {
2035
2131
  ungenerated: boolean;
2036
2132
  /**
2037
2133
  * True when the source tf this session opened, or last observed live,
2038
- * is refused (unparsable or lossy). The engine refuses
2039
- * every mutation while this holds — edit, undo, redo, save, generate,
2040
- * and SessionResolveConflict's Keep/Reload alike — until a live tf
2041
- * change parses and clears it.
2134
+ * is refused: it cannot be selected as one tree, does not parse, parses
2135
+ * lossily, or is not in lace shape, and `diagnostics` names why — one
2136
+ * `not_lace_shape` diagnostic per managed resource out of lace shape, whose
2137
+ * remedy is Convert (`module convert`). The engine refuses every
2138
+ * mutation while this holds — edit, undo, redo, save, generate, and
2139
+ * SessionResolveConflict's Keep/Reload alike — until a live tf change
2140
+ * is accepted and clears it.
2042
2141
  */
2043
2142
  source_refused: boolean;
2044
2143
  /**
@@ -2156,31 +2255,40 @@ interface ProviderReqView {
2156
2255
  configuration_aliases: string[];
2157
2256
  }
2158
2257
  declare const ProviderReqView: MessageFns<ProviderReqView>;
2159
- interface BackendView {
2160
- type: string;
2161
- config: {
2162
- [key: string]: any | undefined;
2163
- };
2164
- }
2165
- declare const BackendView: MessageFns<BackendView>;
2166
2258
  interface ProviderView {
2167
2259
  name: string;
2168
2260
  alias: string;
2261
+ /** Each setting's value as text. */
2169
2262
  config: {
2170
2263
  [key: string]: string;
2171
2264
  };
2172
- /**
2173
- * Nested config blocks (default_tags, assume_role, …). Full-fidelity,
2174
- * read-only echo: the panel renders and round-trips these verbatim but does
2175
- * not structurally edit them, deliberately mixing tiers with the flattened,
2176
- * editable `config` map above (see ProvidersPanel). Reuses state.proto's
2177
- * recursive Block so no HCL is re-serialized on the wire.
2178
- */
2179
- blocks: Block[];
2265
+ /** The configuration's nested blocks (default_tags, assume_role, …). */
2266
+ blocks: BlockView[];
2180
2267
  }
2181
2268
  declare const ProviderView: MessageFns<ProviderView>;
2269
+ /**
2270
+ * BlockView is a block as a panel edits it: a resource's or a provider
2271
+ * configuration's nested block, or a `moved` or `import` block. Each
2272
+ * attribute's value is text, in the block's declaration order.
2273
+ */
2274
+ interface BlockView {
2275
+ type: string;
2276
+ labels: string[];
2277
+ attributes: AttributeView[];
2278
+ blocks: BlockView[];
2279
+ }
2280
+ declare const BlockView: MessageFns<BlockView>;
2281
+ interface AttributeView {
2282
+ name: string;
2283
+ value: string;
2284
+ }
2285
+ declare const AttributeView: MessageFns<AttributeView>;
2182
2286
  interface InputDef {
2183
2287
  name: string;
2288
+ /**
2289
+ * The type constraint the variable's type line spells, as written; empty
2290
+ * for a variable with no type line. `any` is a type line of its own.
2291
+ */
2184
2292
  type: string;
2185
2293
  required: boolean;
2186
2294
  description: string;
@@ -2200,6 +2308,10 @@ interface ValidationBlock {
2200
2308
  declare const ValidationBlock: MessageFns<ValidationBlock>;
2201
2309
  interface OutputDef {
2202
2310
  name: string;
2311
+ /**
2312
+ * The type of the child output the output's export reads; empty when
2313
+ * nothing types it. An output block declares no type.
2314
+ */
2203
2315
  type: string;
2204
2316
  description: string;
2205
2317
  sensitive: boolean;
@@ -2399,6 +2511,26 @@ interface MessageFns<T> {
2399
2511
  fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
2400
2512
  }
2401
2513
 
2514
+ declare const gateChangeRequestSchema: z.ZodObject<{
2515
+ id: z.ZodString;
2516
+ state: z.ZodString;
2517
+ requirements: z.ZodArray<z.ZodObject<{
2518
+ id: z.ZodString;
2519
+ state: z.ZodString;
2520
+ decidedBy: z.ZodEnum<{
2521
+ lace: "lace";
2522
+ ecm: "ecm";
2523
+ }>;
2524
+ }, z.core.$strip>>;
2525
+ records: z.ZodArray<z.ZodObject<{
2526
+ externalSystemId: z.ZodString;
2527
+ kind: z.ZodString;
2528
+ externalRef: z.ZodNullable<z.ZodString>;
2529
+ externalUrl: z.ZodNullable<z.ZodString>;
2530
+ state: z.ZodNullable<z.ZodString>;
2531
+ }, z.core.$strip>>;
2532
+ }, z.core.$strip>;
2533
+ type GateChangeRequest = z.infer<typeof gateChangeRequestSchema>;
2402
2534
  /**
2403
2535
  * Every path an overlay, panel or action binds — a bound path with no
2404
2536
  * golden is a failing test, not a silent gap.
@@ -2410,6 +2542,7 @@ declare const SCHEMAS: {
2410
2542
  verdict: z.ZodOptional<z.ZodEnum<{
2411
2543
  "already-lace-style": "already-lace-style";
2412
2544
  "representable-but-transpilable": "representable-but-transpilable";
2545
+ uncomposable: "uncomposable";
2413
2546
  lossy: "lossy";
2414
2547
  }>>;
2415
2548
  residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2432,8 +2565,6 @@ declare const SCHEMAS: {
2432
2565
  }, z.core.$strip>>;
2433
2566
  sharedLocalSource: z.ZodBoolean;
2434
2567
  sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
2435
- uncomposable: z.ZodBoolean;
2436
- uncomposableReason: z.ZodString;
2437
2568
  registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
2438
2569
  childNotLaceForm: z.ZodArray<z.ZodUnknown>;
2439
2570
  }, z.core.$strip>>;
@@ -2479,6 +2610,7 @@ declare const SCHEMAS: {
2479
2610
  verdict: z.ZodOptional<z.ZodEnum<{
2480
2611
  "already-lace-style": "already-lace-style";
2481
2612
  "representable-but-transpilable": "representable-but-transpilable";
2613
+ uncomposable: "uncomposable";
2482
2614
  lossy: "lossy";
2483
2615
  }>>;
2484
2616
  residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2501,8 +2633,6 @@ declare const SCHEMAS: {
2501
2633
  }, z.core.$strip>>;
2502
2634
  sharedLocalSource: z.ZodBoolean;
2503
2635
  sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
2504
- uncomposable: z.ZodBoolean;
2505
- uncomposableReason: z.ZodString;
2506
2636
  registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
2507
2637
  childNotLaceForm: z.ZodArray<z.ZodUnknown>;
2508
2638
  }, z.core.$strip>>;
@@ -2707,8 +2837,6 @@ declare const SCHEMAS: {
2707
2837
  lastDriftStale: z.ZodBoolean;
2708
2838
  lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
2709
2839
  lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
2710
- chaosLockedByRunId: z.ZodNullable<z.ZodString>;
2711
- chaosLockedAt: z.ZodNullable<z.ZodString>;
2712
2840
  createdBy: z.ZodString;
2713
2841
  createdAt: z.ZodString;
2714
2842
  updatedAt: z.ZodString;
@@ -2755,8 +2883,6 @@ declare const SCHEMAS: {
2755
2883
  lastDriftStale: z.ZodBoolean;
2756
2884
  lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
2757
2885
  lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
2758
- chaosLockedByRunId: z.ZodNullable<z.ZodString>;
2759
- chaosLockedAt: z.ZodNullable<z.ZodString>;
2760
2886
  createdBy: z.ZodString;
2761
2887
  createdAt: z.ZodString;
2762
2888
  updatedAt: z.ZodString;
@@ -2864,16 +2990,6 @@ declare const SCHEMAS: {
2864
2990
  nextCursor: z.ZodNullable<z.ZodString>;
2865
2991
  hasMore: z.ZodBoolean;
2866
2992
  }, z.core.$strip>;
2867
- 'chaos list': z.ZodObject<{
2868
- stackId: z.ZodString;
2869
- connectionBlock: z.ZodNullable<z.ZodUnknown>;
2870
- experiments: z.ZodArray<z.ZodObject<{
2871
- bindingId: z.ZodString;
2872
- name: z.ZodString;
2873
- assertionCount: z.ZodNumber;
2874
- engine: z.ZodString;
2875
- }, z.core.$strip>>;
2876
- }, z.core.$strip>;
2877
2993
  'stack preview': z.ZodObject<{
2878
2994
  stack: z.ZodObject<{
2879
2995
  id: z.ZodString;
@@ -2896,7 +3012,65 @@ declare const SCHEMAS: {
2896
3012
  reason: z.ZodString;
2897
3013
  approvalMode: z.ZodNullable<z.ZodString>;
2898
3014
  isAuthoringTimePreview: z.ZodBoolean;
3015
+ bindings: z.ZodArray<z.ZodObject<{
3016
+ policyId: z.ZodString;
3017
+ name: z.ZodString;
3018
+ handler: z.ZodString;
3019
+ mode: z.ZodString;
3020
+ decision: z.ZodString;
3021
+ reason: z.ZodString;
3022
+ rulesFired: z.ZodArray<z.ZodString>;
3023
+ approvalMode: z.ZodNullable<z.ZodString>;
3024
+ }, z.core.$strip>>;
2899
3025
  }, z.core.$strip>>;
3026
+ advisories: z.ZodObject<{
3027
+ queue: z.ZodObject<{
3028
+ manifestation: z.ZodLiteral<"preview">;
3029
+ floor: z.ZodNumber;
3030
+ entries: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3031
+ kind: z.ZodLiteral<"consensus">;
3032
+ subject: z.ZodObject<{
3033
+ resourceUri: z.ZodString;
3034
+ riskCategory: z.ZodString;
3035
+ remediationKind: z.ZodString;
3036
+ remediationFingerprint: z.ZodString;
3037
+ }, z.core.$strip>;
3038
+ advisories: z.ZodArray<z.ZodObject<{
3039
+ id: z.ZodString;
3040
+ manifestation: z.ZodString;
3041
+ emittedByInstallId: z.ZodString;
3042
+ emittedByDisplayName: z.ZodString;
3043
+ confidenceScore: z.ZodNumber;
3044
+ producedAt: z.ZodString;
3045
+ outputJson: z.ZodUnknown;
3046
+ }, z.core.$strip>>;
3047
+ agentCount: z.ZodNumber;
3048
+ }, z.core.$strip>, z.ZodObject<{
3049
+ kind: z.ZodLiteral<"disagreement">;
3050
+ subject: z.ZodObject<{
3051
+ resourceUri: z.ZodString;
3052
+ riskCategory: z.ZodString;
3053
+ remediationKind: z.ZodString;
3054
+ }, z.core.$strip>;
3055
+ lanes: z.ZodArray<z.ZodObject<{
3056
+ remediationFingerprint: z.ZodString;
3057
+ advisories: z.ZodArray<z.ZodObject<{
3058
+ id: z.ZodString;
3059
+ manifestation: z.ZodString;
3060
+ emittedByInstallId: z.ZodString;
3061
+ emittedByDisplayName: z.ZodString;
3062
+ confidenceScore: z.ZodNumber;
3063
+ producedAt: z.ZodString;
3064
+ outputJson: z.ZodUnknown;
3065
+ }, z.core.$strip>>;
3066
+ }, z.core.$strip>>;
3067
+ }, z.core.$strip>], "kind">>;
3068
+ belowFloor: z.ZodNumber;
3069
+ }, z.core.$strip>;
3070
+ truncated: z.ZodBoolean;
3071
+ pending: z.ZodNumber;
3072
+ bound: z.ZodOptional<z.ZodNumber>;
3073
+ }, z.core.$strip>;
2900
3074
  }, z.core.$strip>;
2901
3075
  'stack apply': z.ZodDiscriminatedUnion<[z.ZodObject<{
2902
3076
  type: z.ZodLiteral<"log">;
@@ -2912,25 +3086,22 @@ declare const SCHEMAS: {
2912
3086
  }, z.core.$strip>;
2913
3087
  changeRequest: z.ZodNullable<z.ZodObject<{
2914
3088
  id: z.ZodString;
2915
- orgId: z.ZodString;
2916
- teamId: z.ZodString;
2917
- runId: z.ZodString;
2918
- bindingId: z.ZodNullable<z.ZodString>;
2919
- invocationId: z.ZodNullable<z.ZodString>;
2920
3089
  state: z.ZodString;
2921
- approverUserId: z.ZodNullable<z.ZodString>;
2922
- approvalChain: z.ZodUnknown;
2923
- emergencyApproval: z.ZodBoolean;
2924
- narrativeArtifactId: z.ZodNullable<z.ZodString>;
2925
- policyResolution: z.ZodUnknown;
2926
- externalSystemId: z.ZodNullable<z.ZodString>;
2927
- externalRef: z.ZodNullable<z.ZodString>;
2928
- idempotencyKey: z.ZodNullable<z.ZodString>;
2929
- lastReconciledAt: z.ZodNullable<z.ZodString>;
2930
- submittedByUserId: z.ZodNullable<z.ZodString>;
2931
- submittedAt: z.ZodNullable<z.ZodString>;
2932
- createdAt: z.ZodString;
2933
- updatedAt: z.ZodString;
3090
+ requirements: z.ZodArray<z.ZodObject<{
3091
+ id: z.ZodString;
3092
+ state: z.ZodString;
3093
+ decidedBy: z.ZodEnum<{
3094
+ lace: "lace";
3095
+ ecm: "ecm";
3096
+ }>;
3097
+ }, z.core.$strip>>;
3098
+ records: z.ZodArray<z.ZodObject<{
3099
+ externalSystemId: z.ZodString;
3100
+ kind: z.ZodString;
3101
+ externalRef: z.ZodNullable<z.ZodString>;
3102
+ externalUrl: z.ZodNullable<z.ZodString>;
3103
+ state: z.ZodNullable<z.ZodString>;
3104
+ }, z.core.$strip>>;
2934
3105
  }, z.core.$strip>>;
2935
3106
  }, z.core.$strip>, z.ZodObject<{
2936
3107
  type: z.ZodLiteral<"result">;
@@ -2999,25 +3170,22 @@ declare const SCHEMAS: {
2999
3170
  }, z.core.$strip>;
3000
3171
  changeRequest: z.ZodNullable<z.ZodObject<{
3001
3172
  id: z.ZodString;
3002
- orgId: z.ZodString;
3003
- teamId: z.ZodString;
3004
- runId: z.ZodString;
3005
- bindingId: z.ZodNullable<z.ZodString>;
3006
- invocationId: z.ZodNullable<z.ZodString>;
3007
3173
  state: z.ZodString;
3008
- approverUserId: z.ZodNullable<z.ZodString>;
3009
- approvalChain: z.ZodUnknown;
3010
- emergencyApproval: z.ZodBoolean;
3011
- narrativeArtifactId: z.ZodNullable<z.ZodString>;
3012
- policyResolution: z.ZodUnknown;
3013
- externalSystemId: z.ZodNullable<z.ZodString>;
3014
- externalRef: z.ZodNullable<z.ZodString>;
3015
- idempotencyKey: z.ZodNullable<z.ZodString>;
3016
- lastReconciledAt: z.ZodNullable<z.ZodString>;
3017
- submittedByUserId: z.ZodNullable<z.ZodString>;
3018
- submittedAt: z.ZodNullable<z.ZodString>;
3019
- createdAt: z.ZodString;
3020
- updatedAt: z.ZodString;
3174
+ requirements: z.ZodArray<z.ZodObject<{
3175
+ id: z.ZodString;
3176
+ state: z.ZodString;
3177
+ decidedBy: z.ZodEnum<{
3178
+ lace: "lace";
3179
+ ecm: "ecm";
3180
+ }>;
3181
+ }, z.core.$strip>>;
3182
+ records: z.ZodArray<z.ZodObject<{
3183
+ externalSystemId: z.ZodString;
3184
+ kind: z.ZodString;
3185
+ externalRef: z.ZodNullable<z.ZodString>;
3186
+ externalUrl: z.ZodNullable<z.ZodString>;
3187
+ state: z.ZodNullable<z.ZodString>;
3188
+ }, z.core.$strip>>;
3021
3189
  }, z.core.$strip>>;
3022
3190
  }, z.core.$strip>, z.ZodObject<{
3023
3191
  type: z.ZodLiteral<"result">;
@@ -3128,8 +3296,6 @@ declare const SCHEMAS: {
3128
3296
  lastDriftStale: z.ZodBoolean;
3129
3297
  lastDriftConfirmedAt: z.ZodNullable<z.ZodString>;
3130
3298
  lastDriftUndeterminedReason: z.ZodNullable<z.ZodString>;
3131
- chaosLockedByRunId: z.ZodNullable<z.ZodString>;
3132
- chaosLockedAt: z.ZodNullable<z.ZodString>;
3133
3299
  createdBy: z.ZodString;
3134
3300
  createdAt: z.ZodString;
3135
3301
  updatedAt: z.ZodString;
@@ -3161,6 +3327,7 @@ declare const SCHEMAS: {
3161
3327
  verdict: z.ZodOptional<z.ZodEnum<{
3162
3328
  "already-lace-style": "already-lace-style";
3163
3329
  "representable-but-transpilable": "representable-but-transpilable";
3330
+ uncomposable: "uncomposable";
3164
3331
  lossy: "lossy";
3165
3332
  }>>;
3166
3333
  residuals: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3183,8 +3350,6 @@ declare const SCHEMAS: {
3183
3350
  }, z.core.$strip>>;
3184
3351
  sharedLocalSource: z.ZodBoolean;
3185
3352
  sharedLocalFindings: z.ZodArray<z.ZodUnknown>;
3186
- uncomposable: z.ZodBoolean;
3187
- uncomposableReason: z.ZodString;
3188
3353
  registryVersionNotExact: z.ZodArray<z.ZodUnknown>;
3189
3354
  childNotLaceForm: z.ZodArray<z.ZodUnknown>;
3190
3355
  }, z.core.$strip>>;
@@ -3621,7 +3786,7 @@ type EdgeRef = {
3621
3786
  sourceOutput: string;
3622
3787
  targetInput: string;
3623
3788
  };
3624
- type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
3789
+ type ContextKey = 'root' | 'sessionId' | 'stack' | 'editable' | 'saved' | 'unsaved' | 'resolved' | 'conflict' | 'sourceRefused' | 'needsConversion' | 'selection.node' | 'selection.edge' | 'diagnostics' | 'settingsOpen' | 'generateIdle' | 'generating' | 'ungenerated' | 'undoable' | 'redoable';
3625
3790
  type RunCtx = {
3626
3791
  root?: string;
3627
3792
  sessionId?: string;
@@ -3856,7 +4021,7 @@ type RunOutcome = {
3856
4021
  kind: 'succeeded';
3857
4022
  } | {
3858
4023
  kind: 'awaiting-approval';
3859
- changeRequestId: string;
4024
+ changeRequest: GateChangeRequest;
3860
4025
  } | {
3861
4026
  kind: 'blocked';
3862
4027
  message: string;
@@ -3977,10 +4142,13 @@ type MsgOf<M> = M extends {
3977
4142
  type EngineMethodResponse = {
3978
4143
  [K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: MsgOf<(typeof LaceEngineDefinition.methods)[K]['responseType']>;
3979
4144
  };
4145
+ type EngineMethodRequest = {
4146
+ [K in keyof typeof LaceEngineDefinition.methods as (typeof LaceEngineDefinition.methods)[K]['name']]: DeepPartial<MsgOf<(typeof LaceEngineDefinition.methods)[K]['requestType']>>;
4147
+ };
3980
4148
  type EngineCaller<UnaryMethod extends EngineMethod = EngineMethod> = {
3981
4149
  kind: 'bridge' | 'direct';
3982
- unary<M extends UnaryMethod>(method: M, request: unknown): Promise<EngineMethodResponse[M]>;
3983
- stream<M extends EngineStreamMethod>(method: M, request: unknown, signal: AbortSignal): AsyncIterable<EngineMethodResponse[M]>;
4150
+ unary<M extends UnaryMethod>(method: M, request: EngineMethodRequest[M]): Promise<EngineMethodResponse[M]>;
4151
+ stream<M extends EngineStreamMethod>(method: M, request: EngineMethodRequest[M], signal: AbortSignal): AsyncIterable<EngineMethodResponse[M]>;
3984
4152
  };
3985
4153
  /** The `kind: 'direct'` narrowing of `EngineCaller` — a caller that talks
3986
4154
  * straight to the engine and can serve every `EngineMethod`, `TestSessionOpen`
@@ -4054,4 +4222,4 @@ declare function openEngineCommands(caller: EngineCaller, { cwd }: {
4054
4222
  declare function openEngineSession(caller: DirectEngineCaller, target: EngineTarget, options?: EngineSessionOptions): Promise<EngineSession>;
4055
4223
  declare function openEngineSession(caller: BridgeEngineCaller, target: NonFixtureTarget, options?: EngineSessionOptions): Promise<EngineSession>;
4056
4224
 
4057
- export { type EngineMethodResponse as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type EdgeRef as E, type CommandRun as F, type CommandsPort as G, type ConfirmSpec as H, type ConnectCallerOptions as I, type JsonOf as J, ConnectError as K, type LayoutHandle as L, type ContextKey as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextPort as Q, type ResultStore as R, type SourcePort as S, type CreatedRef as T, type DirectEngineCaller as U, EMPTY_REPORT_FOLD as V, type EditorBinding as W, type EditorEnv as X, type EditorEnvExtras as Y, type EditorPort as Z, type EngineCaller as _, type CanvasCtx as a, reduceReport as a$, type EngineSession as a0, type EngineSessionOptions as a1, type EngineTarget as a2, type ErasedCommand as a3, type FollowSlot as a4, type GenerateEvent as a5, type GraphError as a6, type HostBinding as a7, type Invocation as a8, type KeySpec as a9, connectCaller as aA, createActionRunner as aB, createResultStore as aC, currentReport as aD, defineCommand as aE, diagnosticsOf as aF, foldReport as aG, isBoundPath as aH, openEngineCommands as aI, openEngineSession as aJ, parseBound as aK, parseCommandFailure as aL, reportDiagnostics as aM, toArgv as aN, uniqueDiagnostics as aO, Action as aP, InputMode as aQ, type LaceReason as aR, type LiveSlots as aS, type OnScreen as aT, type RunPhase as aU, type RunPhaseStatus as aV, diagnosticsOfDocument as aW, liveSlots as aX, reasonWire as aY, reduceFollow as aZ, reducePreview as a_, type Placement as aa, type PortName as ab, type PresenterPort as ac, type PreviewSlot as ad, Reason as ae, type ReportEntry as af, type ReportFold as ag, type ReportPath as ah, type ReportSlot as ai, type ResultKind as aj, type ResultSlots as ak, type RunOutcome as al, type RunSlot as am, type RunnerPorts as an, SCHEMAS as ao, type Sink as ap, type SinkInput as aq, type SlotContext as ar, type SlotKind as as, type SourceConflict as at, type StackRef as au, type ViewStatePort as av, type WiringCandidate as aw, type WiringQuery as ax, bridgeCaller as ay, carriesFailure as az, type CanvasPorts as b, reduceRun as b0, settleRun as b1, type PendingForm as c, type BoundPath as d, type CommandRead as e, type ActionTarget as f, type CommandResult as g, type CanvasSource as h, type SourceEnd as i, type RunCtx as j, Bundle as k, type ActionRunner as l, type ActionIcon as m, type ActionRunnerOptions as n, type ApplyResult as o, ApplyUnobservedError as p, type ArgsOf as q, type BindingRuntime as r, type BridgeEngineCaller as s, COMMANDS as t, type ClipboardStore as u, type CommandBinding as v, CommandDetachedError as w, CommandExitError as x, type CommandFailure as y, type CommandPath as z };
4225
+ export { type EngineMethodResponse as $, type ActionContribution as A, type Badge as B, type ContributionSet as C, type Decorations as D, type EdgeRef as E, type CommandRun as F, type CommandsPort as G, type ConfirmSpec as H, type ConnectCallerOptions as I, type JsonOf as J, ConnectError as K, type LayoutHandle as L, type ContextKey as M, type NodeDecoration as N, type OverlayContribution as O, type PanelSpec as P, type ContextPort as Q, type ResultStore as R, type SourcePort as S, type CreatedRef as T, type DirectEngineCaller as U, EMPTY_REPORT_FOLD as V, type EditorBinding as W, type EditorEnv as X, type EditorEnvExtras as Y, type EditorPort as Z, type EngineCaller as _, type CanvasCtx as a, reducePreview as a$, type EngineSession as a0, type EngineSessionOptions as a1, type EngineTarget as a2, type ErasedCommand as a3, type FollowSlot as a4, type GateChangeRequest as a5, type GenerateEvent as a6, type GraphError as a7, type HostBinding as a8, type Invocation as a9, carriesFailure as aA, connectCaller as aB, createActionRunner as aC, createResultStore as aD, currentReport as aE, defineCommand as aF, diagnosticsOf as aG, foldReport as aH, isBoundPath as aI, openEngineCommands as aJ, openEngineSession as aK, parseBound as aL, parseCommandFailure as aM, reportDiagnostics as aN, toArgv as aO, uniqueDiagnostics as aP, Action as aQ, InputMode as aR, type LaceReason as aS, type LiveSlots as aT, type OnScreen as aU, type RunPhase as aV, type RunPhaseStatus as aW, diagnosticsOfDocument as aX, liveSlots as aY, reasonWire as aZ, reduceFollow as a_, type KeySpec as aa, type Placement as ab, type PortName as ac, type PresenterPort as ad, type PreviewSlot as ae, Reason as af, type ReportEntry as ag, type ReportFold as ah, type ReportPath as ai, type ReportSlot as aj, type ResultKind as ak, type ResultSlots as al, type RunOutcome as am, type RunSlot as an, type RunnerPorts as ao, SCHEMAS as ap, type Sink as aq, type SinkInput as ar, type SlotContext as as, type SlotKind as at, type SourceConflict as au, type StackRef as av, type ViewStatePort as aw, type WiringCandidate as ax, type WiringQuery as ay, bridgeCaller as az, type CanvasPorts as b, reduceReport as b0, reduceRun as b1, settleRun as b2, type PendingForm as c, type BoundPath as d, type CommandRead as e, type ActionTarget as f, type CommandResult as g, type CanvasSource as h, type SourceEnd as i, type RunCtx as j, Bundle as k, type ActionRunner as l, type ActionIcon as m, type ActionRunnerOptions as n, type ApplyResult as o, ApplyUnobservedError as p, type ArgsOf as q, type BindingRuntime as r, type BridgeEngineCaller as s, COMMANDS as t, type ClipboardStore as u, type CommandBinding as v, CommandDetachedError as w, CommandExitError as x, type CommandFailure as y, type CommandPath as z };