@lace-cloud/proto 0.7.0 → 0.8.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.mjs CHANGED
@@ -1342,9 +1342,10 @@ function createBaseInputDef() {
1342
1342
  required: false,
1343
1343
  description: "",
1344
1344
  default_value: void 0,
1345
- validation: void 0,
1345
+ validation: [],
1346
1346
  sensitive: false,
1347
- nullable: void 0
1347
+ nullable: void 0,
1348
+ ephemeral: void 0
1348
1349
  };
1349
1350
  }
1350
1351
  var InputDef = {
@@ -1364,8 +1365,8 @@ var InputDef = {
1364
1365
  if (message.default_value !== void 0) {
1365
1366
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
1366
1367
  }
1367
- if (message.validation !== void 0) {
1368
- ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
1368
+ for (const v of message.validation) {
1369
+ ValidationBlock.encode(v, writer.uint32(50).fork()).join();
1369
1370
  }
1370
1371
  if (message.sensitive !== false) {
1371
1372
  writer.uint32(56).bool(message.sensitive);
@@ -1373,6 +1374,9 @@ var InputDef = {
1373
1374
  if (message.nullable !== void 0) {
1374
1375
  writer.uint32(64).bool(message.nullable);
1375
1376
  }
1377
+ if (message.ephemeral !== void 0) {
1378
+ writer.uint32(72).bool(message.ephemeral);
1379
+ }
1376
1380
  return writer;
1377
1381
  },
1378
1382
  decode(input, length) {
@@ -1421,7 +1425,7 @@ var InputDef = {
1421
1425
  if (tag !== 50) {
1422
1426
  break;
1423
1427
  }
1424
- message.validation = ValidationBlock.decode(reader, reader.uint32());
1428
+ message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
1425
1429
  continue;
1426
1430
  }
1427
1431
  case 7: {
@@ -1438,6 +1442,13 @@ var InputDef = {
1438
1442
  message.nullable = reader.bool();
1439
1443
  continue;
1440
1444
  }
1445
+ case 9: {
1446
+ if (tag !== 72) {
1447
+ break;
1448
+ }
1449
+ message.ephemeral = reader.bool();
1450
+ continue;
1451
+ }
1441
1452
  }
1442
1453
  if ((tag & 7) === 4 || tag === 0) {
1443
1454
  break;
@@ -1453,9 +1464,10 @@ var InputDef = {
1453
1464
  required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
1454
1465
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
1455
1466
  default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
1456
- validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
1467
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
1457
1468
  sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
1458
- nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
1469
+ nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
1470
+ ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
1459
1471
  };
1460
1472
  },
1461
1473
  toJSON(message) {
@@ -1475,8 +1487,8 @@ var InputDef = {
1475
1487
  if (message.default_value !== void 0) {
1476
1488
  obj.defaultValue = message.default_value;
1477
1489
  }
1478
- if (message.validation !== void 0) {
1479
- obj.validation = ValidationBlock.toJSON(message.validation);
1490
+ if (message.validation?.length) {
1491
+ obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
1480
1492
  }
1481
1493
  if (message.sensitive !== false) {
1482
1494
  obj.sensitive = message.sensitive;
@@ -1484,6 +1496,9 @@ var InputDef = {
1484
1496
  if (message.nullable !== void 0) {
1485
1497
  obj.nullable = message.nullable;
1486
1498
  }
1499
+ if (message.ephemeral !== void 0) {
1500
+ obj.ephemeral = message.ephemeral;
1501
+ }
1487
1502
  return obj;
1488
1503
  },
1489
1504
  create(base) {
@@ -1496,9 +1511,10 @@ var InputDef = {
1496
1511
  message.required = object.required ?? false;
1497
1512
  message.description = object.description ?? "";
1498
1513
  message.default_value = object.default_value ?? void 0;
1499
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
1514
+ message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
1500
1515
  message.sensitive = object.sensitive ?? false;
1501
1516
  message.nullable = object.nullable ?? void 0;
1517
+ message.ephemeral = object.ephemeral ?? void 0;
1502
1518
  return message;
1503
1519
  }
1504
1520
  };
@@ -1571,7 +1587,7 @@ var ValidationBlock = {
1571
1587
  }
1572
1588
  };
1573
1589
  function createBaseOutputDef() {
1574
- return { name: "", type: "", description: "", sensitive: false };
1590
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
1575
1591
  }
1576
1592
  var OutputDef = {
1577
1593
  encode(message, writer = new BinaryWriter2()) {
@@ -1587,6 +1603,9 @@ var OutputDef = {
1587
1603
  if (message.sensitive !== false) {
1588
1604
  writer.uint32(32).bool(message.sensitive);
1589
1605
  }
1606
+ for (const v of message.depends_on) {
1607
+ writer.uint32(42).string(v);
1608
+ }
1590
1609
  return writer;
1591
1610
  },
1592
1611
  decode(input, length) {
@@ -1624,6 +1643,13 @@ var OutputDef = {
1624
1643
  message.sensitive = reader.bool();
1625
1644
  continue;
1626
1645
  }
1646
+ case 5: {
1647
+ if (tag !== 42) {
1648
+ break;
1649
+ }
1650
+ message.depends_on.push(reader.string());
1651
+ continue;
1652
+ }
1627
1653
  }
1628
1654
  if ((tag & 7) === 4 || tag === 0) {
1629
1655
  break;
@@ -1637,7 +1663,8 @@ var OutputDef = {
1637
1663
  name: isSet2(object.name) ? globalThis.String(object.name) : "",
1638
1664
  type: isSet2(object.type) ? globalThis.String(object.type) : "",
1639
1665
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
1640
- sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
1666
+ sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
1667
+ 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)) : []
1641
1668
  };
1642
1669
  },
1643
1670
  toJSON(message) {
@@ -1654,6 +1681,9 @@ var OutputDef = {
1654
1681
  if (message.sensitive !== false) {
1655
1682
  obj.sensitive = message.sensitive;
1656
1683
  }
1684
+ if (message.depends_on?.length) {
1685
+ obj.dependsOn = message.depends_on;
1686
+ }
1657
1687
  return obj;
1658
1688
  },
1659
1689
  create(base) {
@@ -1665,6 +1695,7 @@ var OutputDef = {
1665
1695
  message.type = object.type ?? "";
1666
1696
  message.description = object.description ?? "";
1667
1697
  message.sensitive = object.sensitive ?? false;
1698
+ message.depends_on = object.depends_on?.map((e) => e) || [];
1668
1699
  return message;
1669
1700
  }
1670
1701
  };
@@ -1850,7 +1881,7 @@ var Local = {
1850
1881
  }
1851
1882
  };
1852
1883
  function createBaseUse() {
1853
- return { id: "", module: "", inputs: {}, depends_on: [] };
1884
+ return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
1854
1885
  }
1855
1886
  var Use = {
1856
1887
  encode(message, writer = new BinaryWriter2()) {
@@ -1866,6 +1897,12 @@ var Use = {
1866
1897
  for (const v of message.depends_on) {
1867
1898
  writer.uint32(34).string(v);
1868
1899
  }
1900
+ if (message.count !== void 0) {
1901
+ Binding.encode(message.count, writer.uint32(42).fork()).join();
1902
+ }
1903
+ if (message.for_each !== void 0) {
1904
+ Binding.encode(message.for_each, writer.uint32(50).fork()).join();
1905
+ }
1869
1906
  return writer;
1870
1907
  },
1871
1908
  decode(input, length) {
@@ -1906,6 +1943,20 @@ var Use = {
1906
1943
  message.depends_on.push(reader.string());
1907
1944
  continue;
1908
1945
  }
1946
+ case 5: {
1947
+ if (tag !== 42) {
1948
+ break;
1949
+ }
1950
+ message.count = Binding.decode(reader, reader.uint32());
1951
+ continue;
1952
+ }
1953
+ case 6: {
1954
+ if (tag !== 50) {
1955
+ break;
1956
+ }
1957
+ message.for_each = Binding.decode(reader, reader.uint32());
1958
+ continue;
1959
+ }
1909
1960
  }
1910
1961
  if ((tag & 7) === 4 || tag === 0) {
1911
1962
  break;
@@ -1925,7 +1976,9 @@ var Use = {
1925
1976
  },
1926
1977
  {}
1927
1978
  ) : {},
1928
- 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)) : []
1979
+ 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)) : [],
1980
+ count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
1981
+ for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
1929
1982
  };
1930
1983
  },
1931
1984
  toJSON(message) {
@@ -1948,6 +2001,12 @@ var Use = {
1948
2001
  if (message.depends_on?.length) {
1949
2002
  obj.dependsOn = message.depends_on;
1950
2003
  }
2004
+ if (message.count !== void 0) {
2005
+ obj.count = Binding.toJSON(message.count);
2006
+ }
2007
+ if (message.for_each !== void 0) {
2008
+ obj.forEach = Binding.toJSON(message.for_each);
2009
+ }
1951
2010
  return obj;
1952
2011
  },
1953
2012
  create(base) {
@@ -1967,6 +2026,8 @@ var Use = {
1967
2026
  {}
1968
2027
  );
1969
2028
  message.depends_on = object.depends_on?.map((e) => e) || [];
2029
+ message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
2030
+ message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
1970
2031
  return message;
1971
2032
  }
1972
2033
  };
@@ -3375,9 +3436,7 @@ var ProviderConfig = {
3375
3436
  writer.uint32(18).string(message.alias);
3376
3437
  }
3377
3438
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
3378
- if (value !== void 0) {
3379
- ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
3380
- }
3439
+ ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
3381
3440
  });
3382
3441
  for (const v of message.blocks) {
3383
3442
  Block.encode(v, writer.uint32(34).fork()).join();
@@ -3436,7 +3495,7 @@ var ProviderConfig = {
3436
3495
  alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
3437
3496
  config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
3438
3497
  (acc, [key, value]) => {
3439
- acc[key] = value;
3498
+ acc[key] = Binding.fromJSON(value);
3440
3499
  return acc;
3441
3500
  },
3442
3501
  {}
@@ -3457,7 +3516,7 @@ var ProviderConfig = {
3457
3516
  if (entries.length > 0) {
3458
3517
  obj.config = {};
3459
3518
  entries.forEach(([k, v]) => {
3460
- obj.config[k] = v;
3519
+ obj.config[k] = Binding.toJSON(v);
3461
3520
  });
3462
3521
  }
3463
3522
  }
@@ -3476,7 +3535,7 @@ var ProviderConfig = {
3476
3535
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
3477
3536
  (acc, [key, value]) => {
3478
3537
  if (value !== void 0) {
3479
- acc[key] = value;
3538
+ acc[key] = Binding.fromPartial(value);
3480
3539
  }
3481
3540
  return acc;
3482
3541
  },
@@ -3495,7 +3554,7 @@ var ProviderConfig_ConfigEntry = {
3495
3554
  writer.uint32(10).string(message.key);
3496
3555
  }
3497
3556
  if (message.value !== void 0) {
3498
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
3557
+ Binding.encode(message.value, writer.uint32(18).fork()).join();
3499
3558
  }
3500
3559
  return writer;
3501
3560
  },
@@ -3517,7 +3576,7 @@ var ProviderConfig_ConfigEntry = {
3517
3576
  if (tag !== 18) {
3518
3577
  break;
3519
3578
  }
3520
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
3579
+ message.value = Binding.decode(reader, reader.uint32());
3521
3580
  continue;
3522
3581
  }
3523
3582
  }
@@ -3531,7 +3590,7 @@ var ProviderConfig_ConfigEntry = {
3531
3590
  fromJSON(object) {
3532
3591
  return {
3533
3592
  key: isSet2(object.key) ? globalThis.String(object.key) : "",
3534
- value: isSet2(object?.value) ? object.value : void 0
3593
+ value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
3535
3594
  };
3536
3595
  },
3537
3596
  toJSON(message) {
@@ -3540,7 +3599,7 @@ var ProviderConfig_ConfigEntry = {
3540
3599
  obj.key = message.key;
3541
3600
  }
3542
3601
  if (message.value !== void 0) {
3543
- obj.value = message.value;
3602
+ obj.value = Binding.toJSON(message.value);
3544
3603
  }
3545
3604
  return obj;
3546
3605
  },
@@ -3550,7 +3609,7 @@ var ProviderConfig_ConfigEntry = {
3550
3609
  fromPartial(object) {
3551
3610
  const message = createBaseProviderConfig_ConfigEntry();
3552
3611
  message.key = object.key ?? "";
3553
- message.value = object.value ?? void 0;
3612
+ message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
3554
3613
  return message;
3555
3614
  }
3556
3615
  };
@@ -4188,6 +4247,33 @@ function isGroupUse(bundle, use) {
4188
4247
 
4189
4248
  // src/projection/derive-edges.ts
4190
4249
  var moduleRefPattern = /\bmodule\.([A-Za-z_][A-Za-z0-9_]*)\.([A-Za-z_][A-Za-z0-9_]*)/g;
4250
+ function emitEdgesFromBinding(binding, targetId, toInput, useIds, seen, edges) {
4251
+ if (binding.out?.module && binding.out.name) {
4252
+ edges.push({
4253
+ source_instance: binding.out.module,
4254
+ target_instance: targetId,
4255
+ from_output: binding.out.name,
4256
+ to_input: toInput
4257
+ });
4258
+ return;
4259
+ }
4260
+ if (binding.expr?.value) {
4261
+ for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
4262
+ const srcInstance = match[1];
4263
+ const srcOutput = match[2];
4264
+ if (!useIds.has(srcInstance)) continue;
4265
+ const key = `${srcInstance}:${targetId}:${srcOutput}:${toInput}`;
4266
+ if (seen.has(key)) continue;
4267
+ seen.add(key);
4268
+ edges.push({
4269
+ source_instance: srcInstance,
4270
+ target_instance: targetId,
4271
+ from_output: srcOutput,
4272
+ to_input: toInput
4273
+ });
4274
+ }
4275
+ }
4276
+ }
4191
4277
  function deriveEdges(uses) {
4192
4278
  const useIds = new Set(uses.map((u) => u.id));
4193
4279
  const edges = [];
@@ -4195,31 +4281,13 @@ function deriveEdges(uses) {
4195
4281
  for (const target of uses) {
4196
4282
  const inputs = target.inputs ?? {};
4197
4283
  for (const [inputName, binding] of Object.entries(inputs)) {
4198
- if (binding.out?.module && binding.out.name) {
4199
- edges.push({
4200
- source_instance: binding.out.module,
4201
- target_instance: target.id,
4202
- from_output: binding.out.name,
4203
- to_input: inputName
4204
- });
4205
- continue;
4206
- }
4207
- if (binding.expr?.value) {
4208
- for (const match of binding.expr.value.matchAll(moduleRefPattern)) {
4209
- const srcInstance = match[1];
4210
- const srcOutput = match[2];
4211
- if (!useIds.has(srcInstance)) continue;
4212
- const key = `${srcInstance}:${target.id}:${srcOutput}:${inputName}`;
4213
- if (seen.has(key)) continue;
4214
- seen.add(key);
4215
- edges.push({
4216
- source_instance: srcInstance,
4217
- target_instance: target.id,
4218
- from_output: srcOutput,
4219
- to_input: inputName
4220
- });
4221
- }
4222
- }
4284
+ emitEdgesFromBinding(binding, target.id, inputName, useIds, seen, edges);
4285
+ }
4286
+ if (target.count) {
4287
+ emitEdgesFromBinding(target.count, target.id, "count", useIds, seen, edges);
4288
+ }
4289
+ if (target.for_each) {
4290
+ emitEdgesFromBinding(target.for_each, target.id, "for_each", useIds, seen, edges);
4223
4291
  }
4224
4292
  }
4225
4293
  return edges;
@@ -6728,9 +6796,7 @@ var ProviderView = {
6728
6796
  writer.uint32(18).string(message.alias);
6729
6797
  }
6730
6798
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
6731
- if (value !== void 0) {
6732
- ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
6733
- }
6799
+ ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
6734
6800
  });
6735
6801
  return writer;
6736
6802
  },
@@ -6779,7 +6845,7 @@ var ProviderView = {
6779
6845
  alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
6780
6846
  config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
6781
6847
  (acc, [key, value]) => {
6782
- acc[key] = value;
6848
+ acc[key] = globalThis.String(value);
6783
6849
  return acc;
6784
6850
  },
6785
6851
  {}
@@ -6815,7 +6881,7 @@ var ProviderView = {
6815
6881
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
6816
6882
  (acc, [key, value]) => {
6817
6883
  if (value !== void 0) {
6818
- acc[key] = value;
6884
+ acc[key] = globalThis.String(value);
6819
6885
  }
6820
6886
  return acc;
6821
6887
  },
@@ -6825,15 +6891,15 @@ var ProviderView = {
6825
6891
  }
6826
6892
  };
6827
6893
  function createBaseProviderView_ConfigEntry() {
6828
- return { key: "", value: void 0 };
6894
+ return { key: "", value: "" };
6829
6895
  }
6830
6896
  var ProviderView_ConfigEntry = {
6831
6897
  encode(message, writer = new BinaryWriter3()) {
6832
6898
  if (message.key !== "") {
6833
6899
  writer.uint32(10).string(message.key);
6834
6900
  }
6835
- if (message.value !== void 0) {
6836
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
6901
+ if (message.value !== "") {
6902
+ writer.uint32(18).string(message.value);
6837
6903
  }
6838
6904
  return writer;
6839
6905
  },
@@ -6855,7 +6921,7 @@ var ProviderView_ConfigEntry = {
6855
6921
  if (tag !== 18) {
6856
6922
  break;
6857
6923
  }
6858
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
6924
+ message.value = reader.string();
6859
6925
  continue;
6860
6926
  }
6861
6927
  }
@@ -6869,7 +6935,7 @@ var ProviderView_ConfigEntry = {
6869
6935
  fromJSON(object) {
6870
6936
  return {
6871
6937
  key: isSet3(object.key) ? globalThis.String(object.key) : "",
6872
- value: isSet3(object?.value) ? object.value : void 0
6938
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
6873
6939
  };
6874
6940
  },
6875
6941
  toJSON(message) {
@@ -6877,7 +6943,7 @@ var ProviderView_ConfigEntry = {
6877
6943
  if (message.key !== "") {
6878
6944
  obj.key = message.key;
6879
6945
  }
6880
- if (message.value !== void 0) {
6946
+ if (message.value !== "") {
6881
6947
  obj.value = message.value;
6882
6948
  }
6883
6949
  return obj;
@@ -6888,7 +6954,7 @@ var ProviderView_ConfigEntry = {
6888
6954
  fromPartial(object) {
6889
6955
  const message = createBaseProviderView_ConfigEntry();
6890
6956
  message.key = object.key ?? "";
6891
- message.value = object.value ?? void 0;
6957
+ message.value = object.value ?? "";
6892
6958
  return message;
6893
6959
  }
6894
6960
  };
@@ -7127,7 +7193,15 @@ var Position2 = {
7127
7193
  }
7128
7194
  };
7129
7195
  function createBaseInputDef2() {
7130
- return { name: "", type: "", required: false, description: "", default_value: void 0, validation: void 0 };
7196
+ return {
7197
+ name: "",
7198
+ type: "",
7199
+ required: false,
7200
+ description: "",
7201
+ default_value: void 0,
7202
+ validation: [],
7203
+ ephemeral: void 0
7204
+ };
7131
7205
  }
7132
7206
  var InputDef2 = {
7133
7207
  encode(message, writer = new BinaryWriter3()) {
@@ -7146,8 +7220,11 @@ var InputDef2 = {
7146
7220
  if (message.default_value !== void 0) {
7147
7221
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
7148
7222
  }
7149
- if (message.validation !== void 0) {
7150
- ValidationBlock2.encode(message.validation, writer.uint32(50).fork()).join();
7223
+ for (const v of message.validation) {
7224
+ ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
7225
+ }
7226
+ if (message.ephemeral !== void 0) {
7227
+ writer.uint32(56).bool(message.ephemeral);
7151
7228
  }
7152
7229
  return writer;
7153
7230
  },
@@ -7197,7 +7274,14 @@ var InputDef2 = {
7197
7274
  if (tag !== 50) {
7198
7275
  break;
7199
7276
  }
7200
- message.validation = ValidationBlock2.decode(reader, reader.uint32());
7277
+ message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
7278
+ continue;
7279
+ }
7280
+ case 7: {
7281
+ if (tag !== 56) {
7282
+ break;
7283
+ }
7284
+ message.ephemeral = reader.bool();
7201
7285
  continue;
7202
7286
  }
7203
7287
  }
@@ -7215,7 +7299,8 @@ var InputDef2 = {
7215
7299
  required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
7216
7300
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
7217
7301
  default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
7218
- validation: isSet3(object.validation) ? ValidationBlock2.fromJSON(object.validation) : void 0
7302
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
7303
+ ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
7219
7304
  };
7220
7305
  },
7221
7306
  toJSON(message) {
@@ -7235,8 +7320,11 @@ var InputDef2 = {
7235
7320
  if (message.default_value !== void 0) {
7236
7321
  obj.defaultValue = message.default_value;
7237
7322
  }
7238
- if (message.validation !== void 0) {
7239
- obj.validation = ValidationBlock2.toJSON(message.validation);
7323
+ if (message.validation?.length) {
7324
+ obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
7325
+ }
7326
+ if (message.ephemeral !== void 0) {
7327
+ obj.ephemeral = message.ephemeral;
7240
7328
  }
7241
7329
  return obj;
7242
7330
  },
@@ -7250,7 +7338,8 @@ var InputDef2 = {
7250
7338
  message.required = object.required ?? false;
7251
7339
  message.description = object.description ?? "";
7252
7340
  message.default_value = object.default_value ?? void 0;
7253
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock2.fromPartial(object.validation) : void 0;
7341
+ message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
7342
+ message.ephemeral = object.ephemeral ?? void 0;
7254
7343
  return message;
7255
7344
  }
7256
7345
  };
@@ -7323,7 +7412,7 @@ var ValidationBlock2 = {
7323
7412
  }
7324
7413
  };
7325
7414
  function createBaseOutputDef2() {
7326
- return { name: "", type: "", description: "", sensitive: false };
7415
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
7327
7416
  }
7328
7417
  var OutputDef2 = {
7329
7418
  encode(message, writer = new BinaryWriter3()) {
@@ -7339,6 +7428,9 @@ var OutputDef2 = {
7339
7428
  if (message.sensitive !== false) {
7340
7429
  writer.uint32(32).bool(message.sensitive);
7341
7430
  }
7431
+ for (const v of message.depends_on) {
7432
+ writer.uint32(42).string(v);
7433
+ }
7342
7434
  return writer;
7343
7435
  },
7344
7436
  decode(input, length) {
@@ -7376,6 +7468,13 @@ var OutputDef2 = {
7376
7468
  message.sensitive = reader.bool();
7377
7469
  continue;
7378
7470
  }
7471
+ case 5: {
7472
+ if (tag !== 42) {
7473
+ break;
7474
+ }
7475
+ message.depends_on.push(reader.string());
7476
+ continue;
7477
+ }
7379
7478
  }
7380
7479
  if ((tag & 7) === 4 || tag === 0) {
7381
7480
  break;
@@ -7389,7 +7488,8 @@ var OutputDef2 = {
7389
7488
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
7390
7489
  type: isSet3(object.type) ? globalThis.String(object.type) : "",
7391
7490
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
7392
- sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
7491
+ sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
7492
+ 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)) : []
7393
7493
  };
7394
7494
  },
7395
7495
  toJSON(message) {
@@ -7406,6 +7506,9 @@ var OutputDef2 = {
7406
7506
  if (message.sensitive !== false) {
7407
7507
  obj.sensitive = message.sensitive;
7408
7508
  }
7509
+ if (message.depends_on?.length) {
7510
+ obj.dependsOn = message.depends_on;
7511
+ }
7409
7512
  return obj;
7410
7513
  },
7411
7514
  create(base) {
@@ -7417,6 +7520,7 @@ var OutputDef2 = {
7417
7520
  message.type = object.type ?? "";
7418
7521
  message.description = object.description ?? "";
7419
7522
  message.sensitive = object.sensitive ?? false;
7523
+ message.depends_on = object.depends_on?.map((e) => e) || [];
7420
7524
  return message;
7421
7525
  }
7422
7526
  };