@lace-cloud/proto 0.6.4 → 0.7.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 +314 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.mjs +314 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1109,7 +1109,8 @@ function createBaseModule() {
|
|
|
1109
1109
|
locals: [],
|
|
1110
1110
|
exports: void 0,
|
|
1111
1111
|
terraform: void 0,
|
|
1112
|
-
providers: []
|
|
1112
|
+
providers: [],
|
|
1113
|
+
top_level_blocks: []
|
|
1113
1114
|
};
|
|
1114
1115
|
}
|
|
1115
1116
|
var Module = {
|
|
@@ -1144,6 +1145,9 @@ var Module = {
|
|
|
1144
1145
|
for (const v of message.providers) {
|
|
1145
1146
|
ProviderConfig.encode(v, writer.uint32(82).fork()).join();
|
|
1146
1147
|
}
|
|
1148
|
+
for (const v of message.top_level_blocks) {
|
|
1149
|
+
Block.encode(v, writer.uint32(90).fork()).join();
|
|
1150
|
+
}
|
|
1147
1151
|
return writer;
|
|
1148
1152
|
},
|
|
1149
1153
|
decode(input, length) {
|
|
@@ -1223,6 +1227,13 @@ var Module = {
|
|
|
1223
1227
|
message.providers.push(ProviderConfig.decode(reader, reader.uint32()));
|
|
1224
1228
|
continue;
|
|
1225
1229
|
}
|
|
1230
|
+
case 11: {
|
|
1231
|
+
if (tag !== 90) {
|
|
1232
|
+
break;
|
|
1233
|
+
}
|
|
1234
|
+
message.top_level_blocks.push(Block.decode(reader, reader.uint32()));
|
|
1235
|
+
continue;
|
|
1236
|
+
}
|
|
1226
1237
|
}
|
|
1227
1238
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1228
1239
|
break;
|
|
@@ -1242,7 +1253,8 @@ var Module = {
|
|
|
1242
1253
|
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => Local.fromJSON(e)) : [],
|
|
1243
1254
|
exports: isSet2(object.exports) ? Exports.fromJSON(object.exports) : void 0,
|
|
1244
1255
|
terraform: isSet2(object.terraform) ? TerraformBlock.fromJSON(object.terraform) : void 0,
|
|
1245
|
-
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : []
|
|
1256
|
+
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : [],
|
|
1257
|
+
top_level_blocks: globalThis.Array.isArray(object?.topLevelBlocks) ? object.topLevelBlocks.map((e) => Block.fromJSON(e)) : globalThis.Array.isArray(object?.top_level_blocks) ? object.top_level_blocks.map((e) => Block.fromJSON(e)) : []
|
|
1246
1258
|
};
|
|
1247
1259
|
},
|
|
1248
1260
|
toJSON(message) {
|
|
@@ -1277,6 +1289,9 @@ var Module = {
|
|
|
1277
1289
|
if (message.providers?.length) {
|
|
1278
1290
|
obj.providers = message.providers.map((e) => ProviderConfig.toJSON(e));
|
|
1279
1291
|
}
|
|
1292
|
+
if (message.top_level_blocks?.length) {
|
|
1293
|
+
obj.topLevelBlocks = message.top_level_blocks.map((e) => Block.toJSON(e));
|
|
1294
|
+
}
|
|
1280
1295
|
return obj;
|
|
1281
1296
|
},
|
|
1282
1297
|
create(base) {
|
|
@@ -1294,6 +1309,7 @@ var Module = {
|
|
|
1294
1309
|
message.exports = object.exports !== void 0 && object.exports !== null ? Exports.fromPartial(object.exports) : void 0;
|
|
1295
1310
|
message.terraform = object.terraform !== void 0 && object.terraform !== null ? TerraformBlock.fromPartial(object.terraform) : void 0;
|
|
1296
1311
|
message.providers = object.providers?.map((e) => ProviderConfig.fromPartial(e)) || [];
|
|
1312
|
+
message.top_level_blocks = object.top_level_blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
1297
1313
|
return message;
|
|
1298
1314
|
}
|
|
1299
1315
|
};
|
|
@@ -1366,7 +1382,16 @@ var Interface = {
|
|
|
1366
1382
|
}
|
|
1367
1383
|
};
|
|
1368
1384
|
function createBaseInputDef() {
|
|
1369
|
-
return {
|
|
1385
|
+
return {
|
|
1386
|
+
name: "",
|
|
1387
|
+
type: "",
|
|
1388
|
+
required: false,
|
|
1389
|
+
description: "",
|
|
1390
|
+
default_value: void 0,
|
|
1391
|
+
validation: void 0,
|
|
1392
|
+
sensitive: false,
|
|
1393
|
+
nullable: void 0
|
|
1394
|
+
};
|
|
1370
1395
|
}
|
|
1371
1396
|
var InputDef = {
|
|
1372
1397
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -1388,6 +1413,12 @@ var InputDef = {
|
|
|
1388
1413
|
if (message.validation !== void 0) {
|
|
1389
1414
|
ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
|
|
1390
1415
|
}
|
|
1416
|
+
if (message.sensitive !== false) {
|
|
1417
|
+
writer.uint32(56).bool(message.sensitive);
|
|
1418
|
+
}
|
|
1419
|
+
if (message.nullable !== void 0) {
|
|
1420
|
+
writer.uint32(64).bool(message.nullable);
|
|
1421
|
+
}
|
|
1391
1422
|
return writer;
|
|
1392
1423
|
},
|
|
1393
1424
|
decode(input, length) {
|
|
@@ -1439,6 +1470,20 @@ var InputDef = {
|
|
|
1439
1470
|
message.validation = ValidationBlock.decode(reader, reader.uint32());
|
|
1440
1471
|
continue;
|
|
1441
1472
|
}
|
|
1473
|
+
case 7: {
|
|
1474
|
+
if (tag !== 56) {
|
|
1475
|
+
break;
|
|
1476
|
+
}
|
|
1477
|
+
message.sensitive = reader.bool();
|
|
1478
|
+
continue;
|
|
1479
|
+
}
|
|
1480
|
+
case 8: {
|
|
1481
|
+
if (tag !== 64) {
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
message.nullable = reader.bool();
|
|
1485
|
+
continue;
|
|
1486
|
+
}
|
|
1442
1487
|
}
|
|
1443
1488
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1444
1489
|
break;
|
|
@@ -1454,7 +1499,9 @@ var InputDef = {
|
|
|
1454
1499
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1455
1500
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1456
1501
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1457
|
-
validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0
|
|
1502
|
+
validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
|
|
1503
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1504
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1458
1505
|
};
|
|
1459
1506
|
},
|
|
1460
1507
|
toJSON(message) {
|
|
@@ -1477,6 +1524,12 @@ var InputDef = {
|
|
|
1477
1524
|
if (message.validation !== void 0) {
|
|
1478
1525
|
obj.validation = ValidationBlock.toJSON(message.validation);
|
|
1479
1526
|
}
|
|
1527
|
+
if (message.sensitive !== false) {
|
|
1528
|
+
obj.sensitive = message.sensitive;
|
|
1529
|
+
}
|
|
1530
|
+
if (message.nullable !== void 0) {
|
|
1531
|
+
obj.nullable = message.nullable;
|
|
1532
|
+
}
|
|
1480
1533
|
return obj;
|
|
1481
1534
|
},
|
|
1482
1535
|
create(base) {
|
|
@@ -1490,6 +1543,8 @@ var InputDef = {
|
|
|
1490
1543
|
message.description = object.description ?? "";
|
|
1491
1544
|
message.default_value = object.default_value ?? void 0;
|
|
1492
1545
|
message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
|
|
1546
|
+
message.sensitive = object.sensitive ?? false;
|
|
1547
|
+
message.nullable = object.nullable ?? void 0;
|
|
1493
1548
|
return message;
|
|
1494
1549
|
}
|
|
1495
1550
|
};
|
|
@@ -2030,7 +2085,17 @@ var Use_InputsEntry = {
|
|
|
2030
2085
|
}
|
|
2031
2086
|
};
|
|
2032
2087
|
function createBaseResource() {
|
|
2033
|
-
return {
|
|
2088
|
+
return {
|
|
2089
|
+
id: "",
|
|
2090
|
+
kind: "",
|
|
2091
|
+
type: "",
|
|
2092
|
+
inputs: {},
|
|
2093
|
+
depends_on: [],
|
|
2094
|
+
blocks: [],
|
|
2095
|
+
count: void 0,
|
|
2096
|
+
for_each: void 0,
|
|
2097
|
+
provider_ref: ""
|
|
2098
|
+
};
|
|
2034
2099
|
}
|
|
2035
2100
|
var Resource = {
|
|
2036
2101
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -2049,6 +2114,18 @@ var Resource = {
|
|
|
2049
2114
|
for (const v of message.depends_on) {
|
|
2050
2115
|
writer.uint32(42).string(v);
|
|
2051
2116
|
}
|
|
2117
|
+
for (const v of message.blocks) {
|
|
2118
|
+
Block.encode(v, writer.uint32(50).fork()).join();
|
|
2119
|
+
}
|
|
2120
|
+
if (message.count !== void 0) {
|
|
2121
|
+
Binding.encode(message.count, writer.uint32(58).fork()).join();
|
|
2122
|
+
}
|
|
2123
|
+
if (message.for_each !== void 0) {
|
|
2124
|
+
Binding.encode(message.for_each, writer.uint32(66).fork()).join();
|
|
2125
|
+
}
|
|
2126
|
+
if (message.provider_ref !== "") {
|
|
2127
|
+
writer.uint32(74).string(message.provider_ref);
|
|
2128
|
+
}
|
|
2052
2129
|
return writer;
|
|
2053
2130
|
},
|
|
2054
2131
|
decode(input, length) {
|
|
@@ -2096,6 +2173,34 @@ var Resource = {
|
|
|
2096
2173
|
message.depends_on.push(reader.string());
|
|
2097
2174
|
continue;
|
|
2098
2175
|
}
|
|
2176
|
+
case 6: {
|
|
2177
|
+
if (tag !== 50) {
|
|
2178
|
+
break;
|
|
2179
|
+
}
|
|
2180
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
2181
|
+
continue;
|
|
2182
|
+
}
|
|
2183
|
+
case 7: {
|
|
2184
|
+
if (tag !== 58) {
|
|
2185
|
+
break;
|
|
2186
|
+
}
|
|
2187
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
2188
|
+
continue;
|
|
2189
|
+
}
|
|
2190
|
+
case 8: {
|
|
2191
|
+
if (tag !== 66) {
|
|
2192
|
+
break;
|
|
2193
|
+
}
|
|
2194
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
2195
|
+
continue;
|
|
2196
|
+
}
|
|
2197
|
+
case 9: {
|
|
2198
|
+
if (tag !== 74) {
|
|
2199
|
+
break;
|
|
2200
|
+
}
|
|
2201
|
+
message.provider_ref = reader.string();
|
|
2202
|
+
continue;
|
|
2203
|
+
}
|
|
2099
2204
|
}
|
|
2100
2205
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2101
2206
|
break;
|
|
@@ -2116,7 +2221,11 @@ var Resource = {
|
|
|
2116
2221
|
},
|
|
2117
2222
|
{}
|
|
2118
2223
|
) : {},
|
|
2119
|
-
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)) : []
|
|
2224
|
+
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)) : [],
|
|
2225
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : [],
|
|
2226
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
2227
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
|
|
2228
|
+
provider_ref: isSet2(object.providerRef) ? globalThis.String(object.providerRef) : isSet2(object.provider_ref) ? globalThis.String(object.provider_ref) : ""
|
|
2120
2229
|
};
|
|
2121
2230
|
},
|
|
2122
2231
|
toJSON(message) {
|
|
@@ -2142,6 +2251,18 @@ var Resource = {
|
|
|
2142
2251
|
if (message.depends_on?.length) {
|
|
2143
2252
|
obj.dependsOn = message.depends_on;
|
|
2144
2253
|
}
|
|
2254
|
+
if (message.blocks?.length) {
|
|
2255
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
2256
|
+
}
|
|
2257
|
+
if (message.count !== void 0) {
|
|
2258
|
+
obj.count = Binding.toJSON(message.count);
|
|
2259
|
+
}
|
|
2260
|
+
if (message.for_each !== void 0) {
|
|
2261
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
2262
|
+
}
|
|
2263
|
+
if (message.provider_ref !== "") {
|
|
2264
|
+
obj.providerRef = message.provider_ref;
|
|
2265
|
+
}
|
|
2145
2266
|
return obj;
|
|
2146
2267
|
},
|
|
2147
2268
|
create(base) {
|
|
@@ -2162,6 +2283,10 @@ var Resource = {
|
|
|
2162
2283
|
{}
|
|
2163
2284
|
);
|
|
2164
2285
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2286
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
2287
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2288
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2289
|
+
message.provider_ref = object.provider_ref ?? "";
|
|
2165
2290
|
return message;
|
|
2166
2291
|
}
|
|
2167
2292
|
};
|
|
@@ -2233,6 +2358,172 @@ var Resource_InputsEntry = {
|
|
|
2233
2358
|
return message;
|
|
2234
2359
|
}
|
|
2235
2360
|
};
|
|
2361
|
+
function createBaseBlock() {
|
|
2362
|
+
return { type: "", labels: [], attributes: [], blocks: [] };
|
|
2363
|
+
}
|
|
2364
|
+
var Block = {
|
|
2365
|
+
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
2366
|
+
if (message.type !== "") {
|
|
2367
|
+
writer.uint32(10).string(message.type);
|
|
2368
|
+
}
|
|
2369
|
+
for (const v of message.labels) {
|
|
2370
|
+
writer.uint32(18).string(v);
|
|
2371
|
+
}
|
|
2372
|
+
for (const v of message.attributes) {
|
|
2373
|
+
NamedBinding.encode(v, writer.uint32(26).fork()).join();
|
|
2374
|
+
}
|
|
2375
|
+
for (const v of message.blocks) {
|
|
2376
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
2377
|
+
}
|
|
2378
|
+
return writer;
|
|
2379
|
+
},
|
|
2380
|
+
decode(input, length) {
|
|
2381
|
+
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
2382
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2383
|
+
const message = createBaseBlock();
|
|
2384
|
+
while (reader.pos < end) {
|
|
2385
|
+
const tag = reader.uint32();
|
|
2386
|
+
switch (tag >>> 3) {
|
|
2387
|
+
case 1: {
|
|
2388
|
+
if (tag !== 10) {
|
|
2389
|
+
break;
|
|
2390
|
+
}
|
|
2391
|
+
message.type = reader.string();
|
|
2392
|
+
continue;
|
|
2393
|
+
}
|
|
2394
|
+
case 2: {
|
|
2395
|
+
if (tag !== 18) {
|
|
2396
|
+
break;
|
|
2397
|
+
}
|
|
2398
|
+
message.labels.push(reader.string());
|
|
2399
|
+
continue;
|
|
2400
|
+
}
|
|
2401
|
+
case 3: {
|
|
2402
|
+
if (tag !== 26) {
|
|
2403
|
+
break;
|
|
2404
|
+
}
|
|
2405
|
+
message.attributes.push(NamedBinding.decode(reader, reader.uint32()));
|
|
2406
|
+
continue;
|
|
2407
|
+
}
|
|
2408
|
+
case 4: {
|
|
2409
|
+
if (tag !== 34) {
|
|
2410
|
+
break;
|
|
2411
|
+
}
|
|
2412
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
2413
|
+
continue;
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
reader.skip(tag & 7);
|
|
2420
|
+
}
|
|
2421
|
+
return message;
|
|
2422
|
+
},
|
|
2423
|
+
fromJSON(object) {
|
|
2424
|
+
return {
|
|
2425
|
+
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
2426
|
+
labels: globalThis.Array.isArray(object?.labels) ? object.labels.map((e) => globalThis.String(e)) : [],
|
|
2427
|
+
attributes: globalThis.Array.isArray(object?.attributes) ? object.attributes.map((e) => NamedBinding.fromJSON(e)) : [],
|
|
2428
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
2429
|
+
};
|
|
2430
|
+
},
|
|
2431
|
+
toJSON(message) {
|
|
2432
|
+
const obj = {};
|
|
2433
|
+
if (message.type !== "") {
|
|
2434
|
+
obj.type = message.type;
|
|
2435
|
+
}
|
|
2436
|
+
if (message.labels?.length) {
|
|
2437
|
+
obj.labels = message.labels;
|
|
2438
|
+
}
|
|
2439
|
+
if (message.attributes?.length) {
|
|
2440
|
+
obj.attributes = message.attributes.map((e) => NamedBinding.toJSON(e));
|
|
2441
|
+
}
|
|
2442
|
+
if (message.blocks?.length) {
|
|
2443
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
2444
|
+
}
|
|
2445
|
+
return obj;
|
|
2446
|
+
},
|
|
2447
|
+
create(base) {
|
|
2448
|
+
return Block.fromPartial(base ?? {});
|
|
2449
|
+
},
|
|
2450
|
+
fromPartial(object) {
|
|
2451
|
+
const message = createBaseBlock();
|
|
2452
|
+
message.type = object.type ?? "";
|
|
2453
|
+
message.labels = object.labels?.map((e) => e) || [];
|
|
2454
|
+
message.attributes = object.attributes?.map((e) => NamedBinding.fromPartial(e)) || [];
|
|
2455
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
2456
|
+
return message;
|
|
2457
|
+
}
|
|
2458
|
+
};
|
|
2459
|
+
function createBaseNamedBinding() {
|
|
2460
|
+
return { name: "", value: void 0 };
|
|
2461
|
+
}
|
|
2462
|
+
var NamedBinding = {
|
|
2463
|
+
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
2464
|
+
if (message.name !== "") {
|
|
2465
|
+
writer.uint32(10).string(message.name);
|
|
2466
|
+
}
|
|
2467
|
+
if (message.value !== void 0) {
|
|
2468
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
2469
|
+
}
|
|
2470
|
+
return writer;
|
|
2471
|
+
},
|
|
2472
|
+
decode(input, length) {
|
|
2473
|
+
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
2474
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2475
|
+
const message = createBaseNamedBinding();
|
|
2476
|
+
while (reader.pos < end) {
|
|
2477
|
+
const tag = reader.uint32();
|
|
2478
|
+
switch (tag >>> 3) {
|
|
2479
|
+
case 1: {
|
|
2480
|
+
if (tag !== 10) {
|
|
2481
|
+
break;
|
|
2482
|
+
}
|
|
2483
|
+
message.name = reader.string();
|
|
2484
|
+
continue;
|
|
2485
|
+
}
|
|
2486
|
+
case 2: {
|
|
2487
|
+
if (tag !== 18) {
|
|
2488
|
+
break;
|
|
2489
|
+
}
|
|
2490
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
2491
|
+
continue;
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2495
|
+
break;
|
|
2496
|
+
}
|
|
2497
|
+
reader.skip(tag & 7);
|
|
2498
|
+
}
|
|
2499
|
+
return message;
|
|
2500
|
+
},
|
|
2501
|
+
fromJSON(object) {
|
|
2502
|
+
return {
|
|
2503
|
+
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
2504
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
2505
|
+
};
|
|
2506
|
+
},
|
|
2507
|
+
toJSON(message) {
|
|
2508
|
+
const obj = {};
|
|
2509
|
+
if (message.name !== "") {
|
|
2510
|
+
obj.name = message.name;
|
|
2511
|
+
}
|
|
2512
|
+
if (message.value !== void 0) {
|
|
2513
|
+
obj.value = Binding.toJSON(message.value);
|
|
2514
|
+
}
|
|
2515
|
+
return obj;
|
|
2516
|
+
},
|
|
2517
|
+
create(base) {
|
|
2518
|
+
return NamedBinding.fromPartial(base ?? {});
|
|
2519
|
+
},
|
|
2520
|
+
fromPartial(object) {
|
|
2521
|
+
const message = createBaseNamedBinding();
|
|
2522
|
+
message.name = object.name ?? "";
|
|
2523
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
2524
|
+
return message;
|
|
2525
|
+
}
|
|
2526
|
+
};
|
|
2236
2527
|
function createBaseExports() {
|
|
2237
2528
|
return { outputs: {} };
|
|
2238
2529
|
}
|
|
@@ -3119,7 +3410,7 @@ var BackendConfig_ConfigEntry = {
|
|
|
3119
3410
|
}
|
|
3120
3411
|
};
|
|
3121
3412
|
function createBaseProviderConfig() {
|
|
3122
|
-
return { name: "", alias: "", config: {} };
|
|
3413
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
3123
3414
|
}
|
|
3124
3415
|
var ProviderConfig = {
|
|
3125
3416
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -3134,6 +3425,9 @@ var ProviderConfig = {
|
|
|
3134
3425
|
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3135
3426
|
}
|
|
3136
3427
|
});
|
|
3428
|
+
for (const v of message.blocks) {
|
|
3429
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
3430
|
+
}
|
|
3137
3431
|
return writer;
|
|
3138
3432
|
},
|
|
3139
3433
|
decode(input, length) {
|
|
@@ -3167,6 +3461,13 @@ var ProviderConfig = {
|
|
|
3167
3461
|
}
|
|
3168
3462
|
continue;
|
|
3169
3463
|
}
|
|
3464
|
+
case 4: {
|
|
3465
|
+
if (tag !== 34) {
|
|
3466
|
+
break;
|
|
3467
|
+
}
|
|
3468
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
3469
|
+
continue;
|
|
3470
|
+
}
|
|
3170
3471
|
}
|
|
3171
3472
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3172
3473
|
break;
|
|
@@ -3185,7 +3486,8 @@ var ProviderConfig = {
|
|
|
3185
3486
|
return acc;
|
|
3186
3487
|
},
|
|
3187
3488
|
{}
|
|
3188
|
-
) : {}
|
|
3489
|
+
) : {},
|
|
3490
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
3189
3491
|
};
|
|
3190
3492
|
},
|
|
3191
3493
|
toJSON(message) {
|
|
@@ -3205,6 +3507,9 @@ var ProviderConfig = {
|
|
|
3205
3507
|
});
|
|
3206
3508
|
}
|
|
3207
3509
|
}
|
|
3510
|
+
if (message.blocks?.length) {
|
|
3511
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
3512
|
+
}
|
|
3208
3513
|
return obj;
|
|
3209
3514
|
},
|
|
3210
3515
|
create(base) {
|
|
@@ -3223,6 +3528,7 @@ var ProviderConfig = {
|
|
|
3223
3528
|
},
|
|
3224
3529
|
{}
|
|
3225
3530
|
);
|
|
3531
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
3226
3532
|
return message;
|
|
3227
3533
|
}
|
|
3228
3534
|
};
|