@lace-cloud/host 0.7.1 → 0.9.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.cjs +501 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +46 -4
- package/dist/index.d.ts +46 -4
- package/dist/index.mjs +501 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -99,10 +99,12 @@ interface InputDef$1 {
|
|
|
99
99
|
required: boolean;
|
|
100
100
|
description: string;
|
|
101
101
|
default_value: any | undefined;
|
|
102
|
-
validation: ValidationBlock$1
|
|
102
|
+
validation: ValidationBlock$1[];
|
|
103
103
|
sensitive: boolean;
|
|
104
104
|
/** unset = default (true); explicit false is meaningful */
|
|
105
105
|
nullable?: boolean | undefined;
|
|
106
|
+
/** unset = default (false); explicit true is meaningful */
|
|
107
|
+
ephemeral?: boolean | undefined;
|
|
106
108
|
}
|
|
107
109
|
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
108
110
|
interface ValidationBlock$1 {
|
|
@@ -115,6 +117,7 @@ interface OutputDef$1 {
|
|
|
115
117
|
type: string;
|
|
116
118
|
description: string;
|
|
117
119
|
sensitive: boolean;
|
|
120
|
+
depends_on: string[];
|
|
118
121
|
}
|
|
119
122
|
declare const OutputDef$1: MessageFns$1<OutputDef$1>;
|
|
120
123
|
interface Source {
|
|
@@ -137,6 +140,10 @@ interface Use {
|
|
|
137
140
|
[key: string]: Binding;
|
|
138
141
|
};
|
|
139
142
|
depends_on: string[];
|
|
143
|
+
/** count meta-argument */
|
|
144
|
+
count: Binding | undefined;
|
|
145
|
+
/** for_each meta-argument */
|
|
146
|
+
for_each: Binding | undefined;
|
|
140
147
|
}
|
|
141
148
|
declare const Use: MessageFns$1<Use>;
|
|
142
149
|
interface Resource {
|
|
@@ -229,7 +236,7 @@ interface ProviderConfig {
|
|
|
229
236
|
name: string;
|
|
230
237
|
alias: string;
|
|
231
238
|
config: {
|
|
232
|
-
[key: string]:
|
|
239
|
+
[key: string]: Binding;
|
|
233
240
|
};
|
|
234
241
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
235
242
|
blocks: Block[];
|
|
@@ -487,6 +494,19 @@ interface SetDependsOnAction {
|
|
|
487
494
|
depends_on: string[];
|
|
488
495
|
}
|
|
489
496
|
declare const SetDependsOnAction: MessageFns<SetDependsOnAction>;
|
|
497
|
+
/**
|
|
498
|
+
* SetUseProvidersAction sets a module call's `providers = {}` map. Keys are
|
|
499
|
+
* the child module's local provider names, values the root's provider
|
|
500
|
+
* references passed down (`name` or `name.alias`). A node-tier edit of the
|
|
501
|
+
* existing Use, mirroring SetDependsOnAction.
|
|
502
|
+
*/
|
|
503
|
+
interface SetUseProvidersAction {
|
|
504
|
+
instance_id: string;
|
|
505
|
+
providers: {
|
|
506
|
+
[key: string]: string;
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
declare const SetUseProvidersAction: MessageFns<SetUseProvidersAction>;
|
|
490
510
|
interface SetEnvironmentsAction {
|
|
491
511
|
environments: {
|
|
492
512
|
[key: string]: {
|
|
@@ -548,6 +568,7 @@ interface Action {
|
|
|
548
568
|
undo?: UndoAction | undefined;
|
|
549
569
|
redo?: RedoAction | undefined;
|
|
550
570
|
place_module?: PlaceModuleAction | undefined;
|
|
571
|
+
set_use_providers?: SetUseProvidersAction | undefined;
|
|
551
572
|
}
|
|
552
573
|
declare const Action: MessageFns<Action>;
|
|
553
574
|
interface ApplyActionRequest {
|
|
@@ -643,6 +664,13 @@ interface ProviderReqView {
|
|
|
643
664
|
name: string;
|
|
644
665
|
source: string;
|
|
645
666
|
version: string;
|
|
667
|
+
/**
|
|
668
|
+
* Provider references the module declares it accepts from its caller
|
|
669
|
+
* (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
|
|
670
|
+
* `name.alias` reference, re-emitted unquoted; carried so the panel neither
|
|
671
|
+
* drops nor corrupts the construct.
|
|
672
|
+
*/
|
|
673
|
+
configuration_aliases: string[];
|
|
646
674
|
}
|
|
647
675
|
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
648
676
|
interface BackendView {
|
|
@@ -656,8 +684,16 @@ interface ProviderView {
|
|
|
656
684
|
name: string;
|
|
657
685
|
alias: string;
|
|
658
686
|
config: {
|
|
659
|
-
[key: string]:
|
|
687
|
+
[key: string]: string;
|
|
660
688
|
};
|
|
689
|
+
/**
|
|
690
|
+
* Nested config blocks (default_tags, assume_role, …). Full-fidelity,
|
|
691
|
+
* read-only echo: the panel renders and round-trips these verbatim but does
|
|
692
|
+
* not structurally edit them, deliberately mixing tiers with the flattened,
|
|
693
|
+
* editable `config` map above (see ProvidersPanel). Reuses state.proto's
|
|
694
|
+
* recursive Block so no HCL is re-serialized on the wire.
|
|
695
|
+
*/
|
|
696
|
+
blocks: Block[];
|
|
661
697
|
}
|
|
662
698
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
663
699
|
interface Position {
|
|
@@ -671,7 +707,12 @@ interface InputDef {
|
|
|
671
707
|
required: boolean;
|
|
672
708
|
description: string;
|
|
673
709
|
default_value: any | undefined;
|
|
674
|
-
validation: ValidationBlock
|
|
710
|
+
validation: ValidationBlock[];
|
|
711
|
+
/** unset = default (false); explicit true is meaningful */
|
|
712
|
+
ephemeral?: boolean | undefined;
|
|
713
|
+
/** unset = default (true); explicit false is meaningful */
|
|
714
|
+
nullable?: boolean | undefined;
|
|
715
|
+
sensitive: boolean;
|
|
675
716
|
}
|
|
676
717
|
declare const InputDef: MessageFns<InputDef>;
|
|
677
718
|
interface ValidationBlock {
|
|
@@ -684,6 +725,7 @@ interface OutputDef {
|
|
|
684
725
|
type: string;
|
|
685
726
|
description: string;
|
|
686
727
|
sensitive: boolean;
|
|
728
|
+
depends_on: string[];
|
|
687
729
|
}
|
|
688
730
|
declare const OutputDef: MessageFns<OutputDef>;
|
|
689
731
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -99,10 +99,12 @@ interface InputDef$1 {
|
|
|
99
99
|
required: boolean;
|
|
100
100
|
description: string;
|
|
101
101
|
default_value: any | undefined;
|
|
102
|
-
validation: ValidationBlock$1
|
|
102
|
+
validation: ValidationBlock$1[];
|
|
103
103
|
sensitive: boolean;
|
|
104
104
|
/** unset = default (true); explicit false is meaningful */
|
|
105
105
|
nullable?: boolean | undefined;
|
|
106
|
+
/** unset = default (false); explicit true is meaningful */
|
|
107
|
+
ephemeral?: boolean | undefined;
|
|
106
108
|
}
|
|
107
109
|
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
108
110
|
interface ValidationBlock$1 {
|
|
@@ -115,6 +117,7 @@ interface OutputDef$1 {
|
|
|
115
117
|
type: string;
|
|
116
118
|
description: string;
|
|
117
119
|
sensitive: boolean;
|
|
120
|
+
depends_on: string[];
|
|
118
121
|
}
|
|
119
122
|
declare const OutputDef$1: MessageFns$1<OutputDef$1>;
|
|
120
123
|
interface Source {
|
|
@@ -137,6 +140,10 @@ interface Use {
|
|
|
137
140
|
[key: string]: Binding;
|
|
138
141
|
};
|
|
139
142
|
depends_on: string[];
|
|
143
|
+
/** count meta-argument */
|
|
144
|
+
count: Binding | undefined;
|
|
145
|
+
/** for_each meta-argument */
|
|
146
|
+
for_each: Binding | undefined;
|
|
140
147
|
}
|
|
141
148
|
declare const Use: MessageFns$1<Use>;
|
|
142
149
|
interface Resource {
|
|
@@ -229,7 +236,7 @@ interface ProviderConfig {
|
|
|
229
236
|
name: string;
|
|
230
237
|
alias: string;
|
|
231
238
|
config: {
|
|
232
|
-
[key: string]:
|
|
239
|
+
[key: string]: Binding;
|
|
233
240
|
};
|
|
234
241
|
/** nested config blocks (default_tags, assume_role, …) */
|
|
235
242
|
blocks: Block[];
|
|
@@ -487,6 +494,19 @@ interface SetDependsOnAction {
|
|
|
487
494
|
depends_on: string[];
|
|
488
495
|
}
|
|
489
496
|
declare const SetDependsOnAction: MessageFns<SetDependsOnAction>;
|
|
497
|
+
/**
|
|
498
|
+
* SetUseProvidersAction sets a module call's `providers = {}` map. Keys are
|
|
499
|
+
* the child module's local provider names, values the root's provider
|
|
500
|
+
* references passed down (`name` or `name.alias`). A node-tier edit of the
|
|
501
|
+
* existing Use, mirroring SetDependsOnAction.
|
|
502
|
+
*/
|
|
503
|
+
interface SetUseProvidersAction {
|
|
504
|
+
instance_id: string;
|
|
505
|
+
providers: {
|
|
506
|
+
[key: string]: string;
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
declare const SetUseProvidersAction: MessageFns<SetUseProvidersAction>;
|
|
490
510
|
interface SetEnvironmentsAction {
|
|
491
511
|
environments: {
|
|
492
512
|
[key: string]: {
|
|
@@ -548,6 +568,7 @@ interface Action {
|
|
|
548
568
|
undo?: UndoAction | undefined;
|
|
549
569
|
redo?: RedoAction | undefined;
|
|
550
570
|
place_module?: PlaceModuleAction | undefined;
|
|
571
|
+
set_use_providers?: SetUseProvidersAction | undefined;
|
|
551
572
|
}
|
|
552
573
|
declare const Action: MessageFns<Action>;
|
|
553
574
|
interface ApplyActionRequest {
|
|
@@ -643,6 +664,13 @@ interface ProviderReqView {
|
|
|
643
664
|
name: string;
|
|
644
665
|
source: string;
|
|
645
666
|
version: string;
|
|
667
|
+
/**
|
|
668
|
+
* Provider references the module declares it accepts from its caller
|
|
669
|
+
* (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
|
|
670
|
+
* `name.alias` reference, re-emitted unquoted; carried so the panel neither
|
|
671
|
+
* drops nor corrupts the construct.
|
|
672
|
+
*/
|
|
673
|
+
configuration_aliases: string[];
|
|
646
674
|
}
|
|
647
675
|
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
648
676
|
interface BackendView {
|
|
@@ -656,8 +684,16 @@ interface ProviderView {
|
|
|
656
684
|
name: string;
|
|
657
685
|
alias: string;
|
|
658
686
|
config: {
|
|
659
|
-
[key: string]:
|
|
687
|
+
[key: string]: string;
|
|
660
688
|
};
|
|
689
|
+
/**
|
|
690
|
+
* Nested config blocks (default_tags, assume_role, …). Full-fidelity,
|
|
691
|
+
* read-only echo: the panel renders and round-trips these verbatim but does
|
|
692
|
+
* not structurally edit them, deliberately mixing tiers with the flattened,
|
|
693
|
+
* editable `config` map above (see ProvidersPanel). Reuses state.proto's
|
|
694
|
+
* recursive Block so no HCL is re-serialized on the wire.
|
|
695
|
+
*/
|
|
696
|
+
blocks: Block[];
|
|
661
697
|
}
|
|
662
698
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
663
699
|
interface Position {
|
|
@@ -671,7 +707,12 @@ interface InputDef {
|
|
|
671
707
|
required: boolean;
|
|
672
708
|
description: string;
|
|
673
709
|
default_value: any | undefined;
|
|
674
|
-
validation: ValidationBlock
|
|
710
|
+
validation: ValidationBlock[];
|
|
711
|
+
/** unset = default (false); explicit true is meaningful */
|
|
712
|
+
ephemeral?: boolean | undefined;
|
|
713
|
+
/** unset = default (true); explicit false is meaningful */
|
|
714
|
+
nullable?: boolean | undefined;
|
|
715
|
+
sensitive: boolean;
|
|
675
716
|
}
|
|
676
717
|
declare const InputDef: MessageFns<InputDef>;
|
|
677
718
|
interface ValidationBlock {
|
|
@@ -684,6 +725,7 @@ interface OutputDef {
|
|
|
684
725
|
type: string;
|
|
685
726
|
description: string;
|
|
686
727
|
sensitive: boolean;
|
|
728
|
+
depends_on: string[];
|
|
687
729
|
}
|
|
688
730
|
declare const OutputDef: MessageFns<OutputDef>;
|
|
689
731
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|