@lace-cloud/proto 0.7.1 → 0.8.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 +176 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.mjs +176 -72
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1388,9 +1388,10 @@ function createBaseInputDef() {
|
|
|
1388
1388
|
required: false,
|
|
1389
1389
|
description: "",
|
|
1390
1390
|
default_value: void 0,
|
|
1391
|
-
validation:
|
|
1391
|
+
validation: [],
|
|
1392
1392
|
sensitive: false,
|
|
1393
|
-
nullable: void 0
|
|
1393
|
+
nullable: void 0,
|
|
1394
|
+
ephemeral: void 0
|
|
1394
1395
|
};
|
|
1395
1396
|
}
|
|
1396
1397
|
var InputDef = {
|
|
@@ -1410,8 +1411,8 @@ var InputDef = {
|
|
|
1410
1411
|
if (message.default_value !== void 0) {
|
|
1411
1412
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
1412
1413
|
}
|
|
1413
|
-
|
|
1414
|
-
ValidationBlock.encode(
|
|
1414
|
+
for (const v of message.validation) {
|
|
1415
|
+
ValidationBlock.encode(v, writer.uint32(50).fork()).join();
|
|
1415
1416
|
}
|
|
1416
1417
|
if (message.sensitive !== false) {
|
|
1417
1418
|
writer.uint32(56).bool(message.sensitive);
|
|
@@ -1419,6 +1420,9 @@ var InputDef = {
|
|
|
1419
1420
|
if (message.nullable !== void 0) {
|
|
1420
1421
|
writer.uint32(64).bool(message.nullable);
|
|
1421
1422
|
}
|
|
1423
|
+
if (message.ephemeral !== void 0) {
|
|
1424
|
+
writer.uint32(72).bool(message.ephemeral);
|
|
1425
|
+
}
|
|
1422
1426
|
return writer;
|
|
1423
1427
|
},
|
|
1424
1428
|
decode(input, length) {
|
|
@@ -1467,7 +1471,7 @@ var InputDef = {
|
|
|
1467
1471
|
if (tag !== 50) {
|
|
1468
1472
|
break;
|
|
1469
1473
|
}
|
|
1470
|
-
message.validation
|
|
1474
|
+
message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
|
|
1471
1475
|
continue;
|
|
1472
1476
|
}
|
|
1473
1477
|
case 7: {
|
|
@@ -1484,6 +1488,13 @@ var InputDef = {
|
|
|
1484
1488
|
message.nullable = reader.bool();
|
|
1485
1489
|
continue;
|
|
1486
1490
|
}
|
|
1491
|
+
case 9: {
|
|
1492
|
+
if (tag !== 72) {
|
|
1493
|
+
break;
|
|
1494
|
+
}
|
|
1495
|
+
message.ephemeral = reader.bool();
|
|
1496
|
+
continue;
|
|
1497
|
+
}
|
|
1487
1498
|
}
|
|
1488
1499
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1489
1500
|
break;
|
|
@@ -1499,9 +1510,10 @@ var InputDef = {
|
|
|
1499
1510
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1500
1511
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1501
1512
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1502
|
-
validation:
|
|
1513
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
|
|
1503
1514
|
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1504
|
-
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1515
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
1516
|
+
ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
1505
1517
|
};
|
|
1506
1518
|
},
|
|
1507
1519
|
toJSON(message) {
|
|
@@ -1521,8 +1533,8 @@ var InputDef = {
|
|
|
1521
1533
|
if (message.default_value !== void 0) {
|
|
1522
1534
|
obj.defaultValue = message.default_value;
|
|
1523
1535
|
}
|
|
1524
|
-
if (message.validation
|
|
1525
|
-
obj.validation = ValidationBlock.toJSON(
|
|
1536
|
+
if (message.validation?.length) {
|
|
1537
|
+
obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
|
|
1526
1538
|
}
|
|
1527
1539
|
if (message.sensitive !== false) {
|
|
1528
1540
|
obj.sensitive = message.sensitive;
|
|
@@ -1530,6 +1542,9 @@ var InputDef = {
|
|
|
1530
1542
|
if (message.nullable !== void 0) {
|
|
1531
1543
|
obj.nullable = message.nullable;
|
|
1532
1544
|
}
|
|
1545
|
+
if (message.ephemeral !== void 0) {
|
|
1546
|
+
obj.ephemeral = message.ephemeral;
|
|
1547
|
+
}
|
|
1533
1548
|
return obj;
|
|
1534
1549
|
},
|
|
1535
1550
|
create(base) {
|
|
@@ -1542,9 +1557,10 @@ var InputDef = {
|
|
|
1542
1557
|
message.required = object.required ?? false;
|
|
1543
1558
|
message.description = object.description ?? "";
|
|
1544
1559
|
message.default_value = object.default_value ?? void 0;
|
|
1545
|
-
message.validation = object.validation
|
|
1560
|
+
message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
|
|
1546
1561
|
message.sensitive = object.sensitive ?? false;
|
|
1547
1562
|
message.nullable = object.nullable ?? void 0;
|
|
1563
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
1548
1564
|
return message;
|
|
1549
1565
|
}
|
|
1550
1566
|
};
|
|
@@ -1617,7 +1633,7 @@ var ValidationBlock = {
|
|
|
1617
1633
|
}
|
|
1618
1634
|
};
|
|
1619
1635
|
function createBaseOutputDef() {
|
|
1620
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
1636
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
1621
1637
|
}
|
|
1622
1638
|
var OutputDef = {
|
|
1623
1639
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -1633,6 +1649,9 @@ var OutputDef = {
|
|
|
1633
1649
|
if (message.sensitive !== false) {
|
|
1634
1650
|
writer.uint32(32).bool(message.sensitive);
|
|
1635
1651
|
}
|
|
1652
|
+
for (const v of message.depends_on) {
|
|
1653
|
+
writer.uint32(42).string(v);
|
|
1654
|
+
}
|
|
1636
1655
|
return writer;
|
|
1637
1656
|
},
|
|
1638
1657
|
decode(input, length) {
|
|
@@ -1670,6 +1689,13 @@ var OutputDef = {
|
|
|
1670
1689
|
message.sensitive = reader.bool();
|
|
1671
1690
|
continue;
|
|
1672
1691
|
}
|
|
1692
|
+
case 5: {
|
|
1693
|
+
if (tag !== 42) {
|
|
1694
|
+
break;
|
|
1695
|
+
}
|
|
1696
|
+
message.depends_on.push(reader.string());
|
|
1697
|
+
continue;
|
|
1698
|
+
}
|
|
1673
1699
|
}
|
|
1674
1700
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1675
1701
|
break;
|
|
@@ -1683,7 +1709,8 @@ var OutputDef = {
|
|
|
1683
1709
|
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
1684
1710
|
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
1685
1711
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1686
|
-
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
1712
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1713
|
+
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
1714
|
};
|
|
1688
1715
|
},
|
|
1689
1716
|
toJSON(message) {
|
|
@@ -1700,6 +1727,9 @@ var OutputDef = {
|
|
|
1700
1727
|
if (message.sensitive !== false) {
|
|
1701
1728
|
obj.sensitive = message.sensitive;
|
|
1702
1729
|
}
|
|
1730
|
+
if (message.depends_on?.length) {
|
|
1731
|
+
obj.dependsOn = message.depends_on;
|
|
1732
|
+
}
|
|
1703
1733
|
return obj;
|
|
1704
1734
|
},
|
|
1705
1735
|
create(base) {
|
|
@@ -1711,6 +1741,7 @@ var OutputDef = {
|
|
|
1711
1741
|
message.type = object.type ?? "";
|
|
1712
1742
|
message.description = object.description ?? "";
|
|
1713
1743
|
message.sensitive = object.sensitive ?? false;
|
|
1744
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
1714
1745
|
return message;
|
|
1715
1746
|
}
|
|
1716
1747
|
};
|
|
@@ -1896,7 +1927,7 @@ var Local = {
|
|
|
1896
1927
|
}
|
|
1897
1928
|
};
|
|
1898
1929
|
function createBaseUse() {
|
|
1899
|
-
return { id: "", module: "", inputs: {}, depends_on: [] };
|
|
1930
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1900
1931
|
}
|
|
1901
1932
|
var Use = {
|
|
1902
1933
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -1912,6 +1943,12 @@ var Use = {
|
|
|
1912
1943
|
for (const v of message.depends_on) {
|
|
1913
1944
|
writer.uint32(34).string(v);
|
|
1914
1945
|
}
|
|
1946
|
+
if (message.count !== void 0) {
|
|
1947
|
+
Binding.encode(message.count, writer.uint32(42).fork()).join();
|
|
1948
|
+
}
|
|
1949
|
+
if (message.for_each !== void 0) {
|
|
1950
|
+
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1951
|
+
}
|
|
1915
1952
|
return writer;
|
|
1916
1953
|
},
|
|
1917
1954
|
decode(input, length) {
|
|
@@ -1952,6 +1989,20 @@ var Use = {
|
|
|
1952
1989
|
message.depends_on.push(reader.string());
|
|
1953
1990
|
continue;
|
|
1954
1991
|
}
|
|
1992
|
+
case 5: {
|
|
1993
|
+
if (tag !== 42) {
|
|
1994
|
+
break;
|
|
1995
|
+
}
|
|
1996
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
1997
|
+
continue;
|
|
1998
|
+
}
|
|
1999
|
+
case 6: {
|
|
2000
|
+
if (tag !== 50) {
|
|
2001
|
+
break;
|
|
2002
|
+
}
|
|
2003
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
2004
|
+
continue;
|
|
2005
|
+
}
|
|
1955
2006
|
}
|
|
1956
2007
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1957
2008
|
break;
|
|
@@ -1971,7 +2022,9 @@ var Use = {
|
|
|
1971
2022
|
},
|
|
1972
2023
|
{}
|
|
1973
2024
|
) : {},
|
|
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)) : []
|
|
2025
|
+
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)) : [],
|
|
2026
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
2027
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
1975
2028
|
};
|
|
1976
2029
|
},
|
|
1977
2030
|
toJSON(message) {
|
|
@@ -1994,6 +2047,12 @@ var Use = {
|
|
|
1994
2047
|
if (message.depends_on?.length) {
|
|
1995
2048
|
obj.dependsOn = message.depends_on;
|
|
1996
2049
|
}
|
|
2050
|
+
if (message.count !== void 0) {
|
|
2051
|
+
obj.count = Binding.toJSON(message.count);
|
|
2052
|
+
}
|
|
2053
|
+
if (message.for_each !== void 0) {
|
|
2054
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
2055
|
+
}
|
|
1997
2056
|
return obj;
|
|
1998
2057
|
},
|
|
1999
2058
|
create(base) {
|
|
@@ -2013,6 +2072,8 @@ var Use = {
|
|
|
2013
2072
|
{}
|
|
2014
2073
|
);
|
|
2015
2074
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2075
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2076
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2016
2077
|
return message;
|
|
2017
2078
|
}
|
|
2018
2079
|
};
|
|
@@ -3421,9 +3482,7 @@ var ProviderConfig = {
|
|
|
3421
3482
|
writer.uint32(18).string(message.alias);
|
|
3422
3483
|
}
|
|
3423
3484
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3424
|
-
|
|
3425
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3426
|
-
}
|
|
3485
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3427
3486
|
});
|
|
3428
3487
|
for (const v of message.blocks) {
|
|
3429
3488
|
Block.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -3482,7 +3541,7 @@ var ProviderConfig = {
|
|
|
3482
3541
|
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3483
3542
|
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3484
3543
|
(acc, [key, value]) => {
|
|
3485
|
-
acc[key] = value;
|
|
3544
|
+
acc[key] = Binding.fromJSON(value);
|
|
3486
3545
|
return acc;
|
|
3487
3546
|
},
|
|
3488
3547
|
{}
|
|
@@ -3503,7 +3562,7 @@ var ProviderConfig = {
|
|
|
3503
3562
|
if (entries.length > 0) {
|
|
3504
3563
|
obj.config = {};
|
|
3505
3564
|
entries.forEach(([k, v]) => {
|
|
3506
|
-
obj.config[k] = v;
|
|
3565
|
+
obj.config[k] = Binding.toJSON(v);
|
|
3507
3566
|
});
|
|
3508
3567
|
}
|
|
3509
3568
|
}
|
|
@@ -3522,7 +3581,7 @@ var ProviderConfig = {
|
|
|
3522
3581
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3523
3582
|
(acc, [key, value]) => {
|
|
3524
3583
|
if (value !== void 0) {
|
|
3525
|
-
acc[key] = value;
|
|
3584
|
+
acc[key] = Binding.fromPartial(value);
|
|
3526
3585
|
}
|
|
3527
3586
|
return acc;
|
|
3528
3587
|
},
|
|
@@ -3541,7 +3600,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3541
3600
|
writer.uint32(10).string(message.key);
|
|
3542
3601
|
}
|
|
3543
3602
|
if (message.value !== void 0) {
|
|
3544
|
-
|
|
3603
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
3545
3604
|
}
|
|
3546
3605
|
return writer;
|
|
3547
3606
|
},
|
|
@@ -3563,7 +3622,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3563
3622
|
if (tag !== 18) {
|
|
3564
3623
|
break;
|
|
3565
3624
|
}
|
|
3566
|
-
message.value =
|
|
3625
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
3567
3626
|
continue;
|
|
3568
3627
|
}
|
|
3569
3628
|
}
|
|
@@ -3577,7 +3636,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3577
3636
|
fromJSON(object) {
|
|
3578
3637
|
return {
|
|
3579
3638
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3580
|
-
value: isSet2(object
|
|
3639
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
3581
3640
|
};
|
|
3582
3641
|
},
|
|
3583
3642
|
toJSON(message) {
|
|
@@ -3586,7 +3645,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3586
3645
|
obj.key = message.key;
|
|
3587
3646
|
}
|
|
3588
3647
|
if (message.value !== void 0) {
|
|
3589
|
-
obj.value = message.value;
|
|
3648
|
+
obj.value = Binding.toJSON(message.value);
|
|
3590
3649
|
}
|
|
3591
3650
|
return obj;
|
|
3592
3651
|
},
|
|
@@ -3596,7 +3655,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3596
3655
|
fromPartial(object) {
|
|
3597
3656
|
const message = createBaseProviderConfig_ConfigEntry();
|
|
3598
3657
|
message.key = object.key ?? "";
|
|
3599
|
-
message.value = object.value
|
|
3658
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
3600
3659
|
return message;
|
|
3601
3660
|
}
|
|
3602
3661
|
};
|
|
@@ -4234,6 +4293,33 @@ function isGroupUse(bundle, use) {
|
|
|
4234
4293
|
|
|
4235
4294
|
// src/projection/derive-edges.ts
|
|
4236
4295
|
var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_]*)\.([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
4296
|
+
function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
|
|
4297
|
+
if (binding.out?.module && binding.out.name) {
|
|
4298
|
+
edges.push({
|
|
4299
|
+
source_instance: binding.out.module,
|
|
4300
|
+
target_instance: targetId,
|
|
4301
|
+
from_output: binding.out.name,
|
|
4302
|
+
to_input: toInput
|
|
4303
|
+
});
|
|
4304
|
+
return;
|
|
4305
|
+
}
|
|
4306
|
+
if (binding.expr?.value) {
|
|
4307
|
+
for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
|
|
4308
|
+
const srcInstance = match[1];
|
|
4309
|
+
const srcOutput = match[2];
|
|
4310
|
+
if (!useIds.has(srcInstance)) continue;
|
|
4311
|
+
const key = `${srcInstance}:${targetId}:${srcOutput}:${toInput}`;
|
|
4312
|
+
if (seen.has(key)) continue;
|
|
4313
|
+
seen.add(key);
|
|
4314
|
+
edges.push({
|
|
4315
|
+
source_instance: srcInstance,
|
|
4316
|
+
target_instance: targetId,
|
|
4317
|
+
from_output: srcOutput,
|
|
4318
|
+
to_input: toInput
|
|
4319
|
+
});
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4237
4323
|
function deriveEdges(uses) {
|
|
4238
4324
|
const useIds = new Set(uses.map((u) => u.id));
|
|
4239
4325
|
const edges = [];
|
|
@@ -4241,31 +4327,13 @@ function deriveEdges(uses) {
|
|
|
4241
4327
|
for (const target of uses) {
|
|
4242
4328
|
const inputs = target.inputs ?? {};
|
|
4243
4329
|
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
|
-
}
|
|
4330
|
+
emitEdgesFromBinding(binding, target.id, inputName, useIds, seen, edges);
|
|
4331
|
+
}
|
|
4332
|
+
if (target.count) {
|
|
4333
|
+
emitEdgesFromBinding(target.count, target.id, "count", useIds, seen, edges);
|
|
4334
|
+
}
|
|
4335
|
+
if (target.for_each) {
|
|
4336
|
+
emitEdgesFromBinding(target.for_each, target.id, "for_each", useIds, seen, edges);
|
|
4269
4337
|
}
|
|
4270
4338
|
}
|
|
4271
4339
|
return edges;
|
|
@@ -6774,9 +6842,7 @@ var ProviderView = {
|
|
|
6774
6842
|
writer.uint32(18).string(message.alias);
|
|
6775
6843
|
}
|
|
6776
6844
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
6777
|
-
|
|
6778
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6779
|
-
}
|
|
6845
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
6780
6846
|
});
|
|
6781
6847
|
return writer;
|
|
6782
6848
|
},
|
|
@@ -6825,7 +6891,7 @@ var ProviderView = {
|
|
|
6825
6891
|
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
6826
6892
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
6827
6893
|
(acc, [key, value]) => {
|
|
6828
|
-
acc[key] = value;
|
|
6894
|
+
acc[key] = globalThis.String(value);
|
|
6829
6895
|
return acc;
|
|
6830
6896
|
},
|
|
6831
6897
|
{}
|
|
@@ -6861,7 +6927,7 @@ var ProviderView = {
|
|
|
6861
6927
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
6862
6928
|
(acc, [key, value]) => {
|
|
6863
6929
|
if (value !== void 0) {
|
|
6864
|
-
acc[key] = value;
|
|
6930
|
+
acc[key] = globalThis.String(value);
|
|
6865
6931
|
}
|
|
6866
6932
|
return acc;
|
|
6867
6933
|
},
|
|
@@ -6871,15 +6937,15 @@ var ProviderView = {
|
|
|
6871
6937
|
}
|
|
6872
6938
|
};
|
|
6873
6939
|
function createBaseProviderView_ConfigEntry() {
|
|
6874
|
-
return { key: "", value:
|
|
6940
|
+
return { key: "", value: "" };
|
|
6875
6941
|
}
|
|
6876
6942
|
var ProviderView_ConfigEntry = {
|
|
6877
6943
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
6878
6944
|
if (message.key !== "") {
|
|
6879
6945
|
writer.uint32(10).string(message.key);
|
|
6880
6946
|
}
|
|
6881
|
-
if (message.value !==
|
|
6882
|
-
|
|
6947
|
+
if (message.value !== "") {
|
|
6948
|
+
writer.uint32(18).string(message.value);
|
|
6883
6949
|
}
|
|
6884
6950
|
return writer;
|
|
6885
6951
|
},
|
|
@@ -6901,7 +6967,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6901
6967
|
if (tag !== 18) {
|
|
6902
6968
|
break;
|
|
6903
6969
|
}
|
|
6904
|
-
message.value =
|
|
6970
|
+
message.value = reader.string();
|
|
6905
6971
|
continue;
|
|
6906
6972
|
}
|
|
6907
6973
|
}
|
|
@@ -6915,7 +6981,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6915
6981
|
fromJSON(object) {
|
|
6916
6982
|
return {
|
|
6917
6983
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
6918
|
-
value: isSet3(object
|
|
6984
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
6919
6985
|
};
|
|
6920
6986
|
},
|
|
6921
6987
|
toJSON(message) {
|
|
@@ -6923,7 +6989,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6923
6989
|
if (message.key !== "") {
|
|
6924
6990
|
obj.key = message.key;
|
|
6925
6991
|
}
|
|
6926
|
-
if (message.value !==
|
|
6992
|
+
if (message.value !== "") {
|
|
6927
6993
|
obj.value = message.value;
|
|
6928
6994
|
}
|
|
6929
6995
|
return obj;
|
|
@@ -6934,7 +7000,7 @@ var ProviderView_ConfigEntry = {
|
|
|
6934
7000
|
fromPartial(object) {
|
|
6935
7001
|
const message = createBaseProviderView_ConfigEntry();
|
|
6936
7002
|
message.key = object.key ?? "";
|
|
6937
|
-
message.value = object.value ??
|
|
7003
|
+
message.value = object.value ?? "";
|
|
6938
7004
|
return message;
|
|
6939
7005
|
}
|
|
6940
7006
|
};
|
|
@@ -7173,7 +7239,15 @@ var Position2 = {
|
|
|
7173
7239
|
}
|
|
7174
7240
|
};
|
|
7175
7241
|
function createBaseInputDef2() {
|
|
7176
|
-
return {
|
|
7242
|
+
return {
|
|
7243
|
+
name: "",
|
|
7244
|
+
type: "",
|
|
7245
|
+
required: false,
|
|
7246
|
+
description: "",
|
|
7247
|
+
default_value: void 0,
|
|
7248
|
+
validation: [],
|
|
7249
|
+
ephemeral: void 0
|
|
7250
|
+
};
|
|
7177
7251
|
}
|
|
7178
7252
|
var InputDef2 = {
|
|
7179
7253
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -7192,8 +7266,11 @@ var InputDef2 = {
|
|
|
7192
7266
|
if (message.default_value !== void 0) {
|
|
7193
7267
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
7194
7268
|
}
|
|
7195
|
-
|
|
7196
|
-
ValidationBlock2.encode(
|
|
7269
|
+
for (const v of message.validation) {
|
|
7270
|
+
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
7271
|
+
}
|
|
7272
|
+
if (message.ephemeral !== void 0) {
|
|
7273
|
+
writer.uint32(56).bool(message.ephemeral);
|
|
7197
7274
|
}
|
|
7198
7275
|
return writer;
|
|
7199
7276
|
},
|
|
@@ -7243,7 +7320,14 @@ var InputDef2 = {
|
|
|
7243
7320
|
if (tag !== 50) {
|
|
7244
7321
|
break;
|
|
7245
7322
|
}
|
|
7246
|
-
message.validation
|
|
7323
|
+
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
7324
|
+
continue;
|
|
7325
|
+
}
|
|
7326
|
+
case 7: {
|
|
7327
|
+
if (tag !== 56) {
|
|
7328
|
+
break;
|
|
7329
|
+
}
|
|
7330
|
+
message.ephemeral = reader.bool();
|
|
7247
7331
|
continue;
|
|
7248
7332
|
}
|
|
7249
7333
|
}
|
|
@@ -7261,7 +7345,8 @@ var InputDef2 = {
|
|
|
7261
7345
|
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
7262
7346
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7263
7347
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
7264
|
-
validation:
|
|
7348
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
7349
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
7265
7350
|
};
|
|
7266
7351
|
},
|
|
7267
7352
|
toJSON(message) {
|
|
@@ -7281,8 +7366,11 @@ var InputDef2 = {
|
|
|
7281
7366
|
if (message.default_value !== void 0) {
|
|
7282
7367
|
obj.defaultValue = message.default_value;
|
|
7283
7368
|
}
|
|
7284
|
-
if (message.validation
|
|
7285
|
-
obj.validation = ValidationBlock2.toJSON(
|
|
7369
|
+
if (message.validation?.length) {
|
|
7370
|
+
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
7371
|
+
}
|
|
7372
|
+
if (message.ephemeral !== void 0) {
|
|
7373
|
+
obj.ephemeral = message.ephemeral;
|
|
7286
7374
|
}
|
|
7287
7375
|
return obj;
|
|
7288
7376
|
},
|
|
@@ -7296,7 +7384,8 @@ var InputDef2 = {
|
|
|
7296
7384
|
message.required = object.required ?? false;
|
|
7297
7385
|
message.description = object.description ?? "";
|
|
7298
7386
|
message.default_value = object.default_value ?? void 0;
|
|
7299
|
-
message.validation = object.validation
|
|
7387
|
+
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
7388
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
7300
7389
|
return message;
|
|
7301
7390
|
}
|
|
7302
7391
|
};
|
|
@@ -7369,7 +7458,7 @@ var ValidationBlock2 = {
|
|
|
7369
7458
|
}
|
|
7370
7459
|
};
|
|
7371
7460
|
function createBaseOutputDef2() {
|
|
7372
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
7461
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
7373
7462
|
}
|
|
7374
7463
|
var OutputDef2 = {
|
|
7375
7464
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -7385,6 +7474,9 @@ var OutputDef2 = {
|
|
|
7385
7474
|
if (message.sensitive !== false) {
|
|
7386
7475
|
writer.uint32(32).bool(message.sensitive);
|
|
7387
7476
|
}
|
|
7477
|
+
for (const v of message.depends_on) {
|
|
7478
|
+
writer.uint32(42).string(v);
|
|
7479
|
+
}
|
|
7388
7480
|
return writer;
|
|
7389
7481
|
},
|
|
7390
7482
|
decode(input, length) {
|
|
@@ -7422,6 +7514,13 @@ var OutputDef2 = {
|
|
|
7422
7514
|
message.sensitive = reader.bool();
|
|
7423
7515
|
continue;
|
|
7424
7516
|
}
|
|
7517
|
+
case 5: {
|
|
7518
|
+
if (tag !== 42) {
|
|
7519
|
+
break;
|
|
7520
|
+
}
|
|
7521
|
+
message.depends_on.push(reader.string());
|
|
7522
|
+
continue;
|
|
7523
|
+
}
|
|
7425
7524
|
}
|
|
7426
7525
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7427
7526
|
break;
|
|
@@ -7435,7 +7534,8 @@ var OutputDef2 = {
|
|
|
7435
7534
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
7436
7535
|
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
7437
7536
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
7438
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
7537
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
7538
|
+
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
7539
|
};
|
|
7440
7540
|
},
|
|
7441
7541
|
toJSON(message) {
|
|
@@ -7452,6 +7552,9 @@ var OutputDef2 = {
|
|
|
7452
7552
|
if (message.sensitive !== false) {
|
|
7453
7553
|
obj.sensitive = message.sensitive;
|
|
7454
7554
|
}
|
|
7555
|
+
if (message.depends_on?.length) {
|
|
7556
|
+
obj.dependsOn = message.depends_on;
|
|
7557
|
+
}
|
|
7455
7558
|
return obj;
|
|
7456
7559
|
},
|
|
7457
7560
|
create(base) {
|
|
@@ -7463,6 +7566,7 @@ var OutputDef2 = {
|
|
|
7463
7566
|
message.type = object.type ?? "";
|
|
7464
7567
|
message.description = object.description ?? "";
|
|
7465
7568
|
message.sensitive = object.sensitive ?? false;
|
|
7569
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
7466
7570
|
return message;
|
|
7467
7571
|
}
|
|
7468
7572
|
};
|