@lace-cloud/proto 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 +370 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +54 -9
- package/dist/index.d.ts +54 -9
- package/dist/index.mjs +370 -82
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -190,6 +190,7 @@ function convertNodeConfig(proto) {
|
|
|
190
190
|
})),
|
|
191
191
|
sibling_ids: proto.sibling_ids,
|
|
192
192
|
depends_on: proto.depends_on,
|
|
193
|
+
providers: proto.providers ?? {},
|
|
193
194
|
available_variables: proto.available_variables.map((v) => ({ name: v.name, type: v.type }))
|
|
194
195
|
};
|
|
195
196
|
}
|
|
@@ -213,13 +214,15 @@ function convertSettingsConfig(proto) {
|
|
|
213
214
|
required_providers: (proto.terraform?.required_providers ?? []).map((p) => ({
|
|
214
215
|
name: p.name,
|
|
215
216
|
source: p.source,
|
|
216
|
-
version: p.version
|
|
217
|
+
version: p.version,
|
|
218
|
+
configuration_aliases: p.configuration_aliases && p.configuration_aliases.length > 0 ? p.configuration_aliases : void 0
|
|
217
219
|
}))
|
|
218
220
|
},
|
|
219
221
|
providers: proto.providers.map((p) => ({
|
|
220
222
|
name: p.name,
|
|
221
223
|
alias: p.alias,
|
|
222
|
-
config: p.config ?? {}
|
|
224
|
+
config: p.config ?? {},
|
|
225
|
+
blocks: p.blocks && p.blocks.length > 0 ? p.blocks : void 0
|
|
223
226
|
})),
|
|
224
227
|
locals: proto.locals.map((l) => ({
|
|
225
228
|
name: l.name,
|
|
@@ -232,7 +235,11 @@ function convertSettingsConfig(proto) {
|
|
|
232
235
|
type: v.type,
|
|
233
236
|
required: v.required,
|
|
234
237
|
description: v.description || void 0,
|
|
235
|
-
default_value: v.default_value
|
|
238
|
+
default_value: v.default_value,
|
|
239
|
+
validation: v.validation && v.validation.length > 0 ? v.validation.map((b) => ({ condition: b.condition, error_message: b.error_message })) : void 0,
|
|
240
|
+
ephemeral: v.ephemeral,
|
|
241
|
+
sensitive: v.sensitive,
|
|
242
|
+
nullable: v.nullable
|
|
236
243
|
})),
|
|
237
244
|
exports: (proto.exports ?? []).map((e) => ({
|
|
238
245
|
name: e.name,
|
|
@@ -243,7 +250,8 @@ function convertSettingsConfig(proto) {
|
|
|
243
250
|
name: d.name,
|
|
244
251
|
type: d.type,
|
|
245
252
|
description: d.description || void 0,
|
|
246
|
-
sensitive: d.sensitive
|
|
253
|
+
sensitive: d.sensitive,
|
|
254
|
+
depends_on: d.depends_on && d.depends_on.length > 0 ? d.depends_on : void 0
|
|
247
255
|
}))
|
|
248
256
|
};
|
|
249
257
|
}
|
|
@@ -1388,9 +1396,10 @@ function createBaseInputDef() {
|
|
|
1388
1396
|
required: false,
|
|
1389
1397
|
description: "",
|
|
1390
1398
|
default_value: void 0,
|
|
1391
|
-
validation:
|
|
1399
|
+
validation: [],
|
|
1392
1400
|
sensitive: false,
|
|
1393
|
-
nullable: void 0
|
|
1401
|
+
nullable: void 0,
|
|
1402
|
+
ephemeral: void 0
|
|
1394
1403
|
};
|
|
1395
1404
|
}
|
|
1396
1405
|
var InputDef = {
|
|
@@ -1410,8 +1419,8 @@ var InputDef = {
|
|
|
1410
1419
|
if (message.default_value !== void 0) {
|
|
1411
1420
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
1412
1421
|
}
|
|
1413
|
-
|
|
1414
|
-
ValidationBlock.encode(
|
|
1422
|
+
for (const v of message.validation) {
|
|
1423
|
+
ValidationBlock.encode(v, writer.uint32(50).fork()).join();
|
|
1415
1424
|
}
|
|
1416
1425
|
if (message.sensitive !== false) {
|
|
1417
1426
|
writer.uint32(56).bool(message.sensitive);
|
|
@@ -1419,6 +1428,9 @@ var InputDef = {
|
|
|
1419
1428
|
if (message.nullable !== void 0) {
|
|
1420
1429
|
writer.uint32(64).bool(message.nullable);
|
|
1421
1430
|
}
|
|
1431
|
+
if (message.ephemeral !== void 0) {
|
|
1432
|
+
writer.uint32(72).bool(message.ephemeral);
|
|
1433
|
+
}
|
|
1422
1434
|
return writer;
|
|
1423
1435
|
},
|
|
1424
1436
|
decode(input, length) {
|
|
@@ -1467,7 +1479,7 @@ var InputDef = {
|
|
|
1467
1479
|
if (tag !== 50) {
|
|
1468
1480
|
break;
|
|
1469
1481
|
}
|
|
1470
|
-
message.validation
|
|
1482
|
+
message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
|
|
1471
1483
|
continue;
|
|
1472
1484
|
}
|
|
1473
1485
|
case 7: {
|
|
@@ -1484,6 +1496,13 @@ var InputDef = {
|
|
|
1484
1496
|
message.nullable = reader.bool();
|
|
1485
1497
|
continue;
|
|
1486
1498
|
}
|
|
1499
|
+
case 9: {
|
|
1500
|
+
if (tag !== 72) {
|
|
1501
|
+
break;
|
|
1502
|
+
}
|
|
1503
|
+
message.ephemeral = reader.bool();
|
|
1504
|
+
continue;
|
|
1505
|
+
}
|
|
1487
1506
|
}
|
|
1488
1507
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1489
1508
|
break;
|
|
@@ -1499,9 +1518,10 @@ var InputDef = {
|
|
|
1499
1518
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1500
1519
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1501
1520
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1502
|
-
validation:
|
|
1521
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
|
|
1503
1522
|
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1504
|
-
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1523
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
1524
|
+
ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
1505
1525
|
};
|
|
1506
1526
|
},
|
|
1507
1527
|
toJSON(message) {
|
|
@@ -1521,8 +1541,8 @@ var InputDef = {
|
|
|
1521
1541
|
if (message.default_value !== void 0) {
|
|
1522
1542
|
obj.defaultValue = message.default_value;
|
|
1523
1543
|
}
|
|
1524
|
-
if (message.validation
|
|
1525
|
-
obj.validation = ValidationBlock.toJSON(
|
|
1544
|
+
if (message.validation?.length) {
|
|
1545
|
+
obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
|
|
1526
1546
|
}
|
|
1527
1547
|
if (message.sensitive !== false) {
|
|
1528
1548
|
obj.sensitive = message.sensitive;
|
|
@@ -1530,6 +1550,9 @@ var InputDef = {
|
|
|
1530
1550
|
if (message.nullable !== void 0) {
|
|
1531
1551
|
obj.nullable = message.nullable;
|
|
1532
1552
|
}
|
|
1553
|
+
if (message.ephemeral !== void 0) {
|
|
1554
|
+
obj.ephemeral = message.ephemeral;
|
|
1555
|
+
}
|
|
1533
1556
|
return obj;
|
|
1534
1557
|
},
|
|
1535
1558
|
create(base) {
|
|
@@ -1542,9 +1565,10 @@ var InputDef = {
|
|
|
1542
1565
|
message.required = object.required ?? false;
|
|
1543
1566
|
message.description = object.description ?? "";
|
|
1544
1567
|
message.default_value = object.default_value ?? void 0;
|
|
1545
|
-
message.validation = object.validation
|
|
1568
|
+
message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
|
|
1546
1569
|
message.sensitive = object.sensitive ?? false;
|
|
1547
1570
|
message.nullable = object.nullable ?? void 0;
|
|
1571
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
1548
1572
|
return message;
|
|
1549
1573
|
}
|
|
1550
1574
|
};
|
|
@@ -1617,7 +1641,7 @@ var ValidationBlock = {
|
|
|
1617
1641
|
}
|
|
1618
1642
|
};
|
|
1619
1643
|
function createBaseOutputDef() {
|
|
1620
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
1644
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
1621
1645
|
}
|
|
1622
1646
|
var OutputDef = {
|
|
1623
1647
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -1633,6 +1657,9 @@ var OutputDef = {
|
|
|
1633
1657
|
if (message.sensitive !== false) {
|
|
1634
1658
|
writer.uint32(32).bool(message.sensitive);
|
|
1635
1659
|
}
|
|
1660
|
+
for (const v of message.depends_on) {
|
|
1661
|
+
writer.uint32(42).string(v);
|
|
1662
|
+
}
|
|
1636
1663
|
return writer;
|
|
1637
1664
|
},
|
|
1638
1665
|
decode(input, length) {
|
|
@@ -1670,6 +1697,13 @@ var OutputDef = {
|
|
|
1670
1697
|
message.sensitive = reader.bool();
|
|
1671
1698
|
continue;
|
|
1672
1699
|
}
|
|
1700
|
+
case 5: {
|
|
1701
|
+
if (tag !== 42) {
|
|
1702
|
+
break;
|
|
1703
|
+
}
|
|
1704
|
+
message.depends_on.push(reader.string());
|
|
1705
|
+
continue;
|
|
1706
|
+
}
|
|
1673
1707
|
}
|
|
1674
1708
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1675
1709
|
break;
|
|
@@ -1683,7 +1717,8 @@ var OutputDef = {
|
|
|
1683
1717
|
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
1684
1718
|
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
1685
1719
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1686
|
-
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
1720
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1721
|
+
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)) : []
|
|
1687
1722
|
};
|
|
1688
1723
|
},
|
|
1689
1724
|
toJSON(message) {
|
|
@@ -1700,6 +1735,9 @@ var OutputDef = {
|
|
|
1700
1735
|
if (message.sensitive !== false) {
|
|
1701
1736
|
obj.sensitive = message.sensitive;
|
|
1702
1737
|
}
|
|
1738
|
+
if (message.depends_on?.length) {
|
|
1739
|
+
obj.dependsOn = message.depends_on;
|
|
1740
|
+
}
|
|
1703
1741
|
return obj;
|
|
1704
1742
|
},
|
|
1705
1743
|
create(base) {
|
|
@@ -1711,6 +1749,7 @@ var OutputDef = {
|
|
|
1711
1749
|
message.type = object.type ?? "";
|
|
1712
1750
|
message.description = object.description ?? "";
|
|
1713
1751
|
message.sensitive = object.sensitive ?? false;
|
|
1752
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
1714
1753
|
return message;
|
|
1715
1754
|
}
|
|
1716
1755
|
};
|
|
@@ -1896,7 +1935,7 @@ var Local = {
|
|
|
1896
1935
|
}
|
|
1897
1936
|
};
|
|
1898
1937
|
function createBaseUse() {
|
|
1899
|
-
return { id: "", module: "", inputs: {}, depends_on: [] };
|
|
1938
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1900
1939
|
}
|
|
1901
1940
|
var Use = {
|
|
1902
1941
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -1912,6 +1951,12 @@ var Use = {
|
|
|
1912
1951
|
for (const v of message.depends_on) {
|
|
1913
1952
|
writer.uint32(34).string(v);
|
|
1914
1953
|
}
|
|
1954
|
+
if (message.count !== void 0) {
|
|
1955
|
+
Binding.encode(message.count, writer.uint32(42).fork()).join();
|
|
1956
|
+
}
|
|
1957
|
+
if (message.for_each !== void 0) {
|
|
1958
|
+
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1959
|
+
}
|
|
1915
1960
|
return writer;
|
|
1916
1961
|
},
|
|
1917
1962
|
decode(input, length) {
|
|
@@ -1952,6 +1997,20 @@ var Use = {
|
|
|
1952
1997
|
message.depends_on.push(reader.string());
|
|
1953
1998
|
continue;
|
|
1954
1999
|
}
|
|
2000
|
+
case 5: {
|
|
2001
|
+
if (tag !== 42) {
|
|
2002
|
+
break;
|
|
2003
|
+
}
|
|
2004
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
2005
|
+
continue;
|
|
2006
|
+
}
|
|
2007
|
+
case 6: {
|
|
2008
|
+
if (tag !== 50) {
|
|
2009
|
+
break;
|
|
2010
|
+
}
|
|
2011
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
2012
|
+
continue;
|
|
2013
|
+
}
|
|
1955
2014
|
}
|
|
1956
2015
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1957
2016
|
break;
|
|
@@ -1971,7 +2030,9 @@ var Use = {
|
|
|
1971
2030
|
},
|
|
1972
2031
|
{}
|
|
1973
2032
|
) : {},
|
|
1974
|
-
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)) : []
|
|
2033
|
+
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)) : [],
|
|
2034
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
2035
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
1975
2036
|
};
|
|
1976
2037
|
},
|
|
1977
2038
|
toJSON(message) {
|
|
@@ -1994,6 +2055,12 @@ var Use = {
|
|
|
1994
2055
|
if (message.depends_on?.length) {
|
|
1995
2056
|
obj.dependsOn = message.depends_on;
|
|
1996
2057
|
}
|
|
2058
|
+
if (message.count !== void 0) {
|
|
2059
|
+
obj.count = Binding.toJSON(message.count);
|
|
2060
|
+
}
|
|
2061
|
+
if (message.for_each !== void 0) {
|
|
2062
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
2063
|
+
}
|
|
1997
2064
|
return obj;
|
|
1998
2065
|
},
|
|
1999
2066
|
create(base) {
|
|
@@ -2013,6 +2080,8 @@ var Use = {
|
|
|
2013
2080
|
{}
|
|
2014
2081
|
);
|
|
2015
2082
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2083
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2084
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2016
2085
|
return message;
|
|
2017
2086
|
}
|
|
2018
2087
|
};
|
|
@@ -3421,9 +3490,7 @@ var ProviderConfig = {
|
|
|
3421
3490
|
writer.uint32(18).string(message.alias);
|
|
3422
3491
|
}
|
|
3423
3492
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3424
|
-
|
|
3425
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3426
|
-
}
|
|
3493
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3427
3494
|
});
|
|
3428
3495
|
for (const v of message.blocks) {
|
|
3429
3496
|
Block.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -3482,7 +3549,7 @@ var ProviderConfig = {
|
|
|
3482
3549
|
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3483
3550
|
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3484
3551
|
(acc, [key, value]) => {
|
|
3485
|
-
acc[key] = value;
|
|
3552
|
+
acc[key] = Binding.fromJSON(value);
|
|
3486
3553
|
return acc;
|
|
3487
3554
|
},
|
|
3488
3555
|
{}
|
|
@@ -3503,7 +3570,7 @@ var ProviderConfig = {
|
|
|
3503
3570
|
if (entries.length > 0) {
|
|
3504
3571
|
obj.config = {};
|
|
3505
3572
|
entries.forEach(([k, v]) => {
|
|
3506
|
-
obj.config[k] = v;
|
|
3573
|
+
obj.config[k] = Binding.toJSON(v);
|
|
3507
3574
|
});
|
|
3508
3575
|
}
|
|
3509
3576
|
}
|
|
@@ -3522,7 +3589,7 @@ var ProviderConfig = {
|
|
|
3522
3589
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3523
3590
|
(acc, [key, value]) => {
|
|
3524
3591
|
if (value !== void 0) {
|
|
3525
|
-
acc[key] = value;
|
|
3592
|
+
acc[key] = Binding.fromPartial(value);
|
|
3526
3593
|
}
|
|
3527
3594
|
return acc;
|
|
3528
3595
|
},
|
|
@@ -3541,7 +3608,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3541
3608
|
writer.uint32(10).string(message.key);
|
|
3542
3609
|
}
|
|
3543
3610
|
if (message.value !== void 0) {
|
|
3544
|
-
|
|
3611
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
3545
3612
|
}
|
|
3546
3613
|
return writer;
|
|
3547
3614
|
},
|
|
@@ -3563,7 +3630,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3563
3630
|
if (tag !== 18) {
|
|
3564
3631
|
break;
|
|
3565
3632
|
}
|
|
3566
|
-
message.value =
|
|
3633
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
3567
3634
|
continue;
|
|
3568
3635
|
}
|
|
3569
3636
|
}
|
|
@@ -3577,7 +3644,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3577
3644
|
fromJSON(object) {
|
|
3578
3645
|
return {
|
|
3579
3646
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3580
|
-
value: isSet2(object
|
|
3647
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
3581
3648
|
};
|
|
3582
3649
|
},
|
|
3583
3650
|
toJSON(message) {
|
|
@@ -3586,7 +3653,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3586
3653
|
obj.key = message.key;
|
|
3587
3654
|
}
|
|
3588
3655
|
if (message.value !== void 0) {
|
|
3589
|
-
obj.value = message.value;
|
|
3656
|
+
obj.value = Binding.toJSON(message.value);
|
|
3590
3657
|
}
|
|
3591
3658
|
return obj;
|
|
3592
3659
|
},
|
|
@@ -3596,7 +3663,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3596
3663
|
fromPartial(object) {
|
|
3597
3664
|
const message = createBaseProviderConfig_ConfigEntry();
|
|
3598
3665
|
message.key = object.key ?? "";
|
|
3599
|
-
message.value = object.value
|
|
3666
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
3600
3667
|
return message;
|
|
3601
3668
|
}
|
|
3602
3669
|
};
|
|
@@ -4234,6 +4301,33 @@ function isGroupUse(bundle, use) {
|
|
|
4234
4301
|
|
|
4235
4302
|
// src/projection/derive-edges.ts
|
|
4236
4303
|
var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_]*)\.([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
4304
|
+
function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
|
|
4305
|
+
if (binding.out?.module && binding.out.name) {
|
|
4306
|
+
edges.push({
|
|
4307
|
+
source_instance: binding.out.module,
|
|
4308
|
+
target_instance: targetId,
|
|
4309
|
+
from_output: binding.out.name,
|
|
4310
|
+
to_input: toInput
|
|
4311
|
+
});
|
|
4312
|
+
return;
|
|
4313
|
+
}
|
|
4314
|
+
if (binding.expr?.value) {
|
|
4315
|
+
for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
|
|
4316
|
+
const srcInstance = match[1];
|
|
4317
|
+
const srcOutput = match[2];
|
|
4318
|
+
if (!useIds.has(srcInstance)) continue;
|
|
4319
|
+
const key = `${srcInstance}:${targetId}:${srcOutput}:${toInput}`;
|
|
4320
|
+
if (seen.has(key)) continue;
|
|
4321
|
+
seen.add(key);
|
|
4322
|
+
edges.push({
|
|
4323
|
+
source_instance: srcInstance,
|
|
4324
|
+
target_instance: targetId,
|
|
4325
|
+
from_output: srcOutput,
|
|
4326
|
+
to_input: toInput
|
|
4327
|
+
});
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4237
4331
|
function deriveEdges(uses) {
|
|
4238
4332
|
const useIds = new Set(uses.map((u) => u.id));
|
|
4239
4333
|
const edges = [];
|
|
@@ -4241,31 +4335,13 @@ function deriveEdges(uses) {
|
|
|
4241
4335
|
for (const target of uses) {
|
|
4242
4336
|
const inputs = target.inputs ?? {};
|
|
4243
4337
|
for (const [inputName, binding] of Object.entries(inputs)) {
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
continue;
|
|
4252
|
-
}
|
|
4253
|
-
if (binding.expr?.value) {
|
|
4254
|
-
for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
|
|
4255
|
-
const srcInstance = match[1];
|
|
4256
|
-
const srcOutput = match[2];
|
|
4257
|
-
if (!useIds.has(srcInstance)) continue;
|
|
4258
|
-
const key = `${srcInstance}:${target.id}:${srcOutput}:${inputName}`;
|
|
4259
|
-
if (seen.has(key)) continue;
|
|
4260
|
-
seen.add(key);
|
|
4261
|
-
edges.push({
|
|
4262
|
-
source_instance: srcInstance,
|
|
4263
|
-
target_instance: target.id,
|
|
4264
|
-
from_output: srcOutput,
|
|
4265
|
-
to_input: inputName
|
|
4266
|
-
});
|
|
4267
|
-
}
|
|
4268
|
-
}
|
|
4338
|
+
emitEdgesFromBinding(binding, target.id, inputName, useIds, seen, edges);
|
|
4339
|
+
}
|
|
4340
|
+
if (target.count) {
|
|
4341
|
+
emitEdgesFromBinding(target.count, target.id, "count", useIds, seen, edges);
|
|
4342
|
+
}
|
|
4343
|
+
if (target.for_each) {
|
|
4344
|
+
emitEdgesFromBinding(target.for_each, target.id, "for_each", useIds, seen, edges);
|
|
4269
4345
|
}
|
|
4270
4346
|
}
|
|
4271
4347
|
return edges;
|
|
@@ -5783,7 +5859,15 @@ var RenderOutput = {
|
|
|
5783
5859
|
}
|
|
5784
5860
|
};
|
|
5785
5861
|
function createBaseNodeConfig() {
|
|
5786
|
-
return {
|
|
5862
|
+
return {
|
|
5863
|
+
instance_id: "",
|
|
5864
|
+
inputs: [],
|
|
5865
|
+
outputs: [],
|
|
5866
|
+
sibling_ids: [],
|
|
5867
|
+
depends_on: [],
|
|
5868
|
+
available_variables: [],
|
|
5869
|
+
providers: {}
|
|
5870
|
+
};
|
|
5787
5871
|
}
|
|
5788
5872
|
var NodeConfig = {
|
|
5789
5873
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -5805,6 +5889,9 @@ var NodeConfig = {
|
|
|
5805
5889
|
for (const v of message.available_variables) {
|
|
5806
5890
|
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
5807
5891
|
}
|
|
5892
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
5893
|
+
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
5894
|
+
});
|
|
5808
5895
|
return writer;
|
|
5809
5896
|
},
|
|
5810
5897
|
decode(input, length) {
|
|
@@ -5856,6 +5943,16 @@ var NodeConfig = {
|
|
|
5856
5943
|
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
5857
5944
|
continue;
|
|
5858
5945
|
}
|
|
5946
|
+
case 7: {
|
|
5947
|
+
if (tag !== 58) {
|
|
5948
|
+
break;
|
|
5949
|
+
}
|
|
5950
|
+
const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
|
|
5951
|
+
if (entry7.value !== void 0) {
|
|
5952
|
+
message.providers[entry7.key] = entry7.value;
|
|
5953
|
+
}
|
|
5954
|
+
continue;
|
|
5955
|
+
}
|
|
5859
5956
|
}
|
|
5860
5957
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5861
5958
|
break;
|
|
@@ -5871,7 +5968,14 @@ var NodeConfig = {
|
|
|
5871
5968
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
5872
5969
|
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)) : [],
|
|
5873
5970
|
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)) : [],
|
|
5874
|
-
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)) : []
|
|
5971
|
+
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)) : [],
|
|
5972
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
5973
|
+
(acc, [key, value]) => {
|
|
5974
|
+
acc[key] = globalThis.String(value);
|
|
5975
|
+
return acc;
|
|
5976
|
+
},
|
|
5977
|
+
{}
|
|
5978
|
+
) : {}
|
|
5875
5979
|
};
|
|
5876
5980
|
},
|
|
5877
5981
|
toJSON(message) {
|
|
@@ -5894,6 +5998,15 @@ var NodeConfig = {
|
|
|
5894
5998
|
if (message.available_variables?.length) {
|
|
5895
5999
|
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
5896
6000
|
}
|
|
6001
|
+
if (message.providers) {
|
|
6002
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
6003
|
+
if (entries.length > 0) {
|
|
6004
|
+
obj.providers = {};
|
|
6005
|
+
entries.forEach(([k, v]) => {
|
|
6006
|
+
obj.providers[k] = v;
|
|
6007
|
+
});
|
|
6008
|
+
}
|
|
6009
|
+
}
|
|
5897
6010
|
return obj;
|
|
5898
6011
|
},
|
|
5899
6012
|
create(base) {
|
|
@@ -5907,6 +6020,83 @@ var NodeConfig = {
|
|
|
5907
6020
|
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
5908
6021
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
5909
6022
|
message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
|
|
6023
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
6024
|
+
(acc, [key, value]) => {
|
|
6025
|
+
if (value !== void 0) {
|
|
6026
|
+
acc[key] = globalThis.String(value);
|
|
6027
|
+
}
|
|
6028
|
+
return acc;
|
|
6029
|
+
},
|
|
6030
|
+
{}
|
|
6031
|
+
);
|
|
6032
|
+
return message;
|
|
6033
|
+
}
|
|
6034
|
+
};
|
|
6035
|
+
function createBaseNodeConfig_ProvidersEntry() {
|
|
6036
|
+
return { key: "", value: "" };
|
|
6037
|
+
}
|
|
6038
|
+
var NodeConfig_ProvidersEntry = {
|
|
6039
|
+
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6040
|
+
if (message.key !== "") {
|
|
6041
|
+
writer.uint32(10).string(message.key);
|
|
6042
|
+
}
|
|
6043
|
+
if (message.value !== "") {
|
|
6044
|
+
writer.uint32(18).string(message.value);
|
|
6045
|
+
}
|
|
6046
|
+
return writer;
|
|
6047
|
+
},
|
|
6048
|
+
decode(input, length) {
|
|
6049
|
+
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
6050
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
6051
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
6052
|
+
while (reader.pos < end) {
|
|
6053
|
+
const tag = reader.uint32();
|
|
6054
|
+
switch (tag >>> 3) {
|
|
6055
|
+
case 1: {
|
|
6056
|
+
if (tag !== 10) {
|
|
6057
|
+
break;
|
|
6058
|
+
}
|
|
6059
|
+
message.key = reader.string();
|
|
6060
|
+
continue;
|
|
6061
|
+
}
|
|
6062
|
+
case 2: {
|
|
6063
|
+
if (tag !== 18) {
|
|
6064
|
+
break;
|
|
6065
|
+
}
|
|
6066
|
+
message.value = reader.string();
|
|
6067
|
+
continue;
|
|
6068
|
+
}
|
|
6069
|
+
}
|
|
6070
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6071
|
+
break;
|
|
6072
|
+
}
|
|
6073
|
+
reader.skip(tag & 7);
|
|
6074
|
+
}
|
|
6075
|
+
return message;
|
|
6076
|
+
},
|
|
6077
|
+
fromJSON(object) {
|
|
6078
|
+
return {
|
|
6079
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6080
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6081
|
+
};
|
|
6082
|
+
},
|
|
6083
|
+
toJSON(message) {
|
|
6084
|
+
const obj = {};
|
|
6085
|
+
if (message.key !== "") {
|
|
6086
|
+
obj.key = message.key;
|
|
6087
|
+
}
|
|
6088
|
+
if (message.value !== "") {
|
|
6089
|
+
obj.value = message.value;
|
|
6090
|
+
}
|
|
6091
|
+
return obj;
|
|
6092
|
+
},
|
|
6093
|
+
create(base) {
|
|
6094
|
+
return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
|
|
6095
|
+
},
|
|
6096
|
+
fromPartial(object) {
|
|
6097
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
6098
|
+
message.key = object.key ?? "";
|
|
6099
|
+
message.value = object.value ?? "";
|
|
5910
6100
|
return message;
|
|
5911
6101
|
}
|
|
5912
6102
|
};
|
|
@@ -6519,7 +6709,7 @@ var TerraformView = {
|
|
|
6519
6709
|
}
|
|
6520
6710
|
};
|
|
6521
6711
|
function createBaseProviderReqView() {
|
|
6522
|
-
return { name: "", source: "", version: "" };
|
|
6712
|
+
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
6523
6713
|
}
|
|
6524
6714
|
var ProviderReqView = {
|
|
6525
6715
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -6532,6 +6722,9 @@ var ProviderReqView = {
|
|
|
6532
6722
|
if (message.version !== "") {
|
|
6533
6723
|
writer.uint32(26).string(message.version);
|
|
6534
6724
|
}
|
|
6725
|
+
for (const v of message.configuration_aliases) {
|
|
6726
|
+
writer.uint32(34).string(v);
|
|
6727
|
+
}
|
|
6535
6728
|
return writer;
|
|
6536
6729
|
},
|
|
6537
6730
|
decode(input, length) {
|
|
@@ -6562,6 +6755,13 @@ var ProviderReqView = {
|
|
|
6562
6755
|
message.version = reader.string();
|
|
6563
6756
|
continue;
|
|
6564
6757
|
}
|
|
6758
|
+
case 4: {
|
|
6759
|
+
if (tag !== 34) {
|
|
6760
|
+
break;
|
|
6761
|
+
}
|
|
6762
|
+
message.configuration_aliases.push(reader.string());
|
|
6763
|
+
continue;
|
|
6764
|
+
}
|
|
6565
6765
|
}
|
|
6566
6766
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6567
6767
|
break;
|
|
@@ -6574,7 +6774,8 @@ var ProviderReqView = {
|
|
|
6574
6774
|
return {
|
|
6575
6775
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6576
6776
|
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
6577
|
-
version: isSet3(object.version) ? globalThis.String(object.version) : ""
|
|
6777
|
+
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
6778
|
+
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)) : []
|
|
6578
6779
|
};
|
|
6579
6780
|
},
|
|
6580
6781
|
toJSON(message) {
|
|
@@ -6588,6 +6789,9 @@ var ProviderReqView = {
|
|
|
6588
6789
|
if (message.version !== "") {
|
|
6589
6790
|
obj.version = message.version;
|
|
6590
6791
|
}
|
|
6792
|
+
if (message.configuration_aliases?.length) {
|
|
6793
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
6794
|
+
}
|
|
6591
6795
|
return obj;
|
|
6592
6796
|
},
|
|
6593
6797
|
create(base) {
|
|
@@ -6598,6 +6802,7 @@ var ProviderReqView = {
|
|
|
6598
6802
|
message.name = object.name ?? "";
|
|
6599
6803
|
message.source = object.source ?? "";
|
|
6600
6804
|
message.version = object.version ?? "";
|
|
6805
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
6601
6806
|
return message;
|
|
6602
6807
|
}
|
|
6603
6808
|
};
|
|
@@ -6763,7 +6968,7 @@ var BackendView_ConfigEntry = {
|
|
|
6763
6968
|
}
|
|
6764
6969
|
};
|
|
6765
6970
|
function createBaseProviderView() {
|
|
6766
|
-
return { name: "", alias: "", config: {} };
|
|
6971
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
6767
6972
|
}
|
|
6768
6973
|
var ProviderView = {
|
|
6769
6974
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -6774,10 +6979,11 @@ var ProviderView = {
|
|
|
6774
6979
|
writer.uint32(18).string(message.alias);
|
|
6775
6980
|
}
|
|
6776
6981
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
6777
|
-
|
|
6778
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6779
|
-
}
|
|
6982
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6780
6983
|
});
|
|
6984
|
+
for (const v of message.blocks) {
|
|
6985
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
6986
|
+
}
|
|
6781
6987
|
return writer;
|
|
6782
6988
|
},
|
|
6783
6989
|
decode(input, length) {
|
|
@@ -6811,6 +7017,13 @@ var ProviderView = {
|
|
|
6811
7017
|
}
|
|
6812
7018
|
continue;
|
|
6813
7019
|
}
|
|
7020
|
+
case 4: {
|
|
7021
|
+
if (tag !== 34) {
|
|
7022
|
+
break;
|
|
7023
|
+
}
|
|
7024
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
7025
|
+
continue;
|
|
7026
|
+
}
|
|
6814
7027
|
}
|
|
6815
7028
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6816
7029
|
break;
|
|
@@ -6825,11 +7038,12 @@ var ProviderView = {
|
|
|
6825
7038
|
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
6826
7039
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
6827
7040
|
(acc, [key, value]) => {
|
|
6828
|
-
acc[key] = value;
|
|
7041
|
+
acc[key] = globalThis.String(value);
|
|
6829
7042
|
return acc;
|
|
6830
7043
|
},
|
|
6831
7044
|
{}
|
|
6832
|
-
) : {}
|
|
7045
|
+
) : {},
|
|
7046
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
6833
7047
|
};
|
|
6834
7048
|
},
|
|
6835
7049
|
toJSON(message) {
|
|
@@ -6849,6 +7063,9 @@ var ProviderView = {
|
|
|
6849
7063
|
});
|
|
6850
7064
|
}
|
|
6851
7065
|
}
|
|
7066
|
+
if (message.blocks?.length) {
|
|
7067
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
7068
|
+
}
|
|
6852
7069
|
return obj;
|
|
6853
7070
|
},
|
|
6854
7071
|
create(base) {
|
|
@@ -6861,25 +7078,26 @@ var ProviderView = {
|
|
|
6861
7078
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
6862
7079
|
(acc, [key, value]) => {
|
|
6863
7080
|
if (value !== void 0) {
|
|
6864
|
-
acc[key] = value;
|
|
7081
|
+
acc[key] = globalThis.String(value);
|
|
6865
7082
|
}
|
|
6866
7083
|
return acc;
|
|
6867
7084
|
},
|
|
6868
7085
|
{}
|
|
6869
7086
|
);
|
|
7087
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
6870
7088
|
return message;
|
|
6871
7089
|
}
|
|
6872
7090
|
};
|
|
6873
7091
|
function createBaseProviderView_ConfigEntry() {
|
|
6874
|
-
return { key: "", value:
|
|
7092
|
+
return { key: "", value: "" };
|
|
6875
7093
|
}
|
|
6876
7094
|
var ProviderView_ConfigEntry = {
|
|
6877
7095
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6878
7096
|
if (message.key !== "") {
|
|
6879
7097
|
writer.uint32(10).string(message.key);
|
|
6880
7098
|
}
|
|
6881
|
-
if (message.value !==
|
|
6882
|
-
|
|
7099
|
+
if (message.value !== "") {
|
|
7100
|
+
writer.uint32(18).string(message.value);
|
|
6883
7101
|
}
|
|
6884
7102
|
return writer;
|
|
6885
7103
|
},
|
|
@@ -6901,7 +7119,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6901
7119
|
if (tag !== 18) {
|
|
6902
7120
|
break;
|
|
6903
7121
|
}
|
|
6904
|
-
message.value =
|
|
7122
|
+
message.value = reader.string();
|
|
6905
7123
|
continue;
|
|
6906
7124
|
}
|
|
6907
7125
|
}
|
|
@@ -6915,7 +7133,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6915
7133
|
fromJSON(object) {
|
|
6916
7134
|
return {
|
|
6917
7135
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6918
|
-
value: isSet3(object
|
|
7136
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6919
7137
|
};
|
|
6920
7138
|
},
|
|
6921
7139
|
toJSON(message) {
|
|
@@ -6923,7 +7141,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6923
7141
|
if (message.key !== "") {
|
|
6924
7142
|
obj.key = message.key;
|
|
6925
7143
|
}
|
|
6926
|
-
if (message.value !==
|
|
7144
|
+
if (message.value !== "") {
|
|
6927
7145
|
obj.value = message.value;
|
|
6928
7146
|
}
|
|
6929
7147
|
return obj;
|
|
@@ -6934,7 +7152,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6934
7152
|
fromPartial(object) {
|
|
6935
7153
|
const message = createBaseProviderView_ConfigEntry();
|
|
6936
7154
|
message.key = object.key ?? "";
|
|
6937
|
-
message.value = object.value ??
|
|
7155
|
+
message.value = object.value ?? "";
|
|
6938
7156
|
return message;
|
|
6939
7157
|
}
|
|
6940
7158
|
};
|
|
@@ -7173,7 +7391,17 @@ var Position2 = {
|
|
|
7173
7391
|
}
|
|
7174
7392
|
};
|
|
7175
7393
|
function createBaseInputDef2() {
|
|
7176
|
-
return {
|
|
7394
|
+
return {
|
|
7395
|
+
name: "",
|
|
7396
|
+
type: "",
|
|
7397
|
+
required: false,
|
|
7398
|
+
description: "",
|
|
7399
|
+
default_value: void 0,
|
|
7400
|
+
validation: [],
|
|
7401
|
+
ephemeral: void 0,
|
|
7402
|
+
nullable: void 0,
|
|
7403
|
+
sensitive: false
|
|
7404
|
+
};
|
|
7177
7405
|
}
|
|
7178
7406
|
var InputDef2 = {
|
|
7179
7407
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -7192,8 +7420,17 @@ var InputDef2 = {
|
|
|
7192
7420
|
if (message.default_value !== void 0) {
|
|
7193
7421
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
7194
7422
|
}
|
|
7195
|
-
|
|
7196
|
-
ValidationBlock2.encode(
|
|
7423
|
+
for (const v of message.validation) {
|
|
7424
|
+
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
7425
|
+
}
|
|
7426
|
+
if (message.ephemeral !== void 0) {
|
|
7427
|
+
writer.uint32(56).bool(message.ephemeral);
|
|
7428
|
+
}
|
|
7429
|
+
if (message.nullable !== void 0) {
|
|
7430
|
+
writer.uint32(64).bool(message.nullable);
|
|
7431
|
+
}
|
|
7432
|
+
if (message.sensitive !== false) {
|
|
7433
|
+
writer.uint32(72).bool(message.sensitive);
|
|
7197
7434
|
}
|
|
7198
7435
|
return writer;
|
|
7199
7436
|
},
|
|
@@ -7243,7 +7480,28 @@ var InputDef2 = {
|
|
|
7243
7480
|
if (tag !== 50) {
|
|
7244
7481
|
break;
|
|
7245
7482
|
}
|
|
7246
|
-
message.validation
|
|
7483
|
+
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
7484
|
+
continue;
|
|
7485
|
+
}
|
|
7486
|
+
case 7: {
|
|
7487
|
+
if (tag !== 56) {
|
|
7488
|
+
break;
|
|
7489
|
+
}
|
|
7490
|
+
message.ephemeral = reader.bool();
|
|
7491
|
+
continue;
|
|
7492
|
+
}
|
|
7493
|
+
case 8: {
|
|
7494
|
+
if (tag !== 64) {
|
|
7495
|
+
break;
|
|
7496
|
+
}
|
|
7497
|
+
message.nullable = reader.bool();
|
|
7498
|
+
continue;
|
|
7499
|
+
}
|
|
7500
|
+
case 9: {
|
|
7501
|
+
if (tag !== 72) {
|
|
7502
|
+
break;
|
|
7503
|
+
}
|
|
7504
|
+
message.sensitive = reader.bool();
|
|
7247
7505
|
continue;
|
|
7248
7506
|
}
|
|
7249
7507
|
}
|
|
@@ -7261,7 +7519,10 @@ var InputDef2 = {
|
|
|
7261
7519
|
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
7262
7520
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7263
7521
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
7264
|
-
validation:
|
|
7522
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
7523
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
|
|
7524
|
+
nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
7525
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
7265
7526
|
};
|
|
7266
7527
|
},
|
|
7267
7528
|
toJSON(message) {
|
|
@@ -7281,8 +7542,17 @@ var InputDef2 = {
|
|
|
7281
7542
|
if (message.default_value !== void 0) {
|
|
7282
7543
|
obj.defaultValue = message.default_value;
|
|
7283
7544
|
}
|
|
7284
|
-
if (message.validation
|
|
7285
|
-
obj.validation = ValidationBlock2.toJSON(
|
|
7545
|
+
if (message.validation?.length) {
|
|
7546
|
+
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
7547
|
+
}
|
|
7548
|
+
if (message.ephemeral !== void 0) {
|
|
7549
|
+
obj.ephemeral = message.ephemeral;
|
|
7550
|
+
}
|
|
7551
|
+
if (message.nullable !== void 0) {
|
|
7552
|
+
obj.nullable = message.nullable;
|
|
7553
|
+
}
|
|
7554
|
+
if (message.sensitive !== false) {
|
|
7555
|
+
obj.sensitive = message.sensitive;
|
|
7286
7556
|
}
|
|
7287
7557
|
return obj;
|
|
7288
7558
|
},
|
|
@@ -7296,7 +7566,10 @@ var InputDef2 = {
|
|
|
7296
7566
|
message.required = object.required ?? false;
|
|
7297
7567
|
message.description = object.description ?? "";
|
|
7298
7568
|
message.default_value = object.default_value ?? void 0;
|
|
7299
|
-
message.validation = object.validation
|
|
7569
|
+
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
7570
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
7571
|
+
message.nullable = object.nullable ?? void 0;
|
|
7572
|
+
message.sensitive = object.sensitive ?? false;
|
|
7300
7573
|
return message;
|
|
7301
7574
|
}
|
|
7302
7575
|
};
|
|
@@ -7369,7 +7642,7 @@ var ValidationBlock2 = {
|
|
|
7369
7642
|
}
|
|
7370
7643
|
};
|
|
7371
7644
|
function createBaseOutputDef2() {
|
|
7372
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
7645
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
7373
7646
|
}
|
|
7374
7647
|
var OutputDef2 = {
|
|
7375
7648
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -7385,6 +7658,9 @@ var OutputDef2 = {
|
|
|
7385
7658
|
if (message.sensitive !== false) {
|
|
7386
7659
|
writer.uint32(32).bool(message.sensitive);
|
|
7387
7660
|
}
|
|
7661
|
+
for (const v of message.depends_on) {
|
|
7662
|
+
writer.uint32(42).string(v);
|
|
7663
|
+
}
|
|
7388
7664
|
return writer;
|
|
7389
7665
|
},
|
|
7390
7666
|
decode(input, length) {
|
|
@@ -7422,6 +7698,13 @@ var OutputDef2 = {
|
|
|
7422
7698
|
message.sensitive = reader.bool();
|
|
7423
7699
|
continue;
|
|
7424
7700
|
}
|
|
7701
|
+
case 5: {
|
|
7702
|
+
if (tag !== 42) {
|
|
7703
|
+
break;
|
|
7704
|
+
}
|
|
7705
|
+
message.depends_on.push(reader.string());
|
|
7706
|
+
continue;
|
|
7707
|
+
}
|
|
7425
7708
|
}
|
|
7426
7709
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7427
7710
|
break;
|
|
@@ -7435,7 +7718,8 @@ var OutputDef2 = {
|
|
|
7435
7718
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
7436
7719
|
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
7437
7720
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7438
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
7721
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
7722
|
+
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)) : []
|
|
7439
7723
|
};
|
|
7440
7724
|
},
|
|
7441
7725
|
toJSON(message) {
|
|
@@ -7452,6 +7736,9 @@ var OutputDef2 = {
|
|
|
7452
7736
|
if (message.sensitive !== false) {
|
|
7453
7737
|
obj.sensitive = message.sensitive;
|
|
7454
7738
|
}
|
|
7739
|
+
if (message.depends_on?.length) {
|
|
7740
|
+
obj.dependsOn = message.depends_on;
|
|
7741
|
+
}
|
|
7455
7742
|
return obj;
|
|
7456
7743
|
},
|
|
7457
7744
|
create(base) {
|
|
@@ -7463,6 +7750,7 @@ var OutputDef2 = {
|
|
|
7463
7750
|
message.type = object.type ?? "";
|
|
7464
7751
|
message.description = object.description ?? "";
|
|
7465
7752
|
message.sensitive = object.sensitive ?? false;
|
|
7753
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
7466
7754
|
return message;
|
|
7467
7755
|
}
|
|
7468
7756
|
};
|