@lace-cloud/host 0.7.0 → 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 +142 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.mjs +142 -47
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1351,9 +1351,10 @@ function createBaseInputDef() {
|
|
|
1351
1351
|
required: false,
|
|
1352
1352
|
description: "",
|
|
1353
1353
|
default_value: void 0,
|
|
1354
|
-
validation:
|
|
1354
|
+
validation: [],
|
|
1355
1355
|
sensitive: false,
|
|
1356
|
-
nullable: void 0
|
|
1356
|
+
nullable: void 0,
|
|
1357
|
+
ephemeral: void 0
|
|
1357
1358
|
};
|
|
1358
1359
|
}
|
|
1359
1360
|
var InputDef = {
|
|
@@ -1373,8 +1374,8 @@ var InputDef = {
|
|
|
1373
1374
|
if (message.default_value !== void 0) {
|
|
1374
1375
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
1375
1376
|
}
|
|
1376
|
-
|
|
1377
|
-
ValidationBlock.encode(
|
|
1377
|
+
for (const v of message.validation) {
|
|
1378
|
+
ValidationBlock.encode(v, writer.uint32(50).fork()).join();
|
|
1378
1379
|
}
|
|
1379
1380
|
if (message.sensitive !== false) {
|
|
1380
1381
|
writer.uint32(56).bool(message.sensitive);
|
|
@@ -1382,6 +1383,9 @@ var InputDef = {
|
|
|
1382
1383
|
if (message.nullable !== void 0) {
|
|
1383
1384
|
writer.uint32(64).bool(message.nullable);
|
|
1384
1385
|
}
|
|
1386
|
+
if (message.ephemeral !== void 0) {
|
|
1387
|
+
writer.uint32(72).bool(message.ephemeral);
|
|
1388
|
+
}
|
|
1385
1389
|
return writer;
|
|
1386
1390
|
},
|
|
1387
1391
|
decode(input, length) {
|
|
@@ -1430,7 +1434,7 @@ var InputDef = {
|
|
|
1430
1434
|
if (tag !== 50) {
|
|
1431
1435
|
break;
|
|
1432
1436
|
}
|
|
1433
|
-
message.validation
|
|
1437
|
+
message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
|
|
1434
1438
|
continue;
|
|
1435
1439
|
}
|
|
1436
1440
|
case 7: {
|
|
@@ -1447,6 +1451,13 @@ var InputDef = {
|
|
|
1447
1451
|
message.nullable = reader.bool();
|
|
1448
1452
|
continue;
|
|
1449
1453
|
}
|
|
1454
|
+
case 9: {
|
|
1455
|
+
if (tag !== 72) {
|
|
1456
|
+
break;
|
|
1457
|
+
}
|
|
1458
|
+
message.ephemeral = reader.bool();
|
|
1459
|
+
continue;
|
|
1460
|
+
}
|
|
1450
1461
|
}
|
|
1451
1462
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1452
1463
|
break;
|
|
@@ -1462,9 +1473,10 @@ var InputDef = {
|
|
|
1462
1473
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1463
1474
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1464
1475
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1465
|
-
validation:
|
|
1476
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
|
|
1466
1477
|
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1467
|
-
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1478
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
1479
|
+
ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
1468
1480
|
};
|
|
1469
1481
|
},
|
|
1470
1482
|
toJSON(message) {
|
|
@@ -1484,8 +1496,8 @@ var InputDef = {
|
|
|
1484
1496
|
if (message.default_value !== void 0) {
|
|
1485
1497
|
obj.defaultValue = message.default_value;
|
|
1486
1498
|
}
|
|
1487
|
-
if (message.validation
|
|
1488
|
-
obj.validation = ValidationBlock.toJSON(
|
|
1499
|
+
if (message.validation?.length) {
|
|
1500
|
+
obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
|
|
1489
1501
|
}
|
|
1490
1502
|
if (message.sensitive !== false) {
|
|
1491
1503
|
obj.sensitive = message.sensitive;
|
|
@@ -1493,6 +1505,9 @@ var InputDef = {
|
|
|
1493
1505
|
if (message.nullable !== void 0) {
|
|
1494
1506
|
obj.nullable = message.nullable;
|
|
1495
1507
|
}
|
|
1508
|
+
if (message.ephemeral !== void 0) {
|
|
1509
|
+
obj.ephemeral = message.ephemeral;
|
|
1510
|
+
}
|
|
1496
1511
|
return obj;
|
|
1497
1512
|
},
|
|
1498
1513
|
create(base) {
|
|
@@ -1505,9 +1520,10 @@ var InputDef = {
|
|
|
1505
1520
|
message.required = object.required ?? false;
|
|
1506
1521
|
message.description = object.description ?? "";
|
|
1507
1522
|
message.default_value = object.default_value ?? void 0;
|
|
1508
|
-
message.validation = object.validation
|
|
1523
|
+
message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
|
|
1509
1524
|
message.sensitive = object.sensitive ?? false;
|
|
1510
1525
|
message.nullable = object.nullable ?? void 0;
|
|
1526
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
1511
1527
|
return message;
|
|
1512
1528
|
}
|
|
1513
1529
|
};
|
|
@@ -1580,7 +1596,7 @@ var ValidationBlock = {
|
|
|
1580
1596
|
}
|
|
1581
1597
|
};
|
|
1582
1598
|
function createBaseOutputDef() {
|
|
1583
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
1599
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
1584
1600
|
}
|
|
1585
1601
|
var OutputDef = {
|
|
1586
1602
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -1596,6 +1612,9 @@ var OutputDef = {
|
|
|
1596
1612
|
if (message.sensitive !== false) {
|
|
1597
1613
|
writer.uint32(32).bool(message.sensitive);
|
|
1598
1614
|
}
|
|
1615
|
+
for (const v of message.depends_on) {
|
|
1616
|
+
writer.uint32(42).string(v);
|
|
1617
|
+
}
|
|
1599
1618
|
return writer;
|
|
1600
1619
|
},
|
|
1601
1620
|
decode(input, length) {
|
|
@@ -1633,6 +1652,13 @@ var OutputDef = {
|
|
|
1633
1652
|
message.sensitive = reader.bool();
|
|
1634
1653
|
continue;
|
|
1635
1654
|
}
|
|
1655
|
+
case 5: {
|
|
1656
|
+
if (tag !== 42) {
|
|
1657
|
+
break;
|
|
1658
|
+
}
|
|
1659
|
+
message.depends_on.push(reader.string());
|
|
1660
|
+
continue;
|
|
1661
|
+
}
|
|
1636
1662
|
}
|
|
1637
1663
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1638
1664
|
break;
|
|
@@ -1646,7 +1672,8 @@ var OutputDef = {
|
|
|
1646
1672
|
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
1647
1673
|
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
1648
1674
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1649
|
-
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
1675
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1676
|
+
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)) : []
|
|
1650
1677
|
};
|
|
1651
1678
|
},
|
|
1652
1679
|
toJSON(message) {
|
|
@@ -1663,6 +1690,9 @@ var OutputDef = {
|
|
|
1663
1690
|
if (message.sensitive !== false) {
|
|
1664
1691
|
obj.sensitive = message.sensitive;
|
|
1665
1692
|
}
|
|
1693
|
+
if (message.depends_on?.length) {
|
|
1694
|
+
obj.dependsOn = message.depends_on;
|
|
1695
|
+
}
|
|
1666
1696
|
return obj;
|
|
1667
1697
|
},
|
|
1668
1698
|
create(base) {
|
|
@@ -1674,6 +1704,7 @@ var OutputDef = {
|
|
|
1674
1704
|
message.type = object.type ?? "";
|
|
1675
1705
|
message.description = object.description ?? "";
|
|
1676
1706
|
message.sensitive = object.sensitive ?? false;
|
|
1707
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
1677
1708
|
return message;
|
|
1678
1709
|
}
|
|
1679
1710
|
};
|
|
@@ -1859,7 +1890,7 @@ var Local = {
|
|
|
1859
1890
|
}
|
|
1860
1891
|
};
|
|
1861
1892
|
function createBaseUse() {
|
|
1862
|
-
return { id: "", module: "", inputs: {}, depends_on: [] };
|
|
1893
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1863
1894
|
}
|
|
1864
1895
|
var Use = {
|
|
1865
1896
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -1875,6 +1906,12 @@ var Use = {
|
|
|
1875
1906
|
for (const v of message.depends_on) {
|
|
1876
1907
|
writer.uint32(34).string(v);
|
|
1877
1908
|
}
|
|
1909
|
+
if (message.count !== void 0) {
|
|
1910
|
+
Binding.encode(message.count, writer.uint32(42).fork()).join();
|
|
1911
|
+
}
|
|
1912
|
+
if (message.for_each !== void 0) {
|
|
1913
|
+
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1914
|
+
}
|
|
1878
1915
|
return writer;
|
|
1879
1916
|
},
|
|
1880
1917
|
decode(input, length) {
|
|
@@ -1915,6 +1952,20 @@ var Use = {
|
|
|
1915
1952
|
message.depends_on.push(reader.string());
|
|
1916
1953
|
continue;
|
|
1917
1954
|
}
|
|
1955
|
+
case 5: {
|
|
1956
|
+
if (tag !== 42) {
|
|
1957
|
+
break;
|
|
1958
|
+
}
|
|
1959
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
1960
|
+
continue;
|
|
1961
|
+
}
|
|
1962
|
+
case 6: {
|
|
1963
|
+
if (tag !== 50) {
|
|
1964
|
+
break;
|
|
1965
|
+
}
|
|
1966
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
1967
|
+
continue;
|
|
1968
|
+
}
|
|
1918
1969
|
}
|
|
1919
1970
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1920
1971
|
break;
|
|
@@ -1934,7 +1985,9 @@ var Use = {
|
|
|
1934
1985
|
},
|
|
1935
1986
|
{}
|
|
1936
1987
|
) : {},
|
|
1937
|
-
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
|
+
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)) : [],
|
|
1989
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
1990
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
1938
1991
|
};
|
|
1939
1992
|
},
|
|
1940
1993
|
toJSON(message) {
|
|
@@ -1957,6 +2010,12 @@ var Use = {
|
|
|
1957
2010
|
if (message.depends_on?.length) {
|
|
1958
2011
|
obj.dependsOn = message.depends_on;
|
|
1959
2012
|
}
|
|
2013
|
+
if (message.count !== void 0) {
|
|
2014
|
+
obj.count = Binding.toJSON(message.count);
|
|
2015
|
+
}
|
|
2016
|
+
if (message.for_each !== void 0) {
|
|
2017
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
2018
|
+
}
|
|
1960
2019
|
return obj;
|
|
1961
2020
|
},
|
|
1962
2021
|
create(base) {
|
|
@@ -1976,6 +2035,8 @@ var Use = {
|
|
|
1976
2035
|
{}
|
|
1977
2036
|
);
|
|
1978
2037
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2038
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2039
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
1979
2040
|
return message;
|
|
1980
2041
|
}
|
|
1981
2042
|
};
|
|
@@ -3384,9 +3445,7 @@ var ProviderConfig = {
|
|
|
3384
3445
|
writer.uint32(18).string(message.alias);
|
|
3385
3446
|
}
|
|
3386
3447
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3387
|
-
|
|
3388
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3389
|
-
}
|
|
3448
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3390
3449
|
});
|
|
3391
3450
|
for (const v of message.blocks) {
|
|
3392
3451
|
Block.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -3445,7 +3504,7 @@ var ProviderConfig = {
|
|
|
3445
3504
|
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3446
3505
|
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3447
3506
|
(acc, [key, value]) => {
|
|
3448
|
-
acc[key] = value;
|
|
3507
|
+
acc[key] = Binding.fromJSON(value);
|
|
3449
3508
|
return acc;
|
|
3450
3509
|
},
|
|
3451
3510
|
{}
|
|
@@ -3466,7 +3525,7 @@ var ProviderConfig = {
|
|
|
3466
3525
|
if (entries.length > 0) {
|
|
3467
3526
|
obj.config = {};
|
|
3468
3527
|
entries.forEach(([k, v]) => {
|
|
3469
|
-
obj.config[k] = v;
|
|
3528
|
+
obj.config[k] = Binding.toJSON(v);
|
|
3470
3529
|
});
|
|
3471
3530
|
}
|
|
3472
3531
|
}
|
|
@@ -3485,7 +3544,7 @@ var ProviderConfig = {
|
|
|
3485
3544
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3486
3545
|
(acc, [key, value]) => {
|
|
3487
3546
|
if (value !== void 0) {
|
|
3488
|
-
acc[key] = value;
|
|
3547
|
+
acc[key] = Binding.fromPartial(value);
|
|
3489
3548
|
}
|
|
3490
3549
|
return acc;
|
|
3491
3550
|
},
|
|
@@ -3504,7 +3563,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3504
3563
|
writer.uint32(10).string(message.key);
|
|
3505
3564
|
}
|
|
3506
3565
|
if (message.value !== void 0) {
|
|
3507
|
-
|
|
3566
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
3508
3567
|
}
|
|
3509
3568
|
return writer;
|
|
3510
3569
|
},
|
|
@@ -3526,7 +3585,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3526
3585
|
if (tag !== 18) {
|
|
3527
3586
|
break;
|
|
3528
3587
|
}
|
|
3529
|
-
message.value =
|
|
3588
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
3530
3589
|
continue;
|
|
3531
3590
|
}
|
|
3532
3591
|
}
|
|
@@ -3540,7 +3599,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3540
3599
|
fromJSON(object) {
|
|
3541
3600
|
return {
|
|
3542
3601
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3543
|
-
value: isSet2(object
|
|
3602
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
3544
3603
|
};
|
|
3545
3604
|
},
|
|
3546
3605
|
toJSON(message) {
|
|
@@ -3549,7 +3608,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3549
3608
|
obj.key = message.key;
|
|
3550
3609
|
}
|
|
3551
3610
|
if (message.value !== void 0) {
|
|
3552
|
-
obj.value = message.value;
|
|
3611
|
+
obj.value = Binding.toJSON(message.value);
|
|
3553
3612
|
}
|
|
3554
3613
|
return obj;
|
|
3555
3614
|
},
|
|
@@ -3559,7 +3618,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3559
3618
|
fromPartial(object) {
|
|
3560
3619
|
const message = createBaseProviderConfig_ConfigEntry();
|
|
3561
3620
|
message.key = object.key ?? "";
|
|
3562
|
-
message.value = object.value
|
|
3621
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
3563
3622
|
return message;
|
|
3564
3623
|
}
|
|
3565
3624
|
};
|
|
@@ -12837,9 +12896,7 @@ var ProviderView = {
|
|
|
12837
12896
|
writer.uint32(18).string(message.alias);
|
|
12838
12897
|
}
|
|
12839
12898
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
12840
|
-
|
|
12841
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
12842
|
-
}
|
|
12899
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
12843
12900
|
});
|
|
12844
12901
|
return writer;
|
|
12845
12902
|
},
|
|
@@ -12888,7 +12945,7 @@ var ProviderView = {
|
|
|
12888
12945
|
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
12889
12946
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
12890
12947
|
(acc, [key, value]) => {
|
|
12891
|
-
acc[key] = value;
|
|
12948
|
+
acc[key] = globalThis.String(value);
|
|
12892
12949
|
return acc;
|
|
12893
12950
|
},
|
|
12894
12951
|
{}
|
|
@@ -12924,7 +12981,7 @@ var ProviderView = {
|
|
|
12924
12981
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
12925
12982
|
(acc, [key, value]) => {
|
|
12926
12983
|
if (value !== void 0) {
|
|
12927
|
-
acc[key] = value;
|
|
12984
|
+
acc[key] = globalThis.String(value);
|
|
12928
12985
|
}
|
|
12929
12986
|
return acc;
|
|
12930
12987
|
},
|
|
@@ -12934,15 +12991,15 @@ var ProviderView = {
|
|
|
12934
12991
|
}
|
|
12935
12992
|
};
|
|
12936
12993
|
function createBaseProviderView_ConfigEntry() {
|
|
12937
|
-
return { key: "", value:
|
|
12994
|
+
return { key: "", value: "" };
|
|
12938
12995
|
}
|
|
12939
12996
|
var ProviderView_ConfigEntry = {
|
|
12940
12997
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
12941
12998
|
if (message.key !== "") {
|
|
12942
12999
|
writer.uint32(10).string(message.key);
|
|
12943
13000
|
}
|
|
12944
|
-
if (message.value !==
|
|
12945
|
-
|
|
13001
|
+
if (message.value !== "") {
|
|
13002
|
+
writer.uint32(18).string(message.value);
|
|
12946
13003
|
}
|
|
12947
13004
|
return writer;
|
|
12948
13005
|
},
|
|
@@ -12964,7 +13021,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12964
13021
|
if (tag !== 18) {
|
|
12965
13022
|
break;
|
|
12966
13023
|
}
|
|
12967
|
-
message.value =
|
|
13024
|
+
message.value = reader.string();
|
|
12968
13025
|
continue;
|
|
12969
13026
|
}
|
|
12970
13027
|
}
|
|
@@ -12978,7 +13035,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12978
13035
|
fromJSON(object) {
|
|
12979
13036
|
return {
|
|
12980
13037
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
12981
|
-
value: isSet3(object
|
|
13038
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
12982
13039
|
};
|
|
12983
13040
|
},
|
|
12984
13041
|
toJSON(message) {
|
|
@@ -12986,7 +13043,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12986
13043
|
if (message.key !== "") {
|
|
12987
13044
|
obj.key = message.key;
|
|
12988
13045
|
}
|
|
12989
|
-
if (message.value !==
|
|
13046
|
+
if (message.value !== "") {
|
|
12990
13047
|
obj.value = message.value;
|
|
12991
13048
|
}
|
|
12992
13049
|
return obj;
|
|
@@ -12997,7 +13054,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12997
13054
|
fromPartial(object) {
|
|
12998
13055
|
const message = createBaseProviderView_ConfigEntry();
|
|
12999
13056
|
message.key = object.key ?? "";
|
|
13000
|
-
message.value = object.value ??
|
|
13057
|
+
message.value = object.value ?? "";
|
|
13001
13058
|
return message;
|
|
13002
13059
|
}
|
|
13003
13060
|
};
|
|
@@ -13236,7 +13293,15 @@ var Position2 = {
|
|
|
13236
13293
|
}
|
|
13237
13294
|
};
|
|
13238
13295
|
function createBaseInputDef2() {
|
|
13239
|
-
return {
|
|
13296
|
+
return {
|
|
13297
|
+
name: "",
|
|
13298
|
+
type: "",
|
|
13299
|
+
required: false,
|
|
13300
|
+
description: "",
|
|
13301
|
+
default_value: void 0,
|
|
13302
|
+
validation: [],
|
|
13303
|
+
ephemeral: void 0
|
|
13304
|
+
};
|
|
13240
13305
|
}
|
|
13241
13306
|
var InputDef2 = {
|
|
13242
13307
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -13255,8 +13320,11 @@ var InputDef2 = {
|
|
|
13255
13320
|
if (message.default_value !== void 0) {
|
|
13256
13321
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
13257
13322
|
}
|
|
13258
|
-
|
|
13259
|
-
ValidationBlock2.encode(
|
|
13323
|
+
for (const v of message.validation) {
|
|
13324
|
+
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
13325
|
+
}
|
|
13326
|
+
if (message.ephemeral !== void 0) {
|
|
13327
|
+
writer.uint32(56).bool(message.ephemeral);
|
|
13260
13328
|
}
|
|
13261
13329
|
return writer;
|
|
13262
13330
|
},
|
|
@@ -13306,7 +13374,14 @@ var InputDef2 = {
|
|
|
13306
13374
|
if (tag !== 50) {
|
|
13307
13375
|
break;
|
|
13308
13376
|
}
|
|
13309
|
-
message.validation
|
|
13377
|
+
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
13378
|
+
continue;
|
|
13379
|
+
}
|
|
13380
|
+
case 7: {
|
|
13381
|
+
if (tag !== 56) {
|
|
13382
|
+
break;
|
|
13383
|
+
}
|
|
13384
|
+
message.ephemeral = reader.bool();
|
|
13310
13385
|
continue;
|
|
13311
13386
|
}
|
|
13312
13387
|
}
|
|
@@ -13324,7 +13399,8 @@ var InputDef2 = {
|
|
|
13324
13399
|
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
13325
13400
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
13326
13401
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
13327
|
-
validation:
|
|
13402
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
13403
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
13328
13404
|
};
|
|
13329
13405
|
},
|
|
13330
13406
|
toJSON(message) {
|
|
@@ -13344,8 +13420,11 @@ var InputDef2 = {
|
|
|
13344
13420
|
if (message.default_value !== void 0) {
|
|
13345
13421
|
obj.defaultValue = message.default_value;
|
|
13346
13422
|
}
|
|
13347
|
-
if (message.validation
|
|
13348
|
-
obj.validation = ValidationBlock2.toJSON(
|
|
13423
|
+
if (message.validation?.length) {
|
|
13424
|
+
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
13425
|
+
}
|
|
13426
|
+
if (message.ephemeral !== void 0) {
|
|
13427
|
+
obj.ephemeral = message.ephemeral;
|
|
13349
13428
|
}
|
|
13350
13429
|
return obj;
|
|
13351
13430
|
},
|
|
@@ -13359,7 +13438,8 @@ var InputDef2 = {
|
|
|
13359
13438
|
message.required = object.required ?? false;
|
|
13360
13439
|
message.description = object.description ?? "";
|
|
13361
13440
|
message.default_value = object.default_value ?? void 0;
|
|
13362
|
-
message.validation = object.validation
|
|
13441
|
+
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
13442
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
13363
13443
|
return message;
|
|
13364
13444
|
}
|
|
13365
13445
|
};
|
|
@@ -13432,7 +13512,7 @@ var ValidationBlock2 = {
|
|
|
13432
13512
|
}
|
|
13433
13513
|
};
|
|
13434
13514
|
function createBaseOutputDef2() {
|
|
13435
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
13515
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
13436
13516
|
}
|
|
13437
13517
|
var OutputDef2 = {
|
|
13438
13518
|
encode(message, writer = new import_wire4.BinaryWriter()) {
|
|
@@ -13448,6 +13528,9 @@ var OutputDef2 = {
|
|
|
13448
13528
|
if (message.sensitive !== false) {
|
|
13449
13529
|
writer.uint32(32).bool(message.sensitive);
|
|
13450
13530
|
}
|
|
13531
|
+
for (const v of message.depends_on) {
|
|
13532
|
+
writer.uint32(42).string(v);
|
|
13533
|
+
}
|
|
13451
13534
|
return writer;
|
|
13452
13535
|
},
|
|
13453
13536
|
decode(input, length) {
|
|
@@ -13485,6 +13568,13 @@ var OutputDef2 = {
|
|
|
13485
13568
|
message.sensitive = reader.bool();
|
|
13486
13569
|
continue;
|
|
13487
13570
|
}
|
|
13571
|
+
case 5: {
|
|
13572
|
+
if (tag !== 42) {
|
|
13573
|
+
break;
|
|
13574
|
+
}
|
|
13575
|
+
message.depends_on.push(reader.string());
|
|
13576
|
+
continue;
|
|
13577
|
+
}
|
|
13488
13578
|
}
|
|
13489
13579
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13490
13580
|
break;
|
|
@@ -13498,7 +13588,8 @@ var OutputDef2 = {
|
|
|
13498
13588
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
13499
13589
|
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
13500
13590
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
13501
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
13591
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
13592
|
+
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)) : []
|
|
13502
13593
|
};
|
|
13503
13594
|
},
|
|
13504
13595
|
toJSON(message) {
|
|
@@ -13515,6 +13606,9 @@ var OutputDef2 = {
|
|
|
13515
13606
|
if (message.sensitive !== false) {
|
|
13516
13607
|
obj.sensitive = message.sensitive;
|
|
13517
13608
|
}
|
|
13609
|
+
if (message.depends_on?.length) {
|
|
13610
|
+
obj.dependsOn = message.depends_on;
|
|
13611
|
+
}
|
|
13518
13612
|
return obj;
|
|
13519
13613
|
},
|
|
13520
13614
|
create(base) {
|
|
@@ -13526,6 +13620,7 @@ var OutputDef2 = {
|
|
|
13526
13620
|
message.type = object.type ?? "";
|
|
13527
13621
|
message.description = object.description ?? "";
|
|
13528
13622
|
message.sensitive = object.sensitive ?? false;
|
|
13623
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
13529
13624
|
return message;
|
|
13530
13625
|
}
|
|
13531
13626
|
};
|