@avaprotocol/sdk-js 2.5.2-dev.0 → 2.6.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +598 -1599
  4. package/dist/index.mjs +613 -1602
  5. package/dist/models/node/branch.d.ts.map +1 -1
  6. package/dist/models/node/branch.js +2 -11
  7. package/dist/models/node/contractRead.d.ts.map +1 -1
  8. package/dist/models/node/contractRead.js +1 -14
  9. package/dist/models/node/contractWrite.d.ts +1 -1
  10. package/dist/models/node/contractWrite.d.ts.map +1 -1
  11. package/dist/models/node/contractWrite.js +0 -14
  12. package/dist/models/node/customCode.d.ts.map +1 -1
  13. package/dist/models/node/customCode.js +1 -14
  14. package/dist/models/node/ethTransfer.d.ts.map +1 -1
  15. package/dist/models/node/ethTransfer.js +6 -11
  16. package/dist/models/node/filter.d.ts.map +1 -1
  17. package/dist/models/node/filter.js +20 -18
  18. package/dist/models/node/graphqlQuery.d.ts.map +1 -1
  19. package/dist/models/node/graphqlQuery.js +5 -11
  20. package/dist/models/node/interface.d.ts +0 -1
  21. package/dist/models/node/interface.d.ts.map +1 -1
  22. package/dist/models/node/interface.js +0 -8
  23. package/dist/models/node/loop.d.ts.map +1 -1
  24. package/dist/models/node/loop.js +58 -85
  25. package/dist/models/node/restApi.d.ts.map +1 -1
  26. package/dist/models/node/restApi.js +1 -15
  27. package/dist/models/step.d.ts +3 -1
  28. package/dist/models/step.d.ts.map +1 -1
  29. package/dist/models/step.js +104 -365
  30. package/dist/models/trigger/block.d.ts.map +1 -1
  31. package/dist/models/trigger/block.js +18 -20
  32. package/dist/models/trigger/cron.d.ts.map +1 -1
  33. package/dist/models/trigger/cron.js +9 -28
  34. package/dist/models/trigger/event.d.ts.map +1 -1
  35. package/dist/models/trigger/event.js +1 -12
  36. package/dist/models/trigger/fixedTime.d.ts.map +1 -1
  37. package/dist/models/trigger/fixedTime.js +9 -20
  38. package/dist/models/trigger/interface.d.ts +1 -1
  39. package/dist/models/trigger/interface.d.ts.map +1 -1
  40. package/dist/models/trigger/interface.js +7 -2
  41. package/dist/models/trigger/manual.d.ts +0 -3
  42. package/dist/models/trigger/manual.d.ts.map +1 -1
  43. package/dist/models/trigger/manual.js +35 -44
  44. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1338,8 +1338,7 @@ var require_avs_pb = __commonJS({
1338
1338
  };
1339
1339
  proto.aggregator.FixedTimeTrigger.toObject = function(includeInstance, msg) {
1340
1340
  var f, obj = {
1341
- config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f),
1342
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1341
+ config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f)
1343
1342
  };
