@lace-cloud/host 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 +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1072,7 +1072,8 @@ function createBaseModule() {
|
|
|
1072
1072
|
locals: [],
|
|
1073
1073
|
exports: void 0,
|
|
1074
1074
|
terraform: void 0,
|
|
1075
|
-
providers: []
|
|
1075
|
+
providers: [],
|
|
1076
|
+
top_level_blocks: []
|
|
1076
1077
|
};
|
|
1077
1078
|
}
|
|
1078
1079
|
var Module = {
|
|
@@ -1107,6 +1108,9 @@ var Module = {
|
|
|
1107
1108
|
for (const v of message.providers) {
|
|
1108
1109
|
ProviderConfig.encode(v, writer.uint32(82).fork()).join();
|
|
1109
1110
|
}
|
|
1111
|
+
for (const v of message.top_level_blocks) {
|
|
1112
|
+
Block.encode(v, writer.uint32(90).fork()).join();
|
|
1113
|
+
}
|
|
1110
1114
|
return writer;
|
|
1111
1115
|
},
|
|
1112
1116
|
decode(input, length) {
|
|
@@ -1186,6 +1190,13 @@ var Module = {
|
|
|
1186
1190
|
message.providers.push(ProviderConfig.decode(reader, reader.uint32()));
|
|
1187
1191
|
continue;
|
|
1188
1192
|
}
|
|
1193
|
+
case 11: {
|
|
1194
|
+
if (tag !== 90) {
|
|
1195
|
+
break;
|
|
1196
|
+
}
|
|
1197
|
+
message.top_level_blocks.push(Block.decode(reader, reader.uint32()));
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1189
1200
|
}
|
|
1190
1201
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1191
1202
|
break;
|
|
@@ -1205,7 +1216,8 @@ var Module = {
|
|
|
1205
1216
|
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => Local.fromJSON(e)) : [],
|
|
1206
1217
|
exports: isSet2(object.exports) ? Exports.fromJSON(object.exports) : void 0,
|
|
1207
1218
|
terraform: isSet2(object.terraform) ? TerraformBlock.fromJSON(object.terraform) : void 0,
|
|
1208
|
-
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : []
|
|
1219
|
+
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : [],
|
|
1220
|
+
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)) : []
|
|
1209
1221
|
};
|
|
1210
1222
|
},
|
|
1211
1223
|
toJSON(message) {
|
|
@@ -1240,6 +1252,9 @@ var Module = {
|
|
|
1240
1252
|
if (message.providers?.length) {
|
|
1241
1253
|
obj.providers = message.providers.map((e) => ProviderConfig.toJSON(e));
|
|
1242
1254
|
}
|
|
1255
|
+
if (message.top_level_blocks?.length) {
|
|
1256
|
+
obj.topLevelBlocks = message.top_level_blocks.map((e) => Block.toJSON(e));
|
|
1257
|
+
}
|
|
1243
1258
|
return obj;
|
|
1244
1259
|
},
|
|
1245
1260
|
create(base) {
|
|
@@ -1257,6 +1272,7 @@ var Module = {
|
|
|
1257
1272
|
message.exports = object.exports !== void 0 && object.exports !== null ? Exports.fromPartial(object.exports) : void 0;
|
|
1258
1273
|
message.terraform = object.terraform !== void 0 && object.terraform !== null ? TerraformBlock.fromPartial(object.terraform) : void 0;
|
|
1259
1274
|
message.providers = object.providers?.map((e) => ProviderConfig.fromPartial(e)) || [];
|
|
1275
|
+
message.top_level_blocks = object.top_level_blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
1260
1276
|
return message;
|
|
1261
1277
|
}
|
|
1262
1278
|
};
|
|
@@ -1329,7 +1345,16 @@ var Interface = {
|
|
|
1329
1345
|
}
|
|
1330
1346
|
};
|
|
1331
1347
|
function createBaseInputDef() {
|
|
1332
|
-
return {
|
|
1348
|
+
return {
|
|
1349
|
+
name: "",
|
|
1350
|
+
type: "",
|
|
1351
|
+
required: false,
|
|
1352
|
+
description: "",
|
|
1353
|
+
default_value: void 0,
|
|
1354
|
+
validation: void 0,
|
|
1355
|
+
sensitive: false,
|
|
1356
|
+
nullable: void 0
|
|
1357
|
+
};
|
|
1333
1358
|
}
|
|
1334
1359
|
var InputDef = {
|
|
1335
1360
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -1351,6 +1376,12 @@ var InputDef = {
|
|
|
1351
1376
|
if (message.validation !== void 0) {
|
|
1352
1377
|
ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
|
|
1353
1378
|
}
|
|
1379
|
+
if (message.sensitive !== false) {
|
|
1380
|
+
writer.uint32(56).bool(message.sensitive);
|
|
1381
|
+
}
|
|
1382
|
+
if (message.nullable !== void 0) {
|
|
1383
|
+
writer.uint32(64).bool(message.nullable);
|
|
1384
|
+
}
|
|
1354
1385
|
return writer;
|
|
1355
1386
|
},
|
|
1356
1387
|
decode(input, length) {
|
|
@@ -1402,6 +1433,20 @@ var InputDef = {
|
|
|
1402
1433
|
message.validation = ValidationBlock.decode(reader, reader.uint32());
|
|
1403
1434
|
continue;
|
|
1404
1435
|
}
|
|
1436
|
+
case 7: {
|
|
1437
|
+
if (tag !== 56) {
|
|
1438
|
+
break;
|
|
1439
|
+
}
|
|
1440
|
+
message.sensitive = reader.bool();
|
|
1441
|
+
continue;
|
|
1442
|
+
}
|
|
1443
|
+
case 8: {
|
|
1444
|
+
if (tag !== 64) {
|
|
1445
|
+
break;
|
|
1446
|
+
}
|
|
1447
|
+
message.nullable = reader.bool();
|
|
1448
|
+
continue;
|
|
1449
|
+
}
|
|
1405
1450
|
}
|
|
1406
1451
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1407
1452
|
break;
|
|
@@ -1417,7 +1462,9 @@ var InputDef = {
|
|
|
1417
1462
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1418
1463
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1419
1464
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1420
|
-
validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0
|
|
1465
|
+
validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
|
|
1466
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1467
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1421
1468
|
};
|
|
1422
1469
|
},
|
|
1423
1470
|
toJSON(message) {
|
|
@@ -1440,6 +1487,12 @@ var InputDef = {
|
|
|
1440
1487
|
if (message.validation !== void 0) {
|
|
1441
1488
|
obj.validation = ValidationBlock.toJSON(message.validation);
|
|
1442
1489
|
}
|
|
1490
|
+
if (message.sensitive !== false) {
|
|
1491
|
+
obj.sensitive = message.sensitive;
|
|
1492
|
+
}
|
|
1493
|
+
if (message.nullable !== void 0) {
|
|
1494
|
+
obj.nullable = message.nullable;
|
|
1495
|
+
}
|
|
1443
1496
|
return obj;
|
|
1444
1497
|
},
|
|
1445
1498
|
create(base) {
|
|
@@ -1453,6 +1506,8 @@ var InputDef = {
|
|
|
1453
1506
|
message.description = object.description ?? "";
|
|
1454
1507
|
message.default_value = object.default_value ?? void 0;
|
|
1455
1508
|
message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
|
|
1509
|
+
message.sensitive = object.sensitive ?? false;
|
|
1510
|
+
message.nullable = object.nullable ?? void 0;
|
|
1456
1511
|
return message;
|
|
1457
1512
|
}
|
|
1458
1513
|
};
|
|
@@ -1993,7 +2048,17 @@ var Use_InputsEntry = {
|
|
|
1993
2048
|
}
|
|
1994
2049
|
};
|
|
1995
2050
|
function createBaseResource() {
|
|
1996
|
-
return {
|
|
2051
|
+
return {
|
|
2052
|
+
id: "",
|
|
2053
|
+
kind: "",
|
|
2054
|
+
type: "",
|
|
2055
|
+
inputs: {},
|
|
2056
|
+
depends_on: [],
|
|
2057
|
+
blocks: [],
|
|
2058
|
+
count: void 0,
|
|
2059
|
+
for_each: void 0,
|
|
2060
|
+
provider_ref: ""
|
|
2061
|
+
};
|
|
1997
2062
|
}
|
|
1998
2063
|
var Resource = {
|
|
1999
2064
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -2012,6 +2077,18 @@ var Resource = {
|
|
|
2012
2077
|
for (const v of message.depends_on) {
|
|
2013
2078
|
writer.uint32(42).string(v);
|
|
2014
2079
|
}
|
|
2080
|
+
for (const v of message.blocks) {
|
|
2081
|
+
Block.encode(v, writer.uint32(50).fork()).join();
|
|
2082
|
+
}
|
|
2083
|
+
if (message.count !== void 0) {
|
|
2084
|
+
Binding.encode(message.count, writer.uint32(58).fork()).join();
|
|
2085
|
+
}
|
|
2086
|
+
if (message.for_each !== void 0) {
|
|
2087
|
+
Binding.encode(message.for_each, writer.uint32(66).fork()).join();
|
|
2088
|
+
}
|
|
2089
|
+
if (message.provider_ref !== "") {
|
|
2090
|
+
writer.uint32(74).string(message.provider_ref);
|
|
2091
|
+
}
|
|
2015
2092
|
return writer;
|
|
2016
2093
|
},
|
|
2017
2094
|
decode(input, length) {
|
|
@@ -2059,6 +2136,34 @@ var Resource = {
|
|
|
2059
2136
|
message.depends_on.push(reader.string());
|
|
2060
2137
|
continue;
|
|
2061
2138
|
}
|
|
2139
|
+
case 6: {
|
|
2140
|
+
if (tag !== 50) {
|
|
2141
|
+
break;
|
|
2142
|
+
}
|
|
2143
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
2144
|
+
continue;
|
|
2145
|
+
}
|
|
2146
|
+
case 7: {
|
|
2147
|
+
if (tag !== 58) {
|
|
2148
|
+
break;
|
|
2149
|
+
}
|
|
2150
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
2151
|
+
continue;
|
|
2152
|
+
}
|
|
2153
|
+
case 8: {
|
|
2154
|
+
if (tag !== 66) {
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
2158
|
+
continue;
|
|
2159
|
+
}
|
|
2160
|
+
case 9: {
|
|
2161
|
+
if (tag !== 74) {
|
|
2162
|
+
break;
|
|
2163
|
+
}
|
|
2164
|
+
message.provider_ref = reader.string();
|
|
2165
|
+
continue;
|
|
2166
|
+
}
|
|
2062
2167
|
}
|
|
2063
2168
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2064
2169
|
break;
|
|
@@ -2079,7 +2184,11 @@ var Resource = {
|
|
|
2079
2184
|
},
|
|
2080
2185
|
{}
|
|
2081
2186
|
) : {},
|
|
2082
|
-
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)) : []
|
|
2187
|
+
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)) : [],
|
|
2188
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : [],
|
|
2189
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
2190
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
|
|
2191
|
+
provider_ref: isSet2(object.providerRef) ? globalThis.String(object.providerRef) : isSet2(object.provider_ref) ? globalThis.String(object.provider_ref) : ""
|
|
2083
2192
|
};
|
|
2084
2193
|
},
|
|
2085
2194
|
toJSON(message) {
|
|
@@ -2105,6 +2214,18 @@ var Resource = {
|
|
|
2105
2214
|
if (message.depends_on?.length) {
|
|
2106
2215
|
obj.dependsOn = message.depends_on;
|
|
2107
2216
|
}
|
|
2217
|
+
if (message.blocks?.length) {
|
|
2218
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
2219
|
+
}
|
|
2220
|
+
if (message.count !== void 0) {
|
|
2221
|
+
obj.count = Binding.toJSON(message.count);
|
|
2222
|
+
}
|
|
2223
|
+
if (message.for_each !== void 0) {
|
|
2224
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
2225
|
+
}
|
|
2226
|
+
if (message.provider_ref !== "") {
|
|
2227
|
+
obj.providerRef = message.provider_ref;
|
|
2228
|
+
}
|
|
2108
2229
|
return obj;
|
|
2109
2230
|
},
|
|
2110
2231
|
create(base) {
|
|
@@ -2125,6 +2246,10 @@ var Resource = {
|
|
|
2125
2246
|
{}
|
|
2126
2247
|
);
|
|
2127
2248
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2249
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
2250
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2251
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2252
|
+
message.provider_ref = object.provider_ref ?? "";
|
|
2128
2253
|
return message;
|
|
2129
2254
|
}
|
|
2130
2255
|
};
|
|
@@ -2196,6 +2321,172 @@ var Resource_InputsEntry = {
|
|
|
2196
2321
|
return message;
|
|
2197
2322
|
}
|
|
2198
2323
|
};
|
|
2324
|
+
function createBaseBlock() {
|
|
2325
|
+
return { type: "", labels: [], attributes: [], blocks: [] };
|
|
2326
|
+
}
|
|
2327
|
+
var Block = {
|
|
2328
|
+
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
2329
|
+
if (message.type !== "") {
|
|
2330
|
+
writer.uint32(10).string(message.type);
|
|
2331
|
+
}
|
|
2332
|
+
for (const v of message.labels) {
|
|
2333
|
+
writer.uint32(18).string(v);
|
|
2334
|
+
}
|
|
2335
|
+
for (const v of message.attributes) {
|
|
2336
|
+
NamedBinding.encode(v, writer.uint32(26).fork()).join();
|
|
2337
|
+
}
|
|
2338
|
+
for (const v of message.blocks) {
|
|
2339
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
2340
|
+
}
|
|
2341
|
+
return writer;
|
|
2342
|
+
},
|
|
2343
|
+
decode(input, length) {
|
|
2344
|
+
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
2345
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2346
|
+
const message = createBaseBlock();
|
|
2347
|
+
while (reader.pos < end) {
|
|
2348
|
+
const tag = reader.uint32();
|
|
2349
|
+
switch (tag >>> 3) {
|
|
2350
|
+
case 1: {
|
|
2351
|
+
if (tag !== 10) {
|
|
2352
|
+
break;
|
|
2353
|
+
}
|
|
2354
|
+
message.type = reader.string();
|
|
2355
|
+
continue;
|
|
2356
|
+
}
|
|
2357
|
+
case 2: {
|
|
2358
|
+
if (tag !== 18) {
|
|
2359
|
+
break;
|
|
2360
|
+
}
|
|
2361
|
+
message.labels.push(reader.string());
|
|
2362
|
+
continue;
|
|
2363
|
+
}
|
|
2364
|
+
case 3: {
|
|
2365
|
+
if (tag !== 26) {
|
|
2366
|
+
break;
|
|
2367
|
+
}
|
|
2368
|
+
message.attributes.push(NamedBinding.decode(reader, reader.uint32()));
|
|
2369
|
+
continue;
|
|
2370
|
+
}
|
|
2371
|
+
case 4: {
|
|
2372
|
+
if (tag !== 34) {
|
|
2373
|
+
break;
|
|
2374
|
+
}
|
|
2375
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
2376
|
+
continue;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2380
|
+
break;
|
|
2381
|
+
}
|
|
2382
|
+
reader.skip(tag & 7);
|
|
2383
|
+
}
|
|
2384
|
+
return message;
|
|
2385
|
+
},
|
|
2386
|
+
fromJSON(object) {
|
|
2387
|
+
return {
|
|
2388
|
+
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
2389
|
+
labels: globalThis.Array.isArray(object?.labels) ? object.labels.map((e) => globalThis.String(e)) : [],
|
|
2390
|
+
attributes: globalThis.Array.isArray(object?.attributes) ? object.attributes.map((e) => NamedBinding.fromJSON(e)) : [],
|
|
2391
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
2392
|
+
};
|
|
2393
|
+
},
|
|
2394
|
+
toJSON(message) {
|
|
2395
|
+
const obj = {};
|
|
2396
|
+
if (message.type !== "") {
|
|
2397
|
+
obj.type = message.type;
|
|
2398
|
+
}
|
|
2399
|
+
if (message.labels?.length) {
|
|
2400
|
+
obj.labels = message.labels;
|
|
2401
|
+
}
|
|
2402
|
+
if (message.attributes?.length) {
|
|
2403
|
+
obj.attributes = message.attributes.map((e) => NamedBinding.toJSON(e));
|
|
2404
|
+
}
|
|
2405
|
+
if (message.blocks?.length) {
|
|
2406
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
2407
|
+
}
|
|
2408
|
+
return obj;
|
|
2409
|
+
},
|
|
2410
|
+
create(base) {
|
|
2411
|
+
return Block.fromPartial(base ?? {});
|
|
2412
|
+
},
|
|
2413
|
+
fromPartial(object) {
|
|
2414
|
+
const message = createBaseBlock();
|
|
2415
|
+
message.type = object.type ?? "";
|
|
2416
|
+
message.labels = object.labels?.map((e) => e) || [];
|
|
2417
|
+
message.attributes = object.attributes?.map((e) => NamedBinding.fromPartial(e)) || [];
|
|
2418
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
2419
|
+
return message;
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
function createBaseNamedBinding() {
|
|
2423
|
+
return { name: "", value: void 0 };
|
|
2424
|
+
}
|
|
2425
|
+
var NamedBinding = {
|
|
2426
|
+
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
2427
|
+
if (message.name !== "") {
|
|
2428
|
+
writer.uint32(10).string(message.name);
|
|
2429
|
+
}
|
|
2430
|
+
if (message.value !== void 0) {
|
|
2431
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
2432
|
+
}
|
|
2433
|
+
return writer;
|
|
2434
|
+
},
|
|
2435
|
+
decode(input, length) {
|
|
2436
|
+
const reader = input instanceof import_wire3.BinaryReader ? input : new import_wire3.BinaryReader(input);
|
|
2437
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2438
|
+
const message = createBaseNamedBinding();
|
|
2439
|
+
while (reader.pos < end) {
|
|
2440
|
+
const tag = reader.uint32();
|
|
2441
|
+
switch (tag >>> 3) {
|
|
2442
|
+
case 1: {
|
|
2443
|
+
if (tag !== 10) {
|
|
2444
|
+
break;
|
|
2445
|
+
}
|
|
2446
|
+
message.name = reader.string();
|
|
2447
|
+
continue;
|
|
2448
|
+
}
|
|
2449
|
+
case 2: {
|
|
2450
|
+
if (tag !== 18) {
|
|
2451
|
+
break;
|
|
2452
|
+
}
|
|
2453
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
2454
|
+
continue;
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2458
|
+
break;
|
|
2459
|
+
}
|
|
2460
|
+
reader.skip(tag & 7);
|
|
2461
|
+
}
|
|
2462
|
+
return message;
|
|
2463
|
+
},
|
|
2464
|
+
fromJSON(object) {
|
|
2465
|
+
return {
|
|
2466
|
+
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
2467
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
2468
|
+
};
|
|
2469
|
+
},
|
|
2470
|
+
toJSON(message) {
|
|
2471
|
+
const obj = {};
|
|
2472
|
+
if (message.name !== "") {
|
|
2473
|
+
obj.name = message.name;
|
|
2474
|
+
}
|
|
2475
|
+
if (message.value !== void 0) {
|
|
2476
|
+
obj.value = Binding.toJSON(message.value);
|
|
2477
|
+
}
|
|
2478
|
+
return obj;
|
|
2479
|
+
},
|
|
2480
|
+
create(base) {
|
|
2481
|
+
return NamedBinding.fromPartial(base ?? {});
|
|
2482
|
+
},
|
|
2483
|
+
fromPartial(object) {
|
|
2484
|
+
const message = createBaseNamedBinding();
|
|
2485
|
+
message.name = object.name ?? "";
|
|
2486
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
2487
|
+
return message;
|
|
2488
|
+
}
|
|
2489
|
+
};
|
|
2199
2490
|
function createBaseExports() {
|
|
2200
2491
|
return { outputs: {} };
|
|
2201
2492
|
}
|
|
@@ -3082,7 +3373,7 @@ var BackendConfig_ConfigEntry = {
|
|
|
3082
3373
|
}
|
|
3083
3374
|
};
|
|
3084
3375
|
function createBaseProviderConfig() {
|
|
3085
|
-
return { name: "", alias: "", config: {} };
|
|
3376
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
3086
3377
|
}
|
|
3087
3378
|
var ProviderConfig = {
|
|
3088
3379
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -3097,6 +3388,9 @@ var ProviderConfig = {
|
|
|
3097
3388
|
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3098
3389
|
}
|
|
3099
3390
|
});
|
|
3391
|
+
for (const v of message.blocks) {
|
|
3392
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
3393
|
+
}
|
|
3100
3394
|
return writer;
|
|
3101
3395
|
},
|
|
3102
3396
|
decode(input, length) {
|
|
@@ -3130,6 +3424,13 @@ var ProviderConfig = {
|
|
|
3130
3424
|
}
|
|
3131
3425
|
continue;
|
|
3132
3426
|
}
|
|
3427
|
+
case 4: {
|
|
3428
|
+
if (tag !== 34) {
|
|
3429
|
+
break;
|
|
3430
|
+
}
|
|
3431
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
3432
|
+
continue;
|
|
3433
|
+
}
|
|
3133
3434
|
}
|
|
3134
3435
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3135
3436
|
break;
|
|
@@ -3148,7 +3449,8 @@ var ProviderConfig = {
|
|
|
3148
3449
|
return acc;
|
|
3149
3450
|
},
|
|
3150
3451
|
{}
|
|
3151
|
-
) : {}
|
|
3452
|
+
) : {},
|
|
3453
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
3152
3454
|
};
|
|
3153
3455
|
},
|
|
3154
3456
|
toJSON(message) {
|
|
@@ -3168,6 +3470,9 @@ var ProviderConfig = {
|
|
|
3168
3470
|
});
|
|
3169
3471
|
}
|
|
3170
3472
|
}
|
|
3473
|
+
if (message.blocks?.length) {
|
|
3474
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
3475
|
+
}
|
|
3171
3476
|
return obj;
|
|
3172
3477
|
},
|
|
3173
3478
|
create(base) {
|
|
@@ -3186,6 +3491,7 @@ var ProviderConfig = {
|
|
|
3186
3491
|
},
|
|
3187
3492
|
{}
|
|
3188
3493
|
);
|
|
3494
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
3189
3495
|
return message;
|
|
3190
3496
|
}
|
|
3191
3497
|
};
|