@lace-cloud/proto 0.6.5 → 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.d.mts CHANGED
@@ -28,6 +28,8 @@ interface Module {
28
28
  exports: Exports | undefined;
29
29
  terraform: TerraformBlock | undefined;
30
30
  providers: ProviderConfig[];
31
+ /** top-level directives: moved {}, import {} */
32
+ top_level_blocks: Block[];
31
33
  }
32
34
  declare const Module: MessageFns$1<Module>;
33
35
  interface Interface {
@@ -42,6 +44,9 @@ interface InputDef$1 {
42
44
  description: string;
43
45
  default_value: any | undefined;
44
46
  validation: ValidationBlock$1 | undefined;
47
+ sensitive: boolean;
48
+ /** unset = default (true); explicit false is meaningful */
49
+ nullable?: boolean | undefined;
45
50
  }
46
51
  declare const InputDef$1: MessageFns$1<InputDef$1>;
47
52
  interface ValidationBlock$1 {
@@ -86,8 +91,34 @@ interface Resource {
86
91
  [key: string]: Binding;
87
92
  };
88
93
  depends_on: string[];
94
+ /** nested blocks (ingress, lifecycle, dynamic, …) */
95
+ blocks: Block[];
96
+ /** count meta-argument */
97
+ count: Binding | undefined;
98
+ /** for_each meta-argument */
99
+ for_each: Binding | undefined;
100
+ /** provider meta-argument, e.g. "aws.west" */
101
+ provider_ref: string;
89
102
  }
90
103
  declare const Resource: MessageFns$1<Resource>;
104
+ /**
105
+ * Block is a recursive nested block (within a resource, or top-level moved/
106
+ * import). Attributes are ordered (declaration order) so regenerated HCL is
107
+ * byte-deterministic.
108
+ */
109
+ interface Block {
110
+ type: string;
111
+ labels: string[];
112
+ attributes: NamedBinding[];
113
+ blocks: Block[];
114
+ }
115
+ declare const Block: MessageFns$1<Block>;
116
+ /** NamedBinding is an ordered (name, value) attribute within a Block. */
117
+ interface NamedBinding {
118
+ name: string;
119
+ value: Binding | undefined;
120
+ }
121
+ declare const NamedBinding: MessageFns$1<NamedBinding>;
91
122
  interface Exports {
92
123
  outputs: {
93
124
  [key: string]: OutputExport;
@@ -144,6 +175,8 @@ interface ProviderConfig {
144
175
  config: {
145
176
  [key: string]: any | undefined;
146
177
  };
178
+ /** nested config blocks (default_tags, assume_role, …) */
179
+ blocks: Block[];
147
180
  }
148
181
  declare const ProviderConfig: MessageFns$1<ProviderConfig>;
149
182
  interface GraphLayout {
package/dist/index.d.ts CHANGED
@@ -28,6 +28,8 @@ interface Module {
28
28
  exports: Exports | undefined;
29
29
  terraform: TerraformBlock | undefined;
30
30
  providers: ProviderConfig[];
31
+ /** top-level directives: moved {}, import {} */
32
+ top_level_blocks: Block[];
31
33
  }
32
34
  declare const Module: MessageFns$1<Module>;
33
35
  interface Interface {
@@ -42,6 +44,9 @@ interface InputDef$1 {
42
44
  description: string;
43
45
  default_value: any | undefined;
44
46
  validation: ValidationBlock$1 | undefined;
47
+ sensitive: boolean;
48
+ /** unset = default (true); explicit false is meaningful */
49
+ nullable?: boolean | undefined;
45
50
  }
46
51
  declare const InputDef$1: MessageFns$1<InputDef$1>;
47
52
  interface ValidationBlock$1 {
@@ -86,8 +91,34 @@ interface Resource {
86
91
  [key: string]: Binding;
87
92
  };
88
93
  depends_on: string[];
94
+ /** nested blocks (ingress, lifecycle, dynamic, …) */
95
+ blocks: Block[];
96
+ /** count meta-argument */
97
+ count: Binding | undefined;
98
+ /** for_each meta-argument */
99
+ for_each: Binding | undefined;
100
+ /** provider meta-argument, e.g. "aws.west" */
101
+ provider_ref: string;
89
102
  }
90
103
  declare const Resource: MessageFns$1<Resource>;
104
+ /**
105
+ * Block is a recursive nested block (within a resource, or top-level moved/
106
+ * import). Attributes are ordered (declaration order) so regenerated HCL is
107
+ * byte-deterministic.
108
+ */
109
+ interface Block {
110
+ type: string;
111
+ labels: string[];
112
+ attributes: NamedBinding[];
113
+ blocks: Block[];
114
+ }
115
+ declare const Block: MessageFns$1<Block>;
116
+ /** NamedBinding is an ordered (name, value) attribute within a Block. */
117
+ interface NamedBinding {
118
+ name: string;
119
+ value: Binding | undefined;
120
+ }
121
+ declare const NamedBinding: MessageFns$1<NamedBinding>;
91
122
  interface Exports {
92
123
  outputs: {
93
124
  [key: string]: OutputExport;
@@ -144,6 +175,8 @@ interface ProviderConfig {
144
175
  config: {
145
176
  [key: string]: any | undefined;
146
177
  };
178
+ /** nested config blocks (default_tags, assume_role, …) */
179
+ blocks: Block[];
147
180
  }
148
181
  declare const ProviderConfig: MessageFns$1<ProviderConfig>;
149
182
  interface GraphLayout {
package/dist/index.mjs CHANGED
@@ -1063,7 +1063,8 @@ function createBaseModule() {
1063
1063
  locals: [],
1064
1064
  exports: void 0,
1065
1065
  terraform: void 0,
1066
- providers: []
1066
+ providers: [],
1067
+ top_level_blocks: []
1067
1068
  };
1068
1069
  }
1069
1070
  var Module = {
@@ -1098,6 +1099,9 @@ var Module = {
1098
1099
  for (const v of message.providers) {
1099
1100
  ProviderConfig.encode(v, writer.uint32(82).fork()).join();
1100
1101
  }
1102
+ for (const v of message.top_level_blocks) {
1103
+ Block.encode(v, writer.uint32(90).fork()).join();
1104
+ }
1101
1105
  return writer;
1102
1106
  },
1103
1107
  decode(input, length) {
@@ -1177,6 +1181,13 @@ var Module = {
1177
1181
  message.providers.push(ProviderConfig.decode(reader, reader.uint32()));
1178
1182
  continue;
1179
1183
  }
1184
+ case 11: {
1185
+ if (tag !== 90) {
1186
+ break;
1187
+ }
1188
+ message.top_level_blocks.push(Block.decode(reader, reader.uint32()));
1189
+ continue;
1190
+ }
1180
1191
  }
1181
1192
  if ((tag & 7) === 4 || tag === 0) {
1182
1193
  break;
@@ -1196,7 +1207,8 @@ var Module = {
1196
1207
  locals: globalThis.Array.isArray(object?.locals) ? object.locals.map((e) => Local.fromJSON(e)) : [],
1197
1208
  exports: isSet2(object.exports) ? Exports.fromJSON(object.exports) : void 0,
1198
1209
  terraform: isSet2(object.terraform) ? TerraformBlock.fromJSON(object.terraform) : void 0,
1199
- providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : []
1210
+ providers: globalThis.Array.isArray(object?.providers) ? object.providers.map((e) => ProviderConfig.fromJSON(e)) : [],
1211
+ 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)) : []
1200
1212
  };
1201
1213
  },
1202
1214
  toJSON(message) {
@@ -1231,6 +1243,9 @@ var Module = {
1231
1243
  if (message.providers?.length) {
1232
1244
  obj.providers = message.providers.map((e) => ProviderConfig.toJSON(e));
1233
1245
  }
1246
+ if (message.top_level_blocks?.length) {
1247
+ obj.topLevelBlocks = message.top_level_blocks.map((e) => Block.toJSON(e));
1248
+ }
1234
1249
  return obj;
1235
1250
  },
1236
1251
  create(base) {
@@ -1248,6 +1263,7 @@ var Module = {
1248
1263
  message.exports = object.exports !== void 0 && object.exports !== null ? Exports.fromPartial(object.exports) : void 0;
1249
1264
  message.terraform = object.terraform !== void 0 && object.terraform !== null ? TerraformBlock.fromPartial(object.terraform) : void 0;
1250
1265
  message.providers = object.providers?.map((e) => ProviderConfig.fromPartial(e)) || [];
1266
+ message.top_level_blocks = object.top_level_blocks?.map((e) => Block.fromPartial(e)) || [];
1251
1267
  return message;
1252
1268
  }
1253
1269
  };
@@ -1320,7 +1336,16 @@ var Interface = {
1320
1336
  }
1321
1337
  };
1322
1338
  function createBaseInputDef() {
1323
- return { name: "", type: "", required: false, description: "", default_value: void 0, validation: void 0 };
1339
+ return {
1340
+ name: "",
1341
+ type: "",
1342
+ required: false,
1343
+ description: "",
1344
+ default_value: void 0,
1345
+ validation: void 0,
1346
+ sensitive: false,
1347
+ nullable: void 0
1348
+ };
1324
1349
  }
1325
1350
  var InputDef = {
1326
1351
  encode(message, writer = new BinaryWriter2()) {
@@ -1342,6 +1367,12 @@ var InputDef = {
1342
1367
  if (message.validation !== void 0) {
1343
1368
  ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
1344
1369
  }
1370
+ if (message.sensitive !== false) {
1371
+ writer.uint32(56).bool(message.sensitive);
1372
+ }
1373
+ if (message.nullable !== void 0) {
1374
+ writer.uint32(64).bool(message.nullable);
1375
+ }
1345
1376
  return writer;
1346
1377
  },
1347
1378
  decode(input, length) {
@@ -1393,6 +1424,20 @@ var InputDef = {
1393
1424
  message.validation = ValidationBlock.decode(reader, reader.uint32());
1394
1425
  continue;
1395
1426
  }
1427
+ case 7: {
1428
+ if (tag !== 56) {
1429
+ break;
1430
+ }
1431
+ message.sensitive = reader.bool();
1432
+ continue;
1433
+ }
1434
+ case 8: {
1435
+ if (tag !== 64) {
1436
+ break;
1437
+ }
1438
+ message.nullable = reader.bool();
1439
+ continue;
1440
+ }
1396
1441
  }
1397
1442
  if ((tag & 7) === 4 || tag === 0) {
1398
1443
  break;
@@ -1408,7 +1453,9 @@ var InputDef = {
1408
1453
  required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
1409
1454
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
1410
1455
  default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
1411
- validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0
1456
+ validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
1457
+ sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
1458
+ nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
1412
1459
  };
1413
1460
  },
1414
1461
  toJSON(message) {
@@ -1431,6 +1478,12 @@ var InputDef = {
1431
1478
  if (message.validation !== void 0) {
1432
1479
  obj.validation = ValidationBlock.toJSON(message.validation);
1433
1480
  }
1481
+ if (message.sensitive !== false) {
1482
+ obj.sensitive = message.sensitive;
1483
+ }
1484
+ if (message.nullable !== void 0) {
1485
+ obj.nullable = message.nullable;
1486
+ }
1434
1487
  return obj;
1435
1488
  },
1436
1489
  create(base) {
@@ -1444,6 +1497,8 @@ var InputDef = {
1444
1497
  message.description = object.description ?? "";
1445
1498
  message.default_value = object.default_value ?? void 0;
1446
1499
  message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
1500
+ message.sensitive = object.sensitive ?? false;
1501
+ message.nullable = object.nullable ?? void 0;
1447
1502
  return message;
1448
1503
  }
1449
1504
  };
@@ -1984,7 +2039,17 @@ var Use_InputsEntry = {
1984
2039
  }
1985
2040
  };
1986
2041
  function createBaseResource() {
1987
- return { id: "", kind: "", type: "", inputs: {}, depends_on: [] };
2042
+ return {
2043
+ id: "",
2044
+ kind: "",
2045
+ type: "",
2046
+ inputs: {},
2047
+ depends_on: [],
2048
+ blocks: [],
2049
+ count: void 0,
2050
+ for_each: void 0,
2051
+ provider_ref: ""
2052
+ };
1988
2053
  }
1989
2054
  var Resource = {
1990
2055
  encode(message, writer = new BinaryWriter2()) {
@@ -2003,6 +2068,18 @@ var Resource = {
2003
2068
  for (const v of message.depends_on) {
2004
2069
  writer.uint32(42).string(v);
2005
2070
  }
2071
+ for (const v of message.blocks) {
2072
+ Block.encode(v, writer.uint32(50).fork()).join();
2073
+ }
2074
+ if (message.count !== void 0) {
2075
+ Binding.encode(message.count, writer.uint32(58).fork()).join();
2076
+ }
2077
+ if (message.for_each !== void 0) {
2078
+ Binding.encode(message.for_each, writer.uint32(66).fork()).join();
2079
+ }
2080
+ if (message.provider_ref !== "") {
2081
+ writer.uint32(74).string(message.provider_ref);
2082
+ }
2006
2083
  return writer;
2007
2084
  },
2008
2085
  decode(input, length) {
@@ -2050,6 +2127,34 @@ var Resource = {
2050
2127
  message.depends_on.push(reader.string());
2051
2128
  continue;
2052
2129
  }
2130
+ case 6: {
2131
+ if (tag !== 50) {
2132
+ break;
2133
+ }
2134
+ message.blocks.push(Block.decode(reader, reader.uint32()));
2135
+ continue;
2136
+ }
2137
+ case 7: {
2138
+ if (tag !== 58) {
2139
+ break;
2140
+ }
2141
+ message.count = Binding.decode(reader, reader.uint32());
2142
+ continue;
2143
+ }
2144
+ case 8: {
2145
+ if (tag !== 66) {
2146
+ break;
2147
+ }
2148
+ message.for_each = Binding.decode(reader, reader.uint32());
2149
+ continue;
2150
+ }
2151
+ case 9: {
2152
+ if (tag !== 74) {
2153
+ break;
2154
+ }
2155
+ message.provider_ref = reader.string();
2156
+ continue;
2157
+ }
2053
2158
  }
2054
2159
  if ((tag & 7) === 4 || tag === 0) {
2055
2160
  break;
@@ -2070,7 +2175,11 @@ var Resource = {
2070
2175
  },
2071
2176
  {}
2072
2177
  ) : {},
2073
- 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)) : []
2178
+ 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)) : [],
2179
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : [],
2180
+ count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
2181
+ for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
2182
+ provider_ref: isSet2(object.providerRef) ? globalThis.String(object.providerRef) : isSet2(object.provider_ref) ? globalThis.String(object.provider_ref) : ""
2074
2183
  };
2075
2184
  },
2076
2185
  toJSON(message) {
@@ -2096,6 +2205,18 @@ var Resource = {
2096
2205
  if (message.depends_on?.length) {
2097
2206
  obj.dependsOn = message.depends_on;
2098
2207
  }
2208
+ if (message.blocks?.length) {
2209
+ obj.blocks = message.blocks.map((e) => Block.toJSON(e));
2210
+ }
2211
+ if (message.count !== void 0) {
2212
+ obj.count = Binding.toJSON(message.count);
2213
+ }
2214
+ if (message.for_each !== void 0) {
2215
+ obj.forEach = Binding.toJSON(message.for_each);
2216
+ }
2217
+ if (message.provider_ref !== "") {
2218
+ obj.providerRef = message.provider_ref;
2219
+ }
2099
2220
  return obj;
2100
2221
  },
2101
2222
  create(base) {
@@ -2116,6 +2237,10 @@ var Resource = {
2116
2237
  {}
2117
2238
  );
2118
2239
  message.depends_on = object.depends_on?.map((e) => e) || [];
2240
+ message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
2241
+ message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
2242
+ message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
2243
+ message.provider_ref = object.provider_ref ?? "";
2119
2244
  return message;
2120
2245
  }
2121
2246
  };
@@ -2187,6 +2312,172 @@ var Resource_InputsEntry = {
2187
2312
  return message;
2188
2313
  }
2189
2314
  };
2315
+ function createBaseBlock() {
2316
+ return { type: "", labels: [], attributes: [], blocks: [] };
2317
+ }
2318
+ var Block = {
2319
+ encode(message, writer = new BinaryWriter2()) {
2320
+ if (message.type !== "") {
2321
+ writer.uint32(10).string(message.type);
2322
+ }
2323
+ for (const v of message.labels) {
2324
+ writer.uint32(18).string(v);
2325
+ }
2326
+ for (const v of message.attributes) {
2327
+ NamedBinding.encode(v, writer.uint32(26).fork()).join();
2328
+ }
2329
+ for (const v of message.blocks) {
2330
+ Block.encode(v, writer.uint32(34).fork()).join();
2331
+ }
2332
+ return writer;
2333
+ },
2334
+ decode(input, length) {
2335
+ const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
2336
+ const end = length === void 0 ? reader.len : reader.pos + length;
2337
+ const message = createBaseBlock();
2338
+ while (reader.pos < end) {
2339
+ const tag = reader.uint32();
2340
+ switch (tag >>> 3) {
2341
+ case 1: {
2342
+ if (tag !== 10) {
2343
+ break;
2344
+ }
2345
+ message.type = reader.string();
2346
+ continue;
2347
+ }
2348
+ case 2: {
2349
+ if (tag !== 18) {
2350
+ break;
2351
+ }
2352
+ message.labels.push(reader.string());
2353
+ continue;
2354
+ }
2355
+ case 3: {
2356
+ if (tag !== 26) {
2357
+ break;
2358
+ }
2359
+ message.attributes.push(NamedBinding.decode(reader, reader.uint32()));
2360
+ continue;
2361
+ }
2362
+ case 4: {
2363
+ if (tag !== 34) {
2364
+ break;
2365
+ }
2366
+ message.blocks.push(Block.decode(reader, reader.uint32()));
2367
+ continue;
2368
+ }
2369
+ }
2370
+ if ((tag & 7) === 4 || tag === 0) {
2371
+ break;
2372
+ }
2373
+ reader.skip(tag & 7);
2374
+ }
2375
+ return message;
2376
+ },
2377
+ fromJSON(object) {
2378
+ return {
2379
+ type: isSet2(object.type) ? globalThis.String(object.type) : "",
2380
+ labels: globalThis.Array.isArray(object?.labels) ? object.labels.map((e) => globalThis.String(e)) : [],
2381
+ attributes: globalThis.Array.isArray(object?.attributes) ? object.attributes.map((e) => NamedBinding.fromJSON(e)) : [],
2382
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
2383
+ };
2384
+ },
2385
+ toJSON(message) {
2386
+ const obj = {};
2387
+ if (message.type !== "") {
2388
+ obj.type = message.type;
2389
+ }
2390
+ if (message.labels?.length) {
2391
+ obj.labels = message.labels;
2392
+ }
2393
+ if (message.attributes?.length) {
2394
+ obj.attributes = message.attributes.map((e) => NamedBinding.toJSON(e));
2395
+ }
2396
+ if (message.blocks?.length) {
2397
+ obj.blocks = message.blocks.map((e) => Block.toJSON(e));
2398
+ }
2399
+ return obj;
2400
+ },
2401
+ create(base) {
2402
+ return Block.fromPartial(base ?? {});
2403
+ },
2404
+ fromPartial(object) {
2405
+ const message = createBaseBlock();
2406
+ message.type = object.type ?? "";
2407
+ message.labels = object.labels?.map((e) => e) || [];
2408
+ message.attributes = object.attributes?.map((e) => NamedBinding.fromPartial(e)) || [];
2409
+ message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
2410
+ return message;
2411
+ }
2412
+ };
2413
+ function createBaseNamedBinding() {
2414
+ return { name: "", value: void 0 };
2415
+ }
2416
+ var NamedBinding = {
2417
+ encode(message, writer = new BinaryWriter2()) {
2418
+ if (message.name !== "") {
2419
+ writer.uint32(10).string(message.name);
2420
+ }
2421
+ if (message.value !== void 0) {
2422
+ Binding.encode(message.value, writer.uint32(18).fork()).join();
2423
+ }
2424
+ return writer;
2425
+ },
2426
+ decode(input, length) {
2427
+ const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
2428
+ const end = length === void 0 ? reader.len : reader.pos + length;
2429
+ const message = createBaseNamedBinding();
2430
+ while (reader.pos < end) {
2431
+ const tag = reader.uint32();
2432
+ switch (tag >>> 3) {
2433
+ case 1: {
2434
+ if (tag !== 10) {
2435
+ break;
2436
+ }
2437
+ message.name = reader.string();
2438
+ continue;
2439
+ }
2440
+ case 2: {
2441
+ if (tag !== 18) {
2442
+ break;
2443
+ }
2444
+ message.value = Binding.decode(reader, reader.uint32());
2445
+ continue;
2446
+ }
2447
+ }
2448
+ if ((tag & 7) === 4 || tag === 0) {
2449
+ break;
2450
+ }
2451
+ reader.skip(tag & 7);
2452
+ }
2453
+ return message;
2454
+ },
2455
+ fromJSON(object) {
2456
+ return {
2457
+ name: isSet2(object.name) ? globalThis.String(object.name) : "",
2458
+ value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
2459
+ };
2460
+ },
2461
+ toJSON(message) {
2462
+ const obj = {};
2463
+ if (message.name !== "") {
2464
+ obj.name = message.name;
2465
+ }
2466
+ if (message.value !== void 0) {
2467
+ obj.value = Binding.toJSON(message.value);
2468
+ }
2469
+ return obj;
2470
+ },
2471
+ create(base) {
2472
+ return NamedBinding.fromPartial(base ?? {});
2473
+ },
2474
+ fromPartial(object) {
2475
+ const message = createBaseNamedBinding();
2476
+ message.name = object.name ?? "";
2477
+ message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
2478
+ return message;
2479
+ }
2480
+ };
2190
2481
  function createBaseExports() {
2191
2482
  return { outputs: {} };
2192
2483
  }
@@ -3073,7 +3364,7 @@ var BackendConfig_ConfigEntry = {
3073
3364
  }
3074
3365
  };
3075
3366
  function createBaseProviderConfig() {
3076
- return { name: "", alias: "", config: {} };
3367
+ return { name: "", alias: "", config: {}, blocks: [] };
3077
3368
  }
3078
3369
  var ProviderConfig = {
3079
3370
  encode(message, writer = new BinaryWriter2()) {
@@ -3088,6 +3379,9 @@ var ProviderConfig = {
3088
3379
  ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
3089
3380
  }
3090
3381
  });
3382
+ for (const v of message.blocks) {
3383
+ Block.encode(v, writer.uint32(34).fork()).join();
3384
+ }
3091
3385
  return writer;
3092
3386
  },
3093
3387
  decode(input, length) {
@@ -3121,6 +3415,13 @@ var ProviderConfig = {
3121
3415
  }
3122
3416
  continue;
3123
3417
  }
3418
+ case 4: {
3419
+ if (tag !== 34) {
3420
+ break;
3421
+ }
3422
+ message.blocks.push(Block.decode(reader, reader.uint32()));
3423
+ continue;
3424
+ }
3124
3425
  }
3125
3426
  if ((tag & 7) === 4 || tag === 0) {
3126
3427
  break;
@@ -3139,7 +3440,8 @@ var ProviderConfig = {
3139
3440
  return acc;
3140
3441
  },
3141
3442
  {}
3142
- ) : {}
3443
+ ) : {},
3444
+ blocks: globalThis.Array.isArray(object?.blocks) ? object.blocks.map((e) => Block.fromJSON(e)) : []
3143
3445
  };
3144
3446
  },
3145
3447
  toJSON(message) {
@@ -3159,6 +3461,9 @@ var ProviderConfig = {
3159
3461
  });
3160
3462
  }
3161
3463
  }
3464
+ if (message.blocks?.length) {
3465
+ obj.blocks = message.blocks.map((e) => Block.toJSON(e));
3466
+ }
3162
3467
  return obj;
3163
3468
  },
3164
3469
  create(base) {
@@ -3177,6 +3482,7 @@ var ProviderConfig = {
3177
3482
  },
3178
3483
  {}
3179
3484
  );
3485
+ message.blocks = object.blocks?.map((e) => Block.fromPartial(e)) || [];
3180
3486
  return message;
3181
3487
  }
3182
3488
  };