1344
1343
  if (includeInstance) {
1345
1344
  obj.$jspbMessageInstance = msg;
@@ -1364,11 +1363,6 @@ var require_avs_pb = __commonJS({
1364
1363
  reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Config.deserializeBinaryFromReader);
1365
1364
  msg.setConfig(value);
1366
1365
  break;
1367
- case 2:
1368
- var value = new google_protobuf_struct_pb2.Value();
1369
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1370
- msg.setInput(value);
1371
- break;
1372
1366
  default:
1373
1367
  reader.skipField();
1374
1368
  break;
@@ -1391,14 +1385,6 @@ var require_avs_pb = __commonJS({
1391
1385
  proto.aggregator.FixedTimeTrigger.Config.serializeBinaryToWriter
1392
1386
  );
1393
1387
  }
1394
- f = message.getInput();
1395
- if (f != null) {
1396
- writer.writeMessage(
1397
- 2,
1398
- f,
1399
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1400
- );
1401
- }
1402
1388
  };
1403
1389
  proto.aggregator.FixedTimeTrigger.Config.repeatedFields_ = [1];
1404
1390
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1479,8 +1465,7 @@ var require_avs_pb = __commonJS({
1479
1465
  };
1480
1466
  proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
1481
1467
  var f, obj = {
1482
- timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
1483
- timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
1468
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1484
1469
  };
1485
1470
  if (includeInstance) {
1486
1471
  obj.$jspbMessageInstance = msg;
@@ -1501,18 +1486,9 @@ var require_avs_pb = __commonJS({
1501
1486
  var field = reader.getFieldNumber();
1502
1487
  switch (field) {
1503
1488
  case 1:
1504
- var value = (
1505
- /** @type {number} */
1506
- reader.readUint64()
1507
- );
1508
- msg.setTimestamp(value);
1509
- break;
1510
- case 2:
1511
- var value = (
1512
- /** @type {string} */
1513
- reader.readString()
1514
- );
1515
- msg.setTimestampIso(value);
1489
+ var value = new google_protobuf_struct_pb2.Value();
1490
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1491
+ msg.setData(value);
1516
1492
  break;
1517
1493
  default:
1518
1494
  reader.skipField();
@@ -1528,38 +1504,29 @@ var require_avs_pb = __commonJS({
1528
1504
  };
1529
1505
  proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter = function(message, writer) {
1530
1506
  var f = void 0;
1531
- f = message.getTimestamp();
1532
- if (f !== 0) {
1533
- writer.writeUint64(
1507
+ f = message.getData();
1508
+ if (f != null) {
1509
+ writer.writeMessage(
1534
1510
  1,
1535
- f
1536
- );
1537
- }
1538
- f = message.getTimestampIso();
1539
- if (f.length > 0) {
1540
- writer.writeString(
1541
- 2,
1542
- f
1511
+ f,
1512
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1543
1513
  );
1544
1514
  }
1545
1515
  };
1546
- proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestamp = function() {
1516
+ proto.aggregator.FixedTimeTrigger.Output.prototype.getData = function() {
1547
1517
  return (
1548
- /** @type {number} */
1549
- jspb.Message.getFieldWithDefault(this, 1, 0)
1518
+ /** @type{?proto.google.protobuf.Value} */
1519
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
1550
1520
  );
1551
1521
  };
1552
- proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestamp = function(value) {
1553
- return jspb.Message.setProto3IntField(this, 1, value);
1522
+ proto.aggregator.FixedTimeTrigger.Output.prototype.setData = function(value) {
1523
+ return jspb.Message.setWrapperField(this, 1, value);
1554
1524
  };
1555
- proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestampIso = function() {
1556
- return (
1557
- /** @type {string} */
1558
- jspb.Message.getFieldWithDefault(this, 2, "")
1559
- );
1525
+ proto.aggregator.FixedTimeTrigger.Output.prototype.clearData = function() {
1526
+ return this.setData(void 0);
1560
1527
  };
1561
- proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestampIso = function(value) {
1562
- return jspb.Message.setProto3StringField(this, 2, value);
1528
+ proto.aggregator.FixedTimeTrigger.Output.prototype.hasData = function() {
1529
+ return jspb.Message.getField(this, 1) != null;
1563
1530
  };
1564
1531
  proto.aggregator.FixedTimeTrigger.prototype.getConfig = function() {
1565
1532
  return (
@@ -1576,29 +1543,13 @@ var require_avs_pb = __commonJS({
1576
1543
  proto.aggregator.FixedTimeTrigger.prototype.hasConfig = function() {
1577
1544
  return jspb.Message.getField(this, 1) != null;
1578
1545
  };
1579
- proto.aggregator.FixedTimeTrigger.prototype.getInput = function() {
1580
- return (
1581
- /** @type{?proto.google.protobuf.Value} */
1582
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
1583
- );
1584
- };
1585
- proto.aggregator.FixedTimeTrigger.prototype.setInput = function(value) {
1586
- return jspb.Message.setWrapperField(this, 2, value);
1587
- };
1588
- proto.aggregator.FixedTimeTrigger.prototype.clearInput = function() {
1589
- return this.setInput(void 0);
1590
- };
1591
- proto.aggregator.FixedTimeTrigger.prototype.hasInput = function() {
1592
- return jspb.Message.getField(this, 2) != null;
1593
- };
1594
1546
  if (jspb.Message.GENERATE_TO_OBJECT) {
1595
1547
  proto.aggregator.CronTrigger.prototype.toObject = function(opt_includeInstance) {
1596
1548
  return proto.aggregator.CronTrigger.toObject(opt_includeInstance, this);
1597
1549
  };
1598
1550
  proto.aggregator.CronTrigger.toObject = function(includeInstance, msg) {
1599
1551
  var f, obj = {
1600
- config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f),
1601
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1552
+ config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f)
1602
1553
  };
1603
1554
  if (includeInstance) {
1604
1555
  obj.$jspbMessageInstance = msg;
@@ -1623,11 +1574,6 @@ var require_avs_pb = __commonJS({
1623
1574
  reader.readMessage(value, proto.aggregator.CronTrigger.Config.deserializeBinaryFromReader);
1624
1575
  msg.setConfig(value);
1625
1576
  break;
1626
- case 2:
1627
- var value = new google_protobuf_struct_pb2.Value();
1628
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1629
- msg.setInput(value);
1630
- break;
1631
1577
  default:
1632
1578
  reader.skipField();
1633
1579
  break;
@@ -1650,14 +1596,6 @@ var require_avs_pb = __commonJS({
1650
1596
  proto.aggregator.CronTrigger.Config.serializeBinaryToWriter
1651
1597
  );
1652
1598
  }
1653
- f = message.getInput();
1654
- if (f != null) {
1655
- writer.writeMessage(
1656
- 2,
1657
- f,
1658
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1659
- );
1660
- }
1661
1599
  };
1662
1600
  proto.aggregator.CronTrigger.Config.repeatedFields_ = [1];
1663
1601
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1736,8 +1674,7 @@ var require_avs_pb = __commonJS({
1736
1674
  };
1737
1675
  proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
1738
1676
  var f, obj = {
1739
- timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
1740
- timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
1677
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1741
1678
  };
1742
1679
  if (includeInstance) {
1743
1680
  obj.$jspbMessageInstance = msg;
@@ -1758,18 +1695,9 @@ var require_avs_pb = __commonJS({
1758
1695
  var field = reader.getFieldNumber();
1759
1696
  switch (field) {
1760
1697
  case 1:
1761
- var value = (
1762
- /** @type {number} */
1763
- reader.readUint64()
1764
- );
1765
- msg.setTimestamp(value);
1766
- break;
1767
- case 2:
1768
- var value = (
1769
- /** @type {string} */
1770
- reader.readString()
1771
- );
1772
- msg.setTimestampIso(value);
1698
+ var value = new google_protobuf_struct_pb2.Value();
1699
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1700
+ msg.setData(value);
1773
1701
  break;
1774
1702
  default:
1775
1703
  reader.skipField();
@@ -1785,38 +1713,29 @@ var require_avs_pb = __commonJS({
1785
1713
  };
1786
1714
  proto.aggregator.CronTrigger.Output.serializeBinaryToWriter = function(message, writer) {
1787
1715
  var f = void 0;
1788
- f = message.getTimestamp();
1789
- if (f !== 0) {
1790
- writer.writeUint64(
1716
+ f = message.getData();
1717
+ if (f != null) {
1718
+ writer.writeMessage(
1791
1719
  1,
1792
- f
1793
- );
1794
- }
1795
- f = message.getTimestampIso();
1796
- if (f.length > 0) {
1797
- writer.writeString(
1798
- 2,
1799
- f
1720
+ f,
1721
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1800
1722
  );
1801
1723
  }
1802
1724
  };
1803
- proto.aggregator.CronTrigger.Output.prototype.getTimestamp = function() {
1725
+ proto.aggregator.CronTrigger.Output.prototype.getData = function() {
1804
1726
  return (
1805
- /** @type {number} */
1806
- jspb.Message.getFieldWithDefault(this, 1, 0)
1727
+ /** @type{?proto.google.protobuf.Value} */
1728
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
1807
1729
  );
1808
1730
  };
1809
- proto.aggregator.CronTrigger.Output.prototype.setTimestamp = function(value) {
1810
- return jspb.Message.setProto3IntField(this, 1, value);
1731
+ proto.aggregator.CronTrigger.Output.prototype.setData = function(value) {
1732
+ return jspb.Message.setWrapperField(this, 1, value);
1811
1733
  };
1812
- proto.aggregator.CronTrigger.Output.prototype.getTimestampIso = function() {
1813
- return (
1814
- /** @type {string} */
1815
- jspb.Message.getFieldWithDefault(this, 2, "")
1816
- );
1734
+ proto.aggregator.CronTrigger.Output.prototype.clearData = function() {
1735
+ return this.setData(void 0);
1817
1736
  };
1818
- proto.aggregator.CronTrigger.Output.prototype.setTimestampIso = function(value) {
1819
- return jspb.Message.setProto3StringField(this, 2, value);
1737
+ proto.aggregator.CronTrigger.Output.prototype.hasData = function() {
1738
+ return jspb.Message.getField(this, 1) != null;
1820
1739
  };
1821
1740
  proto.aggregator.CronTrigger.prototype.getConfig = function() {
1822
1741
  return (
@@ -1833,29 +1752,13 @@ var require_avs_pb = __commonJS({
1833
1752
  proto.aggregator.CronTrigger.prototype.hasConfig = function() {
1834
1753
  return jspb.Message.getField(this, 1) != null;
1835
1754
  };
1836
- proto.aggregator.CronTrigger.prototype.getInput = function() {
1837
- return (
1838
- /** @type{?proto.google.protobuf.Value} */
1839
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
1840
- );
1841
- };
1842
- proto.aggregator.CronTrigger.prototype.setInput = function(value) {
1843
- return jspb.Message.setWrapperField(this, 2, value);
1844
- };
1845
- proto.aggregator.CronTrigger.prototype.clearInput = function() {
1846
- return this.setInput(void 0);
1847
- };
1848
- proto.aggregator.CronTrigger.prototype.hasInput = function() {
1849
- return jspb.Message.getField(this, 2) != null;
1850
- };
1851
1755
  if (jspb.Message.GENERATE_TO_OBJECT) {
1852
1756
  proto.aggregator.BlockTrigger.prototype.toObject = function(opt_includeInstance) {
1853
1757
  return proto.aggregator.BlockTrigger.toObject(opt_includeInstance, this);
1854
1758
  };
1855
1759
  proto.aggregator.BlockTrigger.toObject = function(includeInstance, msg) {
1856
1760
  var f, obj = {
1857
- config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f),
1858
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1761
+ config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f)
1859
1762
  };
1860
1763
  if (includeInstance) {
1861
1764
  obj.$jspbMessageInstance = msg;
@@ -1880,11 +1783,6 @@ var require_avs_pb = __commonJS({
1880
1783
  reader.readMessage(value, proto.aggregator.BlockTrigger.Config.deserializeBinaryFromReader);
1881
1784
  msg.setConfig(value);
1882
1785
  break;
1883
- case 2:
1884
- var value = new google_protobuf_struct_pb2.Value();
1885
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1886
- msg.setInput(value);
1887
- break;
1888
1786
  default:
1889
1787
  reader.skipField();
1890
1788
  break;
@@ -1907,14 +1805,6 @@ var require_avs_pb = __commonJS({
1907
1805
  proto.aggregator.BlockTrigger.Config.serializeBinaryToWriter
1908
1806
  );
1909
1807
  }
1910
- f = message.getInput();
1911
- if (f != null) {
1912
- writer.writeMessage(
1913
- 2,
1914
- f,
1915
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1916
- );
1917
- }
1918
1808
  };
1919
1809
  if (jspb.Message.GENERATE_TO_OBJECT) {
1920
1810
  proto.aggregator.BlockTrigger.Config.prototype.toObject = function(opt_includeInstance) {
@@ -1986,13 +1876,7 @@ var require_avs_pb = __commonJS({
1986
1876
  };
1987
1877
  proto.aggregator.BlockTrigger.Output.toObject = function(includeInstance, msg) {
1988
1878
  var f, obj = {
1989
- blockNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
1990
- blockHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
1991
- timestamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
1992
- parentHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
1993
- difficulty: jspb.Message.getFieldWithDefault(msg, 5, ""),
1994
- gasLimit: jspb.Message.getFieldWithDefault(msg, 6, 0),
1995
- gasUsed: jspb.Message.getFieldWithDefault(msg, 7, 0)
1879
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1996
1880
  };
1997
1881
  if (includeInstance) {
1998
1882
  obj.$jspbMessageInstance = msg;
@@ -2013,53 +1897,9 @@ var require_avs_pb = __commonJS({
2013
1897
  var field = reader.getFieldNumber();
2014
1898
  switch (field) {
2015
1899
  case 1:
2016
- var value = (
2017
- /** @type {number} */
2018
- reader.readUint64()
2019
- );
2020
- msg.setBlockNumber(value);
2021
- break;
2022
- case 2:
2023
- var value = (
2024
- /** @type {string} */
2025
- reader.readString()
2026
- );
2027
- msg.setBlockHash(value);
2028
- break;
2029
- case 3:
2030
- var value = (
2031
- /** @type {number} */
2032
- reader.readUint64()
2033
- );
2034
- msg.setTimestamp(value);
2035
- break;
2036
- case 4:
2037
- var value = (
2038
- /** @type {string} */
2039
- reader.readString()
2040
- );
2041
- msg.setParentHash(value);
2042
- break;
2043
- case 5:
2044
- var value = (
2045
- /** @type {string} */
2046
- reader.readString()
2047
- );
2048
- msg.setDifficulty(value);
2049
- break;
2050
- case 6:
2051
- var value = (
2052
- /** @type {number} */
2053
- reader.readUint64()
2054
- );
2055
- msg.setGasLimit(value);
2056
- break;
2057
- case 7:
2058
- var value = (
2059
- /** @type {number} */
2060
- reader.readUint64()
2061
- );
2062
- msg.setGasUsed(value);
1900
+ var value = new google_protobuf_struct_pb2.Value();
1901
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1902
+ msg.setData(value);
2063
1903
  break;
2064
1904
  default:
2065
1905
  reader.skipField();
@@ -2075,118 +1915,29 @@ var require_avs_pb = __commonJS({
2075
1915
  };
2076
1916
  proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter = function(message, writer) {
2077
1917
  var f = void 0;
2078
- f = message.getBlockNumber();
2079
- if (f !== 0) {
2080
- writer.writeUint64(
1918
+ f = message.getData();
1919
+ if (f != null) {
1920
+ writer.writeMessage(
2081
1921
  1,
2082
- f
2083
- );
2084
- }
2085
- f = message.getBlockHash();
2086
- if (f.length > 0) {
2087
- writer.writeString(
2088
- 2,
2089
- f
2090
- );
2091
- }
2092
- f = message.getTimestamp();
2093
- if (f !== 0) {
2094
- writer.writeUint64(
2095
- 3,
2096
- f
2097
- );
2098
- }
2099
- f = message.getParentHash();
2100
- if (f.length > 0) {
2101
- writer.writeString(
2102
- 4,
2103
- f
2104
- );
2105
- }
2106
- f = message.getDifficulty();
2107
- if (f.length > 0) {
2108
- writer.writeString(
2109
- 5,
2110
- f
2111
- );
2112
- }
2113
- f = message.getGasLimit();
2114
- if (f !== 0) {
2115
- writer.writeUint64(
2116
- 6,
2117
- f
2118
- );
2119
- }
2120
- f = message.getGasUsed();
2121
- if (f !== 0) {
2122
- writer.writeUint64(
2123
- 7,
2124
- f
1922
+ f,
1923
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
2125
1924
  );
2126
1925
  }
2127
1926
  };
2128
- proto.aggregator.BlockTrigger.Output.prototype.getBlockNumber = function() {
2129
- return (
2130
- /** @type {number} */
2131
- jspb.Message.getFieldWithDefault(this, 1, 0)
2132
- );
2133
- };
2134
- proto.aggregator.BlockTrigger.Output.prototype.setBlockNumber = function(value) {
2135
- return jspb.Message.setProto3IntField(this, 1, value);
2136
- };
2137
- proto.aggregator.BlockTrigger.Output.prototype.getBlockHash = function() {
2138
- return (
2139
- /** @type {string} */
2140
- jspb.Message.getFieldWithDefault(this, 2, "")
2141
- );
2142
- };
2143
- proto.aggregator.BlockTrigger.Output.prototype.setBlockHash = function(value) {
2144
- return jspb.Message.setProto3StringField(this, 2, value);
2145
- };
2146
- proto.aggregator.BlockTrigger.Output.prototype.getTimestamp = function() {
1927
+ proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
2147
1928
  return (
2148
- /** @type {number} */
2149
- jspb.Message.getFieldWithDefault(this, 3, 0)
2150
- );
2151
- };
2152
- proto.aggregator.BlockTrigger.Output.prototype.setTimestamp = function(value) {
2153
- return jspb.Message.setProto3IntField(this, 3, value);
2154
- };
2155
- proto.aggregator.BlockTrigger.Output.prototype.getParentHash = function() {
2156
- return (
2157
- /** @type {string} */
2158
- jspb.Message.getFieldWithDefault(this, 4, "")
2159
- );
2160
- };
2161
- proto.aggregator.BlockTrigger.Output.prototype.setParentHash = function(value) {
2162
- return jspb.Message.setProto3StringField(this, 4, value);
2163
- };
2164
- proto.aggregator.BlockTrigger.Output.prototype.getDifficulty = function() {
2165
- return (
2166
- /** @type {string} */
2167
- jspb.Message.getFieldWithDefault(this, 5, "")
2168
- );
2169
- };
2170
- proto.aggregator.BlockTrigger.Output.prototype.setDifficulty = function(value) {
2171
- return jspb.Message.setProto3StringField(this, 5, value);
2172
- };
2173
- proto.aggregator.BlockTrigger.Output.prototype.getGasLimit = function() {
2174
- return (
2175
- /** @type {number} */
2176
- jspb.Message.getFieldWithDefault(this, 6, 0)
1929
+ /** @type{?proto.google.protobuf.Value} */
1930
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
2177
1931
  );
2178
1932
  };
2179
- proto.aggregator.BlockTrigger.Output.prototype.setGasLimit = function(value) {
2180
- return jspb.Message.setProto3IntField(this, 6, value);
1933
+ proto.aggregator.BlockTrigger.Output.prototype.setData = function(value) {
1934
+ return jspb.Message.setWrapperField(this, 1, value);
2181
1935
  };
2182
- proto.aggregator.BlockTrigger.Output.prototype.getGasUsed = function() {
2183
- return (
2184
- /** @type {number} */
2185
- jspb.Message.getFieldWithDefault(this, 7, 0)
2186
- );
1936
+ proto.aggregator.BlockTrigger.Output.prototype.clearData = function() {
1937
+ return this.setData(void 0);
2187
1938
  };
2188
- proto.aggregator.BlockTrigger.Output.prototype.setGasUsed = function(value) {
2189
- return jspb.Message.setProto3IntField(this, 7, value);
1939
+ proto.aggregator.BlockTrigger.Output.prototype.hasData = function() {
1940
+ return jspb.Message.getField(this, 1) != null;
2190
1941
  };
2191
1942
  proto.aggregator.BlockTrigger.prototype.getConfig = function() {
2192
1943
  return (
@@ -2203,29 +1954,13 @@ var require_avs_pb = __commonJS({
2203
1954
  proto.aggregator.BlockTrigger.prototype.hasConfig = function() {
2204
1955
  return jspb.Message.getField(this, 1) != null;
2205
1956
  };
2206
- proto.aggregator.BlockTrigger.prototype.getInput = function() {
2207
- return (
2208
- /** @type{?proto.google.protobuf.Value} */
2209
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
2210
- );
2211
- };
2212
- proto.aggregator.BlockTrigger.prototype.setInput = function(value) {
2213
- return jspb.Message.setWrapperField(this, 2, value);
2214
- };
2215
- proto.aggregator.BlockTrigger.prototype.clearInput = function() {
2216
- return this.setInput(void 0);
2217
- };
2218
- proto.aggregator.BlockTrigger.prototype.hasInput = function() {
2219
- return jspb.Message.getField(this, 2) != null;
2220
- };
2221
1957
  if (jspb.Message.GENERATE_TO_OBJECT) {
2222
1958
  proto.aggregator.EventTrigger.prototype.toObject = function(opt_includeInstance) {
2223
1959
  return proto.aggregator.EventTrigger.toObject(opt_includeInstance, this);
2224
1960
  };
2225
1961
  proto.aggregator.EventTrigger.toObject = function(includeInstance, msg) {
2226
1962
  var f, obj = {
2227
- config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f),
2228
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1963
+ config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f)
2229
1964
  };
2230
1965
  if (includeInstance) {
2231
1966
  obj.$jspbMessageInstance = msg;
@@ -2250,11 +1985,6 @@ var require_avs_pb = __commonJS({
2250
1985
  reader.readMessage(value, proto.aggregator.EventTrigger.Config.deserializeBinaryFromReader);
2251
1986
  msg.setConfig(value);
2252
1987
  break;
2253
- case 2:
2254
- var value = new google_protobuf_struct_pb2.Value();
2255
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
2256
- msg.setInput(value);
2257
- break;
2258
1988
  default:
2259
1989
  reader.skipField();
2260
1990
  break;
@@ -2277,14 +2007,6 @@ var require_avs_pb = __commonJS({
2277
2007
  proto.aggregator.EventTrigger.Config.serializeBinaryToWriter
2278
2008
  );
2279
2009
  }
2280
- f = message.getInput();
2281
- if (f != null) {
2282
- writer.writeMessage(
2283
- 2,
2284
- f,
2285
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
2286
- );
2287
- }
2288
2010
  };
2289
2011
  proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2, 5, 6];
2290
2012
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2859,29 +2581,13 @@ var require_avs_pb = __commonJS({
2859
2581
  proto.aggregator.EventTrigger.prototype.hasConfig = function() {
2860
2582
  return jspb.Message.getField(this, 1) != null;
2861
2583
  };
2862
- proto.aggregator.EventTrigger.prototype.getInput = function() {
2863
- return (
2864
- /** @type{?proto.google.protobuf.Value} */
2865
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
2866
- );
2867
- };
2868
- proto.aggregator.EventTrigger.prototype.setInput = function(value) {
2869
- return jspb.Message.setWrapperField(this, 2, value);
2870
- };
2871
- proto.aggregator.EventTrigger.prototype.clearInput = function() {
2872
- return this.setInput(void 0);
2873
- };
2874
- proto.aggregator.EventTrigger.prototype.hasInput = function() {
2875
- return jspb.Message.getField(this, 2) != null;
2876
- };
2877
2584
  if (jspb.Message.GENERATE_TO_OBJECT) {
2878
2585
  proto.aggregator.ManualTrigger.prototype.toObject = function(opt_includeInstance) {
2879
2586
  return proto.aggregator.ManualTrigger.toObject(opt_includeInstance, this);
2880
2587
  };
2881
2588
  proto.aggregator.ManualTrigger.toObject = function(includeInstance, msg) {
2882
2589
  var f, obj = {
2883
- config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f),
2884
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
2590
+ config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
2885
2591
  };
2886
2592
  if (includeInstance) {
2887
2593
  obj.$jspbMessageInstance = msg;
@@ -2906,11 +2612,6 @@ var require_avs_pb = __commonJS({
2906
2612
  reader.readMessage(value, proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader);
2907
2613
  msg.setConfig(value);
2908
2614
  break;
2909
- case 2:
2910
- var value = new google_protobuf_struct_pb2.Value();
2911
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
2912
- msg.setInput(value);
2913
- break;
2914
2615
  default:
2915
2616
  reader.skipField();
2916
2617
  break;
@@ -2933,14 +2634,6 @@ var require_avs_pb = __commonJS({
2933
2634
  proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter
2934
2635
  );
2935
2636
  }
2936
- f = message.getInput();
2937
- if (f != null) {
2938
- writer.writeMessage(
2939
- 2,
2940
- f,
2941
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
2942
- );
2943
- }
2944
2637
  };
2945
2638
  if (jspb.Message.GENERATE_TO_OBJECT) {
2946
2639
  proto.aggregator.ManualTrigger.Config.prototype.toObject = function(opt_includeInstance) {
@@ -3069,9 +2762,7 @@ var require_avs_pb = __commonJS({
3069
2762
  };
3070
2763
  proto.aggregator.ManualTrigger.Output.toObject = function(includeInstance, msg) {
3071
2764
  var f, obj = {
3072
- data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
3073
- headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
3074
- pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : []
2765
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3075
2766
  };
3076
2767
  if (includeInstance) {
3077
2768
  obj.$jspbMessageInstance = msg;
@@ -3096,18 +2787,6 @@ var require_avs_pb = __commonJS({
3096
2787
  reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3097
2788
  msg.setData(value);
3098
2789
  break;
3099
- case 2:
3100
- var value = msg.getHeadersMap();
3101
- reader.readMessage(value, function(message, reader2) {
3102
- jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3103
- });
3104
- break;
3105
- case 3:
3106
- var value = msg.getPathparamsMap();
3107
- reader.readMessage(value, function(message, reader2) {
3108
- jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3109
- });
3110
- break;
3111
2790
  default:
3112
2791
  reader.skipField();
3113
2792
  break;
@@ -3130,14 +2809,6 @@ var require_avs_pb = __commonJS({
3130
2809
  google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3131
2810
  );
3132
2811
  }
3133
- f = message.getHeadersMap(true);
3134
- if (f && f.getLength() > 0) {
3135
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3136
- }
3137
- f = message.getPathparamsMap(true);
3138
- if (f && f.getLength() > 0) {
3139
- f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3140
- }
3141
2812
  };
3142
2813
  proto.aggregator.ManualTrigger.Output.prototype.getData = function() {
3143
2814
  return (
@@ -3154,36 +2825,6 @@ var require_avs_pb = __commonJS({
3154
2825
  proto.aggregator.ManualTrigger.Output.prototype.hasData = function() {
3155
2826
  return jspb.Message.getField(this, 1) != null;
3156
2827
  };
3157
- proto.aggregator.ManualTrigger.Output.prototype.getHeadersMap = function(opt_noLazyCreate) {
3158
- return (
3159
- /** @type {!jspb.Map<string,string>} */
3160
- jspb.Message.getMapField(
3161
- this,
3162
- 2,
3163
- opt_noLazyCreate,
3164
- null
3165
- )
3166
- );
3167
- };
3168
- proto.aggregator.ManualTrigger.Output.prototype.clearHeadersMap = function() {
3169
- this.getHeadersMap().clear();
3170
- return this;
3171
- };
3172
- proto.aggregator.ManualTrigger.Output.prototype.getPathparamsMap = function(opt_noLazyCreate) {
3173
- return (
3174
- /** @type {!jspb.Map<string,string>} */
3175
- jspb.Message.getMapField(
3176
- this,
3177
- 3,
3178
- opt_noLazyCreate,
3179
- null
3180
- )
3181
- );
3182
- };
3183
- proto.aggregator.ManualTrigger.Output.prototype.clearPathparamsMap = function() {
3184
- this.getPathparamsMap().clear();
3185
- return this;
3186
- };
3187
2828
  proto.aggregator.ManualTrigger.prototype.getConfig = function() {
3188
2829
  return (
3189
2830
  /** @type{?proto.aggregator.ManualTrigger.Config} */
@@ -3199,21 +2840,6 @@ var require_avs_pb = __commonJS({
3199
2840
  proto.aggregator.ManualTrigger.prototype.hasConfig = function() {
3200
2841
  return jspb.Message.getField(this, 1) != null;
3201
2842
  };
3202
- proto.aggregator.ManualTrigger.prototype.getInput = function() {
3203
- return (
3204
- /** @type{?proto.google.protobuf.Value} */
3205
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
3206
- );
3207
- };
3208
- proto.aggregator.ManualTrigger.prototype.setInput = function(value) {
3209
- return jspb.Message.setWrapperField(this, 2, value);
3210
- };
3211
- proto.aggregator.ManualTrigger.prototype.clearInput = function() {
3212
- return this.setInput(void 0);
3213
- };
3214
- proto.aggregator.ManualTrigger.prototype.hasInput = function() {
3215
- return jspb.Message.getField(this, 2) != null;
3216
- };
3217
2843
  proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
3218
2844
  proto.aggregator.TaskTrigger.TriggerTypeCase = {
3219
2845
  TRIGGER_TYPE_NOT_SET: 0,
@@ -3242,8 +2868,7 @@ var require_avs_pb = __commonJS({
3242
2868
  cron: (f = msg.getCron()) && proto.aggregator.CronTrigger.toObject(includeInstance, f),
3243
2869
  block: (f = msg.getBlock()) && proto.aggregator.BlockTrigger.toObject(includeInstance, f),
3244
2870
  event: (f = msg.getEvent()) && proto.aggregator.EventTrigger.toObject(includeInstance, f),
3245
- id: jspb.Message.getFieldWithDefault(msg, 7, ""),
3246
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
2871
+ id: jspb.Message.getFieldWithDefault(msg, 7, "")
3247
2872
  };
3248
2873
  if (includeInstance) {
3249
2874
  obj.$jspbMessageInstance = msg;
@@ -3309,11 +2934,6 @@ var require_avs_pb = __commonJS({
3309
2934
  );
3310
2935
  msg.setId(value);
3311
2936
  break;
3312
- case 9:
3313
- var value = new google_protobuf_struct_pb2.Value();
3314
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3315
- msg.setInput(value);
3316
- break;
3317
2937
  default:
3318
2938
  reader.skipField();
3319
2939
  break;
@@ -3389,14 +3009,6 @@ var require_avs_pb = __commonJS({
3389
3009
  f
3390
3010
  );
3391
3011
  }
3392
- f = message.getInput();
3393
- if (f != null) {
3394
- writer.writeMessage(
3395
- 9,
3396
- f,
3397
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3398
- );
3399
- }
3400
3012
  };
3401
3013
  proto.aggregator.TaskTrigger.prototype.getName = function() {
3402
3014
  return (
@@ -3500,29 +3112,13 @@ var require_avs_pb = __commonJS({
3500
3112
  proto.aggregator.TaskTrigger.prototype.setId = function(value) {
3501
3113
  return jspb.Message.setProto3StringField(this, 7, value);
3502
3114
  };
3503
- proto.aggregator.TaskTrigger.prototype.getInput = function() {
3504
- return (
3505
- /** @type{?proto.google.protobuf.Value} */
3506
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 9)
3507
- );
3508
- };
3509
- proto.aggregator.TaskTrigger.prototype.setInput = function(value) {
3510
- return jspb.Message.setWrapperField(this, 9, value);
3511
- };
3512
- proto.aggregator.TaskTrigger.prototype.clearInput = function() {
3513
- return this.setInput(void 0);
3514
- };
3515
- proto.aggregator.TaskTrigger.prototype.hasInput = function() {
3516
- return jspb.Message.getField(this, 9) != null;
3517
- };
3518
3115
  if (jspb.Message.GENERATE_TO_OBJECT) {
3519
3116
  proto.aggregator.ETHTransferNode.prototype.toObject = function(opt_includeInstance) {
3520
3117
  return proto.aggregator.ETHTransferNode.toObject(opt_includeInstance, this);
3521
3118
  };
3522
3119
  proto.aggregator.ETHTransferNode.toObject = function(includeInstance, msg) {
3523
3120
  var f, obj = {
3524
- config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f),
3525
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3121
+ config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f)
3526
3122
  };
3527
3123
  if (includeInstance) {
3528
3124
  obj.$jspbMessageInstance = msg;
@@ -3547,11 +3143,6 @@ var require_avs_pb = __commonJS({
3547
3143
  reader.readMessage(value, proto.aggregator.ETHTransferNode.Config.deserializeBinaryFromReader);
3548
3144
  msg.setConfig(value);
3549
3145
  break;
3550
- case 2:
3551
- var value = new google_protobuf_struct_pb2.Value();
3552
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3553
- msg.setInput(value);
3554
- break;
3555
3146
  default:
3556
3147
  reader.skipField();
3557
3148
  break;
@@ -3574,14 +3165,6 @@ var require_avs_pb = __commonJS({
3574
3165
  proto.aggregator.ETHTransferNode.Config.serializeBinaryToWriter
3575
3166
  );
3576
3167
  }
3577
- f = message.getInput();
3578
- if (f != null) {
3579
- writer.writeMessage(
3580
- 2,
3581
- f,
3582
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3583
- );
3584
- }
3585
3168
  };
3586
3169
  if (jspb.Message.GENERATE_TO_OBJECT) {
3587
3170
  proto.aggregator.ETHTransferNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -3677,7 +3260,7 @@ var require_avs_pb = __commonJS({
3677
3260
  };
3678
3261
  proto.aggregator.ETHTransferNode.Output.toObject = function(includeInstance, msg) {
3679
3262
  var f, obj = {
3680
- transactionHash: jspb.Message.getFieldWithDefault(msg, 1, "")
3263
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3681
3264
  };
3682
3265
  if (includeInstance) {
3683
3266
  obj.$jspbMessageInstance = msg;
@@ -3698,11 +3281,9 @@ var require_avs_pb = __commonJS({
3698
3281
  var field = reader.getFieldNumber();
3699
3282
  switch (field) {
3700
3283
  case 1:
3701
- var value = (
3702
- /** @type {string} */
3703
- reader.readString()
3704
- );
3705
- msg.setTransactionHash(value);
3284
+ var value = new google_protobuf_struct_pb2.Value();
3285
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3286
+ msg.setData(value);
3706
3287
  break;
3707
3288
  default:
3708
3289
  reader.skipField();
@@ -3718,22 +3299,29 @@ var require_avs_pb = __commonJS({
3718
3299
  };
3719
3300
  proto.aggregator.ETHTransferNode.Output.serializeBinaryToWriter = function(message, writer) {
3720
3301
  var f = void 0;
3721
- f = message.getTransactionHash();
3722
- if (f.length > 0) {
3723
- writer.writeString(
3302
+ f = message.getData();
3303
+ if (f != null) {
3304
+ writer.writeMessage(
3724
3305
  1,
3725
- f
3306
+ f,
3307
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3726
3308
  );
3727
3309
  }
3728
3310
  };
3729
- proto.aggregator.ETHTransferNode.Output.prototype.getTransactionHash = function() {
3311
+ proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
3730
3312
  return (
3731
- /** @type {string} */
3732
- jspb.Message.getFieldWithDefault(this, 1, "")
3313
+ /** @type{?proto.google.protobuf.Value} */
3314
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
3733
3315
  );
3734
3316
  };
3735
- proto.aggregator.ETHTransferNode.Output.prototype.setTransactionHash = function(value) {
3736
- return jspb.Message.setProto3StringField(this, 1, value);
3317
+ proto.aggregator.ETHTransferNode.Output.prototype.setData = function(value) {
3318
+ return jspb.Message.setWrapperField(this, 1, value);
3319
+ };
3320
+ proto.aggregator.ETHTransferNode.Output.prototype.clearData = function() {
3321
+ return this.setData(void 0);
3322
+ };
3323
+ proto.aggregator.ETHTransferNode.Output.prototype.hasData = function() {
3324
+ return jspb.Message.getField(this, 1) != null;
3737
3325
  };
3738
3326
  proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
3739
3327
  return (
@@ -3750,29 +3338,13 @@ var require_avs_pb = __commonJS({
3750
3338
  proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
3751
3339
  return jspb.Message.getField(this, 1) != null;
3752
3340
  };
3753
- proto.aggregator.ETHTransferNode.prototype.getInput = function() {
3754
- return (
3755
- /** @type{?proto.google.protobuf.Value} */
3756
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
3757
- );
3758
- };
3759
- proto.aggregator.ETHTransferNode.prototype.setInput = function(value) {
3760
- return jspb.Message.setWrapperField(this, 2, value);
3761
- };
3762
- proto.aggregator.ETHTransferNode.prototype.clearInput = function() {
3763
- return this.setInput(void 0);
3764
- };
3765
- proto.aggregator.ETHTransferNode.prototype.hasInput = function() {
3766
- return jspb.Message.getField(this, 2) != null;
3767
- };
3768
3341
  if (jspb.Message.GENERATE_TO_OBJECT) {
3769
3342
  proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
3770
3343
  return proto.aggregator.ContractWriteNode.toObject(opt_includeInstance, this);
3771
3344
  };
3772
3345
  proto.aggregator.ContractWriteNode.toObject = function(includeInstance, msg) {
3773
3346
  var f, obj = {
3774
- config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f),
3775
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3347
+ config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
3776
3348
  };
3777
3349
  if (includeInstance) {
3778
3350
  obj.$jspbMessageInstance = msg;
@@ -3797,11 +3369,6 @@ var require_avs_pb = __commonJS({
3797
3369
  reader.readMessage(value, proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader);
3798
3370
  msg.setConfig(value);
3799
3371
  break;
3800
- case 2:
3801
- var value = new google_protobuf_struct_pb2.Value();
3802
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3803
- msg.setInput(value);
3804
- break;
3805
3372
  default:
3806
3373
  reader.skipField();
3807
3374
  break;
@@ -3824,14 +3391,6 @@ var require_avs_pb = __commonJS({
3824
3391
  proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter
3825
3392
  );
3826
3393
  }
3827
- f = message.getInput();
3828
- if (f != null) {
3829
- writer.writeMessage(
3830
- 2,
3831
- f,
3832
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3833
- );
3834
- }
3835
3394
  };
3836
3395
  proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
3837
3396
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -5249,29 +4808,13 @@ var require_avs_pb = __commonJS({
5249
4808
  proto.aggregator.ContractWriteNode.prototype.hasConfig = function() {
5250
4809
  return jspb.Message.getField(this, 1) != null;
5251
4810
  };
5252
- proto.aggregator.ContractWriteNode.prototype.getInput = function() {
5253
- return (
5254
- /** @type{?proto.google.protobuf.Value} */
5255
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
5256
- );
5257
- };
5258
- proto.aggregator.ContractWriteNode.prototype.setInput = function(value) {
5259
- return jspb.Message.setWrapperField(this, 2, value);
5260
- };
5261
- proto.aggregator.ContractWriteNode.prototype.clearInput = function() {
5262
- return this.setInput(void 0);
5263
- };
5264
- proto.aggregator.ContractWriteNode.prototype.hasInput = function() {
5265
- return jspb.Message.getField(this, 2) != null;
5266
- };
5267
4811
  if (jspb.Message.GENERATE_TO_OBJECT) {
5268
4812
  proto.aggregator.ContractReadNode.prototype.toObject = function(opt_includeInstance) {
5269
4813
  return proto.aggregator.ContractReadNode.toObject(opt_includeInstance, this);
5270
4814
  };
5271
4815
  proto.aggregator.ContractReadNode.toObject = function(includeInstance, msg) {
5272
4816
  var f, obj = {
5273
- config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f),
5274
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
4817
+ config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f)
5275
4818
  };
5276
4819
  if (includeInstance) {
5277
4820
  obj.$jspbMessageInstance = msg;
@@ -5296,11 +4839,6 @@ var require_avs_pb = __commonJS({
5296
4839
  reader.readMessage(value, proto.aggregator.ContractReadNode.Config.deserializeBinaryFromReader);
5297
4840
  msg.setConfig(value);
5298
4841
  break;
5299
- case 2:
5300
- var value = new google_protobuf_struct_pb2.Value();
5301
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
5302
- msg.setInput(value);
5303
- break;
5304
4842
  default:
5305
4843
  reader.skipField();
5306
4844
  break;
@@ -5323,14 +4861,6 @@ var require_avs_pb = __commonJS({
5323
4861
  proto.aggregator.ContractReadNode.Config.serializeBinaryToWriter
5324
4862
  );
5325
4863
  }
5326
- f = message.getInput();
5327
- if (f != null) {
5328
- writer.writeMessage(
5329
- 2,
5330
- f,
5331
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
5332
- );
5333
- }
5334
4864
  };
5335
4865
  proto.aggregator.ContractReadNode.MethodCall.repeatedFields_ = [3];
5336
4866
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -5915,29 +5445,13 @@ var require_avs_pb = __commonJS({
5915
5445
  proto.aggregator.ContractReadNode.prototype.hasConfig = function() {
5916
5446
  return jspb.Message.getField(this, 1) != null;
5917
5447
  };
5918
- proto.aggregator.ContractReadNode.prototype.getInput = function() {
5919
- return (
5920
- /** @type{?proto.google.protobuf.Value} */
5921
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
5922
- );
5923
- };
5924
- proto.aggregator.ContractReadNode.prototype.setInput = function(value) {
5925
- return jspb.Message.setWrapperField(this, 2, value);
5926
- };
5927
- proto.aggregator.ContractReadNode.prototype.clearInput = function() {
5928
- return this.setInput(void 0);
5929
- };
5930
- proto.aggregator.ContractReadNode.prototype.hasInput = function() {
5931
- return jspb.Message.getField(this, 2) != null;
5932
- };
5933
5448
  if (jspb.Message.GENERATE_TO_OBJECT) {
5934
5449
  proto.aggregator.GraphQLQueryNode.prototype.toObject = function(opt_includeInstance) {
5935
5450
  return proto.aggregator.GraphQLQueryNode.toObject(opt_includeInstance, this);
5936
5451
  };
5937
5452
  proto.aggregator.GraphQLQueryNode.toObject = function(includeInstance, msg) {
5938
5453
  var f, obj = {
5939
- config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f),
5940
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
5454
+ config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f)
5941
5455
  };
5942
5456
  if (includeInstance) {
5943
5457
  obj.$jspbMessageInstance = msg;
@@ -5962,11 +5476,6 @@ var require_avs_pb = __commonJS({
5962
5476
  reader.readMessage(value, proto.aggregator.GraphQLQueryNode.Config.deserializeBinaryFromReader);
5963
5477
  msg.setConfig(value);
5964
5478
  break;
5965
- case 2:
5966
- var value = new google_protobuf_struct_pb2.Value();
5967
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
5968
- msg.setInput(value);
5969
- break;
5970
5479
  default:
5971
5480
  reader.skipField();
5972
5481
  break;
@@ -5989,14 +5498,6 @@ var require_avs_pb = __commonJS({
5989
5498
  proto.aggregator.GraphQLQueryNode.Config.serializeBinaryToWriter
5990
5499
  );
5991
5500
  }
5992
- f = message.getInput();
5993
- if (f != null) {
5994
- writer.writeMessage(
5995
- 2,
5996
- f,
5997
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
5998
- );
5999
- }
6000
5501
  };
6001
5502
  if (jspb.Message.GENERATE_TO_OBJECT) {
6002
5503
  proto.aggregator.GraphQLQueryNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -6118,7 +5619,7 @@ var require_avs_pb = __commonJS({
6118
5619
  };
6119
5620
  proto.aggregator.GraphQLQueryNode.Output.toObject = function(includeInstance, msg) {
6120
5621
  var f, obj = {
6121
- data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
5622
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
6122
5623
  };
6123
5624
  if (includeInstance) {
6124
5625
  obj.$jspbMessageInstance = msg;
@@ -6139,8 +5640,8 @@ var require_avs_pb = __commonJS({
6139
5640
  var field = reader.getFieldNumber();
6140
5641
  switch (field) {
6141
5642
  case 1:
6142
- var value = new google_protobuf_any_pb.Any();
6143
- reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
5643
+ var value = new google_protobuf_struct_pb2.Value();
5644
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6144
5645
  msg.setData(value);
6145
5646
  break;
6146
5647
  default:
@@ -6162,14 +5663,14 @@ var require_avs_pb = __commonJS({
6162
5663
  writer.writeMessage(
6163
5664
  1,
6164
5665
  f,
6165
- google_protobuf_any_pb.Any.serializeBinaryToWriter
5666
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6166
5667
  );
6167
5668
  }
6168
5669
  };
6169
5670
  proto.aggregator.GraphQLQueryNode.Output.prototype.getData = function() {
6170
5671
  return (
6171
- /** @type{?proto.google.protobuf.Any} */
6172
- jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
5672
+ /** @type{?proto.google.protobuf.Value} */
5673
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
6173
5674
  );
6174
5675
  };
6175
5676
  proto.aggregator.GraphQLQueryNode.Output.prototype.setData = function(value) {
@@ -6196,29 +5697,13 @@ var require_avs_pb = __commonJS({
6196
5697
  proto.aggregator.GraphQLQueryNode.prototype.hasConfig = function() {
6197
5698
  return jspb.Message.getField(this, 1) != null;
6198
5699
  };
6199
- proto.aggregator.GraphQLQueryNode.prototype.getInput = function() {
6200
- return (
6201
- /** @type{?proto.google.protobuf.Value} */
6202
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
6203
- );
6204
- };
6205
- proto.aggregator.GraphQLQueryNode.prototype.setInput = function(value) {
6206
- return jspb.Message.setWrapperField(this, 2, value);
6207
- };
6208
- proto.aggregator.GraphQLQueryNode.prototype.clearInput = function() {
6209
- return this.setInput(void 0);
6210
- };
6211
- proto.aggregator.GraphQLQueryNode.prototype.hasInput = function() {
6212
- return jspb.Message.getField(this, 2) != null;
6213
- };
6214
5700
  if (jspb.Message.GENERATE_TO_OBJECT) {
6215
5701
  proto.aggregator.RestAPINode.prototype.toObject = function(opt_includeInstance) {
6216
5702
  return proto.aggregator.RestAPINode.toObject(opt_includeInstance, this);
6217
5703
  };
6218
5704
  proto.aggregator.RestAPINode.toObject = function(includeInstance, msg) {
6219
5705
  var f, obj = {
6220
- config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f),
6221
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
5706
+ config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f)
6222
5707
  };
6223
5708
  if (includeInstance) {
6224
5709
  obj.$jspbMessageInstance = msg;
@@ -6243,11 +5728,6 @@ var require_avs_pb = __commonJS({
6243
5728
  reader.readMessage(value, proto.aggregator.RestAPINode.Config.deserializeBinaryFromReader);
6244
5729
  msg.setConfig(value);
6245
5730
  break;
6246
- case 2:
6247
- var value = new google_protobuf_struct_pb2.Value();
6248
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6249
- msg.setInput(value);
6250
- break;
6251
5731
  default:
6252
5732
  reader.skipField();
6253
5733
  break;
@@ -6270,14 +5750,6 @@ var require_avs_pb = __commonJS({
6270
5750
  proto.aggregator.RestAPINode.Config.serializeBinaryToWriter
6271
5751
  );
6272
5752
  }
6273
- f = message.getInput();
6274
- if (f != null) {
6275
- writer.writeMessage(
6276
- 2,
6277
- f,
6278
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6279
- );
6280
- }
6281
5753
  };
6282
5754
  if (jspb.Message.GENERATE_TO_OBJECT) {
6283
5755
  proto.aggregator.RestAPINode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -6501,29 +5973,13 @@ var require_avs_pb = __commonJS({
6501
5973
  proto.aggregator.RestAPINode.prototype.hasConfig = function() {
6502
5974
  return jspb.Message.getField(this, 1) != null;
6503
5975
  };
6504
- proto.aggregator.RestAPINode.prototype.getInput = function() {
6505
- return (
6506
- /** @type{?proto.google.protobuf.Value} */
6507
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
6508
- );
6509
- };
6510
- proto.aggregator.RestAPINode.prototype.setInput = function(value) {
6511
- return jspb.Message.setWrapperField(this, 2, value);
6512
- };
6513
- proto.aggregator.RestAPINode.prototype.clearInput = function() {
6514
- return this.setInput(void 0);
6515
- };
6516
- proto.aggregator.RestAPINode.prototype.hasInput = function() {
6517
- return jspb.Message.getField(this, 2) != null;
6518
- };
6519
5976
  if (jspb.Message.GENERATE_TO_OBJECT) {
6520
5977
  proto.aggregator.CustomCodeNode.prototype.toObject = function(opt_includeInstance) {
6521
5978
  return proto.aggregator.CustomCodeNode.toObject(opt_includeInstance, this);
6522
5979
  };
6523
5980
  proto.aggregator.CustomCodeNode.toObject = function(includeInstance, msg) {
6524
5981
  var f, obj = {
6525
- config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f),
6526
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
5982
+ config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f)
6527
5983
  };
6528
5984
  if (includeInstance) {
6529
5985
  obj.$jspbMessageInstance = msg;
@@ -6548,11 +6004,6 @@ var require_avs_pb = __commonJS({
6548
6004
  reader.readMessage(value, proto.aggregator.CustomCodeNode.Config.deserializeBinaryFromReader);
6549
6005
  msg.setConfig(value);
6550
6006
  break;
6551
- case 2:
6552
- var value = new google_protobuf_struct_pb2.Value();
6553
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6554
- msg.setInput(value);
6555
- break;
6556
6007
  default:
6557
6008
  reader.skipField();
6558
6009
  break;
@@ -6575,14 +6026,6 @@ var require_avs_pb = __commonJS({
6575
6026
  proto.aggregator.CustomCodeNode.Config.serializeBinaryToWriter
6576
6027
  );
6577
6028
  }
6578
- f = message.getInput();
6579
- if (f != null) {
6580
- writer.writeMessage(
6581
- 2,
6582
- f,
6583
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6584
- );
6585
- }
6586
6029
  };
6587
6030
  if (jspb.Message.GENERATE_TO_OBJECT) {
6588
6031
  proto.aggregator.CustomCodeNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -6756,29 +6199,13 @@ var require_avs_pb = __commonJS({
6756
6199
  proto.aggregator.CustomCodeNode.prototype.hasConfig = function() {
6757
6200
  return jspb.Message.getField(this, 1) != null;
6758
6201
  };
6759
- proto.aggregator.CustomCodeNode.prototype.getInput = function() {
6760
- return (
6761
- /** @type{?proto.google.protobuf.Value} */
6762
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
6763
- );
6764
- };
6765
- proto.aggregator.CustomCodeNode.prototype.setInput = function(value) {
6766
- return jspb.Message.setWrapperField(this, 2, value);
6767
- };
6768
- proto.aggregator.CustomCodeNode.prototype.clearInput = function() {
6769
- return this.setInput(void 0);
6770
- };
6771
- proto.aggregator.CustomCodeNode.prototype.hasInput = function() {
6772
- return jspb.Message.getField(this, 2) != null;
6773
- };
6774
6202
  if (jspb.Message.GENERATE_TO_OBJECT) {
6775
6203
  proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
6776
6204
  return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
6777
6205
  };
6778
6206
  proto.aggregator.BranchNode.toObject = function(includeInstance, msg) {
6779
6207
  var f, obj = {
6780
- config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f),
6781
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
6208
+ config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f)
6782
6209
  };
6783
6210
  if (includeInstance) {
6784
6211
  obj.$jspbMessageInstance = msg;
@@ -6803,11 +6230,6 @@ var require_avs_pb = __commonJS({
6803
6230
  reader.readMessage(value, proto.aggregator.BranchNode.Config.deserializeBinaryFromReader);
6804
6231
  msg.setConfig(value);
6805
6232
  break;
6806
- case 2:
6807
- var value = new google_protobuf_struct_pb2.Value();
6808
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6809
- msg.setInput(value);
6810
- break;
6811
6233
  default:
6812
6234
  reader.skipField();
6813
6235
  break;
@@ -6830,14 +6252,6 @@ var require_avs_pb = __commonJS({
6830
6252
  proto.aggregator.BranchNode.Config.serializeBinaryToWriter
6831
6253
  );
6832
6254
  }
6833
- f = message.getInput();
6834
- if (f != null) {
6835
- writer.writeMessage(
6836
- 2,
6837
- f,
6838
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6839
- );
6840
- }
6841
6255
  };
6842
6256
  if (jspb.Message.GENERATE_TO_OBJECT) {
6843
6257
  proto.aggregator.BranchNode.Condition.prototype.toObject = function(opt_includeInstance) {
@@ -7031,7 +6445,7 @@ var require_avs_pb = __commonJS({
7031
6445
  };
7032
6446
  proto.aggregator.BranchNode.Output.toObject = function(includeInstance, msg) {
7033
6447
  var f, obj = {
7034
- conditionId: jspb.Message.getFieldWithDefault(msg, 1, "")
6448
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
7035
6449
  };
7036
6450
  if (includeInstance) {
7037
6451
  obj.$jspbMessageInstance = msg;
@@ -7052,11 +6466,9 @@ var require_avs_pb = __commonJS({
7052
6466
  var field = reader.getFieldNumber();
7053
6467
  switch (field) {
7054
6468
  case 1:
7055
- var value = (
7056
- /** @type {string} */
7057
- reader.readString()
7058
- );
7059
- msg.setConditionId(value);
6469
+ var value = new google_protobuf_struct_pb2.Value();
6470
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6471
+ msg.setData(value);
7060
6472
  break;
7061
6473
  default:
7062
6474
  reader.skipField();
@@ -7072,22 +6484,29 @@ var require_avs_pb = __commonJS({
7072
6484
  };
7073
6485
  proto.aggregator.BranchNode.Output.serializeBinaryToWriter = function(message, writer) {
7074
6486
  var f = void 0;
7075
- f = message.getConditionId();
7076
- if (f.length > 0) {
7077
- writer.writeString(
6487
+ f = message.getData();
6488
+ if (f != null) {
6489
+ writer.writeMessage(
7078
6490
  1,
7079
- f
6491
+ f,
6492
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7080
6493
  );
7081
6494
  }
7082
6495
  };
7083
- proto.aggregator.BranchNode.Output.prototype.getConditionId = function() {
6496
+ proto.aggregator.BranchNode.Output.prototype.getData = function() {
7084
6497
  return (
7085
- /** @type {string} */
7086
- jspb.Message.getFieldWithDefault(this, 1, "")
6498
+ /** @type{?proto.google.protobuf.Value} */
6499
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
7087
6500
  );
7088
6501
  };
7089
- proto.aggregator.BranchNode.Output.prototype.setConditionId = function(value) {
7090
- return jspb.Message.setProto3StringField(this, 1, value);
6502
+ proto.aggregator.BranchNode.Output.prototype.setData = function(value) {
6503
+ return jspb.Message.setWrapperField(this, 1, value);
6504
+ };
6505
+ proto.aggregator.BranchNode.Output.prototype.clearData = function() {
6506
+ return this.setData(void 0);
6507
+ };
6508
+ proto.aggregator.BranchNode.Output.prototype.hasData = function() {
6509
+ return jspb.Message.getField(this, 1) != null;
7091
6510
  };
7092
6511
  proto.aggregator.BranchNode.prototype.getConfig = function() {
7093
6512
  return (
@@ -7104,29 +6523,13 @@ var require_avs_pb = __commonJS({
7104
6523
  proto.aggregator.BranchNode.prototype.hasConfig = function() {
7105
6524
  return jspb.Message.getField(this, 1) != null;
7106
6525
  };
7107
- proto.aggregator.BranchNode.prototype.getInput = function() {
7108
- return (
7109
- /** @type{?proto.google.protobuf.Value} */
7110
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
7111
- );
7112
- };
7113
- proto.aggregator.BranchNode.prototype.setInput = function(value) {
7114
- return jspb.Message.setWrapperField(this, 2, value);
7115
- };
7116
- proto.aggregator.BranchNode.prototype.clearInput = function() {
7117
- return this.setInput(void 0);
7118
- };
7119
- proto.aggregator.BranchNode.prototype.hasInput = function() {
7120
- return jspb.Message.getField(this, 2) != null;
7121
- };
7122
6526
  if (jspb.Message.GENERATE_TO_OBJECT) {
7123
6527
  proto.aggregator.FilterNode.prototype.toObject = function(opt_includeInstance) {
7124
6528
  return proto.aggregator.FilterNode.toObject(opt_includeInstance, this);
7125
6529
  };
7126
6530
  proto.aggregator.FilterNode.toObject = function(includeInstance, msg) {
7127
6531
  var f, obj = {
7128
- config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f),
7129
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
6532
+ config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f)
7130
6533
  };
7131
6534
  if (includeInstance) {
7132
6535
  obj.$jspbMessageInstance = msg;
@@ -7151,11 +6554,6 @@ var require_avs_pb = __commonJS({
7151
6554
  reader.readMessage(value, proto.aggregator.FilterNode.Config.deserializeBinaryFromReader);
7152
6555
  msg.setConfig(value);
7153
6556
  break;
7154
- case 2:
7155
- var value = new google_protobuf_struct_pb2.Value();
7156
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7157
- msg.setInput(value);
7158
- break;
7159
6557
  default:
7160
6558
  reader.skipField();
7161
6559
  break;
@@ -7178,14 +6576,6 @@ var require_avs_pb = __commonJS({
7178
6576
  proto.aggregator.FilterNode.Config.serializeBinaryToWriter
7179
6577
  );
7180
6578
  }
7181
- f = message.getInput();
7182
- if (f != null) {
7183
- writer.writeMessage(
7184
- 2,
7185
- f,
7186
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7187
- );
7188
- }
7189
6579
  };
7190
6580
  if (jspb.Message.GENERATE_TO_OBJECT) {
7191
6581
  proto.aggregator.FilterNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -7194,7 +6584,7 @@ var require_avs_pb = __commonJS({
7194
6584
  proto.aggregator.FilterNode.Config.toObject = function(includeInstance, msg) {
7195
6585
  var f, obj = {
7196
6586
  expression: jspb.Message.getFieldWithDefault(msg, 1, ""),
7197
- sourceId: jspb.Message.getFieldWithDefault(msg, 2, "")
6587
+ inputNodeName: jspb.Message.getFieldWithDefault(msg, 2, "")
7198
6588
  };
7199
6589
  if (includeInstance) {
7200
6590
  obj.$jspbMessageInstance = msg;
@@ -7226,7 +6616,7 @@ var require_avs_pb = __commonJS({
7226
6616
  /** @type {string} */
7227
6617
  reader.readString()
7228
6618
  );
7229
- msg.setSourceId(value);
6619
+ msg.setInputNodeName(value);
7230
6620
  break;
7231
6621
  default:
7232
6622
  reader.skipField();
@@ -7249,7 +6639,7 @@ var require_avs_pb = __commonJS({
7249
6639
  f
7250
6640
  );
7251
6641
  }
7252
- f = message.getSourceId();
6642
+ f = message.getInputNodeName();
7253
6643
  if (f.length > 0) {
7254
6644
  writer.writeString(
7255
6645
  2,
@@ -7266,13 +6656,13 @@ var require_avs_pb = __commonJS({
7266
6656
  proto.aggregator.FilterNode.Config.prototype.setExpression = function(value) {
7267
6657
  return jspb.Message.setProto3StringField(this, 1, value);
7268
6658
  };
7269
- proto.aggregator.FilterNode.Config.prototype.getSourceId = function() {
6659
+ proto.aggregator.FilterNode.Config.prototype.getInputNodeName = function() {
7270
6660
  return (
7271
6661
  /** @type {string} */
7272
6662
  jspb.Message.getFieldWithDefault(this, 2, "")
7273
6663
  );
7274
6664
  };
7275
- proto.aggregator.FilterNode.Config.prototype.setSourceId = function(value) {
6665
+ proto.aggregator.FilterNode.Config.prototype.setInputNodeName = function(value) {
7276
6666
  return jspb.Message.setProto3StringField(this, 2, value);
7277
6667
  };
7278
6668
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -7281,7 +6671,7 @@ var require_avs_pb = __commonJS({
7281
6671
  };
7282
6672
  proto.aggregator.FilterNode.Output.toObject = function(includeInstance, msg) {
7283
6673
  var f, obj = {
7284
- data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
6674
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
7285
6675
  };
7286
6676
  if (includeInstance) {
7287
6677
  obj.$jspbMessageInstance = msg;
@@ -7302,8 +6692,8 @@ var require_avs_pb = __commonJS({
7302
6692
  var field = reader.getFieldNumber();
7303
6693
  switch (field) {
7304
6694
  case 1:
7305
- var value = new google_protobuf_any_pb.Any();
7306
- reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
6695
+ var value = new google_protobuf_struct_pb2.Value();
6696
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7307
6697
  msg.setData(value);
7308
6698
  break;
7309
6699
  default:
@@ -7325,14 +6715,14 @@ var require_avs_pb = __commonJS({
7325
6715
  writer.writeMessage(
7326
6716
  1,
7327
6717
  f,
7328
- google_protobuf_any_pb.Any.serializeBinaryToWriter
6718
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7329
6719
  );
7330
6720
  }
7331
6721
  };
7332
6722
  proto.aggregator.FilterNode.Output.prototype.getData = function() {
7333
6723
  return (
7334
- /** @type{?proto.google.protobuf.Any} */
7335
- jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
6724
+ /** @type{?proto.google.protobuf.Value} */
6725
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
7336
6726
  );
7337
6727
  };
7338
6728
  proto.aggregator.FilterNode.Output.prototype.setData = function(value) {
@@ -7359,21 +6749,6 @@ var require_avs_pb = __commonJS({
7359
6749
  proto.aggregator.FilterNode.prototype.hasConfig = function() {
7360
6750
  return jspb.Message.getField(this, 1) != null;
7361
6751
  };
7362
- proto.aggregator.FilterNode.prototype.getInput = function() {
7363
- return (
7364
- /** @type{?proto.google.protobuf.Value} */
7365
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
7366
- );
7367
- };
7368
- proto.aggregator.FilterNode.prototype.setInput = function(value) {
7369
- return jspb.Message.setWrapperField(this, 2, value);
7370
- };
7371
- proto.aggregator.FilterNode.prototype.clearInput = function() {
7372
- return this.setInput(void 0);
7373
- };
7374
- proto.aggregator.FilterNode.prototype.hasInput = function() {
7375
- return jspb.Message.getField(this, 2) != null;
7376
- };
7377
6752
  proto.aggregator.LoopNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15]];
7378
6753
  proto.aggregator.LoopNode.RunnerCase = {
7379
6754
  RUNNER_NOT_SET: 0,
@@ -7402,8 +6777,7 @@ var require_avs_pb = __commonJS({
7402
6777
  graphqlDataQuery: (f = msg.getGraphqlDataQuery()) && proto.aggregator.GraphQLQueryNode.toObject(includeInstance, f),
7403
6778
  restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.toObject(includeInstance, f),
7404
6779
  customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
7405
- config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f),
7406
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
6780
+ config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f)
7407
6781
  };
7408
6782
  if (includeInstance) {
7409
6783
  obj.$jspbMessageInstance = msg;
@@ -7458,11 +6832,6 @@ var require_avs_pb = __commonJS({
7458
6832
  reader.readMessage(value, proto.aggregator.LoopNode.Config.deserializeBinaryFromReader);
7459
6833
  msg.setConfig(value);
7460
6834
  break;
7461
- case 2:
7462
- var value = new google_protobuf_struct_pb2.Value();
7463
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7464
- msg.setInput(value);
7465
- break;
7466
6835
  default:
7467
6836
  reader.skipField();
7468
6837
  break;
@@ -7533,14 +6902,6 @@ var require_avs_pb = __commonJS({
7533
6902
  proto.aggregator.LoopNode.Config.serializeBinaryToWriter
7534
6903
  );
7535
6904
  }
7536
- f = message.getInput();
7537
- if (f != null) {
7538
- writer.writeMessage(
7539
- 2,
7540
- f,
7541
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7542
- );
7543
- }
7544
6905
  };
7545
6906
  if (jspb.Message.GENERATE_TO_OBJECT) {
7546
6907
  proto.aggregator.LoopNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -7548,7 +6909,7 @@ var require_avs_pb = __commonJS({
7548
6909
  };
7549
6910
  proto.aggregator.LoopNode.Config.toObject = function(includeInstance, msg) {
7550
6911
  var f, obj = {
7551
- sourceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6912
+ inputNodeName: jspb.Message.getFieldWithDefault(msg, 1, ""),
7552
6913
  iterVal: jspb.Message.getFieldWithDefault(msg, 2, ""),
7553
6914
  iterKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
7554
6915
  executionMode: jspb.Message.getFieldWithDefault(msg, 4, 0)
@@ -7576,7 +6937,7 @@ var require_avs_pb = __commonJS({
7576
6937
  /** @type {string} */
7577
6938
  reader.readString()
7578
6939
  );
7579
- msg.setSourceId(value);
6940
+ msg.setInputNodeName(value);
7580
6941
  break;
7581
6942
  case 2:
7582
6943
  var value = (
@@ -7613,7 +6974,7 @@ var require_avs_pb = __commonJS({
7613
6974
  };
7614
6975
  proto.aggregator.LoopNode.Config.serializeBinaryToWriter = function(message, writer) {
7615
6976
  var f = void 0;
7616
- f = message.getSourceId();
6977
+ f = message.getInputNodeName();
7617
6978
  if (f.length > 0) {
7618
6979
  writer.writeString(
7619
6980
  1,
@@ -7642,13 +7003,13 @@ var require_avs_pb = __commonJS({
7642
7003
  );
7643
7004
  }
7644
7005
  };
7645
- proto.aggregator.LoopNode.Config.prototype.getSourceId = function() {
7006
+ proto.aggregator.LoopNode.Config.prototype.getInputNodeName = function() {
7646
7007
  return (
7647
7008
  /** @type {string} */
7648
7009
  jspb.Message.getFieldWithDefault(this, 1, "")
7649
7010
  );
7650
7011
  };
7651
- proto.aggregator.LoopNode.Config.prototype.setSourceId = function(value) {
7012
+ proto.aggregator.LoopNode.Config.prototype.setInputNodeName = function(value) {
7652
7013
  return jspb.Message.setProto3StringField(this, 1, value);
7653
7014
  };
7654
7015
  proto.aggregator.LoopNode.Config.prototype.getIterVal = function() {
@@ -7684,7 +7045,7 @@ var require_avs_pb = __commonJS({
7684
7045
  };
7685
7046
  proto.aggregator.LoopNode.Output.toObject = function(includeInstance, msg) {
7686
7047
  var f, obj = {
7687
- data: jspb.Message.getFieldWithDefault(msg, 1, "")
7048
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
7688
7049
  };
7689
7050
  if (includeInstance) {
7690
7051
  obj.$jspbMessageInstance = msg;
@@ -7705,10 +7066,8 @@ var require_avs_pb = __commonJS({
7705
7066
  var field = reader.getFieldNumber();
7706
7067
  switch (field) {
7707
7068
  case 1:
7708
- var value = (
7709
- /** @type {string} */
7710
- reader.readString()
7711
- );
7069
+ var value = new google_protobuf_struct_pb2.Value();
7070
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7712
7071
  msg.setData(value);
7713
7072
  break;
7714
7073
  default:
@@ -7726,21 +7085,28 @@ var require_avs_pb = __commonJS({
7726
7085
  proto.aggregator.LoopNode.Output.serializeBinaryToWriter = function(message, writer) {
7727
7086
  var f = void 0;
7728
7087
  f = message.getData();
7729
- if (f.length > 0) {
7730
- writer.writeString(
7088
+ if (f != null) {
7089
+ writer.writeMessage(
7731
7090
  1,
7732
- f
7091
+ f,
7092
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7733
7093
  );
7734
7094
  }
7735
7095
  };
7736
7096
  proto.aggregator.LoopNode.Output.prototype.getData = function() {
7737
7097
  return (
7738
- /** @type {string} */
7739
- jspb.Message.getFieldWithDefault(this, 1, "")
7098
+ /** @type{?proto.google.protobuf.Value} */
7099
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
7740
7100
  );
7741
7101
  };
7742
7102
  proto.aggregator.LoopNode.Output.prototype.setData = function(value) {
7743
- return jspb.Message.setProto3StringField(this, 1, value);
7103
+ return jspb.Message.setWrapperField(this, 1, value);
7104
+ };
7105
+ proto.aggregator.LoopNode.Output.prototype.clearData = function() {
7106
+ return this.setData(void 0);
7107
+ };
7108
+ proto.aggregator.LoopNode.Output.prototype.hasData = function() {
7109
+ return jspb.Message.getField(this, 1) != null;
7744
7110
  };
7745
7111
  proto.aggregator.LoopNode.prototype.getEthTransfer = function() {
7746
7112
  return (
@@ -7847,21 +7213,6 @@ var require_avs_pb = __commonJS({
7847
7213
  proto.aggregator.LoopNode.prototype.hasConfig = function() {
7848
7214
  return jspb.Message.getField(this, 1) != null;
7849
7215
  };
7850
- proto.aggregator.LoopNode.prototype.getInput = function() {
7851
- return (
7852
- /** @type{?proto.google.protobuf.Value} */
7853
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
7854
- );
7855
- };
7856
- proto.aggregator.LoopNode.prototype.setInput = function(value) {
7857
- return jspb.Message.setWrapperField(this, 2, value);
7858
- };
7859
- proto.aggregator.LoopNode.prototype.clearInput = function() {
7860
- return this.setInput(void 0);
7861
- };
7862
- proto.aggregator.LoopNode.prototype.hasInput = function() {
7863
- return jspb.Message.getField(this, 2) != null;
7864
- };
7865
7216
  if (jspb.Message.GENERATE_TO_OBJECT) {
7866
7217
  proto.aggregator.TaskEdge.prototype.toObject = function(opt_includeInstance) {
7867
7218
  return proto.aggregator.TaskEdge.toObject(opt_includeInstance, this);
@@ -8010,8 +7361,7 @@ var require_avs_pb = __commonJS({
8010
7361
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
8011
7362
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
8012
7363
  loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
8013
- customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
8014
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
7364
+ customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
8015
7365
  };
8016
7366
  if (includeInstance) {
8017
7367
  obj.$jspbMessageInstance = msg;
@@ -8097,11 +7447,6 @@ var require_avs_pb = __commonJS({
8097
7447
  reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
8098
7448
  msg.setCustomCode(value);
8099
7449
  break;
8100
- case 19:
8101
- var value = new google_protobuf_struct_pb2.Value();
8102
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
8103
- msg.setInput(value);
8104
- break;
8105
7450
  default:
8106
7451
  reader.skipField();
8107
7452
  break;
@@ -8201,20 +7546,12 @@ var require_avs_pb = __commonJS({
8201
7546
  proto.aggregator.LoopNode.serializeBinaryToWriter
8202
7547
  );
8203
7548
  }
8204
- f = message.getCustomCode();
8205
- if (f != null) {
8206
- writer.writeMessage(
8207
- 18,
8208
- f,
8209
- proto.aggregator.CustomCodeNode.serializeBinaryToWriter
8210
- );
8211
- }
8212
- f = message.getInput();
7549
+ f = message.getCustomCode();
8213
7550
  if (f != null) {
8214
7551
  writer.writeMessage(
8215
- 19,
7552
+ 18,
8216
7553
  f,
8217
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7554
+ proto.aggregator.CustomCodeNode.serializeBinaryToWriter
8218
7555
  );
8219
7556
  }
8220
7557
  };
@@ -8380,21 +7717,6 @@ var require_avs_pb = __commonJS({
8380
7717
  proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
8381
7718
  return jspb.Message.getField(this, 18) != null;
8382
7719
  };
8383
- proto.aggregator.TaskNode.prototype.getInput = function() {
8384
- return (
8385
- /** @type{?proto.google.protobuf.Value} */
8386
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
8387
- );
8388
- };
8389
- proto.aggregator.TaskNode.prototype.setInput = function(value) {
8390
- return jspb.Message.setWrapperField(this, 19, value);
8391
- };
8392
- proto.aggregator.TaskNode.prototype.clearInput = function() {
8393
- return this.setInput(void 0);
8394
- };
8395
- proto.aggregator.TaskNode.prototype.hasInput = function() {
8396
- return jspb.Message.getField(this, 19) != null;
8397
- };
8398
7720
  proto.aggregator.Execution.repeatedFields_ = [8];
8399
7721
  if (jspb.Message.GENERATE_TO_OBJECT) {
8400
7722
  proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
@@ -8567,7 +7889,7 @@ var require_avs_pb = __commonJS({
8567
7889
  error: jspb.Message.getFieldWithDefault(msg, 13, ""),
8568
7890
  log: jspb.Message.getFieldWithDefault(msg, 12, ""),
8569
7891
  inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
8570
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
7892
+ config: (f = msg.getConfig()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
8571
7893
  blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
8572
7894
  fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
8573
7895
  cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
@@ -8655,7 +7977,7 @@ var require_avs_pb = __commonJS({
8655
7977
  case 19:
8656
7978
  var value = new google_protobuf_struct_pb2.Value();
8657
7979
  reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
8658
- msg.setInput(value);
7980
+ msg.setConfig(value);
8659
7981
  break;
8660
7982
  case 20:
8661
7983
  var value = new proto.aggregator.BlockTrigger.Output();
@@ -8804,7 +8126,7 @@ var require_avs_pb = __commonJS({
8804
8126
  f
8805
8127
  );
8806
8128
  }
8807
- f = message.getInput();
8129
+ f = message.getConfig();
8808
8130
  if (f != null) {
8809
8131
  writer.writeMessage(
8810
8132
  19,
@@ -9008,19 +8330,19 @@ var require_avs_pb = __commonJS({
9008
8330
  proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
9009
8331
  return this.setInputsList([]);
9010
8332
  };
9011
- proto.aggregator.Execution.Step.prototype.getInput = function() {
8333
+ proto.aggregator.Execution.Step.prototype.getConfig = function() {
9012
8334
  return (
9013
8335
  /** @type{?proto.google.protobuf.Value} */
9014
8336
  jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
9015
8337
  );
9016
8338
  };
9017
- proto.aggregator.Execution.Step.prototype.setInput = function(value) {
8339
+ proto.aggregator.Execution.Step.prototype.setConfig = function(value) {
9018
8340
  return jspb.Message.setWrapperField(this, 19, value);
9019
8341
  };
9020
- proto.aggregator.Execution.Step.prototype.clearInput = function() {
9021
- return this.setInput(void 0);
8342
+ proto.aggregator.Execution.Step.prototype.clearConfig = function() {
8343
+ return this.setConfig(void 0);
9022
8344
  };
9023
- proto.aggregator.Execution.Step.prototype.hasInput = function() {
8345
+ proto.aggregator.Execution.Step.prototype.hasConfig = function() {
9024
8346
  return jspb.Message.getField(this, 19) != null;
9025
8347
  };
9026
8348
  proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
@@ -16823,11 +16145,17 @@ var Trigger = class {
16823
16145
  this.type = props.type;
16824
16146
  this.data = props.data;
16825
16147
  this.output = props.output;
16826
- this.input = props.input;
16827
16148
  }
16828
16149
  toRequest() {
16829
16150
  throw new Error("Method not implemented.");
16830
16151
  }
16152
+ static fromResponse(raw) {
16153
+ const obj = raw.toObject();
16154
+ return new this({
16155
+ // eslint-disable-line @typescript-eslint/no-explicit-any
16156
+ ...obj
16157
+ });
16158
+ }
16831
16159
  getOutput() {
16832
16160
  return this.output;
16833
16161
  }
@@ -16837,18 +16165,161 @@ var Trigger = class {
16837
16165
  name: this.name,
16838
16166
  type: this.type,
16839
16167
  data: this.data,
16840
- output: this.output,
16841
- input: this.input
16168
+ output: this.output
16842
16169
  };
16843
16170
  }
16844
16171
  };
16845
16172
 
16846
16173
  // src/models/trigger/block.ts
16174
+ var import_types = require("@avaprotocol/types");
16175
+ var BlockTrigger2 = class _BlockTrigger extends Trigger {
16176
+ constructor(props) {
16177
+ super({ ...props, type: import_types.TriggerType.Block, data: props.data });
16178
+ }
16179
+ toRequest() {
16180
+ const request = new avs_pb2.TaskTrigger();
16181
+ request.setName(this.name);
16182
+ request.setId(this.id);
16183
+ request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
16184
+ if (!this.data) {
16185
+ throw new Error(`Trigger data is missing for block`);
16186
+ }
16187
+ const blockData = this.data;
16188
+ if (blockData.interval === null || blockData.interval === void 0) {
16189
+ throw new Error("Interval is required for block trigger");
16190
+ }
16191
+ if (!Number.isInteger(blockData.interval)) {
16192
+ throw new Error(`BlockTrigger interval must be an integer, got: ${blockData.interval}`);
16193
+ }
16194
+ if (blockData.interval <= 0) {
16195
+ throw new Error(`Interval must be greater than 0`);
16196
+ }
16197
+ const trigger = new avs_pb2.BlockTrigger();
16198
+ const config = new avs_pb2.BlockTrigger.Config();
16199
+ config.setInterval(blockData.interval);
16200
+ trigger.setConfig(config);
16201
+ request.setBlock(trigger);
16202
+ return request;
16203
+ }
16204
+ static fromResponse(raw) {
16205
+ const obj = raw.toObject();
16206
+ let data = { interval: 0 };
16207
+ if (raw.getBlock() && raw.getBlock().hasConfig()) {
16208
+ const config = raw.getBlock().getConfig();
16209
+ if (config) {
16210
+ data = {
16211
+ interval: config.getInterval() || 0
16212
+ };
16213
+ }
16214
+ }
16215
+ return new _BlockTrigger({
16216
+ ...obj,
16217
+ type: import_types.TriggerType.Block,
16218
+ data
16219
+ });
16220
+ }
16221
+ /**
16222
+ * Convert raw data from runNodeWithInputs response to BlockOutput format
16223
+ * @param rawData - The raw data from the gRPC response
16224
+ * @returns {BlockTriggerOutput | undefined} - The converted data
16225
+ */
16226
+ getOutput() {
16227
+ return this.output;
16228
+ }
16229
+ /**
16230
+ * Extract output data from RunTriggerResp for block triggers
16231
+ * @param outputData - The RunTriggerResp containing block trigger output
16232
+ * @returns Plain JavaScript object with block trigger data
16233
+ */
16234
+ static fromOutputData(outputData) {
16235
+ const blockOutput = outputData.getBlockTrigger();
16236
+ if (!blockOutput) return null;
16237
+ const dataValue = blockOutput.getData();
16238
+ if (!dataValue) return null;
16239
+ const result = dataValue.toJavaScript();
16240
+ return result;
16241
+ }
16242
+ };
16243
+ var block_default = BlockTrigger2;
16244
+
16245
+ // src/models/trigger/cron.ts
16246
+ var avs_pb3 = __toESM(require_avs_pb());
16847
16247
  var import_types2 = require("@avaprotocol/types");
16248
+ var CronTrigger2 = class _CronTrigger extends Trigger {
16249
+ constructor(props) {
16250
+ super({ ...props, type: import_types2.TriggerType.Cron, data: props.data });
16251
+ }
16252
+ toRequest() {
16253
+ const request = new avs_pb3.TaskTrigger();
16254
+ request.setName(this.name);
16255
+ request.setId(this.id);
16256
+ request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
16257
+ if (!this.data) {
16258
+ throw new Error(`Trigger data is missing for ${this.type}`);
16259
+ }
16260
+ const cronData = this.data;
16261
+ if (cronData.schedules === null || cronData.schedules === void 0) {
16262
+ throw new Error("Schedules are required for cron trigger");
16263
+ }
16264
+ if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
16265
+ throw new Error("Schedules are required for cron trigger");
16266
+ }
16267
+ const trigger = new avs_pb3.CronTrigger();
16268
+ const config = new avs_pb3.CronTrigger.Config();
16269
+ config.setSchedulesList(cronData.schedules);
16270
+ trigger.setConfig(config);
16271
+ request.setCron(trigger);
16272
+ return request;
16273
+ }
16274
+ static fromResponse(raw) {
16275
+ const obj = raw.toObject();
16276
+ let data = { schedules: [] };
16277
+ if (raw.getCron() && raw.getCron().hasConfig()) {
16278
+ const config = raw.getCron().getConfig();
16279
+ if (config) {
16280
+ data = {
16281
+ schedules: config.getSchedulesList() || []
16282
+ };
16283
+ }
16284
+ }
16285
+ return new _CronTrigger({
16286
+ ...obj,
16287
+ type: import_types2.TriggerType.Cron,
16288
+ data
16289
+ });
16290
+ }
16291
+ /**
16292
+ * Convert raw data from runTrigger response to CronOutput format
16293
+ * @param rawData - The raw data from the gRPC response
16294
+ * @returns {CronTriggerOutput | undefined} - The converted data
16295
+ */
16296
+ getOutput() {
16297
+ return this.output;
16298
+ }
16299
+ /**
16300
+ * Extract output data from RunTriggerResp for cron triggers
16301
+ * Updated to handle timestamp and timestamp_iso instead of epoch
16302
+ * @param outputData - The RunTriggerResp containing cron trigger output
16303
+ * @returns Plain JavaScript object with cron trigger data
16304
+ */
16305
+ static fromOutputData(outputData) {
16306
+ const cronOutput = outputData.getCronTrigger();
16307
+ if (!cronOutput) return null;
16308
+ const dataValue = cronOutput.getData();
16309
+ if (!dataValue) return null;
16310
+ const result = dataValue.toJavaScript();
16311
+ return result;
16312
+ }
16313
+ };
16314
+ var cron_default = CronTrigger2;
16315
+
16316
+ // src/models/trigger/event.ts
16317
+ var avs_pb4 = __toESM(require_avs_pb());
16318
+ var import_types4 = require("@avaprotocol/types");
16848
16319
 
16849
16320
  // src/utils.ts
16850
16321
  var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
16851
- var import_types = require("@avaprotocol/types");
16322
+ var import_types3 = require("@avaprotocol/types");
16852
16323
  function convertProtobufValueToJs(value) {
16853
16324
  if (!value) {
16854
16325
  return void 0;
@@ -16912,22 +16383,22 @@ function convertJSValueToProtobuf(value) {
16912
16383
  function convertProtobufTriggerTypeToSdk(protobufType) {
16913
16384
  switch (protobufType) {
16914
16385
  case "TRIGGER_TYPE_MANUAL":
16915
- return import_types.TriggerType.Manual;
16386
+ return import_types3.TriggerType.Manual;
16916
16387
  // "manualTrigger"
16917
16388
  case "TRIGGER_TYPE_FIXED_TIME":
16918
- return import_types.TriggerType.FixedTime;
16389
+ return import_types3.TriggerType.FixedTime;
16919
16390
  // "fixedTimeTrigger"
16920
16391
  case "TRIGGER_TYPE_CRON":
16921
- return import_types.TriggerType.Cron;
16392
+ return import_types3.TriggerType.Cron;
16922
16393
  // "cronTrigger"
16923
16394
  case "TRIGGER_TYPE_BLOCK":
16924
- return import_types.TriggerType.Block;
16395
+ return import_types3.TriggerType.Block;
16925
16396
  // "blockTrigger"
16926
16397
  case "TRIGGER_TYPE_EVENT":
16927
- return import_types.TriggerType.Event;
16398
+ return import_types3.TriggerType.Event;
16928
16399
  // "eventTrigger"
16929
16400
  case "TRIGGER_TYPE_UNSPECIFIED":
16930
- return import_types.TriggerType.Unspecified;
16401
+ return import_types3.TriggerType.Unspecified;
16931
16402
  // "unspecified"
16932
16403
  default:
16933
16404
  console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
@@ -16937,261 +16408,95 @@ function convertProtobufTriggerTypeToSdk(protobufType) {
16937
16408
  function convertProtobufNodeTypeToSdk(protobufType) {
16938
16409
  switch (protobufType) {
16939
16410
  case "NODE_TYPE_ETH_TRANSFER":
16940
- return import_types.NodeType.ETHTransfer;
16411
+ return import_types3.NodeType.ETHTransfer;
16941
16412
  // "ethTransfer"
16942
16413
  case "NODE_TYPE_CONTRACT_WRITE":
16943
- return import_types.NodeType.ContractWrite;
16414
+ return import_types3.NodeType.ContractWrite;
16944
16415
  // "contractWrite"
16945
16416
  case "NODE_TYPE_CONTRACT_READ":
16946
- return import_types.NodeType.ContractRead;
16417
+ return import_types3.NodeType.ContractRead;
16947
16418
  // "contractRead"
16948
16419
  case "NODE_TYPE_GRAPHQL_QUERY":
16949
- return import_types.NodeType.GraphQLQuery;
16420
+ return import_types3.NodeType.GraphQLQuery;
16950
16421
  // "graphql"
16951
16422
  case "NODE_TYPE_REST_API":
16952
- return import_types.NodeType.RestAPI;
16423
+ return import_types3.NodeType.RestAPI;
16953
16424
  // "restApi"
16954
16425
  case "NODE_TYPE_CUSTOM_CODE":
16955
- return import_types.NodeType.CustomCode;
16426
+ return import_types3.NodeType.CustomCode;
16956
16427
  // "customCode"
16957
16428
  case "NODE_TYPE_BRANCH":
16958
- return import_types.NodeType.Branch;
16429
+ return import_types3.NodeType.Branch;
16959
16430
  // "branch"
16960
16431
  case "NODE_TYPE_FILTER":
16961
- return import_types.NodeType.Filter;
16432
+ return import_types3.NodeType.Filter;
16962
16433
  // "filter"
16963
- case "NODE_TYPE_LOOP":
16964
- return import_types.NodeType.Loop;
16965
- // "loop"
16966
- case "NODE_TYPE_UNSPECIFIED":
16967
- return import_types.NodeType.Unspecified;
16968
- // "unspecified"
16969
- default:
16970
- console.warn(`Unknown node type: ${protobufType}, using raw value`);
16971
- return protobufType;
16972
- }
16973
- }
16974
- function convertProtobufStepTypeToSdk(protobufType) {
16975
- if (protobufType.startsWith("TRIGGER_TYPE_")) {
16976
- return convertProtobufTriggerTypeToSdk(protobufType);
16977
- } else if (protobufType.startsWith("NODE_TYPE_")) {
16978
- return convertProtobufNodeTypeToSdk(protobufType);
16979
- } else {
16980
- console.warn(`Unknown step type: ${protobufType}, using raw value`);
16981
- return protobufType;
16982
- }
16983
- }
16984
- function convertInputToProtobuf(input) {
16985
- if (!input) {
16986
- return void 0;
16987
- }
16988
- return convertJSValueToProtobuf(input);
16989
- }
16990
- function extractInputFromProtobuf(inputValue) {
16991
- if (!inputValue) {
16992
- return void 0;
16993
- }
16994
- if (typeof inputValue === "object" && !inputValue.toJavaScript) {
16995
- if (!Array.isArray(inputValue)) {
16996
- return inputValue;
16997
- }
16998
- return void 0;
16999
- }
17000
- try {
17001
- const protobufValue = inputValue;
17002
- const inputJavaScript = protobufValue.toJavaScript();
17003
- if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
17004
- return inputJavaScript;
17005
- }
17006
- } catch (error) {
17007
- if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
17008
- return inputValue;
17009
- }
17010
- }
17011
- return void 0;
17012
- }
17013
- function cleanGrpcErrorMessage(message) {
17014
- if (!message) return message;
17015
- const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
17016
- const match = message.match(grpcErrorPattern);
17017
- if (match && match[1]) {
17018
- return match[1].trim();
17019
- }
17020
- const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
17021
- const statusMatch = message.match(statusCodePattern);
17022
- if (statusMatch && statusMatch[1]) {
17023
- return statusMatch[1].trim();
17024
- }
17025
- return message;
17026
- }
17027
-
17028
- // src/models/trigger/block.ts
17029
- var BlockTrigger2 = class _BlockTrigger extends Trigger {
17030
- constructor(props) {
17031
- super({ ...props, type: import_types2.TriggerType.Block, data: props.data });
17032
- }
17033
- toRequest() {
17034
- const request = new avs_pb2.TaskTrigger();
17035
- request.setName(this.name);
17036
- request.setId(this.id);
17037
- request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
17038
- if (!this.data) {
17039
- throw new Error(`Trigger data is missing for block`);
17040
- }
17041
- const blockData = this.data;
17042
- if (blockData.interval === null || blockData.interval === void 0) {
17043
- throw new Error("Interval is required for block trigger");
17044
- }
17045
- if (blockData.interval <= 0) {
17046
- throw new Error("Interval must be greater than 0");
17047
- }
17048
- const trigger = new avs_pb2.BlockTrigger();
17049
- const config = new avs_pb2.BlockTrigger.Config();
17050
- config.setInterval(blockData.interval);
17051
- trigger.setConfig(config);
17052
- const inputValue = convertInputToProtobuf(this.input);
17053
- if (inputValue) {
17054
- trigger.setInput(inputValue);
17055
- }
17056
- request.setBlock(trigger);
17057
- return request;
17058
- }
17059
- static fromResponse(raw) {
17060
- const obj = raw.toObject();
17061
- let data = { interval: 0 };
17062
- let input = void 0;
17063
- if (raw.getBlock() && raw.getBlock().hasConfig()) {
17064
- const config = raw.getBlock().getConfig();
17065
- if (config) {
17066
- data = {
17067
- interval: config.getInterval() || 0
17068
- };
17069
- }
17070
- const blockTrigger = raw.getBlock();
17071
- if (blockTrigger.hasInput()) {
17072
- input = extractInputFromProtobuf(blockTrigger.getInput());
17073
- }
17074
- }
17075
- return new _BlockTrigger({
17076
- ...obj,
17077
- type: import_types2.TriggerType.Block,
17078
- data,
17079
- input
17080
- });
16434
+ case "NODE_TYPE_LOOP":
16435
+ return import_types3.NodeType.Loop;
16436
+ // "loop"
16437
+ case "NODE_TYPE_UNSPECIFIED":
16438
+ return import_types3.NodeType.Unspecified;
16439
+ // "unspecified"
16440
+ default:
16441
+ console.warn(`Unknown node type: ${protobufType}, using raw value`);
16442
+ return protobufType;
17081
16443
  }
17082
- /**
17083
- * Convert raw data from runNodeWithInputs response to BlockOutput format
17084
- * @param rawData - The raw data from the gRPC response
17085
- * @returns {BlockTriggerOutput | undefined} - The converted data
17086
- */
17087
- getOutput() {
17088
- return this.output;
16444
+ }
16445
+ function convertProtobufStepTypeToSdk(protobufType) {
16446
+ if (protobufType.startsWith("TRIGGER_TYPE_")) {
16447
+ return convertProtobufTriggerTypeToSdk(protobufType);
16448
+ } else if (protobufType.startsWith("NODE_TYPE_")) {
16449
+ return convertProtobufNodeTypeToSdk(protobufType);
16450
+ } else {
16451
+ console.warn(`Unknown step type: ${protobufType}, using raw value`);
16452
+ return protobufType;
17089
16453
  }
17090
- /**
17091
- * Extract output data from RunTriggerResp for block triggers
17092
- * @param outputData - The RunTriggerResp containing block trigger output
17093
- * @returns Plain JavaScript object with block trigger data
17094
- */
17095
- static fromOutputData(outputData) {
17096
- const blockOutput = outputData.getBlockTrigger();
17097
- return blockOutput?.toObject() || null;
16454
+ }
16455
+ function convertInputToProtobuf(input) {
16456
+ if (!input) {
16457
+ return void 0;
17098
16458
  }
17099
- };
17100
- var block_default = BlockTrigger2;
17101
-
17102
- // src/models/trigger/cron.ts
17103
- var avs_pb3 = __toESM(require_avs_pb());
17104
- var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
17105
- var import_types3 = require("@avaprotocol/types");
17106
- var CronTrigger2 = class _CronTrigger extends Trigger {
17107
- constructor(props) {
17108
- super({ ...props, type: import_types3.TriggerType.Cron, data: props.data });
16459
+ return convertJSValueToProtobuf(input);
16460
+ }
16461
+ function extractInputFromProtobuf(inputValue) {
16462
+ if (!inputValue) {
16463
+ return void 0;
17109
16464
  }
17110
- toRequest() {
17111
- const request = new avs_pb3.TaskTrigger();
17112
- request.setName(this.name);
17113
- request.setId(this.id);
17114
- request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
17115
- if (!this.data) {
17116
- throw new Error(`Trigger data is missing for ${this.type}`);
17117
- }
17118
- const cronData = this.data;
17119
- if (cronData.schedules === null || cronData.schedules === void 0) {
17120
- throw new Error("Schedules are required for cron trigger");
17121
- }
17122
- if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
17123
- throw new Error("Schedules are required for cron trigger");
17124
- }
17125
- const trigger = new avs_pb3.CronTrigger();
17126
- const config = new avs_pb3.CronTrigger.Config();
17127
- config.setSchedulesList(cronData.schedules);
17128
- trigger.setConfig(config);
17129
- if (this.input) {
17130
- try {
17131
- const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
17132
- trigger.setInput(inputValue);
17133
- } catch (error) {
17134
- throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
17135
- }
16465
+ if (typeof inputValue === "object" && !inputValue.toJavaScript) {
16466
+ if (!Array.isArray(inputValue)) {
16467
+ return inputValue;
17136
16468
  }
17137
- request.setCron(trigger);
17138
- return request;
16469
+ return void 0;
17139
16470
  }
17140
- static fromResponse(raw) {
17141
- const obj = raw.toObject();
17142
- let data = { schedules: [] };
17143
- if (raw.getCron() && raw.getCron().hasConfig()) {
17144
- const config = raw.getCron().getConfig();
17145
- if (config) {
17146
- data = {
17147
- schedules: config.getSchedulesList() || []
17148
- };
17149
- }
16471
+ try {
16472
+ const protobufValue = inputValue;
16473
+ const inputJavaScript = protobufValue.toJavaScript();
16474
+ if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
16475
+ return inputJavaScript;
17150
16476
  }
17151
- let input;
17152
- if (raw.getCron() && raw.getCron().hasInput()) {
17153
- const inputValue = raw.getCron().getInput();
17154
- if (inputValue) {
17155
- input = inputValue.toObject();
17156
- }
16477
+ } catch (error) {
16478
+ if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
16479
+ return inputValue;
17157
16480
  }
17158
- return new _CronTrigger({
17159
- ...obj,
17160
- type: import_types3.TriggerType.Cron,
17161
- data,
17162
- input
17163
- // ✨ NEW: Include input data
17164
- });
17165
16481
  }
17166
- /**
17167
- * Convert raw data from runTrigger response to CronOutput format
17168
- * @param rawData - The raw data from the gRPC response
17169
- * @returns {CronTriggerOutput | undefined} - The converted data
17170
- */
17171
- getOutput() {
17172
- return this.output;
16482
+ return void 0;
16483
+ }
16484
+ function cleanGrpcErrorMessage(message) {
16485
+ if (!message) return message;
16486
+ const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
16487
+ const match = message.match(grpcErrorPattern);
16488
+ if (match && match[1]) {
16489
+ return match[1].trim();
17173
16490
  }
17174
- /**
17175
- * Extract output data from RunTriggerResp for cron triggers
17176
- * Updated to handle timestamp and timestamp_iso instead of epoch
17177
- * @param outputData - The RunTriggerResp containing cron trigger output
17178
- * @returns Plain JavaScript object with cron trigger data
17179
- */
17180
- static fromOutputData(outputData) {
17181
- const cronOutput = outputData.getCronTrigger();
17182
- if (!cronOutput) return null;
17183
- const outputObj = cronOutput.toObject();
17184
- return {
17185
- timestamp: outputObj.timestamp,
17186
- timestampIso: outputObj.timestampIso
17187
- };
16491
+ const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
16492
+ const statusMatch = message.match(statusCodePattern);
16493
+ if (statusMatch && statusMatch[1]) {
16494
+ return statusMatch[1].trim();
17188
16495
  }
17189
- };
17190
- var cron_default = CronTrigger2;
16496
+ return message;
16497
+ }
17191
16498
 
17192
16499
  // src/models/trigger/event.ts
17193
- var avs_pb4 = __toESM(require_avs_pb());
17194
- var import_types4 = require("@avaprotocol/types");
17195
16500
  var EventTrigger2 = class _EventTrigger extends Trigger {
17196
16501
  constructor(props) {
17197
16502
  super({ ...props, type: import_types4.TriggerType.Event, data: props.data });
@@ -17264,17 +16569,12 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
17264
16569
  });
17265
16570
  config.setQueriesList(queryMessages);
17266
16571
  trigger.setConfig(config);
17267
- const inputValue = convertInputToProtobuf(this.input);
17268
- if (inputValue) {
17269
- trigger.setInput(inputValue);
17270
- }
17271
16572
  request.setEvent(trigger);
17272
16573
  return request;
17273
16574
  }
17274
16575
  static fromResponse(raw) {
17275
16576
  const obj = raw.toObject();
17276
16577
  let data = { queries: [] };
17277
- let input = void 0;
17278
16578
  if (raw.getEvent() && raw.getEvent().hasConfig()) {
17279
16579
  const config = raw.getEvent().getConfig();
17280
16580
  if (config) {
@@ -17324,15 +16624,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
17324
16624
  }
17325
16625
  data = { queries };
17326
16626
  }
17327
- if (raw.getEvent().hasInput()) {
17328
- input = extractInputFromProtobuf(raw.getEvent().getInput());
17329
- }
17330
16627
  }
17331
16628
  return new _EventTrigger({
17332
16629
  ...obj,
17333
16630
  type: import_types4.TriggerType.Event,
17334
- data,
17335
- input
16631
+ data
17336
16632
  });
17337
16633
  }
17338
16634
  /**
@@ -17390,19 +16686,16 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17390
16686
  }
17391
16687
  const trigger = new avs_pb5.FixedTimeTrigger();
17392
16688
  const config = new avs_pb5.FixedTimeTrigger.Config();
17393
- config.setEpochsList(this.data.epochsList || []);
16689
+ config.setEpochsList(
16690
+ this.data.epochsList || []
16691
+ );
17394
16692
  trigger.setConfig(config);
17395
- const inputValue = convertInputToProtobuf(this.input);
17396
- if (inputValue) {
17397
- trigger.setInput(inputValue);
17398
- }
17399
16693
  request.setFixedTime(trigger);
17400
16694
  return request;
17401
16695
  }
17402
16696
  static fromResponse(raw) {
17403
16697
  const obj = raw.toObject();
17404
16698
  let data = { epochsList: [] };
17405
- let input = void 0;
17406
16699
  if (raw.getFixedTime() && raw.getFixedTime().hasConfig()) {
17407
16700
  const config = raw.getFixedTime().getConfig();
17408
16701
  if (config) {
@@ -17410,15 +16703,11 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17410
16703
  epochsList: config.getEpochsList() || []
17411
16704
  };
17412
16705
  }
17413
- if (raw.getFixedTime().hasInput()) {
17414
- input = extractInputFromProtobuf(raw.getFixedTime().getInput());
17415
- }
17416
16706
  }
17417
16707
  return new _FixedTimeTrigger({
17418
16708
  ...obj,
17419
16709
  type: import_types5.TriggerType.FixedTime,
17420
- data,
17421
- input
16710
+ data
17422
16711
  });
17423
16712
  }
17424
16713
  /**
@@ -17438,11 +16727,10 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17438
16727
  static fromOutputData(outputData) {
17439
16728
  const fixedTimeOutput = outputData.getFixedTimeTrigger();
17440
16729
  if (!fixedTimeOutput) return null;
17441
- const outputObj = fixedTimeOutput.toObject();
17442
- return {
17443
- timestamp: outputObj.timestamp,
17444
- timestampIso: outputObj.timestampIso
17445
- };
16730
+ const dataValue = fixedTimeOutput.getData();
16731
+ if (!dataValue) return null;
16732
+ const result = dataValue.toJavaScript();
16733
+ return result;
17446
16734
  }
17447
16735
  };
17448
16736
  var fixedTime_default = FixedTimeTrigger2;
@@ -17458,8 +16746,6 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17458
16746
  data: props.data,
17459
16747
  input: props.input
17460
16748
  });
17461
- this.headers = props.headers;
17462
- this.pathParams = props.pathParams;
17463
16749
  }
17464
16750
  toRequest() {
17465
16751
  const trigger = new avs_pb6.TaskTrigger();
@@ -17468,22 +16754,36 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17468
16754
  trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
17469
16755
  const manualTrigger = new avs_pb6.ManualTrigger();
17470
16756
  const config = new avs_pb6.ManualTrigger.Config();
17471
- const dataToSend = this.data ?? this.input;
17472
- if (dataToSend !== null && dataToSend !== void 0) {
17473
- const inputValue = convertInputToProtobuf(dataToSend);
17474
- if (inputValue) {
17475
- config.setData(inputValue);
16757
+ if (this.data === null || this.data === void 0) {
16758
+ throw new Error("ManualTrigger data is required");
16759
+ }
16760
+ let actualData = this.data;
16761
+ let headers = {};
16762
+ let pathParams = {};
16763
+ if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
16764
+ const dataObj = this.data;
16765
+ if ("data" in dataObj) {
16766
+ actualData = dataObj.data;
16767
+ headers = dataObj.headers || {};
16768
+ pathParams = dataObj.pathParams || {};
17476
16769
  }
17477
16770
  }
17478
- if (this.headers && Object.keys(this.headers).length > 0) {
16771
+ const dataValue = convertInputToProtobuf(actualData);
16772
+ if (!dataValue) {
16773
+ throw new Error(
16774
+ "Failed to convert ManualTrigger data to protobuf format"
16775
+ );
16776
+ }
16777
+ config.setData(dataValue);
16778
+ if (Object.keys(headers).length > 0) {
17479
16779
  const headersMap = config.getHeadersMap();
17480
- Object.entries(this.headers).forEach(([key, value]) => {
16780
+ Object.entries(headers).forEach(([key, value]) => {
17481
16781
  headersMap.set(key, value);
17482
16782
  });
17483
16783
  }
17484
- if (this.pathParams && Object.keys(this.pathParams).length > 0) {
16784
+ if (Object.keys(pathParams).length > 0) {
17485
16785
  const pathParamsMap = config.getPathparamsMap();
17486
- Object.entries(this.pathParams).forEach(([key, value]) => {
16786
+ Object.entries(pathParams).forEach(([key, value]) => {
17487
16787
  pathParamsMap.set(key, value);
17488
16788
  });
17489
16789
  }
@@ -17493,45 +16793,25 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17493
16793
  }
17494
16794
  static fromResponse(raw) {
17495
16795
  const obj = raw.toObject();
17496
- let data = null;
17497
- const input = void 0;
17498
- let headers = void 0;
17499
- let pathParams = void 0;
16796
+ let actualData = null;
17500
16797
  const manualTrigger = raw.getManual();
17501
16798
  if (manualTrigger) {
17502
16799
  const config = manualTrigger.getConfig();
17503
16800
  if (config) {
17504
16801
  if (config.hasData()) {
17505
- data = extractInputFromProtobuf(config.getData());
17506
- }
17507
- const headersMapProto = config.getHeadersMap();
17508
- if (headersMapProto && headersMapProto.getLength() > 0) {
17509
- headers = {};
17510
- headersMapProto.forEach((value, key) => {
17511
- headers[key] = value;
17512
- });
17513
- }
17514
- const pathParamsMapProto = config.getPathparamsMap();
17515
- if (pathParamsMapProto && pathParamsMapProto.getLength() > 0) {
17516
- pathParams = {};
17517
- pathParamsMapProto.forEach((value, key) => {
17518
- pathParams[key] = value;
17519
- });
16802
+ actualData = extractInputFromProtobuf(config.getData());
17520
16803
  }
17521
16804
  }
17522
16805
  }
16806
+ const manualTriggerData = {
16807
+ data: actualData
16808
+ };
17523
16809
  return new _ManualTrigger({
17524
16810
  ...obj,
17525
16811
  type: import_types6.TriggerType.Manual,
17526
- data,
17527
- input,
17528
- headers,
17529
- pathParams
16812
+ data: manualTriggerData
17530
16813
  });
17531
16814
  }
17532
- getInputVariables() {
17533
- return this.input;
17534
- }
17535
16815
  /**
17536
16816
  * Extract output data from RunTriggerResp for manual triggers
17537
16817
  * @param outputData - The RunTriggerResp containing manual trigger output
@@ -17632,13 +16912,11 @@ var avs_pb8 = __toESM(require_avs_pb());
17632
16912
  var import_types8 = require("@avaprotocol/types");
17633
16913
  var import_lodash = __toESM(require("lodash"));
17634
16914
  var Node = class {
17635
- // Use JavaScript object type for internal storage
17636
16915
  constructor(props) {
17637
16916
  this.id = props.id;
17638
16917
  this.name = props.name;
17639
16918
  this.type = props.type;
17640
16919
  this.data = props.data;
17641
- this.input = props.input;
17642
16920
  }
17643
16921
  toRequest() {
17644
16922
  const request = new avs_pb8.TaskNode();
@@ -17651,13 +16929,8 @@ var Node = class {
17651
16929
  }
17652
16930
  static fromResponse(raw) {
17653
16931
  const obj = raw.toObject();
17654
- let input = void 0;
17655
- if (raw.hasInput()) {
17656
- input = raw.getInput().toObject();
17657
- }
17658
16932
  return new this({
17659
- ...obj,
17660
- input
16933
+ ...obj
17661
16934
  });
17662
16935
  }
17663
16936
  };
@@ -17704,15 +16977,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
17704
16977
  methodName: call.methodName
17705
16978
  })) || []
17706
16979
  };
17707
- let input = void 0;
17708
- if (raw.hasInput()) {
17709
- input = extractInputFromProtobuf(raw.getInput());
17710
- }
17711
16980
  return new _ContractWriteNode({
17712
16981
  ...obj,
17713
16982
  type: import_types9.NodeType.ContractWrite,
17714
- data,
17715
- input
16983
+ data
17716
16984
  });
17717
16985
  }
17718
16986
  toRequest() {
@@ -17722,10 +16990,6 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
17722
16990
  const node = _ContractWriteNode.createProtobufNode(
17723
16991
  this.data
17724
16992
  );
17725
- const inputValue = convertInputToProtobuf(this.input);
17726
- if (inputValue) {
17727
- request.setInput(inputValue);
17728
- }
17729
16993
  request.setContractWrite(node);
17730
16994
  return request;
17731
16995
  }
@@ -17767,15 +17031,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
17767
17031
  lang: rawConfig.lang,
17768
17032
  source: rawConfig.source
17769
17033
  };
17770
- let input = void 0;
17771
- if (raw.hasInput()) {
17772
- input = extractInputFromProtobuf(raw.getInput());
17773
- }
17774
17034
  return new _CustomCodeNode({
17775
17035
  ...obj,
17776
17036
  type: import_types10.NodeType.CustomCode,
17777
- data: convertedConfig,
17778
- input
17037
+ data: convertedConfig
17779
17038
  });
17780
17039
  }
17781
17040
  toRequest() {
@@ -17785,10 +17044,6 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
17785
17044
  const node = _CustomCodeNode.createProtobufNode(
17786
17045
  this.data
17787
17046
  );
17788
- const inputValue = convertInputToProtobuf(this.input);
17789
- if (inputValue) {
17790
- request.setInput(inputValue);
17791
- }
17792
17047
  request.setCustomCode(node);
17793
17048
  return request;
17794
17049
  }
@@ -17838,12 +17093,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17838
17093
  }
17839
17094
  static fromResponse(raw) {
17840
17095
  const obj = raw.toObject();
17841
- const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
17842
17096
  return new _GraphQLQueryNode({
17843
17097
  ...obj,
17844
17098
  type: import_types11.NodeType.GraphQLQuery,
17845
- data: raw.getGraphqlQuery().getConfig().toObject(),
17846
- input
17099
+ data: raw.getGraphqlQuery().getConfig().toObject()
17847
17100
  });
17848
17101
  }
17849
17102
  toRequest() {
@@ -17853,10 +17106,6 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17853
17106
  const node = _GraphQLQueryNode.createProtobufNode(
17854
17107
  this.data
17855
17108
  );
17856
- const inputValue = convertInputToProtobuf(this.input);
17857
- if (inputValue) {
17858
- node.setInput(inputValue);
17859
- }
17860
17109
  request.setGraphqlQuery(node);
17861
17110
  return request;
17862
17111
  }
@@ -17896,10 +17145,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
17896
17145
  }
17897
17146
  static fromResponse(raw) {
17898
17147
  const obj = raw.toObject();
17899
- let input = void 0;
17900
- if (raw.hasInput()) {
17901
- input = extractInputFromProtobuf(raw.getInput());
17902
- }
17903
17148
  return new _RestAPINode({
17904
17149
  ...obj,
17905
17150
  type: import_types12.NodeType.RestAPI,
@@ -17915,9 +17160,7 @@ var RestAPINode2 = class _RestAPINode extends Node {
17915
17160
  });
17916
17161
  return headers;
17917
17162
  })()
17918
- },
17919
- input
17920
- // Include input data from top-level TaskNode
17163
+ }
17921
17164
  });
17922
17165
  }
17923
17166
  toRequest() {
@@ -17927,10 +17170,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
17927
17170
  const nodeData = _RestAPINode.createProtobufNode(
17928
17171
  this.data
17929
17172
  );
17930
- const inputValue = convertInputToProtobuf(this.input);
17931
- if (inputValue) {
17932
- request.setInput(inputValue);
17933
- }
17934
17173
  request.setRestApi(nodeData);
17935
17174
  return request;
17936
17175
  }
@@ -17993,15 +17232,10 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
17993
17232
  applyToFields: call.applyToFieldsList || []
17994
17233
  })) || []
17995
17234
  };
17996
- let input = void 0;
17997
- if (raw.hasInput()) {
17998
- input = extractInputFromProtobuf(raw.getInput());
17999
- }
18000
17235
  return new _ContractReadNode({
18001
17236
  ...obj,
18002
17237
  type: import_types13.NodeType.ContractRead,
18003
- data,
18004
- input
17238
+ data
18005
17239
  });
18006
17240
  }
18007
17241
  toRequest() {
@@ -18011,10 +17245,6 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
18011
17245
  const node = _ContractReadNode.createProtobufNode(
18012
17246
  this.data
18013
17247
  );
18014
- const inputValue = convertInputToProtobuf(this.input);
18015
- if (inputValue) {
18016
- request.setInput(inputValue);
18017
- }
18018
17248
  request.setContractRead(node);
18019
17249
  return request;
18020
17250
  }
@@ -18063,12 +17293,11 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18063
17293
  }
18064
17294
  static fromResponse(raw) {
18065
17295
  const obj = raw.toObject();
18066
- const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
17296
+ const data = raw.getEthTransfer().getConfig().toObject();
18067
17297
  return new _ETHTransferNode({
18068
17298
  ...obj,
18069
17299
  type: import_types14.NodeType.ETHTransfer,
18070
- data: raw.getEthTransfer().getConfig().toObject(),
18071
- input
17300
+ data
18072
17301
  });
18073
17302
  }
18074
17303
  toRequest() {
@@ -18078,10 +17307,6 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18078
17307
  const node = _ETHTransferNode.createProtobufNode(
18079
17308
  this.data
18080
17309
  );
18081
- const inputValue = convertInputToProtobuf(this.input);
18082
- if (inputValue) {
18083
- node.setInput(inputValue);
18084
- }
18085
17310
  request.setEthTransfer(node);
18086
17311
  return request;
18087
17312
  }
@@ -18109,12 +17334,10 @@ var BranchNode2 = class _BranchNode extends Node {
18109
17334
  expression: condition.expression
18110
17335
  })) || []
18111
17336
  };
18112
- const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
18113
17337
  return new _BranchNode({
18114
17338
  ...obj,
18115
17339
  type: import_types15.NodeType.Branch,
18116
- data,
18117
- input
17340
+ data
18118
17341
  });
18119
17342
  }
18120
17343
  toRequest() {
@@ -18136,10 +17359,6 @@ var BranchNode2 = class _BranchNode extends Node {
18136
17359
  config.setConditionsList(conditionsList);
18137
17360
  }
18138
17361
  node.setConfig(config);
18139
- const inputValue = convertInputToProtobuf(this.input);
18140
- if (inputValue) {
18141
- node.setInput(inputValue);
18142
- }
18143
17362
  request.setBranch(node);
18144
17363
  return request;
18145
17364
  }
@@ -18154,19 +17373,16 @@ var branch_default = BranchNode2;
18154
17373
  // src/models/node/filter.ts
18155
17374
  var avs_pb16 = __toESM(require_avs_pb());
18156
17375
  var import_types16 = require("@avaprotocol/types");
18157
- var import_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb");
18158
17376
  var FilterNode2 = class _FilterNode extends Node {
18159
17377
  constructor(props) {
18160
17378
  super({ ...props, type: import_types16.NodeType.Filter, data: props.data });
18161
17379
  }
18162
17380
  static fromResponse(raw) {
18163
17381
  const obj = raw.toObject();
18164
- const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
18165
17382
  return new _FilterNode({
18166
17383
  ...obj,
18167
17384
  type: import_types16.NodeType.Filter,
18168
- data: raw.getFilter().getConfig().toObject(),
18169
- input
17385
+ data: raw.getFilter().getConfig().toObject()
18170
17386
  });
18171
17387
  }
18172
17388
  toRequest() {
@@ -18176,12 +17392,8 @@ var FilterNode2 = class _FilterNode extends Node {
18176
17392
  const node = new avs_pb16.FilterNode();
18177
17393
  const config = new avs_pb16.FilterNode.Config();
18178
17394
  config.setExpression(this.data.expression);
18179
- config.setSourceId(this.data.sourceId || "");
17395
+ config.setInputNodeName(this.data.inputNodeName || "");
18180
17396
  node.setConfig(config);
18181
- const inputValue = convertInputToProtobuf(this.input);
18182
- if (inputValue) {
18183
- node.setInput(inputValue);
18184
- }
18185
17397
  request.setFilter(node);
18186
17398
  return request;
18187
17399
  }
@@ -18194,11 +17406,16 @@ var FilterNode2 = class _FilterNode extends Node {
18194
17406
  if (!anyData) {
18195
17407
  throw new Error("FilterNode output data.getData() is missing");
18196
17408
  }
18197
- const value = import_struct_pb2.Value.deserializeBinary(anyData.getValue_asU8());
18198
- const result = value.toJavaScript();
18199
- if (result && typeof result === "object" && !Array.isArray(result) && result.data) {
17409
+ const result = anyData.toJavaScript();
17410
+ if (result && typeof result === "object" && !Array.isArray(result) && result.data && result.data.data && Array.isArray(result.data.data)) {
17411
+ return result.data.data;
17412
+ }
17413
+ if (result && typeof result === "object" && !Array.isArray(result) && result.data && Array.isArray(result.data)) {
18200
17414
  return result.data;
18201
17415
  }
17416
+ if (Array.isArray(result)) {
17417
+ return result;
17418
+ }
18202
17419
  throw new Error(
18203
17420
  "FilterNode output data does not contain expected data structure"
18204
17421
  );
@@ -18230,15 +17447,10 @@ var LoopNode2 = class _LoopNode extends Node {
18230
17447
  configData?.executionMode
18231
17448
  )
18232
17449
  };
18233
- let input = void 0;
18234
- if (raw.hasInput()) {
18235
- input = extractInputFromProtobuf(raw.getInput());
18236
- }
18237
17450
  return new _LoopNode({
18238
17451
  ...obj,
18239
17452
  type: import_types17.NodeType.Loop,
18240
- data,
18241
- input
17453
+ data
18242
17454
  });
18243
17455
  }
18244
17456
  static extractRunnerFromProtobuf(loopNodeData) {
@@ -18296,16 +17508,12 @@ var LoopNode2 = class _LoopNode extends Node {
18296
17508
  node.setName(this.name);
18297
17509
  const data = this.data;
18298
17510
  const config = new avs_pb17.LoopNode.Config();
18299
- config.setSourceId(data.sourceId || "");
17511
+ config.setInputNodeName(data.inputNodeName || "");
18300
17512
  config.setIterVal(data.iterVal || "");
18301
17513
  config.setIterKey(data.iterKey || "");
18302
17514
  const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
18303
17515
  config.setExecutionMode(executionMode);
18304
17516
  loopNode.setConfig(config);
18305
- const inputValue = convertInputToProtobuf(this.input);
18306
- if (inputValue) {
18307
- node.setInput(inputValue);
18308
- }
18309
17517
  if (data.runner) {
18310
17518
  this.setRunnerOnProtobuf(loopNode, data.runner);
18311
17519
  }
@@ -18313,86 +17521,72 @@ var LoopNode2 = class _LoopNode extends Node {
18313
17521
  return node;
18314
17522
  }
18315
17523
  setRunnerOnProtobuf(loopNode, runner) {
18316
- if (!runner || !runner.type || !runner.data) {
17524
+ if (!runner || !runner.type) {
17525
+ return;
17526
+ }
17527
+ const config = runner.config || runner.data && runner.data.config;
17528
+ if (!config) {
18317
17529
  return;
18318
17530
  }
18319
17531
  switch (runner.type) {
18320
17532
  case "ethTransfer": {
18321
- const ethTransferData = runner.data;
18322
- if (ethTransferData.config) {
18323
- const ethConfig = ethTransferData.config;
18324
- const ethTransfer = ethTransfer_default.createProtobufNode({
18325
- destination: ethConfig.destination,
18326
- amount: ethConfig.amount
18327
- });
18328
- loopNode.setEthTransfer(ethTransfer);
18329
- }
17533
+ const ethConfig = config;
17534
+ const ethTransfer = ethTransfer_default.createProtobufNode({
17535
+ destination: ethConfig.destination,
17536
+ amount: ethConfig.amount
17537
+ });
17538
+ loopNode.setEthTransfer(ethTransfer);
18330
17539
  break;
18331
17540
  }
18332
17541
  case "contractWrite": {
18333
- const contractWriteData = runner.data;
18334
- if (contractWriteData.config) {
18335
- const writeConfig = contractWriteData.config;
18336
- const contractWrite = contractWrite_default.createProtobufNode({
18337
- contractAddress: writeConfig.contractAddress,
18338
- callData: writeConfig.callData,
18339
- contractAbi: writeConfig.contractAbi,
18340
- methodCalls: writeConfig.methodCallsList || []
18341
- });
18342
- loopNode.setContractWrite(contractWrite);
18343
- }
17542
+ const writeConfig = config;
17543
+ const contractWrite = contractWrite_default.createProtobufNode({
17544
+ contractAddress: writeConfig.contractAddress,
17545
+ callData: writeConfig.callData,
17546
+ contractAbi: writeConfig.contractAbi,
17547
+ methodCalls: writeConfig.methodCallsList || []
17548
+ });
17549
+ loopNode.setContractWrite(contractWrite);
18344
17550
  break;
18345
17551
  }
18346
17552
  case "contractRead": {
18347
- const contractReadData = runner.data;
18348
- if (contractReadData.config) {
18349
- const readConfig = contractReadData.config;
18350
- const contractRead = contractRead_default.createProtobufNode({
18351
- contractAddress: readConfig.contractAddress,
18352
- contractAbi: readConfig.contractAbi,
18353
- methodCalls: readConfig.methodCallsList || []
18354
- });
18355
- loopNode.setContractRead(contractRead);
18356
- }
17553
+ const readConfig = config;
17554
+ const contractRead = contractRead_default.createProtobufNode({
17555
+ contractAddress: readConfig.contractAddress,
17556
+ contractAbi: readConfig.contractAbi,
17557
+ methodCalls: readConfig.methodCallsList || []
17558
+ });
17559
+ loopNode.setContractRead(contractRead);
18357
17560
  break;
18358
17561
  }
18359
17562
  case "graphqlDataQuery": {
18360
- const graphqlData = runner.data;
18361
- if (graphqlData.config) {
18362
- const gqlConfig = graphqlData.config;
18363
- const graphqlQuery = graphqlQuery_default.createProtobufNode({
18364
- url: gqlConfig.url,
18365
- query: gqlConfig.query,
18366
- variablesMap: gqlConfig.variablesMap
18367
- });
18368
- loopNode.setGraphqlDataQuery(graphqlQuery);
18369
- }
17563
+ const gqlConfig = config;
17564
+ const graphqlQuery = graphqlQuery_default.createProtobufNode({
17565
+ url: gqlConfig.url,
17566
+ query: gqlConfig.query,
17567
+ variablesMap: gqlConfig.variablesMap
17568
+ });
17569
+ loopNode.setGraphqlDataQuery(graphqlQuery);
18370
17570
  break;
18371
17571
  }
18372
17572
  case "restApi": {
18373
- const restApiData = runner.data;
18374
- if (restApiData.config) {
18375
- const apiConfig = restApiData.config;
18376
- const restApi = restApi_default.createProtobufNode({
18377
- url: apiConfig.url,
18378
- method: apiConfig.method,
18379
- body: apiConfig.body || "",
18380
- headers: apiConfig.headers
18381
- });
18382
- loopNode.setRestApi(restApi);
18383
- }
17573
+ const apiConfig = config;
17574
+ const restApi = restApi_default.createProtobufNode({
17575
+ url: apiConfig.url,
17576
+ method: apiConfig.method,
17577
+ body: apiConfig.body || "",
17578
+ headers: apiConfig.headers
17579
+ });
17580
+ loopNode.setRestApi(restApi);
18384
17581
  break;
18385
17582
  }
18386
17583
  case "customCode": {
18387
- const customCodeData = runner.data;
18388
- if (customCodeData.config) {
18389
- const codeConfig = customCodeData.config;
18390
- const customCode = customCode_default.createProtobufNode({
18391
- lang: codeConfig.lang,
18392
- source: codeConfig.source
18393
- });
18394
- loopNode.setCustomCode(customCode);
18395
- }
17584
+ const codeConfig = config;
17585
+ const customCode = customCode_default.createProtobufNode({
17586
+ lang: codeConfig.lang,
17587
+ source: codeConfig.source
17588
+ });
17589
+ loopNode.setCustomCode(customCode);
18396
17590
  break;
18397
17591
  }
18398
17592
  }
@@ -18408,15 +17602,15 @@ var LoopNode2 = class _LoopNode extends Node {
18408
17602
  }
18409
17603
  const loopOutput = outputData.getLoop();
18410
17604
  if (loopOutput) {
18411
- const loopObj = loopOutput.toObject();
18412
- if (loopObj.data && typeof loopObj.data === "string") {
17605
+ const dataValue = loopOutput.getData();
17606
+ if (dataValue) {
18413
17607
  try {
18414
- return JSON.parse(loopObj.data);
18415
- } catch {
18416
- return loopObj.data;
17608
+ return dataValue.toJavaScript();
17609
+ } catch (error) {
17610
+ console.warn("Failed to convert loop data from protobuf Value:", error);
17611
+ return null;
18417
17612
  }
18418
17613
  }
18419
- return loopObj;
18420
17614
  }
18421
17615
  return null;
18422
17616
  }
@@ -18680,7 +17874,7 @@ var Step = class _Step {
18680
17874
  this.error = props.error;
18681
17875
  this.log = props.log;
18682
17876
  this.inputsList = props.inputsList;
18683
- this.input = props.input;
17877
+ this.config = props.config;
18684
17878
  this.output = props.output;
18685
17879
  this.startAt = props.startAt;
18686
17880
  this.endAt = props.endAt;
@@ -18698,299 +17892,102 @@ var Step = class _Step {
18698
17892
  error: this.error,
18699
17893
  log: this.log,
18700
17894
  inputsList: this.inputsList,
18701
- input: this.input,
17895
+ config: this.config,
18702
17896
  output: this.output,
18703
17897
  startAt: this.startAt,
18704
17898
  endAt: this.endAt
18705
17899
  };
18706
17900
  }
18707
17901
  static getOutput(step) {
18708
- const getOutputDataCase = () => {
18709
- if (typeof step.getOutputDataCase === "function") {
18710
- return step.getOutputDataCase();
18711
- }
18712
- const stepObj = step;
18713
- if (stepObj.blockTrigger)
18714
- return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
18715
- if (stepObj.fixedTimeTrigger)
18716
- return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
18717
- if (stepObj.cronTrigger)
18718
- return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
18719
- if (stepObj.eventTrigger)
18720
- return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
18721
- if (stepObj.manualTrigger)
18722
- return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
18723
- if (stepObj.ethTransfer)
18724
- return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
18725
- if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
18726
- if (stepObj.contractRead)
18727
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
18728
- if (stepObj.contractWrite)
18729
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
18730
- if (stepObj.customCode)
18731
- return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
18732
- if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
18733
- if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
18734
- if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
18735
- if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
18736
- return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
18737
- };
18738
- switch (getOutputDataCase()) {
18739
- case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
18740
- return void 0;
18741
- // Trigger outputs
17902
+ const outputData = this.extractOutputData(step);
17903
+ if (!outputData) return null;
17904
+ if (typeof outputData.hasData === "function" && outputData.hasData()) {
17905
+ try {
17906
+ return convertProtobufValueToJs(outputData.getData());
17907
+ } catch (error) {
17908
+ console.warn("Failed to convert protobuf Value to JavaScript:", error);
17909
+ return outputData.getData();
17910
+ }
17911
+ } else if (outputData.data) {
17912
+ return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
17913
+ }
17914
+ return null;
17915
+ }
17916
+ static extractOutputData(step) {
17917
+ const outputCase = this.getOutputDataCase(step);
17918
+ switch (outputCase) {
18742
17919
  case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
18743
- const blockTrigger = typeof step.getBlockTrigger === "function" ? step.getBlockTrigger()?.toObject() : step.blockTrigger;
18744
- return { data: blockTrigger };
18745
- // ✅ Use standard structure
17920
+ return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
18746
17921
  case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
18747
- const fixedTimeTrigger = typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger()?.toObject() : step.fixedTimeTrigger;
18748
- return { data: fixedTimeTrigger };
18749
- // ✅ Use standard structure
17922
+ return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
18750
17923
  case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
18751
- const cronTrigger = typeof step.getCronTrigger === "function" ? step.getCronTrigger()?.toObject() : step.cronTrigger;
18752
- return { data: cronTrigger };
18753
- // ✅ Use standard structure
17924
+ return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
18754
17925
  case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
18755
- const eventTrigger = typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
18756
- if (eventTrigger) {
18757
- if (typeof eventTrigger.hasData === "function" && eventTrigger.hasData()) {
18758
- try {
18759
- const eventData = convertProtobufValueToJs(
18760
- eventTrigger.getData()
18761
- );
18762
- return { data: eventData };
18763
- } catch (error) {
18764
- console.warn(
18765
- "Failed to convert event trigger data from protobuf Value:",
18766
- error
18767
- );
18768
- return { data: eventTrigger.getData() };
18769
- }
18770
- } else if (eventTrigger.data) {
18771
- const eventData = typeof eventTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(eventTrigger.data) : eventTrigger.data;
18772
- return { data: eventData };
18773
- }
18774
- if (typeof eventTrigger.hasEvmLog === "function" && eventTrigger.hasEvmLog()) {
18775
- return { data: eventTrigger.getEvmLog()?.toObject() };
18776
- } else if (typeof eventTrigger.hasTransferLog === "function" && eventTrigger.hasTransferLog()) {
18777
- return { data: eventTrigger.getTransferLog()?.toObject() };
18778
- } else if (eventTrigger.evmLog) {
18779
- return { data: eventTrigger.evmLog };
18780
- } else if (eventTrigger.transferLog) {
18781
- return { data: eventTrigger.transferLog };
18782
- }
18783
- }
18784
- return { data: null };
18785
- // ✅ Use standard structure
18786
- case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER: {
18787
- const manualTrigger = typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
18788
- if (manualTrigger) {
18789
- if (typeof manualTrigger.hasData === "function" && manualTrigger.hasData()) {
18790
- try {
18791
- return convertProtobufValueToJs(manualTrigger.getData());
18792
- } catch (error) {
18793
- console.warn(
18794
- "Failed to convert manual trigger data from protobuf Value:",
18795
- error
18796
- );
18797
- return manualTrigger.getData();
18798
- }
18799
- } else if (manualTrigger.data) {
18800
- return typeof manualTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(manualTrigger.data) : manualTrigger.data;
18801
- }
18802
- }
18803
- return null;
18804
- }
18805
- // Node outputs - RESTORE MISSING CASES
17926
+ return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
17927
+ case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
17928
+ return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
18806
17929
  case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
18807
- return typeof step.getEthTransfer === "function" ? step.getEthTransfer()?.toObject() : step.ethTransfer;
18808
- case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE: {
18809
- const customCodeOutput = typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
18810
- if (customCodeOutput) {
18811
- if (typeof customCodeOutput.hasData === "function" && customCodeOutput.hasData()) {
18812
- try {
18813
- return convertProtobufValueToJs(customCodeOutput.getData());
18814
- } catch {
18815
- return customCodeOutput.getData();
18816
- }
18817
- } else if (customCodeOutput.data) {
18818
- return typeof customCodeOutput.data.getKindCase === "function" ? convertProtobufValueToJs(customCodeOutput.data) : customCodeOutput.data;
18819
- }
18820
- }
18821
- return void 0;
18822
- }
18823
- case avs_pb20.Execution.Step.OutputDataCase.REST_API: {
18824
- const restApiOutput = typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
18825
- if (restApiOutput) {
18826
- if (typeof restApiOutput.hasData === "function" && restApiOutput.hasData()) {
18827
- try {
18828
- return convertProtobufValueToJs(restApiOutput.getData());
18829
- } catch {
18830
- return restApiOutput.getData();
18831
- }
18832
- } else if (restApiOutput.data) {
18833
- return typeof restApiOutput.data.getKindCase === "function" ? convertProtobufValueToJs(restApiOutput.data) : restApiOutput.data;
18834
- }
18835
- }
18836
- return void 0;
18837
- }
17930
+ return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
17931
+ case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
17932
+ return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
17933
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
17934
+ return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
17935
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
17936
+ return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
17937
+ case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
17938
+ return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
17939
+ case avs_pb20.Execution.Step.OutputDataCase.REST_API:
17940
+ return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
18838
17941
  case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
18839
- return typeof step.getBranch === "function" ? step.getBranch()?.toObject() : step.branch;
18840
- case avs_pb20.Execution.Step.OutputDataCase.LOOP: {
18841
- const loopOutput = typeof step.getLoop === "function" ? step.getLoop() : step.loop;
18842
- if (loopOutput) {
18843
- if (typeof loopOutput.getData === "function" && loopOutput.getData()) {
18844
- try {
18845
- return JSON.parse(loopOutput.getData());
18846
- } catch {
18847
- return loopOutput.getData();
18848
- }
18849
- } else if (loopOutput.data) {
18850
- try {
18851
- return typeof loopOutput.data === "string" ? JSON.parse(loopOutput.data) : loopOutput.data;
18852
- } catch {
18853
- return loopOutput.data;
18854
- }
18855
- }
18856
- }
18857
- return void 0;
18858
- }
18859
- case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL: {
18860
- const graphqlOutput = typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
18861
- if (graphqlOutput) {
18862
- try {
18863
- return typeof graphqlOutput.toObject === "function" ? graphqlOutput.toObject() : graphqlOutput;
18864
- } catch {
18865
- return void 0;
18866
- }
18867
- }
18868
- return void 0;
18869
- }
18870
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ: {
18871
- const contractReadOutput = typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
18872
- if (contractReadOutput) {
18873
- if (typeof contractReadOutput.hasData === "function" && contractReadOutput.hasData()) {
18874
- try {
18875
- const data = convertProtobufValueToJs(
18876
- contractReadOutput.getData()
18877
- );
18878
- if (Array.isArray(data)) {
18879
- return data;
18880
- } else {
18881
- return [data];
18882
- }
18883
- } catch (error) {
18884
- console.warn(
18885
- "Failed to convert contract read data from protobuf Value:",
18886
- error
18887
- );
18888
- return contractReadOutput.getData();
18889
- }
18890
- } else if (contractReadOutput.data) {
18891
- const data = typeof contractReadOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractReadOutput.data) : contractReadOutput.data;
18892
- if (Array.isArray(data)) {
18893
- return data;
18894
- } else {
18895
- return [data];
18896
- }
18897
- }
18898
- const outputObj = typeof contractReadOutput.toObject === "function" ? contractReadOutput.toObject() : contractReadOutput;
18899
- if (outputObj && outputObj.resultsList) {
18900
- return outputObj.resultsList.map((result) => ({
18901
- methodName: result.methodName,
18902
- success: result.success,
18903
- error: result.error,
18904
- data: result.dataList || []
18905
- }));
18906
- }
18907
- return outputObj;
18908
- }
18909
- return void 0;
18910
- }
18911
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE: {
18912
- const contractWriteOutput = typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
18913
- if (contractWriteOutput) {
18914
- if (typeof contractWriteOutput.hasData === "function" && contractWriteOutput.hasData()) {
18915
- try {
18916
- const data = convertProtobufValueToJs(
18917
- contractWriteOutput.getData()
18918
- );
18919
- if (Array.isArray(data)) {
18920
- return data;
18921
- } else {
18922
- return [data];
18923
- }
18924
- } catch (error) {
18925
- console.warn(
18926
- "Failed to convert contract write data from protobuf Value:",
18927
- error
18928
- );
18929
- return contractWriteOutput.getData();
18930
- }
18931
- } else if (contractWriteOutput.data) {
18932
- const data = typeof contractWriteOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractWriteOutput.data) : contractWriteOutput.data;
18933
- if (Array.isArray(data)) {
18934
- return data;
18935
- } else {
18936
- return [data];
18937
- }
18938
- }
18939
- const outputObj = typeof contractWriteOutput.toObject === "function" ? contractWriteOutput.toObject() : contractWriteOutput;
18940
- if (outputObj && outputObj.resultsList) {
18941
- return outputObj.resultsList.map((result) => ({
18942
- methodName: result.methodName,
18943
- success: result.success,
18944
- error: result.error,
18945
- transaction: result.transaction,
18946
- events: result.eventsList || [],
18947
- returnData: result.returnData,
18948
- inputData: result.inputData
18949
- }));
18950
- }
18951
- return outputObj;
18952
- }
18953
- return void 0;
18954
- }
18955
- case avs_pb20.Execution.Step.OutputDataCase.FILTER: {
18956
- const filterOutput = typeof step.getFilter === "function" ? step.getFilter() : step.filter;
18957
- if (filterOutput) {
18958
- try {
18959
- return typeof filterOutput.toObject === "function" ? filterOutput.toObject() : filterOutput;
18960
- } catch {
18961
- return void 0;
18962
- }
18963
- }
18964
- return void 0;
18965
- }
17942
+ return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
17943
+ case avs_pb20.Execution.Step.OutputDataCase.FILTER:
17944
+ return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
17945
+ case avs_pb20.Execution.Step.OutputDataCase.LOOP:
17946
+ return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
18966
17947
  default:
18967
- console.warn(
18968
- `Unhandled output data type in Step.getOutput: ${step.getOutputDataCase()}`
18969
- );
18970
- return void 0;
17948
+ return null;
18971
17949
  }
18972
17950
  }
17951
+ static getOutputDataCase(step) {
17952
+ if (typeof step.getOutputDataCase === "function") {
17953
+ return step.getOutputDataCase();
17954
+ }
17955
+ const stepObj = step;
17956
+ if (stepObj.blockTrigger)
17957
+ return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
17958
+ if (stepObj.fixedTimeTrigger)
17959
+ return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
17960
+ if (stepObj.cronTrigger)
17961
+ return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
17962
+ if (stepObj.eventTrigger)
17963
+ return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
17964
+ if (stepObj.manualTrigger)
17965
+ return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
17966
+ if (stepObj.ethTransfer)
17967
+ return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
17968
+ if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
17969
+ if (stepObj.contractRead)
17970
+ return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
17971
+ if (stepObj.contractWrite)
17972
+ return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
17973
+ if (stepObj.customCode)
17974
+ return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
17975
+ if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
17976
+ if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
17977
+ if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
17978
+ if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
17979
+ return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
17980
+ }
18973
17981
  static fromResponse(step) {
18974
- let inputData = void 0;
18975
- if (typeof step.hasInput === "function" && step.hasInput()) {
18976
- const inputValue = step.getInput();
18977
- if (inputValue) {
17982
+ let configData = void 0;
17983
+ if (typeof step.hasConfig === "function" && step.hasConfig()) {
17984
+ const configValue = step.getConfig();
17985
+ if (configValue) {
18978
17986
  try {
18979
- inputData = convertProtobufValueToJs(inputValue);
17987
+ configData = convertProtobufValueToJs(configValue);
18980
17988
  } catch (error) {
18981
17989
  console.warn("Failed to convert protobuf input value:", error);
18982
- inputData = inputValue;
18983
- }
18984
- }
18985
- } else if (step.input) {
18986
- const inputValue = step.input;
18987
- if (typeof inputValue === "object" && !inputValue.getKindCase) {
18988
- inputData = inputValue;
18989
- } else {
18990
- try {
18991
- inputData = convertProtobufValueToJs(inputValue);
18992
- } catch (error) {
18993
- inputData = inputValue;
17990
+ configData = configValue;
18994
17991
  }
18995
17992
  }
18996
17993
  }
@@ -19011,7 +18008,7 @@ var Step = class _Step {
19011
18008
  error: getError(),
19012
18009
  log: getLog(),
19013
18010
  inputsList: getInputsList(),
19014
- input: inputData,
18011
+ config: configData,
19015
18012
  output: _Step.getOutput(step),
19016
18013
  startAt: getStartAt(),
19017
18014
  endAt: getEndAt()
@@ -19091,6 +18088,7 @@ var secret_default = Secret;
19091
18088
 
19092
18089
  // src/index.ts
19093
18090
  var import_types20 = require("@avaprotocol/types");
18091
+ var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
19094
18092
  var import_types21 = require("@avaprotocol/types");
19095
18093
  var BaseClient = class {
19096
18094
  constructor(opts) {
@@ -19621,30 +18619,43 @@ var Client = class extends BaseClient {
19621
18619
  switch (triggerData.type) {
19622
18620
  case import_types20.TriggerType.FixedTime: {
19623
18621
  const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
19624
- fixedTimeOutput.setTimestamp(triggerData.timestamp);
19625
- fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
18622
+ const triggerOutputData = {
18623
+ timestamp: triggerData.timestamp,
18624
+ timestampIso: triggerData.timestampIso
18625
+ };
18626
+ const dataValue = new google_protobuf_struct_pb.Value();
18627
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
18628
+ fixedTimeOutput.setData(dataValue);
19626
18629
  request.setFixedTimeTrigger(fixedTimeOutput);
19627
18630
  break;
19628
18631
  }
19629
18632
  case import_types20.TriggerType.Cron: {
19630
18633
  const cronOutput = new avs_pb22.CronTrigger.Output();
19631
- cronOutput.setTimestamp(triggerData.timestamp);
19632
- cronOutput.setTimestampIso(triggerData.timestampIso);
18634
+ const triggerOutputData = {
18635
+ timestamp: triggerData.timestamp,
18636
+ timestampIso: triggerData.timestampIso
18637
+ };
18638
+ const dataValue = new google_protobuf_struct_pb.Value();
18639
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
18640
+ cronOutput.setData(dataValue);
19633
18641
  request.setCronTrigger(cronOutput);
19634
18642
  break;
19635
18643
  }
19636
18644
  case import_types20.TriggerType.Block: {
19637
18645
  const blockData = triggerData;
19638
18646
  const blockOutput = new avs_pb22.BlockTrigger.Output();
19639
- blockOutput.setBlockNumber(blockData.blockNumber);
19640
- if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
19641
- if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
19642
- if (blockData.parentHash)
19643
- blockOutput.setParentHash(blockData.parentHash);
19644
- if (blockData.difficulty)
19645
- blockOutput.setDifficulty(blockData.difficulty);
19646
- if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
19647
- if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
18647
+ const triggerOutputData = {
18648
+ blockNumber: blockData.blockNumber,
18649
+ blockHash: blockData.blockHash || "",
18650
+ timestamp: blockData.timestamp || 0,
18651
+ parentHash: blockData.parentHash || "",
18652
+ difficulty: blockData.difficulty || "",
18653
+ gasLimit: blockData.gasLimit || 0,
18654
+ gasUsed: blockData.gasUsed || 0
18655
+ };
18656
+ const dataValue = new google_protobuf_struct_pb.Value();
18657
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
18658
+ blockOutput.setData(dataValue);
19648
18659
  request.setBlockTrigger(blockOutput);
19649
18660
  break;
19650
18661
  }
@@ -19665,18 +18676,6 @@ var Client = class extends BaseClient {
19665
18676
  const protobufValue = convertJSValueToProtobuf(manualData.data);
19666
18677
  manualOutput.setData(protobufValue);
19667
18678
  }
19668
- if (manualData.headers) {
19669
- const headersMap = manualOutput.getHeadersMap();
19670
- Object.entries(manualData.headers).forEach(([key, value]) => {
19671
- headersMap.set(key, value);
19672
- });
19673
- }
19674
- if (manualData.pathParams) {
19675
- const pathParamsMap = manualOutput.getPathparamsMap();
19676
- Object.entries(manualData.pathParams).forEach(([key, value]) => {
19677
- pathParamsMap.set(key, value);
19678
- });
19679
- }
19680
18679
  request.setManualTrigger(manualOutput);
19681
18680
  break;
19682
18681
  }