@avaprotocol/sdk-js 2.5.2-dev.1 → 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 +597 -1600
  4. package/dist/index.mjs +612 -1603
  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 +33 -44
  44. package/package.json +2 -2
package/dist/index.mjs 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() {
1927
+ proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
2129
1928
  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() {
2147
- 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,52 +3299,44 @@ 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() {
3730
- return (
3731
- /** @type {string} */
3732
- jspb.Message.getFieldWithDefault(this, 1, "")
3733
- );
3734
- };
3735
- proto.aggregator.ETHTransferNode.Output.prototype.setTransactionHash = function(value) {
3736
- return jspb.Message.setProto3StringField(this, 1, value);
3737
- };
3738
- proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
3311
+ proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
3739
3312
  return (
3740
- /** @type{?proto.aggregator.ETHTransferNode.Config} */
3741
- jspb.Message.getWrapperField(this, proto.aggregator.ETHTransferNode.Config, 1)
3313
+ /** @type{?proto.google.protobuf.Value} */
3314
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
3742
3315
  );
3743
3316
  };
3744
- proto.aggregator.ETHTransferNode.prototype.setConfig = function(value) {
3317
+ proto.aggregator.ETHTransferNode.Output.prototype.setData = function(value) {
3745
3318
  return jspb.Message.setWrapperField(this, 1, value);
3746
3319
  };
3747
- proto.aggregator.ETHTransferNode.prototype.clearConfig = function() {
3748
- return this.setConfig(void 0);
3320
+ proto.aggregator.ETHTransferNode.Output.prototype.clearData = function() {
3321
+ return this.setData(void 0);
3749
3322
  };
3750
- proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
3323
+ proto.aggregator.ETHTransferNode.Output.prototype.hasData = function() {
3751
3324
  return jspb.Message.getField(this, 1) != null;
3752
3325
  };
3753
- proto.aggregator.ETHTransferNode.prototype.getInput = function() {
3326
+ proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
3754
3327
  return (
3755
- /** @type{?proto.google.protobuf.Value} */
3756
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
3328
+ /** @type{?proto.aggregator.ETHTransferNode.Config} */
3329
+ jspb.Message.getWrapperField(this, proto.aggregator.ETHTransferNode.Config, 1)
3757
3330
  );
3758
3331
  };
3759
- proto.aggregator.ETHTransferNode.prototype.setInput = function(value) {
3760
- return jspb.Message.setWrapperField(this, 2, value);
3332
+ proto.aggregator.ETHTransferNode.prototype.setConfig = function(value) {
3333
+ return jspb.Message.setWrapperField(this, 1, value);
3761
3334
  };
3762
- proto.aggregator.ETHTransferNode.prototype.clearInput = function() {
3763
- return this.setInput(void 0);
3335
+ proto.aggregator.ETHTransferNode.prototype.clearConfig = function() {
3336
+ return this.setConfig(void 0);
3764
3337
  };
3765
- proto.aggregator.ETHTransferNode.prototype.hasInput = function() {
3766
- return jspb.Message.getField(this, 2) != null;
3338
+ proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
3339
+ return jspb.Message.getField(this, 1) != null;
3767
3340
  };
3768
3341
  if (jspb.Message.GENERATE_TO_OBJECT) {
3769
3342
  proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
@@ -3771,8 +3344,7 @@ var require_avs_pb = __commonJS({
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;
@@ -8209,14 +7554,6 @@ var require_avs_pb = __commonJS({
8209
7554
  proto.aggregator.CustomCodeNode.serializeBinaryToWriter
8210
7555
  );
8211
7556
  }
8212
- f = message.getInput();
8213
- if (f != null) {
8214
- writer.writeMessage(
8215
- 19,
8216
- f,
8217
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
8218
- );
8219
- }
8220
7557
  };
8221
7558
  proto.aggregator.TaskNode.prototype.getId = function() {
8222
7559
  return (
@@ -8371,29 +7708,14 @@ var require_avs_pb = __commonJS({
8371
7708
  jspb.Message.getWrapperField(this, proto.aggregator.CustomCodeNode, 18)
8372
7709
  );
8373
7710
  };
8374
- proto.aggregator.TaskNode.prototype.setCustomCode = function(value) {
8375
- return jspb.Message.setOneofWrapperField(this, 18, proto.aggregator.TaskNode.oneofGroups_[0], value);
8376
- };
8377
- proto.aggregator.TaskNode.prototype.clearCustomCode = function() {
8378
- return this.setCustomCode(void 0);
8379
- };
8380
- proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
8381
- return jspb.Message.getField(this, 18) != null;
8382
- };
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);
7711
+ proto.aggregator.TaskNode.prototype.setCustomCode = function(value) {
7712
+ return jspb.Message.setOneofWrapperField(this, 18, proto.aggregator.TaskNode.oneofGroups_[0], value);
8391
7713
  };
8392
- proto.aggregator.TaskNode.prototype.clearInput = function() {
8393
- return this.setInput(void 0);
7714
+ proto.aggregator.TaskNode.prototype.clearCustomCode = function() {
7715
+ return this.setCustomCode(void 0);
8394
7716
  };
8395
- proto.aggregator.TaskNode.prototype.hasInput = function() {
8396
- return jspb.Message.getField(this, 19) != null;
7717
+ proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
7718
+ return jspb.Message.getField(this, 18) != null;
8397
7719
  };
8398
7720
  proto.aggregator.Execution.repeatedFields_ = [8];
8399
7721
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -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() {
@@ -16793,11 +16115,17 @@ var Trigger = class {
16793
16115
  this.type = props.type;
16794
16116
  this.data = props.data;
16795
16117
  this.output = props.output;
16796
- this.input = props.input;
16797
16118
  }
16798
16119
  toRequest() {
16799
16120
  throw new Error("Method not implemented.");
16800
16121
  }
16122
+ static fromResponse(raw) {
16123
+ const obj = raw.toObject();
16124
+ return new this({
16125
+ // eslint-disable-line @typescript-eslint/no-explicit-any
16126
+ ...obj
16127
+ });
16128
+ }
16801
16129
  getOutput() {
16802
16130
  return this.output;
16803
16131
  }
@@ -16807,14 +16135,163 @@ var Trigger = class {
16807
16135
  name: this.name,
16808
16136
  type: this.type,
16809
16137
  data: this.data,
16810
- output: this.output,
16811
- input: this.input
16138
+ output: this.output
16812
16139
  };
16813
16140
  }
16814
16141
  };
16815
16142
 
16816
16143
  // src/models/trigger/block.ts
16817
- import { TriggerType as TriggerType3 } from "@avaprotocol/types";
16144
+ import {
16145
+ TriggerType as TriggerType2
16146
+ } from "@avaprotocol/types";
16147
+ var BlockTrigger2 = class _BlockTrigger extends Trigger {
16148
+ constructor(props) {
16149
+ super({ ...props, type: TriggerType2.Block, data: props.data });
16150
+ }
16151
+ toRequest() {
16152
+ const request = new avs_pb2.TaskTrigger();
16153
+ request.setName(this.name);
16154
+ request.setId(this.id);
16155
+ request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
16156
+ if (!this.data) {
16157
+ throw new Error(`Trigger data is missing for block`);
16158
+ }
16159
+ const blockData = this.data;
16160
+ if (blockData.interval === null || blockData.interval === void 0) {
16161
+ throw new Error("Interval is required for block trigger");
16162
+ }
16163
+ if (!Number.isInteger(blockData.interval)) {
16164
+ throw new Error(`BlockTrigger interval must be an integer, got: ${blockData.interval}`);
16165
+ }
16166
+ if (blockData.interval <= 0) {
16167
+ throw new Error(`Interval must be greater than 0`);
16168
+ }
16169
+ const trigger = new avs_pb2.BlockTrigger();
16170
+ const config = new avs_pb2.BlockTrigger.Config();
16171
+ config.setInterval(blockData.interval);
16172
+ trigger.setConfig(config);
16173
+ request.setBlock(trigger);
16174
+ return request;
16175
+ }
16176
+ static fromResponse(raw) {
16177
+ const obj = raw.toObject();
16178
+ let data = { interval: 0 };
16179
+ if (raw.getBlock() && raw.getBlock().hasConfig()) {
16180
+ const config = raw.getBlock().getConfig();
16181
+ if (config) {
16182
+ data = {
16183
+ interval: config.getInterval() || 0
16184
+ };
16185
+ }
16186
+ }
16187
+ return new _BlockTrigger({
16188
+ ...obj,
16189
+ type: TriggerType2.Block,
16190
+ data
16191
+ });
16192
+ }
16193
+ /**
16194
+ * Convert raw data from runNodeWithInputs response to BlockOutput format
16195
+ * @param rawData - The raw data from the gRPC response
16196
+ * @returns {BlockTriggerOutput | undefined} - The converted data
16197
+ */
16198
+ getOutput() {
16199
+ return this.output;
16200
+ }
16201
+ /**
16202
+ * Extract output data from RunTriggerResp for block triggers
16203
+ * @param outputData - The RunTriggerResp containing block trigger output
16204
+ * @returns Plain JavaScript object with block trigger data
16205
+ */
16206
+ static fromOutputData(outputData) {
16207
+ const blockOutput = outputData.getBlockTrigger();
16208
+ if (!blockOutput) return null;
16209
+ const dataValue = blockOutput.getData();
16210
+ if (!dataValue) return null;
16211
+ const result = dataValue.toJavaScript();
16212
+ return result;
16213
+ }
16214
+ };
16215
+ var block_default = BlockTrigger2;
16216
+
16217
+ // src/models/trigger/cron.ts
16218
+ var avs_pb3 = __toESM(require_avs_pb());
16219
+ import {
16220
+ TriggerType as TriggerType4
16221
+ } from "@avaprotocol/types";
16222
+ var CronTrigger2 = class _CronTrigger extends Trigger {
16223
+ constructor(props) {
16224
+ super({ ...props, type: TriggerType4.Cron, data: props.data });
16225
+ }
16226
+ toRequest() {
16227
+ const request = new avs_pb3.TaskTrigger();
16228
+ request.setName(this.name);
16229
+ request.setId(this.id);
16230
+ request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
16231
+ if (!this.data) {
16232
+ throw new Error(`Trigger data is missing for ${this.type}`);
16233
+ }
16234
+ const cronData = this.data;
16235
+ if (cronData.schedules === null || cronData.schedules === void 0) {
16236
+ throw new Error("Schedules are required for cron trigger");
16237
+ }
16238
+ if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
16239
+ throw new Error("Schedules are required for cron trigger");
16240
+ }
16241
+ const trigger = new avs_pb3.CronTrigger();
16242
+ const config = new avs_pb3.CronTrigger.Config();
16243
+ config.setSchedulesList(cronData.schedules);
16244
+ trigger.setConfig(config);
16245
+ request.setCron(trigger);
16246
+ return request;
16247
+ }
16248
+ static fromResponse(raw) {
16249
+ const obj = raw.toObject();
16250
+ let data = { schedules: [] };
16251
+ if (raw.getCron() && raw.getCron().hasConfig()) {
16252
+ const config = raw.getCron().getConfig();
16253
+ if (config) {
16254
+ data = {
16255
+ schedules: config.getSchedulesList() || []
16256
+ };
16257
+ }
16258
+ }
16259
+ return new _CronTrigger({
16260
+ ...obj,
16261
+ type: TriggerType4.Cron,
16262
+ data
16263
+ });
16264
+ }
16265
+ /**
16266
+ * Convert raw data from runTrigger response to CronOutput format
16267
+ * @param rawData - The raw data from the gRPC response
16268
+ * @returns {CronTriggerOutput | undefined} - The converted data
16269
+ */
16270
+ getOutput() {
16271
+ return this.output;
16272
+ }
16273
+ /**
16274
+ * Extract output data from RunTriggerResp for cron triggers
16275
+ * Updated to handle timestamp and timestamp_iso instead of epoch
16276
+ * @param outputData - The RunTriggerResp containing cron trigger output
16277
+ * @returns Plain JavaScript object with cron trigger data
16278
+ */
16279
+ static fromOutputData(outputData) {
16280
+ const cronOutput = outputData.getCronTrigger();
16281
+ if (!cronOutput) return null;
16282
+ const dataValue = cronOutput.getData();
16283
+ if (!dataValue) return null;
16284
+ const result = dataValue.toJavaScript();
16285
+ return result;
16286
+ }
16287
+ };
16288
+ var cron_default = CronTrigger2;
16289
+
16290
+ // src/models/trigger/event.ts
16291
+ var avs_pb4 = __toESM(require_avs_pb());
16292
+ import {
16293
+ TriggerType as TriggerType7
16294
+ } from "@avaprotocol/types";
16818
16295
 
16819
16296
  // src/utils.ts
16820
16297
  import {
@@ -16822,7 +16299,7 @@ import {
16822
16299
  Struct as ProtobufStruct,
16823
16300
  ListValue as ProtobufListValue
16824
16301
  } from "google-protobuf/google/protobuf/struct_pb";
16825
- import { TriggerType, NodeType } from "@avaprotocol/types";
16302
+ import { TriggerType as TriggerType5, NodeType } from "@avaprotocol/types";
16826
16303
  function convertProtobufValueToJs(value) {
16827
16304
  if (!value) {
16828
16305
  return void 0;
@@ -16886,22 +16363,22 @@ function convertJSValueToProtobuf(value) {
16886
16363
  function convertProtobufTriggerTypeToSdk(protobufType) {
16887
16364
  switch (protobufType) {
16888
16365
  case "TRIGGER_TYPE_MANUAL":
16889
- return TriggerType.Manual;
16366
+ return TriggerType5.Manual;
16890
16367
  // "manualTrigger"
16891
16368
  case "TRIGGER_TYPE_FIXED_TIME":
16892
- return TriggerType.FixedTime;
16369
+ return TriggerType5.FixedTime;
16893
16370
  // "fixedTimeTrigger"
16894
16371
  case "TRIGGER_TYPE_CRON":
16895
- return TriggerType.Cron;
16372
+ return TriggerType5.Cron;
16896
16373
  // "cronTrigger"
16897
16374
  case "TRIGGER_TYPE_BLOCK":
16898
- return TriggerType.Block;
16375
+ return TriggerType5.Block;
16899
16376
  // "blockTrigger"
16900
16377
  case "TRIGGER_TYPE_EVENT":
16901
- return TriggerType.Event;
16378
+ return TriggerType5.Event;
16902
16379
  // "eventTrigger"
16903
16380
  case "TRIGGER_TYPE_UNSPECIFIED":
16904
- return TriggerType.Unspecified;
16381
+ return TriggerType5.Unspecified;
16905
16382
  // "unspecified"
16906
16383
  default:
16907
16384
  console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
@@ -16939,235 +16416,67 @@ function convertProtobufNodeTypeToSdk(protobufType) {
16939
16416
  // "loop"
16940
16417
  case "NODE_TYPE_UNSPECIFIED":
16941
16418
  return NodeType.Unspecified;
16942
- // "unspecified"
16943
- default:
16944
- console.warn(`Unknown node type: ${protobufType}, using raw value`);
16945
- return protobufType;
16946
- }
16947
- }
16948
- function convertProtobufStepTypeToSdk(protobufType) {
16949
- if (protobufType.startsWith("TRIGGER_TYPE_")) {
16950
- return convertProtobufTriggerTypeToSdk(protobufType);
16951
- } else if (protobufType.startsWith("NODE_TYPE_")) {
16952
- return convertProtobufNodeTypeToSdk(protobufType);
16953
- } else {
16954
- console.warn(`Unknown step type: ${protobufType}, using raw value`);
16955
- return protobufType;
16956
- }
16957
- }
16958
- function convertInputToProtobuf(input) {
16959
- if (!input) {
16960
- return void 0;
16961
- }
16962
- return convertJSValueToProtobuf(input);
16963
- }
16964
- function extractInputFromProtobuf(inputValue) {
16965
- if (!inputValue) {
16966
- return void 0;
16967
- }
16968
- if (typeof inputValue === "object" && !inputValue.toJavaScript) {
16969
- if (!Array.isArray(inputValue)) {
16970
- return inputValue;
16971
- }
16972
- return void 0;
16973
- }
16974
- try {
16975
- const protobufValue = inputValue;
16976
- const inputJavaScript = protobufValue.toJavaScript();
16977
- if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
16978
- return inputJavaScript;
16979
- }
16980
- } catch (error) {
16981
- if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
16982
- return inputValue;
16983
- }
16984
- }
16985
- return void 0;
16986
- }
16987
- function cleanGrpcErrorMessage(message) {
16988
- if (!message) return message;
16989
- const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
16990
- const match = message.match(grpcErrorPattern);
16991
- if (match && match[1]) {
16992
- return match[1].trim();
16993
- }
16994
- const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
16995
- const statusMatch = message.match(statusCodePattern);
16996
- if (statusMatch && statusMatch[1]) {
16997
- return statusMatch[1].trim();
16998
- }
16999
- return message;
17000
- }
17001
-
17002
- // src/models/trigger/block.ts
17003
- var BlockTrigger2 = class _BlockTrigger extends Trigger {
17004
- constructor(props) {
17005
- super({ ...props, type: TriggerType3.Block, data: props.data });
17006
- }
17007
- toRequest() {
17008
- const request = new avs_pb2.TaskTrigger();
17009
- request.setName(this.name);
17010
- request.setId(this.id);
17011
- request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
17012
- if (!this.data) {
17013
- throw new Error(`Trigger data is missing for block`);
17014
- }
17015
- const blockData = this.data;
17016
- if (blockData.interval === null || blockData.interval === void 0) {
17017
- throw new Error("Interval is required for block trigger");
17018
- }
17019
- if (blockData.interval <= 0) {
17020
- throw new Error("Interval must be greater than 0");
17021
- }
17022
- const trigger = new avs_pb2.BlockTrigger();
17023
- const config = new avs_pb2.BlockTrigger.Config();
17024
- config.setInterval(blockData.interval);
17025
- trigger.setConfig(config);
17026
- const inputValue = convertInputToProtobuf(this.input);
17027
- if (inputValue) {
17028
- trigger.setInput(inputValue);
17029
- }
17030
- request.setBlock(trigger);
17031
- return request;
17032
- }
17033
- static fromResponse(raw) {
17034
- const obj = raw.toObject();
17035
- let data = { interval: 0 };
17036
- let input = void 0;
17037
- if (raw.getBlock() && raw.getBlock().hasConfig()) {
17038
- const config = raw.getBlock().getConfig();
17039
- if (config) {
17040
- data = {
17041
- interval: config.getInterval() || 0
17042
- };
17043
- }
17044
- const blockTrigger = raw.getBlock();
17045
- if (blockTrigger.hasInput()) {
17046
- input = extractInputFromProtobuf(blockTrigger.getInput());
17047
- }
17048
- }
17049
- return new _BlockTrigger({
17050
- ...obj,
17051
- type: TriggerType3.Block,
17052
- data,
17053
- input
17054
- });
17055
- }
17056
- /**
17057
- * Convert raw data from runNodeWithInputs response to BlockOutput format
17058
- * @param rawData - The raw data from the gRPC response
17059
- * @returns {BlockTriggerOutput | undefined} - The converted data
17060
- */
17061
- getOutput() {
17062
- return this.output;
16419
+ // "unspecified"
16420
+ default:
16421
+ console.warn(`Unknown node type: ${protobufType}, using raw value`);
16422
+ return protobufType;
17063
16423
  }
17064
- /**
17065
- * Extract output data from RunTriggerResp for block triggers
17066
- * @param outputData - The RunTriggerResp containing block trigger output
17067
- * @returns Plain JavaScript object with block trigger data
17068
- */
17069
- static fromOutputData(outputData) {
17070
- const blockOutput = outputData.getBlockTrigger();
17071
- return blockOutput?.toObject() || null;
16424
+ }
16425
+ function convertProtobufStepTypeToSdk(protobufType) {
16426
+ if (protobufType.startsWith("TRIGGER_TYPE_")) {
16427
+ return convertProtobufTriggerTypeToSdk(protobufType);
16428
+ } else if (protobufType.startsWith("NODE_TYPE_")) {
16429
+ return convertProtobufNodeTypeToSdk(protobufType);
16430
+ } else {
16431
+ console.warn(`Unknown step type: ${protobufType}, using raw value`);
16432
+ return protobufType;
17072
16433
  }
17073
- };
17074
- var block_default = BlockTrigger2;
17075
-
17076
- // src/models/trigger/cron.ts
17077
- var avs_pb3 = __toESM(require_avs_pb());
17078
- import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
17079
- import { TriggerType as TriggerType5 } from "@avaprotocol/types";
17080
- var CronTrigger2 = class _CronTrigger extends Trigger {
17081
- constructor(props) {
17082
- super({ ...props, type: TriggerType5.Cron, data: props.data });
16434
+ }
16435
+ function convertInputToProtobuf(input) {
16436
+ if (!input) {
16437
+ return void 0;
17083
16438
  }
17084
- toRequest() {
17085
- const request = new avs_pb3.TaskTrigger();
17086
- request.setName(this.name);
17087
- request.setId(this.id);
17088
- request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
17089
- if (!this.data) {
17090
- throw new Error(`Trigger data is missing for ${this.type}`);
17091
- }
17092
- const cronData = this.data;
17093
- if (cronData.schedules === null || cronData.schedules === void 0) {
17094
- throw new Error("Schedules are required for cron trigger");
17095
- }
17096
- if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
17097
- throw new Error("Schedules are required for cron trigger");
17098
- }
17099
- const trigger = new avs_pb3.CronTrigger();
17100
- const config = new avs_pb3.CronTrigger.Config();
17101
- config.setSchedulesList(cronData.schedules);
17102
- trigger.setConfig(config);
17103
- if (this.input) {
17104
- try {
17105
- const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
17106
- trigger.setInput(inputValue);
17107
- } catch (error) {
17108
- throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
17109
- }
16439
+ return convertJSValueToProtobuf(input);
16440
+ }
16441
+ function extractInputFromProtobuf(inputValue) {
16442
+ if (!inputValue) {
16443
+ return void 0;
16444
+ }
16445
+ if (typeof inputValue === "object" && !inputValue.toJavaScript) {
16446
+ if (!Array.isArray(inputValue)) {
16447
+ return inputValue;
17110
16448
  }
17111
- request.setCron(trigger);
17112
- return request;
16449
+ return void 0;
17113
16450
  }
17114
- static fromResponse(raw) {
17115
- const obj = raw.toObject();
17116
- let data = { schedules: [] };
17117
- if (raw.getCron() && raw.getCron().hasConfig()) {
17118
- const config = raw.getCron().getConfig();
17119
- if (config) {
17120
- data = {
17121
- schedules: config.getSchedulesList() || []
17122
- };
17123
- }
16451
+ try {
16452
+ const protobufValue = inputValue;
16453
+ const inputJavaScript = protobufValue.toJavaScript();
16454
+ if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
16455
+ return inputJavaScript;
17124
16456
  }
17125
- let input;
17126
- if (raw.getCron() && raw.getCron().hasInput()) {
17127
- const inputValue = raw.getCron().getInput();
17128
- if (inputValue) {
17129
- input = inputValue.toObject();
17130
- }
16457
+ } catch (error) {
16458
+ if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
16459
+ return inputValue;
17131
16460
  }
17132
- return new _CronTrigger({
17133
- ...obj,
17134
- type: TriggerType5.Cron,
17135
- data,
17136
- input
17137
- // ✨ NEW: Include input data
17138
- });
17139
16461
  }
17140
- /**
17141
- * Convert raw data from runTrigger response to CronOutput format
17142
- * @param rawData - The raw data from the gRPC response
17143
- * @returns {CronTriggerOutput | undefined} - The converted data
17144
- */
17145
- getOutput() {
17146
- return this.output;
16462
+ return void 0;
16463
+ }
16464
+ function cleanGrpcErrorMessage(message) {
16465
+ if (!message) return message;
16466
+ const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
16467
+ const match = message.match(grpcErrorPattern);
16468
+ if (match && match[1]) {
16469
+ return match[1].trim();
17147
16470
  }
17148
- /**
17149
- * Extract output data from RunTriggerResp for cron triggers
17150
- * Updated to handle timestamp and timestamp_iso instead of epoch
17151
- * @param outputData - The RunTriggerResp containing cron trigger output
17152
- * @returns Plain JavaScript object with cron trigger data
17153
- */
17154
- static fromOutputData(outputData) {
17155
- const cronOutput = outputData.getCronTrigger();
17156
- if (!cronOutput) return null;
17157
- const outputObj = cronOutput.toObject();
17158
- return {
17159
- timestamp: outputObj.timestamp,
17160
- timestampIso: outputObj.timestampIso
17161
- };
16471
+ const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
16472
+ const statusMatch = message.match(statusCodePattern);
16473
+ if (statusMatch && statusMatch[1]) {
16474
+ return statusMatch[1].trim();
17162
16475
  }
17163
- };
17164
- var cron_default = CronTrigger2;
16476
+ return message;
16477
+ }
17165
16478
 
17166
16479
  // src/models/trigger/event.ts
17167
- var avs_pb4 = __toESM(require_avs_pb());
17168
- import {
17169
- TriggerType as TriggerType7
17170
- } from "@avaprotocol/types";
17171
16480
  var EventTrigger2 = class _EventTrigger extends Trigger {
17172
16481
  constructor(props) {
17173
16482
  super({ ...props, type: TriggerType7.Event, data: props.data });
@@ -17240,17 +16549,12 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
17240
16549
  });
17241
16550
  config.setQueriesList(queryMessages);
17242
16551
  trigger.setConfig(config);
17243
- const inputValue = convertInputToProtobuf(this.input);
17244
- if (inputValue) {
17245
- trigger.setInput(inputValue);
17246
- }
17247
16552
  request.setEvent(trigger);
17248
16553
  return request;
17249
16554
  }
17250
16555
  static fromResponse(raw) {
17251
16556
  const obj = raw.toObject();
17252
16557
  let data = { queries: [] };
17253
- let input = void 0;
17254
16558
  if (raw.getEvent() && raw.getEvent().hasConfig()) {
17255
16559
  const config = raw.getEvent().getConfig();
17256
16560
  if (config) {
@@ -17300,15 +16604,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
17300
16604
  }
17301
16605
  data = { queries };
17302
16606
  }
17303
- if (raw.getEvent().hasInput()) {
17304
- input = extractInputFromProtobuf(raw.getEvent().getInput());
17305
- }
17306
16607
  }
17307
16608
  return new _EventTrigger({
17308
16609
  ...obj,
17309
16610
  type: TriggerType7.Event,
17310
- data,
17311
- input
16611
+ data
17312
16612
  });
17313
16613
  }
17314
16614
  /**
@@ -17351,7 +16651,9 @@ var event_default = EventTrigger2;
17351
16651
 
17352
16652
  // src/models/trigger/fixedTime.ts
17353
16653
  var avs_pb5 = __toESM(require_avs_pb());
17354
- import { TriggerType as TriggerType9 } from "@avaprotocol/types";
16654
+ import {
16655
+ TriggerType as TriggerType9
16656
+ } from "@avaprotocol/types";
17355
16657
  var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17356
16658
  constructor(props) {
17357
16659
  super({ ...props, type: TriggerType9.FixedTime, data: props.data });
@@ -17366,19 +16668,16 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17366
16668
  }
17367
16669
  const trigger = new avs_pb5.FixedTimeTrigger();
17368
16670
  const config = new avs_pb5.FixedTimeTrigger.Config();
17369
- config.setEpochsList(this.data.epochsList || []);
16671
+ config.setEpochsList(
16672
+ this.data.epochsList || []
16673
+ );
17370
16674
  trigger.setConfig(config);
17371
- const inputValue = convertInputToProtobuf(this.input);
17372
- if (inputValue) {
17373
- trigger.setInput(inputValue);
17374
- }
17375
16675
  request.setFixedTime(trigger);
17376
16676
  return request;
17377
16677
  }
17378
16678
  static fromResponse(raw) {
17379
16679
  const obj = raw.toObject();
17380
16680
  let data = { epochsList: [] };
17381
- let input = void 0;
17382
16681
  if (raw.getFixedTime() && raw.getFixedTime().hasConfig()) {
17383
16682
  const config = raw.getFixedTime().getConfig();
17384
16683
  if (config) {
@@ -17386,15 +16685,11 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17386
16685
  epochsList: config.getEpochsList() || []
17387
16686
  };
17388
16687
  }
17389
- if (raw.getFixedTime().hasInput()) {
17390
- input = extractInputFromProtobuf(raw.getFixedTime().getInput());
17391
- }
17392
16688
  }
17393
16689
  return new _FixedTimeTrigger({
17394
16690
  ...obj,
17395
16691
  type: TriggerType9.FixedTime,
17396
- data,
17397
- input
16692
+ data
17398
16693
  });
17399
16694
  }
17400
16695
  /**
@@ -17414,11 +16709,10 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17414
16709
  static fromOutputData(outputData) {
17415
16710
  const fixedTimeOutput = outputData.getFixedTimeTrigger();
17416
16711
  if (!fixedTimeOutput) return null;
17417
- const outputObj = fixedTimeOutput.toObject();
17418
- return {
17419
- timestamp: outputObj.timestamp,
17420
- timestampIso: outputObj.timestampIso
17421
- };
16712
+ const dataValue = fixedTimeOutput.getData();
16713
+ if (!dataValue) return null;
16714
+ const result = dataValue.toJavaScript();
16715
+ return result;
17422
16716
  }
17423
16717
  };
17424
16718
  var fixedTime_default = FixedTimeTrigger2;
@@ -17436,8 +16730,6 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17436
16730
  data: props.data,
17437
16731
  input: props.input
17438
16732
  });
17439
- this.headers = props.headers;
17440
- this.pathParams = props.pathParams;
17441
16733
  }
17442
16734
  toRequest() {
17443
16735
  const trigger = new avs_pb6.TaskTrigger();
@@ -17446,24 +16738,36 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17446
16738
  trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
17447
16739
  const manualTrigger = new avs_pb6.ManualTrigger();
17448
16740
  const config = new avs_pb6.ManualTrigger.Config();
17449
- const dataToSend = this.data ?? this.input;
17450
- if (dataToSend === null || dataToSend === void 0) {
16741
+ if (this.data === null || this.data === void 0) {
17451
16742
  throw new Error("ManualTrigger data is required");
17452
16743
  }
17453
- const inputValue = convertInputToProtobuf(dataToSend);
17454
- if (!inputValue) {
17455
- throw new Error("Failed to convert ManualTrigger data to protobuf format");
16744
+ let actualData = this.data;
16745
+ let headers = {};
16746
+ let pathParams = {};
16747
+ if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
16748
+ const dataObj = this.data;
16749
+ if ("data" in dataObj) {
16750
+ actualData = dataObj.data;
16751
+ headers = dataObj.headers || {};
16752
+ pathParams = dataObj.pathParams || {};
16753
+ }
16754
+ }
16755
+ const dataValue = convertInputToProtobuf(actualData);
16756
+ if (!dataValue) {
16757
+ throw new Error(
16758
+ "Failed to convert ManualTrigger data to protobuf format"
16759
+ );
17456
16760
  }
17457
- config.setData(inputValue);
17458
- if (this.headers && Object.keys(this.headers).length > 0) {
16761
+ config.setData(dataValue);
16762
+ if (Object.keys(headers).length > 0) {
17459
16763
  const headersMap = config.getHeadersMap();
17460
- Object.entries(this.headers).forEach(([key, value]) => {
16764
+ Object.entries(headers).forEach(([key, value]) => {
17461
16765
  headersMap.set(key, value);
17462
16766
  });
17463
16767
  }
17464
- if (this.pathParams && Object.keys(this.pathParams).length > 0) {
16768
+ if (Object.keys(pathParams).length > 0) {
17465
16769
  const pathParamsMap = config.getPathparamsMap();
17466
- Object.entries(this.pathParams).forEach(([key, value]) => {
16770
+ Object.entries(pathParams).forEach(([key, value]) => {
17467
16771
  pathParamsMap.set(key, value);
17468
16772
  });
17469
16773
  }
@@ -17473,45 +16777,25 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17473
16777
  }
17474
16778
  static fromResponse(raw) {
17475
16779
  const obj = raw.toObject();
17476
- let data = null;
17477
- const input = void 0;
17478
- let headers = void 0;
17479
- let pathParams = void 0;
16780
+ let actualData = null;
17480
16781
  const manualTrigger = raw.getManual();
17481
16782
  if (manualTrigger) {
17482
16783
  const config = manualTrigger.getConfig();
17483
16784
  if (config) {
17484
16785
  if (config.hasData()) {
17485
- data = extractInputFromProtobuf(config.getData());
17486
- }
17487
- const headersMapProto = config.getHeadersMap();
17488
- if (headersMapProto && headersMapProto.getLength() > 0) {
17489
- headers = {};
17490
- headersMapProto.forEach((value, key) => {
17491
- headers[key] = value;
17492
- });
17493
- }
17494
- const pathParamsMapProto = config.getPathparamsMap();
17495
- if (pathParamsMapProto && pathParamsMapProto.getLength() > 0) {
17496
- pathParams = {};
17497
- pathParamsMapProto.forEach((value, key) => {
17498
- pathParams[key] = value;
17499
- });
16786
+ actualData = extractInputFromProtobuf(config.getData());
17500
16787
  }
17501
16788
  }
17502
16789
  }
16790
+ const manualTriggerData = {
16791
+ data: actualData
16792
+ };
17503
16793
  return new _ManualTrigger({
17504
16794
  ...obj,
17505
16795
  type: TriggerType11.Manual,
17506
- data,
17507
- input,
17508
- headers,
17509
- pathParams
16796
+ data: manualTriggerData
17510
16797
  });
17511
16798
  }
17512
- getInputVariables() {
17513
- return this.input;
17514
- }
17515
16799
  /**
17516
16800
  * Extract output data from RunTriggerResp for manual triggers
17517
16801
  * @param outputData - The RunTriggerResp containing manual trigger output
@@ -17614,13 +16898,11 @@ var avs_pb8 = __toESM(require_avs_pb());
17614
16898
  import { NodeType as NodeType2, NodeTypeGoConverter } from "@avaprotocol/types";
17615
16899
  import _ from "lodash";
17616
16900
  var Node = class {
17617
- // Use JavaScript object type for internal storage
17618
16901
  constructor(props) {
17619
16902
  this.id = props.id;
17620
16903
  this.name = props.name;
17621
16904
  this.type = props.type;
17622
16905
  this.data = props.data;
17623
- this.input = props.input;
17624
16906
  }
17625
16907
  toRequest() {
17626
16908
  const request = new avs_pb8.TaskNode();
@@ -17633,13 +16915,8 @@ var Node = class {
17633
16915
  }
17634
16916
  static fromResponse(raw) {
17635
16917
  const obj = raw.toObject();
17636
- let input = void 0;
17637
- if (raw.hasInput()) {
17638
- input = raw.getInput().toObject();
17639
- }
17640
16918
  return new this({
17641
- ...obj,
17642
- input
16919
+ ...obj
17643
16920
  });
17644
16921
  }
17645
16922
  };
@@ -17688,15 +16965,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
17688
16965
  methodName: call.methodName
17689
16966
  })) || []
17690
16967
  };
17691
- let input = void 0;
17692
- if (raw.hasInput()) {
17693
- input = extractInputFromProtobuf(raw.getInput());
17694
- }
17695
16968
  return new _ContractWriteNode({
17696
16969
  ...obj,
17697
16970
  type: NodeType3.ContractWrite,
17698
- data,
17699
- input
16971
+ data
17700
16972
  });
17701
16973
  }
17702
16974
  toRequest() {
@@ -17706,10 +16978,6 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
17706
16978
  const node = _ContractWriteNode.createProtobufNode(
17707
16979
  this.data
17708
16980
  );
17709
- const inputValue = convertInputToProtobuf(this.input);
17710
- if (inputValue) {
17711
- request.setInput(inputValue);
17712
- }
17713
16981
  request.setContractWrite(node);
17714
16982
  return request;
17715
16983
  }
@@ -17753,15 +17021,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
17753
17021
  lang: rawConfig.lang,
17754
17022
  source: rawConfig.source
17755
17023
  };
17756
- let input = void 0;
17757
- if (raw.hasInput()) {
17758
- input = extractInputFromProtobuf(raw.getInput());
17759
- }
17760
17024
  return new _CustomCodeNode({
17761
17025
  ...obj,
17762
17026
  type: NodeType4.CustomCode,
17763
- data: convertedConfig,
17764
- input
17027
+ data: convertedConfig
17765
17028
  });
17766
17029
  }
17767
17030
  toRequest() {
@@ -17771,10 +17034,6 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
17771
17034
  const node = _CustomCodeNode.createProtobufNode(
17772
17035
  this.data
17773
17036
  );
17774
- const inputValue = convertInputToProtobuf(this.input);
17775
- if (inputValue) {
17776
- request.setInput(inputValue);
17777
- }
17778
17037
  request.setCustomCode(node);
17779
17038
  return request;
17780
17039
  }
@@ -17794,7 +17053,9 @@ var customCode_default = CustomCodeNode2;
17794
17053
 
17795
17054
  // src/models/node/graphqlQuery.ts
17796
17055
  var avs_pb11 = __toESM(require_avs_pb());
17797
- import { NodeType as NodeType5 } from "@avaprotocol/types";
17056
+ import {
17057
+ NodeType as NodeType5
17058
+ } from "@avaprotocol/types";
17798
17059
  var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17799
17060
  constructor(props) {
17800
17061
  super({
@@ -17824,12 +17085,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17824
17085
  }
17825
17086
  static fromResponse(raw) {
17826
17087
  const obj = raw.toObject();
17827
- const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
17828
17088
  return new _GraphQLQueryNode({
17829
17089
  ...obj,
17830
17090
  type: NodeType5.GraphQLQuery,
17831
- data: raw.getGraphqlQuery().getConfig().toObject(),
17832
- input
17091
+ data: raw.getGraphqlQuery().getConfig().toObject()
17833
17092
  });
17834
17093
  }
17835
17094
  toRequest() {
@@ -17839,10 +17098,6 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17839
17098
  const node = _GraphQLQueryNode.createProtobufNode(
17840
17099
  this.data
17841
17100
  );
17842
- const inputValue = convertInputToProtobuf(this.input);
17843
- if (inputValue) {
17844
- node.setInput(inputValue);
17845
- }
17846
17101
  request.setGraphqlQuery(node);
17847
17102
  return request;
17848
17103
  }
@@ -17884,10 +17139,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
17884
17139
  }
17885
17140
  static fromResponse(raw) {
17886
17141
  const obj = raw.toObject();
17887
- let input = void 0;
17888
- if (raw.hasInput()) {
17889
- input = extractInputFromProtobuf(raw.getInput());
17890
- }
17891
17142
  return new _RestAPINode({
17892
17143
  ...obj,
17893
17144
  type: NodeType6.RestAPI,
@@ -17903,9 +17154,7 @@ var RestAPINode2 = class _RestAPINode extends Node {
17903
17154
  });
17904
17155
  return headers;
17905
17156
  })()
17906
- },
17907
- input
17908
- // Include input data from top-level TaskNode
17157
+ }
17909
17158
  });
17910
17159
  }
17911
17160
  toRequest() {
@@ -17915,10 +17164,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
17915
17164
  const nodeData = _RestAPINode.createProtobufNode(
17916
17165
  this.data
17917
17166
  );
17918
- const inputValue = convertInputToProtobuf(this.input);
17919
- if (inputValue) {
17920
- request.setInput(inputValue);
17921
- }
17922
17167
  request.setRestApi(nodeData);
17923
17168
  return request;
17924
17169
  }
@@ -17983,15 +17228,10 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
17983
17228
  applyToFields: call.applyToFieldsList || []
17984
17229
  })) || []
17985
17230
  };
17986
- let input = void 0;
17987
- if (raw.hasInput()) {
17988
- input = extractInputFromProtobuf(raw.getInput());
17989
- }
17990
17231
  return new _ContractReadNode({
17991
17232
  ...obj,
17992
17233
  type: NodeType7.ContractRead,
17993
- data,
17994
- input
17234
+ data
17995
17235
  });
17996
17236
  }
17997
17237
  toRequest() {
@@ -18001,10 +17241,6 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
18001
17241
  const node = _ContractReadNode.createProtobufNode(
18002
17242
  this.data
18003
17243
  );
18004
- const inputValue = convertInputToProtobuf(this.input);
18005
- if (inputValue) {
18006
- request.setInput(inputValue);
18007
- }
18008
17244
  request.setContractRead(node);
18009
17245
  return request;
18010
17246
  }
@@ -18033,7 +17269,9 @@ var contractRead_default = ContractReadNode2;
18033
17269
 
18034
17270
  // src/models/node/ethTransfer.ts
18035
17271
  var avs_pb14 = __toESM(require_avs_pb());
18036
- import { NodeType as NodeType8 } from "@avaprotocol/types";
17272
+ import {
17273
+ NodeType as NodeType8
17274
+ } from "@avaprotocol/types";
18037
17275
  var ETHTransferNode2 = class _ETHTransferNode extends Node {
18038
17276
  constructor(props) {
18039
17277
  super({ ...props, type: NodeType8.ETHTransfer, data: props.data });
@@ -18053,12 +17291,11 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18053
17291
  }
18054
17292
  static fromResponse(raw) {
18055
17293
  const obj = raw.toObject();
18056
- const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
17294
+ const data = raw.getEthTransfer().getConfig().toObject();
18057
17295
  return new _ETHTransferNode({
18058
17296
  ...obj,
18059
17297
  type: NodeType8.ETHTransfer,
18060
- data: raw.getEthTransfer().getConfig().toObject(),
18061
- input
17298
+ data
18062
17299
  });
18063
17300
  }
18064
17301
  toRequest() {
@@ -18068,10 +17305,6 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18068
17305
  const node = _ETHTransferNode.createProtobufNode(
18069
17306
  this.data
18070
17307
  );
18071
- const inputValue = convertInputToProtobuf(this.input);
18072
- if (inputValue) {
18073
- node.setInput(inputValue);
18074
- }
18075
17308
  request.setEthTransfer(node);
18076
17309
  return request;
18077
17310
  }
@@ -18083,7 +17316,9 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18083
17316
  var ethTransfer_default = ETHTransferNode2;
18084
17317
 
18085
17318
  // src/models/node/branch.ts
18086
- import { NodeType as NodeType9 } from "@avaprotocol/types";
17319
+ import {
17320
+ NodeType as NodeType9
17321
+ } from "@avaprotocol/types";
18087
17322
  var avs_pb15 = __toESM(require_avs_pb());
18088
17323
  var BranchNode2 = class _BranchNode extends Node {
18089
17324
  constructor(props) {
@@ -18099,12 +17334,10 @@ var BranchNode2 = class _BranchNode extends Node {
18099
17334
  expression: condition.expression
18100
17335
  })) || []
18101
17336
  };
18102
- const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
18103
17337
  return new _BranchNode({
18104
17338
  ...obj,
18105
17339
  type: NodeType9.Branch,
18106
- data,
18107
- input
17340
+ data
18108
17341
  });
18109
17342
  }
18110
17343
  toRequest() {
@@ -18126,10 +17359,6 @@ var BranchNode2 = class _BranchNode extends Node {
18126
17359
  config.setConditionsList(conditionsList);
18127
17360
  }
18128
17361
  node.setConfig(config);
18129
- const inputValue = convertInputToProtobuf(this.input);
18130
- if (inputValue) {
18131
- node.setInput(inputValue);
18132
- }
18133
17362
  request.setBranch(node);
18134
17363
  return request;
18135
17364
  }
@@ -18146,19 +17375,16 @@ var avs_pb16 = __toESM(require_avs_pb());
18146
17375
  import {
18147
17376
  NodeType as NodeType10
18148
17377
  } from "@avaprotocol/types";
18149
- import { Value as Value2 } from "google-protobuf/google/protobuf/struct_pb";
18150
17378
  var FilterNode2 = class _FilterNode extends Node {
18151
17379
  constructor(props) {
18152
17380
  super({ ...props, type: NodeType10.Filter, data: props.data });
18153
17381
  }
18154
17382
  static fromResponse(raw) {
18155
17383
  const obj = raw.toObject();
18156
- const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
18157
17384
  return new _FilterNode({
18158
17385
  ...obj,
18159
17386
  type: NodeType10.Filter,
18160
- data: raw.getFilter().getConfig().toObject(),
18161
- input
17387
+ data: raw.getFilter().getConfig().toObject()
18162
17388
  });
18163
17389
  }
18164
17390
  toRequest() {
@@ -18168,12 +17394,8 @@ var FilterNode2 = class _FilterNode extends Node {
18168
17394
  const node = new avs_pb16.FilterNode();
18169
17395
  const config = new avs_pb16.FilterNode.Config();
18170
17396
  config.setExpression(this.data.expression);
18171
- config.setSourceId(this.data.sourceId || "");
17397
+ config.setInputNodeName(this.data.inputNodeName || "");
18172
17398
  node.setConfig(config);
18173
- const inputValue = convertInputToProtobuf(this.input);
18174
- if (inputValue) {
18175
- node.setInput(inputValue);
18176
- }
18177
17399
  request.setFilter(node);
18178
17400
  return request;
18179
17401
  }
@@ -18186,11 +17408,16 @@ var FilterNode2 = class _FilterNode extends Node {
18186
17408
  if (!anyData) {
18187
17409
  throw new Error("FilterNode output data.getData() is missing");
18188
17410
  }
18189
- const value = Value2.deserializeBinary(anyData.getValue_asU8());
18190
- const result = value.toJavaScript();
18191
- if (result && typeof result === "object" && !Array.isArray(result) && result.data) {
17411
+ const result = anyData.toJavaScript();
17412
+ if (result && typeof result === "object" && !Array.isArray(result) && result.data && result.data.data && Array.isArray(result.data.data)) {
17413
+ return result.data.data;
17414
+ }
17415
+ if (result && typeof result === "object" && !Array.isArray(result) && result.data && Array.isArray(result.data)) {
18192
17416
  return result.data;
18193
17417
  }
17418
+ if (Array.isArray(result)) {
17419
+ return result;
17420
+ }
18194
17421
  throw new Error(
18195
17422
  "FilterNode output data does not contain expected data structure"
18196
17423
  );
@@ -18225,15 +17452,10 @@ var LoopNode2 = class _LoopNode extends Node {
18225
17452
  configData?.executionMode
18226
17453
  )
18227
17454
  };
18228
- let input = void 0;
18229
- if (raw.hasInput()) {
18230
- input = extractInputFromProtobuf(raw.getInput());
18231
- }
18232
17455
  return new _LoopNode({
18233
17456
  ...obj,
18234
17457
  type: NodeType11.Loop,
18235
- data,
18236
- input
17458
+ data
18237
17459
  });
18238
17460
  }
18239
17461
  static extractRunnerFromProtobuf(loopNodeData) {
@@ -18291,16 +17513,12 @@ var LoopNode2 = class _LoopNode extends Node {
18291
17513
  node.setName(this.name);
18292
17514
  const data = this.data;
18293
17515
  const config = new avs_pb17.LoopNode.Config();
18294
- config.setSourceId(data.sourceId || "");
17516
+ config.setInputNodeName(data.inputNodeName || "");
18295
17517
  config.setIterVal(data.iterVal || "");
18296
17518
  config.setIterKey(data.iterKey || "");
18297
17519
  const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
18298
17520
  config.setExecutionMode(executionMode);
18299
17521
  loopNode.setConfig(config);
18300
- const inputValue = convertInputToProtobuf(this.input);
18301
- if (inputValue) {
18302
- node.setInput(inputValue);
18303
- }
18304
17522
  if (data.runner) {
18305
17523
  this.setRunnerOnProtobuf(loopNode, data.runner);
18306
17524
  }
@@ -18308,86 +17526,72 @@ var LoopNode2 = class _LoopNode extends Node {
18308
17526
  return node;
18309
17527
  }
18310
17528
  setRunnerOnProtobuf(loopNode, runner) {
18311
- if (!runner || !runner.type || !runner.data) {
17529
+ if (!runner || !runner.type) {
17530
+ return;
17531
+ }
17532
+ const config = runner.config || runner.data && runner.data.config;
17533
+ if (!config) {
18312
17534
  return;
18313
17535
  }
18314
17536
  switch (runner.type) {
18315
17537
  case "ethTransfer": {
18316
- const ethTransferData = runner.data;
18317
- if (ethTransferData.config) {
18318
- const ethConfig = ethTransferData.config;
18319
- const ethTransfer = ethTransfer_default.createProtobufNode({
18320
- destination: ethConfig.destination,
18321
- amount: ethConfig.amount
18322
- });
18323
- loopNode.setEthTransfer(ethTransfer);
18324
- }
17538
+ const ethConfig = config;
17539
+ const ethTransfer = ethTransfer_default.createProtobufNode({
17540
+ destination: ethConfig.destination,
17541
+ amount: ethConfig.amount
17542
+ });
17543
+ loopNode.setEthTransfer(ethTransfer);
18325
17544
  break;
18326
17545
  }
18327
17546
  case "contractWrite": {
18328
- const contractWriteData = runner.data;
18329
- if (contractWriteData.config) {
18330
- const writeConfig = contractWriteData.config;
18331
- const contractWrite = contractWrite_default.createProtobufNode({
18332
- contractAddress: writeConfig.contractAddress,
18333
- callData: writeConfig.callData,
18334
- contractAbi: writeConfig.contractAbi,
18335
- methodCalls: writeConfig.methodCallsList || []
18336
- });
18337
- loopNode.setContractWrite(contractWrite);
18338
- }
17547
+ const writeConfig = config;
17548
+ const contractWrite = contractWrite_default.createProtobufNode({
17549
+ contractAddress: writeConfig.contractAddress,
17550
+ callData: writeConfig.callData,
17551
+ contractAbi: writeConfig.contractAbi,
17552
+ methodCalls: writeConfig.methodCallsList || []
17553
+ });
17554
+ loopNode.setContractWrite(contractWrite);
18339
17555
  break;
18340
17556
  }
18341
17557
  case "contractRead": {
18342
- const contractReadData = runner.data;
18343
- if (contractReadData.config) {
18344
- const readConfig = contractReadData.config;
18345
- const contractRead = contractRead_default.createProtobufNode({
18346
- contractAddress: readConfig.contractAddress,
18347
- contractAbi: readConfig.contractAbi,
18348
- methodCalls: readConfig.methodCallsList || []
18349
- });
18350
- loopNode.setContractRead(contractRead);
18351
- }
17558
+ const readConfig = config;
17559
+ const contractRead = contractRead_default.createProtobufNode({
17560
+ contractAddress: readConfig.contractAddress,
17561
+ contractAbi: readConfig.contractAbi,
17562
+ methodCalls: readConfig.methodCallsList || []
17563
+ });
17564
+ loopNode.setContractRead(contractRead);
18352
17565
  break;
18353
17566
  }
18354
17567
  case "graphqlDataQuery": {
18355
- const graphqlData = runner.data;
18356
- if (graphqlData.config) {
18357
- const gqlConfig = graphqlData.config;
18358
- const graphqlQuery = graphqlQuery_default.createProtobufNode({
18359
- url: gqlConfig.url,
18360
- query: gqlConfig.query,
18361
- variablesMap: gqlConfig.variablesMap
18362
- });
18363
- loopNode.setGraphqlDataQuery(graphqlQuery);
18364
- }
17568
+ const gqlConfig = config;
17569
+ const graphqlQuery = graphqlQuery_default.createProtobufNode({
17570
+ url: gqlConfig.url,
17571
+ query: gqlConfig.query,
17572
+ variablesMap: gqlConfig.variablesMap
17573
+ });
17574
+ loopNode.setGraphqlDataQuery(graphqlQuery);
18365
17575
  break;
18366
17576
  }
18367
17577
  case "restApi": {
18368
- const restApiData = runner.data;
18369
- if (restApiData.config) {
18370
- const apiConfig = restApiData.config;
18371
- const restApi = restApi_default.createProtobufNode({
18372
- url: apiConfig.url,
18373
- method: apiConfig.method,
18374
- body: apiConfig.body || "",
18375
- headers: apiConfig.headers
18376
- });
18377
- loopNode.setRestApi(restApi);
18378
- }
17578
+ const apiConfig = config;
17579
+ const restApi = restApi_default.createProtobufNode({
17580
+ url: apiConfig.url,
17581
+ method: apiConfig.method,
17582
+ body: apiConfig.body || "",
17583
+ headers: apiConfig.headers
17584
+ });
17585
+ loopNode.setRestApi(restApi);
18379
17586
  break;
18380
17587
  }
18381
17588
  case "customCode": {
18382
- const customCodeData = runner.data;
18383
- if (customCodeData.config) {
18384
- const codeConfig = customCodeData.config;
18385
- const customCode = customCode_default.createProtobufNode({
18386
- lang: codeConfig.lang,
18387
- source: codeConfig.source
18388
- });
18389
- loopNode.setCustomCode(customCode);
18390
- }
17589
+ const codeConfig = config;
17590
+ const customCode = customCode_default.createProtobufNode({
17591
+ lang: codeConfig.lang,
17592
+ source: codeConfig.source
17593
+ });
17594
+ loopNode.setCustomCode(customCode);
18391
17595
  break;
18392
17596
  }
18393
17597
  }
@@ -18403,15 +17607,15 @@ var LoopNode2 = class _LoopNode extends Node {
18403
17607
  }
18404
17608
  const loopOutput = outputData.getLoop();
18405
17609
  if (loopOutput) {
18406
- const loopObj = loopOutput.toObject();
18407
- if (loopObj.data && typeof loopObj.data === "string") {
17610
+ const dataValue = loopOutput.getData();
17611
+ if (dataValue) {
18408
17612
  try {
18409
- return JSON.parse(loopObj.data);
18410
- } catch {
18411
- return loopObj.data;
17613
+ return dataValue.toJavaScript();
17614
+ } catch (error) {
17615
+ console.warn("Failed to convert loop data from protobuf Value:", error);
17616
+ return null;
18412
17617
  }
18413
17618
  }
18414
- return loopObj;
18415
17619
  }
18416
17620
  return null;
18417
17621
  }
@@ -18677,7 +17881,7 @@ var Step = class _Step {
18677
17881
  this.error = props.error;
18678
17882
  this.log = props.log;
18679
17883
  this.inputsList = props.inputsList;
18680
- this.input = props.input;
17884
+ this.config = props.config;
18681
17885
  this.output = props.output;
18682
17886
  this.startAt = props.startAt;
18683
17887
  this.endAt = props.endAt;
@@ -18695,299 +17899,102 @@ var Step = class _Step {
18695
17899
  error: this.error,
18696
17900
  log: this.log,
18697
17901
  inputsList: this.inputsList,
18698
- input: this.input,
17902
+ config: this.config,
18699
17903
  output: this.output,
18700
17904
  startAt: this.startAt,
18701
17905
  endAt: this.endAt
18702
17906
  };
18703
17907
  }
18704
17908
  static getOutput(step) {
18705
- const getOutputDataCase = () => {
18706
- if (typeof step.getOutputDataCase === "function") {
18707
- return step.getOutputDataCase();
18708
- }
18709
- const stepObj = step;
18710
- if (stepObj.blockTrigger)
18711
- return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
18712
- if (stepObj.fixedTimeTrigger)
18713
- return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
18714
- if (stepObj.cronTrigger)
18715
- return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
18716
- if (stepObj.eventTrigger)
18717
- return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
18718
- if (stepObj.manualTrigger)
18719
- return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
18720
- if (stepObj.ethTransfer)
18721
- return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
18722
- if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
18723
- if (stepObj.contractRead)
18724
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
18725
- if (stepObj.contractWrite)
18726
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
18727
- if (stepObj.customCode)
18728
- return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
18729
- if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
18730
- if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
18731
- if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
18732
- if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
18733
- return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
18734
- };
18735
- switch (getOutputDataCase()) {
18736
- case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
18737
- return void 0;
18738
- // Trigger outputs
17909
+ const outputData = this.extractOutputData(step);
17910
+ if (!outputData) return null;
17911
+ if (typeof outputData.hasData === "function" && outputData.hasData()) {
17912
+ try {
17913
+ return convertProtobufValueToJs(outputData.getData());
17914
+ } catch (error) {
17915
+ console.warn("Failed to convert protobuf Value to JavaScript:", error);
17916
+ return outputData.getData();
17917
+ }
17918
+ } else if (outputData.data) {
17919
+ return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
17920
+ }
17921
+ return null;
17922
+ }
17923
+ static extractOutputData(step) {
17924
+ const outputCase = this.getOutputDataCase(step);
17925
+ switch (outputCase) {
18739
17926
  case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
18740
- const blockTrigger = typeof step.getBlockTrigger === "function" ? step.getBlockTrigger()?.toObject() : step.blockTrigger;
18741
- return { data: blockTrigger };
18742
- // ✅ Use standard structure
17927
+ return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
18743
17928
  case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
18744
- const fixedTimeTrigger = typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger()?.toObject() : step.fixedTimeTrigger;
18745
- return { data: fixedTimeTrigger };
18746
- // ✅ Use standard structure
17929
+ return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
18747
17930
  case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
18748
- const cronTrigger = typeof step.getCronTrigger === "function" ? step.getCronTrigger()?.toObject() : step.cronTrigger;
18749
- return { data: cronTrigger };
18750
- // ✅ Use standard structure
17931
+ return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
18751
17932
  case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
18752
- const eventTrigger = typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
18753
- if (eventTrigger) {
18754
- if (typeof eventTrigger.hasData === "function" && eventTrigger.hasData()) {
18755
- try {
18756
- const eventData = convertProtobufValueToJs(
18757
- eventTrigger.getData()
18758
- );
18759
- return { data: eventData };
18760
- } catch (error) {
18761
- console.warn(
18762
- "Failed to convert event trigger data from protobuf Value:",
18763
- error
18764
- );
18765
- return { data: eventTrigger.getData() };
18766
- }
18767
- } else if (eventTrigger.data) {
18768
- const eventData = typeof eventTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(eventTrigger.data) : eventTrigger.data;
18769
- return { data: eventData };
18770
- }
18771
- if (typeof eventTrigger.hasEvmLog === "function" && eventTrigger.hasEvmLog()) {
18772
- return { data: eventTrigger.getEvmLog()?.toObject() };
18773
- } else if (typeof eventTrigger.hasTransferLog === "function" && eventTrigger.hasTransferLog()) {
18774
- return { data: eventTrigger.getTransferLog()?.toObject() };
18775
- } else if (eventTrigger.evmLog) {
18776
- return { data: eventTrigger.evmLog };
18777
- } else if (eventTrigger.transferLog) {
18778
- return { data: eventTrigger.transferLog };
18779
- }
18780
- }
18781
- return { data: null };
18782
- // ✅ Use standard structure
18783
- case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER: {
18784
- const manualTrigger = typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
18785
- if (manualTrigger) {
18786
- if (typeof manualTrigger.hasData === "function" && manualTrigger.hasData()) {
18787
- try {
18788
- return convertProtobufValueToJs(manualTrigger.getData());
18789
- } catch (error) {
18790
- console.warn(
18791
- "Failed to convert manual trigger data from protobuf Value:",
18792
- error
18793
- );
18794
- return manualTrigger.getData();
18795
- }
18796
- } else if (manualTrigger.data) {
18797
- return typeof manualTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(manualTrigger.data) : manualTrigger.data;
18798
- }
18799
- }
18800
- return null;
18801
- }
18802
- // Node outputs - RESTORE MISSING CASES
17933
+ return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
17934
+ case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
17935
+ return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
18803
17936
  case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
18804
- return typeof step.getEthTransfer === "function" ? step.getEthTransfer()?.toObject() : step.ethTransfer;
18805
- case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE: {
18806
- const customCodeOutput = typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
18807
- if (customCodeOutput) {
18808
- if (typeof customCodeOutput.hasData === "function" && customCodeOutput.hasData()) {
18809
- try {
18810
- return convertProtobufValueToJs(customCodeOutput.getData());
18811
- } catch {
18812
- return customCodeOutput.getData();
18813
- }
18814
- } else if (customCodeOutput.data) {
18815
- return typeof customCodeOutput.data.getKindCase === "function" ? convertProtobufValueToJs(customCodeOutput.data) : customCodeOutput.data;
18816
- }
18817
- }
18818
- return void 0;
18819
- }
18820
- case avs_pb20.Execution.Step.OutputDataCase.REST_API: {
18821
- const restApiOutput = typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
18822
- if (restApiOutput) {
18823
- if (typeof restApiOutput.hasData === "function" && restApiOutput.hasData()) {
18824
- try {
18825
- return convertProtobufValueToJs(restApiOutput.getData());
18826
- } catch {
18827
- return restApiOutput.getData();
18828
- }
18829
- } else if (restApiOutput.data) {
18830
- return typeof restApiOutput.data.getKindCase === "function" ? convertProtobufValueToJs(restApiOutput.data) : restApiOutput.data;
18831
- }
18832
- }
18833
- return void 0;
18834
- }
17937
+ return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
17938
+ case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
17939
+ return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
17940
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
17941
+ return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
17942
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
17943
+ return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
17944
+ case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
17945
+ return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
17946
+ case avs_pb20.Execution.Step.OutputDataCase.REST_API:
17947
+ return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
18835
17948
  case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
18836
- return typeof step.getBranch === "function" ? step.getBranch()?.toObject() : step.branch;
18837
- case avs_pb20.Execution.Step.OutputDataCase.LOOP: {
18838
- const loopOutput = typeof step.getLoop === "function" ? step.getLoop() : step.loop;
18839
- if (loopOutput) {
18840
- if (typeof loopOutput.getData === "function" && loopOutput.getData()) {
18841
- try {
18842
- return JSON.parse(loopOutput.getData());
18843
- } catch {
18844
- return loopOutput.getData();
18845
- }
18846
- } else if (loopOutput.data) {
18847
- try {
18848
- return typeof loopOutput.data === "string" ? JSON.parse(loopOutput.data) : loopOutput.data;
18849
- } catch {
18850
- return loopOutput.data;
18851
- }
18852
- }
18853
- }
18854
- return void 0;
18855
- }
18856
- case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL: {
18857
- const graphqlOutput = typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
18858
- if (graphqlOutput) {
18859
- try {
18860
- return typeof graphqlOutput.toObject === "function" ? graphqlOutput.toObject() : graphqlOutput;
18861
- } catch {
18862
- return void 0;
18863
- }
18864
- }
18865
- return void 0;
18866
- }
18867
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ: {
18868
- const contractReadOutput = typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
18869
- if (contractReadOutput) {
18870
- if (typeof contractReadOutput.hasData === "function" && contractReadOutput.hasData()) {
18871
- try {
18872
- const data = convertProtobufValueToJs(
18873
- contractReadOutput.getData()
18874
- );
18875
- if (Array.isArray(data)) {
18876
- return data;
18877
- } else {
18878
- return [data];
18879
- }
18880
- } catch (error) {
18881
- console.warn(
18882
- "Failed to convert contract read data from protobuf Value:",
18883
- error
18884
- );
18885
- return contractReadOutput.getData();
18886
- }
18887
- } else if (contractReadOutput.data) {
18888
- const data = typeof contractReadOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractReadOutput.data) : contractReadOutput.data;
18889
- if (Array.isArray(data)) {
18890
- return data;
18891
- } else {
18892
- return [data];
18893
- }
18894
- }
18895
- const outputObj = typeof contractReadOutput.toObject === "function" ? contractReadOutput.toObject() : contractReadOutput;
18896
- if (outputObj && outputObj.resultsList) {
18897
- return outputObj.resultsList.map((result) => ({
18898
- methodName: result.methodName,
18899
- success: result.success,
18900
- error: result.error,
18901
- data: result.dataList || []
18902
- }));
18903
- }
18904
- return outputObj;
18905
- }
18906
- return void 0;
18907
- }
18908
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE: {
18909
- const contractWriteOutput = typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
18910
- if (contractWriteOutput) {
18911
- if (typeof contractWriteOutput.hasData === "function" && contractWriteOutput.hasData()) {
18912
- try {
18913
- const data = convertProtobufValueToJs(
18914
- contractWriteOutput.getData()
18915
- );
18916
- if (Array.isArray(data)) {
18917
- return data;
18918
- } else {
18919
- return [data];
18920
- }
18921
- } catch (error) {
18922
- console.warn(
18923
- "Failed to convert contract write data from protobuf Value:",
18924
- error
18925
- );
18926
- return contractWriteOutput.getData();
18927
- }
18928
- } else if (contractWriteOutput.data) {
18929
- const data = typeof contractWriteOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractWriteOutput.data) : contractWriteOutput.data;
18930
- if (Array.isArray(data)) {
18931
- return data;
18932
- } else {
18933
- return [data];
18934
- }
18935
- }
18936
- const outputObj = typeof contractWriteOutput.toObject === "function" ? contractWriteOutput.toObject() : contractWriteOutput;
18937
- if (outputObj && outputObj.resultsList) {
18938
- return outputObj.resultsList.map((result) => ({
18939
- methodName: result.methodName,
18940
- success: result.success,
18941
- error: result.error,
18942
- transaction: result.transaction,
18943
- events: result.eventsList || [],
18944
- returnData: result.returnData,
18945
- inputData: result.inputData
18946
- }));
18947
- }
18948
- return outputObj;
18949
- }
18950
- return void 0;
18951
- }
18952
- case avs_pb20.Execution.Step.OutputDataCase.FILTER: {
18953
- const filterOutput = typeof step.getFilter === "function" ? step.getFilter() : step.filter;
18954
- if (filterOutput) {
18955
- try {
18956
- return typeof filterOutput.toObject === "function" ? filterOutput.toObject() : filterOutput;
18957
- } catch {
18958
- return void 0;
18959
- }
18960
- }
18961
- return void 0;
18962
- }
17949
+ return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
17950
+ case avs_pb20.Execution.Step.OutputDataCase.FILTER:
17951
+ return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
17952
+ case avs_pb20.Execution.Step.OutputDataCase.LOOP:
17953
+ return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
18963
17954
  default:
18964
- console.warn(
18965
- `Unhandled output data type in Step.getOutput: ${step.getOutputDataCase()}`
18966
- );
18967
- return void 0;
17955
+ return null;
18968
17956
  }
18969
17957
  }
17958
+ static getOutputDataCase(step) {
17959
+ if (typeof step.getOutputDataCase === "function") {
17960
+ return step.getOutputDataCase();
17961
+ }
17962
+ const stepObj = step;
17963
+ if (stepObj.blockTrigger)
17964
+ return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
17965
+ if (stepObj.fixedTimeTrigger)
17966
+ return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
17967
+ if (stepObj.cronTrigger)
17968
+ return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
17969
+ if (stepObj.eventTrigger)
17970
+ return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
17971
+ if (stepObj.manualTrigger)
17972
+ return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
17973
+ if (stepObj.ethTransfer)
17974
+ return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
17975
+ if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
17976
+ if (stepObj.contractRead)
17977
+ return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
17978
+ if (stepObj.contractWrite)
17979
+ return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
17980
+ if (stepObj.customCode)
17981
+ return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
17982
+ if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
17983
+ if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
17984
+ if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
17985
+ if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
17986
+ return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
17987
+ }
18970
17988
  static fromResponse(step) {
18971
- let inputData = void 0;
18972
- if (typeof step.hasInput === "function" && step.hasInput()) {
18973
- const inputValue = step.getInput();
18974
- if (inputValue) {
17989
+ let configData = void 0;
17990
+ if (typeof step.hasConfig === "function" && step.hasConfig()) {
17991
+ const configValue = step.getConfig();
17992
+ if (configValue) {
18975
17993
  try {
18976
- inputData = convertProtobufValueToJs(inputValue);
17994
+ configData = convertProtobufValueToJs(configValue);
18977
17995
  } catch (error) {
18978
17996
  console.warn("Failed to convert protobuf input value:", error);
18979
- inputData = inputValue;
18980
- }
18981
- }
18982
- } else if (step.input) {
18983
- const inputValue = step.input;
18984
- if (typeof inputValue === "object" && !inputValue.getKindCase) {
18985
- inputData = inputValue;
18986
- } else {
18987
- try {
18988
- inputData = convertProtobufValueToJs(inputValue);
18989
- } catch (error) {
18990
- inputData = inputValue;
17997
+ configData = configValue;
18991
17998
  }
18992
17999
  }
18993
18000
  }
@@ -19008,7 +18015,7 @@ var Step = class _Step {
19008
18015
  error: getError(),
19009
18016
  log: getLog(),
19010
18017
  inputsList: getInputsList(),
19011
- input: inputData,
18018
+ config: configData,
19012
18019
  output: _Step.getOutput(step),
19013
18020
  startAt: getStartAt(),
19014
18021
  endAt: getEndAt()
@@ -19096,6 +18103,7 @@ import {
19096
18103
  DEFAULT_LIMIT,
19097
18104
  TimeoutPresets
19098
18105
  } from "@avaprotocol/types";
18106
+ import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
19099
18107
  import {
19100
18108
  TimeoutPresets as TimeoutPresets2
19101
18109
  } from "@avaprotocol/types";
@@ -19628,30 +18636,43 @@ var Client = class extends BaseClient {
19628
18636
  switch (triggerData.type) {
19629
18637
  case TriggerType13.FixedTime: {
19630
18638
  const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
19631
- fixedTimeOutput.setTimestamp(triggerData.timestamp);
19632
- fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
18639
+ const triggerOutputData = {
18640
+ timestamp: triggerData.timestamp,
18641
+ timestampIso: triggerData.timestampIso
18642
+ };
18643
+ const dataValue = new google_protobuf_struct_pb.Value();
18644
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
18645
+ fixedTimeOutput.setData(dataValue);
19633
18646
  request.setFixedTimeTrigger(fixedTimeOutput);
19634
18647
  break;
19635
18648
  }
19636
18649
  case TriggerType13.Cron: {
19637
18650
  const cronOutput = new avs_pb22.CronTrigger.Output();
19638
- cronOutput.setTimestamp(triggerData.timestamp);
19639
- cronOutput.setTimestampIso(triggerData.timestampIso);
18651
+ const triggerOutputData = {
18652
+ timestamp: triggerData.timestamp,
18653
+ timestampIso: triggerData.timestampIso
18654
+ };
18655
+ const dataValue = new google_protobuf_struct_pb.Value();
18656
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
18657
+ cronOutput.setData(dataValue);
19640
18658
  request.setCronTrigger(cronOutput);
19641
18659
  break;
19642
18660
  }
19643
18661
  case TriggerType13.Block: {
19644
18662
  const blockData = triggerData;
19645
18663
  const blockOutput = new avs_pb22.BlockTrigger.Output();
19646
- blockOutput.setBlockNumber(blockData.blockNumber);
19647
- if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
19648
- if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
19649
- if (blockData.parentHash)
19650
- blockOutput.setParentHash(blockData.parentHash);
19651
- if (blockData.difficulty)
19652
- blockOutput.setDifficulty(blockData.difficulty);
19653
- if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
19654
- if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
18664
+ const triggerOutputData = {
18665
+ blockNumber: blockData.blockNumber,
18666
+ blockHash: blockData.blockHash || "",
18667
+ timestamp: blockData.timestamp || 0,
18668
+ parentHash: blockData.parentHash || "",
18669
+ difficulty: blockData.difficulty || "",
18670
+ gasLimit: blockData.gasLimit || 0,
18671
+ gasUsed: blockData.gasUsed || 0
18672
+ };
18673
+ const dataValue = new google_protobuf_struct_pb.Value();
18674
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
18675
+ blockOutput.setData(dataValue);
19655
18676
  request.setBlockTrigger(blockOutput);
19656
18677
  break;
19657
18678
  }
@@ -19672,18 +18693,6 @@ var Client = class extends BaseClient {
19672
18693
  const protobufValue = convertJSValueToProtobuf(manualData.data);
19673
18694
  manualOutput.setData(protobufValue);
19674
18695
  }
19675
- if (manualData.headers) {
19676
- const headersMap = manualOutput.getHeadersMap();
19677
- Object.entries(manualData.headers).forEach(([key, value]) => {
19678
- headersMap.set(key, value);
19679
- });
19680
- }
19681
- if (manualData.pathParams) {
19682
- const pathParamsMap = manualOutput.getPathparamsMap();
19683
- Object.entries(manualData.pathParams).forEach(([key, value]) => {
19684
- pathParamsMap.set(key, value);
19685
- });
19686
- }
19687
18696
  request.setManualTrigger(manualOutput);
19688
18697
  break;
19689
18698
  }