@avaprotocol/sdk-js 1.6.7 → 1.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -163,10 +163,10 @@ var require_avs_pb = __commonJS({
163
163
  goog.exportSymbol("proto.aggregator.TaskStatus", null, global);
164
164
  goog.exportSymbol("proto.aggregator.TaskTrigger", null, global);
165
165
  goog.exportSymbol("proto.aggregator.TaskTrigger.TriggerTypeCase", null, global);
166
- goog.exportSymbol("proto.aggregator.TriggerReason", null, global);
166
+ goog.exportSymbol("proto.aggregator.TriggerTaskReq", null, global);
167
+ goog.exportSymbol("proto.aggregator.TriggerTaskReq.TriggerOutputCase", null, global);
168
+ goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
167
169
  goog.exportSymbol("proto.aggregator.TriggerType", null, global);
168
- goog.exportSymbol("proto.aggregator.UserTriggerTaskReq", null, global);
169
- goog.exportSymbol("proto.aggregator.UserTriggerTaskResp", null, global);
170
170
  proto.aggregator.IdReq = function(opt_data) {
171
171
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
172
172
  };
@@ -636,13 +636,6 @@ var require_avs_pb = __commonJS({
636
636
  if (goog.DEBUG && !COMPILED) {
637
637
  proto.aggregator.KeyResp.displayName = "proto.aggregator.KeyResp";
638
638
  }
639
- proto.aggregator.TriggerReason = function(opt_data) {
640
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
641
- };
642
- goog.inherits(proto.aggregator.TriggerReason, jspb.Message);
643
- if (goog.DEBUG && !COMPILED) {
644
- proto.aggregator.TriggerReason.displayName = "proto.aggregator.TriggerReason";
645
- }
646
639
  proto.aggregator.GetWalletReq = function(opt_data) {
647
640
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
648
641
  };
@@ -664,19 +657,19 @@ var require_avs_pb = __commonJS({
664
657
  if (goog.DEBUG && !COMPILED) {
665
658
  proto.aggregator.SetWalletReq.displayName = "proto.aggregator.SetWalletReq";
666
659
  }
667
- proto.aggregator.UserTriggerTaskReq = function(opt_data) {
668
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
660
+ proto.aggregator.TriggerTaskReq = function(opt_data) {
661
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.aggregator.TriggerTaskReq.oneofGroups_);
669
662
  };
670
- goog.inherits(proto.aggregator.UserTriggerTaskReq, jspb.Message);
663
+ goog.inherits(proto.aggregator.TriggerTaskReq, jspb.Message);
671
664
  if (goog.DEBUG && !COMPILED) {
672
- proto.aggregator.UserTriggerTaskReq.displayName = "proto.aggregator.UserTriggerTaskReq";
665
+ proto.aggregator.TriggerTaskReq.displayName = "proto.aggregator.TriggerTaskReq";
673
666
  }
674
- proto.aggregator.UserTriggerTaskResp = function(opt_data) {
667
+ proto.aggregator.TriggerTaskResp = function(opt_data) {
675
668
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
676
669
  };
677
- goog.inherits(proto.aggregator.UserTriggerTaskResp, jspb.Message);
670
+ goog.inherits(proto.aggregator.TriggerTaskResp, jspb.Message);
678
671
  if (goog.DEBUG && !COMPILED) {
679
- proto.aggregator.UserTriggerTaskResp.displayName = "proto.aggregator.UserTriggerTaskResp";
672
+ proto.aggregator.TriggerTaskResp.displayName = "proto.aggregator.TriggerTaskResp";
680
673
  }
681
674
  proto.aggregator.CreateOrUpdateSecretReq = function(opt_data) {
682
675
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
@@ -1029,7 +1022,8 @@ var require_avs_pb = __commonJS({
1029
1022
  };
1030
1023
  proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
1031
1024
  var f, obj = {
1032
- epoch: jspb.Message.getFieldWithDefault(msg, 1, 0)
1025
+ timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
1026
+ timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
1033
1027
  };
1034
1028
  if (includeInstance) {
1035
1029
  obj.$jspbMessageInstance = msg;
@@ -1054,7 +1048,14 @@ var require_avs_pb = __commonJS({
1054
1048
  /** @type {number} */
1055
1049
  reader.readUint64()
1056
1050
  );
1057
- msg.setEpoch(value);
1051
+ msg.setTimestamp(value);
1052
+ break;
1053
+ case 2:
1054
+ var value = (
1055
+ /** @type {string} */
1056
+ reader.readString()
1057
+ );
1058
+ msg.setTimestampIso(value);
1058
1059
  break;
1059
1060
  default:
1060
1061
  reader.skipField();
@@ -1070,23 +1071,39 @@ var require_avs_pb = __commonJS({
1070
1071
  };
1071
1072
  proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter = function(message, writer) {
1072
1073
  var f = void 0;
1073
- f = message.getEpoch();
1074
+ f = message.getTimestamp();
1074
1075
  if (f !== 0) {
1075
1076
  writer.writeUint64(
1076
1077
  1,
1077
1078
  f
1078
1079
  );
1079
1080
  }
1081
+ f = message.getTimestampIso();
1082
+ if (f.length > 0) {
1083
+ writer.writeString(
1084
+ 2,
1085
+ f
1086
+ );
1087
+ }
1080
1088
  };
1081
- proto.aggregator.FixedTimeTrigger.Output.prototype.getEpoch = function() {
1089
+ proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestamp = function() {
1082
1090
  return (
1083
1091
  /** @type {number} */
1084
1092
  jspb.Message.getFieldWithDefault(this, 1, 0)
1085
1093
  );
1086
1094
  };
1087
- proto.aggregator.FixedTimeTrigger.Output.prototype.setEpoch = function(value) {
1095
+ proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestamp = function(value) {
1088
1096
  return jspb.Message.setProto3IntField(this, 1, value);
1089
1097
  };
1098
+ proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestampIso = function() {
1099
+ return (
1100
+ /** @type {string} */
1101
+ jspb.Message.getFieldWithDefault(this, 2, "")
1102
+ );
1103
+ };
1104
+ proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestampIso = function(value) {
1105
+ return jspb.Message.setProto3StringField(this, 2, value);
1106
+ };
1090
1107
  proto.aggregator.FixedTimeTrigger.prototype.getConfig = function() {
1091
1108
  return (
1092
1109
  /** @type{?proto.aggregator.FixedTimeTrigger.Config} */
@@ -1233,8 +1250,8 @@ var require_avs_pb = __commonJS({
1233
1250
  };
1234
1251
  proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
1235
1252
  var f, obj = {
1236
- epoch: jspb.Message.getFieldWithDefault(msg, 1, 0),
1237
- scheduleMatched: jspb.Message.getFieldWithDefault(msg, 2, "")
1253
+ timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
1254
+ timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
1238
1255
  };
1239
1256
  if (includeInstance) {
1240
1257
  obj.$jspbMessageInstance = msg;
@@ -1259,14 +1276,14 @@ var require_avs_pb = __commonJS({
1259
1276
  /** @type {number} */
1260
1277
  reader.readUint64()
1261
1278
  );
1262
- msg.setEpoch(value);
1279
+ msg.setTimestamp(value);
1263
1280
  break;
1264
1281
  case 2:
1265
1282
  var value = (
1266
1283
  /** @type {string} */
1267
1284
  reader.readString()
1268
1285
  );
1269
- msg.setScheduleMatched(value);
1286
+ msg.setTimestampIso(value);
1270
1287
  break;
1271
1288
  default:
1272
1289
  reader.skipField();
@@ -1282,14 +1299,14 @@ var require_avs_pb = __commonJS({
1282
1299
  };
1283
1300
  proto.aggregator.CronTrigger.Output.serializeBinaryToWriter = function(message, writer) {
1284
1301
  var f = void 0;
1285
- f = message.getEpoch();
1302
+ f = message.getTimestamp();
1286
1303
  if (f !== 0) {
1287
1304
  writer.writeUint64(
1288
1305
  1,
1289
1306
  f
1290
1307
  );
1291
1308
  }
1292
- f = message.getScheduleMatched();
1309
+ f = message.getTimestampIso();
1293
1310
  if (f.length > 0) {
1294
1311
  writer.writeString(
1295
1312
  2,
@@ -1297,22 +1314,22 @@ var require_avs_pb = __commonJS({
1297
1314
  );
1298
1315
  }
1299
1316
  };
1300
- proto.aggregator.CronTrigger.Output.prototype.getEpoch = function() {
1317
+ proto.aggregator.CronTrigger.Output.prototype.getTimestamp = function() {
1301
1318
  return (
1302
1319
  /** @type {number} */
1303
1320
  jspb.Message.getFieldWithDefault(this, 1, 0)
1304
1321
  );
1305
1322
  };
1306
- proto.aggregator.CronTrigger.Output.prototype.setEpoch = function(value) {
1323
+ proto.aggregator.CronTrigger.Output.prototype.setTimestamp = function(value) {
1307
1324
  return jspb.Message.setProto3IntField(this, 1, value);
1308
1325
  };
1309
- proto.aggregator.CronTrigger.Output.prototype.getScheduleMatched = function() {
1326
+ proto.aggregator.CronTrigger.Output.prototype.getTimestampIso = function() {
1310
1327
  return (
1311
1328
  /** @type {string} */
1312
1329
  jspb.Message.getFieldWithDefault(this, 2, "")
1313
1330
  );
1314
1331
  };
1315
- proto.aggregator.CronTrigger.Output.prototype.setScheduleMatched = function(value) {
1332
+ proto.aggregator.CronTrigger.Output.prototype.setTimestampIso = function(value) {
1316
1333
  return jspb.Message.setProto3StringField(this, 2, value);
1317
1334
  };
1318
1335
  proto.aggregator.CronTrigger.prototype.getConfig = function() {
@@ -5823,13 +5840,14 @@ var require_avs_pb = __commonJS({
5823
5840
  return jspb.Message.getField(this, 18) != null;
5824
5841
  };
5825
5842
  proto.aggregator.Execution.repeatedFields_ = [8];
5826
- proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13]];
5843
+ proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13, 14]];
5827
5844
  proto.aggregator.Execution.OutputDataCase = {
5828
5845
  OUTPUT_DATA_NOT_SET: 0,
5829
5846
  BLOCK_TRIGGER: 10,
5830
5847
  FIXED_TIME_TRIGGER: 11,
5831
5848
  CRON_TRIGGER: 12,
5832
- EVENT_TRIGGER: 13
5849
+ EVENT_TRIGGER: 13,
5850
+ MANUAL_TRIGGER: 14
5833
5851
  };
5834
5852
  proto.aggregator.Execution.prototype.getOutputDataCase = function() {
5835
5853
  return (
@@ -5848,7 +5866,7 @@ var require_avs_pb = __commonJS({
5848
5866
  endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
5849
5867
  success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
5850
5868
  error: jspb.Message.getFieldWithDefault(msg, 5, ""),
5851
- reason: (f = msg.getReason()) && proto.aggregator.TriggerReason.toObject(includeInstance, f),
5869
+ triggerType: jspb.Message.getFieldWithDefault(msg, 6, 0),
5852
5870
  stepsList: jspb.Message.toObjectList(
5853
5871
  msg.getStepsList(),
5854
5872
  proto.aggregator.Execution.Step.toObject,
@@ -5858,7 +5876,8 @@ var require_avs_pb = __commonJS({
5858
5876
  blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
5859
5877
  fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
5860
5878
  cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
5861
- eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f)
5879
+ eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
5880
+ manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f)
5862
5881
  };
5863
5882
  if (includeInstance) {
5864
5883
  obj.$jspbMessageInstance = msg;
@@ -5914,9 +5933,11 @@ var require_avs_pb = __commonJS({
5914
5933
  msg.setError(value);
5915
5934
  break;
5916
5935
  case 6:
5917
- var value = new proto.aggregator.TriggerReason();
5918
- reader.readMessage(value, proto.aggregator.TriggerReason.deserializeBinaryFromReader);
5919
- msg.setReason(value);
5936
+ var value = (
5937
+ /** @type {!proto.aggregator.TriggerType} */
5938
+ reader.readEnum()
5939
+ );
5940
+ msg.setTriggerType(value);
5920
5941
  break;
5921
5942
  case 8:
5922
5943
  var value = new proto.aggregator.Execution.Step();
@@ -5950,6 +5971,11 @@ var require_avs_pb = __commonJS({
5950
5971
  reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
5951
5972
  msg.setEventTrigger(value);
5952
5973
  break;
5974
+ case 14:
5975
+ var value = new proto.aggregator.ManualTrigger.Output();
5976
+ reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
5977
+ msg.setManualTrigger(value);
5978
+ break;
5953
5979
  default:
5954
5980
  reader.skipField();
5955
5981
  break;
@@ -5999,12 +6025,11 @@ var require_avs_pb = __commonJS({
5999
6025
  f
6000
6026
  );
6001
6027
  }
6002
- f = message.getReason();
6003
- if (f != null) {
6004
- writer.writeMessage(
6028
+ f = message.getTriggerType();
6029
+ if (f !== 0) {
6030
+ writer.writeEnum(
6005
6031
  6,
6006
- f,
6007
- proto.aggregator.TriggerReason.serializeBinaryToWriter
6032
+ f
6008
6033
  );
6009
6034
  }
6010
6035
  f = message.getStepsList();
@@ -6054,6 +6079,14 @@ var require_avs_pb = __commonJS({
6054
6079
  proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
6055
6080
  );
6056
6081
  }
6082
+ f = message.getManualTrigger();
6083
+ if (f != null) {
6084
+ writer.writeMessage(
6085
+ 14,
6086
+ f,
6087
+ proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
6088
+ );
6089
+ }
6057
6090
  };
6058
6091
  proto.aggregator.Execution.Step.repeatedFields_ = [16];
6059
6092
  proto.aggregator.Execution.Step.oneofGroups_ = [[3, 4, 5, 6, 7, 8, 9, 10, 11]];
@@ -6595,20 +6628,14 @@ var require_avs_pb = __commonJS({
6595
6628
  proto.aggregator.Execution.prototype.setError = function(value) {
6596
6629
  return jspb.Message.setProto3StringField(this, 5, value);
6597
6630
  };
6598
- proto.aggregator.Execution.prototype.getReason = function() {
6631
+ proto.aggregator.Execution.prototype.getTriggerType = function() {
6599
6632
  return (
6600
- /** @type{?proto.aggregator.TriggerReason} */
6601
- jspb.Message.getWrapperField(this, proto.aggregator.TriggerReason, 6)
6633
+ /** @type {!proto.aggregator.TriggerType} */
6634
+ jspb.Message.getFieldWithDefault(this, 6, 0)
6602
6635
  );
6603
6636
  };
6604
- proto.aggregator.Execution.prototype.setReason = function(value) {
6605
- return jspb.Message.setWrapperField(this, 6, value);
6606
- };
6607
- proto.aggregator.Execution.prototype.clearReason = function() {
6608
- return this.setReason(void 0);
6609
- };
6610
- proto.aggregator.Execution.prototype.hasReason = function() {
6611
- return jspb.Message.getField(this, 6) != null;
6637
+ proto.aggregator.Execution.prototype.setTriggerType = function(value) {
6638
+ return jspb.Message.setProto3EnumField(this, 6, value);
6612
6639
  };
6613
6640
  proto.aggregator.Execution.prototype.getStepsList = function() {
6614
6641
  return (
@@ -6694,6 +6721,21 @@ var require_avs_pb = __commonJS({
6694
6721
  proto.aggregator.Execution.prototype.hasEventTrigger = function() {
6695
6722
  return jspb.Message.getField(this, 13) != null;
6696
6723
  };
6724
+ proto.aggregator.Execution.prototype.getManualTrigger = function() {
6725
+ return (
6726
+ /** @type{?proto.aggregator.ManualTrigger.Output} */
6727
+ jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 14)
6728
+ );
6729
+ };
6730
+ proto.aggregator.Execution.prototype.setManualTrigger = function(value) {
6731
+ return jspb.Message.setOneofWrapperField(this, 14, proto.aggregator.Execution.oneofGroups_[0], value);
6732
+ };
6733
+ proto.aggregator.Execution.prototype.clearManualTrigger = function() {
6734
+ return this.setManualTrigger(void 0);
6735
+ };
6736
+ proto.aggregator.Execution.prototype.hasManualTrigger = function() {
6737
+ return jspb.Message.getField(this, 14) != null;
6738
+ };
6697
6739
  proto.aggregator.Task.repeatedFields_ = [13, 14];
6698
6740
  if (jspb.Message.GENERATE_TO_OBJECT) {
6699
6741
  proto.aggregator.Task.prototype.toObject = function(opt_includeInstance) {
@@ -8626,7 +8668,10 @@ var require_avs_pb = __commonJS({
8626
8668
  };
8627
8669
  proto.aggregator.KeyResp.toObject = function(includeInstance, msg) {
8628
8670
  var f, obj = {
8629
- key: jspb.Message.getFieldWithDefault(msg, 1, "")
8671
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
8672
+ key: jspb.Message.getFieldWithDefault(msg, 2, ""),
8673
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
8674
+ expiry: jspb.Message.getFieldWithDefault(msg, 4, 0)
8630
8675
  };
8631
8676
  if (includeInstance) {
8632
8677
  obj.$jspbMessageInstance = msg;
@@ -8651,103 +8696,28 @@ var require_avs_pb = __commonJS({
8651
8696
  /** @type {string} */
8652
8697
  reader.readString()
8653
8698
  );
8654
- msg.setKey(value);
8655
- break;
8656
- default:
8657
- reader.skipField();
8658
- break;
8659
- }
8660
- }
8661
- return msg;
8662
- };
8663
- proto.aggregator.KeyResp.prototype.serializeBinary = function() {
8664
- var writer = new jspb.BinaryWriter();
8665
- proto.aggregator.KeyResp.serializeBinaryToWriter(this, writer);
8666
- return writer.getResultBuffer();
8667
- };
8668
- proto.aggregator.KeyResp.serializeBinaryToWriter = function(message, writer) {
8669
- var f = void 0;
8670
- f = message.getKey();
8671
- if (f.length > 0) {
8672
- writer.writeString(
8673
- 1,
8674
- f
8675
- );
8676
- }
8677
- };
8678
- proto.aggregator.KeyResp.prototype.getKey = function() {
8679
- return (
8680
- /** @type {string} */
8681
- jspb.Message.getFieldWithDefault(this, 1, "")
8682
- );
8683
- };
8684
- proto.aggregator.KeyResp.prototype.setKey = function(value) {
8685
- return jspb.Message.setProto3StringField(this, 1, value);
8686
- };
8687
- if (jspb.Message.GENERATE_TO_OBJECT) {
8688
- proto.aggregator.TriggerReason.prototype.toObject = function(opt_includeInstance) {
8689
- return proto.aggregator.TriggerReason.toObject(opt_includeInstance, this);
8690
- };
8691
- proto.aggregator.TriggerReason.toObject = function(includeInstance, msg) {
8692
- var f, obj = {
8693
- blockNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
8694
- logIndex: jspb.Message.getFieldWithDefault(msg, 2, 0),
8695
- txHash: jspb.Message.getFieldWithDefault(msg, 3, ""),
8696
- epoch: jspb.Message.getFieldWithDefault(msg, 4, 0),
8697
- type: jspb.Message.getFieldWithDefault(msg, 5, 0)
8698
- };
8699
- if (includeInstance) {
8700
- obj.$jspbMessageInstance = msg;
8701
- }
8702
- return obj;
8703
- };
8704
- }
8705
- proto.aggregator.TriggerReason.deserializeBinary = function(bytes) {
8706
- var reader = new jspb.BinaryReader(bytes);
8707
- var msg = new proto.aggregator.TriggerReason();
8708
- return proto.aggregator.TriggerReason.deserializeBinaryFromReader(msg, reader);
8709
- };
8710
- proto.aggregator.TriggerReason.deserializeBinaryFromReader = function(msg, reader) {
8711
- while (reader.nextField()) {
8712
- if (reader.isEndGroup()) {
8713
- break;
8714
- }
8715
- var field = reader.getFieldNumber();
8716
- switch (field) {
8717
- case 1:
8718
- var value = (
8719
- /** @type {number} */
8720
- reader.readUint64()
8721
- );
8722
- msg.setBlockNumber(value);
8699
+ msg.setAddress(value);
8723
8700
  break;
8724
8701
  case 2:
8725
8702
  var value = (
8726
- /** @type {number} */
8727
- reader.readUint64()
8703
+ /** @type {string} */
8704
+ reader.readString()
8728
8705
  );
8729
- msg.setLogIndex(value);
8706
+ msg.setKey(value);
8730
8707
  break;
8731
8708
  case 3:
8732
8709
  var value = (
8733
8710
  /** @type {string} */
8734
8711
  reader.readString()
8735
8712
  );
8736
- msg.setTxHash(value);
8713
+ msg.setMessage(value);
8737
8714
  break;
8738
8715
  case 4:
8739
8716
  var value = (
8740
8717
  /** @type {number} */
8741
8718
  reader.readUint64()
8742
8719
  );
8743
- msg.setEpoch(value);
8744
- break;
8745
- case 5:
8746
- var value = (
8747
- /** @type {!proto.aggregator.TriggerType} */
8748
- reader.readEnum()
8749
- );
8750
- msg.setType(value);
8720
+ msg.setExpiry(value);
8751
8721
  break;
8752
8722
  default:
8753
8723
  reader.skipField();
@@ -8756,94 +8726,78 @@ var require_avs_pb = __commonJS({
8756
8726
  }
8757
8727
  return msg;
8758
8728
  };
8759
- proto.aggregator.TriggerReason.prototype.serializeBinary = function() {
8729
+ proto.aggregator.KeyResp.prototype.serializeBinary = function() {
8760
8730
  var writer = new jspb.BinaryWriter();
8761
- proto.aggregator.TriggerReason.serializeBinaryToWriter(this, writer);
8731
+ proto.aggregator.KeyResp.serializeBinaryToWriter(this, writer);
8762
8732
  return writer.getResultBuffer();
8763
8733
  };
8764
- proto.aggregator.TriggerReason.serializeBinaryToWriter = function(message, writer) {
8734
+ proto.aggregator.KeyResp.serializeBinaryToWriter = function(message, writer) {
8765
8735
  var f = void 0;
8766
- f = message.getBlockNumber();
8767
- if (f !== 0) {
8768
- writer.writeUint64(
8736
+ f = message.getAddress();
8737
+ if (f.length > 0) {
8738
+ writer.writeString(
8769
8739
  1,
8770
8740
  f
8771
8741
  );
8772
8742
  }
8773
- f = message.getLogIndex();
8774
- if (f !== 0) {
8775
- writer.writeUint64(
8743
+ f = message.getKey();
8744
+ if (f.length > 0) {
8745
+ writer.writeString(
8776
8746
  2,
8777
8747
  f
8778
8748
  );
8779
8749
  }
8780
- f = message.getTxHash();
8750
+ f = message.getMessage();
8781
8751
  if (f.length > 0) {
8782
8752
  writer.writeString(
8783
8753
  3,
8784
8754
  f
8785
8755
  );
8786
8756
  }
8787
- f = message.getEpoch();
8757
+ f = message.getExpiry();
8788
8758
  if (f !== 0) {
8789
8759
  writer.writeUint64(
8790
8760
  4,
8791
8761
  f
8792
8762
  );
8793
8763
  }
8794
- f = message.getType();
8795
- if (f !== 0) {
8796
- writer.writeEnum(
8797
- 5,
8798
- f
8799
- );
8800
- }
8801
8764
  };
8802
- proto.aggregator.TriggerReason.prototype.getBlockNumber = function() {
8765
+ proto.aggregator.KeyResp.prototype.getAddress = function() {
8803
8766
  return (
8804
- /** @type {number} */
8805
- jspb.Message.getFieldWithDefault(this, 1, 0)
8767
+ /** @type {string} */
8768
+ jspb.Message.getFieldWithDefault(this, 1, "")
8806
8769
  );
8807
8770
  };
8808
- proto.aggregator.TriggerReason.prototype.setBlockNumber = function(value) {
8809
- return jspb.Message.setProto3IntField(this, 1, value);
8771
+ proto.aggregator.KeyResp.prototype.setAddress = function(value) {
8772
+ return jspb.Message.setProto3StringField(this, 1, value);
8810
8773
  };
8811
- proto.aggregator.TriggerReason.prototype.getLogIndex = function() {
8774
+ proto.aggregator.KeyResp.prototype.getKey = function() {
8812
8775
  return (
8813
- /** @type {number} */
8814
- jspb.Message.getFieldWithDefault(this, 2, 0)
8776
+ /** @type {string} */
8777
+ jspb.Message.getFieldWithDefault(this, 2, "")
8815
8778
  );
8816
8779
  };
8817
- proto.aggregator.TriggerReason.prototype.setLogIndex = function(value) {
8818
- return jspb.Message.setProto3IntField(this, 2, value);
8780
+ proto.aggregator.KeyResp.prototype.setKey = function(value) {
8781
+ return jspb.Message.setProto3StringField(this, 2, value);
8819
8782
  };
8820
- proto.aggregator.TriggerReason.prototype.getTxHash = function() {
8783
+ proto.aggregator.KeyResp.prototype.getMessage = function() {
8821
8784
  return (
8822
8785
  /** @type {string} */
8823
8786
  jspb.Message.getFieldWithDefault(this, 3, "")
8824
8787
  );
8825
8788
  };
8826
- proto.aggregator.TriggerReason.prototype.setTxHash = function(value) {
8789
+ proto.aggregator.KeyResp.prototype.setMessage = function(value) {
8827
8790
  return jspb.Message.setProto3StringField(this, 3, value);
8828
8791
  };
8829
- proto.aggregator.TriggerReason.prototype.getEpoch = function() {
8792
+ proto.aggregator.KeyResp.prototype.getExpiry = function() {
8830
8793
  return (
8831
8794
  /** @type {number} */
8832
8795
  jspb.Message.getFieldWithDefault(this, 4, 0)
8833
8796
  );
8834
8797
  };
8835
- proto.aggregator.TriggerReason.prototype.setEpoch = function(value) {
8798
+ proto.aggregator.KeyResp.prototype.setExpiry = function(value) {
8836
8799
  return jspb.Message.setProto3IntField(this, 4, value);
8837
8800
  };
8838
- proto.aggregator.TriggerReason.prototype.getType = function() {
8839
- return (
8840
- /** @type {!proto.aggregator.TriggerType} */
8841
- jspb.Message.getFieldWithDefault(this, 5, 0)
8842
- );
8843
- };
8844
- proto.aggregator.TriggerReason.prototype.setType = function(value) {
8845
- return jspb.Message.setProto3EnumField(this, 5, value);
8846
- };
8847
8801
  if (jspb.Message.GENERATE_TO_OBJECT) {
8848
8802
  proto.aggregator.GetWalletReq.prototype.toObject = function(opt_includeInstance) {
8849
8803
  return proto.aggregator.GetWalletReq.toObject(opt_includeInstance, this);
@@ -9300,15 +9254,35 @@ var require_avs_pb = __commonJS({
9300
9254
  proto.aggregator.SetWalletReq.prototype.setIsHidden = function(value) {
9301
9255
  return jspb.Message.setProto3BooleanField(this, 3, value);
9302
9256
  };
9257
+ proto.aggregator.TriggerTaskReq.oneofGroups_ = [[3, 4, 5, 6, 7]];
9258
+ proto.aggregator.TriggerTaskReq.TriggerOutputCase = {
9259
+ TRIGGER_OUTPUT_NOT_SET: 0,
9260
+ BLOCK_TRIGGER: 3,
9261
+ FIXED_TIME_TRIGGER: 4,
9262
+ CRON_TRIGGER: 5,
9263
+ EVENT_TRIGGER: 6,
9264
+ MANUAL_TRIGGER: 7
9265
+ };
9266
+ proto.aggregator.TriggerTaskReq.prototype.getTriggerOutputCase = function() {
9267
+ return (
9268
+ /** @type {proto.aggregator.TriggerTaskReq.TriggerOutputCase} */
9269
+ jspb.Message.computeOneofCase(this, proto.aggregator.TriggerTaskReq.oneofGroups_[0])
9270
+ );
9271
+ };
9303
9272
  if (jspb.Message.GENERATE_TO_OBJECT) {
9304
- proto.aggregator.UserTriggerTaskReq.prototype.toObject = function(opt_includeInstance) {
9305
- return proto.aggregator.UserTriggerTaskReq.toObject(opt_includeInstance, this);
9273
+ proto.aggregator.TriggerTaskReq.prototype.toObject = function(opt_includeInstance) {
9274
+ return proto.aggregator.TriggerTaskReq.toObject(opt_includeInstance, this);
9306
9275
  };
9307
- proto.aggregator.UserTriggerTaskReq.toObject = function(includeInstance, msg) {
9276
+ proto.aggregator.TriggerTaskReq.toObject = function(includeInstance, msg) {
9308
9277
  var f, obj = {
9309
9278
  taskId: jspb.Message.getFieldWithDefault(msg, 1, ""),
9310
- reason: (f = msg.getReason()) && proto.aggregator.TriggerReason.toObject(includeInstance, f),
9311
- isBlocking: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
9279
+ triggerType: jspb.Message.getFieldWithDefault(msg, 2, 0),
9280
+ blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
9281
+ fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
9282
+ cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
9283
+ eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
9284
+ manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
9285
+ isBlocking: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
9312
9286
  };
9313
9287
  if (includeInstance) {
9314
9288
  obj.$jspbMessageInstance = msg;
@@ -9316,12 +9290,12 @@ var require_avs_pb = __commonJS({
9316
9290
  return obj;
9317
9291
  };
9318
9292
  }
9319
- proto.aggregator.UserTriggerTaskReq.deserializeBinary = function(bytes) {
9293
+ proto.aggregator.TriggerTaskReq.deserializeBinary = function(bytes) {
9320
9294
  var reader = new jspb.BinaryReader(bytes);
9321
- var msg = new proto.aggregator.UserTriggerTaskReq();
9322
- return proto.aggregator.UserTriggerTaskReq.deserializeBinaryFromReader(msg, reader);
9295
+ var msg = new proto.aggregator.TriggerTaskReq();
9296
+ return proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader(msg, reader);
9323
9297
  };
9324
- proto.aggregator.UserTriggerTaskReq.deserializeBinaryFromReader = function(msg, reader) {
9298
+ proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader = function(msg, reader) {
9325
9299
  while (reader.nextField()) {
9326
9300
  if (reader.isEndGroup()) {
9327
9301
  break;
@@ -9336,11 +9310,38 @@ var require_avs_pb = __commonJS({
9336
9310
  msg.setTaskId(value);
9337
9311
  break;
9338
9312
  case 2:
9339
- var value = new proto.aggregator.TriggerReason();
9340
- reader.readMessage(value, proto.aggregator.TriggerReason.deserializeBinaryFromReader);
9341
- msg.setReason(value);
9313
+ var value = (
9314
+ /** @type {!proto.aggregator.TriggerType} */
9315
+ reader.readEnum()
9316
+ );
9317
+ msg.setTriggerType(value);
9342
9318
  break;
9343
9319
  case 3:
9320
+ var value = new proto.aggregator.BlockTrigger.Output();
9321
+ reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
9322
+ msg.setBlockTrigger(value);
9323
+ break;
9324
+ case 4:
9325
+ var value = new proto.aggregator.FixedTimeTrigger.Output();
9326
+ reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
9327
+ msg.setFixedTimeTrigger(value);
9328
+ break;
9329
+ case 5:
9330
+ var value = new proto.aggregator.CronTrigger.Output();
9331
+ reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
9332
+ msg.setCronTrigger(value);
9333
+ break;
9334
+ case 6:
9335
+ var value = new proto.aggregator.EventTrigger.Output();
9336
+ reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
9337
+ msg.setEventTrigger(value);
9338
+ break;
9339
+ case 7:
9340
+ var value = new proto.aggregator.ManualTrigger.Output();
9341
+ reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
9342
+ msg.setManualTrigger(value);
9343
+ break;
9344
+ case 8:
9344
9345
  var value = (
9345
9346
  /** @type {boolean} */
9346
9347
  reader.readBool()
@@ -9354,12 +9355,12 @@ var require_avs_pb = __commonJS({
9354
9355
  }
9355
9356
  return msg;
9356
9357
  };
9357
- proto.aggregator.UserTriggerTaskReq.prototype.serializeBinary = function() {
9358
+ proto.aggregator.TriggerTaskReq.prototype.serializeBinary = function() {
9358
9359
  var writer = new jspb.BinaryWriter();
9359
- proto.aggregator.UserTriggerTaskReq.serializeBinaryToWriter(this, writer);
9360
+ proto.aggregator.TriggerTaskReq.serializeBinaryToWriter(this, writer);
9360
9361
  return writer.getResultBuffer();
9361
9362
  };
9362
- proto.aggregator.UserTriggerTaskReq.serializeBinaryToWriter = function(message, writer) {
9363
+ proto.aggregator.TriggerTaskReq.serializeBinaryToWriter = function(message, writer) {
9363
9364
  var f = void 0;
9364
9365
  f = message.getTaskId();
9365
9366
  if (f.length > 0) {
@@ -9368,60 +9369,168 @@ var require_avs_pb = __commonJS({
9368
9369
  f
9369
9370
  );
9370
9371
  }
9371
- f = message.getReason();
9372
+ f = message.getTriggerType();
9373
+ if (f !== 0) {
9374
+ writer.writeEnum(
9375
+ 2,
9376
+ f
9377
+ );
9378
+ }
9379
+ f = message.getBlockTrigger();
9372
9380
  if (f != null) {
9373
9381
  writer.writeMessage(
9374
- 2,
9382
+ 3,
9375
9383
  f,
9376
- proto.aggregator.TriggerReason.serializeBinaryToWriter
9384
+ proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
9385
+ );
9386
+ }
9387
+ f = message.getFixedTimeTrigger();
9388
+ if (f != null) {
9389
+ writer.writeMessage(
9390
+ 4,
9391
+ f,
9392
+ proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
9393
+ );
9394
+ }
9395
+ f = message.getCronTrigger();
9396
+ if (f != null) {
9397
+ writer.writeMessage(
9398
+ 5,
9399
+ f,
9400
+ proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
9401
+ );
9402
+ }
9403
+ f = message.getEventTrigger();
9404
+ if (f != null) {
9405
+ writer.writeMessage(
9406
+ 6,
9407
+ f,
9408
+ proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
9409
+ );
9410
+ }
9411
+ f = message.getManualTrigger();
9412
+ if (f != null) {
9413
+ writer.writeMessage(
9414
+ 7,
9415
+ f,
9416
+ proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
9377
9417
  );
9378
9418
  }
9379
9419
  f = message.getIsBlocking();
9380
9420
  if (f) {
9381
9421
  writer.writeBool(
9382
- 3,
9422
+ 8,
9383
9423
  f
9384
9424
  );
9385
9425
  }
9386
9426
  };
9387
- proto.aggregator.UserTriggerTaskReq.prototype.getTaskId = function() {
9427
+ proto.aggregator.TriggerTaskReq.prototype.getTaskId = function() {
9388
9428
  return (
9389
9429
  /** @type {string} */
9390
9430
  jspb.Message.getFieldWithDefault(this, 1, "")
9391
9431
  );
9392
9432
  };
9393
- proto.aggregator.UserTriggerTaskReq.prototype.setTaskId = function(value) {
9433
+ proto.aggregator.TriggerTaskReq.prototype.setTaskId = function(value) {
9394
9434
  return jspb.Message.setProto3StringField(this, 1, value);
9395
9435
  };
9396
- proto.aggregator.UserTriggerTaskReq.prototype.getReason = function() {
9436
+ proto.aggregator.TriggerTaskReq.prototype.getTriggerType = function() {
9397
9437
  return (
9398
- /** @type{?proto.aggregator.TriggerReason} */
9399
- jspb.Message.getWrapperField(this, proto.aggregator.TriggerReason, 2)
9438
+ /** @type {!proto.aggregator.TriggerType} */
9439
+ jspb.Message.getFieldWithDefault(this, 2, 0)
9400
9440
  );
9401
9441
  };
9402
- proto.aggregator.UserTriggerTaskReq.prototype.setReason = function(value) {
9403
- return jspb.Message.setWrapperField(this, 2, value);
9442
+ proto.aggregator.TriggerTaskReq.prototype.setTriggerType = function(value) {
9443
+ return jspb.Message.setProto3EnumField(this, 2, value);
9444
+ };
9445
+ proto.aggregator.TriggerTaskReq.prototype.getBlockTrigger = function() {
9446
+ return (
9447
+ /** @type{?proto.aggregator.BlockTrigger.Output} */
9448
+ jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 3)
9449
+ );
9404
9450
  };
9405
- proto.aggregator.UserTriggerTaskReq.prototype.clearReason = function() {
9406
- return this.setReason(void 0);
9451
+ proto.aggregator.TriggerTaskReq.prototype.setBlockTrigger = function(value) {
9452
+ return jspb.Message.setOneofWrapperField(this, 3, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
9407
9453
  };
9408
- proto.aggregator.UserTriggerTaskReq.prototype.hasReason = function() {
9409
- return jspb.Message.getField(this, 2) != null;
9454
+ proto.aggregator.TriggerTaskReq.prototype.clearBlockTrigger = function() {
9455
+ return this.setBlockTrigger(void 0);
9456
+ };
9457
+ proto.aggregator.TriggerTaskReq.prototype.hasBlockTrigger = function() {
9458
+ return jspb.Message.getField(this, 3) != null;
9459
+ };
9460
+ proto.aggregator.TriggerTaskReq.prototype.getFixedTimeTrigger = function() {
9461
+ return (
9462
+ /** @type{?proto.aggregator.FixedTimeTrigger.Output} */
9463
+ jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 4)
9464
+ );
9465
+ };
9466
+ proto.aggregator.TriggerTaskReq.prototype.setFixedTimeTrigger = function(value) {
9467
+ return jspb.Message.setOneofWrapperField(this, 4, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
9468
+ };
9469
+ proto.aggregator.TriggerTaskReq.prototype.clearFixedTimeTrigger = function() {
9470
+ return this.setFixedTimeTrigger(void 0);
9410
9471
  };
9411
- proto.aggregator.UserTriggerTaskReq.prototype.getIsBlocking = function() {
9472
+ proto.aggregator.TriggerTaskReq.prototype.hasFixedTimeTrigger = function() {
9473
+ return jspb.Message.getField(this, 4) != null;
9474
+ };
9475
+ proto.aggregator.TriggerTaskReq.prototype.getCronTrigger = function() {
9476
+ return (
9477
+ /** @type{?proto.aggregator.CronTrigger.Output} */
9478
+ jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 5)
9479
+ );
9480
+ };
9481
+ proto.aggregator.TriggerTaskReq.prototype.setCronTrigger = function(value) {
9482
+ return jspb.Message.setOneofWrapperField(this, 5, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
9483
+ };
9484
+ proto.aggregator.TriggerTaskReq.prototype.clearCronTrigger = function() {
9485
+ return this.setCronTrigger(void 0);
9486
+ };
9487
+ proto.aggregator.TriggerTaskReq.prototype.hasCronTrigger = function() {
9488
+ return jspb.Message.getField(this, 5) != null;
9489
+ };
9490
+ proto.aggregator.TriggerTaskReq.prototype.getEventTrigger = function() {
9491
+ return (
9492
+ /** @type{?proto.aggregator.EventTrigger.Output} */
9493
+ jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 6)
9494
+ );
9495
+ };
9496
+ proto.aggregator.TriggerTaskReq.prototype.setEventTrigger = function(value) {
9497
+ return jspb.Message.setOneofWrapperField(this, 6, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
9498
+ };
9499
+ proto.aggregator.TriggerTaskReq.prototype.clearEventTrigger = function() {
9500
+ return this.setEventTrigger(void 0);
9501
+ };
9502
+ proto.aggregator.TriggerTaskReq.prototype.hasEventTrigger = function() {
9503
+ return jspb.Message.getField(this, 6) != null;
9504
+ };
9505
+ proto.aggregator.TriggerTaskReq.prototype.getManualTrigger = function() {
9506
+ return (
9507
+ /** @type{?proto.aggregator.ManualTrigger.Output} */
9508
+ jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 7)
9509
+ );
9510
+ };
9511
+ proto.aggregator.TriggerTaskReq.prototype.setManualTrigger = function(value) {
9512
+ return jspb.Message.setOneofWrapperField(this, 7, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
9513
+ };
9514
+ proto.aggregator.TriggerTaskReq.prototype.clearManualTrigger = function() {
9515
+ return this.setManualTrigger(void 0);
9516
+ };
9517
+ proto.aggregator.TriggerTaskReq.prototype.hasManualTrigger = function() {
9518
+ return jspb.Message.getField(this, 7) != null;
9519
+ };
9520
+ proto.aggregator.TriggerTaskReq.prototype.getIsBlocking = function() {
9412
9521
  return (
9413
9522
  /** @type {boolean} */
9414
- jspb.Message.getBooleanFieldWithDefault(this, 3, false)
9523
+ jspb.Message.getBooleanFieldWithDefault(this, 8, false)
9415
9524
  );
9416
9525
  };
9417
- proto.aggregator.UserTriggerTaskReq.prototype.setIsBlocking = function(value) {
9418
- return jspb.Message.setProto3BooleanField(this, 3, value);
9526
+ proto.aggregator.TriggerTaskReq.prototype.setIsBlocking = function(value) {
9527
+ return jspb.Message.setProto3BooleanField(this, 8, value);
9419
9528
  };
9420
9529
  if (jspb.Message.GENERATE_TO_OBJECT) {
9421
- proto.aggregator.UserTriggerTaskResp.prototype.toObject = function(opt_includeInstance) {
9422
- return proto.aggregator.UserTriggerTaskResp.toObject(opt_includeInstance, this);
9530
+ proto.aggregator.TriggerTaskResp.prototype.toObject = function(opt_includeInstance) {
9531
+ return proto.aggregator.TriggerTaskResp.toObject(opt_includeInstance, this);
9423
9532
  };
9424
- proto.aggregator.UserTriggerTaskResp.toObject = function(includeInstance, msg) {
9533
+ proto.aggregator.TriggerTaskResp.toObject = function(includeInstance, msg) {
9425
9534
  var f, obj = {
9426
9535
  executionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
9427
9536
  status: jspb.Message.getFieldWithDefault(msg, 2, 0)
@@ -9432,12 +9541,12 @@ var require_avs_pb = __commonJS({
9432
9541
  return obj;
9433
9542
  };
9434
9543
  }
9435
- proto.aggregator.UserTriggerTaskResp.deserializeBinary = function(bytes) {
9544
+ proto.aggregator.TriggerTaskResp.deserializeBinary = function(bytes) {
9436
9545
  var reader = new jspb.BinaryReader(bytes);
9437
- var msg = new proto.aggregator.UserTriggerTaskResp();
9438
- return proto.aggregator.UserTriggerTaskResp.deserializeBinaryFromReader(msg, reader);
9546
+ var msg = new proto.aggregator.TriggerTaskResp();
9547
+ return proto.aggregator.TriggerTaskResp.deserializeBinaryFromReader(msg, reader);
9439
9548
  };
9440
- proto.aggregator.UserTriggerTaskResp.deserializeBinaryFromReader = function(msg, reader) {
9549
+ proto.aggregator.TriggerTaskResp.deserializeBinaryFromReader = function(msg, reader) {
9441
9550
  while (reader.nextField()) {
9442
9551
  if (reader.isEndGroup()) {
9443
9552
  break;
@@ -9465,12 +9574,12 @@ var require_avs_pb = __commonJS({
9465
9574
  }
9466
9575
  return msg;
9467
9576
  };
9468
- proto.aggregator.UserTriggerTaskResp.prototype.serializeBinary = function() {
9577
+ proto.aggregator.TriggerTaskResp.prototype.serializeBinary = function() {
9469
9578
  var writer = new jspb.BinaryWriter();
9470
- proto.aggregator.UserTriggerTaskResp.serializeBinaryToWriter(this, writer);
9579
+ proto.aggregator.TriggerTaskResp.serializeBinaryToWriter(this, writer);
9471
9580
  return writer.getResultBuffer();
9472
9581
  };
9473
- proto.aggregator.UserTriggerTaskResp.serializeBinaryToWriter = function(message, writer) {
9582
+ proto.aggregator.TriggerTaskResp.serializeBinaryToWriter = function(message, writer) {
9474
9583
  var f = void 0;
9475
9584
  f = message.getExecutionId();
9476
9585
  if (f.length > 0) {
@@ -9487,22 +9596,22 @@ var require_avs_pb = __commonJS({
9487
9596
  );
9488
9597
  }
9489
9598
  };
9490
- proto.aggregator.UserTriggerTaskResp.prototype.getExecutionId = function() {
9599
+ proto.aggregator.TriggerTaskResp.prototype.getExecutionId = function() {
9491
9600
  return (
9492
9601
  /** @type {string} */
9493
9602
  jspb.Message.getFieldWithDefault(this, 1, "")
9494
9603
  );
9495
9604
  };
9496
- proto.aggregator.UserTriggerTaskResp.prototype.setExecutionId = function(value) {
9605
+ proto.aggregator.TriggerTaskResp.prototype.setExecutionId = function(value) {
9497
9606
  return jspb.Message.setProto3StringField(this, 1, value);
9498
9607
  };
9499
- proto.aggregator.UserTriggerTaskResp.prototype.getStatus = function() {
9608
+ proto.aggregator.TriggerTaskResp.prototype.getStatus = function() {
9500
9609
  return (
9501
9610
  /** @type {!proto.aggregator.ExecutionStatus} */
9502
9611
  jspb.Message.getFieldWithDefault(this, 2, 0)
9503
9612
  );
9504
9613
  };
9505
- proto.aggregator.UserTriggerTaskResp.prototype.setStatus = function(value) {
9614
+ proto.aggregator.TriggerTaskResp.prototype.setStatus = function(value) {
9506
9615
  return jspb.Message.setProto3EnumField(this, 2, value);
9507
9616
  };
9508
9617
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -13058,8 +13167,10 @@ var require_avs_pb = __commonJS({
13058
13167
  EXECUTING: 4
13059
13168
  };
13060
13169
  proto.aggregator.ExecutionStatus = {
13061
- QUEUED: 0,
13062
- FINISHED: 2
13170
+ EXECUTION_STATUS_UNSPECIFIED: 0,
13171
+ EXECUTION_STATUS_PENDING: 1,
13172
+ EXECUTION_STATUS_COMPLETED: 2,
13173
+ EXECUTION_STATUS_FAILED: 3
13063
13174
  };
13064
13175
  goog.object.extend(exports2, proto.aggregator);
13065
13176
  }
@@ -13070,352 +13181,352 @@ var require_avs_grpc_pb = __commonJS({
13070
13181
  "../../grpc_codegen/avs_grpc_pb.js"(exports2) {
13071
13182
  "use strict";
13072
13183
  var grpc = require("@grpc/grpc-js");
13073
- var avs_pb25 = require_avs_pb();
13184
+ var avs_pb24 = require_avs_pb();
13074
13185
  var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
13075
13186
  var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
13076
13187
  var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
13077
13188
  var google_protobuf_struct_pb = require("google-protobuf/google/protobuf/struct_pb.js");
13078
13189
  function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
13079
- if (!(arg instanceof avs_pb25.CreateOrUpdateSecretReq)) {
13190
+ if (!(arg instanceof avs_pb24.CreateOrUpdateSecretReq)) {
13080
13191
  throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
13081
13192
  }
13082
13193
  return Buffer.from(arg.serializeBinary());
13083
13194
  }
13084
13195
  function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
13085
- return avs_pb25.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
13196
+ return avs_pb24.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
13086
13197
  }
13087
13198
  function serialize_aggregator_CreateTaskReq(arg) {
13088
- if (!(arg instanceof avs_pb25.CreateTaskReq)) {
13199
+ if (!(arg instanceof avs_pb24.CreateTaskReq)) {
13089
13200
  throw new Error("Expected argument of type aggregator.CreateTaskReq");
13090
13201
  }
13091
13202
  return Buffer.from(arg.serializeBinary());
13092
13203
  }
13093
13204
  function deserialize_aggregator_CreateTaskReq(buffer_arg) {
13094
- return avs_pb25.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
13205
+ return avs_pb24.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
13095
13206
  }
13096
13207
  function serialize_aggregator_CreateTaskResp(arg) {
13097
- if (!(arg instanceof avs_pb25.CreateTaskResp)) {
13208
+ if (!(arg instanceof avs_pb24.CreateTaskResp)) {
13098
13209
  throw new Error("Expected argument of type aggregator.CreateTaskResp");
13099
13210
  }
13100
13211
  return Buffer.from(arg.serializeBinary());
13101
13212
  }
13102
13213
  function deserialize_aggregator_CreateTaskResp(buffer_arg) {
13103
- return avs_pb25.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
13214
+ return avs_pb24.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
13104
13215
  }
13105
13216
  function serialize_aggregator_DeleteSecretReq(arg) {
13106
- if (!(arg instanceof avs_pb25.DeleteSecretReq)) {
13217
+ if (!(arg instanceof avs_pb24.DeleteSecretReq)) {
13107
13218
  throw new Error("Expected argument of type aggregator.DeleteSecretReq");
13108
13219
  }
13109
13220
  return Buffer.from(arg.serializeBinary());
13110
13221
  }
13111
13222
  function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
13112
- return avs_pb25.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
13223
+ return avs_pb24.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
13113
13224
  }
13114
13225
  function serialize_aggregator_Execution(arg) {
13115
- if (!(arg instanceof avs_pb25.Execution)) {
13226
+ if (!(arg instanceof avs_pb24.Execution)) {
13116
13227
  throw new Error("Expected argument of type aggregator.Execution");
13117
13228
  }
13118
13229
  return Buffer.from(arg.serializeBinary());
13119
13230
  }
13120
13231
  function deserialize_aggregator_Execution(buffer_arg) {
13121
- return avs_pb25.Execution.deserializeBinary(new Uint8Array(buffer_arg));
13232
+ return avs_pb24.Execution.deserializeBinary(new Uint8Array(buffer_arg));
13122
13233
  }
13123
13234
  function serialize_aggregator_ExecutionReq(arg) {
13124
- if (!(arg instanceof avs_pb25.ExecutionReq)) {
13235
+ if (!(arg instanceof avs_pb24.ExecutionReq)) {
13125
13236
  throw new Error("Expected argument of type aggregator.ExecutionReq");
13126
13237
  }
13127
13238
  return Buffer.from(arg.serializeBinary());
13128
13239
  }
13129
13240
  function deserialize_aggregator_ExecutionReq(buffer_arg) {
13130
- return avs_pb25.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
13241
+ return avs_pb24.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
13131
13242
  }
13132
13243
  function serialize_aggregator_ExecutionStatusResp(arg) {
13133
- if (!(arg instanceof avs_pb25.ExecutionStatusResp)) {
13244
+ if (!(arg instanceof avs_pb24.ExecutionStatusResp)) {
13134
13245
  throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
13135
13246
  }
13136
13247
  return Buffer.from(arg.serializeBinary());
13137
13248
  }
13138
13249
  function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
13139
- return avs_pb25.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
13250
+ return avs_pb24.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
13140
13251
  }
13141
13252
  function serialize_aggregator_GetExecutionCountReq(arg) {
13142
- if (!(arg instanceof avs_pb25.GetExecutionCountReq)) {
13253
+ if (!(arg instanceof avs_pb24.GetExecutionCountReq)) {
13143
13254
  throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
13144
13255
  }
13145
13256
  return Buffer.from(arg.serializeBinary());
13146
13257
  }
13147
13258
  function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
13148
- return avs_pb25.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
13259
+ return avs_pb24.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
13149
13260
  }
13150
13261
  function serialize_aggregator_GetExecutionCountResp(arg) {
13151
- if (!(arg instanceof avs_pb25.GetExecutionCountResp)) {
13262
+ if (!(arg instanceof avs_pb24.GetExecutionCountResp)) {
13152
13263
  throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
13153
13264
  }
13154
13265
  return Buffer.from(arg.serializeBinary());
13155
13266
  }
13156
13267
  function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
13157
- return avs_pb25.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
13268
+ return avs_pb24.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
13158
13269
  }
13159
13270
  function serialize_aggregator_GetExecutionStatsReq(arg) {
13160
- if (!(arg instanceof avs_pb25.GetExecutionStatsReq)) {
13271
+ if (!(arg instanceof avs_pb24.GetExecutionStatsReq)) {
13161
13272
  throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
13162
13273
  }
13163
13274
  return Buffer.from(arg.serializeBinary());
13164
13275
  }
13165
13276
  function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
13166
- return avs_pb25.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
13277
+ return avs_pb24.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
13167
13278
  }
13168
13279
  function serialize_aggregator_GetExecutionStatsResp(arg) {
13169
- if (!(arg instanceof avs_pb25.GetExecutionStatsResp)) {
13280
+ if (!(arg instanceof avs_pb24.GetExecutionStatsResp)) {
13170
13281
  throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
13171
13282
  }
13172
13283
  return Buffer.from(arg.serializeBinary());
13173
13284
  }
13174
13285
  function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
13175
- return avs_pb25.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
13286
+ return avs_pb24.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
13176
13287
  }
13177
13288
  function serialize_aggregator_GetKeyReq(arg) {
13178
- if (!(arg instanceof avs_pb25.GetKeyReq)) {
13289
+ if (!(arg instanceof avs_pb24.GetKeyReq)) {
13179
13290
  throw new Error("Expected argument of type aggregator.GetKeyReq");
13180
13291
  }
13181
13292
  return Buffer.from(arg.serializeBinary());
13182
13293
  }
13183
13294
  function deserialize_aggregator_GetKeyReq(buffer_arg) {
13184
- return avs_pb25.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
13295
+ return avs_pb24.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
13185
13296
  }
13186
13297
  function serialize_aggregator_GetSignatureFormatReq(arg) {
13187
- if (!(arg instanceof avs_pb25.GetSignatureFormatReq)) {
13298
+ if (!(arg instanceof avs_pb24.GetSignatureFormatReq)) {
13188
13299
  throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
13189
13300
  }
13190
13301
  return Buffer.from(arg.serializeBinary());
13191
13302
  }
13192
13303
  function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
13193
- return avs_pb25.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
13304
+ return avs_pb24.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
13194
13305
  }
13195
13306
  function serialize_aggregator_GetSignatureFormatResp(arg) {
13196
- if (!(arg instanceof avs_pb25.GetSignatureFormatResp)) {
13307
+ if (!(arg instanceof avs_pb24.GetSignatureFormatResp)) {
13197
13308
  throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
13198
13309
  }
13199
13310
  return Buffer.from(arg.serializeBinary());
13200
13311
  }
13201
13312
  function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
13202
- return avs_pb25.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
13313
+ return avs_pb24.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
13203
13314
  }
13204
13315
  function serialize_aggregator_GetWalletReq(arg) {
13205
- if (!(arg instanceof avs_pb25.GetWalletReq)) {
13316
+ if (!(arg instanceof avs_pb24.GetWalletReq)) {
13206
13317
  throw new Error("Expected argument of type aggregator.GetWalletReq");
13207
13318
  }
13208
13319
  return Buffer.from(arg.serializeBinary());
13209
13320
  }
13210
13321
  function deserialize_aggregator_GetWalletReq(buffer_arg) {
13211
- return avs_pb25.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
13322
+ return avs_pb24.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
13212
13323
  }
13213
13324
  function serialize_aggregator_GetWalletResp(arg) {
13214
- if (!(arg instanceof avs_pb25.GetWalletResp)) {
13325
+ if (!(arg instanceof avs_pb24.GetWalletResp)) {
13215
13326
  throw new Error("Expected argument of type aggregator.GetWalletResp");
13216
13327
  }
13217
13328
  return Buffer.from(arg.serializeBinary());
13218
13329
  }
13219
13330
  function deserialize_aggregator_GetWalletResp(buffer_arg) {
13220
- return avs_pb25.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
13331
+ return avs_pb24.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
13221
13332
  }
13222
13333
  function serialize_aggregator_GetWorkflowCountReq(arg) {
13223
- if (!(arg instanceof avs_pb25.GetWorkflowCountReq)) {
13334
+ if (!(arg instanceof avs_pb24.GetWorkflowCountReq)) {
13224
13335
  throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
13225
13336
  }
13226
13337
  return Buffer.from(arg.serializeBinary());
13227
13338
  }
13228
13339
  function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
13229
- return avs_pb25.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
13340
+ return avs_pb24.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
13230
13341
  }
13231
13342
  function serialize_aggregator_GetWorkflowCountResp(arg) {
13232
- if (!(arg instanceof avs_pb25.GetWorkflowCountResp)) {
13343
+ if (!(arg instanceof avs_pb24.GetWorkflowCountResp)) {
13233
13344
  throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
13234
13345
  }
13235
13346
  return Buffer.from(arg.serializeBinary());
13236
13347
  }
13237
13348
  function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
13238
- return avs_pb25.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
13349
+ return avs_pb24.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
13239
13350
  }
13240
13351
  function serialize_aggregator_IdReq(arg) {
13241
- if (!(arg instanceof avs_pb25.IdReq)) {
13352
+ if (!(arg instanceof avs_pb24.IdReq)) {
13242
13353
  throw new Error("Expected argument of type aggregator.IdReq");
13243
13354
  }
13244
13355
  return Buffer.from(arg.serializeBinary());
13245
13356
  }
13246
13357
  function deserialize_aggregator_IdReq(buffer_arg) {
13247
- return avs_pb25.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
13358
+ return avs_pb24.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
13248
13359
  }
13249
13360
  function serialize_aggregator_KeyResp(arg) {
13250
- if (!(arg instanceof avs_pb25.KeyResp)) {
13361
+ if (!(arg instanceof avs_pb24.KeyResp)) {
13251
13362
  throw new Error("Expected argument of type aggregator.KeyResp");
13252
13363
  }
13253
13364
  return Buffer.from(arg.serializeBinary());
13254
13365
  }
13255
13366
  function deserialize_aggregator_KeyResp(buffer_arg) {
13256
- return avs_pb25.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
13367
+ return avs_pb24.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
13257
13368
  }
13258
13369
  function serialize_aggregator_ListExecutionsReq(arg) {
13259
- if (!(arg instanceof avs_pb25.ListExecutionsReq)) {
13370
+ if (!(arg instanceof avs_pb24.ListExecutionsReq)) {
13260
13371
  throw new Error("Expected argument of type aggregator.ListExecutionsReq");
13261
13372
  }
13262
13373
  return Buffer.from(arg.serializeBinary());
13263
13374
  }
13264
13375
  function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
13265
- return avs_pb25.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
13376
+ return avs_pb24.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
13266
13377
  }
13267
13378
  function serialize_aggregator_ListExecutionsResp(arg) {
13268
- if (!(arg instanceof avs_pb25.ListExecutionsResp)) {
13379
+ if (!(arg instanceof avs_pb24.ListExecutionsResp)) {
13269
13380
  throw new Error("Expected argument of type aggregator.ListExecutionsResp");
13270
13381
  }
13271
13382
  return Buffer.from(arg.serializeBinary());
13272
13383
  }
13273
13384
  function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
13274
- return avs_pb25.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
13385
+ return avs_pb24.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
13275
13386
  }
13276
13387
  function serialize_aggregator_ListSecretsReq(arg) {
13277
- if (!(arg instanceof avs_pb25.ListSecretsReq)) {
13388
+ if (!(arg instanceof avs_pb24.ListSecretsReq)) {
13278
13389
  throw new Error("Expected argument of type aggregator.ListSecretsReq");
13279
13390
  }
13280
13391
  return Buffer.from(arg.serializeBinary());
13281
13392
  }
13282
13393
  function deserialize_aggregator_ListSecretsReq(buffer_arg) {
13283
- return avs_pb25.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
13394
+ return avs_pb24.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
13284
13395
  }
13285
13396
  function serialize_aggregator_ListSecretsResp(arg) {
13286
- if (!(arg instanceof avs_pb25.ListSecretsResp)) {
13397
+ if (!(arg instanceof avs_pb24.ListSecretsResp)) {
13287
13398
  throw new Error("Expected argument of type aggregator.ListSecretsResp");
13288
13399
  }
13289
13400
  return Buffer.from(arg.serializeBinary());
13290
13401
  }
13291
13402
  function deserialize_aggregator_ListSecretsResp(buffer_arg) {
13292
- return avs_pb25.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
13403
+ return avs_pb24.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
13293
13404
  }
13294
13405
  function serialize_aggregator_ListTasksReq(arg) {
13295
- if (!(arg instanceof avs_pb25.ListTasksReq)) {
13406
+ if (!(arg instanceof avs_pb24.ListTasksReq)) {
13296
13407
  throw new Error("Expected argument of type aggregator.ListTasksReq");
13297
13408
  }
13298
13409
  return Buffer.from(arg.serializeBinary());
13299
13410
  }
13300
13411
  function deserialize_aggregator_ListTasksReq(buffer_arg) {
13301
- return avs_pb25.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
13412
+ return avs_pb24.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
13302
13413
  }
13303
13414
  function serialize_aggregator_ListTasksResp(arg) {
13304
- if (!(arg instanceof avs_pb25.ListTasksResp)) {
13415
+ if (!(arg instanceof avs_pb24.ListTasksResp)) {
13305
13416
  throw new Error("Expected argument of type aggregator.ListTasksResp");
13306
13417
  }
13307
13418
  return Buffer.from(arg.serializeBinary());
13308
13419
  }
13309
13420
  function deserialize_aggregator_ListTasksResp(buffer_arg) {
13310
- return avs_pb25.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
13421
+ return avs_pb24.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
13311
13422
  }
13312
13423
  function serialize_aggregator_ListWalletReq(arg) {
13313
- if (!(arg instanceof avs_pb25.ListWalletReq)) {
13424
+ if (!(arg instanceof avs_pb24.ListWalletReq)) {
13314
13425
  throw new Error("Expected argument of type aggregator.ListWalletReq");
13315
13426
  }
13316
13427
  return Buffer.from(arg.serializeBinary());
13317
13428
  }
13318
13429
  function deserialize_aggregator_ListWalletReq(buffer_arg) {
13319
- return avs_pb25.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
13430
+ return avs_pb24.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
13320
13431
  }
13321
13432
  function serialize_aggregator_ListWalletResp(arg) {
13322
- if (!(arg instanceof avs_pb25.ListWalletResp)) {
13433
+ if (!(arg instanceof avs_pb24.ListWalletResp)) {
13323
13434
  throw new Error("Expected argument of type aggregator.ListWalletResp");
13324
13435
  }
13325
13436
  return Buffer.from(arg.serializeBinary());
13326
13437
  }
13327
13438
  function deserialize_aggregator_ListWalletResp(buffer_arg) {
13328
- return avs_pb25.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
13439
+ return avs_pb24.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
13329
13440
  }
13330
13441
  function serialize_aggregator_NonceRequest(arg) {
13331
- if (!(arg instanceof avs_pb25.NonceRequest)) {
13442
+ if (!(arg instanceof avs_pb24.NonceRequest)) {
13332
13443
  throw new Error("Expected argument of type aggregator.NonceRequest");
13333
13444
  }
13334
13445
  return Buffer.from(arg.serializeBinary());
13335
13446
  }
13336
13447
  function deserialize_aggregator_NonceRequest(buffer_arg) {
13337
- return avs_pb25.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
13448
+ return avs_pb24.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
13338
13449
  }
13339
13450
  function serialize_aggregator_NonceResp(arg) {
13340
- if (!(arg instanceof avs_pb25.NonceResp)) {
13451
+ if (!(arg instanceof avs_pb24.NonceResp)) {
13341
13452
  throw new Error("Expected argument of type aggregator.NonceResp");
13342
13453
  }
13343
13454
  return Buffer.from(arg.serializeBinary());
13344
13455
  }
13345
13456
  function deserialize_aggregator_NonceResp(buffer_arg) {
13346
- return avs_pb25.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
13457
+ return avs_pb24.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
13347
13458
  }
13348
13459
  function serialize_aggregator_RunNodeWithInputsReq(arg) {
13349
- if (!(arg instanceof avs_pb25.RunNodeWithInputsReq)) {
13460
+ if (!(arg instanceof avs_pb24.RunNodeWithInputsReq)) {
13350
13461
  throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
13351
13462
  }
13352
13463
  return Buffer.from(arg.serializeBinary());
13353
13464
  }
13354
13465
  function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
13355
- return avs_pb25.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
13466
+ return avs_pb24.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
13356
13467
  }
13357
13468
  function serialize_aggregator_RunNodeWithInputsResp(arg) {
13358
- if (!(arg instanceof avs_pb25.RunNodeWithInputsResp)) {
13469
+ if (!(arg instanceof avs_pb24.RunNodeWithInputsResp)) {
13359
13470
  throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
13360
13471
  }
13361
13472
  return Buffer.from(arg.serializeBinary());
13362
13473
  }
13363
13474
  function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
13364
- return avs_pb25.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
13475
+ return avs_pb24.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
13365
13476
  }
13366
13477
  function serialize_aggregator_RunTriggerReq(arg) {
13367
- if (!(arg instanceof avs_pb25.RunTriggerReq)) {
13478
+ if (!(arg instanceof avs_pb24.RunTriggerReq)) {
13368
13479
  throw new Error("Expected argument of type aggregator.RunTriggerReq");
13369
13480
  }
13370
13481
  return Buffer.from(arg.serializeBinary());
13371
13482
  }
13372
13483
  function deserialize_aggregator_RunTriggerReq(buffer_arg) {
13373
- return avs_pb25.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
13484
+ return avs_pb24.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
13374
13485
  }
13375
13486
  function serialize_aggregator_RunTriggerResp(arg) {
13376
- if (!(arg instanceof avs_pb25.RunTriggerResp)) {
13487
+ if (!(arg instanceof avs_pb24.RunTriggerResp)) {
13377
13488
  throw new Error("Expected argument of type aggregator.RunTriggerResp");
13378
13489
  }
13379
13490
  return Buffer.from(arg.serializeBinary());
13380
13491
  }
13381
13492
  function deserialize_aggregator_RunTriggerResp(buffer_arg) {
13382
- return avs_pb25.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
13493
+ return avs_pb24.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
13383
13494
  }
13384
13495
  function serialize_aggregator_SetWalletReq(arg) {
13385
- if (!(arg instanceof avs_pb25.SetWalletReq)) {
13496
+ if (!(arg instanceof avs_pb24.SetWalletReq)) {
13386
13497
  throw new Error("Expected argument of type aggregator.SetWalletReq");
13387
13498
  }
13388
13499
  return Buffer.from(arg.serializeBinary());
13389
13500
  }
13390
13501
  function deserialize_aggregator_SetWalletReq(buffer_arg) {
13391
- return avs_pb25.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
13502
+ return avs_pb24.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
13392
13503
  }
13393
13504
  function serialize_aggregator_Task(arg) {
13394
- if (!(arg instanceof avs_pb25.Task)) {
13505
+ if (!(arg instanceof avs_pb24.Task)) {
13395
13506
  throw new Error("Expected argument of type aggregator.Task");
13396
13507
  }
13397
13508
  return Buffer.from(arg.serializeBinary());
13398
13509
  }
13399
13510
  function deserialize_aggregator_Task(buffer_arg) {
13400
- return avs_pb25.Task.deserializeBinary(new Uint8Array(buffer_arg));
13511
+ return avs_pb24.Task.deserializeBinary(new Uint8Array(buffer_arg));
13401
13512
  }
13402
- function serialize_aggregator_UserTriggerTaskReq(arg) {
13403
- if (!(arg instanceof avs_pb25.UserTriggerTaskReq)) {
13404
- throw new Error("Expected argument of type aggregator.UserTriggerTaskReq");
13513
+ function serialize_aggregator_TriggerTaskReq(arg) {
13514
+ if (!(arg instanceof avs_pb24.TriggerTaskReq)) {
13515
+ throw new Error("Expected argument of type aggregator.TriggerTaskReq");
13405
13516
  }
13406
13517
  return Buffer.from(arg.serializeBinary());
13407
13518
  }
13408
- function deserialize_aggregator_UserTriggerTaskReq(buffer_arg) {
13409
- return avs_pb25.UserTriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
13519
+ function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
13520
+ return avs_pb24.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
13410
13521
  }
13411
- function serialize_aggregator_UserTriggerTaskResp(arg) {
13412
- if (!(arg instanceof avs_pb25.UserTriggerTaskResp)) {
13413
- throw new Error("Expected argument of type aggregator.UserTriggerTaskResp");
13522
+ function serialize_aggregator_TriggerTaskResp(arg) {
13523
+ if (!(arg instanceof avs_pb24.TriggerTaskResp)) {
13524
+ throw new Error("Expected argument of type aggregator.TriggerTaskResp");
13414
13525
  }
13415
13526
  return Buffer.from(arg.serializeBinary());
13416
13527
  }
13417
- function deserialize_aggregator_UserTriggerTaskResp(buffer_arg) {
13418
- return avs_pb25.UserTriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
13528
+ function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
13529
+ return avs_pb24.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
13419
13530
  }
13420
13531
  function serialize_google_protobuf_BoolValue(arg) {
13421
13532
  if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
@@ -13432,8 +13543,8 @@ var require_avs_grpc_pb = __commonJS({
13432
13543
  path: "/aggregator.Aggregator/GetKey",
13433
13544
  requestStream: false,
13434
13545
  responseStream: false,
13435
- requestType: avs_pb25.GetKeyReq,
13436
- responseType: avs_pb25.KeyResp,
13546
+ requestType: avs_pb24.GetKeyReq,
13547
+ responseType: avs_pb24.KeyResp,
13437
13548
  requestSerialize: serialize_aggregator_GetKeyReq,
13438
13549
  requestDeserialize: deserialize_aggregator_GetKeyReq,
13439
13550
  responseSerialize: serialize_aggregator_KeyResp,
@@ -13444,8 +13555,8 @@ var require_avs_grpc_pb = __commonJS({
13444
13555
  path: "/aggregator.Aggregator/GetSignatureFormat",
13445
13556
  requestStream: false,
13446
13557
  responseStream: false,
13447
- requestType: avs_pb25.GetSignatureFormatReq,
13448
- responseType: avs_pb25.GetSignatureFormatResp,
13558
+ requestType: avs_pb24.GetSignatureFormatReq,
13559
+ responseType: avs_pb24.GetSignatureFormatResp,
13449
13560
  requestSerialize: serialize_aggregator_GetSignatureFormatReq,
13450
13561
  requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
13451
13562
  responseSerialize: serialize_aggregator_GetSignatureFormatResp,
@@ -13456,8 +13567,8 @@ var require_avs_grpc_pb = __commonJS({
13456
13567
  path: "/aggregator.Aggregator/GetNonce",
13457
13568
  requestStream: false,
13458
13569
  responseStream: false,
13459
- requestType: avs_pb25.NonceRequest,
13460
- responseType: avs_pb25.NonceResp,
13570
+ requestType: avs_pb24.NonceRequest,
13571
+ responseType: avs_pb24.NonceResp,
13461
13572
  requestSerialize: serialize_aggregator_NonceRequest,
13462
13573
  requestDeserialize: deserialize_aggregator_NonceRequest,
13463
13574
  responseSerialize: serialize_aggregator_NonceResp,
@@ -13467,8 +13578,8 @@ var require_avs_grpc_pb = __commonJS({
13467
13578
  path: "/aggregator.Aggregator/GetWallet",
13468
13579
  requestStream: false,
13469
13580
  responseStream: false,
13470
- requestType: avs_pb25.GetWalletReq,
13471
- responseType: avs_pb25.GetWalletResp,
13581
+ requestType: avs_pb24.GetWalletReq,
13582
+ responseType: avs_pb24.GetWalletResp,
13472
13583
  requestSerialize: serialize_aggregator_GetWalletReq,
13473
13584
  requestDeserialize: deserialize_aggregator_GetWalletReq,
13474
13585
  responseSerialize: serialize_aggregator_GetWalletResp,
@@ -13478,8 +13589,8 @@ var require_avs_grpc_pb = __commonJS({
13478
13589
  path: "/aggregator.Aggregator/SetWallet",
13479
13590
  requestStream: false,
13480
13591
  responseStream: false,
13481
- requestType: avs_pb25.SetWalletReq,
13482
- responseType: avs_pb25.GetWalletResp,
13592
+ requestType: avs_pb24.SetWalletReq,
13593
+ responseType: avs_pb24.GetWalletResp,
13483
13594
  requestSerialize: serialize_aggregator_SetWalletReq,
13484
13595
  requestDeserialize: deserialize_aggregator_SetWalletReq,
13485
13596
  responseSerialize: serialize_aggregator_GetWalletResp,
@@ -13489,8 +13600,8 @@ var require_avs_grpc_pb = __commonJS({
13489
13600
  path: "/aggregator.Aggregator/ListWallets",
13490
13601
  requestStream: false,
13491
13602
  responseStream: false,
13492
- requestType: avs_pb25.ListWalletReq,
13493
- responseType: avs_pb25.ListWalletResp,
13603
+ requestType: avs_pb24.ListWalletReq,
13604
+ responseType: avs_pb24.ListWalletResp,
13494
13605
  requestSerialize: serialize_aggregator_ListWalletReq,
13495
13606
  requestDeserialize: deserialize_aggregator_ListWalletReq,
13496
13607
  responseSerialize: serialize_aggregator_ListWalletResp,
@@ -13501,8 +13612,8 @@ var require_avs_grpc_pb = __commonJS({
13501
13612
  path: "/aggregator.Aggregator/CreateTask",
13502
13613
  requestStream: false,
13503
13614
  responseStream: false,
13504
- requestType: avs_pb25.CreateTaskReq,
13505
- responseType: avs_pb25.CreateTaskResp,
13615
+ requestType: avs_pb24.CreateTaskReq,
13616
+ responseType: avs_pb24.CreateTaskResp,
13506
13617
  requestSerialize: serialize_aggregator_CreateTaskReq,
13507
13618
  requestDeserialize: deserialize_aggregator_CreateTaskReq,
13508
13619
  responseSerialize: serialize_aggregator_CreateTaskResp,
@@ -13512,8 +13623,8 @@ var require_avs_grpc_pb = __commonJS({
13512
13623
  path: "/aggregator.Aggregator/ListTasks",
13513
13624
  requestStream: false,
13514
13625
  responseStream: false,
13515
- requestType: avs_pb25.ListTasksReq,
13516
- responseType: avs_pb25.ListTasksResp,
13626
+ requestType: avs_pb24.ListTasksReq,
13627
+ responseType: avs_pb24.ListTasksResp,
13517
13628
  requestSerialize: serialize_aggregator_ListTasksReq,
13518
13629
  requestDeserialize: deserialize_aggregator_ListTasksReq,
13519
13630
  responseSerialize: serialize_aggregator_ListTasksResp,
@@ -13523,8 +13634,8 @@ var require_avs_grpc_pb = __commonJS({
13523
13634
  path: "/aggregator.Aggregator/GetTask",
13524
13635
  requestStream: false,
13525
13636
  responseStream: false,
13526
- requestType: avs_pb25.IdReq,
13527
- responseType: avs_pb25.Task,
13637
+ requestType: avs_pb24.IdReq,
13638
+ responseType: avs_pb24.Task,
13528
13639
  requestSerialize: serialize_aggregator_IdReq,
13529
13640
  requestDeserialize: deserialize_aggregator_IdReq,
13530
13641
  responseSerialize: serialize_aggregator_Task,
@@ -13534,8 +13645,8 @@ var require_avs_grpc_pb = __commonJS({
13534
13645
  path: "/aggregator.Aggregator/ListExecutions",
13535
13646
  requestStream: false,
13536
13647
  responseStream: false,
13537
- requestType: avs_pb25.ListExecutionsReq,
13538
- responseType: avs_pb25.ListExecutionsResp,
13648
+ requestType: avs_pb24.ListExecutionsReq,
13649
+ responseType: avs_pb24.ListExecutionsResp,
13539
13650
  requestSerialize: serialize_aggregator_ListExecutionsReq,
13540
13651
  requestDeserialize: deserialize_aggregator_ListExecutionsReq,
13541
13652
  responseSerialize: serialize_aggregator_ListExecutionsResp,
@@ -13545,8 +13656,8 @@ var require_avs_grpc_pb = __commonJS({
13545
13656
  path: "/aggregator.Aggregator/GetExecution",
13546
13657
  requestStream: false,
13547
13658
  responseStream: false,
13548
- requestType: avs_pb25.ExecutionReq,
13549
- responseType: avs_pb25.Execution,
13659
+ requestType: avs_pb24.ExecutionReq,
13660
+ responseType: avs_pb24.Execution,
13550
13661
  requestSerialize: serialize_aggregator_ExecutionReq,
13551
13662
  requestDeserialize: deserialize_aggregator_ExecutionReq,
13552
13663
  responseSerialize: serialize_aggregator_Execution,
@@ -13556,8 +13667,8 @@ var require_avs_grpc_pb = __commonJS({
13556
13667
  path: "/aggregator.Aggregator/GetExecutionStatus",
13557
13668
  requestStream: false,
13558
13669
  responseStream: false,
13559
- requestType: avs_pb25.ExecutionReq,
13560
- responseType: avs_pb25.ExecutionStatusResp,
13670
+ requestType: avs_pb24.ExecutionReq,
13671
+ responseType: avs_pb24.ExecutionStatusResp,
13561
13672
  requestSerialize: serialize_aggregator_ExecutionReq,
13562
13673
  requestDeserialize: deserialize_aggregator_ExecutionReq,
13563
13674
  responseSerialize: serialize_aggregator_ExecutionStatusResp,
@@ -13567,7 +13678,7 @@ var require_avs_grpc_pb = __commonJS({
13567
13678
  path: "/aggregator.Aggregator/CancelTask",
13568
13679
  requestStream: false,
13569
13680
  responseStream: false,
13570
- requestType: avs_pb25.IdReq,
13681
+ requestType: avs_pb24.IdReq,
13571
13682
  responseType: google_protobuf_wrappers_pb.BoolValue,
13572
13683
  requestSerialize: serialize_aggregator_IdReq,
13573
13684
  requestDeserialize: deserialize_aggregator_IdReq,
@@ -13578,7 +13689,7 @@ var require_avs_grpc_pb = __commonJS({
13578
13689
  path: "/aggregator.Aggregator/DeleteTask",
13579
13690
  requestStream: false,
13580
13691
  responseStream: false,
13581
- requestType: avs_pb25.IdReq,
13692
+ requestType: avs_pb24.IdReq,
13582
13693
  responseType: google_protobuf_wrappers_pb.BoolValue,
13583
13694
  requestSerialize: serialize_aggregator_IdReq,
13584
13695
  requestDeserialize: deserialize_aggregator_IdReq,
@@ -13589,12 +13700,12 @@ var require_avs_grpc_pb = __commonJS({
13589
13700
  path: "/aggregator.Aggregator/TriggerTask",
13590
13701
  requestStream: false,
13591
13702
  responseStream: false,
13592
- requestType: avs_pb25.UserTriggerTaskReq,
13593
- responseType: avs_pb25.UserTriggerTaskResp,
13594
- requestSerialize: serialize_aggregator_UserTriggerTaskReq,
13595
- requestDeserialize: deserialize_aggregator_UserTriggerTaskReq,
13596
- responseSerialize: serialize_aggregator_UserTriggerTaskResp,
13597
- responseDeserialize: deserialize_aggregator_UserTriggerTaskResp
13703
+ requestType: avs_pb24.TriggerTaskReq,
13704
+ responseType: avs_pb24.TriggerTaskResp,
13705
+ requestSerialize: serialize_aggregator_TriggerTaskReq,
13706
+ requestDeserialize: deserialize_aggregator_TriggerTaskReq,
13707
+ responseSerialize: serialize_aggregator_TriggerTaskResp,
13708
+ responseDeserialize: deserialize_aggregator_TriggerTaskResp
13598
13709
  },
13599
13710
  // CreateSecret allow you to define a secret to be used in your tasks. The secret can be used with a special syntax of ${{secrets.name }}.
13600
13711
  // You can decide whether to grant secret to a single workflow or many workflow, or all of your workflow
@@ -13603,7 +13714,7 @@ var require_avs_grpc_pb = __commonJS({
13603
13714
  path: "/aggregator.Aggregator/CreateSecret",
13604
13715
  requestStream: false,
13605
13716
  responseStream: false,
13606
- requestType: avs_pb25.CreateOrUpdateSecretReq,
13717
+ requestType: avs_pb24.CreateOrUpdateSecretReq,
13607
13718
  responseType: google_protobuf_wrappers_pb.BoolValue,
13608
13719
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
13609
13720
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
@@ -13614,7 +13725,7 @@ var require_avs_grpc_pb = __commonJS({
13614
13725
  path: "/aggregator.Aggregator/DeleteSecret",
13615
13726
  requestStream: false,
13616
13727
  responseStream: false,
13617
- requestType: avs_pb25.DeleteSecretReq,
13728
+ requestType: avs_pb24.DeleteSecretReq,
13618
13729
  responseType: google_protobuf_wrappers_pb.BoolValue,
13619
13730
  requestSerialize: serialize_aggregator_DeleteSecretReq,
13620
13731
  requestDeserialize: deserialize_aggregator_DeleteSecretReq,
@@ -13627,8 +13738,8 @@ var require_avs_grpc_pb = __commonJS({
13627
13738
  path: "/aggregator.Aggregator/ListSecrets",
13628
13739
  requestStream: false,
13629
13740
  responseStream: false,
13630
- requestType: avs_pb25.ListSecretsReq,
13631
- responseType: avs_pb25.ListSecretsResp,
13741
+ requestType: avs_pb24.ListSecretsReq,
13742
+ responseType: avs_pb24.ListSecretsResp,
13632
13743
  requestSerialize: serialize_aggregator_ListSecretsReq,
13633
13744
  requestDeserialize: deserialize_aggregator_ListSecretsReq,
13634
13745
  responseSerialize: serialize_aggregator_ListSecretsResp,
@@ -13640,7 +13751,7 @@ var require_avs_grpc_pb = __commonJS({
13640
13751
  path: "/aggregator.Aggregator/UpdateSecret",
13641
13752
  requestStream: false,
13642
13753
  responseStream: false,
13643
- requestType: avs_pb25.CreateOrUpdateSecretReq,
13754
+ requestType: avs_pb24.CreateOrUpdateSecretReq,
13644
13755
  responseType: google_protobuf_wrappers_pb.BoolValue,
13645
13756
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
13646
13757
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
@@ -13657,8 +13768,8 @@ var require_avs_grpc_pb = __commonJS({
13657
13768
  path: "/aggregator.Aggregator/GetWorkflowCount",
13658
13769
  requestStream: false,
13659
13770
  responseStream: false,
13660
- requestType: avs_pb25.GetWorkflowCountReq,
13661
- responseType: avs_pb25.GetWorkflowCountResp,
13771
+ requestType: avs_pb24.GetWorkflowCountReq,
13772
+ responseType: avs_pb24.GetWorkflowCountResp,
13662
13773
  requestSerialize: serialize_aggregator_GetWorkflowCountReq,
13663
13774
  requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
13664
13775
  responseSerialize: serialize_aggregator_GetWorkflowCountResp,
@@ -13672,8 +13783,8 @@ var require_avs_grpc_pb = __commonJS({
13672
13783
  path: "/aggregator.Aggregator/GetExecutionCount",
13673
13784
  requestStream: false,
13674
13785
  responseStream: false,
13675
- requestType: avs_pb25.GetExecutionCountReq,
13676
- responseType: avs_pb25.GetExecutionCountResp,
13786
+ requestType: avs_pb24.GetExecutionCountReq,
13787
+ responseType: avs_pb24.GetExecutionCountResp,
13677
13788
  requestSerialize: serialize_aggregator_GetExecutionCountReq,
13678
13789
  requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
13679
13790
  responseSerialize: serialize_aggregator_GetExecutionCountResp,
@@ -13686,8 +13797,8 @@ var require_avs_grpc_pb = __commonJS({
13686
13797
  path: "/aggregator.Aggregator/GetExecutionStats",
13687
13798
  requestStream: false,
13688
13799
  responseStream: false,
13689
- requestType: avs_pb25.GetExecutionStatsReq,
13690
- responseType: avs_pb25.GetExecutionStatsResp,
13800
+ requestType: avs_pb24.GetExecutionStatsReq,
13801
+ responseType: avs_pb24.GetExecutionStatsResp,
13691
13802
  requestSerialize: serialize_aggregator_GetExecutionStatsReq,
13692
13803
  requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
13693
13804
  responseSerialize: serialize_aggregator_GetExecutionStatsResp,
@@ -13698,8 +13809,8 @@ var require_avs_grpc_pb = __commonJS({
13698
13809
  path: "/aggregator.Aggregator/RunNodeWithInputs",
13699
13810
  requestStream: false,
13700
13811
  responseStream: false,
13701
- requestType: avs_pb25.RunNodeWithInputsReq,
13702
- responseType: avs_pb25.RunNodeWithInputsResp,
13812
+ requestType: avs_pb24.RunNodeWithInputsReq,
13813
+ responseType: avs_pb24.RunNodeWithInputsResp,
13703
13814
  requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
13704
13815
  requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
13705
13816
  responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
@@ -13710,8 +13821,8 @@ var require_avs_grpc_pb = __commonJS({
13710
13821
  path: "/aggregator.Aggregator/RunTrigger",
13711
13822
  requestStream: false,
13712
13823
  responseStream: false,
13713
- requestType: avs_pb25.RunTriggerReq,
13714
- responseType: avs_pb25.RunTriggerResp,
13824
+ requestType: avs_pb24.RunTriggerReq,
13825
+ responseType: avs_pb24.RunTriggerResp,
13715
13826
  requestSerialize: serialize_aggregator_RunTriggerReq,
13716
13827
  requestDeserialize: deserialize_aggregator_RunTriggerReq,
13717
13828
  responseSerialize: serialize_aggregator_RunTriggerResp,
@@ -13749,13 +13860,12 @@ __export(index_exports, {
13749
13860
  Step: () => step_default,
13750
13861
  Trigger: () => interface_default,
13751
13862
  TriggerFactory: () => factory_default,
13752
- TriggerReason: () => reason_default,
13753
13863
  Workflow: () => workflow_default
13754
13864
  });
13755
13865
  module.exports = __toCommonJS(index_exports);
13756
13866
  var import_grpc_js = require("@grpc/grpc-js");
13757
13867
  var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
13758
- var avs_pb24 = __toESM(require_avs_pb());
13868
+ var avs_pb23 = __toESM(require_avs_pb());
13759
13869
 
13760
13870
  // src/models/workflow.ts
13761
13871
  var import_lodash3 = __toESM(require("lodash"));
@@ -13915,12 +14025,18 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
13915
14025
  }
13916
14026
  /**
13917
14027
  * Extract output data from RunTriggerResp for cron triggers
14028
+ * Updated to handle timestamp and timestamp_iso instead of epoch
13918
14029
  * @param outputData - The RunTriggerResp containing cron trigger output
13919
14030
  * @returns Plain JavaScript object with cron trigger data
13920
14031
  */
13921
14032
  static fromOutputData(outputData) {
13922
14033
  const cronOutput = outputData.getCronTrigger();
13923
- return cronOutput?.toObject() || null;
14034
+ if (!cronOutput) return null;
14035
+ const outputObj = cronOutput.toObject();
14036
+ return {
14037
+ timestamp: outputObj.timestamp,
14038
+ timestampIso: outputObj.timestampIso
14039
+ };
13924
14040
  }
13925
14041
  };
13926
14042
  var cron_default = CronTrigger2;
@@ -14056,12 +14172,18 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
14056
14172
  }
14057
14173
  /**
14058
14174
  * Extract output data from RunTriggerResp for fixed time triggers
14175
+ * Updated to handle timestamp and timestamp_iso instead of epoch
14059
14176
  * @param outputData - The RunTriggerResp containing fixed time trigger output
14060
14177
  * @returns Plain JavaScript object with fixed time trigger data
14061
14178
  */
14062
14179
  static fromOutputData(outputData) {
14063
14180
  const fixedTimeOutput = outputData.getFixedTimeTrigger();
14064
- return fixedTimeOutput?.toObject() || null;
14181
+ if (!fixedTimeOutput) return null;
14182
+ const outputObj = fixedTimeOutput.toObject();
14183
+ return {
14184
+ timestamp: outputObj.timestamp,
14185
+ timestampIso: outputObj.timestampIso
14186
+ };
14065
14187
  }
14066
14188
  };
14067
14189
  var fixedTime_default = FixedTimeTrigger2;
@@ -14946,106 +15068,11 @@ var Workflow = class _Workflow {
14946
15068
  var workflow_default = Workflow;
14947
15069
 
14948
15070
  // src/models/execution.ts
14949
- var avs_pb22 = __toESM(require_avs_pb());
14950
-
14951
- // src/models/trigger/reason.ts
14952
- var avs_pb20 = __toESM(require_avs_pb());
15071
+ var avs_pb21 = __toESM(require_avs_pb());
14953
15072
  var import_types19 = require("@avaprotocol/types");
14954
- var convertTriggerType = (grpcType) => {
14955
- const conversionMap = {
14956
- [avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME]: import_types19.TriggerType.FixedTime,
14957
- [avs_pb20.TriggerType.TRIGGER_TYPE_CRON]: import_types19.TriggerType.Cron,
14958
- [avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK]: import_types19.TriggerType.Block,
14959
- [avs_pb20.TriggerType.TRIGGER_TYPE_EVENT]: import_types19.TriggerType.Event,
14960
- [avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL]: import_types19.TriggerType.Manual,
14961
- [avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED]: import_types19.TriggerType.Unspecified
14962
- };
14963
- return conversionMap[grpcType];
14964
- };
14965
- var TriggerReason2 = class _TriggerReason {
14966
- constructor(props) {
14967
- this.type = props.type;
14968
- switch (props.type) {
14969
- case import_types19.TriggerType.FixedTime:
14970
- case import_types19.TriggerType.Cron:
14971
- this.epoch = props.epoch;
14972
- break;
14973
- case import_types19.TriggerType.Block:
14974
- this.blockNumber = props.blockNumber;
14975
- break;
14976
- case import_types19.TriggerType.Event:
14977
- this.blockNumber = props.blockNumber;
14978
- this.logIndex = props.logIndex;
14979
- this.txHash = props.txHash;
14980
- break;
14981
- case import_types19.TriggerType.Manual:
14982
- case import_types19.TriggerType.Unspecified:
14983
- break;
14984
- default:
14985
- throw new Error("Unsupported trigger type");
14986
- }
14987
- }
14988
- static fromResponse(data) {
14989
- if (!data) {
14990
- return void 0;
14991
- }
14992
- return new _TriggerReason({
14993
- type: convertTriggerType(data.getType()),
14994
- blockNumber: data.getBlockNumber(),
14995
- epoch: data.getEpoch(),
14996
- logIndex: data.getLogIndex(),
14997
- txHash: data.getTxHash()
14998
- });
14999
- }
15000
- toRequest() {
15001
- const request = new avs_pb20.TriggerReason();
15002
- switch (this.type) {
15003
- case import_types19.TriggerType.FixedTime:
15004
- request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME);
15005
- if (this.epoch) {
15006
- request.setEpoch(this.epoch);
15007
- }
15008
- break;
15009
- case import_types19.TriggerType.Cron:
15010
- request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_CRON);
15011
- if (this.epoch) {
15012
- request.setEpoch(this.epoch);
15013
- }
15014
- break;
15015
- case import_types19.TriggerType.Block:
15016
- request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK);
15017
- if (this.blockNumber) {
15018
- request.setBlockNumber(this.blockNumber);
15019
- }
15020
- break;
15021
- case import_types19.TriggerType.Event:
15022
- request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_EVENT);
15023
- if (this.blockNumber) {
15024
- request.setBlockNumber(this.blockNumber);
15025
- }
15026
- if (this.logIndex) {
15027
- request.setLogIndex(this.logIndex);
15028
- }
15029
- if (this.txHash) {
15030
- request.setTxHash(this.txHash);
15031
- }
15032
- break;
15033
- case import_types19.TriggerType.Manual:
15034
- request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL);
15035
- break;
15036
- case import_types19.TriggerType.Unspecified:
15037
- request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED);
15038
- break;
15039
- default:
15040
- throw new Error("Unsupported trigger type");
15041
- }
15042
- return request;
15043
- }
15044
- };
15045
- var reason_default = TriggerReason2;
15046
15073
 
15047
15074
  // src/models/step.ts
15048
- var avs_pb21 = __toESM(require_avs_pb());
15075
+ var avs_pb20 = __toESM(require_avs_pb());
15049
15076
  var Step = class _Step {
15050
15077
  // Changed to any
15051
15078
  constructor(props) {
@@ -15062,37 +15089,37 @@ var Step = class _Step {
15062
15089
  const outputDataType = step.getOutputDataCase();
15063
15090
  let nodeOutputMessage;
15064
15091
  switch (outputDataType) {
15065
- case avs_pb21.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
15092
+ case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
15066
15093
  return null;
15067
- case avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER:
15094
+ case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
15068
15095
  return step.getEthTransfer()?.toObject();
15069
15096
  // Specific structure, not google.protobuf.Value
15070
- case avs_pb21.Execution.Step.OutputDataCase.GRAPHQL:
15097
+ case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
15071
15098
  nodeOutputMessage = step.getGraphql();
15072
15099
  return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
15073
- case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ:
15100
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
15074
15101
  nodeOutputMessage = step.getContractRead();
15075
15102
  if (nodeOutputMessage) {
15076
15103
  return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
15077
15104
  }
15078
15105
  return [];
15079
15106
  // Default to empty array if no data
15080
- case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE:
15107
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
15081
15108
  return step.getContractWrite()?.toObject();
15082
15109
  // Specific structure
15083
- case avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE:
15110
+ case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
15084
15111
  nodeOutputMessage = step.getCustomCode();
15085
15112
  return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
15086
- case avs_pb21.Execution.Step.OutputDataCase.REST_API:
15113
+ case avs_pb20.Execution.Step.OutputDataCase.REST_API:
15087
15114
  nodeOutputMessage = step.getRestApi();
15088
15115
  return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
15089
- case avs_pb21.Execution.Step.OutputDataCase.BRANCH:
15116
+ case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
15090
15117
  return step.getBranch()?.toObject();
15091
15118
  // Specific structure
15092
- case avs_pb21.Execution.Step.OutputDataCase.FILTER:
15119
+ case avs_pb20.Execution.Step.OutputDataCase.FILTER:
15093
15120
  nodeOutputMessage = step.getFilter();
15094
15121
  return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
15095
- case avs_pb21.Execution.Step.OutputDataCase.LOOP:
15122
+ case avs_pb20.Execution.Step.OutputDataCase.LOOP:
15096
15123
  return step.getLoop()?.getData();
15097
15124
  default:
15098
15125
  console.warn(
@@ -15127,26 +15154,32 @@ var Execution3 = class _Execution {
15127
15154
  this.error = props.error;
15128
15155
  this.stepsList = props.stepsList;
15129
15156
  this.triggerName = props.triggerName;
15130
- this.triggerReason = props.triggerReason;
15157
+ this.triggerType = props.triggerType;
15131
15158
  this.triggerOutput = props.triggerOutput;
15132
15159
  }
15133
15160
  static fromResponse(execution) {
15134
15161
  const triggerOutputDataType = execution.getOutputDataCase();
15135
15162
  let triggerOutputData;
15136
15163
  switch (triggerOutputDataType) {
15137
- case avs_pb22.Execution.OutputDataCase.BLOCK_TRIGGER:
15164
+ case avs_pb21.Execution.OutputDataCase.BLOCK_TRIGGER:
15138
15165
  const blockOutput = execution.getBlockTrigger()?.toObject();
15139
15166
  triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
15140
15167
  break;
15141
- case avs_pb22.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
15168
+ case avs_pb21.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
15142
15169
  const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
15143
- triggerOutputData = fixedTimeOutput ? { epoch: fixedTimeOutput.epoch } : void 0;
15170
+ triggerOutputData = fixedTimeOutput ? {
15171
+ timestamp: fixedTimeOutput.timestamp,
15172
+ timestampIso: fixedTimeOutput.timestampIso
15173
+ } : void 0;
15144
15174
  break;
15145
- case avs_pb22.Execution.OutputDataCase.CRON_TRIGGER:
15175
+ case avs_pb21.Execution.OutputDataCase.CRON_TRIGGER:
15146
15176
  const cronOutput = execution.getCronTrigger()?.toObject();
15147
- triggerOutputData = cronOutput ? { epoch: cronOutput.epoch, scheduleMatched: cronOutput.scheduleMatched } : void 0;
15177
+ triggerOutputData = cronOutput ? {
15178
+ timestamp: cronOutput.timestamp,
15179
+ timestampIso: cronOutput.timestampIso
15180
+ } : void 0;
15148
15181
  break;
15149
- case avs_pb22.Execution.OutputDataCase.EVENT_TRIGGER:
15182
+ case avs_pb21.Execution.OutputDataCase.EVENT_TRIGGER:
15150
15183
  const eventTrigger = execution.getEventTrigger();
15151
15184
  if (eventTrigger) {
15152
15185
  if (eventTrigger.hasEvmLog()) {
@@ -15156,7 +15189,11 @@ var Execution3 = class _Execution {
15156
15189
  }
15157
15190
  }
15158
15191
  break;
15159
- case avs_pb22.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
15192
+ case avs_pb21.Execution.OutputDataCase.MANUAL_TRIGGER:
15193
+ const manualOutput = execution.getManualTrigger()?.toObject();
15194
+ triggerOutputData = manualOutput || void 0;
15195
+ break;
15196
+ case avs_pb21.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
15160
15197
  triggerOutputData = void 0;
15161
15198
  break;
15162
15199
  }
@@ -15167,7 +15204,8 @@ var Execution3 = class _Execution {
15167
15204
  success: execution.getSuccess(),
15168
15205
  error: execution.getError(),
15169
15206
  triggerName: execution.getTriggerName(),
15170
- triggerReason: reason_default.fromResponse(execution.getReason()),
15207
+ triggerType: import_types19.TriggerTypeConverter.fromProtobuf(execution.getTriggerType()),
15208
+ // Convert protobuf enum to SDK enum
15171
15209
  triggerOutput: triggerOutputData,
15172
15210
  stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
15173
15211
  });
@@ -15177,7 +15215,7 @@ var Execution3 = class _Execution {
15177
15215
  var execution_default = Execution3;
15178
15216
 
15179
15217
  // src/models/secret.ts
15180
- var avs_pb23 = __toESM(require_avs_pb());
15218
+ var avs_pb22 = __toESM(require_avs_pb());
15181
15219
  var Secret = class {
15182
15220
  constructor(props) {
15183
15221
  this.name = props.name;
@@ -15190,7 +15228,7 @@ var Secret = class {
15190
15228
  this.description = props.description;
15191
15229
  }
15192
15230
  toRequest() {
15193
- const request = new avs_pb23.CreateOrUpdateSecretReq();
15231
+ const request = new avs_pb22.CreateOrUpdateSecretReq();
15194
15232
  request.setName(this.name);
15195
15233
  if (this.secret) {
15196
15234
  request.setSecret(this.secret);
@@ -15241,7 +15279,7 @@ var BaseClient = class {
15241
15279
  * @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
15242
15280
  */
15243
15281
  async getSignatureFormat(wallet) {
15244
- const request = new avs_pb24.GetSignatureFormatReq();
15282
+ const request = new avs_pb23.GetSignatureFormatReq();
15245
15283
  request.setWallet(wallet);
15246
15284
  const result = await this.sendGrpcRequest("getSignatureFormat", request);
15247
15285
  return { message: result.getMessage() };
@@ -15256,7 +15294,7 @@ var BaseClient = class {
15256
15294
  message,
15257
15295
  apiKey
15258
15296
  }) {
15259
- const request = new avs_pb24.GetKeyReq();
15297
+ const request = new avs_pb23.GetKeyReq();
15260
15298
  request.setMessage(message);
15261
15299
  request.setSignature(apiKey);
15262
15300
  const result = await this.sendGrpcRequest("getKey", request);
@@ -15272,7 +15310,7 @@ var BaseClient = class {
15272
15310
  message,
15273
15311
  signature
15274
15312
  }) {
15275
- const request = new avs_pb24.GetKeyReq();
15313
+ const request = new avs_pb23.GetKeyReq();
15276
15314
  request.setMessage(message);
15277
15315
  request.setSignature(signature);
15278
15316
  const result = await this.sendGrpcRequest(
@@ -15348,7 +15386,7 @@ var Client = class extends BaseClient {
15348
15386
  * @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
15349
15387
  */
15350
15388
  async getWallets(options) {
15351
- const request = new avs_pb24.ListWalletReq();
15389
+ const request = new avs_pb23.ListWalletReq();
15352
15390
  const result = await this.sendGrpcRequest("listWallets", request, options);
15353
15391
  return result.getItemsList().map((item) => item.toObject());
15354
15392
  }
@@ -15360,7 +15398,7 @@ var Client = class extends BaseClient {
15360
15398
  * @returns {Promise<SmartWallet>} - The added SmartWallet object
15361
15399
  */
15362
15400
  async getWallet({ salt, factoryAddress }, options) {
15363
- const request = new avs_pb24.GetWalletReq();
15401
+ const request = new avs_pb23.GetWalletReq();
15364
15402
  request.setSalt(salt);
15365
15403
  if (factoryAddress) {
15366
15404
  request.setFactoryAddress(factoryAddress);
@@ -15389,7 +15427,7 @@ var Client = class extends BaseClient {
15389
15427
  * @returns {Promise<SmartWallet>} - The updated SmartWallet object
15390
15428
  */
15391
15429
  async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
15392
- const request = new avs_pb24.SetWalletReq();
15430
+ const request = new avs_pb23.SetWalletReq();
15393
15431
  request.setSalt(salt);
15394
15432
  if (factoryAddress) {
15395
15433
  request.setFactoryAddress(factoryAddress);
@@ -15437,7 +15475,7 @@ var Client = class extends BaseClient {
15437
15475
  * @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
15438
15476
  */
15439
15477
  async getWorkflows(addresses, options) {
15440
- const request = new avs_pb24.ListTasksReq();
15478
+ const request = new avs_pb23.ListTasksReq();
15441
15479
  for (const a of addresses) {
15442
15480
  request.addSmartWalletAddress(a);
15443
15481
  }
@@ -15476,7 +15514,7 @@ var Client = class extends BaseClient {
15476
15514
  * @returns {Promise<number>} - The count of workflows
15477
15515
  */
15478
15516
  async getWorkflowCount(addresses, options) {
15479
- const request = new avs_pb24.GetWorkflowCountReq();
15517
+ const request = new avs_pb23.GetWorkflowCountReq();
15480
15518
  request.setAddressesList(addresses);
15481
15519
  const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
15482
15520
  return result.getTotal();
@@ -15492,7 +15530,7 @@ var Client = class extends BaseClient {
15492
15530
  * @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
15493
15531
  */
15494
15532
  async getExecutions(workflows, options) {
15495
- const request = new avs_pb24.ListExecutionsReq();
15533
+ const request = new avs_pb23.ListExecutionsReq();
15496
15534
  for (const w of workflows) {
15497
15535
  request.addTaskIds(w);
15498
15536
  }
@@ -15526,7 +15564,7 @@ var Client = class extends BaseClient {
15526
15564
  * @returns {Promise<Execution>} - The Execution object
15527
15565
  */
15528
15566
  async getExecution(workflowId, executionId, options) {
15529
- const request = new avs_pb24.ExecutionReq();
15567
+ const request = new avs_pb23.ExecutionReq();
15530
15568
  request.setTaskId(workflowId);
15531
15569
  request.setExecutionId(executionId);
15532
15570
  const result = await this.sendGrpcRequest("getExecution", request, options);
@@ -15539,7 +15577,7 @@ var Client = class extends BaseClient {
15539
15577
  * @returns {Promise<number>} - The count of executions
15540
15578
  */
15541
15579
  async getExecutionCount(workflows, options) {
15542
- const request = new avs_pb24.GetExecutionCountReq();
15580
+ const request = new avs_pb23.GetExecutionCountReq();
15543
15581
  request.setWorkflowIdsList(workflows);
15544
15582
  const result = await this.sendGrpcRequest("getExecutionCount", request, options);
15545
15583
  return result.getTotal();
@@ -15552,7 +15590,7 @@ var Client = class extends BaseClient {
15552
15590
  * @returns {Promise<ExecutionStatus>} - The status of the execution
15553
15591
  */
15554
15592
  async getExecutionStatus(workflowId, executionId, options) {
15555
- const request = new avs_pb24.ExecutionReq();
15593
+ const request = new avs_pb23.ExecutionReq();
15556
15594
  request.setTaskId(workflowId);
15557
15595
  request.setExecutionId(executionId);
15558
15596
  const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
@@ -15565,7 +15603,7 @@ var Client = class extends BaseClient {
15565
15603
  * @returns {Promise<Workflow>} - The Workflow object
15566
15604
  */
15567
15605
  async getWorkflow(id, options) {
15568
- const request = new avs_pb24.IdReq();
15606
+ const request = new avs_pb23.IdReq();
15569
15607
  request.setId(id);
15570
15608
  const result = await this.sendGrpcRequest(
15571
15609
  "getTask",
@@ -15575,23 +15613,94 @@ var Client = class extends BaseClient {
15575
15613
  return workflow_default.fromResponse(result);
15576
15614
  }
15577
15615
  /**
15578
- * Trigger a workflow manually
15579
- * @param {object} params - The trigger parameters
15616
+ * Trigger a workflow with the new flattened trigger data structure
15617
+ * @param {Object} params - The trigger parameters
15580
15618
  * @param {string} params.id - The workflow id
15581
- * @param {TriggerReasonProps} params.reason - The trigger reason
15582
- * @param {boolean} [params.isBlocking=false] - Whether to wait for execution completion
15583
- * @param {RequestOptions} [options] - Request options
15584
- * @returns {Promise<avs_pb.UserTriggerTaskResp.AsObject>} - The execution result
15619
+ * @param {TriggerDataProps} params.triggerData - The trigger data
15620
+ * @param {boolean} params.isBlocking - Whether to block until execution completes
15621
+ * @param {RequestOptions} options - Request options
15622
+ * @returns {Promise<avs_pb.TriggerTaskResp.AsObject>} - The response from triggering the workflow
15585
15623
  */
15586
15624
  async triggerWorkflow({
15587
15625
  id,
15588
- reason,
15626
+ triggerData,
15589
15627
  isBlocking = false
15590
15628
  }, options) {
15591
- const request = new avs_pb24.UserTriggerTaskReq();
15629
+ const request = new avs_pb23.TriggerTaskReq();
15592
15630
  request.setTaskId(id);
15593
- request.setReason(new reason_default(reason).toRequest());
15631
+ request.setTriggerType(import_types20.TriggerTypeConverter.toProtobuf(triggerData.type));
15594
15632
  request.setIsBlocking(isBlocking);
15633
+ switch (triggerData.type) {
15634
+ case import_types20.TriggerType.FixedTime: {
15635
+ const fixedTimeOutput = new avs_pb23.FixedTimeTrigger.Output();
15636
+ fixedTimeOutput.setTimestamp(triggerData.timestamp);
15637
+ fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
15638
+ request.setFixedTimeTrigger(fixedTimeOutput);
15639
+ break;
15640
+ }
15641
+ case import_types20.TriggerType.Cron: {
15642
+ const cronOutput = new avs_pb23.CronTrigger.Output();
15643
+ cronOutput.setTimestamp(triggerData.timestamp);
15644
+ cronOutput.setTimestampIso(triggerData.timestampIso);
15645
+ request.setCronTrigger(cronOutput);
15646
+ break;
15647
+ }
15648
+ case import_types20.TriggerType.Block: {
15649
+ const blockData = triggerData;
15650
+ const blockOutput = new avs_pb23.BlockTrigger.Output();
15651
+ blockOutput.setBlockNumber(blockData.blockNumber);
15652
+ if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
15653
+ if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
15654
+ if (blockData.parentHash) blockOutput.setParentHash(blockData.parentHash);
15655
+ if (blockData.difficulty) blockOutput.setDifficulty(blockData.difficulty);
15656
+ if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
15657
+ if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
15658
+ request.setBlockTrigger(blockOutput);
15659
+ break;
15660
+ }
15661
+ case import_types20.TriggerType.Event: {
15662
+ const eventData = triggerData;
15663
+ const eventOutput = new avs_pb23.EventTrigger.Output();
15664
+ if (eventData.evmLog) {
15665
+ const evmLog = new avs_pb23.Evm.Log();
15666
+ evmLog.setAddress(eventData.evmLog.address);
15667
+ evmLog.setBlockNumber(eventData.evmLog.blockNumber);
15668
+ evmLog.setTransactionHash(eventData.evmLog.transactionHash);
15669
+ evmLog.setIndex(eventData.evmLog.index);
15670
+ eventOutput.setEvmLog(evmLog);
15671
+ }
15672
+ if (eventData.transferLog) {
15673
+ const transferLog = new avs_pb23.EventTrigger.TransferLogOutput();
15674
+ transferLog.setTokenName(eventData.transferLog.tokenName);
15675
+ transferLog.setTokenSymbol(eventData.transferLog.tokenSymbol);
15676
+ transferLog.setTokenDecimals(eventData.transferLog.tokenDecimals);
15677
+ transferLog.setTransactionHash(eventData.transferLog.transactionHash);
15678
+ transferLog.setAddress(eventData.transferLog.address);
15679
+ transferLog.setBlockNumber(eventData.transferLog.blockNumber);
15680
+ transferLog.setBlockTimestamp(eventData.transferLog.blockTimestamp);
15681
+ transferLog.setFromAddress(eventData.transferLog.fromAddress);
15682
+ transferLog.setToAddress(eventData.transferLog.toAddress);
15683
+ transferLog.setValue(eventData.transferLog.value);
15684
+ transferLog.setValueFormatted(eventData.transferLog.valueFormatted);
15685
+ transferLog.setTransactionIndex(eventData.transferLog.transactionIndex);
15686
+ transferLog.setLogIndex(eventData.transferLog.logIndex);
15687
+ eventOutput.setTransferLog(transferLog);
15688
+ }
15689
+ request.setEventTrigger(eventOutput);
15690
+ break;
15691
+ }
15692
+ case import_types20.TriggerType.Manual: {
15693
+ const manualData = triggerData;
15694
+ const manualOutput = new avs_pb23.ManualTrigger.Output();
15695
+ if (manualData.runAt) manualOutput.setRunAt(manualData.runAt);
15696
+ request.setManualTrigger(manualOutput);
15697
+ break;
15698
+ }
15699
+ case import_types20.TriggerType.Unspecified:
15700
+ break;
15701
+ default:
15702
+ throw new Error(`Unsupported trigger type: ${triggerData.type}`);
15703
+ }
15595
15704
  const result = await this.sendGrpcRequest("triggerTask", request, options);
15596
15705
  return result.toObject();
15597
15706
  }
@@ -15602,7 +15711,7 @@ var Client = class extends BaseClient {
15602
15711
  * @returns {Promise<boolean>} - Whether the workflow was successfully canceled
15603
15712
  */
15604
15713
  async cancelWorkflow(id, options) {
15605
- const request = new avs_pb24.IdReq();
15714
+ const request = new avs_pb23.IdReq();
15606
15715
  request.setId(id);
15607
15716
  const result = await this.sendGrpcRequest(
15608
15717
  "cancelTask",
@@ -15618,7 +15727,7 @@ var Client = class extends BaseClient {
15618
15727
  * @returns {Promise<boolean>} - Whether the workflow was successfully deleted
15619
15728
  */
15620
15729
  async deleteWorkflow(id, options) {
15621
- const request = new avs_pb24.IdReq();
15730
+ const request = new avs_pb23.IdReq();
15622
15731
  request.setId(id);
15623
15732
  const result = await this.sendGrpcRequest(
15624
15733
  "deleteTask",
@@ -15638,7 +15747,7 @@ var Client = class extends BaseClient {
15638
15747
  * @returns {Promise<boolean>} - True if the secret was created successfully
15639
15748
  */
15640
15749
  async createSecret(name, value, options) {
15641
- const request = new avs_pb24.CreateOrUpdateSecretReq();
15750
+ const request = new avs_pb23.CreateOrUpdateSecretReq();
15642
15751
  request.setName(name);
15643
15752
  request.setSecret(value);
15644
15753
  if (options?.workflowId) {
@@ -15661,7 +15770,7 @@ var Client = class extends BaseClient {
15661
15770
  * @returns {Promise<boolean>} - True if the secret was updated successfully
15662
15771
  */
15663
15772
  async updateSecret(name, value, options) {
15664
- const request = new avs_pb24.CreateOrUpdateSecretReq();
15773
+ const request = new avs_pb23.CreateOrUpdateSecretReq();
15665
15774
  request.setName(name);
15666
15775
  request.setSecret(value);
15667
15776
  if (options?.workflowId) {
@@ -15688,7 +15797,7 @@ var Client = class extends BaseClient {
15688
15797
  * @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
15689
15798
  */
15690
15799
  async getSecrets(options) {
15691
- const request = new avs_pb24.ListSecretsReq();
15800
+ const request = new avs_pb23.ListSecretsReq();
15692
15801
  if (options?.workflowId) {
15693
15802
  request.setWorkflowId(options.workflowId);
15694
15803
  }
@@ -15743,7 +15852,7 @@ var Client = class extends BaseClient {
15743
15852
  * @returns {Promise<boolean>} - True if the secret was deleted successfully
15744
15853
  */
15745
15854
  async deleteSecret(name, options) {
15746
- const request = new avs_pb24.DeleteSecretReq();
15855
+ const request = new avs_pb23.DeleteSecretReq();
15747
15856
  request.setName(name);
15748
15857
  if (options?.workflowId) {
15749
15858
  request.setWorkflowId(options.workflowId);
@@ -15778,7 +15887,7 @@ var Client = class extends BaseClient {
15778
15887
  nodeId: ""
15779
15888
  };
15780
15889
  }
15781
- const request = new avs_pb24.RunNodeWithInputsReq();
15890
+ const request = new avs_pb23.RunNodeWithInputsReq();
15782
15891
  const protobufNodeType = import_types20.NodeTypeGoConverter.fromGoString(nodeType);
15783
15892
  request.setNodeType(protobufNodeType);
15784
15893
  const nodeConfigMap = request.getNodeConfigMap();
@@ -15808,7 +15917,7 @@ var Client = class extends BaseClient {
15808
15917
  * @returns {Promise<RunTriggerResponse>} - The response from running the trigger
15809
15918
  */
15810
15919
  async runTrigger({ triggerType, triggerConfig }, options) {
15811
- const request = new avs_pb24.RunTriggerReq();
15920
+ const request = new avs_pb23.RunTriggerReq();
15812
15921
  const protobufTriggerType = import_types20.TriggerTypeGoConverter.fromGoString(triggerType);
15813
15922
  request.setTriggerType(protobufTriggerType);
15814
15923
  const triggerConfigMap = request.getTriggerConfigMap();
@@ -15850,6 +15959,5 @@ var Client = class extends BaseClient {
15850
15959
  Step,
15851
15960
  Trigger,
15852
15961
  TriggerFactory,
15853
- TriggerReason,
15854
15962
  Workflow
15855
15963
  });