@lace-cloud/proto 0.8.0 → 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 +196 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.mjs +196 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -468,6 +468,10 @@ interface NodeConfig$1 {
|
|
|
468
468
|
sibling_ids: string[];
|
|
469
469
|
depends_on: string[];
|
|
470
470
|
available_variables: VariableRef[];
|
|
471
|
+
/** A module call's `providers = {}` map (child-local name → root ref). */
|
|
472
|
+
providers: {
|
|
473
|
+
[key: string]: string;
|
|
474
|
+
};
|
|
471
475
|
}
|
|
472
476
|
declare const NodeConfig$1: MessageFns<NodeConfig$1>;
|
|
473
477
|
interface VariableRef {
|
|
@@ -517,6 +521,13 @@ interface ProviderReqView {
|
|
|
517
521
|
name: string;
|
|
518
522
|
source: string;
|
|
519
523
|
version: string;
|
|
524
|
+
/**
|
|
525
|
+
* Provider references the module declares it accepts from its caller
|
|
526
|
+
* (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
|
|
527
|
+
* `name.alias` reference, re-emitted unquoted; carried so the panel neither
|
|
528
|
+
* drops nor corrupts the construct.
|
|
529
|
+
*/
|
|
530
|
+
configuration_aliases: string[];
|
|
520
531
|
}
|
|
521
532
|
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
522
533
|
interface BackendView {
|
|
@@ -532,6 +543,14 @@ interface ProviderView {
|
|
|
532
543
|
config: {
|
|
533
544
|
[key: string]: string;
|
|
534
545
|
};
|
|
546
|
+
/**
|
|
547
|
+
* Nested config blocks (default_tags, assume_role, …). Full-fidelity,
|
|
548
|
+
* read-only echo: the panel renders and round-trips these verbatim but does
|
|
549
|
+
* not structurally edit them, deliberately mixing tiers with the flattened,
|
|
550
|
+
* editable `config` map above (see ProvidersPanel). Reuses state.proto's
|
|
551
|
+
* recursive Block so no HCL is re-serialized on the wire.
|
|
552
|
+
*/
|
|
553
|
+
blocks: Block[];
|
|
535
554
|
}
|
|
536
555
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
537
556
|
interface LocalView {
|
|
@@ -560,6 +579,9 @@ interface InputDef {
|
|
|
560
579
|
validation: ValidationBlock[];
|
|
561
580
|
/** unset = default (false); explicit true is meaningful */
|
|
562
581
|
ephemeral?: boolean | undefined;
|
|
582
|
+
/** unset = default (true); explicit false is meaningful */
|
|
583
|
+
nullable?: boolean | undefined;
|
|
584
|
+
sensitive: boolean;
|
|
563
585
|
}
|
|
564
586
|
declare const InputDef: MessageFns<InputDef>;
|
|
565
587
|
interface ValidationBlock {
|
|
@@ -655,6 +677,7 @@ type ProtoNodeConfigLike = {
|
|
|
655
677
|
outputs: RenderOutput$1[];
|
|
656
678
|
sibling_ids: string[];
|
|
657
679
|
depends_on: string[];
|
|
680
|
+
providers: Record<string, string>;
|
|
658
681
|
available_variables: VariableRef[];
|
|
659
682
|
};
|
|
660
683
|
type ProtoEdgeConfigLike = {
|
|
@@ -670,12 +693,16 @@ type ProtoInputDefLike = {
|
|
|
670
693
|
description: string;
|
|
671
694
|
default_value?: unknown;
|
|
672
695
|
validation?: ValidationBlock[];
|
|
696
|
+
ephemeral?: boolean;
|
|
697
|
+
nullable?: boolean;
|
|
698
|
+
sensitive?: boolean;
|
|
673
699
|
};
|
|
674
700
|
type ProtoOutputDefLike = {
|
|
675
701
|
name: string;
|
|
676
702
|
type: string;
|
|
677
703
|
description: string;
|
|
678
704
|
sensitive: boolean;
|
|
705
|
+
depends_on?: string[];
|
|
679
706
|
};
|
|
680
707
|
type ProtoOutputExportEntryLike = {
|
|
681
708
|
name: string;
|
|
@@ -770,6 +797,7 @@ type NodeConfig = {
|
|
|
770
797
|
outputs: RenderOutput[];
|
|
771
798
|
sibling_ids: string[];
|
|
772
799
|
depends_on: string[];
|
|
800
|
+
providers: Record<string, string>;
|
|
773
801
|
available_variables: Array<{
|
|
774
802
|
name: string;
|
|
775
803
|
type: string;
|
|
@@ -788,12 +816,14 @@ type SettingsConfig = {
|
|
|
788
816
|
name: string;
|
|
789
817
|
source: string;
|
|
790
818
|
version: string;
|
|
819
|
+
configuration_aliases?: string[];
|
|
791
820
|
}>;
|
|
792
821
|
};
|
|
793
822
|
providers: Array<{
|
|
794
823
|
name: string;
|
|
795
824
|
alias: string;
|
|
796
825
|
config: Record<string, string>;
|
|
826
|
+
blocks?: Block[];
|
|
797
827
|
}>;
|
|
798
828
|
locals: Array<{
|
|
799
829
|
name: string;
|
|
@@ -807,6 +837,13 @@ type SettingsConfig = {
|
|
|
807
837
|
required: boolean;
|
|
808
838
|
description?: string;
|
|
809
839
|
default_value?: unknown;
|
|
840
|
+
validation?: Array<{
|
|
841
|
+
condition: string;
|
|
842
|
+
error_message: string;
|
|
843
|
+
}>;
|
|
844
|
+
ephemeral?: boolean;
|
|
845
|
+
sensitive?: boolean;
|
|
846
|
+
nullable?: boolean;
|
|
810
847
|
}>;
|
|
811
848
|
exports: Array<{
|
|
812
849
|
name: string;
|
|
@@ -818,6 +855,7 @@ type SettingsConfig = {
|
|
|
818
855
|
type: string;
|
|
819
856
|
description?: string;
|
|
820
857
|
sensitive?: boolean;
|
|
858
|
+
depends_on?: string[];
|
|
821
859
|
}>;
|
|
822
860
|
};
|
|
823
861
|
type RenderError = {
|
package/dist/index.d.ts
CHANGED
|
@@ -468,6 +468,10 @@ interface NodeConfig$1 {
|
|
|
468
468
|
sibling_ids: string[];
|
|
469
469
|
depends_on: string[];
|
|
470
470
|
available_variables: VariableRef[];
|
|
471
|
+
/** A module call's `providers = {}` map (child-local name → root ref). */
|
|
472
|
+
providers: {
|
|
473
|
+
[key: string]: string;
|
|
474
|
+
};
|
|
471
475
|
}
|
|
472
476
|
declare const NodeConfig$1: MessageFns<NodeConfig$1>;
|
|
473
477
|
interface VariableRef {
|
|
@@ -517,6 +521,13 @@ interface ProviderReqView {
|
|
|
517
521
|
name: string;
|
|
518
522
|
source: string;
|
|
519
523
|
version: string;
|
|
524
|
+
/**
|
|
525
|
+
* Provider references the module declares it accepts from its caller
|
|
526
|
+
* (`configuration_aliases = [aws.src, aws.dst]`). Each entry is a `name` or
|
|
527
|
+
* `name.alias` reference, re-emitted unquoted; carried so the panel neither
|
|
528
|
+
* drops nor corrupts the construct.
|
|
529
|
+
*/
|
|
530
|
+
configuration_aliases: string[];
|
|
520
531
|
}
|
|
521
532
|
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
522
533
|
interface BackendView {
|
|
@@ -532,6 +543,14 @@ interface ProviderView {
|
|
|
532
543
|
config: {
|
|
533
544
|
[key: string]: string;
|
|
534
545
|
};
|
|
546
|
+
/**
|
|
547
|
+
* Nested config blocks (default_tags, assume_role, …). Full-fidelity,
|
|
548
|
+
* read-only echo: the panel renders and round-trips these verbatim but does
|
|
549
|
+
* not structurally edit them, deliberately mixing tiers with the flattened,
|
|
550
|
+
* editable `config` map above (see ProvidersPanel). Reuses state.proto's
|
|
551
|
+
* recursive Block so no HCL is re-serialized on the wire.
|
|
552
|
+
*/
|
|
553
|
+
blocks: Block[];
|
|
535
554
|
}
|
|
536
555
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
537
556
|
interface LocalView {
|
|
@@ -560,6 +579,9 @@ interface InputDef {
|
|
|
560
579
|
validation: ValidationBlock[];
|
|
561
580
|
/** unset = default (false); explicit true is meaningful */
|
|
562
581
|
ephemeral?: boolean | undefined;
|
|
582
|
+
/** unset = default (true); explicit false is meaningful */
|
|
583
|
+
nullable?: boolean | undefined;
|
|
584
|
+
sensitive: boolean;
|
|
563
585
|
}
|
|
564
586
|
declare const InputDef: MessageFns<InputDef>;
|
|
565
587
|
interface ValidationBlock {
|
|
@@ -655,6 +677,7 @@ type ProtoNodeConfigLike = {
|
|
|
655
677
|
outputs: RenderOutput$1[];
|
|
656
678
|
sibling_ids: string[];
|
|
657
679
|
depends_on: string[];
|
|
680
|
+
providers: Record<string, string>;
|
|
658
681
|
available_variables: VariableRef[];
|
|
659
682
|
};
|
|
660
683
|
type ProtoEdgeConfigLike = {
|
|
@@ -670,12 +693,16 @@ type ProtoInputDefLike = {
|
|
|
670
693
|
description: string;
|
|
671
694
|
default_value?: unknown;
|
|
672
695
|
validation?: ValidationBlock[];
|
|
696
|
+
ephemeral?: boolean;
|
|
697
|
+
nullable?: boolean;
|
|
698
|
+
sensitive?: boolean;
|
|
673
699
|
};
|
|
674
700
|
type ProtoOutputDefLike = {
|
|
675
701
|
name: string;
|
|
676
702
|
type: string;
|
|
677
703
|
description: string;
|
|
678
704
|
sensitive: boolean;
|
|
705
|
+
depends_on?: string[];
|
|
679
706
|
};
|
|
680
707
|
type ProtoOutputExportEntryLike = {
|
|
681
708
|
name: string;
|
|
@@ -770,6 +797,7 @@ type NodeConfig = {
|
|
|
770
797
|
outputs: RenderOutput[];
|
|
771
798
|
sibling_ids: string[];
|
|
772
799
|
depends_on: string[];
|
|
800
|
+
providers: Record<string, string>;
|
|
773
801
|
available_variables: Array<{
|
|
774
802
|
name: string;
|
|
775
803
|
type: string;
|
|
@@ -788,12 +816,14 @@ type SettingsConfig = {
|
|
|
788
816
|
name: string;
|
|
789
817
|
source: string;
|
|
790
818
|
version: string;
|
|
819
|
+
configuration_aliases?: string[];
|
|
791
820
|
}>;
|
|
792
821
|
};
|
|
793
822
|
providers: Array<{
|
|
794
823
|
name: string;
|
|
795
824
|
alias: string;
|
|
796
825
|
config: Record<string, string>;
|
|
826
|
+
blocks?: Block[];
|
|
797
827
|
}>;
|
|
798
828
|
locals: Array<{
|
|
799
829
|
name: string;
|
|
@@ -807,6 +837,13 @@ type SettingsConfig = {
|
|
|
807
837
|
required: boolean;
|
|
808
838
|
description?: string;
|
|
809
839
|
default_value?: unknown;
|
|
840
|
+
validation?: Array<{
|
|
841
|
+
condition: string;
|
|
842
|
+
error_message: string;
|
|
843
|
+
}>;
|
|
844
|
+
ephemeral?: boolean;
|
|
845
|
+
sensitive?: boolean;
|
|
846
|
+
nullable?: boolean;
|
|
810
847
|
}>;
|
|
811
848
|
exports: Array<{
|
|
812
849
|
name: string;
|
|
@@ -818,6 +855,7 @@ type SettingsConfig = {
|
|
|
818
855
|
type: string;
|
|
819
856
|
description?: string;
|
|
820
857
|
sensitive?: boolean;
|
|
858
|
+
depends_on?: string[];
|
|
821
859
|
}>;
|
|
822
860
|
};
|
|
823
861
|
type RenderError = {
|
package/dist/index.mjs
CHANGED
|
@@ -144,6 +144,7 @@ function convertNodeConfig(proto) {
|
|
|
144
144
|
})),
|
|
145
145
|
sibling_ids: proto.sibling_ids,
|
|
146
146
|
depends_on: proto.depends_on,
|
|
147
|
+
providers: proto.providers ?? {},
|
|
147
148
|
available_variables: proto.available_variables.map((v) => ({ name: v.name, type: v.type }))
|
|
148
149
|
};
|
|
149
150
|
}
|
|
@@ -167,13 +168,15 @@ function convertSettingsConfig(proto) {
|
|
|
167
168
|
required_providers: (proto.terraform?.required_providers ?? []).map((p) => ({
|
|
168
169
|
name: p.name,
|
|
169
170
|
source: p.source,
|
|
170
|
-
version: p.version
|
|
171
|
+
version: p.version,
|
|
172
|
+
configuration_aliases: p.configuration_aliases && p.configuration_aliases.length > 0 ? p.configuration_aliases : void 0
|
|
171
173
|
}))
|
|
172
174
|
},
|
|
173
175
|
providers: proto.providers.map((p) => ({
|
|
174
176
|
name: p.name,
|
|
175
177
|
alias: p.alias,
|
|
176
|
-
config: p.config ?? {}
|
|
178
|
+
config: p.config ?? {},
|
|
179
|
+
blocks: p.blocks && p.blocks.length > 0 ? p.blocks : void 0
|
|
177
180
|
})),
|
|
178
181
|
locals: proto.locals.map((l) => ({
|
|
179
182
|
name: l.name,
|
|
@@ -186,7 +189,11 @@ function convertSettingsConfig(proto) {
|
|
|
186
189
|
type: v.type,
|
|
187
190
|
required: v.required,
|
|
188
191
|
description: v.description || void 0,
|
|
189
|
-
default_value: v.default_value
|
|
192
|
+
default_value: v.default_value,
|
|
193
|
+
validation: v.validation && v.validation.length > 0 ? v.validation.map((b) => ({ condition: b.condition, error_message: b.error_message })) : void 0,
|
|
194
|
+
ephemeral: v.ephemeral,
|
|
195
|
+
sensitive: v.sensitive,
|
|
196
|
+
nullable: v.nullable
|
|
190
197
|
})),
|
|
191
198
|
exports: (proto.exports ?? []).map((e) => ({
|
|
192
199
|
name: e.name,
|
|
@@ -197,7 +204,8 @@ function convertSettingsConfig(proto) {
|
|
|
197
204
|
name: d.name,
|
|
198
205
|
type: d.type,
|
|
199
206
|
description: d.description || void 0,
|
|
200
|
-
sensitive: d.sensitive
|
|
207
|
+
sensitive: d.sensitive,
|
|
208
|
+
depends_on: d.depends_on && d.depends_on.length > 0 ? d.depends_on : void 0
|
|
201
209
|
}))
|
|
202
210
|
};
|
|
203
211
|
}
|
|
@@ -5805,7 +5813,15 @@ var RenderOutput = {
|
|
|
5805
5813
|
}
|
|
5806
5814
|
};
|
|
5807
5815
|
function createBaseNodeConfig() {
|
|
5808
|
-
return {
|
|
5816
|
+
return {
|
|
5817
|
+
instance_id: "",
|
|
5818
|
+
inputs: [],
|
|
5819
|
+
outputs: [],
|
|
5820
|
+
sibling_ids: [],
|
|
5821
|
+
depends_on: [],
|
|
5822
|
+
available_variables: [],
|
|
5823
|
+
providers: {}
|
|
5824
|
+
};
|
|
5809
5825
|
}
|
|
5810
5826
|
var NodeConfig = {
|
|
5811
5827
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -5827,6 +5843,9 @@ var NodeConfig = {
|
|
|
5827
5843
|
for (const v of message.available_variables) {
|
|
5828
5844
|
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
5829
5845
|
}
|
|
5846
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
5847
|
+
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
5848
|
+
});
|
|
5830
5849
|
return writer;
|
|
5831
5850
|
},
|
|
5832
5851
|
decode(input, length) {
|
|
@@ -5878,6 +5897,16 @@ var NodeConfig = {
|
|
|
5878
5897
|
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
5879
5898
|
continue;
|
|
5880
5899
|
}
|
|
5900
|
+
case 7: {
|
|
5901
|
+
if (tag !== 58) {
|
|
5902
|
+
break;
|
|
5903
|
+
}
|
|
5904
|
+
const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
|
|
5905
|
+
if (entry7.value !== void 0) {
|
|
5906
|
+
message.providers[entry7.key] = entry7.value;
|
|
5907
|
+
}
|
|
5908
|
+
continue;
|
|
5909
|
+
}
|
|
5881
5910
|
}
|
|
5882
5911
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5883
5912
|
break;
|
|
@@ -5893,7 +5922,14 @@ var NodeConfig = {
|
|
|
5893
5922
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
5894
5923
|
sibling_ids: globalThis.Array.isArray(object?.siblingIds) ? object.siblingIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.sibling_ids) ? object.sibling_ids.map((e) => globalThis.String(e)) : [],
|
|
5895
5924
|
depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
|
|
5896
|
-
available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : []
|
|
5925
|
+
available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : [],
|
|
5926
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
5927
|
+
(acc, [key, value]) => {
|
|
5928
|
+
acc[key] = globalThis.String(value);
|
|
5929
|
+
return acc;
|
|
5930
|
+
},
|
|
5931
|
+
{}
|
|
5932
|
+
) : {}
|
|
5897
5933
|
};
|
|
5898
5934
|
},
|
|
5899
5935
|
toJSON(message) {
|
|
@@ -5916,6 +5952,15 @@ var NodeConfig = {
|
|
|
5916
5952
|
if (message.available_variables?.length) {
|
|
5917
5953
|
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
5918
5954
|
}
|
|
5955
|
+
if (message.providers) {
|
|
5956
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
5957
|
+
if (entries.length > 0) {
|
|
5958
|
+
obj.providers = {};
|
|
5959
|
+
entries.forEach(([k, v]) => {
|
|
5960
|
+
obj.providers[k] = v;
|
|
5961
|
+
});
|
|
5962
|
+
}
|
|
5963
|
+
}
|
|
5919
5964
|
return obj;
|
|
5920
5965
|
},
|
|
5921
5966
|
create(base) {
|
|
@@ -5929,6 +5974,83 @@ var NodeConfig = {
|
|
|
5929
5974
|
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
5930
5975
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
5931
5976
|
message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
|
|
5977
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
5978
|
+
(acc, [key, value]) => {
|
|
5979
|
+
if (value !== void 0) {
|
|
5980
|
+
acc[key] = globalThis.String(value);
|
|
5981
|
+
}
|
|
5982
|
+
return acc;
|
|
5983
|
+
},
|
|
5984
|
+
{}
|
|
5985
|
+
);
|
|
5986
|
+
return message;
|
|
5987
|
+
}
|
|
5988
|
+
};
|
|
5989
|
+
function createBaseNodeConfig_ProvidersEntry() {
|
|
5990
|
+
return { key: "", value: "" };
|
|
5991
|
+
}
|
|
5992
|
+
var NodeConfig_ProvidersEntry = {
|
|
5993
|
+
encode(message, writer = new BinaryWriter3()) {
|
|
5994
|
+
if (message.key !== "") {
|
|
5995
|
+
writer.uint32(10).string(message.key);
|
|
5996
|
+
}
|
|
5997
|
+
if (message.value !== "") {
|
|
5998
|
+
writer.uint32(18).string(message.value);
|
|
5999
|
+
}
|
|
6000
|
+
return writer;
|
|
6001
|
+
},
|
|
6002
|
+
decode(input, length) {
|
|
6003
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
6004
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6005
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
6006
|
+
while (reader.pos < end) {
|
|
6007
|
+
const tag = reader.uint32();
|
|
6008
|
+
switch (tag >>> 3) {
|
|
6009
|
+
case 1: {
|
|
6010
|
+
if (tag !== 10) {
|
|
6011
|
+
break;
|
|
6012
|
+
}
|
|
6013
|
+
message.key = reader.string();
|
|
6014
|
+
continue;
|
|
6015
|
+
}
|
|
6016
|
+
case 2: {
|
|
6017
|
+
if (tag !== 18) {
|
|
6018
|
+
break;
|
|
6019
|
+
}
|
|
6020
|
+
message.value = reader.string();
|
|
6021
|
+
continue;
|
|
6022
|
+
}
|
|
6023
|
+
}
|
|
6024
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6025
|
+
break;
|
|
6026
|
+
}
|
|
6027
|
+
reader.skip(tag & 7);
|
|
6028
|
+
}
|
|
6029
|
+
return message;
|
|
6030
|
+
},
|
|
6031
|
+
fromJSON(object) {
|
|
6032
|
+
return {
|
|
6033
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6034
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6035
|
+
};
|
|
6036
|
+
},
|
|
6037
|
+
toJSON(message) {
|
|
6038
|
+
const obj = {};
|
|
6039
|
+
if (message.key !== "") {
|
|
6040
|
+
obj.key = message.key;
|
|
6041
|
+
}
|
|
6042
|
+
if (message.value !== "") {
|
|
6043
|
+
obj.value = message.value;
|
|
6044
|
+
}
|
|
6045
|
+
return obj;
|
|
6046
|
+
},
|
|
6047
|
+
create(base) {
|
|
6048
|
+
return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
|
|
6049
|
+
},
|
|
6050
|
+
fromPartial(object) {
|
|
6051
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
6052
|
+
message.key = object.key ?? "";
|
|
6053
|
+
message.value = object.value ?? "";
|
|
5932
6054
|
return message;
|
|
5933
6055
|
}
|
|
5934
6056
|
};
|
|
@@ -6541,7 +6663,7 @@ var TerraformView = {
|
|
|
6541
6663
|
}
|
|
6542
6664
|
};
|
|
6543
6665
|
function createBaseProviderReqView() {
|
|
6544
|
-
return { name: "", source: "", version: "" };
|
|
6666
|
+
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
6545
6667
|
}
|
|
6546
6668
|
var ProviderReqView = {
|
|
6547
6669
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -6554,6 +6676,9 @@ var ProviderReqView = {
|
|
|
6554
6676
|
if (message.version !== "") {
|
|
6555
6677
|
writer.uint32(26).string(message.version);
|
|
6556
6678
|
}
|
|
6679
|
+
for (const v of message.configuration_aliases) {
|
|
6680
|
+
writer.uint32(34).string(v);
|
|
6681
|
+
}
|
|
6557
6682
|
return writer;
|
|
6558
6683
|
},
|
|
6559
6684
|
decode(input, length) {
|
|
@@ -6584,6 +6709,13 @@ var ProviderReqView = {
|
|
|
6584
6709
|
message.version = reader.string();
|
|
6585
6710
|
continue;
|
|
6586
6711
|
}
|
|
6712
|
+
case 4: {
|
|
6713
|
+
if (tag !== 34) {
|
|
6714
|
+
break;
|
|
6715
|
+
}
|
|
6716
|
+
message.configuration_aliases.push(reader.string());
|
|
6717
|
+
continue;
|
|
6718
|
+
}
|
|
6587
6719
|
}
|
|
6588
6720
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6589
6721
|
break;
|
|
@@ -6596,7 +6728,8 @@ var ProviderReqView = {
|
|
|
6596
6728
|
return {
|
|
6597
6729
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6598
6730
|
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
6599
|
-
version: isSet3(object.version) ? globalThis.String(object.version) : ""
|
|
6731
|
+
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
6732
|
+
configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
|
|
6600
6733
|
};
|
|
6601
6734
|
},
|
|
6602
6735
|
toJSON(message) {
|
|
@@ -6610,6 +6743,9 @@ var ProviderReqView = {
|
|
|
6610
6743
|
if (message.version !== "") {
|
|
6611
6744
|
obj.version = message.version;
|
|
6612
6745
|
}
|
|
6746
|
+
if (message.configuration_aliases?.length) {
|
|
6747
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
6748
|
+
}
|
|
6613
6749
|
return obj;
|
|
6614
6750
|
},
|
|
6615
6751
|
create(base) {
|
|
@@ -6620,6 +6756,7 @@ var ProviderReqView = {
|
|
|
6620
6756
|
message.name = object.name ?? "";
|
|
6621
6757
|
message.source = object.source ?? "";
|
|
6622
6758
|
message.version = object.version ?? "";
|
|
6759
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
6623
6760
|
return message;
|
|
6624
6761
|
}
|
|
6625
6762
|
};
|
|
@@ -6785,7 +6922,7 @@ var BackendView_ConfigEntry = {
|
|
|
6785
6922
|
}
|
|
6786
6923
|
};
|
|
6787
6924
|
function createBaseProviderView() {
|
|
6788
|
-
return { name: "", alias: "", config: {} };
|
|
6925
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
6789
6926
|
}
|
|
6790
6927
|
var ProviderView = {
|
|
6791
6928
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -6798,6 +6935,9 @@ var ProviderView = {
|
|
|
6798
6935
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
6799
6936
|
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6800
6937
|
});
|
|
6938
|
+
for (const v of message.blocks) {
|
|
6939
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
6940
|
+
}
|
|
6801
6941
|
return writer;
|
|
6802
6942
|
},
|
|
6803
6943
|
decode(input, length) {
|
|
@@ -6831,6 +6971,13 @@ var ProviderView = {
|
|
|
6831
6971
|
}
|
|
6832
6972
|
continue;
|
|
6833
6973
|
}
|
|
6974
|
+
case 4: {
|
|
6975
|
+
if (tag !== 34) {
|
|
6976
|
+
break;
|
|
6977
|
+
}
|
|
6978
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
6979
|
+
continue;
|
|
6980
|
+
}
|
|
6834
6981
|
}
|
|
6835
6982
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6836
6983
|
break;
|
|
@@ -6849,7 +6996,8 @@ var ProviderView = {
|
|
|
6849
6996
|
return acc;
|
|
6850
6997
|
},
|
|
6851
6998
|
{}
|
|
6852
|
-
) : {}
|
|
6999
|
+
) : {},
|
|
7000
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
6853
7001
|
};
|
|
6854
7002
|
},
|
|
6855
7003
|
toJSON(message) {
|
|
@@ -6869,6 +7017,9 @@ var ProviderView = {
|
|
|
6869
7017
|
});
|
|
6870
7018
|
}
|
|
6871
7019
|
}
|
|
7020
|
+
if (message.blocks?.length) {
|
|
7021
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
7022
|
+
}
|
|
6872
7023
|
return obj;
|
|
6873
7024
|
},
|
|
6874
7025
|
create(base) {
|
|
@@ -6887,6 +7038,7 @@ var ProviderView = {
|
|
|
6887
7038
|
},
|
|
6888
7039
|
{}
|
|
6889
7040
|
);
|
|
7041
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
6890
7042
|
return message;
|
|
6891
7043
|
}
|
|
6892
7044
|
};
|
|
@@ -7200,7 +7352,9 @@ function createBaseInputDef2() {
|
|
|
7200
7352
|
description: "",
|
|
7201
7353
|
default_value: void 0,
|
|
7202
7354
|
validation: [],
|
|
7203
|
-
ephemeral: void 0
|
|
7355
|
+
ephemeral: void 0,
|
|
7356
|
+
nullable: void 0,
|
|
7357
|
+
sensitive: false
|
|
7204
7358
|
};
|
|
7205
7359
|
}
|
|
7206
7360
|
var InputDef2 = {
|
|
@@ -7226,6 +7380,12 @@ var InputDef2 = {
|
|
|
7226
7380
|
if (message.ephemeral !== void 0) {
|
|
7227
7381
|
writer.uint32(56).bool(message.ephemeral);
|
|
7228
7382
|
}
|
|
7383
|
+
if (message.nullable !== void 0) {
|
|
7384
|
+
writer.uint32(64).bool(message.nullable);
|
|
7385
|
+
}
|
|
7386
|
+
if (message.sensitive !== false) {
|
|
7387
|
+
writer.uint32(72).bool(message.sensitive);
|
|
7388
|
+
}
|
|
7229
7389
|
return writer;
|
|
7230
7390
|
},
|
|
7231
7391
|
decode(input, length) {
|
|
@@ -7284,6 +7444,20 @@ var InputDef2 = {
|
|
|
7284
7444
|
message.ephemeral = reader.bool();
|
|
7285
7445
|
continue;
|
|
7286
7446
|
}
|
|
7447
|
+
case 8: {
|
|
7448
|
+
if (tag !== 64) {
|
|
7449
|
+
break;
|
|
7450
|
+
}
|
|
7451
|
+
message.nullable = reader.bool();
|
|
7452
|
+
continue;
|
|
7453
|
+
}
|
|
7454
|
+
case 9: {
|
|
7455
|
+
if (tag !== 72) {
|
|
7456
|
+
break;
|
|
7457
|
+
}
|
|
7458
|
+
message.sensitive = reader.bool();
|
|
7459
|
+
continue;
|
|
7460
|
+
}
|
|
7287
7461
|
}
|
|
7288
7462
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7289
7463
|
break;
|
|
@@ -7300,7 +7474,9 @@ var InputDef2 = {
|
|
|
7300
7474
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7301
7475
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
7302
7476
|
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
7303
|
-
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
7477
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
|
|
7478
|
+
nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
7479
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
7304
7480
|
};
|
|
7305
7481
|
},
|
|
7306
7482
|
toJSON(message) {
|
|
@@ -7326,6 +7502,12 @@ var InputDef2 = {
|
|
|
7326
7502
|
if (message.ephemeral !== void 0) {
|
|
7327
7503
|
obj.ephemeral = message.ephemeral;
|
|
7328
7504
|
}
|
|
7505
|
+
if (message.nullable !== void 0) {
|
|
7506
|
+
obj.nullable = message.nullable;
|
|
7507
|
+
}
|
|
7508
|
+
if (message.sensitive !== false) {
|
|
7509
|
+
obj.sensitive = message.sensitive;
|
|
7510
|
+
}
|
|
7329
7511
|
return obj;
|
|
7330
7512
|
},
|
|
7331
7513
|
create(base) {
|
|
@@ -7340,6 +7522,8 @@ var InputDef2 = {
|
|
|
7340
7522
|
message.default_value = object.default_value ?? void 0;
|
|
7341
7523
|
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
7342
7524
|
message.ephemeral = object.ephemeral ?? void 0;
|
|
7525
|
+
message.nullable = object.nullable ?? void 0;
|
|
7526
|
+
message.sensitive = object.sensitive ?? false;
|
|
7343
7527
|
return message;
|
|
7344
7528
|
}
|
|
7345
7529
|
};
|