@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.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
|
}
|
|
@@ -1342,9 +1350,10 @@ function createBaseInputDef() {
|
|
|
1342
1350
|
required: false,
|
|
1343
1351
|
description: "",
|
|
1344
1352
|
default_value: void 0,
|
|
1345
|
-
validation:
|
|
1353
|
+
validation: [],
|
|
1346
1354
|
sensitive: false,
|
|
1347
|
-
nullable: void 0
|
|
1355
|
+
nullable: void 0,
|
|
1356
|
+
ephemeral: void 0
|
|
1348
1357
|
};
|
|
1349
1358
|
}
|
|
1350
1359
|
var InputDef = {
|
|
@@ -1364,8 +1373,8 @@ var InputDef = {
|
|
|
1364
1373
|
if (message.default_value !== void 0) {
|
|
1365
1374
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
1366
1375
|
}
|
|
1367
|
-
|
|
1368
|
-
ValidationBlock.encode(
|
|
1376
|
+
for (const v of message.validation) {
|
|
1377
|
+
ValidationBlock.encode(v, writer.uint32(50).fork()).join();
|
|
1369
1378
|
}
|
|
1370
1379
|
if (message.sensitive !== false) {
|
|
1371
1380
|
writer.uint32(56).bool(message.sensitive);
|
|
@@ -1373,6 +1382,9 @@ var InputDef = {
|
|
|
1373
1382
|
if (message.nullable !== void 0) {
|
|
1374
1383
|
writer.uint32(64).bool(message.nullable);
|
|
1375
1384
|
}
|
|
1385
|
+
if (message.ephemeral !== void 0) {
|
|
1386
|
+
writer.uint32(72).bool(message.ephemeral);
|
|
1387
|
+
}
|
|
1376
1388
|
return writer;
|
|
1377
1389
|
},
|
|
1378
1390
|
decode(input, length) {
|
|
@@ -1421,7 +1433,7 @@ var InputDef = {
|
|
|
1421
1433
|
if (tag !== 50) {
|
|
1422
1434
|
break;
|
|
1423
1435
|
}
|
|
1424
|
-
message.validation
|
|
1436
|
+
message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
|
|
1425
1437
|
continue;
|
|
1426
1438
|
}
|
|
1427
1439
|
case 7: {
|
|
@@ -1438,6 +1450,13 @@ var InputDef = {
|
|
|
1438
1450
|
message.nullable = reader.bool();
|
|
1439
1451
|
continue;
|
|
1440
1452
|
}
|
|
1453
|
+
case 9: {
|
|
1454
|
+
if (tag !== 72) {
|
|
1455
|
+
break;
|
|
1456
|
+
}
|
|
1457
|
+
message.ephemeral = reader.bool();
|
|
1458
|
+
continue;
|
|
1459
|
+
}
|
|
1441
1460
|
}
|
|
1442
1461
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1443
1462
|
break;
|
|
@@ -1453,9 +1472,10 @@ var InputDef = {
|
|
|
1453
1472
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1454
1473
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1455
1474
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1456
|
-
validation:
|
|
1475
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
|
|
1457
1476
|
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1458
|
-
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1477
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
1478
|
+
ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
1459
1479
|
};
|
|
1460
1480
|
},
|
|
1461
1481
|
toJSON(message) {
|
|
@@ -1475,8 +1495,8 @@ var InputDef = {
|
|
|
1475
1495
|
if (message.default_value !== void 0) {
|
|
1476
1496
|
obj.defaultValue = message.default_value;
|
|
1477
1497
|
}
|
|
1478
|
-
if (message.validation
|
|
1479
|
-
obj.validation = ValidationBlock.toJSON(
|
|
1498
|
+
if (message.validation?.length) {
|
|
1499
|
+
obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
|
|
1480
1500
|
}
|
|
1481
1501
|
if (message.sensitive !== false) {
|
|
1482
1502
|
obj.sensitive = message.sensitive;
|
|
@@ -1484,6 +1504,9 @@ var InputDef = {
|
|
|
1484
1504
|
if (message.nullable !== void 0) {
|
|
1485
1505
|
obj.nullable = message.nullable;
|
|
1486
1506
|
}
|
|
1507
|
+
if (message.ephemeral !== void 0) {
|
|
1508
|
+
obj.ephemeral = message.ephemeral;
|
|
1509
|
+
}
|
|
1487
1510
|
return obj;
|
|
1488
1511
|
},
|
|
1489
1512
|
create(base) {
|
|
@@ -1496,9 +1519,10 @@ var InputDef = {
|
|
|
1496
1519
|
message.required = object.required ?? false;
|
|
1497
1520
|
message.description = object.description ?? "";
|
|
1498
1521
|
message.default_value = object.default_value ?? void 0;
|
|
1499
|
-
message.validation = object.validation
|
|
1522
|
+
message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
|
|
1500
1523
|
message.sensitive = object.sensitive ?? false;
|
|
1501
1524
|
message.nullable = object.nullable ?? void 0;
|
|
1525
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
1502
1526
|
return message;
|
|
1503
1527
|
}
|
|
1504
1528
|
};
|
|
@@ -1571,7 +1595,7 @@ var ValidationBlock = {
|
|
|
1571
1595
|
}
|
|
1572
1596
|
};
|
|
1573
1597
|
function createBaseOutputDef() {
|
|
1574
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
1598
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
1575
1599
|
}
|
|
1576
1600
|
var OutputDef = {
|
|
1577
1601
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -1587,6 +1611,9 @@ var OutputDef = {
|
|
|
1587
1611
|
if (message.sensitive !== false) {
|
|
1588
1612
|
writer.uint32(32).bool(message.sensitive);
|
|
1589
1613
|
}
|
|
1614
|
+
for (const v of message.depends_on) {
|
|
1615
|
+
writer.uint32(42).string(v);
|
|
1616
|
+
}
|
|
1590
1617
|
return writer;
|
|
1591
1618
|
},
|
|
1592
1619
|
decode(input, length) {
|
|
@@ -1624,6 +1651,13 @@ var OutputDef = {
|
|
|
1624
1651
|
message.sensitive = reader.bool();
|
|
1625
1652
|
continue;
|
|
1626
1653
|
}
|
|
1654
|
+
case 5: {
|
|
1655
|
+
if (tag !== 42) {
|
|
1656
|
+
break;
|
|
1657
|
+
}
|
|
1658
|
+
message.depends_on.push(reader.string());
|
|
1659
|
+
continue;
|
|
1660
|
+
}
|
|
1627
1661
|
}
|
|
1628
1662
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1629
1663
|
break;
|
|
@@ -1637,7 +1671,8 @@ var OutputDef = {
|
|
|
1637
1671
|
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
1638
1672
|
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
1639
1673
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1640
|
-
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
1674
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1675
|
+
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)) : []
|
|
1641
1676
|
};
|
|
1642
1677
|
},
|
|
1643
1678
|
toJSON(message) {
|
|
@@ -1654,6 +1689,9 @@ var OutputDef = {
|
|
|
1654
1689
|
if (message.sensitive !== false) {
|
|
1655
1690
|
obj.sensitive = message.sensitive;
|
|
1656
1691
|
}
|
|
1692
|
+
if (message.depends_on?.length) {
|
|
1693
|
+
obj.dependsOn = message.depends_on;
|
|
1694
|
+
}
|
|
1657
1695
|
return obj;
|
|
1658
1696
|
},
|
|
1659
1697
|
create(base) {
|
|
@@ -1665,6 +1703,7 @@ var OutputDef = {
|
|
|
1665
1703
|
message.type = object.type ?? "";
|
|
1666
1704
|
message.description = object.description ?? "";
|
|
1667
1705
|
message.sensitive = object.sensitive ?? false;
|
|
1706
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
1668
1707
|
return message;
|
|
1669
1708
|
}
|
|
1670
1709
|
};
|
|
@@ -1850,7 +1889,7 @@ var Local = {
|
|
|
1850
1889
|
}
|
|
1851
1890
|
};
|
|
1852
1891
|
function createBaseUse() {
|
|
1853
|
-
return { id: "", module: "", inputs: {}, depends_on: [] };
|
|
1892
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1854
1893
|
}
|
|
1855
1894
|
var Use = {
|
|
1856
1895
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -1866,6 +1905,12 @@ var Use = {
|
|
|
1866
1905
|
for (const v of message.depends_on) {
|
|
1867
1906
|
writer.uint32(34).string(v);
|
|
1868
1907
|
}
|
|
1908
|
+
if (message.count !== void 0) {
|
|
1909
|
+
Binding.encode(message.count, writer.uint32(42).fork()).join();
|
|
1910
|
+
}
|
|
1911
|
+
if (message.for_each !== void 0) {
|
|
1912
|
+
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1913
|
+
}
|
|
1869
1914
|
return writer;
|
|
1870
1915
|
},
|
|
1871
1916
|
decode(input, length) {
|
|
@@ -1906,6 +1951,20 @@ var Use = {
|
|
|
1906
1951
|
message.depends_on.push(reader.string());
|
|
1907
1952
|
continue;
|
|
1908
1953
|
}
|
|
1954
|
+
case 5: {
|
|
1955
|
+
if (tag !== 42) {
|
|
1956
|
+
break;
|
|
1957
|
+
}
|
|
1958
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
1959
|
+
continue;
|
|
1960
|
+
}
|
|
1961
|
+
case 6: {
|
|
1962
|
+
if (tag !== 50) {
|
|
1963
|
+
break;
|
|
1964
|
+
}
|
|
1965
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
1966
|
+
continue;
|
|
1967
|
+
}
|
|
1909
1968
|
}
|
|
1910
1969
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1911
1970
|
break;
|
|
@@ -1925,7 +1984,9 @@ var Use = {
|
|
|
1925
1984
|
},
|
|
1926
1985
|
{}
|
|
1927
1986
|
) : {},
|
|
1928
|
-
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)) : []
|
|
1987
|
+
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)) : [],
|
|
1988
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
1989
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
1929
1990
|
};
|
|
1930
1991
|
},
|
|
1931
1992
|
toJSON(message) {
|
|
@@ -1948,6 +2009,12 @@ var Use = {
|
|
|
1948
2009
|
if (message.depends_on?.length) {
|
|
1949
2010
|
obj.dependsOn = message.depends_on;
|
|
1950
2011
|
}
|
|
2012
|
+
if (message.count !== void 0) {
|
|
2013
|
+
obj.count = Binding.toJSON(message.count);
|
|
2014
|
+
}
|
|
2015
|
+
if (message.for_each !== void 0) {
|
|
2016
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
2017
|
+
}
|
|
1951
2018
|
return obj;
|
|
1952
2019
|
},
|
|
1953
2020
|
create(base) {
|
|
@@ -1967,6 +2034,8 @@ var Use = {
|
|
|
1967
2034
|
{}
|
|
1968
2035
|
);
|
|
1969
2036
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2037
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2038
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
1970
2039
|
return message;
|
|
1971
2040
|
}
|
|
1972
2041
|
};
|
|
@@ -3375,9 +3444,7 @@ var ProviderConfig = {
|
|
|
3375
3444
|
writer.uint32(18).string(message.alias);
|
|
3376
3445
|
}
|
|
3377
3446
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3378
|
-
|
|
3379
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3380
|
-
}
|
|
3447
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3381
3448
|
});
|
|
3382
3449
|
for (const v of message.blocks) {
|
|
3383
3450
|
Block.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -3436,7 +3503,7 @@ var ProviderConfig = {
|
|
|
3436
3503
|
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3437
3504
|
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3438
3505
|
(acc, [key, value]) => {
|
|
3439
|
-
acc[key] = value;
|
|
3506
|
+
acc[key] = Binding.fromJSON(value);
|
|
3440
3507
|
return acc;
|
|
3441
3508
|
},
|
|
3442
3509
|
{}
|
|
@@ -3457,7 +3524,7 @@ var ProviderConfig = {
|
|
|
3457
3524
|
if (entries.length > 0) {
|
|
3458
3525
|
obj.config = {};
|
|
3459
3526
|
entries.forEach(([k, v]) => {
|
|
3460
|
-
obj.config[k] = v;
|
|
3527
|
+
obj.config[k] = Binding.toJSON(v);
|
|
3461
3528
|
});
|
|
3462
3529
|
}
|
|
3463
3530
|
}
|
|
@@ -3476,7 +3543,7 @@ var ProviderConfig = {
|
|
|
3476
3543
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3477
3544
|
(acc, [key, value]) => {
|
|
3478
3545
|
if (value !== void 0) {
|
|
3479
|
-
acc[key] = value;
|
|
3546
|
+
acc[key] = Binding.fromPartial(value);
|
|
3480
3547
|
}
|
|
3481
3548
|
return acc;
|
|
3482
3549
|
},
|
|
@@ -3495,7 +3562,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3495
3562
|
writer.uint32(10).string(message.key);
|
|
3496
3563
|
}
|
|
3497
3564
|
if (message.value !== void 0) {
|
|
3498
|
-
|
|
3565
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
3499
3566
|
}
|
|
3500
3567
|
return writer;
|
|
3501
3568
|
},
|
|
@@ -3517,7 +3584,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3517
3584
|
if (tag !== 18) {
|
|
3518
3585
|
break;
|
|
3519
3586
|
}
|
|
3520
|
-
message.value =
|
|
3587
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
3521
3588
|
continue;
|
|
3522
3589
|
}
|
|
3523
3590
|
}
|
|
@@ -3531,7 +3598,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3531
3598
|
fromJSON(object) {
|
|
3532
3599
|
return {
|
|
3533
3600
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3534
|
-
value: isSet2(object
|
|
3601
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
3535
3602
|
};
|
|
3536
3603
|
},
|
|
3537
3604
|
toJSON(message) {
|
|
@@ -3540,7 +3607,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3540
3607
|
obj.key = message.key;
|
|
3541
3608
|
}
|
|
3542
3609
|
if (message.value !== void 0) {
|
|
3543
|
-
obj.value = message.value;
|
|
3610
|
+
obj.value = Binding.toJSON(message.value);
|
|
3544
3611
|
}
|
|
3545
3612
|
return obj;
|
|
3546
3613
|
},
|
|
@@ -3550,7 +3617,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3550
3617
|
fromPartial(object) {
|
|
3551
3618
|
const message = createBaseProviderConfig_ConfigEntry();
|
|
3552
3619
|
message.key = object.key ?? "";
|
|
3553
|
-
message.value = object.value
|
|
3620
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
3554
3621
|
return message;
|
|
3555
3622
|
}
|
|
3556
3623
|
};
|
|
@@ -4188,6 +4255,33 @@ function isGroupUse(bundle, use) {
|
|
|
4188
4255
|
|
|
4189
4256
|
// src/projection/derive-edges.ts
|
|
4190
4257
|
var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_]*)\.([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
4258
|
+
function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
|
|
4259
|
+
if (binding.out?.module && binding.out.name) {
|
|
4260
|
+
edges.push({
|
|
4261
|
+
source_instance: binding.out.module,
|
|
4262
|
+
target_instance: targetId,
|
|
4263
|
+
from_output: binding.out.name,
|
|
4264
|
+
to_input: toInput
|
|
4265
|
+
});
|
|
4266
|
+
return;
|
|
4267
|
+
}
|
|
4268
|
+
if (binding.expr?.value) {
|
|
4269
|
+
for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
|
|
4270
|
+
const srcInstance = match[1];
|
|
4271
|
+
const srcOutput = match[2];
|
|
4272
|
+
if (!useIds.has(srcInstance)) continue;
|
|
4273
|
+
const key = `${srcInstance}:${targetId}:${srcOutput}:${toInput}`;
|
|
4274
|
+
if (seen.has(key)) continue;
|
|
4275
|
+
seen.add(key);
|
|
4276
|
+
edges.push({
|
|
4277
|
+
source_instance: srcInstance,
|
|
4278
|
+
target_instance: targetId,
|
|
4279
|
+
from_output: srcOutput,
|
|
4280
|
+
to_input: toInput
|
|
4281
|
+
});
|
|
4282
|
+
}
|
|
4283
|
+
}
|
|
4284
|
+
}
|
|
4191
4285
|
function deriveEdges(uses) {
|
|
4192
4286
|
const useIds = new Set(uses.map((u) => u.id));
|
|
4193
4287
|
const edges = [];
|
|
@@ -4195,31 +4289,13 @@ function deriveEdges(uses) {
|
|
|
4195
4289
|
for (const target of uses) {
|
|
4196
4290
|
const inputs = target.inputs ?? {};
|
|
4197
4291
|
for (const [inputName, binding] of Object.entries(inputs)) {
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
continue;
|
|
4206
|
-
}
|
|
4207
|
-
if (binding.expr?.value) {
|
|
4208
|
-
for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
|
|
4209
|
-
const srcInstance = match[1];
|
|
4210
|
-
const srcOutput = match[2];
|
|
4211
|
-
if (!useIds.has(srcInstance)) continue;
|
|
4212
|
-
const key = `${srcInstance}:${target.id}:${srcOutput}:${inputName}`;
|
|
4213
|
-
if (seen.has(key)) continue;
|
|
4214
|
-
seen.add(key);
|
|
4215
|
-
edges.push({
|
|
4216
|
-
source_instance: srcInstance,
|
|
4217
|
-
target_instance: target.id,
|
|
4218
|
-
from_output: srcOutput,
|
|
4219
|
-
to_input: inputName
|
|
4220
|
-
});
|
|
4221
|
-
}
|
|
4222
|
-
}
|
|
4292
|
+
emitEdgesFromBinding(binding, target.id, inputName, useIds, seen, edges);
|
|
4293
|
+
}
|
|
4294
|
+
if (target.count) {
|
|
4295
|
+
emitEdgesFromBinding(target.count, target.id, "count", useIds, seen, edges);
|
|
4296
|
+
}
|
|
4297
|
+
if (target.for_each) {
|
|
4298
|
+
emitEdgesFromBinding(target.for_each, target.id, "for_each", useIds, seen, edges);
|
|
4223
4299
|
}
|
|
4224
4300
|
}
|
|
4225
4301
|
return edges;
|
|
@@ -5737,7 +5813,15 @@ var RenderOutput = {
|
|
|
5737
5813
|
}
|
|
5738
5814
|
};
|
|
5739
5815
|
function createBaseNodeConfig() {
|
|
5740
|
-
return {
|
|
5816
|
+
return {
|
|
5817
|
+
instance_id: "",
|
|
5818
|
+
inputs: [],
|
|
5819
|
+
outputs: [],
|
|
5820
|
+
sibling_ids: [],
|
|
5821
|
+
depends_on: [],
|
|
5822
|
+
available_variables: [],
|
|
5823
|
+
providers: {}
|
|
5824
|
+
};
|
|
5741
5825
|
}
|
|
5742
5826
|
var NodeConfig = {
|
|
5743
5827
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -5759,6 +5843,9 @@ var NodeConfig = {
|
|
|
5759
5843
|
for (const v of message.available_variables) {
|
|
5760
5844
|
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
5761
5845
|
}
|
|
5846
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
5847
|
+
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
5848
|
+
});
|
|
5762
5849
|
return writer;
|
|
5763
5850
|
},
|
|
5764
5851
|
decode(input, length) {
|
|
@@ -5810,6 +5897,16 @@ var NodeConfig = {
|
|
|
5810
5897
|
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
5811
5898
|
continue;
|
|
5812
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
|
+
}
|
|
5813
5910
|
}
|
|
5814
5911
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5815
5912
|
break;
|
|
@@ -5825,7 +5922,14 @@ var NodeConfig = {
|
|
|
5825
5922
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
5826
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)) : [],
|
|
5827
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)) : [],
|
|
5828
|
-
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
|
+
) : {}
|
|
5829
5933
|
};
|
|
5830
5934
|
},
|
|
5831
5935
|
toJSON(message) {
|
|
@@ -5848,6 +5952,15 @@ var NodeConfig = {
|
|
|
5848
5952
|
if (message.available_variables?.length) {
|
|
5849
5953
|
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
5850
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
|
+
}
|
|
5851
5964
|
return obj;
|
|
5852
5965
|
},
|
|
5853
5966
|
create(base) {
|
|
@@ -5861,6 +5974,83 @@ var NodeConfig = {
|
|
|
5861
5974
|
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
5862
5975
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
5863
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 ?? "";
|
|
5864
6054
|
return message;
|
|
5865
6055
|
}
|
|
5866
6056
|
};
|
|
@@ -6473,7 +6663,7 @@ var TerraformView = {
|
|
|
6473
6663
|
}
|
|
6474
6664
|
};
|
|
6475
6665
|
function createBaseProviderReqView() {
|
|
6476
|
-
return { name: "", source: "", version: "" };
|
|
6666
|
+
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
6477
6667
|
}
|
|
6478
6668
|
var ProviderReqView = {
|
|
6479
6669
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -6486,6 +6676,9 @@ var ProviderReqView = {
|
|
|
6486
6676
|
if (message.version !== "") {
|
|
6487
6677
|
writer.uint32(26).string(message.version);
|
|
6488
6678
|
}
|
|
6679
|
+
for (const v of message.configuration_aliases) {
|
|
6680
|
+
writer.uint32(34).string(v);
|
|
6681
|
+
}
|
|
6489
6682
|
return writer;
|
|
6490
6683
|
},
|
|
6491
6684
|
decode(input, length) {
|
|
@@ -6516,6 +6709,13 @@ var ProviderReqView = {
|
|
|
6516
6709
|
message.version = reader.string();
|
|
6517
6710
|
continue;
|
|
6518
6711
|
}
|
|
6712
|
+
case 4: {
|
|
6713
|
+
if (tag !== 34) {
|
|
6714
|
+
break;
|
|
6715
|
+
}
|
|
6716
|
+
message.configuration_aliases.push(reader.string());
|
|
6717
|
+
continue;
|
|
6718
|
+
}
|
|
6519
6719
|
}
|
|
6520
6720
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6521
6721
|
break;
|
|
@@ -6528,7 +6728,8 @@ var ProviderReqView = {
|
|
|
6528
6728
|
return {
|
|
6529
6729
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
6530
6730
|
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
6531
|
-
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)) : []
|
|
6532
6733
|
};
|
|
6533
6734
|
},
|
|
6534
6735
|
toJSON(message) {
|
|
@@ -6542,6 +6743,9 @@ var ProviderReqView = {
|
|
|
6542
6743
|
if (message.version !== "") {
|
|
6543
6744
|
obj.version = message.version;
|
|
6544
6745
|
}
|
|
6746
|
+
if (message.configuration_aliases?.length) {
|
|
6747
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
6748
|
+
}
|
|
6545
6749
|
return obj;
|
|
6546
6750
|
},
|
|
6547
6751
|
create(base) {
|
|
@@ -6552,6 +6756,7 @@ var ProviderReqView = {
|
|
|
6552
6756
|
message.name = object.name ?? "";
|
|
6553
6757
|
message.source = object.source ?? "";
|
|
6554
6758
|
message.version = object.version ?? "";
|
|
6759
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
6555
6760
|
return message;
|
|
6556
6761
|
}
|
|
6557
6762
|
};
|
|
@@ -6717,7 +6922,7 @@ var BackendView_ConfigEntry = {
|
|
|
6717
6922
|
}
|
|
6718
6923
|
};
|
|
6719
6924
|
function createBaseProviderView() {
|
|
6720
|
-
return { name: "", alias: "", config: {} };
|
|
6925
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
6721
6926
|
}
|
|
6722
6927
|
var ProviderView = {
|
|
6723
6928
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -6728,10 +6933,11 @@ var ProviderView = {
|
|
|
6728
6933
|
writer.uint32(18).string(message.alias);
|
|
6729
6934
|
}
|
|
6730
6935
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
6731
|
-
|
|
6732
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6733
|
-
}
|
|
6936
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6734
6937
|
});
|
|
6938
|
+
for (const v of message.blocks) {
|
|
6939
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
6940
|
+
}
|
|
6735
6941
|
return writer;
|
|
6736
6942
|
},
|
|
6737
6943
|
decode(input, length) {
|
|
@@ -6765,6 +6971,13 @@ var ProviderView = {
|
|
|
6765
6971
|
}
|
|
6766
6972
|
continue;
|
|
6767
6973
|
}
|
|
6974
|
+
case 4: {
|
|
6975
|
+
if (tag !== 34) {
|
|
6976
|
+
break;
|
|
6977
|
+
}
|
|
6978
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
6979
|
+
continue;
|
|
6980
|
+
}
|
|
6768
6981
|
}
|
|
6769
6982
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6770
6983
|
break;
|
|
@@ -6779,11 +6992,12 @@ var ProviderView = {
|
|
|
6779
6992
|
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
6780
6993
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
6781
6994
|
(acc, [key, value]) => {
|
|
6782
|
-
acc[key] = value;
|
|
6995
|
+
acc[key] = globalThis.String(value);
|
|
6783
6996
|
return acc;
|
|
6784
6997
|
},
|
|
6785
6998
|
{}
|
|
6786
|
-
) : {}
|
|
6999
|
+
) : {},
|
|
7000
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
6787
7001
|
};
|
|
6788
7002
|
},
|
|
6789
7003
|
toJSON(message) {
|
|
@@ -6803,6 +7017,9 @@ var ProviderView = {
|
|
|
6803
7017
|
});
|
|
6804
7018
|
}
|
|
6805
7019
|
}
|
|
7020
|
+
if (message.blocks?.length) {
|
|
7021
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
7022
|
+
}
|
|
6806
7023
|
return obj;
|
|
6807
7024
|
},
|
|
6808
7025
|
create(base) {
|
|
@@ -6815,25 +7032,26 @@ var ProviderView = {
|
|
|
6815
7032
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
6816
7033
|
(acc, [key, value]) => {
|
|
6817
7034
|
if (value !== void 0) {
|
|
6818
|
-
acc[key] = value;
|
|
7035
|
+
acc[key] = globalThis.String(value);
|
|
6819
7036
|
}
|
|
6820
7037
|
return acc;
|
|
6821
7038
|
},
|
|
6822
7039
|
{}
|
|
6823
7040
|
);
|
|
7041
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
6824
7042
|
return message;
|
|
6825
7043
|
}
|
|
6826
7044
|
};
|
|
6827
7045
|
function createBaseProviderView_ConfigEntry() {
|
|
6828
|
-
return { key: "", value:
|
|
7046
|
+
return { key: "", value: "" };
|
|
6829
7047
|
}
|
|
6830
7048
|
var ProviderView_ConfigEntry = {
|
|
6831
7049
|
encode(message, writer = new BinaryWriter3()) {
|
|
6832
7050
|
if (message.key !== "") {
|
|
6833
7051
|
writer.uint32(10).string(message.key);
|
|
6834
7052
|
}
|
|
6835
|
-
if (message.value !==
|
|
6836
|
-
|
|
7053
|
+
if (message.value !== "") {
|
|
7054
|
+
writer.uint32(18).string(message.value);
|
|
6837
7055
|
}
|
|
6838
7056
|
return writer;
|
|
6839
7057
|
},
|
|
@@ -6855,7 +7073,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6855
7073
|
if (tag !== 18) {
|
|
6856
7074
|
break;
|
|
6857
7075
|
}
|
|
6858
|
-
message.value =
|
|
7076
|
+
message.value = reader.string();
|
|
6859
7077
|
continue;
|
|
6860
7078
|
}
|
|
6861
7079
|
}
|
|
@@ -6869,7 +7087,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6869
7087
|
fromJSON(object) {
|
|
6870
7088
|
return {
|
|
6871
7089
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6872
|
-
value: isSet3(object
|
|
7090
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6873
7091
|
};
|
|
6874
7092
|
},
|
|
6875
7093
|
toJSON(message) {
|
|
@@ -6877,7 +7095,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6877
7095
|
if (message.key !== "") {
|
|
6878
7096
|
obj.key = message.key;
|
|
6879
7097
|
}
|
|
6880
|
-
if (message.value !==
|
|
7098
|
+
if (message.value !== "") {
|
|
6881
7099
|
obj.value = message.value;
|
|
6882
7100
|
}
|
|
6883
7101
|
return obj;
|
|
@@ -6888,7 +7106,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6888
7106
|
fromPartial(object) {
|
|
6889
7107
|
const message = createBaseProviderView_ConfigEntry();
|
|
6890
7108
|
message.key = object.key ?? "";
|
|
6891
|
-
message.value = object.value ??
|
|
7109
|
+
message.value = object.value ?? "";
|
|
6892
7110
|
return message;
|
|
6893
7111
|
}
|
|
6894
7112
|
};
|
|
@@ -7127,7 +7345,17 @@ var Position2 = {
|
|
|
7127
7345
|
}
|
|
7128
7346
|
};
|
|
7129
7347
|
function createBaseInputDef2() {
|
|
7130
|
-
return {
|
|
7348
|
+
return {
|
|
7349
|
+
name: "",
|
|
7350
|
+
type: "",
|
|
7351
|
+
required: false,
|
|
7352
|
+
description: "",
|
|
7353
|
+
default_value: void 0,
|
|
7354
|
+
validation: [],
|
|
7355
|
+
ephemeral: void 0,
|
|
7356
|
+
nullable: void 0,
|
|
7357
|
+
sensitive: false
|
|
7358
|
+
};
|
|
7131
7359
|
}
|
|
7132
7360
|
var InputDef2 = {
|
|
7133
7361
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -7146,8 +7374,17 @@ var InputDef2 = {
|
|
|
7146
7374
|
if (message.default_value !== void 0) {
|
|
7147
7375
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
7148
7376
|
}
|
|
7149
|
-
|
|
7150
|
-
ValidationBlock2.encode(
|
|
7377
|
+
for (const v of message.validation) {
|
|
7378
|
+
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
7379
|
+
}
|
|
7380
|
+
if (message.ephemeral !== void 0) {
|
|
7381
|
+
writer.uint32(56).bool(message.ephemeral);
|
|
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);
|
|
7151
7388
|
}
|
|
7152
7389
|
return writer;
|
|
7153
7390
|
},
|
|
@@ -7197,7 +7434,28 @@ var InputDef2 = {
|
|
|
7197
7434
|
if (tag !== 50) {
|
|
7198
7435
|
break;
|
|
7199
7436
|
}
|
|
7200
|
-
message.validation
|
|
7437
|
+
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
7438
|
+
continue;
|
|
7439
|
+
}
|
|
7440
|
+
case 7: {
|
|
7441
|
+
if (tag !== 56) {
|
|
7442
|
+
break;
|
|
7443
|
+
}
|
|
7444
|
+
message.ephemeral = reader.bool();
|
|
7445
|
+
continue;
|
|
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();
|
|
7201
7459
|
continue;
|
|
7202
7460
|
}
|
|
7203
7461
|
}
|
|
@@ -7215,7 +7473,10 @@ var InputDef2 = {
|
|
|
7215
7473
|
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
7216
7474
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7217
7475
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
7218
|
-
validation:
|
|
7476
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
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
|
|
7219
7480
|
};
|
|
7220
7481
|
},
|
|
7221
7482
|
toJSON(message) {
|
|
@@ -7235,8 +7496,17 @@ var InputDef2 = {
|
|
|
7235
7496
|
if (message.default_value !== void 0) {
|
|
7236
7497
|
obj.defaultValue = message.default_value;
|
|
7237
7498
|
}
|
|
7238
|
-
if (message.validation
|
|
7239
|
-
obj.validation = ValidationBlock2.toJSON(
|
|
7499
|
+
if (message.validation?.length) {
|
|
7500
|
+
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
7501
|
+
}
|
|
7502
|
+
if (message.ephemeral !== void 0) {
|
|
7503
|
+
obj.ephemeral = message.ephemeral;
|
|
7504
|
+
}
|
|
7505
|
+
if (message.nullable !== void 0) {
|
|
7506
|
+
obj.nullable = message.nullable;
|
|
7507
|
+
}
|
|
7508
|
+
if (message.sensitive !== false) {
|
|
7509
|
+
obj.sensitive = message.sensitive;
|
|
7240
7510
|
}
|
|
7241
7511
|
return obj;
|
|
7242
7512
|
},
|
|
@@ -7250,7 +7520,10 @@ var InputDef2 = {
|
|
|
7250
7520
|
message.required = object.required ?? false;
|
|
7251
7521
|
message.description = object.description ?? "";
|
|
7252
7522
|
message.default_value = object.default_value ?? void 0;
|
|
7253
|
-
message.validation = object.validation
|
|
7523
|
+
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
7524
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
7525
|
+
message.nullable = object.nullable ?? void 0;
|
|
7526
|
+
message.sensitive = object.sensitive ?? false;
|
|
7254
7527
|
return message;
|
|
7255
7528
|
}
|
|
7256
7529
|
};
|
|
@@ -7323,7 +7596,7 @@ var ValidationBlock2 = {
|
|
|
7323
7596
|
}
|
|
7324
7597
|
};
|
|
7325
7598
|
function createBaseOutputDef2() {
|
|
7326
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
7599
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
7327
7600
|
}
|
|
7328
7601
|
var OutputDef2 = {
|
|
7329
7602
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -7339,6 +7612,9 @@ var OutputDef2 = {
|
|
|
7339
7612
|
if (message.sensitive !== false) {
|
|
7340
7613
|
writer.uint32(32).bool(message.sensitive);
|
|
7341
7614
|
}
|
|
7615
|
+
for (const v of message.depends_on) {
|
|
7616
|
+
writer.uint32(42).string(v);
|
|
7617
|
+
}
|
|
7342
7618
|
return writer;
|
|
7343
7619
|
},
|
|
7344
7620
|
decode(input, length) {
|
|
@@ -7376,6 +7652,13 @@ var OutputDef2 = {
|
|
|
7376
7652
|
message.sensitive = reader.bool();
|
|
7377
7653
|
continue;
|
|
7378
7654
|
}
|
|
7655
|
+
case 5: {
|
|
7656
|
+
if (tag !== 42) {
|
|
7657
|
+
break;
|
|
7658
|
+
}
|
|
7659
|
+
message.depends_on.push(reader.string());
|
|
7660
|
+
continue;
|
|
7661
|
+
}
|
|
7379
7662
|
}
|
|
7380
7663
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7381
7664
|
break;
|
|
@@ -7389,7 +7672,8 @@ var OutputDef2 = {
|
|
|
7389
7672
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
7390
7673
|
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
7391
7674
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7392
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
7675
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
7676
|
+
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)) : []
|
|
7393
7677
|
};
|
|
7394
7678
|
},
|
|
7395
7679
|
toJSON(message) {
|
|
@@ -7406,6 +7690,9 @@ var OutputDef2 = {
|
|
|
7406
7690
|
if (message.sensitive !== false) {
|
|
7407
7691
|
obj.sensitive = message.sensitive;
|
|
7408
7692
|
}
|
|
7693
|
+
if (message.depends_on?.length) {
|
|
7694
|
+
obj.dependsOn = message.depends_on;
|
|
7695
|
+
}
|
|
7409
7696
|
return obj;
|
|
7410
7697
|
},
|
|
7411
7698
|
create(base) {
|
|
@@ -7417,6 +7704,7 @@ var OutputDef2 = {
|
|
|
7417
7704
|
message.type = object.type ?? "";
|
|
7418
7705
|
message.description = object.description ?? "";
|
|
7419
7706
|
message.sensitive = object.sensitive ?? false;
|
|
7707
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
7420
7708
|
return message;
|
|
7421
7709
|
}
|
|
7422
7710
|
};
|