@lace-cloud/host 0.6.5 → 0.7.1
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.d.mts
CHANGED
|
@@ -84,6 +84,8 @@ interface Module {
|
|
|
84
84
|
exports: Exports | undefined;
|
|
85
85
|
terraform: TerraformBlock | undefined;
|
|
86
86
|
providers: ProviderConfig[];
|
|
87
|
+
/** top-level directives: moved {}, import {} */
|
|
88
|
+
top_level_blocks: Block[];
|
|
87
89
|
}
|
|
88
90
|
declare const Module: MessageFns$1<Module>;
|
|
89
91
|
interface Interface {
|
|
@@ -98,6 +100,9 @@ interface InputDef$1 {
|
|
|
98
100
|
description: string;
|
|
99
101
|
default_value: any | undefined;
|
|
100
102
|
validation: ValidationBlock$1 | undefined;
|
|
103
|
+
sensitive: boolean;
|
|
104
|
+
/** unset = default (true); explicit false is meaningful */
|
|
105
|
+
nullable?: boolean | undefined;
|
|
101
106
|
}
|
|
102
107
|
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
103
108
|
interface ValidationBlock$1 {
|
|
@@ -142,8 +147,34 @@ interface Resource {
|
|
|
142
147
|
[key: string]: Binding;
|
|
143
148
|
};
|
|
144
149
|
depends_on: string[];
|
|
150
|
+
/** nested blocks (ingress, lifecycle, dynamic, …) */
|
|
151
|
+
blocks: Block[];
|
|
152
|
+
/** count meta-argument */
|
|
153
|
+
count: Binding | undefined;
|
|
154
|
+
/** for_each meta-argument */
|
|
155
|
+
for_each: Binding | undefined;
|
|
156
|
+
/** provider meta-argument, e.g. "aws.west" */
|
|
157
|
+
provider_ref: string;
|
|
145
158
|
}
|
|
146
159
|
declare const Resource: MessageFns$1<Resource>;
|
|
160
|
+
/**
|
|
161
|
+
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
162
|
+
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
163
|
+
* byte-deterministic.
|
|
164
|
+
*/
|
|
165
|
+
interface Block {
|
|
166
|
+
type: string;
|
|
167
|
+
labels: string[];
|
|
168
|
+
attributes: NamedBinding[];
|
|
169
|
+
blocks: Block[];
|
|
170
|
+
}
|
|
171
|
+
declare const Block: MessageFns$1<Block>;
|
|
172
|
+
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
173
|
+
interface NamedBinding {
|
|
174
|
+
name: string;
|
|
175
|
+
value: Binding | undefined;
|
|
176
|
+
}
|
|
177
|
+
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
147
178
|
interface Exports {
|
|
148
179
|
outputs: {
|
|
149
180
|
[key: string]: OutputExport;
|
|
@@ -200,6 +231,8 @@ interface ProviderConfig {
|
|
|
200
231
|
config: {
|
|
201
232
|
[key: string]: any | undefined;
|
|
202
233
|
};
|
|
234
|
+
/** nested config blocks (default_tags, assume_role, …) */
|
|
235
|
+
blocks: Block[];
|
|
203
236
|
}
|
|
204
237
|
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
205
238
|
interface GraphLayout {
|
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,8 @@ interface Module {
|
|
|
84
84
|
exports: Exports | undefined;
|
|
85
85
|
terraform: TerraformBlock | undefined;
|
|
86
86
|
providers: ProviderConfig[];
|
|
87
|
+
/** top-level directives: moved {}, import {} */
|
|
88
|
+
top_level_blocks: Block[];
|
|
87
89
|
}
|
|
88
90
|
declare const Module: MessageFns$1<Module>;
|
|
89
91
|
interface Interface {
|
|
@@ -98,6 +100,9 @@ interface InputDef$1 {
|
|
|
98
100
|
description: string;
|
|
99
101
|
default_value: any | undefined;
|
|
100
102
|
validation: ValidationBlock$1 | undefined;
|
|
103
|
+
sensitive: boolean;
|
|
104
|
+
/** unset = default (true); explicit false is meaningful */
|
|
105
|
+
nullable?: boolean | undefined;
|
|
101
106
|
}
|
|
102
107
|
declare const InputDef$1: MessageFns$1<InputDef$1>;
|
|
103
108
|
interface ValidationBlock$1 {
|
|
@@ -142,8 +147,34 @@ interface Resource {
|
|
|
142
147
|
[key: string]: Binding;
|
|
143
148
|
};
|
|
144
149
|
depends_on: string[];
|
|
150
|
+
/** nested blocks (ingress, lifecycle, dynamic, …) */
|
|
151
|
+
blocks: Block[];
|
|
152
|
+
/** count meta-argument */
|
|
153
|
+
count: Binding | undefined;
|
|
154
|
+
/** for_each meta-argument */
|
|
155
|
+
for_each: Binding | undefined;
|
|
156
|
+
/** provider meta-argument, e.g. "aws.west" */
|
|
157
|
+
provider_ref: string;
|
|
145
158
|
}
|
|
146
159
|
declare const Resource: MessageFns$1<Resource>;
|
|
160
|
+
/**
|
|
161
|
+
* Block is a recursive nested block (within a resource, or top-level moved/
|
|
162
|
+
* import). Attributes are ordered (declaration order) so regenerated HCL is
|
|
163
|
+
* byte-deterministic.
|
|
164
|
+
*/
|
|
165
|
+
interface Block {
|
|
166
|
+
type: string;
|
|
167
|
+
labels: string[];
|
|
168
|
+
attributes: NamedBinding[];
|
|
169
|
+
blocks: Block[];
|
|
170
|
+
}
|
|
171
|
+
declare const Block: MessageFns$1<Block>;
|
|
172
|
+
/** NamedBinding is an ordered (name, value) attribute within a Block. */
|
|
173
|
+
interface NamedBinding {
|
|
174
|
+
name: string;
|
|
175
|
+
value: Binding | undefined;
|
|
176
|
+
}
|
|
177
|
+
declare const NamedBinding: MessageFns$1<NamedBinding>;
|
|
147
178
|
interface Exports {
|
|
148
179
|
outputs: {
|
|
149
180
|
[key: string]: OutputExport;
|
|
@@ -200,6 +231,8 @@ interface ProviderConfig {
|
|
|
200
231
|
config: {
|
|
201
232
|
[key: string]: any | undefined;
|
|
202
233
|
};
|
|
234
|
+
/** nested config blocks (default_tags, assume_role, …) */
|
|
235
|
+
blocks: Block[];
|
|
203
236
|
}
|
|
204
237
|
declare const ProviderConfig: MessageFns$1<ProviderConfig>;
|
|
205
238
|
interface GraphLayout {
|
package/dist/index.mjs
CHANGED
|
@@ -1039,7 +1039,8 @@ function createBaseModule() {
|
|
|
1039
1039
|
locals: [],
|
|
1040
1040
|
exports: void 0,
|
|
1041
1041
|
terraform: void 0,
|
|
1042
|
-
providers: []
|
|
1042
|
+
providers: [],
|
|
1043
|
+
top_level_blocks: []
|
|
1043
1044
|
};
|
|
1044
1045
|
}
|
|
1045
1046
|
var Module = {
|
|
@@ -1074,6 +1075,9 @@ var Module = {
|
|
|
1074
1075
|
for (const v of message.providers) {
|
|
1075
1076
|
ProviderConfig.encode(v, writer.uint32(82).fork()).join();
|
|
1076
1077
|
}
|
|
1078
|
+
for (const v of message.top_level_blocks) {
|
|
1079
|
+
Block.encode(v, writer.uint32(90).fork()).join();
|
|
1080
|
+
}
|
|
1077
1081
|
return writer;
|
|
1078
1082
|
},
|
|
1079
1083
|
decode(input, length) {
|
|
@@ -1153,6 +1157,13 @@ var Module = {
|
|
|
1153
1157
|
message.providers.push(ProviderConfig.decode(reader, reader.uint32()));
|
|
1154
1158
|
continue;
|
|
1155
1159
|
}
|
|
1160
|
+
case 11: {
|
|
1161
|
+
if (tag !== 90) {
|
|
1162
|
+
break;
|
|
1163
|
+
}
|
|
1164
|
+
message.top_level_blocks.push(Block.decode(reader, reader.uint32()));
|
|
1165
|
+
continue;
|
|
1166
|
+
}
|
|
1156
1167
|
}
|
|
1157
1168
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1158
1169
|
break;
|
|
@@ -1172,7 +1183,8 @@ var Module = {
|
|
|
1172
1183
|
locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => Local.fromJSON(e)) : [],
|
|
1173
1184
|
exports: isSet2(object.exports) ? Exports.fromJSON(object.exports) : void 0,
|
|
1174
1185
|
terraform: isSet2(object.terraform) ? TerraformBlock.fromJSON(object.terraform) : void 0,
|
|
1175
|
-
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : []
|
|
1186
|
+
providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : [],
|
|
1187
|
+
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)) : []
|
|
1176
1188
|
};
|
|
1177
1189
|
},
|
|
1178
1190
|
toJSON(message) {
|
|
@@ -1207,6 +1219,9 @@ var Module = {
|
|
|
1207
1219
|
if (message.providers?.length) {
|
|
1208
1220
|
obj.providers = message.providers.map((e) => ProviderConfig.toJSON(e));
|
|
1209
1221
|
}
|
|
1222
|
+
if (message.top_level_blocks?.length) {
|
|
1223
|
+
obj.topLevelBlocks = message.top_level_blocks.map((e) => Block.toJSON(e));
|
|
1224
|
+
}
|
|
1210
1225
|
return obj;
|
|
1211
1226
|
},
|
|
1212
1227
|
create(base) {
|
|
@@ -1224,6 +1239,7 @@ var Module = {
|
|
|
1224
1239
|
message.exports = object.exports !== void 0 && object.exports !== null ? Exports.fromPartial(object.exports) : void 0;
|
|
1225
1240
|
message.terraform = object.terraform !== void 0 && object.terraform !== null ? TerraformBlock.fromPartial(object.terraform) : void 0;
|
|
1226
1241
|
message.providers = object.providers?.map((e) => ProviderConfig.fromPartial(e)) || [];
|
|
1242
|
+
message.top_level_blocks = object.top_level_blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
1227
1243
|
return message;
|
|
1228
1244
|
}
|
|
1229
1245
|
};
|
|
@@ -1296,7 +1312,16 @@ var Interface = {
|
|
|
1296
1312
|
}
|
|
1297
1313
|
};
|
|
1298
1314
|
function createBaseInputDef() {
|
|
1299
|
-
return {
|
|
1315
|
+
return {
|
|
1316
|
+
name: "",
|
|
1317
|
+
type: "",
|
|
1318
|
+
required: false,
|
|
1319
|
+
description: "",
|
|
1320
|
+
default_value: void 0,
|
|
1321
|
+
validation: void 0,
|
|
1322
|
+
sensitive: false,
|
|
1323
|
+
nullable: void 0
|
|
1324
|
+
};
|
|
1300
1325
|
}
|
|
1301
1326
|
var InputDef = {
|
|
1302
1327
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -1318,6 +1343,12 @@ var InputDef = {
|
|
|
1318
1343
|
if (message.validation !== void 0) {
|
|
1319
1344
|
ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
|
|
1320
1345
|
}
|
|
1346
|
+
if (message.sensitive !== false) {
|
|
1347
|
+
writer.uint32(56).bool(message.sensitive);
|
|
1348
|
+
}
|
|
1349
|
+
if (message.nullable !== void 0) {
|
|
1350
|
+
writer.uint32(64).bool(message.nullable);
|
|
1351
|
+
}
|
|
1321
1352
|
return writer;
|
|
1322
1353
|
},
|
|
1323
1354
|
decode(input, length) {
|
|
@@ -1369,6 +1400,20 @@ var InputDef = {
|
|
|
1369
1400
|
message.validation = ValidationBlock.decode(reader, reader.uint32());
|
|
1370
1401
|
continue;
|
|
1371
1402
|
}
|
|
1403
|
+
case 7: {
|
|
1404
|
+
if (tag !== 56) {
|
|
1405
|
+
break;
|
|
1406
|
+
}
|
|
1407
|
+
message.sensitive = reader.bool();
|
|
1408
|
+
continue;
|
|
1409
|
+
}
|
|
1410
|
+
case 8: {
|
|
1411
|
+
if (tag !== 64) {
|
|
1412
|
+
break;
|
|
1413
|
+
}
|
|
1414
|
+
message.nullable = reader.bool();
|
|
1415
|
+
continue;
|
|
1416
|
+
}
|
|
1372
1417
|
}
|
|
1373
1418
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1374
1419
|
break;
|
|
@@ -1384,7 +1429,9 @@ var InputDef = {
|
|
|
1384
1429
|
required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1385
1430
|
description: isSet2(object.description) ? globalThis.String(object.description) : "",
|
|
1386
1431
|
default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
|
|
1387
|
-
validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0
|
|
1432
|
+
validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
|
|
1433
|
+
sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
|
|
1434
|
+
nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
|
|
1388
1435
|
};
|
|
1389
1436
|
},
|
|
1390
1437
|
toJSON(message) {
|
|
@@ -1407,6 +1454,12 @@ var InputDef = {
|
|
|
1407
1454
|
if (message.validation !== void 0) {
|
|
1408
1455
|
obj.validation = ValidationBlock.toJSON(message.validation);
|
|
1409
1456
|
}
|
|
1457
|
+
if (message.sensitive !== false) {
|
|
1458
|
+
obj.sensitive = message.sensitive;
|
|
1459
|
+
}
|
|
1460
|
+
if (message.nullable !== void 0) {
|
|
1461
|
+
obj.nullable = message.nullable;
|
|
1462
|
+
}
|
|
1410
1463
|
return obj;
|
|
1411
1464
|
},
|
|
1412
1465
|
create(base) {
|
|
@@ -1420,6 +1473,8 @@ var InputDef = {
|
|
|
1420
1473
|
message.description = object.description ?? "";
|
|
1421
1474
|
message.default_value = object.default_value ?? void 0;
|
|
1422
1475
|
message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
|
|
1476
|
+
message.sensitive = object.sensitive ?? false;
|
|
1477
|
+
message.nullable = object.nullable ?? void 0;
|
|
1423
1478
|
return message;
|
|
1424
1479
|
}
|
|
1425
1480
|
};
|
|
@@ -1960,7 +2015,17 @@ var Use_InputsEntry = {
|
|
|
1960
2015
|
}
|
|
1961
2016
|
};
|
|
1962
2017
|
function createBaseResource() {
|
|
1963
|
-
return {
|
|
2018
|
+
return {
|
|
2019
|
+
id: "",
|
|
2020
|
+
kind: "",
|
|
2021
|
+
type: "",
|
|
2022
|
+
inputs: {},
|
|
2023
|
+
depends_on: [],
|
|
2024
|
+
blocks: [],
|
|
2025
|
+
count: void 0,
|
|
2026
|
+
for_each: void 0,
|
|
2027
|
+
provider_ref: ""
|
|
2028
|
+
};
|
|
1964
2029
|
}
|
|
1965
2030
|
var Resource = {
|
|
1966
2031
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -1979,6 +2044,18 @@ var Resource = {
|
|
|
1979
2044
|
for (const v of message.depends_on) {
|
|
1980
2045
|
writer.uint32(42).string(v);
|
|
1981
2046
|
}
|
|
2047
|
+
for (const v of message.blocks) {
|
|
2048
|
+
Block.encode(v, writer.uint32(50).fork()).join();
|
|
2049
|
+
}
|
|
2050
|
+
if (message.count !== void 0) {
|
|
2051
|
+
Binding.encode(message.count, writer.uint32(58).fork()).join();
|
|
2052
|
+
}
|
|
2053
|
+
if (message.for_each !== void 0) {
|
|
2054
|
+
Binding.encode(message.for_each, writer.uint32(66).fork()).join();
|
|
2055
|
+
}
|
|
2056
|
+
if (message.provider_ref !== "") {
|
|
2057
|
+
writer.uint32(74).string(message.provider_ref);
|
|
2058
|
+
}
|
|
1982
2059
|
return writer;
|
|
1983
2060
|
},
|
|
1984
2061
|
decode(input, length) {
|
|
@@ -2026,6 +2103,34 @@ var Resource = {
|
|
|
2026
2103
|
message.depends_on.push(reader.string());
|
|
2027
2104
|
continue;
|
|
2028
2105
|
}
|
|
2106
|
+
case 6: {
|
|
2107
|
+
if (tag !== 50) {
|
|
2108
|
+
break;
|
|
2109
|
+
}
|
|
2110
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
2111
|
+
continue;
|
|
2112
|
+
}
|
|
2113
|
+
case 7: {
|
|
2114
|
+
if (tag !== 58) {
|
|
2115
|
+
break;
|
|
2116
|
+
}
|
|
2117
|
+
message.count = Binding.decode(reader, reader.uint32());
|
|
2118
|
+
continue;
|
|
2119
|
+
}
|
|
2120
|
+
case 8: {
|
|
2121
|
+
if (tag !== 66) {
|
|
2122
|
+
break;
|
|
2123
|
+
}
|
|
2124
|
+
message.for_each = Binding.decode(reader, reader.uint32());
|
|
2125
|
+
continue;
|
|
2126
|
+
}
|
|
2127
|
+
case 9: {
|
|
2128
|
+
if (tag !== 74) {
|
|
2129
|
+
break;
|
|
2130
|
+
}
|
|
2131
|
+
message.provider_ref = reader.string();
|
|
2132
|
+
continue;
|
|
2133
|
+
}
|
|
2029
2134
|
}
|
|
2030
2135
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2031
2136
|
break;
|
|
@@ -2046,7 +2151,11 @@ var Resource = {
|
|
|
2046
2151
|
},
|
|
2047
2152
|
{}
|
|
2048
2153
|
) : {},
|
|
2049
|
-
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)) : []
|
|
2154
|
+
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)) : [],
|
|
2155
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : [],
|
|
2156
|
+
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
2157
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
|
|
2158
|
+
provider_ref: isSet2(object.providerRef) ? globalThis.String(object.providerRef) : isSet2(object.provider_ref) ? globalThis.String(object.provider_ref) : ""
|
|
2050
2159
|
};
|
|
2051
2160
|
},
|
|
2052
2161
|
toJSON(message) {
|
|
@@ -2072,6 +2181,18 @@ var Resource = {
|
|
|
2072
2181
|
if (message.depends_on?.length) {
|
|
2073
2182
|
obj.dependsOn = message.depends_on;
|
|
2074
2183
|
}
|
|
2184
|
+
if (message.blocks?.length) {
|
|
2185
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
2186
|
+
}
|
|
2187
|
+
if (message.count !== void 0) {
|
|
2188
|
+
obj.count = Binding.toJSON(message.count);
|
|
2189
|
+
}
|
|
2190
|
+
if (message.for_each !== void 0) {
|
|
2191
|
+
obj.forEach = Binding.toJSON(message.for_each);
|
|
2192
|
+
}
|
|
2193
|
+
if (message.provider_ref !== "") {
|
|
2194
|
+
obj.providerRef = message.provider_ref;
|
|
2195
|
+
}
|
|
2075
2196
|
return obj;
|
|
2076
2197
|
},
|
|
2077
2198
|
create(base) {
|
|
@@ -2092,6 +2213,10 @@ var Resource = {
|
|
|
2092
2213
|
{}
|
|
2093
2214
|
);
|
|
2094
2215
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2216
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
2217
|
+
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2218
|
+
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2219
|
+
message.provider_ref = object.provider_ref ?? "";
|
|
2095
2220
|
return message;
|
|
2096
2221
|
}
|
|
2097
2222
|
};
|
|
@@ -2163,6 +2288,172 @@ var Resource_InputsEntry = {
|
|
|
2163
2288
|
return message;
|
|
2164
2289
|
}
|
|
2165
2290
|
};
|
|
2291
|
+
function createBaseBlock() {
|
|
2292
|
+
return { type: "", labels: [], attributes: [], blocks: [] };
|
|
2293
|
+
}
|
|
2294
|
+
var Block = {
|
|
2295
|
+
encode(message, writer = new BinaryWriter3()) {
|
|
2296
|
+
if (message.type !== "") {
|
|
2297
|
+
writer.uint32(10).string(message.type);
|
|
2298
|
+
}
|
|
2299
|
+
for (const v of message.labels) {
|
|
2300
|
+
writer.uint32(18).string(v);
|
|
2301
|
+
}
|
|
2302
|
+
for (const v of message.attributes) {
|
|
2303
|
+
NamedBinding.encode(v, writer.uint32(26).fork()).join();
|
|
2304
|
+
}
|
|
2305
|
+
for (const v of message.blocks) {
|
|
2306
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
2307
|
+
}
|
|
2308
|
+
return writer;
|
|
2309
|
+
},
|
|
2310
|
+
decode(input, length) {
|
|
2311
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
2312
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2313
|
+
const message = createBaseBlock();
|
|
2314
|
+
while (reader.pos < end) {
|
|
2315
|
+
const tag = reader.uint32();
|
|
2316
|
+
switch (tag >>> 3) {
|
|
2317
|
+
case 1: {
|
|
2318
|
+
if (tag !== 10) {
|
|
2319
|
+
break;
|
|
2320
|
+
}
|
|
2321
|
+
message.type = reader.string();
|
|
2322
|
+
continue;
|
|
2323
|
+
}
|
|
2324
|
+
case 2: {
|
|
2325
|
+
if (tag !== 18) {
|
|
2326
|
+
break;
|
|
2327
|
+
}
|
|
2328
|
+
message.labels.push(reader.string());
|
|
2329
|
+
continue;
|
|
2330
|
+
}
|
|
2331
|
+
case 3: {
|
|
2332
|
+
if (tag !== 26) {
|
|
2333
|
+
break;
|
|
2334
|
+
}
|
|
2335
|
+
message.attributes.push(NamedBinding.decode(reader, reader.uint32()));
|
|
2336
|
+
continue;
|
|
2337
|
+
}
|
|
2338
|
+
case 4: {
|
|
2339
|
+
if (tag !== 34) {
|
|
2340
|
+
break;
|
|
2341
|
+
}
|
|
2342
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
2343
|
+
continue;
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2347
|
+
break;
|
|
2348
|
+
}
|
|
2349
|
+
reader.skip(tag & 7);
|
|
2350
|
+
}
|
|
2351
|
+
return message;
|
|
2352
|
+
},
|
|
2353
|
+
fromJSON(object) {
|
|
2354
|
+
return {
|
|
2355
|
+
type: isSet2(object.type) ? globalThis.String(object.type) : "",
|
|
2356
|
+
labels: globalThis.Array.isArray(object?.labels) ? object.labels.map((e) => globalThis.String(e)) : [],
|
|
2357
|
+
attributes: globalThis.Array.isArray(object?.attributes) ? object.attributes.map((e) => NamedBinding.fromJSON(e)) : [],
|
|
2358
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
2359
|
+
};
|
|
2360
|
+
},
|
|
2361
|
+
toJSON(message) {
|
|
2362
|
+
const obj = {};
|
|
2363
|
+
if (message.type !== "") {
|
|
2364
|
+
obj.type = message.type;
|
|
2365
|
+
}
|
|
2366
|
+
if (message.labels?.length) {
|
|
2367
|
+
obj.labels = message.labels;
|
|
2368
|
+
}
|
|
2369
|
+
if (message.attributes?.length) {
|
|
2370
|
+
obj.attributes = message.attributes.map((e) => NamedBinding.toJSON(e));
|
|
2371
|
+
}
|
|
2372
|
+
if (message.blocks?.length) {
|
|
2373
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
2374
|
+
}
|
|
2375
|
+
return obj;
|
|
2376
|
+
},
|
|
2377
|
+
create(base) {
|
|
2378
|
+
return Block.fromPartial(base ?? {});
|
|
2379
|
+
},
|
|
2380
|
+
fromPartial(object) {
|
|
2381
|
+
const message = createBaseBlock();
|
|
2382
|
+
message.type = object.type ?? "";
|
|
2383
|
+
message.labels = object.labels?.map((e) => e) || [];
|
|
2384
|
+
message.attributes = object.attributes?.map((e) => NamedBinding.fromPartial(e)) || [];
|
|
2385
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
2386
|
+
return message;
|
|
2387
|
+
}
|
|
2388
|
+
};
|
|
2389
|
+
function createBaseNamedBinding() {
|
|
2390
|
+
return { name: "", value: void 0 };
|
|
2391
|
+
}
|
|
2392
|
+
var NamedBinding = {
|
|
2393
|
+
encode(message, writer = new BinaryWriter3()) {
|
|
2394
|
+
if (message.name !== "") {
|
|
2395
|
+
writer.uint32(10).string(message.name);
|
|
2396
|
+
}
|
|
2397
|
+
if (message.value !== void 0) {
|
|
2398
|
+
Binding.encode(message.value, writer.uint32(18).fork()).join();
|
|
2399
|
+
}
|
|
2400
|
+
return writer;
|
|
2401
|
+
},
|
|
2402
|
+
decode(input, length) {
|
|
2403
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
2404
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2405
|
+
const message = createBaseNamedBinding();
|
|
2406
|
+
while (reader.pos < end) {
|
|
2407
|
+
const tag = reader.uint32();
|
|
2408
|
+
switch (tag >>> 3) {
|
|
2409
|
+
case 1: {
|
|
2410
|
+
if (tag !== 10) {
|
|
2411
|
+
break;
|
|
2412
|
+
}
|
|
2413
|
+
message.name = reader.string();
|
|
2414
|
+
continue;
|
|
2415
|
+
}
|
|
2416
|
+
case 2: {
|
|
2417
|
+
if (tag !== 18) {
|
|
2418
|
+
break;
|
|
2419
|
+
}
|
|
2420
|
+
message.value = Binding.decode(reader, reader.uint32());
|
|
2421
|
+
continue;
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2425
|
+
break;
|
|
2426
|
+
}
|
|
2427
|
+
reader.skip(tag & 7);
|
|
2428
|
+
}
|
|
2429
|
+
return message;
|
|
2430
|
+
},
|
|
2431
|
+
fromJSON(object) {
|
|
2432
|
+
return {
|
|
2433
|
+
name: isSet2(object.name) ? globalThis.String(object.name) : "",
|
|
2434
|
+
value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
|
|
2435
|
+
};
|
|
2436
|
+
},
|
|
2437
|
+
toJSON(message) {
|
|
2438
|
+
const obj = {};
|
|
2439
|
+
if (message.name !== "") {
|
|
2440
|
+
obj.name = message.name;
|
|
2441
|
+
}
|
|
2442
|
+
if (message.value !== void 0) {
|
|
2443
|
+
obj.value = Binding.toJSON(message.value);
|
|
2444
|
+
}
|
|
2445
|
+
return obj;
|
|
2446
|
+
},
|
|
2447
|
+
create(base) {
|
|
2448
|
+
return NamedBinding.fromPartial(base ?? {});
|
|
2449
|
+
},
|
|
2450
|
+
fromPartial(object) {
|
|
2451
|
+
const message = createBaseNamedBinding();
|
|
2452
|
+
message.name = object.name ?? "";
|
|
2453
|
+
message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
|
|
2454
|
+
return message;
|
|
2455
|
+
}
|
|
2456
|
+
};
|
|
2166
2457
|
function createBaseExports() {
|
|
2167
2458
|
return { outputs: {} };
|
|
2168
2459
|
}
|
|
@@ -3049,7 +3340,7 @@ var BackendConfig_ConfigEntry = {
|
|
|
3049
3340
|
}
|
|
3050
3341
|
};
|
|
3051
3342
|
function createBaseProviderConfig() {
|
|
3052
|
-
return { name: "", alias: "", config: {} };
|
|
3343
|
+
return { name: "", alias: "", config: {}, blocks: [] };
|
|
3053
3344
|
}
|
|
3054
3345
|
var ProviderConfig = {
|
|
3055
3346
|
encode(message, writer = new BinaryWriter3()) {
|
|
@@ -3064,6 +3355,9 @@ var ProviderConfig = {
|
|
|
3064
3355
|
ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
|
|
3065
3356
|
}
|
|
3066
3357
|
});
|
|
3358
|
+
for (const v of message.blocks) {
|
|
3359
|
+
Block.encode(v, writer.uint32(34).fork()).join();
|
|
3360
|
+
}
|
|
3067
3361
|
return writer;
|
|
3068
3362
|
},
|
|
3069
3363
|
decode(input, length) {
|
|
@@ -3097,6 +3391,13 @@ var ProviderConfig = {
|
|
|
3097
3391
|
}
|
|
3098
3392
|
continue;
|
|
3099
3393
|
}
|
|
3394
|
+
case 4: {
|
|
3395
|
+
if (tag !== 34) {
|
|
3396
|
+
break;
|
|
3397
|
+
}
|
|
3398
|
+
message.blocks.push(Block.decode(reader, reader.uint32()));
|
|
3399
|
+
continue;
|
|
3400
|
+
}
|
|
3100
3401
|
}
|
|
3101
3402
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3102
3403
|
break;
|
|
@@ -3115,7 +3416,8 @@ var ProviderConfig = {
|
|
|
3115
3416
|
return acc;
|
|
3116
3417
|
},
|
|
3117
3418
|
{}
|
|
3118
|
-
) : {}
|
|
3419
|
+
) : {},
|
|
3420
|
+
blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
|
|
3119
3421
|
};
|
|
3120
3422
|
},
|
|
3121
3423
|
toJSON(message) {
|
|
@@ -3135,6 +3437,9 @@ var ProviderConfig = {
|
|
|
3135
3437
|
});
|
|
3136
3438
|
}
|
|
3137
3439
|
}
|
|
3440
|
+
if (message.blocks?.length) {
|
|
3441
|
+
obj.blocks = message.blocks.map((e) => Block.toJSON(e));
|
|
3442
|
+
}
|
|
3138
3443
|
return obj;
|
|
3139
3444
|
},
|
|
3140
3445
|
create(base) {
|
|
@@ -3153,6 +3458,7 @@ var ProviderConfig = {
|
|
|
3153
3458
|
},
|
|
3154
3459
|
{}
|
|
3155
3460
|
);
|
|
3461
|
+
message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
|
|
3156
3462
|
return message;
|
|
3157
3463
|
}
|
|
3158
3464
|
};
|