@lace-cloud/host 0.8.0 → 0.9.1
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 +361 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +32 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.mjs +361 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -494,6 +494,19 @@ interface SetDependsOnAction {
|
|
|
494
494
|
depends_on: string[];
|
|
495
495
|
}
|
|
496
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>;
|
|
497
510
|
interface SetEnvironmentsAction {
|
|
498
511
|
environments: {
|
|
499
512
|
[key: string]: {
|
|
@@ -555,6 +568,7 @@ interface Action {
|
|
|
555
568
|
undo?: UndoAction | undefined;
|
|
556
569
|
redo?: RedoAction | undefined;
|
|
557
570
|
place_module?: PlaceModuleAction | undefined;
|
|
571
|
+
set_use_providers?: SetUseProvidersAction | undefined;
|
|
558
572
|
}
|
|
559
573
|
declare const Action: MessageFns<Action>;
|
|
560
574
|
interface ApplyActionRequest {
|
|
@@ -650,6 +664,13 @@ interface ProviderReqView {
|
|
|
650
664
|
name: string;
|
|
651
665
|
source: string;
|
|
652
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[];
|
|
653
674
|
}
|
|
654
675
|
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
655
676
|
interface BackendView {
|
|
@@ -665,6 +686,14 @@ interface ProviderView {
|
|
|
665
686
|
config: {
|
|
666
687
|
[key: string]: string;
|
|
667
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[];
|
|
668
697
|
}
|
|
669
698
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
670
699
|
interface Position {
|
|
@@ -681,6 +710,9 @@ interface InputDef {
|
|
|
681
710
|
validation: ValidationBlock[];
|
|
682
711
|
/** unset = default (false); explicit true is meaningful */
|
|
683
712
|
ephemeral?: boolean | undefined;
|
|
713
|
+
/** unset = default (true); explicit false is meaningful */
|
|
714
|
+
nullable?: boolean | undefined;
|
|
715
|
+
sensitive: boolean;
|
|
684
716
|
}
|
|
685
717
|
declare const InputDef: MessageFns<InputDef>;
|
|
686
718
|
interface ValidationBlock {
|
package/dist/index.d.ts
CHANGED
|
@@ -494,6 +494,19 @@ interface SetDependsOnAction {
|
|
|
494
494
|
depends_on: string[];
|
|
495
495
|
}
|
|
496
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>;
|
|
497
510
|
interface SetEnvironmentsAction {
|
|
498
511
|
environments: {
|
|
499
512
|
[key: string]: {
|
|
@@ -555,6 +568,7 @@ interface Action {
|
|
|
555
568
|
undo?: UndoAction | undefined;
|
|
556
569
|
redo?: RedoAction | undefined;
|
|
557
570
|
place_module?: PlaceModuleAction | undefined;
|
|
571
|
+
set_use_providers?: SetUseProvidersAction | undefined;
|
|
558
572
|
}
|
|
559
573
|
declare const Action: MessageFns<Action>;
|
|
560
574
|
interface ApplyActionRequest {
|
|
@@ -650,6 +664,13 @@ interface ProviderReqView {
|
|
|
650
664
|
name: string;
|
|
651
665
|
source: string;
|
|
652
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[];
|
|
653
674
|
}
|
|
654
675
|
declare const ProviderReqView: MessageFns<ProviderReqView>;
|
|
655
676
|
interface BackendView {
|
|
@@ -665,6 +686,14 @@ interface ProviderView {
|
|
|
665
686
|
config: {
|
|
666
687
|
[key: string]: string;
|
|
667
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[];
|
|
668
697
|
}
|
|
669
698
|
declare const ProviderView: MessageFns<ProviderView>;
|
|
670
699
|
interface Position {
|
|
@@ -681,6 +710,9 @@ interface InputDef {
|
|
|
681
710
|
validation: ValidationBlock[];
|
|
682
711
|
/** unset = default (false); explicit true is meaningful */
|
|
683
712
|
ephemeral?: boolean | undefined;
|
|
713
|
+
/** unset = default (true); explicit false is meaningful */
|
|
714
|
+
nullable?: boolean | undefined;
|
|
715
|
+
sensitive: boolean;
|
|
684
716
|
}
|
|
685
717
|
declare const InputDef: MessageFns<InputDef>;
|
|
686
718
|
interface ValidationBlock {
|
package/dist/index.mjs
CHANGED
|
@@ -9280,6 +9280,165 @@ var SetDependsOnAction = {
|
|
|
9280
9280
|
return message;
|
|
9281
9281
|
}
|
|
9282
9282
|
};
|
|
9283
|
+
function createBaseSetUseProvidersAction() {
|
|
9284
|
+
return { instance_id: "", providers: {} };
|
|
9285
|
+
}
|
|
9286
|
+
var SetUseProvidersAction = {
|
|
9287
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
9288
|
+
if (message.instance_id !== "") {
|
|
9289
|
+
writer.uint32(10).string(message.instance_id);
|
|
9290
|
+
}
|
|
9291
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
9292
|
+
SetUseProvidersAction_ProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
9293
|
+
});
|
|
9294
|
+
return writer;
|
|
9295
|
+
},
|
|
9296
|
+
decode(input, length) {
|
|
9297
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9298
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9299
|
+
const message = createBaseSetUseProvidersAction();
|
|
9300
|
+
while (reader.pos < end) {
|
|
9301
|
+
const tag = reader.uint32();
|
|
9302
|
+
switch (tag >>> 3) {
|
|
9303
|
+
case 1: {
|
|
9304
|
+
if (tag !== 10) {
|
|
9305
|
+
break;
|
|
9306
|
+
}
|
|
9307
|
+
message.instance_id = reader.string();
|
|
9308
|
+
continue;
|
|
9309
|
+
}
|
|
9310
|
+
case 2: {
|
|
9311
|
+
if (tag !== 18) {
|
|
9312
|
+
break;
|
|
9313
|
+
}
|
|
9314
|
+
const entry2 = SetUseProvidersAction_ProvidersEntry.decode(reader, reader.uint32());
|
|
9315
|
+
if (entry2.value !== void 0) {
|
|
9316
|
+
message.providers[entry2.key] = entry2.value;
|
|
9317
|
+
}
|
|
9318
|
+
continue;
|
|
9319
|
+
}
|
|
9320
|
+
}
|
|
9321
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9322
|
+
break;
|
|
9323
|
+
}
|
|
9324
|
+
reader.skip(tag & 7);
|
|
9325
|
+
}
|
|
9326
|
+
return message;
|
|
9327
|
+
},
|
|
9328
|
+
fromJSON(object) {
|
|
9329
|
+
return {
|
|
9330
|
+
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
9331
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
9332
|
+
(acc, [key, value]) => {
|
|
9333
|
+
acc[key] = globalThis.String(value);
|
|
9334
|
+
return acc;
|
|
9335
|
+
},
|
|
9336
|
+
{}
|
|
9337
|
+
) : {}
|
|
9338
|
+
};
|
|
9339
|
+
},
|
|
9340
|
+
toJSON(message) {
|
|
9341
|
+
const obj = {};
|
|
9342
|
+
if (message.instance_id !== "") {
|
|
9343
|
+
obj.instanceId = message.instance_id;
|
|
9344
|
+
}
|
|
9345
|
+
if (message.providers) {
|
|
9346
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
9347
|
+
if (entries.length > 0) {
|
|
9348
|
+
obj.providers = {};
|
|
9349
|
+
entries.forEach(([k, v]) => {
|
|
9350
|
+
obj.providers[k] = v;
|
|
9351
|
+
});
|
|
9352
|
+
}
|
|
9353
|
+
}
|
|
9354
|
+
return obj;
|
|
9355
|
+
},
|
|
9356
|
+
create(base) {
|
|
9357
|
+
return SetUseProvidersAction.fromPartial(base ?? {});
|
|
9358
|
+
},
|
|
9359
|
+
fromPartial(object) {
|
|
9360
|
+
const message = createBaseSetUseProvidersAction();
|
|
9361
|
+
message.instance_id = object.instance_id ?? "";
|
|
9362
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
9363
|
+
(acc, [key, value]) => {
|
|
9364
|
+
if (value !== void 0) {
|
|
9365
|
+
acc[key] = globalThis.String(value);
|
|
9366
|
+
}
|
|
9367
|
+
return acc;
|
|
9368
|
+
},
|
|
9369
|
+
{}
|
|
9370
|
+
);
|
|
9371
|
+
return message;
|
|
9372
|
+
}
|
|
9373
|
+
};
|
|
9374
|
+
function createBaseSetUseProvidersAction_ProvidersEntry() {
|
|
9375
|
+
return { key: "", value: "" };
|
|
9376
|
+
}
|
|
9377
|
+
var SetUseProvidersAction_ProvidersEntry = {
|
|
9378
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
9379
|
+
if (message.key !== "") {
|
|
9380
|
+
writer.uint32(10).string(message.key);
|
|
9381
|
+
}
|
|
9382
|
+
if (message.value !== "") {
|
|
9383
|
+
writer.uint32(18).string(message.value);
|
|
9384
|
+
}
|
|
9385
|
+
return writer;
|
|
9386
|
+
},
|
|
9387
|
+
decode(input, length) {
|
|
9388
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9389
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9390
|
+
const message = createBaseSetUseProvidersAction_ProvidersEntry();
|
|
9391
|
+
while (reader.pos < end) {
|
|
9392
|
+
const tag = reader.uint32();
|
|
9393
|
+
switch (tag >>> 3) {
|
|
9394
|
+
case 1: {
|
|
9395
|
+
if (tag !== 10) {
|
|
9396
|
+
break;
|
|
9397
|
+
}
|
|
9398
|
+
message.key = reader.string();
|
|
9399
|
+
continue;
|
|
9400
|
+
}
|
|
9401
|
+
case 2: {
|
|
9402
|
+
if (tag !== 18) {
|
|
9403
|
+
break;
|
|
9404
|
+
}
|
|
9405
|
+
message.value = reader.string();
|
|
9406
|
+
continue;
|
|
9407
|
+
}
|
|
9408
|
+
}
|
|
9409
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9410
|
+
break;
|
|
9411
|
+
}
|
|
9412
|
+
reader.skip(tag & 7);
|
|
9413
|
+
}
|
|
9414
|
+
return message;
|
|
9415
|
+
},
|
|
9416
|
+
fromJSON(object) {
|
|
9417
|
+
return {
|
|
9418
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
9419
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
9420
|
+
};
|
|
9421
|
+
},
|
|
9422
|
+
toJSON(message) {
|
|
9423
|
+
const obj = {};
|
|
9424
|
+
if (message.key !== "") {
|
|
9425
|
+
obj.key = message.key;
|
|
9426
|
+
}
|
|
9427
|
+
if (message.value !== "") {
|
|
9428
|
+
obj.value = message.value;
|
|
9429
|
+
}
|
|
9430
|
+
return obj;
|
|
9431
|
+
},
|
|
9432
|
+
create(base) {
|
|
9433
|
+
return SetUseProvidersAction_ProvidersEntry.fromPartial(base ?? {});
|
|
9434
|
+
},
|
|
9435
|
+
fromPartial(object) {
|
|
9436
|
+
const message = createBaseSetUseProvidersAction_ProvidersEntry();
|
|
9437
|
+
message.key = object.key ?? "";
|
|
9438
|
+
message.value = object.value ?? "";
|
|
9439
|
+
return message;
|
|
9440
|
+
}
|
|
9441
|
+
};
|
|
9283
9442
|
function createBaseSetEnvironmentsAction() {
|
|
9284
9443
|
return { environments: {}, environment_backends: {} };
|
|
9285
9444
|
}
|
|
@@ -9750,7 +9909,8 @@ function createBaseAction() {
|
|
|
9750
9909
|
set_environments: void 0,
|
|
9751
9910
|
undo: void 0,
|
|
9752
9911
|
redo: void 0,
|
|
9753
|
-
place_module: void 0
|
|
9912
|
+
place_module: void 0,
|
|
9913
|
+
set_use_providers: void 0
|
|
9754
9914
|
};
|
|
9755
9915
|
}
|
|
9756
9916
|
var Action = {
|
|
@@ -9821,6 +9981,9 @@ var Action = {
|
|
|
9821
9981
|
if (message.place_module !== void 0) {
|
|
9822
9982
|
PlaceModuleAction.encode(message.place_module, writer.uint32(178).fork()).join();
|
|
9823
9983
|
}
|
|
9984
|
+
if (message.set_use_providers !== void 0) {
|
|
9985
|
+
SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
|
|
9986
|
+
}
|
|
9824
9987
|
return writer;
|
|
9825
9988
|
},
|
|
9826
9989
|
decode(input, length) {
|
|
@@ -9984,6 +10147,13 @@ var Action = {
|
|
|
9984
10147
|
message.place_module = PlaceModuleAction.decode(reader, reader.uint32());
|
|
9985
10148
|
continue;
|
|
9986
10149
|
}
|
|
10150
|
+
case 23: {
|
|
10151
|
+
if (tag !== 186) {
|
|
10152
|
+
break;
|
|
10153
|
+
}
|
|
10154
|
+
message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
|
|
10155
|
+
continue;
|
|
10156
|
+
}
|
|
9987
10157
|
}
|
|
9988
10158
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9989
10159
|
break;
|
|
@@ -10015,7 +10185,8 @@ var Action = {
|
|
|
10015
10185
|
set_environments: isSet3(object.setEnvironments) ? SetEnvironmentsAction.fromJSON(object.setEnvironments) : isSet3(object.set_environments) ? SetEnvironmentsAction.fromJSON(object.set_environments) : void 0,
|
|
10016
10186
|
undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
|
|
10017
10187
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
10018
|
-
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0
|
|
10188
|
+
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
|
|
10189
|
+
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0
|
|
10019
10190
|
};
|
|
10020
10191
|
},
|
|
10021
10192
|
toJSON(message) {
|
|
@@ -10086,6 +10257,9 @@ var Action = {
|
|
|
10086
10257
|
if (message.place_module !== void 0) {
|
|
10087
10258
|
obj.placeModule = PlaceModuleAction.toJSON(message.place_module);
|
|
10088
10259
|
}
|
|
10260
|
+
if (message.set_use_providers !== void 0) {
|
|
10261
|
+
obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
|
|
10262
|
+
}
|
|
10089
10263
|
return obj;
|
|
10090
10264
|
},
|
|
10091
10265
|
create(base) {
|
|
@@ -10115,6 +10289,7 @@ var Action = {
|
|
|
10115
10289
|
message.undo = object.undo !== void 0 && object.undo !== null ? UndoAction.fromPartial(object.undo) : void 0;
|
|
10116
10290
|
message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
|
|
10117
10291
|
message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
|
|
10292
|
+
message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
|
|
10118
10293
|
return message;
|
|
10119
10294
|
}
|
|
10120
10295
|
};
|
|
@@ -11872,7 +12047,15 @@ var RenderOutput = {
|
|
|
11872
12047
|
}
|
|
11873
12048
|
};
|
|
11874
12049
|
function createBaseNodeConfig() {
|
|
11875
|
-
return {
|
|
12050
|
+
return {
|
|
12051
|
+
instance_id: "",
|
|
12052
|
+
inputs: [],
|
|
12053
|
+
outputs: [],
|
|
12054
|
+
sibling_ids: [],
|
|
12055
|
+
depends_on: [],
|
|
12056
|
+
available_variables: [],
|
|
12057
|
+
providers: {}
|
|
12058
|
+
};
|
|
11876
12059
|
}
|
|
11877
12060
|
var NodeConfig = {
|
|
11878
12061
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -11894,6 +12077,9 @@ var NodeConfig = {
|
|
|
11894
12077
|
for (const v of message.available_variables) {
|
|
11895
12078
|
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
11896
12079
|
}
|
|
12080
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
12081
|
+
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
12082
|
+
});
|
|
11897
12083
|
return writer;
|
|
11898
12084
|
},
|
|
11899
12085
|
decode(input, length) {
|
|
@@ -11945,6 +12131,16 @@ var NodeConfig = {
|
|
|
11945
12131
|
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
11946
12132
|
continue;
|
|
11947
12133
|
}
|
|
12134
|
+
case 7: {
|
|
12135
|
+
if (tag !== 58) {
|
|
12136
|
+
break;
|
|
12137
|
+
}
|
|
12138
|
+
const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
|
|
12139
|
+
if (entry7.value !== void 0) {
|
|
12140
|
+
message.providers[entry7.key] = entry7.value;
|
|
12141
|
+
}
|
|
12142
|
+
continue;
|
|
12143
|
+
}
|
|
11948
12144
|
}
|
|
11949
12145
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11950
12146
|
break;
|
|
@@ -11960,7 +12156,14 @@ var NodeConfig = {
|
|
|
11960
12156
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
11961
12157
|
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)) : [],
|
|
11962
12158
|
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)) : [],
|
|
11963
|
-
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)) : []
|
|
12159
|
+
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)) : [],
|
|
12160
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
12161
|
+
(acc, [key, value]) => {
|
|
12162
|
+
acc[key] = globalThis.String(value);
|
|
12163
|
+
return acc;
|
|
12164
|
+
},
|
|
12165
|
+
{}
|
|
12166
|
+
) : {}
|
|
11964
12167
|
};
|
|
11965
12168
|
},
|
|
11966
12169
|
toJSON(message) {
|
|
@@ -11983,6 +12186,15 @@ var NodeConfig = {
|
|
|
11983
12186
|
if (message.available_variables?.length) {
|
|
11984
12187
|
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
11985
12188
|
}
|
|
12189
|
+
if (message.providers) {
|
|
12190
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
12191
|
+
if (entries.length > 0) {
|
|
12192
|
+
obj.providers = {};
|
|
12193
|
+
entries.forEach(([k, v]) => {
|
|
12194
|
+
obj.providers[k] = v;
|
|
12195
|
+
});
|
|
12196
|
+
}
|
|
12197
|
+
}
|
|
11986
12198
|
return obj;
|
|
11987
12199
|
},
|
|
11988
12200
|
create(base) {
|
|
@@ -11996,6 +12208,83 @@ var NodeConfig = {
|
|
|
11996
12208
|
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
11997
12209
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
11998
12210
|
message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
|
|
12211
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
12212
|
+
(acc, [key, value]) => {
|
|
12213
|
+
if (value !== void 0) {
|
|
12214
|
+
acc[key] = globalThis.String(value);
|
|
12215
|
+
}
|
|
12216
|
+
return acc;
|
|
12217
|
+
},
|
|
12218
|
+
{}
|
|
12219
|
+
);
|
|
12220
|
+
return message;
|
|
12221
|
+
}
|
|
12222
|
+
};
|
|
12223
|
+
function createBaseNodeConfig_ProvidersEntry() {
|
|
12224
|
+
return { key: "", value: "" };
|
|
12225
|
+
}
|
|
12226
|
+
var NodeConfig_ProvidersEntry = {
|
|
12227
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
12228
|
+
if (message.key !== "") {
|
|
12229
|
+
writer.uint32(10).string(message.key);
|
|
12230
|
+
}
|
|
12231
|
+
if (message.value !== "") {
|
|
12232
|
+
writer.uint32(18).string(message.value);
|
|
12233
|
+
}
|
|
12234
|
+
return writer;
|
|
12235
|
+
},
|
|
12236
|
+
decode(input, length) {
|
|
12237
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
12238
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12239
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
12240
|
+
while (reader.pos < end) {
|
|
12241
|
+
const tag = reader.uint32();
|
|
12242
|
+
switch (tag >>> 3) {
|
|
12243
|
+
case 1: {
|
|
12244
|
+
if (tag !== 10) {
|
|
12245
|
+
break;
|
|
12246
|
+
}
|
|
12247
|
+
message.key = reader.string();
|
|
12248
|
+
continue;
|
|
12249
|
+
}
|
|
12250
|
+
case 2: {
|
|
12251
|
+
if (tag !== 18) {
|
|
12252
|
+
break;
|
|
12253
|
+
}
|
|
12254
|
+
message.value = reader.string();
|
|
12255
|
+
continue;
|
|
12256
|
+
}
|
|
12257
|
+
}
|
|
12258
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12259
|
+
break;
|
|
12260
|
+
}
|
|
12261
|
+
reader.skip(tag & 7);
|
|
12262
|
+
}
|
|
12263
|
+
return message;
|
|
12264
|
+
},
|
|
12265
|
+
fromJSON(object) {
|
|
12266
|
+
return {
|
|
12267
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
12268
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
12269
|
+
};
|
|
12270
|
+
},
|
|
12271
|
+
toJSON(message) {
|
|
12272
|
+
const obj = {};
|
|
12273
|
+
if (message.key !== "") {
|
|
12274
|
+
obj.key = message.key;
|
|
12275
|
+
}
|
|
12276
|
+
if (message.value !== "") {
|
|
12277
|
+
obj.value = message.value;
|
|
12278
|
+
}
|
|
12279
|
+
return obj;
|
|
12280
|
+
},
|
|
12281
|
+
create(base) {
|
|
12282
|
+
return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
|
|
12283
|
+
},
|
|
12284
|
+
fromPartial(object) {
|
|
12285
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
12286
|
+
message.key = object.key ?? "";
|
|
12287
|
+
message.value = object.value ?? "";
|
|
11999
12288
|
return message;
|
|
12000
12289
|
}
|
|
12001
12290
|
};
|
|
@@ -12608,7 +12897,7 @@ var TerraformView = {
|
|
|
12608
12897
|
}
|
|
12609
12898
|
};
|
|
12610
12899
|
function createBaseProviderReqView() {
|
|
12611
|
-
return { name: "", source: "", version: "" };
|
|
12900
|
+
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
12612
12901
|
}
|
|
12613
12902
|
var ProviderReqView = {
|
|
12614
12903
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -12621,6 +12910,9 @@ var ProviderReqView = {
|
|
|
12621
12910
|
if (message.version !== "") {
|
|
12622
12911
|
writer.uint32(26).string(message.version);
|
|
12623
12912
|
}
|
|
12913
|
+
for (const v of message.configuration_aliases) {
|
|
12914
|
+
writer.uint32(34).string(v);
|
|
12915
|
+
}
|
|
12624
12916
|
return writer;
|
|
12625
12917
|
},
|
|
12626
12918
|
decode(input, length) {
|
|
@@ -12651,6 +12943,13 @@ var ProviderReqView = {
|
|
|
12651
12943
|
message.version = reader.string();
|
|
12652
12944
|
continue;
|
|
12653
12945
|
}
|
|
12946
|
+
case 4: {
|
|
12947
|
+
if (tag !== 34) {
|
|
12948
|
+
break;
|
|
12949
|
+
}
|
|
12950
|
+
message.configuration_aliases.push(reader.string());
|
|
12951
|
+
continue;
|
|
12952
|
+
}
|
|
12654
12953
|
}
|
|
12655
12954
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12656
12955
|
break;
|
|
@@ -12663,7 +12962,8 @@ var ProviderReqView = {
|
|
|
12663
12962
|
return {
|
|
12664
12963
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
12665
12964
|
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
12666
|
-
version: isSet3(object.version) ? globalThis.String(object.version) : ""
|
|
12965
|
+
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
12966
|
+
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)) : []
|
|
12667
12967
|
};
|
|
12668
12968
|
},
|
|
12669
12969
|
toJSON(message) {
|
|
@@ -12677,6 +12977,9 @@ var ProviderReqView = {
|
|
|
12677
12977
|
if (message.version !== "") {
|
|
12678
12978
|
obj.version = message.version;
|
|
12679
12979
|
}
|
|
12980
|
+
if (message.configuration_aliases?.length) {
|
|
12981
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
12982
|
+
}
|
|
12680
12983
|
return obj;
|
|
12681
12984
|
},
|
|
12682
12985
|
create(base) {
|
|
@@ -12687,6 +12990,7 @@ var ProviderReqView = {
|
|
|
12687
12990
|
message.name = object.name ?? "";
|
|
12688
12991
|
message.source = object.source ?? "";
|
|
12689
12992
|
message.version = object.version ?? "";
|
|
12993
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
12690
12994
|
return message;
|
|
12691
12995
|
}
|
|
12692
12996
|
};
|
|
@@ -12852,7 +13156,7 @@ var BackendView_ConfigEntry = {
|
|
|
12852
13156
|
}
|
|
12853
13157
|
};
|
|
12854
13158
|
function createBaseProviderView() {
|
|
12855
|
-
return { name: "", alias: "", config: {} };
|
|
13159
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
12856
13160
|
}
|
|
12857
13161
|
var ProviderView = {
|
|
12858
13162
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -12865,6 +13169,9 @@ var ProviderView = {
|
|
|
12865
13169
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
12866
13170
|
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
12867
13171
|
});
|
|
13172
|
+
for (const v of message.blocks) {
|
|
13173
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
13174
|
+
}
|
|
12868
13175
|
return writer;
|
|
12869
13176
|
},
|
|
12870
13177
|
decode(input, length) {
|
|
@@ -12898,6 +13205,13 @@ var ProviderView = {
|
|
|
12898
13205
|
}
|
|
12899
13206
|
continue;
|
|
12900
13207
|
}
|
|
13208
|
+
case 4: {
|
|
13209
|
+
if (tag !== 34) {
|
|
13210
|
+
break;
|
|
13211
|
+
}
|
|
13212
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
13213
|
+
continue;
|
|
13214
|
+
}
|
|
12901
13215
|
}
|
|
12902
13216
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12903
13217
|
break;
|
|
@@ -12916,7 +13230,8 @@ var ProviderView = {
|
|
|
12916
13230
|
return acc;
|
|
12917
13231
|
},
|
|
12918
13232
|
{}
|
|
12919
|
-
) : {}
|
|
13233
|
+
) : {},
|
|
13234
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
12920
13235
|
};
|
|
12921
13236
|
},
|
|
12922
13237
|
toJSON(message) {
|
|
@@ -12936,6 +13251,9 @@ var ProviderView = {
|
|
|
12936
13251
|
});
|
|
12937
13252
|
}
|
|
12938
13253
|
}
|
|
13254
|
+
if (message.blocks?.length) {
|
|
13255
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
13256
|
+
}
|
|
12939
13257
|
return obj;
|
|
12940
13258
|
},
|
|
12941
13259
|
create(base) {
|
|
@@ -12954,6 +13272,7 @@ var ProviderView = {
|
|
|
12954
13272
|
},
|
|
12955
13273
|
{}
|
|
12956
13274
|
);
|
|
13275
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
12957
13276
|
return message;
|
|
12958
13277
|
}
|
|
12959
13278
|
};
|
|
@@ -13267,7 +13586,9 @@ function createBaseInputDef2() {
|
|
|
13267
13586
|
description: "",
|
|
13268
13587
|
default_value: void 0,
|
|
13269
13588
|
validation: [],
|
|
13270
|
-
ephemeral: void 0
|
|
13589
|
+
ephemeral: void 0,
|
|
13590
|
+
nullable: void 0,
|
|
13591
|
+
sensitive: false
|
|
13271
13592
|
};
|
|
13272
13593
|
}
|
|
13273
13594
|
var InputDef2 = {
|
|
@@ -13293,6 +13614,12 @@ var InputDef2 = {
|
|
|
13293
13614
|
if (message.ephemeral !== void 0) {
|
|
13294
13615
|
writer.uint32(56).bool(message.ephemeral);
|
|
13295
13616
|
}
|
|
13617
|
+
if (message.nullable !== void 0) {
|
|
13618
|
+
writer.uint32(64).bool(message.nullable);
|
|
13619
|
+
}
|
|
13620
|
+
if (message.sensitive !== false) {
|
|
13621
|
+
writer.uint32(72).bool(message.sensitive);
|
|
13622
|
+
}
|
|
13296
13623
|
return writer;
|
|
13297
13624
|
},
|
|
13298
13625
|
decode(input, length) {
|
|
@@ -13351,6 +13678,20 @@ var InputDef2 = {
|
|
|
13351
13678
|
message.ephemeral = reader.bool();
|
|
13352
13679
|
continue;
|
|
13353
13680
|
}
|
|
13681
|
+
case 8: {
|
|
13682
|
+
if (tag !== 64) {
|
|
13683
|
+
break;
|
|
13684
|
+
}
|
|
13685
|
+
message.nullable = reader.bool();
|
|
13686
|
+
continue;
|
|
13687
|
+
}
|
|
13688
|
+
case 9: {
|
|
13689
|
+
if (tag !== 72) {
|
|
13690
|
+
break;
|
|
13691
|
+
}
|
|
13692
|
+
message.sensitive = reader.bool();
|
|
13693
|
+
continue;
|
|
13694
|
+
}
|
|
13354
13695
|
}
|
|
13355
13696
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13356
13697
|
break;
|
|
@@ -13367,7 +13708,9 @@ var InputDef2 = {
|
|
|
13367
13708
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
13368
13709
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
13369
13710
|
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
13370
|
-
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
13711
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
|
|
13712
|
+
nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
13713
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
13371
13714
|
};
|
|
13372
13715
|
},
|
|
13373
13716
|
toJSON(message) {
|
|
@@ -13393,6 +13736,12 @@ var InputDef2 = {
|
|
|
13393
13736
|
if (message.ephemeral !== void 0) {
|
|
13394
13737
|
obj.ephemeral = message.ephemeral;
|
|
13395
13738
|
}
|
|
13739
|
+
if (message.nullable !== void 0) {
|
|
13740
|
+
obj.nullable = message.nullable;
|
|
13741
|
+
}
|
|
13742
|
+
if (message.sensitive !== false) {
|
|
13743
|
+
obj.sensitive = message.sensitive;
|
|
13744
|
+
}
|
|
13396
13745
|
return obj;
|
|
13397
13746
|
},
|
|
13398
13747
|
create(base) {
|
|
@@ -13407,6 +13756,8 @@ var InputDef2 = {
|
|
|
13407
13756
|
message.default_value = object.default_value ?? void 0;
|
|
13408
13757
|
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
13409
13758
|
message.ephemeral = object.ephemeral ?? void 0;
|
|
13759
|
+
message.nullable = object.nullable ?? void 0;
|
|
13760
|
+
message.sensitive = object.sensitive ?? false;
|
|
13410
13761
|
return message;
|
|
13411
13762
|
}
|
|
13412
13763
|
};
|