@lace-cloud/host 0.21.0 → 0.22.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.
package/dist/index.d.mts CHANGED
@@ -330,6 +330,10 @@ interface Interface {
330
330
  declare const Interface: MessageFns$1<Interface>;
331
331
  interface InputDef$1 {
332
332
  name: string;
333
+ /**
334
+ * The type constraint the variable's type line spells, as written; empty
335
+ * for a variable with no type line. `any` is a type line of its own.
336
+ */
333
337
  type: string;
334
338
  required: boolean;
335
339
  description: string;
@@ -349,6 +353,10 @@ interface ValidationBlock$1 {
349
353
  declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
350
354
  interface OutputDef$1 {
351
355
  name: string;
356
+ /**
357
+ * The type of the child output the output's export reads; empty when
358
+ * nothing types it. An output block declares no type.
359
+ */
352
360
  type: string;
353
361
  description: string;
354
362
  sensitive: boolean;
@@ -479,12 +487,15 @@ interface ModuleReference {
479
487
  splat: boolean;
480
488
  }
481
489
  declare const ModuleReference: MessageFns$1<ModuleReference>;
490
+ /**
491
+ * A module's terraform block as the IR holds it. It holds no backend: Lace
492
+ * manages state, and a backend block is a fact about the files.
493
+ */
482
494
  interface TerraformBlock {
483
495
  required_version: string;
484
496
  required_providers: {
485
497
  [key: string]: ProviderRequirement;
486
498
  };
487
- backend: BackendConfig | undefined;
488
499
  }
489
500
  declare const TerraformBlock: MessageFns$1<TerraformBlock>;
490
501
  interface ProviderRequirement {
@@ -493,13 +504,6 @@ interface ProviderRequirement {
493
504
  configuration_aliases: string[];
494
505
  }
495
506
  declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
496
- interface BackendConfig {
497
- type: string;
498
- config: {
499
- [key: string]: any | undefined;
500
- };
501
- }
502
- declare const BackendConfig: MessageFns$1<BackendConfig>;
503
507
  interface ProviderConfig {
504
508
  name: string;
505
509
  alias: string;
@@ -556,7 +560,11 @@ declare enum DiagnosticSeverity {
556
560
  */
557
561
  declare enum Reason {
558
562
  REASON_UNSPECIFIED = 0,
559
- /** REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form. */
563
+ /**
564
+ * REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
565
+ * module convert and stack import: lacification cannot take the tree to
566
+ * lace shape; the report names each managed resource and the IR gap holding it.
567
+ */
560
568
  REASON_NOT_LACE_FORM = 1,
561
569
  /** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
562
570
  REASON_HASH_MISMATCH = 2,
@@ -569,7 +577,8 @@ declare enum Reason {
569
577
  /** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
570
578
  REASON_CONFLICT = 6,
571
579
  /**
572
- * REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused.
580
+ * REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
581
+ * (`BundleState.source_refused`).
573
582
  * module convert and stack import: the tree's tf does not parse, has a
574
583
  * non-empty residual report, or its Bundle fails its own validation.
575
584
  * stack apply / stack destroy / registry register: a source in the stack
@@ -726,7 +735,7 @@ interface SessionGenerateRequest {
726
735
  declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
727
736
  interface SessionGenerateResponse {
728
737
  files_written: string[];
729
- /** the `module validate -o json` document for the written tree */
738
+ /** the `module validate -o json` document for the Terraform on disk */
730
739
  validate_json: string;
731
740
  /**
732
741
  * The revision of the state the Generate left: the
@@ -868,43 +877,117 @@ interface UngroupAction {
868
877
  scope: string;
869
878
  }
870
879
  declare const UngroupAction: MessageFns<UngroupAction>;
880
+ /**
881
+ * SetVariablesAction sets the variables `scope` declares, whole: a
882
+ * variable the action does not name is removed.
883
+ */
871
884
  interface SetVariablesAction {
872
885
  variables: InputDef[];
886
+ scope: string;
873
887
  }
874
888
  declare const SetVariablesAction: MessageFns<SetVariablesAction>;
889
+ /**
890
+ * SetExportsAction sets the outputs `scope` declares, whole: each output's
891
+ * value and what its definition carries beside it.
892
+ */
875
893
  interface SetExportsAction {
876
894
  outputs: OutputExportEntry[];
877
895
  output_defs: OutputDef[];
896
+ scope: string;
878
897
  }
879
898
  declare const SetExportsAction: MessageFns<SetExportsAction>;
899
+ /**
900
+ * OutputExportEntry is one output's value as text, read as the parse reads
901
+ * an output block's `value`: a resource's or a data source's attribute, a
902
+ * call's output, a literal, a variable or any other expression.
903
+ */
880
904
  interface OutputExportEntry {
881
905
  name: string;
882
- source_instance: string;
883
- source_output: string;
906
+ value: string;
884
907
  }
885
908
  declare const OutputExportEntry: MessageFns<OutputExportEntry>;
909
+ /**
910
+ * SetTerraformAction sets the terraform block `scope` holds, whole: its
911
+ * required version and required providers. The IR holds no backend: Lace
912
+ * manages state, and a backend block is a fact about the files.
913
+ */
886
914
  interface SetTerraformAction {
887
915
  required_version: string;
888
916
  required_providers: ProviderReqView[];
889
- backend: BackendView | undefined;
917
+ scope: string;
890
918
  }
891
919
  declare const SetTerraformAction: MessageFns<SetTerraformAction>;
920
+ /** SetProvidersAction sets the provider configurations `scope` holds, whole. */
892
921
  interface SetProvidersAction {
893
922
  providers: ProviderView[];
923
+ scope: string;
894
924
  }
895
925
  declare const SetProvidersAction: MessageFns<SetProvidersAction>;
926
+ /** SetLocalsAction sets the locals `scope` holds, whole. */
896
927
  interface SetLocalsAction {
897
928
  locals: LocalEntry[];
929
+ scope: string;
898
930
  }
899
931
  declare const SetLocalsAction: MessageFns<SetLocalsAction>;
932
+ /** LocalEntry is one local's value as text. */
900
933
  interface LocalEntry {
901
934
  name: string;
902
- mode: string;
903
- value: any | undefined;
904
- variable: string;
905
- expression: string;
935
+ value: string;
906
936
  }
907
937
  declare const LocalEntry: MessageFns<LocalEntry>;
938
+ /**
939
+ * SetDirectivesAction sets the `moved` and `import` blocks `scope` holds,
940
+ * whole, in the order the render writes them. A block of any other type is
941
+ * refused: the parse holds no other top-level block.
942
+ */
943
+ interface SetDirectivesAction {
944
+ blocks: BlockView[];
945
+ scope: string;
946
+ }
947
+ declare const SetDirectivesAction: MessageFns<SetDirectivesAction>;
948
+ /**
949
+ * SetBlocksAction sets the nested blocks of the resource or data source
950
+ * `instance_id` of `scope`, whole: adding a block, removing one and editing
951
+ * one's attributes are each this action. A module call holds no nested
952
+ * block, so one naming a call is refused.
953
+ */
954
+ interface SetBlocksAction {
955
+ instance_id: string;
956
+ blocks: BlockView[];
957
+ scope: string;
958
+ }
959
+ declare const SetBlocksAction: MessageFns<SetBlocksAction>;
960
+ /**
961
+ * SetMetaArgumentsAction sets the meta-arguments of the child `instance_id`
962
+ * of `scope`, each as text and empty for none: `count` and `for_each`, of
963
+ * which a child takes at most one, and `provider`, the provider
964
+ * configuration a resource or data source uses (`aws.west`). A module call
965
+ * passes providers through its `providers` map (`set_use_providers`), so a
966
+ * `provider` naming one for a call is refused.
967
+ */
968
+ interface SetMetaArgumentsAction {
969
+ instance_id: string;
970
+ count: string;
971
+ for_each: string;
972
+ provider: string;
973
+ scope: string;
974
+ }
975
+ declare const SetMetaArgumentsAction: MessageFns<SetMetaArgumentsAction>;
976
+ /**
977
+ * AddResourceAction adds a managed resource (`kind` "resource") or a data
978
+ * source (`kind` "data") of `type`, named `name`, to `scope`, with no
979
+ * argument: its id is `<kind>.<type>.<name>`, reported in
980
+ * `BundleApplyResult.created`. One `scope` already holds, a type or name
981
+ * that is not an identifier, and any other kind are refused. A resource is
982
+ * removed by `delete_instance`.
983
+ */
984
+ interface AddResourceAction {
985
+ kind: string;
986
+ type: string;
987
+ name: string;
988
+ scope: string;
989
+ }
990
+ declare const AddResourceAction: MessageFns<AddResourceAction>;
908
991
  interface SetDependsOnAction {
909
992
  instance_id: string;
910
993
  depends_on: string[];
@@ -972,6 +1055,10 @@ interface Action {
972
1055
  place_module?: PlaceModuleAction | undefined;
973
1056
  set_use_providers?: SetUseProvidersAction | undefined;
974
1057
  ungroup?: UngroupAction | undefined;
1058
+ set_blocks?: SetBlocksAction | undefined;
1059
+ set_directives?: SetDirectivesAction | undefined;
1060
+ set_meta_arguments?: SetMetaArgumentsAction | undefined;
1061
+ add_resource?: AddResourceAction | undefined;
975
1062
  }
976
1063
  declare const Action: MessageFns<Action>;
977
1064
  interface ApplyActionRequest {
@@ -1032,7 +1119,10 @@ interface InvokeRequest {
1032
1119
  invoke_id: string;
1033
1120
  /** e.g. ["stack","preview"] */
1034
1121
  path: string[];
1035
- /** positionals + flags from toArgv; never -o/--output */
1122
+ /**
1123
+ * The command's positionals and flags, as a terminal user types them.
1124
+ * -o/--output may name only json, the format the stream carries.
1125
+ */
1036
1126
  argv: string[];
1037
1127
  /**
1038
1128
  * The absolute directory the command runs in, as a terminal invocation
@@ -1044,6 +1134,11 @@ interface InvokeRequest {
1044
1134
  * directory is sent with the developer's home.
1045
1135
  */
1046
1136
  working_directory: string;
1137
+ /**
1138
+ * The command's standard input: the bytes a terminal user would type,
1139
+ * such as the name a destroy asks to be confirmed with.
1140
+ */
1141
+ stdin: Buffer;
1047
1142
  }
1048
1143
  declare const InvokeRequest: MessageFns<InvokeRequest>;
1049
1144
  interface InvokeEvent {
@@ -1087,7 +1182,7 @@ interface GenerateProgress {
1087
1182
  declare const GenerateProgress: MessageFns<GenerateProgress>;
1088
1183
  interface GenerateSuccess {
1089
1184
  files_written: string[];
1090
- /** the `module validate -o json` document for the written tree */
1185
+ /** the `module validate -o json` document for the Terraform on disk */
1091
1186
  validate_json: string;
1092
1187
  /** the Generate this event belongs to */
1093
1188
  generate_id: string;
@@ -1191,10 +1286,13 @@ interface BundleState {
1191
1286
  ungenerated: boolean;
1192
1287
  /**
1193
1288
  * True when the source tf this session opened, or last observed live,
1194
- * is refused (unparsable or lossy). The engine refuses
1195
- * every mutation while this holds — edit, undo, redo, save, generate,
1196
- * and SessionResolveConflict's Keep/Reload alike — until a live tf
1197
- * change parses and clears it.
1289
+ * is refused: it cannot be selected as one tree, does not parse, parses
1290
+ * lossily, or is not in lace shape, and `diagnostics` names why — one
1291
+ * `not_lace_shape` diagnostic per managed resource out of lace shape, whose
1292
+ * remedy is Convert (`module convert`). The engine refuses every
1293
+ * mutation while this holds — edit, undo, redo, save, generate, and
1294
+ * SessionResolveConflict's Keep/Reload alike — until a live tf change
1295
+ * is accepted and clears it.
1198
1296
  */
1199
1297
  source_refused: boolean;
1200
1298
  /**
@@ -1312,31 +1410,40 @@ interface ProviderReqView {
1312
1410
  configuration_aliases: string[];
1313
1411
  }
1314
1412
  declare const ProviderReqView: MessageFns<ProviderReqView>;
1315
- interface BackendView {
1316
- type: string;
1317
- config: {
1318
- [key: string]: any | undefined;
1319
- };
1320
- }
1321
- declare const BackendView: MessageFns<BackendView>;
1322
1413
  interface ProviderView {
1323
1414
  name: string;
1324
1415
  alias: string;
1416
+ /** Each setting's value as text. */
1325
1417
  config: {
1326
1418
  [key: string]: string;
1327
1419
  };
1328
- /**
1329
- * Nested config blocks (default_tags, assume_role, …). Full-fidelity,
1330
- * read-only echo: the panel renders and round-trips these verbatim but does
1331
- * not structurally edit them, deliberately mixing tiers with the flattened,
1332
- * editable `config` map above (see ProvidersPanel). Reuses state.proto's
1333
- * recursive Block so no HCL is re-serialized on the wire.
1334
- */
1335
- blocks: Block[];
1420
+ /** The configuration's nested blocks (default_tags, assume_role, …). */
1421
+ blocks: BlockView[];
1336
1422
  }
1337
1423
  declare const ProviderView: MessageFns<ProviderView>;
1424
+ /**
1425
+ * BlockView is a block as a panel edits it: a resource's or a provider
1426
+ * configuration's nested block, or a `moved` or `import` block. Each
1427
+ * attribute's value is text, in the block's declaration order.
1428
+ */
1429
+ interface BlockView {
1430
+ type: string;
1431
+ labels: string[];
1432
+ attributes: AttributeView[];
1433
+ blocks: BlockView[];
1434
+ }
1435
+ declare const BlockView: MessageFns<BlockView>;
1436
+ interface AttributeView {
1437
+ name: string;
1438
+ value: string;
1439
+ }
1440
+ declare const AttributeView: MessageFns<AttributeView>;
1338
1441
  interface InputDef {
1339
1442
  name: string;
1443
+ /**
1444
+ * The type constraint the variable's type line spells, as written; empty
1445
+ * for a variable with no type line. `any` is a type line of its own.
1446
+ */
1340
1447
  type: string;
1341
1448
  required: boolean;
1342
1449
  description: string;
@@ -1356,6 +1463,10 @@ interface ValidationBlock {
1356
1463
  declare const ValidationBlock: MessageFns<ValidationBlock>;
1357
1464
  interface OutputDef {
1358
1465
  name: string;
1466
+ /**
1467
+ * The type of the child output the output's export reads; empty when
1468
+ * nothing types it. An output block declares no type.
1469
+ */
1359
1470
  type: string;
1360
1471
  description: string;
1361
1472
  sensitive: boolean;
package/dist/index.d.ts CHANGED
@@ -330,6 +330,10 @@ interface Interface {
330
330
  declare const Interface: MessageFns$1<Interface>;
331
331
  interface InputDef$1 {
332
332
  name: string;
333
+ /**
334
+ * The type constraint the variable's type line spells, as written; empty
335
+ * for a variable with no type line. `any` is a type line of its own.
336
+ */
333
337
  type: string;
334
338
  required: boolean;
335
339
  description: string;
@@ -349,6 +353,10 @@ interface ValidationBlock$1 {
349
353
  declare const ValidationBlock$1: MessageFns$1<ValidationBlock$1>;
350
354
  interface OutputDef$1 {
351
355
  name: string;
356
+ /**
357
+ * The type of the child output the output's export reads; empty when
358
+ * nothing types it. An output block declares no type.
359
+ */
352
360
  type: string;
353
361
  description: string;
354
362
  sensitive: boolean;
@@ -479,12 +487,15 @@ interface ModuleReference {
479
487
  splat: boolean;
480
488
  }
481
489
  declare const ModuleReference: MessageFns$1<ModuleReference>;
490
+ /**
491
+ * A module's terraform block as the IR holds it. It holds no backend: Lace
492
+ * manages state, and a backend block is a fact about the files.
493
+ */
482
494
  interface TerraformBlock {
483
495
  required_version: string;
484
496
  required_providers: {
485
497
  [key: string]: ProviderRequirement;
486
498
  };
487
- backend: BackendConfig | undefined;
488
499
  }
489
500
  declare const TerraformBlock: MessageFns$1<TerraformBlock>;
490
501
  interface ProviderRequirement {
@@ -493,13 +504,6 @@ interface ProviderRequirement {
493
504
  configuration_aliases: string[];
494
505
  }
495
506
  declare const ProviderRequirement: MessageFns$1<ProviderRequirement>;
496
- interface BackendConfig {
497
- type: string;
498
- config: {
499
- [key: string]: any | undefined;
500
- };
501
- }
502
- declare const BackendConfig: MessageFns$1<BackendConfig>;
503
507
  interface ProviderConfig {
504
508
  name: string;
505
509
  alias: string;
@@ -556,7 +560,11 @@ declare enum DiagnosticSeverity {
556
560
  */
557
561
  declare enum Reason {
558
562
  REASON_UNSPECIFIED = 0,
559
- /** REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form. */
563
+ /**
564
+ * REASON_NOT_LACE_FORM - Placement: the resolved tree's own certification verdict is not Lace-form.
565
+ * module convert and stack import: lacification cannot take the tree to
566
+ * lace shape; the report names each managed resource and the IR gap holding it.
567
+ */
560
568
  REASON_NOT_LACE_FORM = 1,
561
569
  /** REASON_HASH_MISMATCH - Placement: the downloaded tree does not hash to what the registry vouched for. */
562
570
  REASON_HASH_MISMATCH = 2,
@@ -569,7 +577,8 @@ declare enum Reason {
569
577
  /** REASON_CONFLICT - Generate: the tree moved under the session's base; Keep or Reload first. */
570
578
  REASON_CONFLICT = 6,
571
579
  /**
572
- * REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused.
580
+ * REASON_SOURCE_REFUSED - Every mutation, save and generate: the session's source tf is refused
581
+ * (`BundleState.source_refused`).
573
582
  * module convert and stack import: the tree's tf does not parse, has a
574
583
  * non-empty residual report, or its Bundle fails its own validation.
575
584
  * stack apply / stack destroy / registry register: a source in the stack
@@ -726,7 +735,7 @@ interface SessionGenerateRequest {
726
735
  declare const SessionGenerateRequest: MessageFns<SessionGenerateRequest>;
727
736
  interface SessionGenerateResponse {
728
737
  files_written: string[];
729
- /** the `module validate -o json` document for the written tree */
738
+ /** the `module validate -o json` document for the Terraform on disk */
730
739
  validate_json: string;
731
740
  /**
732
741
  * The revision of the state the Generate left: the
@@ -868,43 +877,117 @@ interface UngroupAction {
868
877
  scope: string;
869
878
  }
870
879
  declare const UngroupAction: MessageFns<UngroupAction>;
880
+ /**
881
+ * SetVariablesAction sets the variables `scope` declares, whole: a
882
+ * variable the action does not name is removed.
883
+ */
871
884
  interface SetVariablesAction {
872
885
  variables: InputDef[];
886
+ scope: string;
873
887
  }
874
888
  declare const SetVariablesAction: MessageFns<SetVariablesAction>;
889
+ /**
890
+ * SetExportsAction sets the outputs `scope` declares, whole: each output's
891
+ * value and what its definition carries beside it.
892
+ */
875
893
  interface SetExportsAction {
876
894
  outputs: OutputExportEntry[];
877
895
  output_defs: OutputDef[];
896
+ scope: string;
878
897
  }
879
898
  declare const SetExportsAction: MessageFns<SetExportsAction>;
899
+ /**
900
+ * OutputExportEntry is one output's value as text, read as the parse reads
901
+ * an output block's `value`: a resource's or a data source's attribute, a
902
+ * call's output, a literal, a variable or any other expression.
903
+ */
880
904
  interface OutputExportEntry {
881
905
  name: string;
882
- source_instance: string;
883
- source_output: string;
906
+ value: string;
884
907
  }
885
908
  declare const OutputExportEntry: MessageFns<OutputExportEntry>;
909
+ /**
910
+ * SetTerraformAction sets the terraform block `scope` holds, whole: its
911
+ * required version and required providers. The IR holds no backend: Lace
912
+ * manages state, and a backend block is a fact about the files.
913
+ */
886
914
  interface SetTerraformAction {
887
915
  required_version: string;
888
916
  required_providers: ProviderReqView[];
889
- backend: BackendView | undefined;
917
+ scope: string;
890
918
  }
891
919
  declare const SetTerraformAction: MessageFns<SetTerraformAction>;
920
+ /** SetProvidersAction sets the provider configurations `scope` holds, whole. */
892
921
  interface SetProvidersAction {
893
922
  providers: ProviderView[];
923
+ scope: string;
894
924
  }
895
925
  declare const SetProvidersAction: MessageFns<SetProvidersAction>;
926
+ /** SetLocalsAction sets the locals `scope` holds, whole. */
896
927
  interface SetLocalsAction {
897
928
  locals: LocalEntry[];
929
+ scope: string;
898
930
  }
899
931
  declare const SetLocalsAction: MessageFns<SetLocalsAction>;
932
+ /** LocalEntry is one local's value as text. */
900
933
  interface LocalEntry {
901
934
  name: string;
902
- mode: string;
903
- value: any | undefined;
904
- variable: string;
905
- expression: string;
935
+ value: string;
906
936
  }
907
937
  declare const LocalEntry: MessageFns<LocalEntry>;
938
+ /**
939
+ * SetDirectivesAction sets the `moved` and `import` blocks `scope` holds,
940
+ * whole, in the order the render writes them. A block of any other type is
941
+ * refused: the parse holds no other top-level block.
942
+ */
943
+ interface SetDirectivesAction {
944
+ blocks: BlockView[];
945
+ scope: string;
946
+ }
947
+ declare const SetDirectivesAction: MessageFns<SetDirectivesAction>;
948
+ /**
949
+ * SetBlocksAction sets the nested blocks of the resource or data source
950
+ * `instance_id` of `scope`, whole: adding a block, removing one and editing
951
+ * one's attributes are each this action. A module call holds no nested
952
+ * block, so one naming a call is refused.
953
+ */
954
+ interface SetBlocksAction {
955
+ instance_id: string;
956
+ blocks: BlockView[];
957
+ scope: string;
958
+ }
959
+ declare const SetBlocksAction: MessageFns<SetBlocksAction>;
960
+ /**
961
+ * SetMetaArgumentsAction sets the meta-arguments of the child `instance_id`
962
+ * of `scope`, each as text and empty for none: `count` and `for_each`, of
963
+ * which a child takes at most one, and `provider`, the provider
964
+ * configuration a resource or data source uses (`aws.west`). A module call
965
+ * passes providers through its `providers` map (`set_use_providers`), so a
966
+ * `provider` naming one for a call is refused.
967
+ */
968
+ interface SetMetaArgumentsAction {
969
+ instance_id: string;
970
+ count: string;
971
+ for_each: string;
972
+ provider: string;
973
+ scope: string;
974
+ }
975
+ declare const SetMetaArgumentsAction: MessageFns<SetMetaArgumentsAction>;
976
+ /**
977
+ * AddResourceAction adds a managed resource (`kind` "resource") or a data
978
+ * source (`kind` "data") of `type`, named `name`, to `scope`, with no
979
+ * argument: its id is `<kind>.<type>.<name>`, reported in
980
+ * `BundleApplyResult.created`. One `scope` already holds, a type or name
981
+ * that is not an identifier, and any other kind are refused. A resource is
982
+ * removed by `delete_instance`.
983
+ */
984
+ interface AddResourceAction {
985
+ kind: string;
986
+ type: string;
987
+ name: string;
988
+ scope: string;
989
+ }
990
+ declare const AddResourceAction: MessageFns<AddResourceAction>;
908
991
  interface SetDependsOnAction {
909
992
  instance_id: string;
910
993
  depends_on: string[];
@@ -972,6 +1055,10 @@ interface Action {
972
1055
  place_module?: PlaceModuleAction | undefined;
973
1056
  set_use_providers?: SetUseProvidersAction | undefined;
974
1057
  ungroup?: UngroupAction | undefined;
1058
+ set_blocks?: SetBlocksAction | undefined;
1059
+ set_directives?: SetDirectivesAction | undefined;
1060
+ set_meta_arguments?: SetMetaArgumentsAction | undefined;
1061
+ add_resource?: AddResourceAction | undefined;
975
1062
  }
976
1063
  declare const Action: MessageFns<Action>;
977
1064
  interface ApplyActionRequest {
@@ -1032,7 +1119,10 @@ interface InvokeRequest {
1032
1119
  invoke_id: string;
1033
1120
  /** e.g. ["stack","preview"] */
1034
1121
  path: string[];
1035
- /** positionals + flags from toArgv; never -o/--output */
1122
+ /**
1123
+ * The command's positionals and flags, as a terminal user types them.
1124
+ * -o/--output may name only json, the format the stream carries.
1125
+ */
1036
1126
  argv: string[];
1037
1127
  /**
1038
1128
  * The absolute directory the command runs in, as a terminal invocation
@@ -1044,6 +1134,11 @@ interface InvokeRequest {
1044
1134
  * directory is sent with the developer's home.
1045
1135
  */
1046
1136
  working_directory: string;
1137
+ /**
1138
+ * The command's standard input: the bytes a terminal user would type,
1139
+ * such as the name a destroy asks to be confirmed with.
1140
+ */
1141
+ stdin: Buffer;
1047
1142
  }
1048
1143
  declare const InvokeRequest: MessageFns<InvokeRequest>;
1049
1144
  interface InvokeEvent {
@@ -1087,7 +1182,7 @@ interface GenerateProgress {
1087
1182
  declare const GenerateProgress: MessageFns<GenerateProgress>;
1088
1183
  interface GenerateSuccess {
1089
1184
  files_written: string[];
1090
- /** the `module validate -o json` document for the written tree */
1185
+ /** the `module validate -o json` document for the Terraform on disk */
1091
1186
  validate_json: string;
1092
1187
  /** the Generate this event belongs to */
1093
1188
  generate_id: string;
@@ -1191,10 +1286,13 @@ interface BundleState {
1191
1286
  ungenerated: boolean;
1192
1287
  /**
1193
1288
  * True when the source tf this session opened, or last observed live,
1194
- * is refused (unparsable or lossy). The engine refuses
1195
- * every mutation while this holds — edit, undo, redo, save, generate,
1196
- * and SessionResolveConflict's Keep/Reload alike — until a live tf
1197
- * change parses and clears it.
1289
+ * is refused: it cannot be selected as one tree, does not parse, parses
1290
+ * lossily, or is not in lace shape, and `diagnostics` names why — one
1291
+ * `not_lace_shape` diagnostic per managed resource out of lace shape, whose
1292
+ * remedy is Convert (`module convert`). The engine refuses every
1293
+ * mutation while this holds — edit, undo, redo, save, generate, and
1294
+ * SessionResolveConflict's Keep/Reload alike — until a live tf change
1295
+ * is accepted and clears it.
1198
1296
  */
1199
1297
  source_refused: boolean;
1200
1298
  /**
@@ -1312,31 +1410,40 @@ interface ProviderReqView {
1312
1410
  configuration_aliases: string[];
1313
1411
  }
1314
1412
  declare const ProviderReqView: MessageFns<ProviderReqView>;
1315
- interface BackendView {
1316
- type: string;
1317
- config: {
1318
- [key: string]: any | undefined;
1319
- };
1320
- }
1321
- declare const BackendView: MessageFns<BackendView>;
1322
1413
  interface ProviderView {
1323
1414
  name: string;
1324
1415
  alias: string;
1416
+ /** Each setting's value as text. */
1325
1417
  config: {
1326
1418
  [key: string]: string;
1327
1419
  };
1328
- /**
1329
- * Nested config blocks (default_tags, assume_role, …). Full-fidelity,
1330
- * read-only echo: the panel renders and round-trips these verbatim but does
1331
- * not structurally edit them, deliberately mixing tiers with the flattened,
1332
- * editable `config` map above (see ProvidersPanel). Reuses state.proto's
1333
- * recursive Block so no HCL is re-serialized on the wire.
1334
- */
1335
- blocks: Block[];
1420
+ /** The configuration's nested blocks (default_tags, assume_role, …). */
1421
+ blocks: BlockView[];
1336
1422
  }
1337
1423
  declare const ProviderView: MessageFns<ProviderView>;
1424
+ /**
1425
+ * BlockView is a block as a panel edits it: a resource's or a provider
1426
+ * configuration's nested block, or a `moved` or `import` block. Each
1427
+ * attribute's value is text, in the block's declaration order.
1428
+ */
1429
+ interface BlockView {
1430
+ type: string;
1431
+ labels: string[];
1432
+ attributes: AttributeView[];
1433
+ blocks: BlockView[];
1434
+ }
1435
+ declare const BlockView: MessageFns<BlockView>;
1436
+ interface AttributeView {
1437
+ name: string;
1438
+ value: string;
1439
+ }
1440
+ declare const AttributeView: MessageFns<AttributeView>;
1338
1441
  interface InputDef {
1339
1442
  name: string;
1443
+ /**
1444
+ * The type constraint the variable's type line spells, as written; empty
1445
+ * for a variable with no type line. `any` is a type line of its own.
1446
+ */
1340
1447
  type: string;
1341
1448
  required: boolean;
1342
1449
  description: string;
@@ -1356,6 +1463,10 @@ interface ValidationBlock {
1356
1463
  declare const ValidationBlock: MessageFns<ValidationBlock>;
1357
1464
  interface OutputDef {
1358
1465
  name: string;
1466
+ /**
1467
+ * The type of the child output the output's export reads; empty when
1468
+ * nothing types it. An output block declares no type.
1469
+ */
1359
1470
  type: string;
1360
1471
  description: string;
1361
1472
  sensitive: boolean;