@lace-cloud/host 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.d.mts CHANGED
@@ -99,10 +99,12 @@ interface InputDef$1 {
99
99
  required: boolean;
100
100
  description: string;
101
101
  default_value: any | undefined;
102
- validation: ValidationBlock$1 | undefined;
102
+ validation: ValidationBlock$1[];
103
103
  sensitive: boolean;
104
104
  /** unset = default (true); explicit false is meaningful */
105
105
  nullable?: boolean | undefined;
106
+ /** unset = default (false); explicit true is meaningful */
107
+ ephemeral?: boolean | undefined;
106
108
  }
107
109
  declare const InputDef$1: MessageFns$1<InputDef$1>;
108
110
  interface ValidationBlock$1 {
@@ -115,6 +117,7 @@ interface OutputDef$1 {
115
117
  type: string;
116
118
  description: string;
117
119
  sensitive: boolean;
120
+ depends_on: string[];
118
121
  }
119
122
  declare const OutputDef$1: MessageFns$1<OutputDef$1>;
120
123
  interface Source {
@@ -137,6 +140,10 @@ interface Use {
137
140
  [key: string]: Binding;
138
141
  };
139
142
  depends_on: string[];
143
+ /** count meta-argument */
144
+ count: Binding | undefined;
145
+ /** for_each meta-argument */
146
+ for_each: Binding | undefined;
140
147
  }
141
148
  declare const Use: MessageFns$1<Use>;
142
149
  interface Resource {
@@ -229,7 +236,7 @@ interface ProviderConfig {
229
236
  name: string;
230
237
  alias: string;
231
238
  config: {
232
- [key: string]: any | undefined;
239
+ [key: string]: Binding;
233
240
  };
234
241
  /** nested config blocks (default_tags, assume_role, …) */
235
242
  blocks: Block[];
@@ -656,7 +663,7 @@ interface ProviderView {
656
663
  name: string;
657
664
  alias: string;
658
665
  config: {
659
- [key: string]: any | undefined;
666
+ [key: string]: string;
660
667
  };
661
668
  }
662
669
  declare const ProviderView: MessageFns<ProviderView>;
@@ -671,7 +678,9 @@ interface InputDef {
671
678
  required: boolean;
672
679
  description: string;
673
680
  default_value: any | undefined;
674
- validation: ValidationBlock | undefined;
681
+ validation: ValidationBlock[];
682
+ /** unset = default (false); explicit true is meaningful */
683
+ ephemeral?: boolean | undefined;
675
684
  }
676
685
  declare const InputDef: MessageFns<InputDef>;
677
686
  interface ValidationBlock {
@@ -684,6 +693,7 @@ interface OutputDef {
684
693
  type: string;
685
694
  description: string;
686
695
  sensitive: boolean;
696
+ depends_on: string[];
687
697
  }
688
698
  declare const OutputDef: MessageFns<OutputDef>;
689
699
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
package/dist/index.d.ts CHANGED
@@ -99,10 +99,12 @@ interface InputDef$1 {
99
99
  required: boolean;
100
100
  description: string;
101
101
  default_value: any | undefined;
102
- validation: ValidationBlock$1 | undefined;
102
+ validation: ValidationBlock$1[];
103
103
  sensitive: boolean;
104
104
  /** unset = default (true); explicit false is meaningful */
105
105
  nullable?: boolean | undefined;
106
+ /** unset = default (false); explicit true is meaningful */
107
+ ephemeral?: boolean | undefined;
106
108
  }
107
109
  declare const InputDef$1: MessageFns$1<InputDef$1>;
108
110
  interface ValidationBlock$1 {
@@ -115,6 +117,7 @@ interface OutputDef$1 {
115
117
  type: string;
116
118
  description: string;
117
119
  sensitive: boolean;
120
+ depends_on: string[];
118
121
  }
119
122
  declare const OutputDef$1: MessageFns$1<OutputDef$1>;
120
123
  interface Source {
@@ -137,6 +140,10 @@ interface Use {
137
140
  [key: string]: Binding;
138
141
  };
139
142
  depends_on: string[];
143
+ /** count meta-argument */
144
+ count: Binding | undefined;
145
+ /** for_each meta-argument */
146
+ for_each: Binding | undefined;
140
147
  }
141
148
  declare const Use: MessageFns$1<Use>;
142
149
  interface Resource {
@@ -229,7 +236,7 @@ interface ProviderConfig {
229
236
  name: string;
230
237
  alias: string;
231
238
  config: {
232
- [key: string]: any | undefined;
239
+ [key: string]: Binding;
233
240
  };
234
241
  /** nested config blocks (default_tags, assume_role, …) */
235
242
  blocks: Block[];
@@ -656,7 +663,7 @@ interface ProviderView {
656
663
  name: string;
657
664
  alias: string;
658
665
  config: {
659
- [key: string]: any | undefined;
666
+ [key: string]: string;
660
667
  };
661
668
  }
662
669
  declare const ProviderView: MessageFns<ProviderView>;
@@ -671,7 +678,9 @@ interface InputDef {
671
678
  required: boolean;
672
679
  description: string;
673
680
  default_value: any | undefined;
674
- validation: ValidationBlock | undefined;
681
+ validation: ValidationBlock[];
682
+ /** unset = default (false); explicit true is meaningful */
683
+ ephemeral?: boolean | undefined;
675
684
  }
676
685
  declare const InputDef: MessageFns<InputDef>;
677
686
  interface ValidationBlock {
@@ -684,6 +693,7 @@ interface OutputDef {
684
693
  type: string;
685
694
  description: string;
686
695
  sensitive: boolean;
696
+ depends_on: string[];
687
697
  }
688
698
  declare const OutputDef: MessageFns<OutputDef>;
689
699
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
package/dist/index.mjs CHANGED
@@ -1318,9 +1318,10 @@ function createBaseInputDef() {
1318
1318
  required: false,
1319
1319
  description: "",
1320
1320
  default_value: void 0,
1321
- validation: void 0,
1321
+ validation: [],
1322
1322
  sensitive: false,
1323
- nullable: void 0
1323
+ nullable: void 0,
1324
+ ephemeral: void 0
1324
1325
  };
1325
1326
  }
1326
1327
  var InputDef = {
@@ -1340,8 +1341,8 @@ var InputDef = {
1340
1341
  if (message.default_value !== void 0) {
1341
1342
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
1342
1343
  }
1343
- if (message.validation !== void 0) {
1344
- ValidationBlock.encode(message.validation, writer.uint32(50).fork()).join();
1344
+ for (const v of message.validation) {
1345
+ ValidationBlock.encode(v, writer.uint32(50).fork()).join();
1345
1346
  }
1346
1347
  if (message.sensitive !== false) {
1347
1348
  writer.uint32(56).bool(message.sensitive);
@@ -1349,6 +1350,9 @@ var InputDef = {
1349
1350
  if (message.nullable !== void 0) {
1350
1351
  writer.uint32(64).bool(message.nullable);
1351
1352
  }
1353
+ if (message.ephemeral !== void 0) {
1354
+ writer.uint32(72).bool(message.ephemeral);
1355
+ }
1352
1356
  return writer;
1353
1357
  },
1354
1358
  decode(input, length) {
@@ -1397,7 +1401,7 @@ var InputDef = {
1397
1401
  if (tag !== 50) {
1398
1402
  break;
1399
1403
  }
1400
- message.validation = ValidationBlock.decode(reader, reader.uint32());
1404
+ message.validation.push(ValidationBlock.decode(reader, reader.uint32()));
1401
1405
  continue;
1402
1406
  }
1403
1407
  case 7: {
@@ -1414,6 +1418,13 @@ var InputDef = {
1414
1418
  message.nullable = reader.bool();
1415
1419
  continue;
1416
1420
  }
1421
+ case 9: {
1422
+ if (tag !== 72) {
1423
+ break;
1424
+ }
1425
+ message.ephemeral = reader.bool();
1426
+ continue;
1427
+ }
1417
1428
  }
1418
1429
  if ((tag & 7) === 4 || tag === 0) {
1419
1430
  break;
@@ -1429,9 +1440,10 @@ var InputDef = {
1429
1440
  required: isSet2(object.required) ? globalThis.Boolean(object.required) : false,
1430
1441
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
1431
1442
  default_value: isSet2(object?.defaultValue) ? object.defaultValue : isSet2(object?.default_value) ? object.default_value : void 0,
1432
- validation: isSet2(object.validation) ? ValidationBlock.fromJSON(object.validation) : void 0,
1443
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock.fromJSON(e)) : [],
1433
1444
  sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
1434
- nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0
1445
+ nullable: isSet2(object.nullable) ? globalThis.Boolean(object.nullable) : void 0,
1446
+ ephemeral: isSet2(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
1435
1447
  };
1436
1448
  },
1437
1449
  toJSON(message) {
@@ -1451,8 +1463,8 @@ var InputDef = {
1451
1463
  if (message.default_value !== void 0) {
1452
1464
  obj.defaultValue = message.default_value;
1453
1465
  }
1454
- if (message.validation !== void 0) {
1455
- obj.validation = ValidationBlock.toJSON(message.validation);
1466
+ if (message.validation?.length) {
1467
+ obj.validation = message.validation.map((e) => ValidationBlock.toJSON(e));
1456
1468
  }
1457
1469
  if (message.sensitive !== false) {
1458
1470
  obj.sensitive = message.sensitive;
@@ -1460,6 +1472,9 @@ var InputDef = {
1460
1472
  if (message.nullable !== void 0) {
1461
1473
  obj.nullable = message.nullable;
1462
1474
  }
1475
+ if (message.ephemeral !== void 0) {
1476
+ obj.ephemeral = message.ephemeral;
1477
+ }
1463
1478
  return obj;
1464
1479
  },
1465
1480
  create(base) {
@@ -1472,9 +1487,10 @@ var InputDef = {
1472
1487
  message.required = object.required ?? false;
1473
1488
  message.description = object.description ?? "";
1474
1489
  message.default_value = object.default_value ?? void 0;
1475
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock.fromPartial(object.validation) : void 0;
1490
+ message.validation = object.validation?.map((e) => ValidationBlock.fromPartial(e)) || [];
1476
1491
  message.sensitive = object.sensitive ?? false;
1477
1492
  message.nullable = object.nullable ?? void 0;
1493
+ message.ephemeral = object.ephemeral ?? void 0;
1478
1494
  return message;
1479
1495
  }
1480
1496
  };
@@ -1547,7 +1563,7 @@ var ValidationBlock = {
1547
1563
  }
1548
1564
  };
1549
1565
  function createBaseOutputDef() {
1550
- return { name: "", type: "", description: "", sensitive: false };
1566
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
1551
1567
  }
1552
1568
  var OutputDef = {
1553
1569
  encode(message, writer = new BinaryWriter3()) {
@@ -1563,6 +1579,9 @@ var OutputDef = {
1563
1579
  if (message.sensitive !== false) {
1564
1580
  writer.uint32(32).bool(message.sensitive);
1565
1581
  }
1582
+ for (const v of message.depends_on) {
1583
+ writer.uint32(42).string(v);
1584
+ }
1566
1585
  return writer;
1567
1586
  },
1568
1587
  decode(input, length) {
@@ -1600,6 +1619,13 @@ var OutputDef = {
1600
1619
  message.sensitive = reader.bool();
1601
1620
  continue;
1602
1621
  }
1622
+ case 5: {
1623
+ if (tag !== 42) {
1624
+ break;
1625
+ }
1626
+ message.depends_on.push(reader.string());
1627
+ continue;
1628
+ }
1603
1629
  }
1604
1630
  if ((tag & 7) === 4 || tag === 0) {
1605
1631
  break;
@@ -1613,7 +1639,8 @@ var OutputDef = {
1613
1639
  name: isSet2(object.name) ? globalThis.String(object.name) : "",
1614
1640
  type: isSet2(object.type) ? globalThis.String(object.type) : "",
1615
1641
  description: isSet2(object.description) ? globalThis.String(object.description) : "",
1616
- sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
1642
+ sensitive: isSet2(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
1643
+ 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)) : []
1617
1644
  };
1618
1645
  },
1619
1646
  toJSON(message) {
@@ -1630,6 +1657,9 @@ var OutputDef = {
1630
1657
  if (message.sensitive !== false) {
1631
1658
  obj.sensitive = message.sensitive;
1632
1659
  }
1660
+ if (message.depends_on?.length) {
1661
+ obj.dependsOn = message.depends_on;
1662
+ }
1633
1663
  return obj;
1634
1664
  },
1635
1665
  create(base) {
@@ -1641,6 +1671,7 @@ var OutputDef = {
1641
1671
  message.type = object.type ?? "";
1642
1672
  message.description = object.description ?? "";
1643
1673
  message.sensitive = object.sensitive ?? false;
1674
+ message.depends_on = object.depends_on?.map((e) => e) || [];
1644
1675
  return message;
1645
1676
  }
1646
1677
  };
@@ -1826,7 +1857,7 @@ var Local = {
1826
1857
  }
1827
1858
  };
1828
1859
  function createBaseUse() {
1829
- return { id: "", module: "", inputs: {}, depends_on: [] };
1860
+ return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
1830
1861
  }
1831
1862
  var Use = {
1832
1863
  encode(message, writer = new BinaryWriter3()) {
@@ -1842,6 +1873,12 @@ var Use = {
1842
1873
  for (const v of message.depends_on) {
1843
1874
  writer.uint32(34).string(v);
1844
1875
  }
1876
+ if (message.count !== void 0) {
1877
+ Binding.encode(message.count, writer.uint32(42).fork()).join();
1878
+ }
1879
+ if (message.for_each !== void 0) {
1880
+ Binding.encode(message.for_each, writer.uint32(50).fork()).join();
1881
+ }
1845
1882
  return writer;
1846
1883
  },
1847
1884
  decode(input, length) {
@@ -1882,6 +1919,20 @@ var Use = {
1882
1919
  message.depends_on.push(reader.string());
1883
1920
  continue;
1884
1921
  }
1922
+ case 5: {
1923
+ if (tag !== 42) {
1924
+ break;
1925
+ }
1926
+ message.count = Binding.decode(reader, reader.uint32());
1927
+ continue;
1928
+ }
1929
+ case 6: {
1930
+ if (tag !== 50) {
1931
+ break;
1932
+ }
1933
+ message.for_each = Binding.decode(reader, reader.uint32());
1934
+ continue;
1935
+ }
1885
1936
  }
1886
1937
  if ((tag & 7) === 4 || tag === 0) {
1887
1938
  break;
@@ -1901,7 +1952,9 @@ var Use = {
1901
1952
  },
1902
1953
  {}
1903
1954
  ) : {},
1904
- 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)) : []
1955
+ 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)) : [],
1956
+ count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
1957
+ for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
1905
1958
  };
1906
1959
  },
1907
1960
  toJSON(message) {
@@ -1924,6 +1977,12 @@ var Use = {
1924
1977
  if (message.depends_on?.length) {
1925
1978
  obj.dependsOn = message.depends_on;
1926
1979
  }
1980
+ if (message.count !== void 0) {
1981
+ obj.count = Binding.toJSON(message.count);
1982
+ }
1983
+ if (message.for_each !== void 0) {
1984
+ obj.forEach = Binding.toJSON(message.for_each);
1985
+ }
1927
1986
  return obj;
1928
1987
  },
1929
1988
  create(base) {
@@ -1943,6 +2002,8 @@ var Use = {
1943
2002
  {}
1944
2003
  );
1945
2004
  message.depends_on = object.depends_on?.map((e) => e) || [];
2005
+ message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
2006
+ message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
1946
2007
  return message;
1947
2008
  }
1948
2009
  };
@@ -3351,9 +3412,7 @@ var ProviderConfig = {
3351
3412
  writer.uint32(18).string(message.alias);
3352
3413
  }
3353
3414
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
3354
- if (value !== void 0) {
3355
- ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
3356
- }
3415
+ ProviderConfig_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
3357
3416
  });
3358
3417
  for (const v of message.blocks) {
3359
3418
  Block.encode(v, writer.uint32(34).fork()).join();
@@ -3412,7 +3471,7 @@ var ProviderConfig = {
3412
3471
  alias: isSet2(object.alias) ? globalThis.String(object.alias) : "",
3413
3472
  config: isObject2(object.config) ? globalThis.Object.entries(object.config).reduce(
3414
3473
  (acc, [key, value]) => {
3415
- acc[key] = value;
3474
+ acc[key] = Binding.fromJSON(value);
3416
3475
  return acc;
3417
3476
  },
3418
3477
  {}
@@ -3433,7 +3492,7 @@ var ProviderConfig = {
3433
3492
  if (entries.length > 0) {
3434
3493
  obj.config = {};
3435
3494
  entries.forEach(([k, v]) => {
3436
- obj.config[k] = v;
3495
+ obj.config[k] = Binding.toJSON(v);
3437
3496
  });
3438
3497
  }
3439
3498
  }
@@ -3452,7 +3511,7 @@ var ProviderConfig = {
3452
3511
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
3453
3512
  (acc, [key, value]) => {
3454
3513
  if (value !== void 0) {
3455
- acc[key] = value;
3514
+ acc[key] = Binding.fromPartial(value);
3456
3515
  }
3457
3516
  return acc;
3458
3517
  },
@@ -3471,7 +3530,7 @@ var ProviderConfig_ConfigEntry = {
3471
3530
  writer.uint32(10).string(message.key);
3472
3531
  }
3473
3532
  if (message.value !== void 0) {
3474
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
3533
+ Binding.encode(message.value, writer.uint32(18).fork()).join();
3475
3534
  }
3476
3535
  return writer;
3477
3536
  },
@@ -3493,7 +3552,7 @@ var ProviderConfig_ConfigEntry = {
3493
3552
  if (tag !== 18) {
3494
3553
  break;
3495
3554
  }
3496
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
3555
+ message.value = Binding.decode(reader, reader.uint32());
3497
3556
  continue;
3498
3557
  }
3499
3558
  }
@@ -3507,7 +3566,7 @@ var ProviderConfig_ConfigEntry = {
3507
3566
  fromJSON(object) {
3508
3567
  return {
3509
3568
  key: isSet2(object.key) ? globalThis.String(object.key) : "",
3510
- value: isSet2(object?.value) ? object.value : void 0
3569
+ value: isSet2(object.value) ? Binding.fromJSON(object.value) : void 0
3511
3570
  };
3512
3571
  },
3513
3572
  toJSON(message) {
@@ -3516,7 +3575,7 @@ var ProviderConfig_ConfigEntry = {
3516
3575
  obj.key = message.key;
3517
3576
  }
3518
3577
  if (message.value !== void 0) {
3519
- obj.value = message.value;
3578
+ obj.value = Binding.toJSON(message.value);
3520
3579
  }
3521
3580
  return obj;
3522
3581
  },
@@ -3526,7 +3585,7 @@ var ProviderConfig_ConfigEntry = {
3526
3585
  fromPartial(object) {
3527
3586
  const message = createBaseProviderConfig_ConfigEntry();
3528
3587
  message.key = object.key ?? "";
3529
- message.value = object.value ?? void 0;
3588
+ message.value = object.value !== void 0 && object.value !== null ? Binding.fromPartial(object.value) : void 0;
3530
3589
  return message;
3531
3590
  }
3532
3591
  };
@@ -12804,9 +12863,7 @@ var ProviderView = {
12804
12863
  writer.uint32(18).string(message.alias);
12805
12864
  }
12806
12865
  globalThis.Object.entries(message.config).forEach(([key, value]) => {
12807
- if (value !== void 0) {
12808
- ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
12809
- }
12866
+ ProviderView_ConfigEntry.encode({ key, value }, writer.uint32(26).fork()).join();
12810
12867
  });
12811
12868
  return writer;
12812
12869
  },
@@ -12855,7 +12912,7 @@ var ProviderView = {
12855
12912
  alias: isSet3(object.alias) ? globalThis.String(object.alias) : "",
12856
12913
  config: isObject3(object.config) ? globalThis.Object.entries(object.config).reduce(
12857
12914
  (acc, [key, value]) => {
12858
- acc[key] = value;
12915
+ acc[key] = globalThis.String(value);
12859
12916
  return acc;
12860
12917
  },
12861
12918
  {}
@@ -12891,7 +12948,7 @@ var ProviderView = {
12891
12948
  message.config = globalThis.Object.entries(object.config ?? {}).reduce(
12892
12949
  (acc, [key, value]) => {
12893
12950
  if (value !== void 0) {
12894
- acc[key] = value;
12951
+ acc[key] = globalThis.String(value);
12895
12952
  }
12896
12953
  return acc;
12897
12954
  },
@@ -12901,15 +12958,15 @@ var ProviderView = {
12901
12958
  }
12902
12959
  };
12903
12960
  function createBaseProviderView_ConfigEntry() {
12904
- return { key: "", value: void 0 };
12961
+ return { key: "", value: "" };
12905
12962
  }
12906
12963
  var ProviderView_ConfigEntry = {
12907
12964
  encode(message, writer = new BinaryWriter4()) {
12908
12965
  if (message.key !== "") {
12909
12966
  writer.uint32(10).string(message.key);
12910
12967
  }
12911
- if (message.value !== void 0) {
12912
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
12968
+ if (message.value !== "") {
12969
+ writer.uint32(18).string(message.value);
12913
12970
  }
12914
12971
  return writer;
12915
12972
  },
@@ -12931,7 +12988,7 @@ var ProviderView_ConfigEntry = {
12931
12988
  if (tag !== 18) {
12932
12989
  break;
12933
12990
  }
12934
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
12991
+ message.value = reader.string();
12935
12992
  continue;
12936
12993
  }
12937
12994
  }
@@ -12945,7 +13002,7 @@ var ProviderView_ConfigEntry = {
12945
13002
  fromJSON(object) {
12946
13003
  return {
12947
13004
  key: isSet3(object.key) ? globalThis.String(object.key) : "",
12948
- value: isSet3(object?.value) ? object.value : void 0
13005
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
12949
13006
  };
12950
13007
  },
12951
13008
  toJSON(message) {
@@ -12953,7 +13010,7 @@ var ProviderView_ConfigEntry = {
12953
13010
  if (message.key !== "") {
12954
13011
  obj.key = message.key;
12955
13012
  }
12956
- if (message.value !== void 0) {
13013
+ if (message.value !== "") {
12957
13014
  obj.value = message.value;
12958
13015
  }
12959
13016
  return obj;
@@ -12964,7 +13021,7 @@ var ProviderView_ConfigEntry = {
12964
13021
  fromPartial(object) {
12965
13022
  const message = createBaseProviderView_ConfigEntry();
12966
13023
  message.key = object.key ?? "";
12967
- message.value = object.value ?? void 0;
13024
+ message.value = object.value ?? "";
12968
13025
  return message;
12969
13026
  }
12970
13027
  };
@@ -13203,7 +13260,15 @@ var Position2 = {
13203
13260
  }
13204
13261
  };
13205
13262
  function createBaseInputDef2() {
13206
- return { name: "", type: "", required: false, description: "", default_value: void 0, validation: void 0 };
13263
+ return {
13264
+ name: "",
13265
+ type: "",
13266
+ required: false,
13267
+ description: "",
13268
+ default_value: void 0,
13269
+ validation: [],
13270
+ ephemeral: void 0
13271
+ };
13207
13272
  }
13208
13273
  var InputDef2 = {
13209
13274
  encode(message, writer = new BinaryWriter4()) {
@@ -13222,8 +13287,11 @@ var InputDef2 = {
13222
13287
  if (message.default_value !== void 0) {
13223
13288
  Value.encode(Value.wrap(message.default_value), writer.uint32(42).fork()).join();
13224
13289
  }
13225
- if (message.validation !== void 0) {
13226
- ValidationBlock2.encode(message.validation, writer.uint32(50).fork()).join();
13290
+ for (const v of message.validation) {
13291
+ ValidationBlock2.encode(v, writer.uint32(50).fork()).join();
13292
+ }
13293
+ if (message.ephemeral !== void 0) {
13294
+ writer.uint32(56).bool(message.ephemeral);
13227
13295
  }
13228
13296
  return writer;
13229
13297
  },
@@ -13273,7 +13341,14 @@ var InputDef2 = {
13273
13341
  if (tag !== 50) {
13274
13342
  break;
13275
13343
  }
13276
- message.validation = ValidationBlock2.decode(reader, reader.uint32());
13344
+ message.validation.push(ValidationBlock2.decode(reader, reader.uint32()));
13345
+ continue;
13346
+ }
13347
+ case 7: {
13348
+ if (tag !== 56) {
13349
+ break;
13350
+ }
13351
+ message.ephemeral = reader.bool();
13277
13352
  continue;
13278
13353
  }
13279
13354
  }
@@ -13291,7 +13366,8 @@ var InputDef2 = {
13291
13366
  required: isSet3(object.required) ? globalThis.Boolean(object.required) : false,
13292
13367
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
13293
13368
  default_value: isSet3(object?.defaultValue) ? object.defaultValue : isSet3(object?.default_value) ? object.default_value : void 0,
13294
- validation: isSet3(object.validation) ? ValidationBlock2.fromJSON(object.validation) : void 0
13369
+ validation: globalThis.Array.isArray(object?.validation) ? object.validation.map((e) => ValidationBlock2.fromJSON(e)) : [],
13370
+ ephemeral: isSet3(object.ephemeral) ? globalThis.Boolean(object.ephemeral) : void 0
13295
13371
  };
13296
13372
  },
13297
13373
  toJSON(message) {
@@ -13311,8 +13387,11 @@ var InputDef2 = {
13311
13387
  if (message.default_value !== void 0) {
13312
13388
  obj.defaultValue = message.default_value;
13313
13389
  }
13314
- if (message.validation !== void 0) {
13315
- obj.validation = ValidationBlock2.toJSON(message.validation);
13390
+ if (message.validation?.length) {
13391
+ obj.validation = message.validation.map((e) => ValidationBlock2.toJSON(e));
13392
+ }
13393
+ if (message.ephemeral !== void 0) {
13394
+ obj.ephemeral = message.ephemeral;
13316
13395
  }
13317
13396
  return obj;
13318
13397
  },
@@ -13326,7 +13405,8 @@ var InputDef2 = {
13326
13405
  message.required = object.required ?? false;
13327
13406
  message.description = object.description ?? "";
13328
13407
  message.default_value = object.default_value ?? void 0;
13329
- message.validation = object.validation !== void 0 && object.validation !== null ? ValidationBlock2.fromPartial(object.validation) : void 0;
13408
+ message.validation = object.validation?.map((e) => ValidationBlock2.fromPartial(e)) || [];
13409
+ message.ephemeral = object.ephemeral ?? void 0;
13330
13410
  return message;
13331
13411
  }
13332
13412
  };
@@ -13399,7 +13479,7 @@ var ValidationBlock2 = {
13399
13479
  }
13400
13480
  };
13401
13481
  function createBaseOutputDef2() {
13402
- return { name: "", type: "", description: "", sensitive: false };
13482
+ return { name: "", type: "", description: "", sensitive: false, depends_on: [] };
13403
13483
  }
13404
13484
  var OutputDef2 = {
13405
13485
  encode(message, writer = new BinaryWriter4()) {
@@ -13415,6 +13495,9 @@ var OutputDef2 = {
13415
13495
  if (message.sensitive !== false) {
13416
13496
  writer.uint32(32).bool(message.sensitive);
13417
13497
  }
13498
+ for (const v of message.depends_on) {
13499
+ writer.uint32(42).string(v);
13500
+ }
13418
13501
  return writer;
13419
13502
  },
13420
13503
  decode(input, length) {
@@ -13452,6 +13535,13 @@ var OutputDef2 = {
13452
13535
  message.sensitive = reader.bool();
13453
13536
  continue;
13454
13537
  }
13538
+ case 5: {
13539
+ if (tag !== 42) {
13540
+ break;
13541
+ }
13542
+ message.depends_on.push(reader.string());
13543
+ continue;
13544
+ }
13455
13545
  }
13456
13546
  if ((tag & 7) === 4 || tag === 0) {
13457
13547
  break;
@@ -13465,7 +13555,8 @@ var OutputDef2 = {
13465
13555
  name: isSet3(object.name) ? globalThis.String(object.name) : "",
13466
13556
  type: isSet3(object.type) ? globalThis.String(object.type) : "",
13467
13557
  description: isSet3(object.description) ? globalThis.String(object.description) : "",
13468
- sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false
13558
+ sensitive: isSet3(object.sensitive) ? globalThis.Boolean(object.sensitive) : false,
13559
+ 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)) : []
13469
13560
  };
13470
13561
  },
13471
13562
  toJSON(message) {
@@ -13482,6 +13573,9 @@ var OutputDef2 = {
13482
13573
  if (message.sensitive !== false) {
13483
13574
  obj.sensitive = message.sensitive;
13484
13575
  }
13576
+ if (message.depends_on?.length) {
13577
+ obj.dependsOn = message.depends_on;
13578
+ }
13485
13579
  return obj;
13486
13580
  },
13487
13581
  create(base) {
@@ -13493,6 +13587,7 @@ var OutputDef2 = {
13493
13587
  message.type = object.type ?? "";
13494
13588
  message.description = object.description ?? "";
13495
13589
  message.sensitive = object.sensitive ?? false;
13590
+ message.depends_on = object.depends_on?.map((e) => e) || [];
13496
13591
  return message;
13497
13592
  }
13498
13593
  };