@lace-cloud/host 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 +501 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +46 -4
- package/dist/index.d.ts +46 -4
- package/dist/index.mjs +501 -55
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1318,9 +1318,10 @@ function createBaseInputDef() {
|
|
|
1318
1318
|
required: false,
|
|
1319
1319
|
description: "",
|
|
1320
1320
|
default_value: void 0,
|
|
1321
|
-
validation:
|
|
1321
|
+
validation: [],
|
|
1322
1322
|
sensitive: false,
|
|
1323
|
-
nullable: void 0
|
|
1323
|
+
nullable: void 0,
|
|
1324
|
+
ephemeral: void 0
|
|
1324
1325
|
};
|
|
1325
1326
|
}
|
|
1326
1327
|
var InputDef = {
|
|
@@ -1340,8 +1341,8 @@ var InputDef = {
|
|
|
1340
1341
|
if (message.default_value !== void 0) {
|
|
1341
1342
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
1342
1343
|
}
|
|
1343
|
-
|
|
1344
|
-
ValidationBlock.encode(
|
|
1344
|
+
for (const v of message.validation) {
|
|
1345
|
+
ValidationBlock.encode(v, writer.uint32(50).fork()).join();
|
|
1345
1346
|
}
|
|
1346
1347
|
if (message.sensitive !== false) {
|
|
1347
1348
|
writer.uint32(56).bool(message.sensitive);
|
|
@@ -1349,6 +1350,9 @@ var InputDef = {
|
|
|
1349
1350
|
if (message.nullable !== void 0) {
|
|
1350
1351
|
writer.uint32(64).bool(message.nullable);
|
|
1351
1352
|
}
|
|
1353
|
+
if (message.ephemeral !== void 0) {
|
|
1354
|
+
writer.uint32(72).bool(message.ephemeral);
|
|
1355
|
+
}
|
|
1352
1356
|
return writer;
|
|
1353
1357
|
},
|
|
1354
1358
|
decode(input, length) {
|
|
@@ -1397,7 +1401,7 @@ var InputDef = {
|
|
|
1397
1401
|
if (tag !== 50) {
|
|
1398
1402
|
break;
|
|
1399
1403
|
}
|
|
1400
|
-
message.validation
|
|
1404
|
+
message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
|
|
1401
1405
|
continue;
|
|
1402
1406
|
}
|
|
1403
1407
|
case 7: {
|
|
@@ -1414,6 +1418,13 @@ var InputDef = {
|
|
|
1414
1418
|
message.nullable = reader.bool();
|
|
1415
1419
|
continue;
|
|
1416
1420
|
}
|
|
1421
|
+
case 9: {
|
|
1422
|
+
if (tag !== 72) {
|
|
1423
|
+
break;
|
|
1424
|
+
}
|
|
1425
|
+
message.ephemeral = reader.bool();
|
|
1426
|
+
continue;
|
|
1427
|
+
}
|
|
1417
1428
|
}
|
|
1418
1429
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1419
1430
|
break;
|
|
@@ -1429,9 +1440,10 @@ var InputDef = {
|
|
|
1429
1440
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1430
1441
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1431
1442
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1432
|
-
validation:
|
|
1443
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
|
|
1433
1444
|
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1434
|
-
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1445
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
1446
|
+
ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
|
|
1435
1447
|
};
|
|
1436
1448
|
},
|
|
1437
1449
|
toJSON(message) {
|
|
@@ -1451,8 +1463,8 @@ var InputDef = {
|
|
|
1451
1463
|
if (message.default_value !== void 0) {
|
|
1452
1464
|
obj.defaultValue = message.default_value;
|
|
1453
1465
|
}
|
|
1454
|
-
if (message.validation
|
|
1455
|
-
obj.validation = ValidationBlock.toJSON(
|
|
1466
|
+
if (message.validation?.length) {
|
|
1467
|
+
obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
|
|
1456
1468
|
}
|
|
1457
1469
|
if (message.sensitive !== false) {
|
|
1458
1470
|
obj.sensitive = message.sensitive;
|
|
@@ -1460,6 +1472,9 @@ var InputDef = {
|
|
|
1460
1472
|
if (message.nullable !== void 0) {
|
|
1461
1473
|
obj.nullable = message.nullable;
|
|
1462
1474
|
}
|
|
1475
|
+
if (message.ephemeral !== void 0) {
|
|
1476
|
+
obj.ephemeral = message.ephemeral;
|
|
1477
|
+
}
|
|
1463
1478
|
return obj;
|
|
1464
1479
|
},
|
|
1465
1480
|
create(base) {
|
|
@@ -1472,9 +1487,10 @@ var InputDef = {
|
|
|
1472
1487
|
message.required = object.required ?? false;
|
|
1473
1488
|
message.description = object.description ?? "";
|
|
1474
1489
|
message.default_value = object.default_value ?? void 0;
|
|
1475
|
-
message.validation = object.validation
|
|
1490
|
+
message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
|
|
1476
1491
|
message.sensitive = object.sensitive ?? false;
|
|
1477
1492
|
message.nullable = object.nullable ?? void 0;
|
|
1493
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
1478
1494
|
return message;
|
|
1479
1495
|
}
|
|
1480
1496
|
};
|
|
@@ -1547,7 +1563,7 @@ var ValidationBlock = {
|
|
|
1547
1563
|
}
|
|
1548
1564
|
};
|
|
1549
1565
|
function createBaseOutputDef() {
|
|
1550
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
1566
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
1551
1567
|
}
|
|
1552
1568
|
var OutputDef = {
|
|
1553
1569
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -1563,6 +1579,9 @@ var OutputDef = {
|
|
|
1563
1579
|
if (message.sensitive !== false) {
|
|
1564
1580
|
writer.uint32(32).bool(message.sensitive);
|
|
1565
1581
|
}
|
|
1582
|
+
for (const v of message.depends_on) {
|
|
1583
|
+
writer.uint32(42).string(v);
|
|
1584
|
+
}
|
|
1566
1585
|
return writer;
|
|
1567
1586
|
},
|
|
1568
1587
|
decode(input, length) {
|
|
@@ -1600,6 +1619,13 @@ var OutputDef = {
|
|
|
1600
1619
|
message.sensitive = reader.bool();
|
|
1601
1620
|
continue;
|
|
1602
1621
|
}
|
|
1622
|
+
case 5: {
|
|
1623
|
+
if (tag !== 42) {
|
|
1624
|
+
break;
|
|
1625
|
+
}
|
|
1626
|
+
message.depends_on.push(reader.string());
|
|
1627
|
+
continue;
|
|
1628
|
+
}
|
|
1603
1629
|
}
|
|
1604
1630
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1605
1631
|
break;
|
|
@@ -1613,7 +1639,8 @@ var OutputDef = {
|
|
|
1613
1639
|
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
1614
1640
|
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
1615
1641
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1616
|
-
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
1642
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1643
|
+
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)) : []
|
|
1617
1644
|
};
|
|
1618
1645
|
},
|
|
1619
1646
|
toJSON(message) {
|
|
@@ -1630,6 +1657,9 @@ var OutputDef = {
|
|
|
1630
1657
|
if (message.sensitive !== false) {
|
|
1631
1658
|
obj.sensitive = message.sensitive;
|
|
1632
1659
|
}
|
|
1660
|
+
if (message.depends_on?.length) {
|
|
1661
|
+
obj.dependsOn = message.depends_on;
|
|
1662
|
+
}
|
|
1633
1663
|
return obj;
|
|
1634
1664
|
},
|
|
1635
1665
|
create(base) {
|
|
@@ -1641,6 +1671,7 @@ var OutputDef = {
|
|
|
1641
1671
|
message.type = object.type ?? "";
|
|
1642
1672
|
message.description = object.description ?? "";
|
|
1643
1673
|
message.sensitive = object.sensitive ?? false;
|
|
1674
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
1644
1675
|
return message;
|
|
1645
1676
|
}
|
|
1646
1677
|
};
|
|
@@ -1826,7 +1857,7 @@ var Local = {
|
|
|
1826
1857
|
}
|
|
1827
1858
|
};
|
|
1828
1859
|
function createBaseUse() {
|
|
1829
|
-
return { id: "", module: "", inputs: {}, depends_on: [] };
|
|
1860
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1830
1861
|
}
|
|
1831
1862
|
var Use = {
|
|
1832
1863
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -1842,6 +1873,12 @@ var Use = {
|
|
|
1842
1873
|
for (const v of message.depends_on) {
|
|
1843
1874
|
writer.uint32(34).string(v);
|
|
1844
1875
|
}
|
|
1876
|
+
if (message.count !== void 0) {
|
|
1877
|
+
Binding.encode(message.count, writer.uint32(42).fork()).join();
|
|
1878
|
+
}
|
|
1879
|
+
if (message.for_each !== void 0) {
|
|
1880
|
+
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1881
|
+
}
|
|
1845
1882
|
return writer;
|
|
1846
1883
|
},
|
|
1847
1884
|
decode(input, length) {
|
|
@@ -1882,6 +1919,20 @@ var Use = {
|
|
|
1882
1919
|
message.depends_on.push(reader.string());
|
|
1883
1920
|
continue;
|
|
1884
1921
|
}
|
|
1922
|
+
case 5: {
|
|
1923
|
+
if (tag !== 42) {
|
|
1924
|
+
break;
|
|
1925
|
+
}
|
|
1926
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
1927
|
+
continue;
|
|
1928
|
+
}
|
|
1929
|
+
case 6: {
|
|
1930
|
+
if (tag !== 50) {
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
1934
|
+
continue;
|
|
1935
|
+
}
|
|
1885
1936
|
}
|
|
1886
1937
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1887
1938
|
break;
|
|
@@ -1901,7 +1952,9 @@ var Use = {
|
|
|
1901
1952
|
},
|
|
1902
1953
|
{}
|
|
1903
1954
|
) : {},
|
|
1904
|
-
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)) : []
|
|
1955
|
+
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)) : [],
|
|
1956
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
1957
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
1905
1958
|
};
|
|
1906
1959
|
},
|
|
1907
1960
|
toJSON(message) {
|
|
@@ -1924,6 +1977,12 @@ var Use = {
|
|
|
1924
1977
|
if (message.depends_on?.length) {
|
|
1925
1978
|
obj.dependsOn = message.depends_on;
|
|
1926
1979
|
}
|
|
1980
|
+
if (message.count !== void 0) {
|
|
1981
|
+
obj.count = Binding.toJSON(message.count);
|
|
1982
|
+
}
|
|
1983
|
+
if (message.for_each !== void 0) {
|
|
1984
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
1985
|
+
}
|
|
1927
1986
|
return obj;
|
|
1928
1987
|
},
|
|
1929
1988
|
create(base) {
|
|
@@ -1943,6 +2002,8 @@ var Use = {
|
|
|
1943
2002
|
{}
|
|
1944
2003
|
);
|
|
1945
2004
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2005
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2006
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
1946
2007
|
return message;
|
|
1947
2008
|
}
|
|
1948
2009
|
};
|
|
@@ -3351,9 +3412,7 @@ var ProviderConfig = {
|
|
|
3351
3412
|
writer.uint32(18).string(message.alias);
|
|
3352
3413
|
}
|
|
3353
3414
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
3354
|
-
|
|
3355
|
-
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3356
|
-
}
|
|
3415
|
+
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3357
3416
|
});
|
|
3358
3417
|
for (const v of message.blocks) {
|
|
3359
3418
|
Block.encode(v, writer.uint32(34).fork()).join();
|
|
@@ -3412,7 +3471,7 @@ var ProviderConfig = {
|
|
|
3412
3471
|
alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
|
|
3413
3472
|
config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
3414
3473
|
(acc, [key, value]) => {
|
|
3415
|
-
acc[key] = value;
|
|
3474
|
+
acc[key] = Binding.fromJSON(value);
|
|
3416
3475
|
return acc;
|
|
3417
3476
|
},
|
|
3418
3477
|
{}
|
|
@@ -3433,7 +3492,7 @@ var ProviderConfig = {
|
|
|
3433
3492
|
if (entries.length > 0) {
|
|
3434
3493
|
obj.config = {};
|
|
3435
3494
|
entries.forEach(([k, v]) => {
|
|
3436
|
-
obj.config[k] = v;
|
|
3495
|
+
obj.config[k] = Binding.toJSON(v);
|
|
3437
3496
|
});
|
|
3438
3497
|
}
|
|
3439
3498
|
}
|
|
@@ -3452,7 +3511,7 @@ var ProviderConfig = {
|
|
|
3452
3511
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
3453
3512
|
(acc, [key, value]) => {
|
|
3454
3513
|
if (value !== void 0) {
|
|
3455
|
-
acc[key] = value;
|
|
3514
|
+
acc[key] = Binding.fromPartial(value);
|
|
3456
3515
|
}
|
|
3457
3516
|
return acc;
|
|
3458
3517
|
},
|
|
@@ -3471,7 +3530,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3471
3530
|
writer.uint32(10).string(message.key);
|
|
3472
3531
|
}
|
|
3473
3532
|
if (message.value !== void 0) {
|
|
3474
|
-
|
|
3533
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
3475
3534
|
}
|
|
3476
3535
|
return writer;
|
|
3477
3536
|
},
|
|
@@ -3493,7 +3552,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3493
3552
|
if (tag !== 18) {
|
|
3494
3553
|
break;
|
|
3495
3554
|
}
|
|
3496
|
-
message.value =
|
|
3555
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
3497
3556
|
continue;
|
|
3498
3557
|
}
|
|
3499
3558
|
}
|
|
@@ -3507,7 +3566,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3507
3566
|
fromJSON(object) {
|
|
3508
3567
|
return {
|
|
3509
3568
|
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
3510
|
-
value: isSet2(object
|
|
3569
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
3511
3570
|
};
|
|
3512
3571
|
},
|
|
3513
3572
|
toJSON(message) {
|
|
@@ -3516,7 +3575,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3516
3575
|
obj.key = message.key;
|
|
3517
3576
|
}
|
|
3518
3577
|
if (message.value !== void 0) {
|
|
3519
|
-
obj.value = message.value;
|
|
3578
|
+
obj.value = Binding.toJSON(message.value);
|
|
3520
3579
|
}
|
|
3521
3580
|
return obj;
|
|
3522
3581
|
},
|
|
@@ -3526,7 +3585,7 @@ var ProviderConfig_ConfigEntry = {
|
|
|
3526
3585
|
fromPartial(object) {
|
|
3527
3586
|
const message = createBaseProviderConfig_ConfigEntry();
|
|
3528
3587
|
message.key = object.key ?? "";
|
|
3529
|
-
message.value = object.value
|
|
3588
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
3530
3589
|
return message;
|
|
3531
3590
|
}
|
|
3532
3591
|
};
|
|
@@ -9221,6 +9280,165 @@ var SetDependsOnAction = {
|
|
|
9221
9280
|
return message;
|
|
9222
9281
|
}
|
|
9223
9282
|
};
|
|
9283
|
+
function createBaseSetUseProvidersAction() {
|
|
9284
|
+
return { instance_id: "", providers: {} };
|
|
9285
|
+
}
|
|
9286
|
+
var SetUseProvidersAction = {
|
|
9287
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
9288
|
+
if (message.instance_id !== "") {
|
|
9289
|
+
writer.uint32(10).string(message.instance_id);
|
|
9290
|
+
}
|
|
9291
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
9292
|
+
SetUseProvidersAction_ProvidersEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
9293
|
+
});
|
|
9294
|
+
return writer;
|
|
9295
|
+
},
|
|
9296
|
+
decode(input, length) {
|
|
9297
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9298
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9299
|
+
const message = createBaseSetUseProvidersAction();
|
|
9300
|
+
while (reader.pos < end) {
|
|
9301
|
+
const tag = reader.uint32();
|
|
9302
|
+
switch (tag >>> 3) {
|
|
9303
|
+
case 1: {
|
|
9304
|
+
if (tag !== 10) {
|
|
9305
|
+
break;
|
|
9306
|
+
}
|
|
9307
|
+
message.instance_id = reader.string();
|
|
9308
|
+
continue;
|
|
9309
|
+
}
|
|
9310
|
+
case 2: {
|
|
9311
|
+
if (tag !== 18) {
|
|
9312
|
+
break;
|
|
9313
|
+
}
|
|
9314
|
+
const entry2 = SetUseProvidersAction_ProvidersEntry.decode(reader, reader.uint32());
|
|
9315
|
+
if (entry2.value !== void 0) {
|
|
9316
|
+
message.providers[entry2.key] = entry2.value;
|
|
9317
|
+
}
|
|
9318
|
+
continue;
|
|
9319
|
+
}
|
|
9320
|
+
}
|
|
9321
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9322
|
+
break;
|
|
9323
|
+
}
|
|
9324
|
+
reader.skip(tag & 7);
|
|
9325
|
+
}
|
|
9326
|
+
return message;
|
|
9327
|
+
},
|
|
9328
|
+
fromJSON(object) {
|
|
9329
|
+
return {
|
|
9330
|
+
instance_id: isSet3(object.instanceId) ? globalThis.String(object.instanceId) : isSet3(object.instance_id) ? globalThis.String(object.instance_id) : "",
|
|
9331
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
9332
|
+
(acc, [key, value]) => {
|
|
9333
|
+
acc[key] = globalThis.String(value);
|
|
9334
|
+
return acc;
|
|
9335
|
+
},
|
|
9336
|
+
{}
|
|
9337
|
+
) : {}
|
|
9338
|
+
};
|
|
9339
|
+
},
|
|
9340
|
+
toJSON(message) {
|
|
9341
|
+
const obj = {};
|
|
9342
|
+
if (message.instance_id !== "") {
|
|
9343
|
+
obj.instanceId = message.instance_id;
|
|
9344
|
+
}
|
|
9345
|
+
if (message.providers) {
|
|
9346
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
9347
|
+
if (entries.length > 0) {
|
|
9348
|
+
obj.providers = {};
|
|
9349
|
+
entries.forEach(([k, v]) => {
|
|
9350
|
+
obj.providers[k] = v;
|
|
9351
|
+
});
|
|
9352
|
+
}
|
|
9353
|
+
}
|
|
9354
|
+
return obj;
|
|
9355
|
+
},
|
|
9356
|
+
create(base) {
|
|
9357
|
+
return SetUseProvidersAction.fromPartial(base ?? {});
|
|
9358
|
+
},
|
|
9359
|
+
fromPartial(object) {
|
|
9360
|
+
const message = createBaseSetUseProvidersAction();
|
|
9361
|
+
message.instance_id = object.instance_id ?? "";
|
|
9362
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
9363
|
+
(acc, [key, value]) => {
|
|
9364
|
+
if (value !== void 0) {
|
|
9365
|
+
acc[key] = globalThis.String(value);
|
|
9366
|
+
}
|
|
9367
|
+
return acc;
|
|
9368
|
+
},
|
|
9369
|
+
{}
|
|
9370
|
+
);
|
|
9371
|
+
return message;
|
|
9372
|
+
}
|
|
9373
|
+
};
|
|
9374
|
+
function createBaseSetUseProvidersAction_ProvidersEntry() {
|
|
9375
|
+
return { key: "", value: "" };
|
|
9376
|
+
}
|
|
9377
|
+
var SetUseProvidersAction_ProvidersEntry = {
|
|
9378
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
9379
|
+
if (message.key !== "") {
|
|
9380
|
+
writer.uint32(10).string(message.key);
|
|
9381
|
+
}
|
|
9382
|
+
if (message.value !== "") {
|
|
9383
|
+
writer.uint32(18).string(message.value);
|
|
9384
|
+
}
|
|
9385
|
+
return writer;
|
|
9386
|
+
},
|
|
9387
|
+
decode(input, length) {
|
|
9388
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
9389
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9390
|
+
const message = createBaseSetUseProvidersAction_ProvidersEntry();
|
|
9391
|
+
while (reader.pos < end) {
|
|
9392
|
+
const tag = reader.uint32();
|
|
9393
|
+
switch (tag >>> 3) {
|
|
9394
|
+
case 1: {
|
|
9395
|
+
if (tag !== 10) {
|
|
9396
|
+
break;
|
|
9397
|
+
}
|
|
9398
|
+
message.key = reader.string();
|
|
9399
|
+
continue;
|
|
9400
|
+
}
|
|
9401
|
+
case 2: {
|
|
9402
|
+
if (tag !== 18) {
|
|
9403
|
+
break;
|
|
9404
|
+
}
|
|
9405
|
+
message.value = reader.string();
|
|
9406
|
+
continue;
|
|
9407
|
+
}
|
|
9408
|
+
}
|
|
9409
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9410
|
+
break;
|
|
9411
|
+
}
|
|
9412
|
+
reader.skip(tag & 7);
|
|
9413
|
+
}
|
|
9414
|
+
return message;
|
|
9415
|
+
},
|
|
9416
|
+
fromJSON(object) {
|
|
9417
|
+
return {
|
|
9418
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
9419
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
9420
|
+
};
|
|
9421
|
+
},
|
|
9422
|
+
toJSON(message) {
|
|
9423
|
+
const obj = {};
|
|
9424
|
+
if (message.key !== "") {
|
|
9425
|
+
obj.key = message.key;
|
|
9426
|
+
}
|
|
9427
|
+
if (message.value !== "") {
|
|
9428
|
+
obj.value = message.value;
|
|
9429
|
+
}
|
|
9430
|
+
return obj;
|
|
9431
|
+
},
|
|
9432
|
+
create(base) {
|
|
9433
|
+
return SetUseProvidersAction_ProvidersEntry.fromPartial(base ?? {});
|
|
9434
|
+
},
|
|
9435
|
+
fromPartial(object) {
|
|
9436
|
+
const message = createBaseSetUseProvidersAction_ProvidersEntry();
|
|
9437
|
+
message.key = object.key ?? "";
|
|
9438
|
+
message.value = object.value ?? "";
|
|
9439
|
+
return message;
|
|
9440
|
+
}
|
|
9441
|
+
};
|
|
9224
9442
|
function createBaseSetEnvironmentsAction() {
|
|
9225
9443
|
return { environments: {}, environment_backends: {} };
|
|
9226
9444
|
}
|
|
@@ -9691,7 +9909,8 @@ function createBaseAction() {
|
|
|
9691
9909
|
set_environments: void 0,
|
|
9692
9910
|
undo: void 0,
|
|
9693
9911
|
redo: void 0,
|
|
9694
|
-
place_module: void 0
|
|
9912
|
+
place_module: void 0,
|
|
9913
|
+
set_use_providers: void 0
|
|
9695
9914
|
};
|
|
9696
9915
|
}
|
|
9697
9916
|
var Action = {
|
|
@@ -9762,6 +9981,9 @@ var Action = {
|
|
|
9762
9981
|
if (message.place_module !== void 0) {
|
|
9763
9982
|
PlaceModuleAction.encode(message.place_module, writer.uint32(178).fork()).join();
|
|
9764
9983
|
}
|
|
9984
|
+
if (message.set_use_providers !== void 0) {
|
|
9985
|
+
SetUseProvidersAction.encode(message.set_use_providers, writer.uint32(186).fork()).join();
|
|
9986
|
+
}
|
|
9765
9987
|
return writer;
|
|
9766
9988
|
},
|
|
9767
9989
|
decode(input, length) {
|
|
@@ -9925,6 +10147,13 @@ var Action = {
|
|
|
9925
10147
|
message.place_module = PlaceModuleAction.decode(reader, reader.uint32());
|
|
9926
10148
|
continue;
|
|
9927
10149
|
}
|
|
10150
|
+
case 23: {
|
|
10151
|
+
if (tag !== 186) {
|
|
10152
|
+
break;
|
|
10153
|
+
}
|
|
10154
|
+
message.set_use_providers = SetUseProvidersAction.decode(reader, reader.uint32());
|
|
10155
|
+
continue;
|
|
10156
|
+
}
|
|
9928
10157
|
}
|
|
9929
10158
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9930
10159
|
break;
|
|
@@ -9956,7 +10185,8 @@ var Action = {
|
|
|
9956
10185
|
set_environments: isSet3(object.setEnvironments) ? SetEnvironmentsAction.fromJSON(object.setEnvironments) : isSet3(object.set_environments) ? SetEnvironmentsAction.fromJSON(object.set_environments) : void 0,
|
|
9957
10186
|
undo: isSet3(object.undo) ? UndoAction.fromJSON(object.undo) : void 0,
|
|
9958
10187
|
redo: isSet3(object.redo) ? RedoAction.fromJSON(object.redo) : void 0,
|
|
9959
|
-
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0
|
|
10188
|
+
place_module: isSet3(object.placeModule) ? PlaceModuleAction.fromJSON(object.placeModule) : isSet3(object.place_module) ? PlaceModuleAction.fromJSON(object.place_module) : void 0,
|
|
10189
|
+
set_use_providers: isSet3(object.setUseProviders) ? SetUseProvidersAction.fromJSON(object.setUseProviders) : isSet3(object.set_use_providers) ? SetUseProvidersAction.fromJSON(object.set_use_providers) : void 0
|
|
9960
10190
|
};
|
|
9961
10191
|
},
|
|
9962
10192
|
toJSON(message) {
|
|
@@ -10027,6 +10257,9 @@ var Action = {
|
|
|
10027
10257
|
if (message.place_module !== void 0) {
|
|
10028
10258
|
obj.placeModule = PlaceModuleAction.toJSON(message.place_module);
|
|
10029
10259
|
}
|
|
10260
|
+
if (message.set_use_providers !== void 0) {
|
|
10261
|
+
obj.setUseProviders = SetUseProvidersAction.toJSON(message.set_use_providers);
|
|
10262
|
+
}
|
|
10030
10263
|
return obj;
|
|
10031
10264
|
},
|
|
10032
10265
|
create(base) {
|
|
@@ -10056,6 +10289,7 @@ var Action = {
|
|
|
10056
10289
|
message.undo = object.undo !== void 0 && object.undo !== null ? UndoAction.fromPartial(object.undo) : void 0;
|
|
10057
10290
|
message.redo = object.redo !== void 0 && object.redo !== null ? RedoAction.fromPartial(object.redo) : void 0;
|
|
10058
10291
|
message.place_module = object.place_module !== void 0 && object.place_module !== null ? PlaceModuleAction.fromPartial(object.place_module) : void 0;
|
|
10292
|
+
message.set_use_providers = object.set_use_providers !== void 0 && object.set_use_providers !== null ? SetUseProvidersAction.fromPartial(object.set_use_providers) : void 0;
|
|
10059
10293
|
return message;
|
|
10060
10294
|
}
|
|
10061
10295
|
};
|
|
@@ -11813,7 +12047,15 @@ var RenderOutput = {
|
|
|
11813
12047
|
}
|
|
11814
12048
|
};
|
|
11815
12049
|
function createBaseNodeConfig() {
|
|
11816
|
-
return {
|
|
12050
|
+
return {
|
|
12051
|
+
instance_id: "",
|
|
12052
|
+
inputs: [],
|
|
12053
|
+
outputs: [],
|
|
12054
|
+
sibling_ids: [],
|
|
12055
|
+
depends_on: [],
|
|
12056
|
+
available_variables: [],
|
|
12057
|
+
providers: {}
|
|
12058
|
+
};
|
|
11817
12059
|
}
|
|
11818
12060
|
var NodeConfig = {
|
|
11819
12061
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -11835,6 +12077,9 @@ var NodeConfig = {
|
|
|
11835
12077
|
for (const v of message.available_variables) {
|
|
11836
12078
|
VariableRef.encode(v, writer.uint32(50).fork()).join();
|
|
11837
12079
|
}
|
|
12080
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
12081
|
+
NodeConfig_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
12082
|
+
});
|
|
11838
12083
|
return writer;
|
|
11839
12084
|
},
|
|
11840
12085
|
decode(input, length) {
|
|
@@ -11886,6 +12131,16 @@ var NodeConfig = {
|
|
|
11886
12131
|
message.available_variables.push(VariableRef.decode(reader, reader.uint32()));
|
|
11887
12132
|
continue;
|
|
11888
12133
|
}
|
|
12134
|
+
case 7: {
|
|
12135
|
+
if (tag !== 58) {
|
|
12136
|
+
break;
|
|
12137
|
+
}
|
|
12138
|
+
const entry7 = NodeConfig_ProvidersEntry.decode(reader, reader.uint32());
|
|
12139
|
+
if (entry7.value !== void 0) {
|
|
12140
|
+
message.providers[entry7.key] = entry7.value;
|
|
12141
|
+
}
|
|
12142
|
+
continue;
|
|
12143
|
+
}
|
|
11889
12144
|
}
|
|
11890
12145
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11891
12146
|
break;
|
|
@@ -11901,7 +12156,14 @@ var NodeConfig = {
|
|
|
11901
12156
|
outputs: globalThis.Array.isArray(object?.outputs) ? object.outputs.map((e) => RenderOutput.fromJSON(e)) : [],
|
|
11902
12157
|
sibling_ids: globalThis.Array.isArray(object?.siblingIds) ? object.siblingIds.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.sibling_ids) ? object.sibling_ids.map((e) => globalThis.String(e)) : [],
|
|
11903
12158
|
depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
|
|
11904
|
-
available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : []
|
|
12159
|
+
available_variables: globalThis.Array.isArray(object?.availableVariables) ? object.availableVariables.map((e) => VariableRef.fromJSON(e)) : globalThis.Array.isArray(object?.available_variables) ? object.available_variables.map((e) => VariableRef.fromJSON(e)) : [],
|
|
12160
|
+
providers: isObject3(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
12161
|
+
(acc, [key, value]) => {
|
|
12162
|
+
acc[key] = globalThis.String(value);
|
|
12163
|
+
return acc;
|
|
12164
|
+
},
|
|
12165
|
+
{}
|
|
12166
|
+
) : {}
|
|
11905
12167
|
};
|
|
11906
12168
|
},
|
|
11907
12169
|
toJSON(message) {
|
|
@@ -11924,6 +12186,15 @@ var NodeConfig = {
|
|
|
11924
12186
|
if (message.available_variables?.length) {
|
|
11925
12187
|
obj.availableVariables = message.available_variables.map((e) => VariableRef.toJSON(e));
|
|
11926
12188
|
}
|
|
12189
|
+
if (message.providers) {
|
|
12190
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
12191
|
+
if (entries.length > 0) {
|
|
12192
|
+
obj.providers = {};
|
|
12193
|
+
entries.forEach(([k, v]) => {
|
|
12194
|
+
obj.providers[k] = v;
|
|
12195
|
+
});
|
|
12196
|
+
}
|
|
12197
|
+
}
|
|
11927
12198
|
return obj;
|
|
11928
12199
|
},
|
|
11929
12200
|
create(base) {
|
|
@@ -11937,6 +12208,83 @@ var NodeConfig = {
|
|
|
11937
12208
|
message.sibling_ids = object.sibling_ids?.map((e) => e) || [];
|
|
11938
12209
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
11939
12210
|
message.available_variables = object.available_variables?.map((e) => VariableRef.fromPartial(e)) || [];
|
|
12211
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
12212
|
+
(acc, [key, value]) => {
|
|
12213
|
+
if (value !== void 0) {
|
|
12214
|
+
acc[key] = globalThis.String(value);
|
|
12215
|
+
}
|
|
12216
|
+
return acc;
|
|
12217
|
+
},
|
|
12218
|
+
{}
|
|
12219
|
+
);
|
|
12220
|
+
return message;
|
|
12221
|
+
}
|
|
12222
|
+
};
|
|
12223
|
+
function createBaseNodeConfig_ProvidersEntry() {
|
|
12224
|
+
return { key: "", value: "" };
|
|
12225
|
+
}
|
|
12226
|
+
var NodeConfig_ProvidersEntry = {
|
|
12227
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
12228
|
+
if (message.key !== "") {
|
|
12229
|
+
writer.uint32(10).string(message.key);
|
|
12230
|
+
}
|
|
12231
|
+
if (message.value !== "") {
|
|
12232
|
+
writer.uint32(18).string(message.value);
|
|
12233
|
+
}
|
|
12234
|
+
return writer;
|
|
12235
|
+
},
|
|
12236
|
+
decode(input, length) {
|
|
12237
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
12238
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
12239
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
12240
|
+
while (reader.pos < end) {
|
|
12241
|
+
const tag = reader.uint32();
|
|
12242
|
+
switch (tag >>> 3) {
|
|
12243
|
+
case 1: {
|
|
12244
|
+
if (tag !== 10) {
|
|
12245
|
+
break;
|
|
12246
|
+
}
|
|
12247
|
+
message.key = reader.string();
|
|
12248
|
+
continue;
|
|
12249
|
+
}
|
|
12250
|
+
case 2: {
|
|
12251
|
+
if (tag !== 18) {
|
|
12252
|
+
break;
|
|
12253
|
+
}
|
|
12254
|
+
message.value = reader.string();
|
|
12255
|
+
continue;
|
|
12256
|
+
}
|
|
12257
|
+
}
|
|
12258
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12259
|
+
break;
|
|
12260
|
+
}
|
|
12261
|
+
reader.skip(tag & 7);
|
|
12262
|
+
}
|
|
12263
|
+
return message;
|
|
12264
|
+
},
|
|
12265
|
+
fromJSON(object) {
|
|
12266
|
+
return {
|
|
12267
|
+
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
12268
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
12269
|
+
};
|
|
12270
|
+
},
|
|
12271
|
+
toJSON(message) {
|
|
12272
|
+
const obj = {};
|
|
12273
|
+
if (message.key !== "") {
|
|
12274
|
+
obj.key = message.key;
|
|
12275
|
+
}
|
|
12276
|
+
if (message.value !== "") {
|
|
12277
|
+
obj.value = message.value;
|
|
12278
|
+
}
|
|
12279
|
+
return obj;
|
|
12280
|
+
},
|
|
12281
|
+
create(base) {
|
|
12282
|
+
return NodeConfig_ProvidersEntry.fromPartial(base ?? {});
|
|
12283
|
+
},
|
|
12284
|
+
fromPartial(object) {
|
|
12285
|
+
const message = createBaseNodeConfig_ProvidersEntry();
|
|
12286
|
+
message.key = object.key ?? "";
|
|
12287
|
+
message.value = object.value ?? "";
|
|
11940
12288
|
return message;
|
|
11941
12289
|
}
|
|
11942
12290
|
};
|
|
@@ -12549,7 +12897,7 @@ var TerraformView = {
|
|
|
12549
12897
|
}
|
|
12550
12898
|
};
|
|
12551
12899
|
function createBaseProviderReqView() {
|
|
12552
|
-
return { name: "", source: "", version: "" };
|
|
12900
|
+
return { name: "", source: "", version: "", configuration_aliases: [] };
|
|
12553
12901
|
}
|
|
12554
12902
|
var ProviderReqView = {
|
|
12555
12903
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -12562,6 +12910,9 @@ var ProviderReqView = {
|
|
|
12562
12910
|
if (message.version !== "") {
|
|
12563
12911
|
writer.uint32(26).string(message.version);
|
|
12564
12912
|
}
|
|
12913
|
+
for (const v of message.configuration_aliases) {
|
|
12914
|
+
writer.uint32(34).string(v);
|
|
12915
|
+
}
|
|
12565
12916
|
return writer;
|
|
12566
12917
|
},
|
|
12567
12918
|
decode(input, length) {
|
|
@@ -12592,6 +12943,13 @@ var ProviderReqView = {
|
|
|
12592
12943
|
message.version = reader.string();
|
|
12593
12944
|
continue;
|
|
12594
12945
|
}
|
|
12946
|
+
case 4: {
|
|
12947
|
+
if (tag !== 34) {
|
|
12948
|
+
break;
|
|
12949
|
+
}
|
|
12950
|
+
message.configuration_aliases.push(reader.string());
|
|
12951
|
+
continue;
|
|
12952
|
+
}
|
|
12595
12953
|
}
|
|
12596
12954
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12597
12955
|
break;
|
|
@@ -12604,7 +12962,8 @@ var ProviderReqView = {
|
|
|
12604
12962
|
return {
|
|
12605
12963
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
12606
12964
|
source: isSet3(object.source) ? globalThis.String(object.source) : "",
|
|
12607
|
-
version: isSet3(object.version) ? globalThis.String(object.version) : ""
|
|
12965
|
+
version: isSet3(object.version) ? globalThis.String(object.version) : "",
|
|
12966
|
+
configuration_aliases: globalThis.Array.isArray(object?.configurationAliases) ? object.configurationAliases.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.configuration_aliases) ? object.configuration_aliases.map((e) => globalThis.String(e)) : []
|
|
12608
12967
|
};
|
|
12609
12968
|
},
|
|
12610
12969
|
toJSON(message) {
|
|
@@ -12618,6 +12977,9 @@ var ProviderReqView = {
|
|
|
12618
12977
|
if (message.version !== "") {
|
|
12619
12978
|
obj.version = message.version;
|
|
12620
12979
|
}
|
|
12980
|
+
if (message.configuration_aliases?.length) {
|
|
12981
|
+
obj.configurationAliases = message.configuration_aliases;
|
|
12982
|
+
}
|
|
12621
12983
|
return obj;
|
|
12622
12984
|
},
|
|
12623
12985
|
create(base) {
|
|
@@ -12628,6 +12990,7 @@ var ProviderReqView = {
|
|
|
12628
12990
|
message.name = object.name ?? "";
|
|
12629
12991
|
message.source = object.source ?? "";
|
|
12630
12992
|
message.version = object.version ?? "";
|
|
12993
|
+
message.configuration_aliases = object.configuration_aliases?.map((e) => e) || [];
|
|
12631
12994
|
return message;
|
|
12632
12995
|
}
|
|
12633
12996
|
};
|
|
@@ -12793,7 +13156,7 @@ var BackendView_ConfigEntry = {
|
|
|
12793
13156
|
}
|
|
12794
13157
|
};
|
|
12795
13158
|
function createBaseProviderView() {
|
|
12796
|
-
return { name: "", alias: "", config: {} };
|
|
13159
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
12797
13160
|
}
|
|
12798
13161
|
var ProviderView = {
|
|
12799
13162
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -12804,10 +13167,11 @@ var ProviderView = {
|
|
|
12804
13167
|
writer.uint32(18).string(message.alias);
|
|
12805
13168
|
}
|
|
12806
13169
|
globalThis.Object.entries(message.config).forEach(([key, value]) => {
|
|
12807
|
-
|
|
12808
|
-
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
12809
|
-
}
|
|
13170
|
+
ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
12810
13171
|
});
|
|
13172
|
+
for (const v of message.blocks) {
|
|
13173
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
13174
|
+
}
|
|
12811
13175
|
return writer;
|
|
12812
13176
|
},
|
|
12813
13177
|
decode(input, length) {
|
|
@@ -12841,6 +13205,13 @@ var ProviderView = {
|
|
|
12841
13205
|
}
|
|
12842
13206
|
continue;
|
|
12843
13207
|
}
|
|
13208
|
+
case 4: {
|
|
13209
|
+
if (tag !== 34) {
|
|
13210
|
+
break;
|
|
13211
|
+
}
|
|
13212
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
13213
|
+
continue;
|
|
13214
|
+
}
|
|
12844
13215
|
}
|
|
12845
13216
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12846
13217
|
break;
|
|
@@ -12855,11 +13226,12 @@ var ProviderView = {
|
|
|
12855
13226
|
alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
|
|
12856
13227
|
config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
|
|
12857
13228
|
(acc, [key, value]) => {
|
|
12858
|
-
acc[key] = value;
|
|
13229
|
+
acc[key] = globalThis.String(value);
|
|
12859
13230
|
return acc;
|
|
12860
13231
|
},
|
|
12861
13232
|
{}
|
|
12862
|
-
) : {}
|
|
13233
|
+
) : {},
|
|
13234
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
12863
13235
|
};
|
|
12864
13236
|
},
|
|
12865
13237
|
toJSON(message) {
|
|
@@ -12879,6 +13251,9 @@ var ProviderView = {
|
|
|
12879
13251
|
});
|
|
12880
13252
|
}
|
|
12881
13253
|
}
|
|
13254
|
+
if (message.blocks?.length) {
|
|
13255
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
13256
|
+
}
|
|
12882
13257
|
return obj;
|
|
12883
13258
|
},
|
|
12884
13259
|
create(base) {
|
|
@@ -12891,25 +13266,26 @@ var ProviderView = {
|
|
|
12891
13266
|
message.config = globalThis.Object.entries(object.config ?? {}).reduce(
|
|
12892
13267
|
(acc, [key, value]) => {
|
|
12893
13268
|
if (value !== void 0) {
|
|
12894
|
-
acc[key] = value;
|
|
13269
|
+
acc[key] = globalThis.String(value);
|
|
12895
13270
|
}
|
|
12896
13271
|
return acc;
|
|
12897
13272
|
},
|
|
12898
13273
|
{}
|
|
12899
13274
|
);
|
|
13275
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
12900
13276
|
return message;
|
|
12901
13277
|
}
|
|
12902
13278
|
};
|
|
12903
13279
|
function createBaseProviderView_ConfigEntry() {
|
|
12904
|
-
return { key: "", value:
|
|
13280
|
+
return { key: "", value: "" };
|
|
12905
13281
|
}
|
|
12906
13282
|
var ProviderView_ConfigEntry = {
|
|
12907
13283
|
encode(message, writer = new BinaryWriter4()) {
|
|
12908
13284
|
if (message.key !== "") {
|
|
12909
13285
|
writer.uint32(10).string(message.key);
|
|
12910
13286
|
}
|
|
12911
|
-
if (message.value !==
|
|
12912
|
-
|
|
13287
|
+
if (message.value !== "") {
|
|
13288
|
+
writer.uint32(18).string(message.value);
|
|
12913
13289
|
}
|
|
12914
13290
|
return writer;
|
|
12915
13291
|
},
|
|
@@ -12931,7 +13307,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12931
13307
|
if (tag !== 18) {
|
|
12932
13308
|
break;
|
|
12933
13309
|
}
|
|
12934
|
-
message.value =
|
|
13310
|
+
message.value = reader.string();
|
|
12935
13311
|
continue;
|
|
12936
13312
|
}
|
|
12937
13313
|
}
|
|
@@ -12945,7 +13321,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12945
13321
|
fromJSON(object) {
|
|
12946
13322
|
return {
|
|
12947
13323
|
key: isSet3(object.key) ? globalThis.String(object.key) : "",
|
|
12948
|
-
value: isSet3(object
|
|
13324
|
+
value: isSet3(object.value) ? globalThis.String(object.value) : ""
|
|
12949
13325
|
};
|
|
12950
13326
|
},
|
|
12951
13327
|
toJSON(message) {
|
|
@@ -12953,7 +13329,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12953
13329
|
if (message.key !== "") {
|
|
12954
13330
|
obj.key = message.key;
|
|
12955
13331
|
}
|
|
12956
|
-
if (message.value !==
|
|
13332
|
+
if (message.value !== "") {
|
|
12957
13333
|
obj.value = message.value;
|
|
12958
13334
|
}
|
|
12959
13335
|
return obj;
|
|
@@ -12964,7 +13340,7 @@ var ProviderView_ConfigEntry = {
|
|
|
12964
13340
|
fromPartial(object) {
|
|
12965
13341
|
const message = createBaseProviderView_ConfigEntry();
|
|
12966
13342
|
message.key = object.key ?? "";
|
|
12967
|
-
message.value = object.value ??
|
|
13343
|
+
message.value = object.value ?? "";
|
|
12968
13344
|
return message;
|
|
12969
13345
|
}
|
|
12970
13346
|
};
|
|
@@ -13203,7 +13579,17 @@ var Position2 = {
|
|
|
13203
13579
|
}
|
|
13204
13580
|
};
|
|
13205
13581
|
function createBaseInputDef2() {
|
|
13206
|
-
return {
|
|
13582
|
+
return {
|
|
13583
|
+
name: "",
|
|
13584
|
+
type: "",
|
|
13585
|
+
required: false,
|
|
13586
|
+
description: "",
|
|
13587
|
+
default_value: void 0,
|
|
13588
|
+
validation: [],
|
|
13589
|
+
ephemeral: void 0,
|
|
13590
|
+
nullable: void 0,
|
|
13591
|
+
sensitive: false
|
|
13592
|
+
};
|
|
13207
13593
|
}
|
|
13208
13594
|
var InputDef2 = {
|
|
13209
13595
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -13222,8 +13608,17 @@ var InputDef2 = {
|
|
|
13222
13608
|
if (message.default_value !== void 0) {
|
|
13223
13609
|
Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
|
|
13224
13610
|
}
|
|
13225
|
-
|
|
13226
|
-
ValidationBlock2.encode(
|
|
13611
|
+
for (const v of message.validation) {
|
|
13612
|
+
ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
|
|
13613
|
+
}
|
|
13614
|
+
if (message.ephemeral !== void 0) {
|
|
13615
|
+
writer.uint32(56).bool(message.ephemeral);
|
|
13616
|
+
}
|
|
13617
|
+
if (message.nullable !== void 0) {
|
|
13618
|
+
writer.uint32(64).bool(message.nullable);
|
|
13619
|
+
}
|
|
13620
|
+
if (message.sensitive !== false) {
|
|
13621
|
+
writer.uint32(72).bool(message.sensitive);
|
|
13227
13622
|
}
|
|
13228
13623
|
return writer;
|
|
13229
13624
|
},
|
|
@@ -13273,7 +13668,28 @@ var InputDef2 = {
|
|
|
13273
13668
|
if (tag !== 50) {
|
|
13274
13669
|
break;
|
|
13275
13670
|
}
|
|
13276
|
-
message.validation
|
|
13671
|
+
message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
|
|
13672
|
+
continue;
|
|
13673
|
+
}
|
|
13674
|
+
case 7: {
|
|
13675
|
+
if (tag !== 56) {
|
|
13676
|
+
break;
|
|
13677
|
+
}
|
|
13678
|
+
message.ephemeral = reader.bool();
|
|
13679
|
+
continue;
|
|
13680
|
+
}
|
|
13681
|
+
case 8: {
|
|
13682
|
+
if (tag !== 64) {
|
|
13683
|
+
break;
|
|
13684
|
+
}
|
|
13685
|
+
message.nullable = reader.bool();
|
|
13686
|
+
continue;
|
|
13687
|
+
}
|
|
13688
|
+
case 9: {
|
|
13689
|
+
if (tag !== 72) {
|
|
13690
|
+
break;
|
|
13691
|
+
}
|
|
13692
|
+
message.sensitive = reader.bool();
|
|
13277
13693
|
continue;
|
|
13278
13694
|
}
|
|
13279
13695
|
}
|
|
@@ -13291,7 +13707,10 @@ var InputDef2 = {
|
|
|
13291
13707
|
required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
|
|
13292
13708
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
13293
13709
|
default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
|
|
13294
|
-
validation:
|
|
13710
|
+
validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
|
|
13711
|
+
ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0,
|
|
13712
|
+
nullable: isSet3(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
|
|
13713
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
13295
13714
|
};
|
|
13296
13715
|
},
|
|
13297
13716
|
toJSON(message) {
|
|
@@ -13311,8 +13730,17 @@ var InputDef2 = {
|
|
|
13311
13730
|
if (message.default_value !== void 0) {
|
|
13312
13731
|
obj.defaultValue = message.default_value;
|
|
13313
13732
|
}
|
|
13314
|
-
if (message.validation
|
|
13315
|
-
obj.validation = ValidationBlock2.toJSON(
|
|
13733
|
+
if (message.validation?.length) {
|
|
13734
|
+
obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
|
|
13735
|
+
}
|
|
13736
|
+
if (message.ephemeral !== void 0) {
|
|
13737
|
+
obj.ephemeral = message.ephemeral;
|
|
13738
|
+
}
|
|
13739
|
+
if (message.nullable !== void 0) {
|
|
13740
|
+
obj.nullable = message.nullable;
|
|
13741
|
+
}
|
|
13742
|
+
if (message.sensitive !== false) {
|
|
13743
|
+
obj.sensitive = message.sensitive;
|
|
13316
13744
|
}
|
|
13317
13745
|
return obj;
|
|
13318
13746
|
},
|
|
@@ -13326,7 +13754,10 @@ var InputDef2 = {
|
|
|
13326
13754
|
message.required = object.required ?? false;
|
|
13327
13755
|
message.description = object.description ?? "";
|
|
13328
13756
|
message.default_value = object.default_value ?? void 0;
|
|
13329
|
-
message.validation = object.validation
|
|
13757
|
+
message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
|
|
13758
|
+
message.ephemeral = object.ephemeral ?? void 0;
|
|
13759
|
+
message.nullable = object.nullable ?? void 0;
|
|
13760
|
+
message.sensitive = object.sensitive ?? false;
|
|
13330
13761
|
return message;
|
|
13331
13762
|
}
|
|
13332
13763
|
};
|
|
@@ -13399,7 +13830,7 @@ var ValidationBlock2 = {
|
|
|
13399
13830
|
}
|
|
13400
13831
|
};
|
|
13401
13832
|
function createBaseOutputDef2() {
|
|
13402
|
-
return { name: "", type: "", description: "", sensitive: false };
|
|
13833
|
+
return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
|
|
13403
13834
|
}
|
|
13404
13835
|
var OutputDef2 = {
|
|
13405
13836
|
encode(message, writer = new BinaryWriter4()) {
|
|
@@ -13415,6 +13846,9 @@ var OutputDef2 = {
|
|
|
13415
13846
|
if (message.sensitive !== false) {
|
|
13416
13847
|
writer.uint32(32).bool(message.sensitive);
|
|
13417
13848
|
}
|
|
13849
|
+
for (const v of message.depends_on) {
|
|
13850
|
+
writer.uint32(42).string(v);
|
|
13851
|
+
}
|
|
13418
13852
|
return writer;
|
|
13419
13853
|
},
|
|
13420
13854
|
decode(input, length) {
|
|
@@ -13452,6 +13886,13 @@ var OutputDef2 = {
|
|
|
13452
13886
|
message.sensitive = reader.bool();
|
|
13453
13887
|
continue;
|
|
13454
13888
|
}
|
|
13889
|
+
case 5: {
|
|
13890
|
+
if (tag !== 42) {
|
|
13891
|
+
break;
|
|
13892
|
+
}
|
|
13893
|
+
message.depends_on.push(reader.string());
|
|
13894
|
+
continue;
|
|
13895
|
+
}
|
|
13455
13896
|
}
|
|
13456
13897
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13457
13898
|
break;
|
|
@@ -13465,7 +13906,8 @@ var OutputDef2 = {
|
|
|
13465
13906
|
name: isSet3(object.name) ? globalThis.String(object.name) : "",
|
|
13466
13907
|
type: isSet3(object.type) ? globalThis.String(object.type) : "",
|
|
13467
13908
|
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
13468
|
-
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
|
|
13909
|
+
sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
13910
|
+
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)) : []
|
|
13469
13911
|
};
|
|
13470
13912
|
},
|
|
13471
13913
|
toJSON(message) {
|
|
@@ -13482,6 +13924,9 @@ var OutputDef2 = {
|
|
|
13482
13924
|
if (message.sensitive !== false) {
|
|
13483
13925
|
obj.sensitive = message.sensitive;
|
|
13484
13926
|
}
|
|
13927
|
+
if (message.depends_on?.length) {
|
|
13928
|
+
obj.dependsOn = message.depends_on;
|
|
13929
|
+
}
|
|
13485
13930
|
return obj;
|
|
13486
13931
|
},
|
|
13487
13932
|
create(base) {
|
|
@@ -13493,6 +13938,7 @@ var OutputDef2 = {
|
|
|
13493
13938
|
message.type = object.type ?? "";
|
|
13494
13939
|
message.description = object.description ?? "";
|
|
13495
13940
|
message.sensitive = object.sensitive ?? false;
|
|
13941
|
+
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
13496
13942
|
return message;
|
|
13497
13943
|
}
|
|
13498
13944
|
};
|