@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/CHANGELOG.md +8 -0
- package/dist/index.d.ts +12 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +619 -511
- package/dist/index.mjs +628 -518
- package/dist/models/execution.d.ts +7 -9
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +17 -7
- package/dist/models/trigger/cron.d.ts +1 -0
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +9 -1
- package/dist/models/trigger/fixedTime.d.ts +1 -0
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +9 -1
- package/package.json +2 -2
package/dist/index.mjs
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.
|
|
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.
|
|
668
|
-
jspb.Message.initialize(this, opt_data, 0, -1, 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.
|
|
663
|
+
goog.inherits(proto.aggregator.TriggerTaskReq, jspb.Message);
|
|
671
664
|
if (goog.DEBUG && !COMPILED) {
|
|
672
|
-
proto.aggregator.
|
|
665
|
+
proto.aggregator.TriggerTaskReq.displayName = "proto.aggregator.TriggerTaskReq";
|
|
673
666
|
}
|
|
674
|
-
proto.aggregator.
|
|
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.
|
|
670
|
+
goog.inherits(proto.aggregator.TriggerTaskResp, jspb.Message);
|
|
678
671
|
if (goog.DEBUG && !COMPILED) {
|
|
679
|
-
proto.aggregator.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
1237
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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 =
|
|
5918
|
-
|
|
5919
|
-
|
|
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.
|
|
6003
|
-
if (f
|
|
6004
|
-
writer.
|
|
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.
|
|
6631
|
+
proto.aggregator.Execution.prototype.getTriggerType = function() {
|
|
6599
6632
|
return (
|
|
6600
|
-
/** @type{
|
|
6601
|
-
jspb.Message.
|
|
6633
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
6634
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
6602
6635
|
);
|
|
6603
6636
|
};
|
|
6604
|
-
proto.aggregator.Execution.prototype.
|
|
6605
|
-
return jspb.Message.
|
|
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
|
-
|
|
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.
|
|
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 {
|
|
8727
|
-
reader.
|
|
8703
|
+
/** @type {string} */
|
|
8704
|
+
reader.readString()
|
|
8728
8705
|
);
|
|
8729
|
-
msg.
|
|
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.
|
|
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.
|
|
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.
|
|
8729
|
+
proto.aggregator.KeyResp.prototype.serializeBinary = function() {
|
|
8760
8730
|
var writer = new jspb.BinaryWriter();
|
|
8761
|
-
proto.aggregator.
|
|
8731
|
+
proto.aggregator.KeyResp.serializeBinaryToWriter(this, writer);
|
|
8762
8732
|
return writer.getResultBuffer();
|
|
8763
8733
|
};
|
|
8764
|
-
proto.aggregator.
|
|
8734
|
+
proto.aggregator.KeyResp.serializeBinaryToWriter = function(message, writer) {
|
|
8765
8735
|
var f = void 0;
|
|
8766
|
-
f = message.
|
|
8767
|
-
if (f
|
|
8768
|
-
writer.
|
|
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.
|
|
8774
|
-
if (f
|
|
8775
|
-
writer.
|
|
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.
|
|
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.
|
|
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.
|
|
8765
|
+
proto.aggregator.KeyResp.prototype.getAddress = function() {
|
|
8803
8766
|
return (
|
|
8804
|
-
/** @type {
|
|
8805
|
-
jspb.Message.getFieldWithDefault(this, 1,
|
|
8767
|
+
/** @type {string} */
|
|
8768
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
8806
8769
|
);
|
|
8807
8770
|
};
|
|
8808
|
-
proto.aggregator.
|
|
8809
|
-
return jspb.Message.
|
|
8771
|
+
proto.aggregator.KeyResp.prototype.setAddress = function(value) {
|
|
8772
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8810
8773
|
};
|
|
8811
|
-
proto.aggregator.
|
|
8774
|
+
proto.aggregator.KeyResp.prototype.getKey = function() {
|
|
8812
8775
|
return (
|
|
8813
|
-
/** @type {
|
|
8814
|
-
jspb.Message.getFieldWithDefault(this, 2,
|
|
8776
|
+
/** @type {string} */
|
|
8777
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
8815
8778
|
);
|
|
8816
8779
|
};
|
|
8817
|
-
proto.aggregator.
|
|
8818
|
-
return jspb.Message.
|
|
8780
|
+
proto.aggregator.KeyResp.prototype.setKey = function(value) {
|
|
8781
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8819
8782
|
};
|
|
8820
|
-
proto.aggregator.
|
|
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.
|
|
8789
|
+
proto.aggregator.KeyResp.prototype.setMessage = function(value) {
|
|
8827
8790
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8828
8791
|
};
|
|
8829
|
-
proto.aggregator.
|
|
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.
|
|
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.
|
|
9305
|
-
return proto.aggregator.
|
|
9273
|
+
proto.aggregator.TriggerTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
9274
|
+
return proto.aggregator.TriggerTaskReq.toObject(opt_includeInstance, this);
|
|
9306
9275
|
};
|
|
9307
|
-
proto.aggregator.
|
|
9276
|
+
proto.aggregator.TriggerTaskReq.toObject = function(includeInstance, msg) {
|
|
9308
9277
|
var f, obj = {
|
|
9309
9278
|
taskId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9310
|
-
|
|
9311
|
-
|
|
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.
|
|
9293
|
+
proto.aggregator.TriggerTaskReq.deserializeBinary = function(bytes) {
|
|
9320
9294
|
var reader = new jspb.BinaryReader(bytes);
|
|
9321
|
-
var msg = new proto.aggregator.
|
|
9322
|
-
return proto.aggregator.
|
|
9295
|
+
var msg = new proto.aggregator.TriggerTaskReq();
|
|
9296
|
+
return proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
9323
9297
|
};
|
|
9324
|
-
proto.aggregator.
|
|
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 =
|
|
9340
|
-
|
|
9341
|
-
|
|
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.
|
|
9358
|
+
proto.aggregator.TriggerTaskReq.prototype.serializeBinary = function() {
|
|
9358
9359
|
var writer = new jspb.BinaryWriter();
|
|
9359
|
-
proto.aggregator.
|
|
9360
|
+
proto.aggregator.TriggerTaskReq.serializeBinaryToWriter(this, writer);
|
|
9360
9361
|
return writer.getResultBuffer();
|
|
9361
9362
|
};
|
|
9362
|
-
proto.aggregator.
|
|
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.
|
|
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
|
-
|
|
9382
|
+
3,
|
|
9383
|
+
f,
|
|
9384
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
9385
|
+
);
|
|
9386
|
+
}
|
|
9387
|
+
f = message.getFixedTimeTrigger();
|
|
9388
|
+
if (f != null) {
|
|
9389
|
+
writer.writeMessage(
|
|
9390
|
+
4,
|
|
9375
9391
|
f,
|
|
9376
|
-
proto.aggregator.
|
|
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
|
-
|
|
9422
|
+
8,
|
|
9383
9423
|
f
|
|
9384
9424
|
);
|
|
9385
9425
|
}
|
|
9386
9426
|
};
|
|
9387
|
-
proto.aggregator.
|
|
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.
|
|
9433
|
+
proto.aggregator.TriggerTaskReq.prototype.setTaskId = function(value) {
|
|
9394
9434
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9395
9435
|
};
|
|
9396
|
-
proto.aggregator.
|
|
9436
|
+
proto.aggregator.TriggerTaskReq.prototype.getTriggerType = function() {
|
|
9397
9437
|
return (
|
|
9398
|
-
/** @type{
|
|
9399
|
-
jspb.Message.
|
|
9438
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
9439
|
+
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
9400
9440
|
);
|
|
9401
9441
|
};
|
|
9402
|
-
proto.aggregator.
|
|
9403
|
-
return jspb.Message.
|
|
9442
|
+
proto.aggregator.TriggerTaskReq.prototype.setTriggerType = function(value) {
|
|
9443
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
9404
9444
|
};
|
|
9405
|
-
proto.aggregator.
|
|
9406
|
-
return
|
|
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
|
+
);
|
|
9407
9450
|
};
|
|
9408
|
-
proto.aggregator.
|
|
9409
|
-
return jspb.Message.
|
|
9451
|
+
proto.aggregator.TriggerTaskReq.prototype.setBlockTrigger = function(value) {
|
|
9452
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
9453
|
+
};
|
|
9454
|
+
proto.aggregator.TriggerTaskReq.prototype.clearBlockTrigger = function() {
|
|
9455
|
+
return this.setBlockTrigger(void 0);
|
|
9410
9456
|
};
|
|
9411
|
-
proto.aggregator.
|
|
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);
|
|
9471
|
+
};
|
|
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,
|
|
9523
|
+
jspb.Message.getBooleanFieldWithDefault(this, 8, false)
|
|
9415
9524
|
);
|
|
9416
9525
|
};
|
|
9417
|
-
proto.aggregator.
|
|
9418
|
-
return jspb.Message.setProto3BooleanField(this,
|
|
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.
|
|
9422
|
-
return proto.aggregator.
|
|
9530
|
+
proto.aggregator.TriggerTaskResp.prototype.toObject = function(opt_includeInstance) {
|
|
9531
|
+
return proto.aggregator.TriggerTaskResp.toObject(opt_includeInstance, this);
|
|
9423
9532
|
};
|
|
9424
|
-
proto.aggregator.
|
|
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.
|
|
9544
|
+
proto.aggregator.TriggerTaskResp.deserializeBinary = function(bytes) {
|
|
9436
9545
|
var reader = new jspb.BinaryReader(bytes);
|
|
9437
|
-
var msg = new proto.aggregator.
|
|
9438
|
-
return proto.aggregator.
|
|
9546
|
+
var msg = new proto.aggregator.TriggerTaskResp();
|
|
9547
|
+
return proto.aggregator.TriggerTaskResp.deserializeBinaryFromReader(msg, reader);
|
|
9439
9548
|
};
|
|
9440
|
-
proto.aggregator.
|
|
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.
|
|
9577
|
+
proto.aggregator.TriggerTaskResp.prototype.serializeBinary = function() {
|
|
9469
9578
|
var writer = new jspb.BinaryWriter();
|
|
9470
|
-
proto.aggregator.
|
|
9579
|
+
proto.aggregator.TriggerTaskResp.serializeBinaryToWriter(this, writer);
|
|
9471
9580
|
return writer.getResultBuffer();
|
|
9472
9581
|
};
|
|
9473
|
-
proto.aggregator.
|
|
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.
|
|
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.
|
|
9605
|
+
proto.aggregator.TriggerTaskResp.prototype.setExecutionId = function(value) {
|
|
9497
9606
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9498
9607
|
};
|
|
9499
|
-
proto.aggregator.
|
|
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.
|
|
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
|
-
|
|
13062
|
-
|
|
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(exports, proto.aggregator);
|
|
13065
13176
|
}
|
|
@@ -13070,352 +13181,352 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13070
13181
|
"../../grpc_codegen/avs_grpc_pb.js"(exports) {
|
|
13071
13182
|
"use strict";
|
|
13072
13183
|
var grpc = __require("@grpc/grpc-js");
|
|
13073
|
-
var
|
|
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
|
|
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
|
|
13196
|
+
return avs_pb24.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13086
13197
|
}
|
|
13087
13198
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
13088
|
-
if (!(arg instanceof
|
|
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
|
|
13205
|
+
return avs_pb24.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13095
13206
|
}
|
|
13096
13207
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
13097
|
-
if (!(arg instanceof
|
|
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
|
|
13214
|
+
return avs_pb24.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13104
13215
|
}
|
|
13105
13216
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
13106
|
-
if (!(arg instanceof
|
|
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
|
|
13223
|
+
return avs_pb24.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13113
13224
|
}
|
|
13114
13225
|
function serialize_aggregator_Execution(arg) {
|
|
13115
|
-
if (!(arg instanceof
|
|
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
|
|
13232
|
+
return avs_pb24.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13122
13233
|
}
|
|
13123
13234
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
13124
|
-
if (!(arg instanceof
|
|
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
|
|
13241
|
+
return avs_pb24.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13131
13242
|
}
|
|
13132
13243
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
13133
|
-
if (!(arg instanceof
|
|
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
|
|
13250
|
+
return avs_pb24.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13140
13251
|
}
|
|
13141
13252
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
13142
|
-
if (!(arg instanceof
|
|
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
|
|
13259
|
+
return avs_pb24.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13149
13260
|
}
|
|
13150
13261
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
13151
|
-
if (!(arg instanceof
|
|
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
|
|
13268
|
+
return avs_pb24.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13158
13269
|
}
|
|
13159
13270
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
13160
|
-
if (!(arg instanceof
|
|
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
|
|
13277
|
+
return avs_pb24.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13167
13278
|
}
|
|
13168
13279
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
13169
|
-
if (!(arg instanceof
|
|
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
|
|
13286
|
+
return avs_pb24.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13176
13287
|
}
|
|
13177
13288
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
13178
|
-
if (!(arg instanceof
|
|
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
|
|
13295
|
+
return avs_pb24.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13185
13296
|
}
|
|
13186
13297
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
13187
|
-
if (!(arg instanceof
|
|
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
|
|
13304
|
+
return avs_pb24.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13194
13305
|
}
|
|
13195
13306
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
13196
|
-
if (!(arg instanceof
|
|
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
|
|
13313
|
+
return avs_pb24.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13203
13314
|
}
|
|
13204
13315
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
13205
|
-
if (!(arg instanceof
|
|
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
|
|
13322
|
+
return avs_pb24.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13212
13323
|
}
|
|
13213
13324
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
13214
|
-
if (!(arg instanceof
|
|
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
|
|
13331
|
+
return avs_pb24.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13221
13332
|
}
|
|
13222
13333
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
13223
|
-
if (!(arg instanceof
|
|
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
|
|
13340
|
+
return avs_pb24.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13230
13341
|
}
|
|
13231
13342
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
13232
|
-
if (!(arg instanceof
|
|
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
|
|
13349
|
+
return avs_pb24.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13239
13350
|
}
|
|
13240
13351
|
function serialize_aggregator_IdReq(arg) {
|
|
13241
|
-
if (!(arg instanceof
|
|
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
|
|
13358
|
+
return avs_pb24.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13248
13359
|
}
|
|
13249
13360
|
function serialize_aggregator_KeyResp(arg) {
|
|
13250
|
-
if (!(arg instanceof
|
|
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
|
|
13367
|
+
return avs_pb24.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13257
13368
|
}
|
|
13258
13369
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
13259
|
-
if (!(arg instanceof
|
|
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
|
|
13376
|
+
return avs_pb24.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13266
13377
|
}
|
|
13267
13378
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
13268
|
-
if (!(arg instanceof
|
|
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
|
|
13385
|
+
return avs_pb24.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13275
13386
|
}
|
|
13276
13387
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
13277
|
-
if (!(arg instanceof
|
|
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
|
|
13394
|
+
return avs_pb24.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13284
13395
|
}
|
|
13285
13396
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
13286
|
-
if (!(arg instanceof
|
|
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
|
|
13403
|
+
return avs_pb24.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13293
13404
|
}
|
|
13294
13405
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
13295
|
-
if (!(arg instanceof
|
|
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
|
|
13412
|
+
return avs_pb24.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13302
13413
|
}
|
|
13303
13414
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
13304
|
-
if (!(arg instanceof
|
|
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
|
|
13421
|
+
return avs_pb24.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13311
13422
|
}
|
|
13312
13423
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
13313
|
-
if (!(arg instanceof
|
|
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
|
|
13430
|
+
return avs_pb24.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13320
13431
|
}
|
|
13321
13432
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
13322
|
-
if (!(arg instanceof
|
|
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
|
|
13439
|
+
return avs_pb24.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13329
13440
|
}
|
|
13330
13441
|
function serialize_aggregator_NonceRequest(arg) {
|
|
13331
|
-
if (!(arg instanceof
|
|
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
|
|
13448
|
+
return avs_pb24.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13338
13449
|
}
|
|
13339
13450
|
function serialize_aggregator_NonceResp(arg) {
|
|
13340
|
-
if (!(arg instanceof
|
|
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
|
|
13457
|
+
return avs_pb24.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13347
13458
|
}
|
|
13348
13459
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
13349
|
-
if (!(arg instanceof
|
|
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
|
|
13466
|
+
return avs_pb24.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13356
13467
|
}
|
|
13357
13468
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
13358
|
-
if (!(arg instanceof
|
|
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
|
|
13475
|
+
return avs_pb24.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13365
13476
|
}
|
|
13366
13477
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
13367
|
-
if (!(arg instanceof
|
|
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
|
|
13484
|
+
return avs_pb24.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13374
13485
|
}
|
|
13375
13486
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
13376
|
-
if (!(arg instanceof
|
|
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
|
|
13493
|
+
return avs_pb24.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13383
13494
|
}
|
|
13384
13495
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
13385
|
-
if (!(arg instanceof
|
|
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
|
|
13502
|
+
return avs_pb24.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13392
13503
|
}
|
|
13393
13504
|
function serialize_aggregator_Task(arg) {
|
|
13394
|
-
if (!(arg instanceof
|
|
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
|
|
13511
|
+
return avs_pb24.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13401
13512
|
}
|
|
13402
|
-
function
|
|
13403
|
-
if (!(arg instanceof
|
|
13404
|
-
throw new Error("Expected argument of type aggregator.
|
|
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
|
|
13409
|
-
return
|
|
13519
|
+
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
13520
|
+
return avs_pb24.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13410
13521
|
}
|
|
13411
|
-
function
|
|
13412
|
-
if (!(arg instanceof
|
|
13413
|
-
throw new Error("Expected argument of type aggregator.
|
|
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
|
|
13418
|
-
return
|
|
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:
|
|
13436
|
-
responseType:
|
|
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:
|
|
13448
|
-
responseType:
|
|
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:
|
|
13460
|
-
responseType:
|
|
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:
|
|
13471
|
-
responseType:
|
|
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:
|
|
13482
|
-
responseType:
|
|
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:
|
|
13493
|
-
responseType:
|
|
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:
|
|
13505
|
-
responseType:
|
|
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:
|
|
13516
|
-
responseType:
|
|
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:
|
|
13527
|
-
responseType:
|
|
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:
|
|
13538
|
-
responseType:
|
|
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:
|
|
13549
|
-
responseType:
|
|
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:
|
|
13560
|
-
responseType:
|
|
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:
|
|
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:
|
|
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:
|
|
13593
|
-
responseType:
|
|
13594
|
-
requestSerialize:
|
|
13595
|
-
requestDeserialize:
|
|
13596
|
-
responseSerialize:
|
|
13597
|
-
responseDeserialize:
|
|
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:
|
|
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:
|
|
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:
|
|
13631
|
-
responseType:
|
|
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:
|
|
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:
|
|
13661
|
-
responseType:
|
|
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:
|
|
13676
|
-
responseType:
|
|
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:
|
|
13690
|
-
responseType:
|
|
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:
|
|
13702
|
-
responseType:
|
|
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:
|
|
13714
|
-
responseType:
|
|
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,
|
|
@@ -13724,7 +13835,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13724
13835
|
|
|
13725
13836
|
// src/index.ts
|
|
13726
13837
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
13727
|
-
var
|
|
13838
|
+
var avs_pb23 = __toESM(require_avs_pb());
|
|
13728
13839
|
import { credentials, Metadata } from "@grpc/grpc-js";
|
|
13729
13840
|
|
|
13730
13841
|
// src/models/workflow.ts
|
|
@@ -13885,12 +13996,18 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
13885
13996
|
}
|
|
13886
13997
|
/**
|
|
13887
13998
|
* Extract output data from RunTriggerResp for cron triggers
|
|
13999
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
13888
14000
|
* @param outputData - The RunTriggerResp containing cron trigger output
|
|
13889
14001
|
* @returns Plain JavaScript object with cron trigger data
|
|
13890
14002
|
*/
|
|
13891
14003
|
static fromOutputData(outputData) {
|
|
13892
14004
|
const cronOutput = outputData.getCronTrigger();
|
|
13893
|
-
|
|
14005
|
+
if (!cronOutput) return null;
|
|
14006
|
+
const outputObj = cronOutput.toObject();
|
|
14007
|
+
return {
|
|
14008
|
+
timestamp: outputObj.timestamp,
|
|
14009
|
+
timestampIso: outputObj.timestampIso
|
|
14010
|
+
};
|
|
13894
14011
|
}
|
|
13895
14012
|
};
|
|
13896
14013
|
var cron_default = CronTrigger2;
|
|
@@ -14026,12 +14143,18 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
14026
14143
|
}
|
|
14027
14144
|
/**
|
|
14028
14145
|
* Extract output data from RunTriggerResp for fixed time triggers
|
|
14146
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
14029
14147
|
* @param outputData - The RunTriggerResp containing fixed time trigger output
|
|
14030
14148
|
* @returns Plain JavaScript object with fixed time trigger data
|
|
14031
14149
|
*/
|
|
14032
14150
|
static fromOutputData(outputData) {
|
|
14033
14151
|
const fixedTimeOutput = outputData.getFixedTimeTrigger();
|
|
14034
|
-
|
|
14152
|
+
if (!fixedTimeOutput) return null;
|
|
14153
|
+
const outputObj = fixedTimeOutput.toObject();
|
|
14154
|
+
return {
|
|
14155
|
+
timestamp: outputObj.timestamp,
|
|
14156
|
+
timestampIso: outputObj.timestampIso
|
|
14157
|
+
};
|
|
14035
14158
|
}
|
|
14036
14159
|
};
|
|
14037
14160
|
var fixedTime_default = FixedTimeTrigger2;
|
|
@@ -14925,106 +15048,11 @@ var Workflow = class _Workflow {
|
|
|
14925
15048
|
var workflow_default = Workflow;
|
|
14926
15049
|
|
|
14927
15050
|
// src/models/execution.ts
|
|
14928
|
-
var
|
|
14929
|
-
|
|
14930
|
-
// src/models/trigger/reason.ts
|
|
14931
|
-
var avs_pb20 = __toESM(require_avs_pb());
|
|
14932
|
-
import { TriggerType as TriggerType8 } from "@avaprotocol/types";
|
|
14933
|
-
var convertTriggerType = (grpcType) => {
|
|
14934
|
-
const conversionMap = {
|
|
14935
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME]: TriggerType8.FixedTime,
|
|
14936
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_CRON]: TriggerType8.Cron,
|
|
14937
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK]: TriggerType8.Block,
|
|
14938
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_EVENT]: TriggerType8.Event,
|
|
14939
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL]: TriggerType8.Manual,
|
|
14940
|
-
[avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED]: TriggerType8.Unspecified
|
|
14941
|
-
};
|
|
14942
|
-
return conversionMap[grpcType];
|
|
14943
|
-
};
|
|
14944
|
-
var TriggerReason2 = class _TriggerReason {
|
|
14945
|
-
constructor(props) {
|
|
14946
|
-
this.type = props.type;
|
|
14947
|
-
switch (props.type) {
|
|
14948
|
-
case TriggerType8.FixedTime:
|
|
14949
|
-
case TriggerType8.Cron:
|
|
14950
|
-
this.epoch = props.epoch;
|
|
14951
|
-
break;
|
|
14952
|
-
case TriggerType8.Block:
|
|
14953
|
-
this.blockNumber = props.blockNumber;
|
|
14954
|
-
break;
|
|
14955
|
-
case TriggerType8.Event:
|
|
14956
|
-
this.blockNumber = props.blockNumber;
|
|
14957
|
-
this.logIndex = props.logIndex;
|
|
14958
|
-
this.txHash = props.txHash;
|
|
14959
|
-
break;
|
|
14960
|
-
case TriggerType8.Manual:
|
|
14961
|
-
case TriggerType8.Unspecified:
|
|
14962
|
-
break;
|
|
14963
|
-
default:
|
|
14964
|
-
throw new Error("Unsupported trigger type");
|
|
14965
|
-
}
|
|
14966
|
-
}
|
|
14967
|
-
static fromResponse(data) {
|
|
14968
|
-
if (!data) {
|
|
14969
|
-
return void 0;
|
|
14970
|
-
}
|
|
14971
|
-
return new _TriggerReason({
|
|
14972
|
-
type: convertTriggerType(data.getType()),
|
|
14973
|
-
blockNumber: data.getBlockNumber(),
|
|
14974
|
-
epoch: data.getEpoch(),
|
|
14975
|
-
logIndex: data.getLogIndex(),
|
|
14976
|
-
txHash: data.getTxHash()
|
|
14977
|
-
});
|
|
14978
|
-
}
|
|
14979
|
-
toRequest() {
|
|
14980
|
-
const request = new avs_pb20.TriggerReason();
|
|
14981
|
-
switch (this.type) {
|
|
14982
|
-
case TriggerType8.FixedTime:
|
|
14983
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME);
|
|
14984
|
-
if (this.epoch) {
|
|
14985
|
-
request.setEpoch(this.epoch);
|
|
14986
|
-
}
|
|
14987
|
-
break;
|
|
14988
|
-
case TriggerType8.Cron:
|
|
14989
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_CRON);
|
|
14990
|
-
if (this.epoch) {
|
|
14991
|
-
request.setEpoch(this.epoch);
|
|
14992
|
-
}
|
|
14993
|
-
break;
|
|
14994
|
-
case TriggerType8.Block:
|
|
14995
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
14996
|
-
if (this.blockNumber) {
|
|
14997
|
-
request.setBlockNumber(this.blockNumber);
|
|
14998
|
-
}
|
|
14999
|
-
break;
|
|
15000
|
-
case TriggerType8.Event:
|
|
15001
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_EVENT);
|
|
15002
|
-
if (this.blockNumber) {
|
|
15003
|
-
request.setBlockNumber(this.blockNumber);
|
|
15004
|
-
}
|
|
15005
|
-
if (this.logIndex) {
|
|
15006
|
-
request.setLogIndex(this.logIndex);
|
|
15007
|
-
}
|
|
15008
|
-
if (this.txHash) {
|
|
15009
|
-
request.setTxHash(this.txHash);
|
|
15010
|
-
}
|
|
15011
|
-
break;
|
|
15012
|
-
case TriggerType8.Manual:
|
|
15013
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
15014
|
-
break;
|
|
15015
|
-
case TriggerType8.Unspecified:
|
|
15016
|
-
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED);
|
|
15017
|
-
break;
|
|
15018
|
-
default:
|
|
15019
|
-
throw new Error("Unsupported trigger type");
|
|
15020
|
-
}
|
|
15021
|
-
return request;
|
|
15022
|
-
}
|
|
15023
|
-
};
|
|
15024
|
-
var reason_default = TriggerReason2;
|
|
15051
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
15052
|
+
import { TriggerTypeConverter } from "@avaprotocol/types";
|
|
15025
15053
|
|
|
15026
15054
|
// src/models/step.ts
|
|
15027
|
-
var
|
|
15055
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
15028
15056
|
var Step = class _Step {
|
|
15029
15057
|
// Changed to any
|
|
15030
15058
|
constructor(props) {
|
|
@@ -15041,37 +15069,37 @@ var Step = class _Step {
|
|
|
15041
15069
|
const outputDataType = step.getOutputDataCase();
|
|
15042
15070
|
let nodeOutputMessage;
|
|
15043
15071
|
switch (outputDataType) {
|
|
15044
|
-
case
|
|
15072
|
+
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15045
15073
|
return null;
|
|
15046
|
-
case
|
|
15074
|
+
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
15047
15075
|
return step.getEthTransfer()?.toObject();
|
|
15048
15076
|
// Specific structure, not google.protobuf.Value
|
|
15049
|
-
case
|
|
15077
|
+
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
15050
15078
|
nodeOutputMessage = step.getGraphql();
|
|
15051
15079
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15052
|
-
case
|
|
15080
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
15053
15081
|
nodeOutputMessage = step.getContractRead();
|
|
15054
15082
|
if (nodeOutputMessage) {
|
|
15055
15083
|
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
15056
15084
|
}
|
|
15057
15085
|
return [];
|
|
15058
15086
|
// Default to empty array if no data
|
|
15059
|
-
case
|
|
15087
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
15060
15088
|
return step.getContractWrite()?.toObject();
|
|
15061
15089
|
// Specific structure
|
|
15062
|
-
case
|
|
15090
|
+
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
15063
15091
|
nodeOutputMessage = step.getCustomCode();
|
|
15064
15092
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
15065
|
-
case
|
|
15093
|
+
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
15066
15094
|
nodeOutputMessage = step.getRestApi();
|
|
15067
15095
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15068
|
-
case
|
|
15096
|
+
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
15069
15097
|
return step.getBranch()?.toObject();
|
|
15070
15098
|
// Specific structure
|
|
15071
|
-
case
|
|
15099
|
+
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
15072
15100
|
nodeOutputMessage = step.getFilter();
|
|
15073
15101
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15074
|
-
case
|
|
15102
|
+
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
15075
15103
|
return step.getLoop()?.getData();
|
|
15076
15104
|
default:
|
|
15077
15105
|
console.warn(
|
|
@@ -15106,26 +15134,32 @@ var Execution3 = class _Execution {
|
|
|
15106
15134
|
this.error = props.error;
|
|
15107
15135
|
this.stepsList = props.stepsList;
|
|
15108
15136
|
this.triggerName = props.triggerName;
|
|
15109
|
-
this.
|
|
15137
|
+
this.triggerType = props.triggerType;
|
|
15110
15138
|
this.triggerOutput = props.triggerOutput;
|
|
15111
15139
|
}
|
|
15112
15140
|
static fromResponse(execution) {
|
|
15113
15141
|
const triggerOutputDataType = execution.getOutputDataCase();
|
|
15114
15142
|
let triggerOutputData;
|
|
15115
15143
|
switch (triggerOutputDataType) {
|
|
15116
|
-
case
|
|
15144
|
+
case avs_pb21.Execution.OutputDataCase.BLOCK_TRIGGER:
|
|
15117
15145
|
const blockOutput = execution.getBlockTrigger()?.toObject();
|
|
15118
15146
|
triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15119
15147
|
break;
|
|
15120
|
-
case
|
|
15148
|
+
case avs_pb21.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15121
15149
|
const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
|
|
15122
|
-
triggerOutputData = fixedTimeOutput ? {
|
|
15150
|
+
triggerOutputData = fixedTimeOutput ? {
|
|
15151
|
+
timestamp: fixedTimeOutput.timestamp,
|
|
15152
|
+
timestampIso: fixedTimeOutput.timestampIso
|
|
15153
|
+
} : void 0;
|
|
15123
15154
|
break;
|
|
15124
|
-
case
|
|
15155
|
+
case avs_pb21.Execution.OutputDataCase.CRON_TRIGGER:
|
|
15125
15156
|
const cronOutput = execution.getCronTrigger()?.toObject();
|
|
15126
|
-
triggerOutputData = cronOutput ? {
|
|
15157
|
+
triggerOutputData = cronOutput ? {
|
|
15158
|
+
timestamp: cronOutput.timestamp,
|
|
15159
|
+
timestampIso: cronOutput.timestampIso
|
|
15160
|
+
} : void 0;
|
|
15127
15161
|
break;
|
|
15128
|
-
case
|
|
15162
|
+
case avs_pb21.Execution.OutputDataCase.EVENT_TRIGGER:
|
|
15129
15163
|
const eventTrigger = execution.getEventTrigger();
|
|
15130
15164
|
if (eventTrigger) {
|
|
15131
15165
|
if (eventTrigger.hasEvmLog()) {
|
|
@@ -15135,7 +15169,11 @@ var Execution3 = class _Execution {
|
|
|
15135
15169
|
}
|
|
15136
15170
|
}
|
|
15137
15171
|
break;
|
|
15138
|
-
case
|
|
15172
|
+
case avs_pb21.Execution.OutputDataCase.MANUAL_TRIGGER:
|
|
15173
|
+
const manualOutput = execution.getManualTrigger()?.toObject();
|
|
15174
|
+
triggerOutputData = manualOutput || void 0;
|
|
15175
|
+
break;
|
|
15176
|
+
case avs_pb21.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15139
15177
|
triggerOutputData = void 0;
|
|
15140
15178
|
break;
|
|
15141
15179
|
}
|
|
@@ -15146,7 +15184,8 @@ var Execution3 = class _Execution {
|
|
|
15146
15184
|
success: execution.getSuccess(),
|
|
15147
15185
|
error: execution.getError(),
|
|
15148
15186
|
triggerName: execution.getTriggerName(),
|
|
15149
|
-
|
|
15187
|
+
triggerType: TriggerTypeConverter.fromProtobuf(execution.getTriggerType()),
|
|
15188
|
+
// Convert protobuf enum to SDK enum
|
|
15150
15189
|
triggerOutput: triggerOutputData,
|
|
15151
15190
|
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15152
15191
|
});
|
|
@@ -15156,7 +15195,7 @@ var Execution3 = class _Execution {
|
|
|
15156
15195
|
var execution_default = Execution3;
|
|
15157
15196
|
|
|
15158
15197
|
// src/models/secret.ts
|
|
15159
|
-
var
|
|
15198
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
15160
15199
|
var Secret = class {
|
|
15161
15200
|
constructor(props) {
|
|
15162
15201
|
this.name = props.name;
|
|
@@ -15169,7 +15208,7 @@ var Secret = class {
|
|
|
15169
15208
|
this.description = props.description;
|
|
15170
15209
|
}
|
|
15171
15210
|
toRequest() {
|
|
15172
|
-
const request = new
|
|
15211
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15173
15212
|
request.setName(this.name);
|
|
15174
15213
|
if (this.secret) {
|
|
15175
15214
|
request.setSecret(this.secret);
|
|
@@ -15187,9 +15226,10 @@ var secret_default = Secret;
|
|
|
15187
15226
|
|
|
15188
15227
|
// src/index.ts
|
|
15189
15228
|
import {
|
|
15190
|
-
TriggerType as
|
|
15229
|
+
TriggerType as TriggerType8,
|
|
15191
15230
|
NodeTypeGoConverter as NodeTypeGoConverter2,
|
|
15192
|
-
TriggerTypeGoConverter
|
|
15231
|
+
TriggerTypeGoConverter,
|
|
15232
|
+
TriggerTypeConverter as TriggerTypeConverter2
|
|
15193
15233
|
} from "@avaprotocol/types";
|
|
15194
15234
|
import { AUTH_KEY_HEADER, DEFAULT_LIMIT } from "@avaprotocol/types";
|
|
15195
15235
|
var BaseClient = class {
|
|
@@ -15224,7 +15264,7 @@ var BaseClient = class {
|
|
|
15224
15264
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
15225
15265
|
*/
|
|
15226
15266
|
async getSignatureFormat(wallet) {
|
|
15227
|
-
const request = new
|
|
15267
|
+
const request = new avs_pb23.GetSignatureFormatReq();
|
|
15228
15268
|
request.setWallet(wallet);
|
|
15229
15269
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
15230
15270
|
return { message: result.getMessage() };
|
|
@@ -15239,7 +15279,7 @@ var BaseClient = class {
|
|
|
15239
15279
|
message,
|
|
15240
15280
|
apiKey
|
|
15241
15281
|
}) {
|
|
15242
|
-
const request = new
|
|
15282
|
+
const request = new avs_pb23.GetKeyReq();
|
|
15243
15283
|
request.setMessage(message);
|
|
15244
15284
|
request.setSignature(apiKey);
|
|
15245
15285
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -15255,7 +15295,7 @@ var BaseClient = class {
|
|
|
15255
15295
|
message,
|
|
15256
15296
|
signature
|
|
15257
15297
|
}) {
|
|
15258
|
-
const request = new
|
|
15298
|
+
const request = new avs_pb23.GetKeyReq();
|
|
15259
15299
|
request.setMessage(message);
|
|
15260
15300
|
request.setSignature(signature);
|
|
15261
15301
|
const result = await this.sendGrpcRequest(
|
|
@@ -15331,7 +15371,7 @@ var Client = class extends BaseClient {
|
|
|
15331
15371
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
15332
15372
|
*/
|
|
15333
15373
|
async getWallets(options) {
|
|
15334
|
-
const request = new
|
|
15374
|
+
const request = new avs_pb23.ListWalletReq();
|
|
15335
15375
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
15336
15376
|
return result.getItemsList().map((item) => item.toObject());
|
|
15337
15377
|
}
|
|
@@ -15343,7 +15383,7 @@ var Client = class extends BaseClient {
|
|
|
15343
15383
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
15344
15384
|
*/
|
|
15345
15385
|
async getWallet({ salt, factoryAddress }, options) {
|
|
15346
|
-
const request = new
|
|
15386
|
+
const request = new avs_pb23.GetWalletReq();
|
|
15347
15387
|
request.setSalt(salt);
|
|
15348
15388
|
if (factoryAddress) {
|
|
15349
15389
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15372,7 +15412,7 @@ var Client = class extends BaseClient {
|
|
|
15372
15412
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
15373
15413
|
*/
|
|
15374
15414
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
15375
|
-
const request = new
|
|
15415
|
+
const request = new avs_pb23.SetWalletReq();
|
|
15376
15416
|
request.setSalt(salt);
|
|
15377
15417
|
if (factoryAddress) {
|
|
15378
15418
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15420,7 +15460,7 @@ var Client = class extends BaseClient {
|
|
|
15420
15460
|
* @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
|
|
15421
15461
|
*/
|
|
15422
15462
|
async getWorkflows(addresses, options) {
|
|
15423
|
-
const request = new
|
|
15463
|
+
const request = new avs_pb23.ListTasksReq();
|
|
15424
15464
|
for (const a of addresses) {
|
|
15425
15465
|
request.addSmartWalletAddress(a);
|
|
15426
15466
|
}
|
|
@@ -15459,7 +15499,7 @@ var Client = class extends BaseClient {
|
|
|
15459
15499
|
* @returns {Promise<number>} - The count of workflows
|
|
15460
15500
|
*/
|
|
15461
15501
|
async getWorkflowCount(addresses, options) {
|
|
15462
|
-
const request = new
|
|
15502
|
+
const request = new avs_pb23.GetWorkflowCountReq();
|
|
15463
15503
|
request.setAddressesList(addresses);
|
|
15464
15504
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
15465
15505
|
return result.getTotal();
|
|
@@ -15475,7 +15515,7 @@ var Client = class extends BaseClient {
|
|
|
15475
15515
|
* @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
|
|
15476
15516
|
*/
|
|
15477
15517
|
async getExecutions(workflows, options) {
|
|
15478
|
-
const request = new
|
|
15518
|
+
const request = new avs_pb23.ListExecutionsReq();
|
|
15479
15519
|
for (const w of workflows) {
|
|
15480
15520
|
request.addTaskIds(w);
|
|
15481
15521
|
}
|
|
@@ -15509,7 +15549,7 @@ var Client = class extends BaseClient {
|
|
|
15509
15549
|
* @returns {Promise<Execution>} - The Execution object
|
|
15510
15550
|
*/
|
|
15511
15551
|
async getExecution(workflowId, executionId, options) {
|
|
15512
|
-
const request = new
|
|
15552
|
+
const request = new avs_pb23.ExecutionReq();
|
|
15513
15553
|
request.setTaskId(workflowId);
|
|
15514
15554
|
request.setExecutionId(executionId);
|
|
15515
15555
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -15522,7 +15562,7 @@ var Client = class extends BaseClient {
|
|
|
15522
15562
|
* @returns {Promise<number>} - The count of executions
|
|
15523
15563
|
*/
|
|
15524
15564
|
async getExecutionCount(workflows, options) {
|
|
15525
|
-
const request = new
|
|
15565
|
+
const request = new avs_pb23.GetExecutionCountReq();
|
|
15526
15566
|
request.setWorkflowIdsList(workflows);
|
|
15527
15567
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
15528
15568
|
return result.getTotal();
|
|
@@ -15535,7 +15575,7 @@ var Client = class extends BaseClient {
|
|
|
15535
15575
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
15536
15576
|
*/
|
|
15537
15577
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
15538
|
-
const request = new
|
|
15578
|
+
const request = new avs_pb23.ExecutionReq();
|
|
15539
15579
|
request.setTaskId(workflowId);
|
|
15540
15580
|
request.setExecutionId(executionId);
|
|
15541
15581
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -15548,7 +15588,7 @@ var Client = class extends BaseClient {
|
|
|
15548
15588
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
15549
15589
|
*/
|
|
15550
15590
|
async getWorkflow(id, options) {
|
|
15551
|
-
const request = new
|
|
15591
|
+
const request = new avs_pb23.IdReq();
|
|
15552
15592
|
request.setId(id);
|
|
15553
15593
|
const result = await this.sendGrpcRequest(
|
|
15554
15594
|
"getTask",
|
|
@@ -15558,23 +15598,94 @@ var Client = class extends BaseClient {
|
|
|
15558
15598
|
return workflow_default.fromResponse(result);
|
|
15559
15599
|
}
|
|
15560
15600
|
/**
|
|
15561
|
-
* Trigger a workflow
|
|
15562
|
-
* @param {
|
|
15601
|
+
* Trigger a workflow with the new flattened trigger data structure
|
|
15602
|
+
* @param {Object} params - The trigger parameters
|
|
15563
15603
|
* @param {string} params.id - The workflow id
|
|
15564
|
-
* @param {
|
|
15565
|
-
* @param {boolean}
|
|
15566
|
-
* @param {RequestOptions}
|
|
15567
|
-
* @returns {Promise<avs_pb.
|
|
15604
|
+
* @param {TriggerDataProps} params.triggerData - The trigger data
|
|
15605
|
+
* @param {boolean} params.isBlocking - Whether to block until execution completes
|
|
15606
|
+
* @param {RequestOptions} options - Request options
|
|
15607
|
+
* @returns {Promise<avs_pb.TriggerTaskResp.AsObject>} - The response from triggering the workflow
|
|
15568
15608
|
*/
|
|
15569
15609
|
async triggerWorkflow({
|
|
15570
15610
|
id,
|
|
15571
|
-
|
|
15611
|
+
triggerData,
|
|
15572
15612
|
isBlocking = false
|
|
15573
15613
|
}, options) {
|
|
15574
|
-
const request = new
|
|
15614
|
+
const request = new avs_pb23.TriggerTaskReq();
|
|
15575
15615
|
request.setTaskId(id);
|
|
15576
|
-
request.
|
|
15616
|
+
request.setTriggerType(TriggerTypeConverter2.toProtobuf(triggerData.type));
|
|
15577
15617
|
request.setIsBlocking(isBlocking);
|
|
15618
|
+
switch (triggerData.type) {
|
|
15619
|
+
case TriggerType8.FixedTime: {
|
|
15620
|
+
const fixedTimeOutput = new avs_pb23.FixedTimeTrigger.Output();
|
|
15621
|
+
fixedTimeOutput.setTimestamp(triggerData.timestamp);
|
|
15622
|
+
fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
|
|
15623
|
+
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
15624
|
+
break;
|
|
15625
|
+
}
|
|
15626
|
+
case TriggerType8.Cron: {
|
|
15627
|
+
const cronOutput = new avs_pb23.CronTrigger.Output();
|
|
15628
|
+
cronOutput.setTimestamp(triggerData.timestamp);
|
|
15629
|
+
cronOutput.setTimestampIso(triggerData.timestampIso);
|
|
15630
|
+
request.setCronTrigger(cronOutput);
|
|
15631
|
+
break;
|
|
15632
|
+
}
|
|
15633
|
+
case TriggerType8.Block: {
|
|
15634
|
+
const blockData = triggerData;
|
|
15635
|
+
const blockOutput = new avs_pb23.BlockTrigger.Output();
|
|
15636
|
+
blockOutput.setBlockNumber(blockData.blockNumber);
|
|
15637
|
+
if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
|
|
15638
|
+
if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
|
|
15639
|
+
if (blockData.parentHash) blockOutput.setParentHash(blockData.parentHash);
|
|
15640
|
+
if (blockData.difficulty) blockOutput.setDifficulty(blockData.difficulty);
|
|
15641
|
+
if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
|
|
15642
|
+
if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
|
|
15643
|
+
request.setBlockTrigger(blockOutput);
|
|
15644
|
+
break;
|
|
15645
|
+
}
|
|
15646
|
+
case TriggerType8.Event: {
|
|
15647
|
+
const eventData = triggerData;
|
|
15648
|
+
const eventOutput = new avs_pb23.EventTrigger.Output();
|
|
15649
|
+
if (eventData.evmLog) {
|
|
15650
|
+
const evmLog = new avs_pb23.Evm.Log();
|
|
15651
|
+
evmLog.setAddress(eventData.evmLog.address);
|
|
15652
|
+
evmLog.setBlockNumber(eventData.evmLog.blockNumber);
|
|
15653
|
+
evmLog.setTransactionHash(eventData.evmLog.transactionHash);
|
|
15654
|
+
evmLog.setIndex(eventData.evmLog.index);
|
|
15655
|
+
eventOutput.setEvmLog(evmLog);
|
|
15656
|
+
}
|
|
15657
|
+
if (eventData.transferLog) {
|
|
15658
|
+
const transferLog = new avs_pb23.EventTrigger.TransferLogOutput();
|
|
15659
|
+
transferLog.setTokenName(eventData.transferLog.tokenName);
|
|
15660
|
+
transferLog.setTokenSymbol(eventData.transferLog.tokenSymbol);
|
|
15661
|
+
transferLog.setTokenDecimals(eventData.transferLog.tokenDecimals);
|
|
15662
|
+
transferLog.setTransactionHash(eventData.transferLog.transactionHash);
|
|
15663
|
+
transferLog.setAddress(eventData.transferLog.address);
|
|
15664
|
+
transferLog.setBlockNumber(eventData.transferLog.blockNumber);
|
|
15665
|
+
transferLog.setBlockTimestamp(eventData.transferLog.blockTimestamp);
|
|
15666
|
+
transferLog.setFromAddress(eventData.transferLog.fromAddress);
|
|
15667
|
+
transferLog.setToAddress(eventData.transferLog.toAddress);
|
|
15668
|
+
transferLog.setValue(eventData.transferLog.value);
|
|
15669
|
+
transferLog.setValueFormatted(eventData.transferLog.valueFormatted);
|
|
15670
|
+
transferLog.setTransactionIndex(eventData.transferLog.transactionIndex);
|
|
15671
|
+
transferLog.setLogIndex(eventData.transferLog.logIndex);
|
|
15672
|
+
eventOutput.setTransferLog(transferLog);
|
|
15673
|
+
}
|
|
15674
|
+
request.setEventTrigger(eventOutput);
|
|
15675
|
+
break;
|
|
15676
|
+
}
|
|
15677
|
+
case TriggerType8.Manual: {
|
|
15678
|
+
const manualData = triggerData;
|
|
15679
|
+
const manualOutput = new avs_pb23.ManualTrigger.Output();
|
|
15680
|
+
if (manualData.runAt) manualOutput.setRunAt(manualData.runAt);
|
|
15681
|
+
request.setManualTrigger(manualOutput);
|
|
15682
|
+
break;
|
|
15683
|
+
}
|
|
15684
|
+
case TriggerType8.Unspecified:
|
|
15685
|
+
break;
|
|
15686
|
+
default:
|
|
15687
|
+
throw new Error(`Unsupported trigger type: ${triggerData.type}`);
|
|
15688
|
+
}
|
|
15578
15689
|
const result = await this.sendGrpcRequest("triggerTask", request, options);
|
|
15579
15690
|
return result.toObject();
|
|
15580
15691
|
}
|
|
@@ -15585,7 +15696,7 @@ var Client = class extends BaseClient {
|
|
|
15585
15696
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
15586
15697
|
*/
|
|
15587
15698
|
async cancelWorkflow(id, options) {
|
|
15588
|
-
const request = new
|
|
15699
|
+
const request = new avs_pb23.IdReq();
|
|
15589
15700
|
request.setId(id);
|
|
15590
15701
|
const result = await this.sendGrpcRequest(
|
|
15591
15702
|
"cancelTask",
|
|
@@ -15601,7 +15712,7 @@ var Client = class extends BaseClient {
|
|
|
15601
15712
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
15602
15713
|
*/
|
|
15603
15714
|
async deleteWorkflow(id, options) {
|
|
15604
|
-
const request = new
|
|
15715
|
+
const request = new avs_pb23.IdReq();
|
|
15605
15716
|
request.setId(id);
|
|
15606
15717
|
const result = await this.sendGrpcRequest(
|
|
15607
15718
|
"deleteTask",
|
|
@@ -15621,7 +15732,7 @@ var Client = class extends BaseClient {
|
|
|
15621
15732
|
* @returns {Promise<boolean>} - True if the secret was created successfully
|
|
15622
15733
|
*/
|
|
15623
15734
|
async createSecret(name, value, options) {
|
|
15624
|
-
const request = new
|
|
15735
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
15625
15736
|
request.setName(name);
|
|
15626
15737
|
request.setSecret(value);
|
|
15627
15738
|
if (options?.workflowId) {
|
|
@@ -15644,7 +15755,7 @@ var Client = class extends BaseClient {
|
|
|
15644
15755
|
* @returns {Promise<boolean>} - True if the secret was updated successfully
|
|
15645
15756
|
*/
|
|
15646
15757
|
async updateSecret(name, value, options) {
|
|
15647
|
-
const request = new
|
|
15758
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
15648
15759
|
request.setName(name);
|
|
15649
15760
|
request.setSecret(value);
|
|
15650
15761
|
if (options?.workflowId) {
|
|
@@ -15671,7 +15782,7 @@ var Client = class extends BaseClient {
|
|
|
15671
15782
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
15672
15783
|
*/
|
|
15673
15784
|
async getSecrets(options) {
|
|
15674
|
-
const request = new
|
|
15785
|
+
const request = new avs_pb23.ListSecretsReq();
|
|
15675
15786
|
if (options?.workflowId) {
|
|
15676
15787
|
request.setWorkflowId(options.workflowId);
|
|
15677
15788
|
}
|
|
@@ -15726,7 +15837,7 @@ var Client = class extends BaseClient {
|
|
|
15726
15837
|
* @returns {Promise<boolean>} - True if the secret was deleted successfully
|
|
15727
15838
|
*/
|
|
15728
15839
|
async deleteSecret(name, options) {
|
|
15729
|
-
const request = new
|
|
15840
|
+
const request = new avs_pb23.DeleteSecretReq();
|
|
15730
15841
|
request.setName(name);
|
|
15731
15842
|
if (options?.workflowId) {
|
|
15732
15843
|
request.setWorkflowId(options.workflowId);
|
|
@@ -15748,11 +15859,11 @@ var Client = class extends BaseClient {
|
|
|
15748
15859
|
*/
|
|
15749
15860
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
15750
15861
|
const triggerTypes = [
|
|
15751
|
-
|
|
15752
|
-
|
|
15753
|
-
|
|
15754
|
-
|
|
15755
|
-
|
|
15862
|
+
TriggerType8.Block,
|
|
15863
|
+
TriggerType8.FixedTime,
|
|
15864
|
+
TriggerType8.Cron,
|
|
15865
|
+
TriggerType8.Event,
|
|
15866
|
+
TriggerType8.Manual
|
|
15756
15867
|
];
|
|
15757
15868
|
if (triggerTypes.includes(nodeType)) {
|
|
15758
15869
|
return {
|
|
@@ -15761,7 +15872,7 @@ var Client = class extends BaseClient {
|
|
|
15761
15872
|
nodeId: ""
|
|
15762
15873
|
};
|
|
15763
15874
|
}
|
|
15764
|
-
const request = new
|
|
15875
|
+
const request = new avs_pb23.RunNodeWithInputsReq();
|
|
15765
15876
|
const protobufNodeType = NodeTypeGoConverter2.fromGoString(nodeType);
|
|
15766
15877
|
request.setNodeType(protobufNodeType);
|
|
15767
15878
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
@@ -15791,7 +15902,7 @@ var Client = class extends BaseClient {
|
|
|
15791
15902
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
15792
15903
|
*/
|
|
15793
15904
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
15794
|
-
const request = new
|
|
15905
|
+
const request = new avs_pb23.RunTriggerReq();
|
|
15795
15906
|
const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
|
|
15796
15907
|
request.setTriggerType(protobufTriggerType);
|
|
15797
15908
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
@@ -15832,6 +15943,5 @@ export {
|
|
|
15832
15943
|
step_default as Step,
|
|
15833
15944
|
interface_default as Trigger,
|
|
15834
15945
|
factory_default as TriggerFactory,
|
|
15835
|
-
reason_default as TriggerReason,
|
|
15836
15946
|
workflow_default as Workflow
|
|
15837
15947
|
};
|