@avaprotocol/sdk-js 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/auth.d.ts +2 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +10 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +19 -0
- package/dist/index.d.ts +58 -2750
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1260 -492
- package/dist/index.mjs +1257 -484
- package/dist/models/edge.d.ts +12 -0
- package/dist/models/edge.d.ts.map +1 -0
- package/dist/models/edge.js +19 -0
- package/dist/models/execution.d.ts +25 -0
- package/dist/models/execution.d.ts.map +1 -0
- package/dist/models/execution.js +48 -0
- package/dist/models/node/branch.d.ts +14 -0
- package/dist/models/node/branch.d.ts.map +1 -0
- package/dist/models/node/branch.js +33 -0
- package/dist/models/node/contractRead.d.ts +14 -0
- package/dist/models/node/contractRead.d.ts.map +1 -0
- package/dist/models/node/contractRead.js +29 -0
- package/dist/models/node/contractWrite.d.ts +14 -0
- package/dist/models/node/contractWrite.d.ts.map +1 -0
- package/dist/models/node/contractWrite.js +29 -0
- package/dist/models/node/customCode.d.ts +15 -0
- package/dist/models/node/customCode.d.ts.map +1 -0
- package/dist/models/node/customCode.js +29 -0
- package/dist/models/node/ethTransfer.d.ts +14 -0
- package/dist/models/node/ethTransfer.d.ts.map +1 -0
- package/dist/models/node/ethTransfer.js +28 -0
- package/dist/models/node/factory.d.ts +20 -0
- package/dist/models/node/factory.d.ts.map +1 -0
- package/dist/models/node/factory.js +67 -0
- package/dist/models/node/filter.d.ts +14 -0
- package/dist/models/node/filter.d.ts.map +1 -0
- package/dist/models/node/filter.js +28 -0
- package/dist/models/node/graphqlQuery.d.ts +14 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -0
- package/dist/models/node/graphqlQuery.js +37 -0
- package/dist/models/node/interface.d.ts +18 -0
- package/dist/models/node/interface.d.ts.map +1 -0
- package/dist/models/node/interface.js +37 -0
- package/dist/models/node/restApi.d.ts +15 -0
- package/dist/models/node/restApi.d.ts.map +1 -0
- package/dist/models/node/restApi.js +34 -0
- package/dist/models/secret.d.ts +17 -0
- package/dist/models/secret.d.ts.map +1 -0
- package/dist/models/secret.js +22 -0
- package/dist/models/step.d.ts +19 -0
- package/dist/models/step.d.ts.map +1 -0
- package/dist/models/step.js +78 -0
- package/dist/models/trigger/block.d.ts +13 -0
- package/dist/models/trigger/block.d.ts.map +1 -0
- package/dist/models/trigger/block.js +30 -0
- package/dist/models/trigger/cron.d.ts +13 -0
- package/dist/models/trigger/cron.d.ts.map +1 -0
- package/dist/models/trigger/cron.js +30 -0
- package/dist/models/trigger/event.d.ts +13 -0
- package/dist/models/trigger/event.d.ts.map +1 -0
- package/dist/models/trigger/event.js +61 -0
- package/dist/models/trigger/factory.d.ts +27 -0
- package/dist/models/trigger/factory.d.ts.map +1 -0
- package/dist/models/trigger/factory.js +49 -0
- package/dist/models/trigger/fixedTime.d.ts +13 -0
- package/dist/models/trigger/fixedTime.d.ts.map +1 -0
- package/dist/models/trigger/fixedTime.js +30 -0
- package/dist/models/trigger/interface.d.ts +21 -0
- package/dist/models/trigger/interface.d.ts.map +1 -0
- package/dist/models/trigger/interface.js +16 -0
- package/dist/models/trigger/reason.d.ts +33 -0
- package/dist/models/trigger/reason.d.ts.map +1 -0
- package/dist/models/trigger/reason.js +93 -0
- package/dist/models/workflow.d.ts +54 -0
- package/dist/models/workflow.d.ts.map +1 -0
- package/dist/models/workflow.js +118 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +37 -0
- package/package.json +6 -4
- package/dist/index.d.mts +0 -2937
package/dist/index.js
CHANGED
|
@@ -99,7 +99,11 @@ var require_avs_pb = __commonJS({
|
|
|
99
99
|
goog.exportSymbol("proto.aggregator.FixedTimeCondition", null, global);
|
|
100
100
|
goog.exportSymbol("proto.aggregator.GetExecutionCountReq", null, global);
|
|
101
101
|
goog.exportSymbol("proto.aggregator.GetExecutionCountResp", null, global);
|
|
102
|
+
goog.exportSymbol("proto.aggregator.GetExecutionStatsReq", null, global);
|
|
103
|
+
goog.exportSymbol("proto.aggregator.GetExecutionStatsResp", null, global);
|
|
102
104
|
goog.exportSymbol("proto.aggregator.GetKeyReq", null, global);
|
|
105
|
+
goog.exportSymbol("proto.aggregator.GetSignatureFormatReq", null, global);
|
|
106
|
+
goog.exportSymbol("proto.aggregator.GetSignatureFormatResp", null, global);
|
|
103
107
|
goog.exportSymbol("proto.aggregator.GetWalletReq", null, global);
|
|
104
108
|
goog.exportSymbol("proto.aggregator.GetWalletResp", null, global);
|
|
105
109
|
goog.exportSymbol("proto.aggregator.GetWorkflowCountReq", null, global);
|
|
@@ -125,6 +129,7 @@ var require_avs_pb = __commonJS({
|
|
|
125
129
|
goog.exportSymbol("proto.aggregator.NonceResp", null, global);
|
|
126
130
|
goog.exportSymbol("proto.aggregator.RestAPINode", null, global);
|
|
127
131
|
goog.exportSymbol("proto.aggregator.RestAPINode.Output", null, global);
|
|
132
|
+
goog.exportSymbol("proto.aggregator.SetWalletReq", null, global);
|
|
128
133
|
goog.exportSymbol("proto.aggregator.SmartWallet", null, global);
|
|
129
134
|
goog.exportSymbol("proto.aggregator.Task", null, global);
|
|
130
135
|
goog.exportSymbol("proto.aggregator.TaskEdge", null, global);
|
|
@@ -508,6 +513,13 @@ var require_avs_pb = __commonJS({
|
|
|
508
513
|
if (goog.DEBUG && !COMPILED) {
|
|
509
514
|
proto.aggregator.GetWalletResp.displayName = "proto.aggregator.GetWalletResp";
|
|
510
515
|
}
|
|
516
|
+
proto.aggregator.SetWalletReq = function(opt_data) {
|
|
517
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
518
|
+
};
|
|
519
|
+
goog.inherits(proto.aggregator.SetWalletReq, jspb.Message);
|
|
520
|
+
if (goog.DEBUG && !COMPILED) {
|
|
521
|
+
proto.aggregator.SetWalletReq.displayName = "proto.aggregator.SetWalletReq";
|
|
522
|
+
}
|
|
511
523
|
proto.aggregator.UserTriggerTaskReq = function(opt_data) {
|
|
512
524
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
513
525
|
};
|
|
@@ -557,6 +569,20 @@ var require_avs_pb = __commonJS({
|
|
|
557
569
|
if (goog.DEBUG && !COMPILED) {
|
|
558
570
|
proto.aggregator.DeleteSecretReq.displayName = "proto.aggregator.DeleteSecretReq";
|
|
559
571
|
}
|
|
572
|
+
proto.aggregator.GetSignatureFormatReq = function(opt_data) {
|
|
573
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
574
|
+
};
|
|
575
|
+
goog.inherits(proto.aggregator.GetSignatureFormatReq, jspb.Message);
|
|
576
|
+
if (goog.DEBUG && !COMPILED) {
|
|
577
|
+
proto.aggregator.GetSignatureFormatReq.displayName = "proto.aggregator.GetSignatureFormatReq";
|
|
578
|
+
}
|
|
579
|
+
proto.aggregator.GetSignatureFormatResp = function(opt_data) {
|
|
580
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
581
|
+
};
|
|
582
|
+
goog.inherits(proto.aggregator.GetSignatureFormatResp, jspb.Message);
|
|
583
|
+
if (goog.DEBUG && !COMPILED) {
|
|
584
|
+
proto.aggregator.GetSignatureFormatResp.displayName = "proto.aggregator.GetSignatureFormatResp";
|
|
585
|
+
}
|
|
560
586
|
proto.aggregator.GetWorkflowCountReq = function(opt_data) {
|
|
561
587
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.GetWorkflowCountReq.repeatedFields_, null);
|
|
562
588
|
};
|
|
@@ -585,6 +611,20 @@ var require_avs_pb = __commonJS({
|
|
|
585
611
|
if (goog.DEBUG && !COMPILED) {
|
|
586
612
|
proto.aggregator.GetExecutionCountResp.displayName = "proto.aggregator.GetExecutionCountResp";
|
|
587
613
|
}
|
|
614
|
+
proto.aggregator.GetExecutionStatsReq = function(opt_data) {
|
|
615
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.GetExecutionStatsReq.repeatedFields_, null);
|
|
616
|
+
};
|
|
617
|
+
goog.inherits(proto.aggregator.GetExecutionStatsReq, jspb.Message);
|
|
618
|
+
if (goog.DEBUG && !COMPILED) {
|
|
619
|
+
proto.aggregator.GetExecutionStatsReq.displayName = "proto.aggregator.GetExecutionStatsReq";
|
|
620
|
+
}
|
|
621
|
+
proto.aggregator.GetExecutionStatsResp = function(opt_data) {
|
|
622
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
623
|
+
};
|
|
624
|
+
goog.inherits(proto.aggregator.GetExecutionStatsResp, jspb.Message);
|
|
625
|
+
if (goog.DEBUG && !COMPILED) {
|
|
626
|
+
proto.aggregator.GetExecutionStatsResp.displayName = "proto.aggregator.GetExecutionStatsResp";
|
|
627
|
+
}
|
|
588
628
|
proto.aggregator.Evm = function(opt_data) {
|
|
589
629
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
590
630
|
};
|
|
@@ -2342,7 +2382,7 @@ var require_avs_pb = __commonJS({
|
|
|
2342
2382
|
};
|
|
2343
2383
|
proto.aggregator.CustomCodeNode.Output.toObject = function(includeInstance, msg) {
|
|
2344
2384
|
var f, obj = {
|
|
2345
|
-
data: (f = msg.getData()) &&
|
|
2385
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb.Value.toObject(includeInstance, f)
|
|
2346
2386
|
};
|
|
2347
2387
|
if (includeInstance) {
|
|
2348
2388
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2363,8 +2403,8 @@ var require_avs_pb = __commonJS({
|
|
|
2363
2403
|
var field = reader.getFieldNumber();
|
|
2364
2404
|
switch (field) {
|
|
2365
2405
|
case 1:
|
|
2366
|
-
var value = new
|
|
2367
|
-
reader.readMessage(value,
|
|
2406
|
+
var value = new google_protobuf_struct_pb.Value();
|
|
2407
|
+
reader.readMessage(value, google_protobuf_struct_pb.Value.deserializeBinaryFromReader);
|
|
2368
2408
|
msg.setData(value);
|
|
2369
2409
|
break;
|
|
2370
2410
|
default:
|
|
@@ -2386,14 +2426,14 @@ var require_avs_pb = __commonJS({
|
|
|
2386
2426
|
writer.writeMessage(
|
|
2387
2427
|
1,
|
|
2388
2428
|
f,
|
|
2389
|
-
|
|
2429
|
+
google_protobuf_struct_pb.Value.serializeBinaryToWriter
|
|
2390
2430
|
);
|
|
2391
2431
|
}
|
|
2392
2432
|
};
|
|
2393
2433
|
proto.aggregator.CustomCodeNode.Output.prototype.getData = function() {
|
|
2394
2434
|
return (
|
|
2395
|
-
/** @type{?proto.google.protobuf.
|
|
2396
|
-
jspb.Message.getWrapperField(this,
|
|
2435
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
2436
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 1)
|
|
2397
2437
|
);
|
|
2398
2438
|
};
|
|
2399
2439
|
proto.aggregator.CustomCodeNode.Output.prototype.setData = function(value) {
|
|
@@ -5019,7 +5059,7 @@ var require_avs_pb = __commonJS({
|
|
|
5019
5059
|
name: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
5020
5060
|
completedAt: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
5021
5061
|
maxExecution: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
5022
|
-
|
|
5062
|
+
executionCount: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
5023
5063
|
lastRanAt: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
5024
5064
|
status: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
5025
5065
|
trigger: (f = msg.getTrigger()) && proto.aggregator.TaskTrigger.toObject(includeInstance, f),
|
|
@@ -5113,7 +5153,7 @@ var require_avs_pb = __commonJS({
|
|
|
5113
5153
|
/** @type {number} */
|
|
5114
5154
|
reader.readInt64()
|
|
5115
5155
|
);
|
|
5116
|
-
msg.
|
|
5156
|
+
msg.setExecutionCount(value);
|
|
5117
5157
|
break;
|
|
5118
5158
|
case 10:
|
|
5119
5159
|
var value = (
|
|
@@ -5214,7 +5254,7 @@ var require_avs_pb = __commonJS({
|
|
|
5214
5254
|
f
|
|
5215
5255
|
);
|
|
5216
5256
|
}
|
|
5217
|
-
f = message.
|
|
5257
|
+
f = message.getExecutionCount();
|
|
5218
5258
|
if (f !== 0) {
|
|
5219
5259
|
writer.writeInt64(
|
|
5220
5260
|
9,
|
|
@@ -5332,13 +5372,13 @@ var require_avs_pb = __commonJS({
|
|
|
5332
5372
|
proto.aggregator.Task.prototype.setMaxExecution = function(value) {
|
|
5333
5373
|
return jspb.Message.setProto3IntField(this, 8, value);
|
|
5334
5374
|
};
|
|
5335
|
-
proto.aggregator.Task.prototype.
|
|
5375
|
+
proto.aggregator.Task.prototype.getExecutionCount = function() {
|
|
5336
5376
|
return (
|
|
5337
5377
|
/** @type {number} */
|
|
5338
5378
|
jspb.Message.getFieldWithDefault(this, 9, 0)
|
|
5339
5379
|
);
|
|
5340
5380
|
};
|
|
5341
|
-
proto.aggregator.Task.prototype.
|
|
5381
|
+
proto.aggregator.Task.prototype.setExecutionCount = function(value) {
|
|
5342
5382
|
return jspb.Message.setProto3IntField(this, 9, value);
|
|
5343
5383
|
};
|
|
5344
5384
|
proto.aggregator.Task.prototype.getLastRanAt = function() {
|
|
@@ -5948,7 +5988,8 @@ var require_avs_pb = __commonJS({
|
|
|
5948
5988
|
var f, obj = {
|
|
5949
5989
|
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5950
5990
|
salt: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
5951
|
-
factory: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
5991
|
+
factory: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
5992
|
+
isHidden: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
5952
5993
|
};
|
|
5953
5994
|
if (includeInstance) {
|
|
5954
5995
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5989,6 +6030,13 @@ var require_avs_pb = __commonJS({
|
|
|
5989
6030
|
);
|
|
5990
6031
|
msg.setFactory(value);
|
|
5991
6032
|
break;
|
|
6033
|
+
case 4:
|
|
6034
|
+
var value = (
|
|
6035
|
+
/** @type {boolean} */
|
|
6036
|
+
reader.readBool()
|
|
6037
|
+
);
|
|
6038
|
+
msg.setIsHidden(value);
|
|
6039
|
+
break;
|
|
5992
6040
|
default:
|
|
5993
6041
|
reader.skipField();
|
|
5994
6042
|
break;
|
|
@@ -6024,6 +6072,13 @@ var require_avs_pb = __commonJS({
|
|
|
6024
6072
|
f
|
|
6025
6073
|
);
|
|
6026
6074
|
}
|
|
6075
|
+
f = message.getIsHidden();
|
|
6076
|
+
if (f) {
|
|
6077
|
+
writer.writeBool(
|
|
6078
|
+
4,
|
|
6079
|
+
f
|
|
6080
|
+
);
|
|
6081
|
+
}
|
|
6027
6082
|
};
|
|
6028
6083
|
proto.aggregator.SmartWallet.prototype.getAddress = function() {
|
|
6029
6084
|
return (
|
|
@@ -6052,6 +6107,15 @@ var require_avs_pb = __commonJS({
|
|
|
6052
6107
|
proto.aggregator.SmartWallet.prototype.setFactory = function(value) {
|
|
6053
6108
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6054
6109
|
};
|
|
6110
|
+
proto.aggregator.SmartWallet.prototype.getIsHidden = function() {
|
|
6111
|
+
return (
|
|
6112
|
+
/** @type {boolean} */
|
|
6113
|
+
jspb.Message.getBooleanFieldWithDefault(this, 4, false)
|
|
6114
|
+
);
|
|
6115
|
+
};
|
|
6116
|
+
proto.aggregator.SmartWallet.prototype.setIsHidden = function(value) {
|
|
6117
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
6118
|
+
};
|
|
6055
6119
|
proto.aggregator.ListWalletResp.repeatedFields_ = [1];
|
|
6056
6120
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6057
6121
|
proto.aggregator.ListWalletResp.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -6135,7 +6199,7 @@ var require_avs_pb = __commonJS({
|
|
|
6135
6199
|
var f, obj = {
|
|
6136
6200
|
smartWalletAddressList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f,
|
|
6137
6201
|
cursor: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6138
|
-
|
|
6202
|
+
limit: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
6139
6203
|
};
|
|
6140
6204
|
if (includeInstance) {
|
|
6141
6205
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6174,7 +6238,7 @@ var require_avs_pb = __commonJS({
|
|
|
6174
6238
|
/** @type {number} */
|
|
6175
6239
|
reader.readInt64()
|
|
6176
6240
|
);
|
|
6177
|
-
msg.
|
|
6241
|
+
msg.setLimit(value);
|
|
6178
6242
|
break;
|
|
6179
6243
|
default:
|
|
6180
6244
|
reader.skipField();
|
|
@@ -6204,7 +6268,7 @@ var require_avs_pb = __commonJS({
|
|
|
6204
6268
|
f
|
|
6205
6269
|
);
|
|
6206
6270
|
}
|
|
6207
|
-
f = message.
|
|
6271
|
+
f = message.getLimit();
|
|
6208
6272
|
if (f !== 0) {
|
|
6209
6273
|
writer.writeInt64(
|
|
6210
6274
|
3,
|
|
@@ -6236,13 +6300,13 @@ var require_avs_pb = __commonJS({
|
|
|
6236
6300
|
proto.aggregator.ListTasksReq.prototype.setCursor = function(value) {
|
|
6237
6301
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6238
6302
|
};
|
|
6239
|
-
proto.aggregator.ListTasksReq.prototype.
|
|
6303
|
+
proto.aggregator.ListTasksReq.prototype.getLimit = function() {
|
|
6240
6304
|
return (
|
|
6241
6305
|
/** @type {number} */
|
|
6242
6306
|
jspb.Message.getFieldWithDefault(this, 3, 0)
|
|
6243
6307
|
);
|
|
6244
6308
|
};
|
|
6245
|
-
proto.aggregator.ListTasksReq.prototype.
|
|
6309
|
+
proto.aggregator.ListTasksReq.prototype.setLimit = function(value) {
|
|
6246
6310
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
6247
6311
|
};
|
|
6248
6312
|
proto.aggregator.ListTasksResp.repeatedFields_ = [1];
|
|
@@ -6348,7 +6412,7 @@ var require_avs_pb = __commonJS({
|
|
|
6348
6412
|
name: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
6349
6413
|
completedAt: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
6350
6414
|
maxExecution: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
6351
|
-
|
|
6415
|
+
executionCount: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
6352
6416
|
lastRanAt: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
6353
6417
|
status: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
6354
6418
|
trigger: (f = msg.getTrigger()) && proto.aggregator.TaskTrigger.toObject(includeInstance, f)
|
|
@@ -6432,7 +6496,7 @@ var require_avs_pb = __commonJS({
|
|
|
6432
6496
|
/** @type {number} */
|
|
6433
6497
|
reader.readInt64()
|
|
6434
6498
|
);
|
|
6435
|
-
msg.
|
|
6499
|
+
msg.setExecutionCount(value);
|
|
6436
6500
|
break;
|
|
6437
6501
|
case 10:
|
|
6438
6502
|
var value = (
|
|
@@ -6523,7 +6587,7 @@ var require_avs_pb = __commonJS({
|
|
|
6523
6587
|
f
|
|
6524
6588
|
);
|
|
6525
6589
|
}
|
|
6526
|
-
f = message.
|
|
6590
|
+
f = message.getExecutionCount();
|
|
6527
6591
|
if (f !== 0) {
|
|
6528
6592
|
writer.writeInt64(
|
|
6529
6593
|
9,
|
|
@@ -6625,13 +6689,13 @@ var require_avs_pb = __commonJS({
|
|
|
6625
6689
|
proto.aggregator.ListTasksResp.Item.prototype.setMaxExecution = function(value) {
|
|
6626
6690
|
return jspb.Message.setProto3IntField(this, 8, value);
|
|
6627
6691
|
};
|
|
6628
|
-
proto.aggregator.ListTasksResp.Item.prototype.
|
|
6692
|
+
proto.aggregator.ListTasksResp.Item.prototype.getExecutionCount = function() {
|
|
6629
6693
|
return (
|
|
6630
6694
|
/** @type {number} */
|
|
6631
6695
|
jspb.Message.getFieldWithDefault(this, 9, 0)
|
|
6632
6696
|
);
|
|
6633
6697
|
};
|
|
6634
|
-
proto.aggregator.ListTasksResp.Item.prototype.
|
|
6698
|
+
proto.aggregator.ListTasksResp.Item.prototype.setExecutionCount = function(value) {
|
|
6635
6699
|
return jspb.Message.setProto3IntField(this, 9, value);
|
|
6636
6700
|
};
|
|
6637
6701
|
proto.aggregator.ListTasksResp.Item.prototype.getLastRanAt = function() {
|
|
@@ -6709,7 +6773,7 @@ var require_avs_pb = __commonJS({
|
|
|
6709
6773
|
var f, obj = {
|
|
6710
6774
|
taskIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f,
|
|
6711
6775
|
cursor: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6712
|
-
|
|
6776
|
+
limit: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
6713
6777
|
};
|
|
6714
6778
|
if (includeInstance) {
|
|
6715
6779
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6748,7 +6812,7 @@ var require_avs_pb = __commonJS({
|
|
|
6748
6812
|
/** @type {number} */
|
|
6749
6813
|
reader.readInt64()
|
|
6750
6814
|
);
|
|
6751
|
-
msg.
|
|
6815
|
+
msg.setLimit(value);
|
|
6752
6816
|
break;
|
|
6753
6817
|
default:
|
|
6754
6818
|
reader.skipField();
|
|
@@ -6778,7 +6842,7 @@ var require_avs_pb = __commonJS({
|
|
|
6778
6842
|
f
|
|
6779
6843
|
);
|
|
6780
6844
|
}
|
|
6781
|
-
f = message.
|
|
6845
|
+
f = message.getLimit();
|
|
6782
6846
|
if (f !== 0) {
|
|
6783
6847
|
writer.writeInt64(
|
|
6784
6848
|
3,
|
|
@@ -6810,13 +6874,13 @@ var require_avs_pb = __commonJS({
|
|
|
6810
6874
|
proto.aggregator.ListExecutionsReq.prototype.setCursor = function(value) {
|
|
6811
6875
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6812
6876
|
};
|
|
6813
|
-
proto.aggregator.ListExecutionsReq.prototype.
|
|
6877
|
+
proto.aggregator.ListExecutionsReq.prototype.getLimit = function() {
|
|
6814
6878
|
return (
|
|
6815
6879
|
/** @type {number} */
|
|
6816
6880
|
jspb.Message.getFieldWithDefault(this, 3, 0)
|
|
6817
6881
|
);
|
|
6818
6882
|
};
|
|
6819
|
-
proto.aggregator.ListExecutionsReq.prototype.
|
|
6883
|
+
proto.aggregator.ListExecutionsReq.prototype.setLimit = function(value) {
|
|
6820
6884
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
6821
6885
|
};
|
|
6822
6886
|
proto.aggregator.ListExecutionsResp.repeatedFields_ = [1];
|
|
@@ -7099,11 +7163,8 @@ var require_avs_pb = __commonJS({
|
|
|
7099
7163
|
};
|
|
7100
7164
|
proto.aggregator.GetKeyReq.toObject = function(includeInstance, msg) {
|
|
7101
7165
|
var f, obj = {
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
issuedAt: (f = msg.getIssuedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
7105
|
-
expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
7106
|
-
signature: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
7166
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7167
|
+
signature: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7107
7168
|
};
|
|
7108
7169
|
if (includeInstance) {
|
|
7109
7170
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7128,26 +7189,9 @@ var require_avs_pb = __commonJS({
|
|
|
7128
7189
|
/** @type {string} */
|
|
7129
7190
|
reader.readString()
|
|
7130
7191
|
);
|
|
7131
|
-
msg.
|
|
7192
|
+
msg.setMessage(value);
|
|
7132
7193
|
break;
|
|
7133
7194
|
case 2:
|
|
7134
|
-
var value = (
|
|
7135
|
-
/** @type {number} */
|
|
7136
|
-
reader.readInt64()
|
|
7137
|
-
);
|
|
7138
|
-
msg.setChainId(value);
|
|
7139
|
-
break;
|
|
7140
|
-
case 3:
|
|
7141
|
-
var value = new google_protobuf_timestamp_pb.Timestamp();
|
|
7142
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
7143
|
-
msg.setIssuedAt(value);
|
|
7144
|
-
break;
|
|
7145
|
-
case 4:
|
|
7146
|
-
var value = new google_protobuf_timestamp_pb.Timestamp();
|
|
7147
|
-
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
7148
|
-
msg.setExpiredAt(value);
|
|
7149
|
-
break;
|
|
7150
|
-
case 5:
|
|
7151
7195
|
var value = (
|
|
7152
7196
|
/** @type {string} */
|
|
7153
7197
|
reader.readString()
|
|
@@ -7168,100 +7212,38 @@ var require_avs_pb = __commonJS({
|
|
|
7168
7212
|
};
|
|
7169
7213
|
proto.aggregator.GetKeyReq.serializeBinaryToWriter = function(message, writer) {
|
|
7170
7214
|
var f = void 0;
|
|
7171
|
-
f = message.
|
|
7215
|
+
f = message.getMessage();
|
|
7172
7216
|
if (f.length > 0) {
|
|
7173
7217
|
writer.writeString(
|
|
7174
7218
|
1,
|
|
7175
7219
|
f
|
|
7176
7220
|
);
|
|
7177
7221
|
}
|
|
7178
|
-
f = message.getChainId();
|
|
7179
|
-
if (f !== 0) {
|
|
7180
|
-
writer.writeInt64(
|
|
7181
|
-
2,
|
|
7182
|
-
f
|
|
7183
|
-
);
|
|
7184
|
-
}
|
|
7185
|
-
f = message.getIssuedAt();
|
|
7186
|
-
if (f != null) {
|
|
7187
|
-
writer.writeMessage(
|
|
7188
|
-
3,
|
|
7189
|
-
f,
|
|
7190
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
7191
|
-
);
|
|
7192
|
-
}
|
|
7193
|
-
f = message.getExpiredAt();
|
|
7194
|
-
if (f != null) {
|
|
7195
|
-
writer.writeMessage(
|
|
7196
|
-
4,
|
|
7197
|
-
f,
|
|
7198
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
7199
|
-
);
|
|
7200
|
-
}
|
|
7201
7222
|
f = message.getSignature();
|
|
7202
7223
|
if (f.length > 0) {
|
|
7203
7224
|
writer.writeString(
|
|
7204
|
-
|
|
7225
|
+
2,
|
|
7205
7226
|
f
|
|
7206
7227
|
);
|
|
7207
7228
|
}
|
|
7208
7229
|
};
|
|
7209
|
-
proto.aggregator.GetKeyReq.prototype.
|
|
7230
|
+
proto.aggregator.GetKeyReq.prototype.getMessage = function() {
|
|
7210
7231
|
return (
|
|
7211
7232
|
/** @type {string} */
|
|
7212
7233
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
7213
7234
|
);
|
|
7214
7235
|
};
|
|
7215
|
-
proto.aggregator.GetKeyReq.prototype.
|
|
7236
|
+
proto.aggregator.GetKeyReq.prototype.setMessage = function(value) {
|
|
7216
7237
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7217
7238
|
};
|
|
7218
|
-
proto.aggregator.GetKeyReq.prototype.getChainId = function() {
|
|
7219
|
-
return (
|
|
7220
|
-
/** @type {number} */
|
|
7221
|
-
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
7222
|
-
);
|
|
7223
|
-
};
|
|
7224
|
-
proto.aggregator.GetKeyReq.prototype.setChainId = function(value) {
|
|
7225
|
-
return jspb.Message.setProto3IntField(this, 2, value);
|
|
7226
|
-
};
|
|
7227
|
-
proto.aggregator.GetKeyReq.prototype.getIssuedAt = function() {
|
|
7228
|
-
return (
|
|
7229
|
-
/** @type{?proto.google.protobuf.Timestamp} */
|
|
7230
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3)
|
|
7231
|
-
);
|
|
7232
|
-
};
|
|
7233
|
-
proto.aggregator.GetKeyReq.prototype.setIssuedAt = function(value) {
|
|
7234
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
7235
|
-
};
|
|
7236
|
-
proto.aggregator.GetKeyReq.prototype.clearIssuedAt = function() {
|
|
7237
|
-
return this.setIssuedAt(void 0);
|
|
7238
|
-
};
|
|
7239
|
-
proto.aggregator.GetKeyReq.prototype.hasIssuedAt = function() {
|
|
7240
|
-
return jspb.Message.getField(this, 3) != null;
|
|
7241
|
-
};
|
|
7242
|
-
proto.aggregator.GetKeyReq.prototype.getExpiredAt = function() {
|
|
7243
|
-
return (
|
|
7244
|
-
/** @type{?proto.google.protobuf.Timestamp} */
|
|
7245
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4)
|
|
7246
|
-
);
|
|
7247
|
-
};
|
|
7248
|
-
proto.aggregator.GetKeyReq.prototype.setExpiredAt = function(value) {
|
|
7249
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
7250
|
-
};
|
|
7251
|
-
proto.aggregator.GetKeyReq.prototype.clearExpiredAt = function() {
|
|
7252
|
-
return this.setExpiredAt(void 0);
|
|
7253
|
-
};
|
|
7254
|
-
proto.aggregator.GetKeyReq.prototype.hasExpiredAt = function() {
|
|
7255
|
-
return jspb.Message.getField(this, 4) != null;
|
|
7256
|
-
};
|
|
7257
7239
|
proto.aggregator.GetKeyReq.prototype.getSignature = function() {
|
|
7258
7240
|
return (
|
|
7259
7241
|
/** @type {string} */
|
|
7260
|
-
jspb.Message.getFieldWithDefault(this,
|
|
7242
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
7261
7243
|
);
|
|
7262
7244
|
};
|
|
7263
7245
|
proto.aggregator.GetKeyReq.prototype.setSignature = function(value) {
|
|
7264
|
-
return jspb.Message.setProto3StringField(this,
|
|
7246
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7265
7247
|
};
|
|
7266
7248
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7267
7249
|
proto.aggregator.KeyResp.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -7592,11 +7574,12 @@ var require_avs_pb = __commonJS({
|
|
|
7592
7574
|
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7593
7575
|
salt: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7594
7576
|
factoryAddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7577
|
+
isHidden: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
7578
|
+
totalTaskCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
7579
|
+
activeTaskCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
7580
|
+
completedTaskCount: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
7581
|
+
failedTaskCount: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
7582
|
+
canceledTaskCount: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
7600
7583
|
};
|
|
7601
7584
|
if (includeInstance) {
|
|
7602
7585
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7638,34 +7621,41 @@ var require_avs_pb = __commonJS({
|
|
|
7638
7621
|
msg.setFactoryAddress(value);
|
|
7639
7622
|
break;
|
|
7640
7623
|
case 4:
|
|
7624
|
+
var value = (
|
|
7625
|
+
/** @type {boolean} */
|
|
7626
|
+
reader.readBool()
|
|
7627
|
+
);
|
|
7628
|
+
msg.setIsHidden(value);
|
|
7629
|
+
break;
|
|
7630
|
+
case 5:
|
|
7641
7631
|
var value = (
|
|
7642
7632
|
/** @type {number} */
|
|
7643
7633
|
reader.readUint64()
|
|
7644
7634
|
);
|
|
7645
7635
|
msg.setTotalTaskCount(value);
|
|
7646
7636
|
break;
|
|
7647
|
-
case
|
|
7637
|
+
case 6:
|
|
7648
7638
|
var value = (
|
|
7649
7639
|
/** @type {number} */
|
|
7650
7640
|
reader.readUint64()
|
|
7651
7641
|
);
|
|
7652
7642
|
msg.setActiveTaskCount(value);
|
|
7653
7643
|
break;
|
|
7654
|
-
case
|
|
7644
|
+
case 7:
|
|
7655
7645
|
var value = (
|
|
7656
7646
|
/** @type {number} */
|
|
7657
7647
|
reader.readUint64()
|
|
7658
7648
|
);
|
|
7659
7649
|
msg.setCompletedTaskCount(value);
|
|
7660
7650
|
break;
|
|
7661
|
-
case
|
|
7651
|
+
case 8:
|
|
7662
7652
|
var value = (
|
|
7663
7653
|
/** @type {number} */
|
|
7664
7654
|
reader.readUint64()
|
|
7665
7655
|
);
|
|
7666
7656
|
msg.setFailedTaskCount(value);
|
|
7667
7657
|
break;
|
|
7668
|
-
case
|
|
7658
|
+
case 9:
|
|
7669
7659
|
var value = (
|
|
7670
7660
|
/** @type {number} */
|
|
7671
7661
|
reader.readUint64()
|
|
@@ -7707,38 +7697,45 @@ var require_avs_pb = __commonJS({
|
|
|
7707
7697
|
f
|
|
7708
7698
|
);
|
|
7709
7699
|
}
|
|
7700
|
+
f = message.getIsHidden();
|
|
7701
|
+
if (f) {
|
|
7702
|
+
writer.writeBool(
|
|
7703
|
+
4,
|
|
7704
|
+
f
|
|
7705
|
+
);
|
|
7706
|
+
}
|
|
7710
7707
|
f = message.getTotalTaskCount();
|
|
7711
7708
|
if (f !== 0) {
|
|
7712
7709
|
writer.writeUint64(
|
|
7713
|
-
|
|
7710
|
+
5,
|
|
7714
7711
|
f
|
|
7715
7712
|
);
|
|
7716
7713
|
}
|
|
7717
7714
|
f = message.getActiveTaskCount();
|
|
7718
7715
|
if (f !== 0) {
|
|
7719
7716
|
writer.writeUint64(
|
|
7720
|
-
|
|
7717
|
+
6,
|
|
7721
7718
|
f
|
|
7722
7719
|
);
|
|
7723
7720
|
}
|
|
7724
7721
|
f = message.getCompletedTaskCount();
|
|
7725
7722
|
if (f !== 0) {
|
|
7726
7723
|
writer.writeUint64(
|
|
7727
|
-
|
|
7724
|
+
7,
|
|
7728
7725
|
f
|
|
7729
7726
|
);
|
|
7730
7727
|
}
|
|
7731
7728
|
f = message.getFailedTaskCount();
|
|
7732
7729
|
if (f !== 0) {
|
|
7733
7730
|
writer.writeUint64(
|
|
7734
|
-
|
|
7731
|
+
8,
|
|
7735
7732
|
f
|
|
7736
7733
|
);
|
|
7737
7734
|
}
|
|
7738
7735
|
f = message.getCanceledTaskCount();
|
|
7739
7736
|
if (f !== 0) {
|
|
7740
7737
|
writer.writeUint64(
|
|
7741
|
-
|
|
7738
|
+
9,
|
|
7742
7739
|
f
|
|
7743
7740
|
);
|
|
7744
7741
|
}
|
|
@@ -7770,50 +7767,171 @@ var require_avs_pb = __commonJS({
|
|
|
7770
7767
|
proto.aggregator.GetWalletResp.prototype.setFactoryAddress = function(value) {
|
|
7771
7768
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7772
7769
|
};
|
|
7770
|
+
proto.aggregator.GetWalletResp.prototype.getIsHidden = function() {
|
|
7771
|
+
return (
|
|
7772
|
+
/** @type {boolean} */
|
|
7773
|
+
jspb.Message.getBooleanFieldWithDefault(this, 4, false)
|
|
7774
|
+
);
|
|
7775
|
+
};
|
|
7776
|
+
proto.aggregator.GetWalletResp.prototype.setIsHidden = function(value) {
|
|
7777
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
7778
|
+
};
|
|
7773
7779
|
proto.aggregator.GetWalletResp.prototype.getTotalTaskCount = function() {
|
|
7774
7780
|
return (
|
|
7775
7781
|
/** @type {number} */
|
|
7776
|
-
jspb.Message.getFieldWithDefault(this,
|
|
7782
|
+
jspb.Message.getFieldWithDefault(this, 5, 0)
|
|
7777
7783
|
);
|
|
7778
7784
|
};
|
|
7779
7785
|
proto.aggregator.GetWalletResp.prototype.setTotalTaskCount = function(value) {
|
|
7780
|
-
return jspb.Message.setProto3IntField(this,
|
|
7786
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
7781
7787
|
};
|
|
7782
7788
|
proto.aggregator.GetWalletResp.prototype.getActiveTaskCount = function() {
|
|
7783
7789
|
return (
|
|
7784
7790
|
/** @type {number} */
|
|
7785
|
-
jspb.Message.getFieldWithDefault(this,
|
|
7791
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
7786
7792
|
);
|
|
7787
7793
|
};
|
|
7788
7794
|
proto.aggregator.GetWalletResp.prototype.setActiveTaskCount = function(value) {
|
|
7789
|
-
return jspb.Message.setProto3IntField(this,
|
|
7795
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
7790
7796
|
};
|
|
7791
7797
|
proto.aggregator.GetWalletResp.prototype.getCompletedTaskCount = function() {
|
|
7792
7798
|
return (
|
|
7793
7799
|
/** @type {number} */
|
|
7794
|
-
jspb.Message.getFieldWithDefault(this,
|
|
7800
|
+
jspb.Message.getFieldWithDefault(this, 7, 0)
|
|
7795
7801
|
);
|
|
7796
7802
|
};
|
|
7797
7803
|
proto.aggregator.GetWalletResp.prototype.setCompletedTaskCount = function(value) {
|
|
7798
|
-
return jspb.Message.setProto3IntField(this,
|
|
7804
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
7799
7805
|
};
|
|
7800
7806
|
proto.aggregator.GetWalletResp.prototype.getFailedTaskCount = function() {
|
|
7801
7807
|
return (
|
|
7802
7808
|
/** @type {number} */
|
|
7803
|
-
jspb.Message.getFieldWithDefault(this,
|
|
7809
|
+
jspb.Message.getFieldWithDefault(this, 8, 0)
|
|
7804
7810
|
);
|
|
7805
7811
|
};
|
|
7806
7812
|
proto.aggregator.GetWalletResp.prototype.setFailedTaskCount = function(value) {
|
|
7807
|
-
return jspb.Message.setProto3IntField(this,
|
|
7813
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
7808
7814
|
};
|
|
7809
7815
|
proto.aggregator.GetWalletResp.prototype.getCanceledTaskCount = function() {
|
|
7810
7816
|
return (
|
|
7811
7817
|
/** @type {number} */
|
|
7812
|
-
jspb.Message.getFieldWithDefault(this,
|
|
7818
|
+
jspb.Message.getFieldWithDefault(this, 9, 0)
|
|
7813
7819
|
);
|
|
7814
7820
|
};
|
|
7815
7821
|
proto.aggregator.GetWalletResp.prototype.setCanceledTaskCount = function(value) {
|
|
7816
|
-
return jspb.Message.setProto3IntField(this,
|
|
7822
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
7823
|
+
};
|
|
7824
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7825
|
+
proto.aggregator.SetWalletReq.prototype.toObject = function(opt_includeInstance) {
|
|
7826
|
+
return proto.aggregator.SetWalletReq.toObject(opt_includeInstance, this);
|
|
7827
|
+
};
|
|
7828
|
+
proto.aggregator.SetWalletReq.toObject = function(includeInstance, msg) {
|
|
7829
|
+
var f, obj = {
|
|
7830
|
+
salt: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7831
|
+
factoryAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7832
|
+
isHidden: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
7833
|
+
};
|
|
7834
|
+
if (includeInstance) {
|
|
7835
|
+
obj.$jspbMessageInstance = msg;
|
|
7836
|
+
}
|
|
7837
|
+
return obj;
|
|
7838
|
+
};
|
|
7839
|
+
}
|
|
7840
|
+
proto.aggregator.SetWalletReq.deserializeBinary = function(bytes) {
|
|
7841
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7842
|
+
var msg = new proto.aggregator.SetWalletReq();
|
|
7843
|
+
return proto.aggregator.SetWalletReq.deserializeBinaryFromReader(msg, reader);
|
|
7844
|
+
};
|
|
7845
|
+
proto.aggregator.SetWalletReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
7846
|
+
while (reader.nextField()) {
|
|
7847
|
+
if (reader.isEndGroup()) {
|
|
7848
|
+
break;
|
|
7849
|
+
}
|
|
7850
|
+
var field = reader.getFieldNumber();
|
|
7851
|
+
switch (field) {
|
|
7852
|
+
case 1:
|
|
7853
|
+
var value = (
|
|
7854
|
+
/** @type {string} */
|
|
7855
|
+
reader.readString()
|
|
7856
|
+
);
|
|
7857
|
+
msg.setSalt(value);
|
|
7858
|
+
break;
|
|
7859
|
+
case 2:
|
|
7860
|
+
var value = (
|
|
7861
|
+
/** @type {string} */
|
|
7862
|
+
reader.readString()
|
|
7863
|
+
);
|
|
7864
|
+
msg.setFactoryAddress(value);
|
|
7865
|
+
break;
|
|
7866
|
+
case 3:
|
|
7867
|
+
var value = (
|
|
7868
|
+
/** @type {boolean} */
|
|
7869
|
+
reader.readBool()
|
|
7870
|
+
);
|
|
7871
|
+
msg.setIsHidden(value);
|
|
7872
|
+
break;
|
|
7873
|
+
default:
|
|
7874
|
+
reader.skipField();
|
|
7875
|
+
break;
|
|
7876
|
+
}
|
|
7877
|
+
}
|
|
7878
|
+
return msg;
|
|
7879
|
+
};
|
|
7880
|
+
proto.aggregator.SetWalletReq.prototype.serializeBinary = function() {
|
|
7881
|
+
var writer = new jspb.BinaryWriter();
|
|
7882
|
+
proto.aggregator.SetWalletReq.serializeBinaryToWriter(this, writer);
|
|
7883
|
+
return writer.getResultBuffer();
|
|
7884
|
+
};
|
|
7885
|
+
proto.aggregator.SetWalletReq.serializeBinaryToWriter = function(message, writer) {
|
|
7886
|
+
var f = void 0;
|
|
7887
|
+
f = message.getSalt();
|
|
7888
|
+
if (f.length > 0) {
|
|
7889
|
+
writer.writeString(
|
|
7890
|
+
1,
|
|
7891
|
+
f
|
|
7892
|
+
);
|
|
7893
|
+
}
|
|
7894
|
+
f = message.getFactoryAddress();
|
|
7895
|
+
if (f.length > 0) {
|
|
7896
|
+
writer.writeString(
|
|
7897
|
+
2,
|
|
7898
|
+
f
|
|
7899
|
+
);
|
|
7900
|
+
}
|
|
7901
|
+
f = message.getIsHidden();
|
|
7902
|
+
if (f) {
|
|
7903
|
+
writer.writeBool(
|
|
7904
|
+
3,
|
|
7905
|
+
f
|
|
7906
|
+
);
|
|
7907
|
+
}
|
|
7908
|
+
};
|
|
7909
|
+
proto.aggregator.SetWalletReq.prototype.getSalt = function() {
|
|
7910
|
+
return (
|
|
7911
|
+
/** @type {string} */
|
|
7912
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
7913
|
+
);
|
|
7914
|
+
};
|
|
7915
|
+
proto.aggregator.SetWalletReq.prototype.setSalt = function(value) {
|
|
7916
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7917
|
+
};
|
|
7918
|
+
proto.aggregator.SetWalletReq.prototype.getFactoryAddress = function() {
|
|
7919
|
+
return (
|
|
7920
|
+
/** @type {string} */
|
|
7921
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
7922
|
+
);
|
|
7923
|
+
};
|
|
7924
|
+
proto.aggregator.SetWalletReq.prototype.setFactoryAddress = function(value) {
|
|
7925
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7926
|
+
};
|
|
7927
|
+
proto.aggregator.SetWalletReq.prototype.getIsHidden = function() {
|
|
7928
|
+
return (
|
|
7929
|
+
/** @type {boolean} */
|
|
7930
|
+
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
|
7931
|
+
);
|
|
7932
|
+
};
|
|
7933
|
+
proto.aggregator.SetWalletReq.prototype.setIsHidden = function(value) {
|
|
7934
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
7817
7935
|
};
|
|
7818
7936
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7819
7937
|
proto.aggregator.UserTriggerTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8162,7 +8280,11 @@ var require_avs_pb = __commonJS({
|
|
|
8162
8280
|
};
|
|
8163
8281
|
proto.aggregator.ListSecretsReq.toObject = function(includeInstance, msg) {
|
|
8164
8282
|
var f, obj = {
|
|
8165
|
-
workflowId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8283
|
+
workflowId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8284
|
+
cursor: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8285
|
+
before: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8286
|
+
after: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8287
|
+
limit: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
8166
8288
|
};
|
|
8167
8289
|
if (includeInstance) {
|
|
8168
8290
|
obj.$jspbMessageInstance = msg;
|
|
@@ -8189,6 +8311,34 @@ var require_avs_pb = __commonJS({
|
|
|
8189
8311
|
);
|
|
8190
8312
|
msg.setWorkflowId(value);
|
|
8191
8313
|
break;
|
|
8314
|
+
case 2:
|
|
8315
|
+
var value = (
|
|
8316
|
+
/** @type {string} */
|
|
8317
|
+
reader.readString()
|
|
8318
|
+
);
|
|
8319
|
+
msg.setCursor(value);
|
|
8320
|
+
break;
|
|
8321
|
+
case 3:
|
|
8322
|
+
var value = (
|
|
8323
|
+
/** @type {string} */
|
|
8324
|
+
reader.readString()
|
|
8325
|
+
);
|
|
8326
|
+
msg.setBefore(value);
|
|
8327
|
+
break;
|
|
8328
|
+
case 4:
|
|
8329
|
+
var value = (
|
|
8330
|
+
/** @type {string} */
|
|
8331
|
+
reader.readString()
|
|
8332
|
+
);
|
|
8333
|
+
msg.setAfter(value);
|
|
8334
|
+
break;
|
|
8335
|
+
case 5:
|
|
8336
|
+
var value = (
|
|
8337
|
+
/** @type {number} */
|
|
8338
|
+
reader.readInt64()
|
|
8339
|
+
);
|
|
8340
|
+
msg.setLimit(value);
|
|
8341
|
+
break;
|
|
8192
8342
|
default:
|
|
8193
8343
|
reader.skipField();
|
|
8194
8344
|
break;
|
|
@@ -8210,6 +8360,34 @@ var require_avs_pb = __commonJS({
|
|
|
8210
8360
|
f
|
|
8211
8361
|
);
|
|
8212
8362
|
}
|
|
8363
|
+
f = message.getCursor();
|
|
8364
|
+
if (f.length > 0) {
|
|
8365
|
+
writer.writeString(
|
|
8366
|
+
2,
|
|
8367
|
+
f
|
|
8368
|
+
);
|
|
8369
|
+
}
|
|
8370
|
+
f = message.getBefore();
|
|
8371
|
+
if (f.length > 0) {
|
|
8372
|
+
writer.writeString(
|
|
8373
|
+
3,
|
|
8374
|
+
f
|
|
8375
|
+
);
|
|
8376
|
+
}
|
|
8377
|
+
f = message.getAfter();
|
|
8378
|
+
if (f.length > 0) {
|
|
8379
|
+
writer.writeString(
|
|
8380
|
+
4,
|
|
8381
|
+
f
|
|
8382
|
+
);
|
|
8383
|
+
}
|
|
8384
|
+
f = message.getLimit();
|
|
8385
|
+
if (f !== 0) {
|
|
8386
|
+
writer.writeInt64(
|
|
8387
|
+
5,
|
|
8388
|
+
f
|
|
8389
|
+
);
|
|
8390
|
+
}
|
|
8213
8391
|
};
|
|
8214
8392
|
proto.aggregator.ListSecretsReq.prototype.getWorkflowId = function() {
|
|
8215
8393
|
return (
|
|
@@ -8220,6 +8398,42 @@ var require_avs_pb = __commonJS({
|
|
|
8220
8398
|
proto.aggregator.ListSecretsReq.prototype.setWorkflowId = function(value) {
|
|
8221
8399
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8222
8400
|
};
|
|
8401
|
+
proto.aggregator.ListSecretsReq.prototype.getCursor = function() {
|
|
8402
|
+
return (
|
|
8403
|
+
/** @type {string} */
|
|
8404
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
8405
|
+
);
|
|
8406
|
+
};
|
|
8407
|
+
proto.aggregator.ListSecretsReq.prototype.setCursor = function(value) {
|
|
8408
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8409
|
+
};
|
|
8410
|
+
proto.aggregator.ListSecretsReq.prototype.getBefore = function() {
|
|
8411
|
+
return (
|
|
8412
|
+
/** @type {string} */
|
|
8413
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
8414
|
+
);
|
|
8415
|
+
};
|
|
8416
|
+
proto.aggregator.ListSecretsReq.prototype.setBefore = function(value) {
|
|
8417
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8418
|
+
};
|
|
8419
|
+
proto.aggregator.ListSecretsReq.prototype.getAfter = function() {
|
|
8420
|
+
return (
|
|
8421
|
+
/** @type {string} */
|
|
8422
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
8423
|
+
);
|
|
8424
|
+
};
|
|
8425
|
+
proto.aggregator.ListSecretsReq.prototype.setAfter = function(value) {
|
|
8426
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
8427
|
+
};
|
|
8428
|
+
proto.aggregator.ListSecretsReq.prototype.getLimit = function() {
|
|
8429
|
+
return (
|
|
8430
|
+
/** @type {number} */
|
|
8431
|
+
jspb.Message.getFieldWithDefault(this, 5, 0)
|
|
8432
|
+
);
|
|
8433
|
+
};
|
|
8434
|
+
proto.aggregator.ListSecretsReq.prototype.setLimit = function(value) {
|
|
8435
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
8436
|
+
};
|
|
8223
8437
|
proto.aggregator.ListSecretsResp.repeatedFields_ = [1];
|
|
8224
8438
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8225
8439
|
proto.aggregator.ListSecretsResp.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8231,7 +8445,9 @@ var require_avs_pb = __commonJS({
|
|
|
8231
8445
|
msg.getItemsList(),
|
|
8232
8446
|
proto.aggregator.ListSecretsResp.ResponseSecret.toObject,
|
|
8233
8447
|
includeInstance
|
|
8234
|
-
)
|
|
8448
|
+
),
|
|
8449
|
+
cursor: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8450
|
+
hasMore: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
8235
8451
|
};
|
|
8236
8452
|
if (includeInstance) {
|
|
8237
8453
|
obj.$jspbMessageInstance = msg;
|
|
@@ -8256,6 +8472,20 @@ var require_avs_pb = __commonJS({
|
|
|
8256
8472
|
reader.readMessage(value, proto.aggregator.ListSecretsResp.ResponseSecret.deserializeBinaryFromReader);
|
|
8257
8473
|
msg.addItems(value);
|
|
8258
8474
|
break;
|
|
8475
|
+
case 2:
|
|
8476
|
+
var value = (
|
|
8477
|
+
/** @type {string} */
|
|
8478
|
+
reader.readString()
|
|
8479
|
+
);
|
|
8480
|
+
msg.setCursor(value);
|
|
8481
|
+
break;
|
|
8482
|
+
case 3:
|
|
8483
|
+
var value = (
|
|
8484
|
+
/** @type {boolean} */
|
|
8485
|
+
reader.readBool()
|
|
8486
|
+
);
|
|
8487
|
+
msg.setHasMore(value);
|
|
8488
|
+
break;
|
|
8259
8489
|
default:
|
|
8260
8490
|
reader.skipField();
|
|
8261
8491
|
break;
|
|
@@ -8278,6 +8508,20 @@ var require_avs_pb = __commonJS({
|
|
|
8278
8508
|
proto.aggregator.ListSecretsResp.ResponseSecret.serializeBinaryToWriter
|
|
8279
8509
|
);
|
|
8280
8510
|
}
|
|
8511
|
+
f = message.getCursor();
|
|
8512
|
+
if (f.length > 0) {
|
|
8513
|
+
writer.writeString(
|
|
8514
|
+
2,
|
|
8515
|
+
f
|
|
8516
|
+
);
|
|
8517
|
+
}
|
|
8518
|
+
f = message.getHasMore();
|
|
8519
|
+
if (f) {
|
|
8520
|
+
writer.writeBool(
|
|
8521
|
+
3,
|
|
8522
|
+
f
|
|
8523
|
+
);
|
|
8524
|
+
}
|
|
8281
8525
|
};
|
|
8282
8526
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8283
8527
|
proto.aggregator.ListSecretsResp.ResponseSecret.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8430,6 +8674,24 @@ var require_avs_pb = __commonJS({
|
|
|
8430
8674
|
proto.aggregator.ListSecretsResp.prototype.clearItemsList = function() {
|
|
8431
8675
|
return this.setItemsList([]);
|
|
8432
8676
|
};
|
|
8677
|
+
proto.aggregator.ListSecretsResp.prototype.getCursor = function() {
|
|
8678
|
+
return (
|
|
8679
|
+
/** @type {string} */
|
|
8680
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
8681
|
+
);
|
|
8682
|
+
};
|
|
8683
|
+
proto.aggregator.ListSecretsResp.prototype.setCursor = function(value) {
|
|
8684
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8685
|
+
};
|
|
8686
|
+
proto.aggregator.ListSecretsResp.prototype.getHasMore = function() {
|
|
8687
|
+
return (
|
|
8688
|
+
/** @type {boolean} */
|
|
8689
|
+
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
|
8690
|
+
);
|
|
8691
|
+
};
|
|
8692
|
+
proto.aggregator.ListSecretsResp.prototype.setHasMore = function(value) {
|
|
8693
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
8694
|
+
};
|
|
8433
8695
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8434
8696
|
proto.aggregator.DeleteSecretReq.prototype.toObject = function(opt_includeInstance) {
|
|
8435
8697
|
return proto.aggregator.DeleteSecretReq.toObject(opt_includeInstance, this);
|
|
@@ -8542,6 +8804,134 @@ var require_avs_pb = __commonJS({
|
|
|
8542
8804
|
proto.aggregator.DeleteSecretReq.prototype.setOrgId = function(value) {
|
|
8543
8805
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8544
8806
|
};
|
|
8807
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8808
|
+
proto.aggregator.GetSignatureFormatReq.prototype.toObject = function(opt_includeInstance) {
|
|
8809
|
+
return proto.aggregator.GetSignatureFormatReq.toObject(opt_includeInstance, this);
|
|
8810
|
+
};
|
|
8811
|
+
proto.aggregator.GetSignatureFormatReq.toObject = function(includeInstance, msg) {
|
|
8812
|
+
var f, obj = {
|
|
8813
|
+
wallet: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8814
|
+
};
|
|
8815
|
+
if (includeInstance) {
|
|
8816
|
+
obj.$jspbMessageInstance = msg;
|
|
8817
|
+
}
|
|
8818
|
+
return obj;
|
|
8819
|
+
};
|
|
8820
|
+
}
|
|
8821
|
+
proto.aggregator.GetSignatureFormatReq.deserializeBinary = function(bytes) {
|
|
8822
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8823
|
+
var msg = new proto.aggregator.GetSignatureFormatReq();
|
|
8824
|
+
return proto.aggregator.GetSignatureFormatReq.deserializeBinaryFromReader(msg, reader);
|
|
8825
|
+
};
|
|
8826
|
+
proto.aggregator.GetSignatureFormatReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
8827
|
+
while (reader.nextField()) {
|
|
8828
|
+
if (reader.isEndGroup()) {
|
|
8829
|
+
break;
|
|
8830
|
+
}
|
|
8831
|
+
var field = reader.getFieldNumber();
|
|
8832
|
+
switch (field) {
|
|
8833
|
+
case 1:
|
|
8834
|
+
var value = (
|
|
8835
|
+
/** @type {string} */
|
|
8836
|
+
reader.readString()
|
|
8837
|
+
);
|
|
8838
|
+
msg.setWallet(value);
|
|
8839
|
+
break;
|
|
8840
|
+
default:
|
|
8841
|
+
reader.skipField();
|
|
8842
|
+
break;
|
|
8843
|
+
}
|
|
8844
|
+
}
|
|
8845
|
+
return msg;
|
|
8846
|
+
};
|
|
8847
|
+
proto.aggregator.GetSignatureFormatReq.prototype.serializeBinary = function() {
|
|
8848
|
+
var writer = new jspb.BinaryWriter();
|
|
8849
|
+
proto.aggregator.GetSignatureFormatReq.serializeBinaryToWriter(this, writer);
|
|
8850
|
+
return writer.getResultBuffer();
|
|
8851
|
+
};
|
|
8852
|
+
proto.aggregator.GetSignatureFormatReq.serializeBinaryToWriter = function(message, writer) {
|
|
8853
|
+
var f = void 0;
|
|
8854
|
+
f = message.getWallet();
|
|
8855
|
+
if (f.length > 0) {
|
|
8856
|
+
writer.writeString(
|
|
8857
|
+
1,
|
|
8858
|
+
f
|
|
8859
|
+
);
|
|
8860
|
+
}
|
|
8861
|
+
};
|
|
8862
|
+
proto.aggregator.GetSignatureFormatReq.prototype.getWallet = function() {
|
|
8863
|
+
return (
|
|
8864
|
+
/** @type {string} */
|
|
8865
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
8866
|
+
);
|
|
8867
|
+
};
|
|
8868
|
+
proto.aggregator.GetSignatureFormatReq.prototype.setWallet = function(value) {
|
|
8869
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8870
|
+
};
|
|
8871
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8872
|
+
proto.aggregator.GetSignatureFormatResp.prototype.toObject = function(opt_includeInstance) {
|
|
8873
|
+
return proto.aggregator.GetSignatureFormatResp.toObject(opt_includeInstance, this);
|
|
8874
|
+
};
|
|
8875
|
+
proto.aggregator.GetSignatureFormatResp.toObject = function(includeInstance, msg) {
|
|
8876
|
+
var f, obj = {
|
|
8877
|
+
message: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8878
|
+
};
|
|
8879
|
+
if (includeInstance) {
|
|
8880
|
+
obj.$jspbMessageInstance = msg;
|
|
8881
|
+
}
|
|
8882
|
+
return obj;
|
|
8883
|
+
};
|
|
8884
|
+
}
|
|
8885
|
+
proto.aggregator.GetSignatureFormatResp.deserializeBinary = function(bytes) {
|
|
8886
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8887
|
+
var msg = new proto.aggregator.GetSignatureFormatResp();
|
|
8888
|
+
return proto.aggregator.GetSignatureFormatResp.deserializeBinaryFromReader(msg, reader);
|
|
8889
|
+
};
|
|
8890
|
+
proto.aggregator.GetSignatureFormatResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
8891
|
+
while (reader.nextField()) {
|
|
8892
|
+
if (reader.isEndGroup()) {
|
|
8893
|
+
break;
|
|
8894
|
+
}
|
|
8895
|
+
var field = reader.getFieldNumber();
|
|
8896
|
+
switch (field) {
|
|
8897
|
+
case 1:
|
|
8898
|
+
var value = (
|
|
8899
|
+
/** @type {string} */
|
|
8900
|
+
reader.readString()
|
|
8901
|
+
);
|
|
8902
|
+
msg.setMessage(value);
|
|
8903
|
+
break;
|
|
8904
|
+
default:
|
|
8905
|
+
reader.skipField();
|
|
8906
|
+
break;
|
|
8907
|
+
}
|
|
8908
|
+
}
|
|
8909
|
+
return msg;
|
|
8910
|
+
};
|
|
8911
|
+
proto.aggregator.GetSignatureFormatResp.prototype.serializeBinary = function() {
|
|
8912
|
+
var writer = new jspb.BinaryWriter();
|
|
8913
|
+
proto.aggregator.GetSignatureFormatResp.serializeBinaryToWriter(this, writer);
|
|
8914
|
+
return writer.getResultBuffer();
|
|
8915
|
+
};
|
|
8916
|
+
proto.aggregator.GetSignatureFormatResp.serializeBinaryToWriter = function(message, writer) {
|
|
8917
|
+
var f = void 0;
|
|
8918
|
+
f = message.getMessage();
|
|
8919
|
+
if (f.length > 0) {
|
|
8920
|
+
writer.writeString(
|
|
8921
|
+
1,
|
|
8922
|
+
f
|
|
8923
|
+
);
|
|
8924
|
+
}
|
|
8925
|
+
};
|
|
8926
|
+
proto.aggregator.GetSignatureFormatResp.prototype.getMessage = function() {
|
|
8927
|
+
return (
|
|
8928
|
+
/** @type {string} */
|
|
8929
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
8930
|
+
);
|
|
8931
|
+
};
|
|
8932
|
+
proto.aggregator.GetSignatureFormatResp.prototype.setMessage = function(value) {
|
|
8933
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8934
|
+
};
|
|
8545
8935
|
proto.aggregator.GetWorkflowCountReq.repeatedFields_ = [1];
|
|
8546
8936
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8547
8937
|
proto.aggregator.GetWorkflowCountReq.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -8617,7 +9007,142 @@ var require_avs_pb = __commonJS({
|
|
|
8617
9007
|
proto.aggregator.GetWorkflowCountResp.prototype.toObject = function(opt_includeInstance) {
|
|
8618
9008
|
return proto.aggregator.GetWorkflowCountResp.toObject(opt_includeInstance, this);
|
|
8619
9009
|
};
|
|
8620
|
-
proto.aggregator.GetWorkflowCountResp.toObject = function(includeInstance, msg) {
|
|
9010
|
+
proto.aggregator.GetWorkflowCountResp.toObject = function(includeInstance, msg) {
|
|
9011
|
+
var f, obj = {
|
|
9012
|
+
total: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
9013
|
+
};
|
|
9014
|
+
if (includeInstance) {
|
|
9015
|
+
obj.$jspbMessageInstance = msg;
|
|
9016
|
+
}
|
|
9017
|
+
return obj;
|
|
9018
|
+
};
|
|
9019
|
+
}
|
|
9020
|
+
proto.aggregator.GetWorkflowCountResp.deserializeBinary = function(bytes) {
|
|
9021
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9022
|
+
var msg = new proto.aggregator.GetWorkflowCountResp();
|
|
9023
|
+
return proto.aggregator.GetWorkflowCountResp.deserializeBinaryFromReader(msg, reader);
|
|
9024
|
+
};
|
|
9025
|
+
proto.aggregator.GetWorkflowCountResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
9026
|
+
while (reader.nextField()) {
|
|
9027
|
+
if (reader.isEndGroup()) {
|
|
9028
|
+
break;
|
|
9029
|
+
}
|
|
9030
|
+
var field = reader.getFieldNumber();
|
|
9031
|
+
switch (field) {
|
|
9032
|
+
case 1:
|
|
9033
|
+
var value = (
|
|
9034
|
+
/** @type {number} */
|
|
9035
|
+
reader.readInt64()
|
|
9036
|
+
);
|
|
9037
|
+
msg.setTotal(value);
|
|
9038
|
+
break;
|
|
9039
|
+
default:
|
|
9040
|
+
reader.skipField();
|
|
9041
|
+
break;
|
|
9042
|
+
}
|
|
9043
|
+
}
|
|
9044
|
+
return msg;
|
|
9045
|
+
};
|
|
9046
|
+
proto.aggregator.GetWorkflowCountResp.prototype.serializeBinary = function() {
|
|
9047
|
+
var writer = new jspb.BinaryWriter();
|
|
9048
|
+
proto.aggregator.GetWorkflowCountResp.serializeBinaryToWriter(this, writer);
|
|
9049
|
+
return writer.getResultBuffer();
|
|
9050
|
+
};
|
|
9051
|
+
proto.aggregator.GetWorkflowCountResp.serializeBinaryToWriter = function(message, writer) {
|
|
9052
|
+
var f = void 0;
|
|
9053
|
+
f = message.getTotal();
|
|
9054
|
+
if (f !== 0) {
|
|
9055
|
+
writer.writeInt64(
|
|
9056
|
+
1,
|
|
9057
|
+
f
|
|
9058
|
+
);
|
|
9059
|
+
}
|
|
9060
|
+
};
|
|
9061
|
+
proto.aggregator.GetWorkflowCountResp.prototype.getTotal = function() {
|
|
9062
|
+
return (
|
|
9063
|
+
/** @type {number} */
|
|
9064
|
+
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
9065
|
+
);
|
|
9066
|
+
};
|
|
9067
|
+
proto.aggregator.GetWorkflowCountResp.prototype.setTotal = function(value) {
|
|
9068
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
9069
|
+
};
|
|
9070
|
+
proto.aggregator.GetExecutionCountReq.repeatedFields_ = [1];
|
|
9071
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9072
|
+
proto.aggregator.GetExecutionCountReq.prototype.toObject = function(opt_includeInstance) {
|
|
9073
|
+
return proto.aggregator.GetExecutionCountReq.toObject(opt_includeInstance, this);
|
|
9074
|
+
};
|
|
9075
|
+
proto.aggregator.GetExecutionCountReq.toObject = function(includeInstance, msg) {
|
|
9076
|
+
var f, obj = {
|
|
9077
|
+
workflowIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f
|
|
9078
|
+
};
|
|
9079
|
+
if (includeInstance) {
|
|
9080
|
+
obj.$jspbMessageInstance = msg;
|
|
9081
|
+
}
|
|
9082
|
+
return obj;
|
|
9083
|
+
};
|
|
9084
|
+
}
|
|
9085
|
+
proto.aggregator.GetExecutionCountReq.deserializeBinary = function(bytes) {
|
|
9086
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9087
|
+
var msg = new proto.aggregator.GetExecutionCountReq();
|
|
9088
|
+
return proto.aggregator.GetExecutionCountReq.deserializeBinaryFromReader(msg, reader);
|
|
9089
|
+
};
|
|
9090
|
+
proto.aggregator.GetExecutionCountReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
9091
|
+
while (reader.nextField()) {
|
|
9092
|
+
if (reader.isEndGroup()) {
|
|
9093
|
+
break;
|
|
9094
|
+
}
|
|
9095
|
+
var field = reader.getFieldNumber();
|
|
9096
|
+
switch (field) {
|
|
9097
|
+
case 1:
|
|
9098
|
+
var value = (
|
|
9099
|
+
/** @type {string} */
|
|
9100
|
+
reader.readString()
|
|
9101
|
+
);
|
|
9102
|
+
msg.addWorkflowIds(value);
|
|
9103
|
+
break;
|
|
9104
|
+
default:
|
|
9105
|
+
reader.skipField();
|
|
9106
|
+
break;
|
|
9107
|
+
}
|
|
9108
|
+
}
|
|
9109
|
+
return msg;
|
|
9110
|
+
};
|
|
9111
|
+
proto.aggregator.GetExecutionCountReq.prototype.serializeBinary = function() {
|
|
9112
|
+
var writer = new jspb.BinaryWriter();
|
|
9113
|
+
proto.aggregator.GetExecutionCountReq.serializeBinaryToWriter(this, writer);
|
|
9114
|
+
return writer.getResultBuffer();
|
|
9115
|
+
};
|
|
9116
|
+
proto.aggregator.GetExecutionCountReq.serializeBinaryToWriter = function(message, writer) {
|
|
9117
|
+
var f = void 0;
|
|
9118
|
+
f = message.getWorkflowIdsList();
|
|
9119
|
+
if (f.length > 0) {
|
|
9120
|
+
writer.writeRepeatedString(
|
|
9121
|
+
1,
|
|
9122
|
+
f
|
|
9123
|
+
);
|
|
9124
|
+
}
|
|
9125
|
+
};
|
|
9126
|
+
proto.aggregator.GetExecutionCountReq.prototype.getWorkflowIdsList = function() {
|
|
9127
|
+
return (
|
|
9128
|
+
/** @type {!Array<string>} */
|
|
9129
|
+
jspb.Message.getRepeatedField(this, 1)
|
|
9130
|
+
);
|
|
9131
|
+
};
|
|
9132
|
+
proto.aggregator.GetExecutionCountReq.prototype.setWorkflowIdsList = function(value) {
|
|
9133
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
9134
|
+
};
|
|
9135
|
+
proto.aggregator.GetExecutionCountReq.prototype.addWorkflowIds = function(value, opt_index) {
|
|
9136
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
9137
|
+
};
|
|
9138
|
+
proto.aggregator.GetExecutionCountReq.prototype.clearWorkflowIdsList = function() {
|
|
9139
|
+
return this.setWorkflowIdsList([]);
|
|
9140
|
+
};
|
|
9141
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9142
|
+
proto.aggregator.GetExecutionCountResp.prototype.toObject = function(opt_includeInstance) {
|
|
9143
|
+
return proto.aggregator.GetExecutionCountResp.toObject(opt_includeInstance, this);
|
|
9144
|
+
};
|
|
9145
|
+
proto.aggregator.GetExecutionCountResp.toObject = function(includeInstance, msg) {
|
|
8621
9146
|
var f, obj = {
|
|
8622
9147
|
total: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
8623
9148
|
};
|
|
@@ -8627,12 +9152,12 @@ var require_avs_pb = __commonJS({
|
|
|
8627
9152
|
return obj;
|
|
8628
9153
|
};
|
|
8629
9154
|
}
|
|
8630
|
-
proto.aggregator.
|
|
9155
|
+
proto.aggregator.GetExecutionCountResp.deserializeBinary = function(bytes) {
|
|
8631
9156
|
var reader = new jspb.BinaryReader(bytes);
|
|
8632
|
-
var msg = new proto.aggregator.
|
|
8633
|
-
return proto.aggregator.
|
|
9157
|
+
var msg = new proto.aggregator.GetExecutionCountResp();
|
|
9158
|
+
return proto.aggregator.GetExecutionCountResp.deserializeBinaryFromReader(msg, reader);
|
|
8634
9159
|
};
|
|
8635
|
-
proto.aggregator.
|
|
9160
|
+
proto.aggregator.GetExecutionCountResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
8636
9161
|
while (reader.nextField()) {
|
|
8637
9162
|
if (reader.isEndGroup()) {
|
|
8638
9163
|
break;
|
|
@@ -8653,12 +9178,12 @@ var require_avs_pb = __commonJS({
|
|
|
8653
9178
|
}
|
|
8654
9179
|
return msg;
|
|
8655
9180
|
};
|
|
8656
|
-
proto.aggregator.
|
|
9181
|
+
proto.aggregator.GetExecutionCountResp.prototype.serializeBinary = function() {
|
|
8657
9182
|
var writer = new jspb.BinaryWriter();
|
|
8658
|
-
proto.aggregator.
|
|
9183
|
+
proto.aggregator.GetExecutionCountResp.serializeBinaryToWriter(this, writer);
|
|
8659
9184
|
return writer.getResultBuffer();
|
|
8660
9185
|
};
|
|
8661
|
-
proto.aggregator.
|
|
9186
|
+
proto.aggregator.GetExecutionCountResp.serializeBinaryToWriter = function(message, writer) {
|
|
8662
9187
|
var f = void 0;
|
|
8663
9188
|
f = message.getTotal();
|
|
8664
9189
|
if (f !== 0) {
|
|
@@ -8668,23 +9193,24 @@ var require_avs_pb = __commonJS({
|
|
|
8668
9193
|
);
|
|
8669
9194
|
}
|
|
8670
9195
|
};
|
|
8671
|
-
proto.aggregator.
|
|
9196
|
+
proto.aggregator.GetExecutionCountResp.prototype.getTotal = function() {
|
|
8672
9197
|
return (
|
|
8673
9198
|
/** @type {number} */
|
|
8674
9199
|
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
8675
9200
|
);
|
|
8676
9201
|
};
|
|
8677
|
-
proto.aggregator.
|
|
9202
|
+
proto.aggregator.GetExecutionCountResp.prototype.setTotal = function(value) {
|
|
8678
9203
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
8679
9204
|
};
|
|
8680
|
-
proto.aggregator.
|
|
9205
|
+
proto.aggregator.GetExecutionStatsReq.repeatedFields_ = [1];
|
|
8681
9206
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8682
|
-
proto.aggregator.
|
|
8683
|
-
return proto.aggregator.
|
|
9207
|
+
proto.aggregator.GetExecutionStatsReq.prototype.toObject = function(opt_includeInstance) {
|
|
9208
|
+
return proto.aggregator.GetExecutionStatsReq.toObject(opt_includeInstance, this);
|
|
8684
9209
|
};
|
|
8685
|
-
proto.aggregator.
|
|
9210
|
+
proto.aggregator.GetExecutionStatsReq.toObject = function(includeInstance, msg) {
|
|
8686
9211
|
var f, obj = {
|
|
8687
|
-
workflowIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f
|
|
9212
|
+
workflowIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f,
|
|
9213
|
+
days: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
8688
9214
|
};
|
|
8689
9215
|
if (includeInstance) {
|
|
8690
9216
|
obj.$jspbMessageInstance = msg;
|
|
@@ -8692,12 +9218,12 @@ var require_avs_pb = __commonJS({
|
|
|
8692
9218
|
return obj;
|
|
8693
9219
|
};
|
|
8694
9220
|
}
|
|
8695
|
-
proto.aggregator.
|
|
9221
|
+
proto.aggregator.GetExecutionStatsReq.deserializeBinary = function(bytes) {
|
|
8696
9222
|
var reader = new jspb.BinaryReader(bytes);
|
|
8697
|
-
var msg = new proto.aggregator.
|
|
8698
|
-
return proto.aggregator.
|
|
9223
|
+
var msg = new proto.aggregator.GetExecutionStatsReq();
|
|
9224
|
+
return proto.aggregator.GetExecutionStatsReq.deserializeBinaryFromReader(msg, reader);
|
|
8699
9225
|
};
|
|
8700
|
-
proto.aggregator.
|
|
9226
|
+
proto.aggregator.GetExecutionStatsReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
8701
9227
|
while (reader.nextField()) {
|
|
8702
9228
|
if (reader.isEndGroup()) {
|
|
8703
9229
|
break;
|
|
@@ -8711,6 +9237,13 @@ var require_avs_pb = __commonJS({
|
|
|
8711
9237
|
);
|
|
8712
9238
|
msg.addWorkflowIds(value);
|
|
8713
9239
|
break;
|
|
9240
|
+
case 2:
|
|
9241
|
+
var value = (
|
|
9242
|
+
/** @type {number} */
|
|
9243
|
+
reader.readInt64()
|
|
9244
|
+
);
|
|
9245
|
+
msg.setDays(value);
|
|
9246
|
+
break;
|
|
8714
9247
|
default:
|
|
8715
9248
|
reader.skipField();
|
|
8716
9249
|
break;
|
|
@@ -8718,12 +9251,12 @@ var require_avs_pb = __commonJS({
|
|
|
8718
9251
|
}
|
|
8719
9252
|
return msg;
|
|
8720
9253
|
};
|
|
8721
|
-
proto.aggregator.
|
|
9254
|
+
proto.aggregator.GetExecutionStatsReq.prototype.serializeBinary = function() {
|
|
8722
9255
|
var writer = new jspb.BinaryWriter();
|
|
8723
|
-
proto.aggregator.
|
|
9256
|
+
proto.aggregator.GetExecutionStatsReq.serializeBinaryToWriter(this, writer);
|
|
8724
9257
|
return writer.getResultBuffer();
|
|
8725
9258
|
};
|
|
8726
|
-
proto.aggregator.
|
|
9259
|
+
proto.aggregator.GetExecutionStatsReq.serializeBinaryToWriter = function(message, writer) {
|
|
8727
9260
|
var f = void 0;
|
|
8728
9261
|
f = message.getWorkflowIdsList();
|
|
8729
9262
|
if (f.length > 0) {
|
|
@@ -8732,29 +9265,48 @@ var require_avs_pb = __commonJS({
|
|
|
8732
9265
|
f
|
|
8733
9266
|
);
|
|
8734
9267
|
}
|
|
9268
|
+
f = message.getDays();
|
|
9269
|
+
if (f !== 0) {
|
|
9270
|
+
writer.writeInt64(
|
|
9271
|
+
2,
|
|
9272
|
+
f
|
|
9273
|
+
);
|
|
9274
|
+
}
|
|
8735
9275
|
};
|
|
8736
|
-
proto.aggregator.
|
|
9276
|
+
proto.aggregator.GetExecutionStatsReq.prototype.getWorkflowIdsList = function() {
|
|
8737
9277
|
return (
|
|
8738
9278
|
/** @type {!Array<string>} */
|
|
8739
9279
|
jspb.Message.getRepeatedField(this, 1)
|
|
8740
9280
|
);
|
|
8741
9281
|
};
|
|
8742
|
-
proto.aggregator.
|
|
9282
|
+
proto.aggregator.GetExecutionStatsReq.prototype.setWorkflowIdsList = function(value) {
|
|
8743
9283
|
return jspb.Message.setField(this, 1, value || []);
|
|
8744
9284
|
};
|
|
8745
|
-
proto.aggregator.
|
|
9285
|
+
proto.aggregator.GetExecutionStatsReq.prototype.addWorkflowIds = function(value, opt_index) {
|
|
8746
9286
|
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
8747
9287
|
};
|
|
8748
|
-
proto.aggregator.
|
|
9288
|
+
proto.aggregator.GetExecutionStatsReq.prototype.clearWorkflowIdsList = function() {
|
|
8749
9289
|
return this.setWorkflowIdsList([]);
|
|
8750
9290
|
};
|
|
9291
|
+
proto.aggregator.GetExecutionStatsReq.prototype.getDays = function() {
|
|
9292
|
+
return (
|
|
9293
|
+
/** @type {number} */
|
|
9294
|
+
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
9295
|
+
);
|
|
9296
|
+
};
|
|
9297
|
+
proto.aggregator.GetExecutionStatsReq.prototype.setDays = function(value) {
|
|
9298
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
9299
|
+
};
|
|
8751
9300
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8752
|
-
proto.aggregator.
|
|
8753
|
-
return proto.aggregator.
|
|
9301
|
+
proto.aggregator.GetExecutionStatsResp.prototype.toObject = function(opt_includeInstance) {
|
|
9302
|
+
return proto.aggregator.GetExecutionStatsResp.toObject(opt_includeInstance, this);
|
|
8754
9303
|
};
|
|
8755
|
-
proto.aggregator.
|
|
9304
|
+
proto.aggregator.GetExecutionStatsResp.toObject = function(includeInstance, msg) {
|
|
8756
9305
|
var f, obj = {
|
|
8757
|
-
total: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
9306
|
+
total: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
9307
|
+
succeeded: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
9308
|
+
failed: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
9309
|
+
avgExecutionTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0)
|
|
8758
9310
|
};
|
|
8759
9311
|
if (includeInstance) {
|
|
8760
9312
|
obj.$jspbMessageInstance = msg;
|
|
@@ -8762,12 +9314,12 @@ var require_avs_pb = __commonJS({
|
|
|
8762
9314
|
return obj;
|
|
8763
9315
|
};
|
|
8764
9316
|
}
|
|
8765
|
-
proto.aggregator.
|
|
9317
|
+
proto.aggregator.GetExecutionStatsResp.deserializeBinary = function(bytes) {
|
|
8766
9318
|
var reader = new jspb.BinaryReader(bytes);
|
|
8767
|
-
var msg = new proto.aggregator.
|
|
8768
|
-
return proto.aggregator.
|
|
9319
|
+
var msg = new proto.aggregator.GetExecutionStatsResp();
|
|
9320
|
+
return proto.aggregator.GetExecutionStatsResp.deserializeBinaryFromReader(msg, reader);
|
|
8769
9321
|
};
|
|
8770
|
-
proto.aggregator.
|
|
9322
|
+
proto.aggregator.GetExecutionStatsResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
8771
9323
|
while (reader.nextField()) {
|
|
8772
9324
|
if (reader.isEndGroup()) {
|
|
8773
9325
|
break;
|
|
@@ -8781,6 +9333,27 @@ var require_avs_pb = __commonJS({
|
|
|
8781
9333
|
);
|
|
8782
9334
|
msg.setTotal(value);
|
|
8783
9335
|
break;
|
|
9336
|
+
case 2:
|
|
9337
|
+
var value = (
|
|
9338
|
+
/** @type {number} */
|
|
9339
|
+
reader.readInt64()
|
|
9340
|
+
);
|
|
9341
|
+
msg.setSucceeded(value);
|
|
9342
|
+
break;
|
|
9343
|
+
case 3:
|
|
9344
|
+
var value = (
|
|
9345
|
+
/** @type {number} */
|
|
9346
|
+
reader.readInt64()
|
|
9347
|
+
);
|
|
9348
|
+
msg.setFailed(value);
|
|
9349
|
+
break;
|
|
9350
|
+
case 4:
|
|
9351
|
+
var value = (
|
|
9352
|
+
/** @type {number} */
|
|
9353
|
+
reader.readDouble()
|
|
9354
|
+
);
|
|
9355
|
+
msg.setAvgExecutionTime(value);
|
|
9356
|
+
break;
|
|
8784
9357
|
default:
|
|
8785
9358
|
reader.skipField();
|
|
8786
9359
|
break;
|
|
@@ -8788,12 +9361,12 @@ var require_avs_pb = __commonJS({
|
|
|
8788
9361
|
}
|
|
8789
9362
|
return msg;
|
|
8790
9363
|
};
|
|
8791
|
-
proto.aggregator.
|
|
9364
|
+
proto.aggregator.GetExecutionStatsResp.prototype.serializeBinary = function() {
|
|
8792
9365
|
var writer = new jspb.BinaryWriter();
|
|
8793
|
-
proto.aggregator.
|
|
9366
|
+
proto.aggregator.GetExecutionStatsResp.serializeBinaryToWriter(this, writer);
|
|
8794
9367
|
return writer.getResultBuffer();
|
|
8795
9368
|
};
|
|
8796
|
-
proto.aggregator.
|
|
9369
|
+
proto.aggregator.GetExecutionStatsResp.serializeBinaryToWriter = function(message, writer) {
|
|
8797
9370
|
var f = void 0;
|
|
8798
9371
|
f = message.getTotal();
|
|
8799
9372
|
if (f !== 0) {
|
|
@@ -8802,16 +9375,64 @@ var require_avs_pb = __commonJS({
|
|
|
8802
9375
|
f
|
|
8803
9376
|
);
|
|
8804
9377
|
}
|
|
9378
|
+
f = message.getSucceeded();
|
|
9379
|
+
if (f !== 0) {
|
|
9380
|
+
writer.writeInt64(
|
|
9381
|
+
2,
|
|
9382
|
+
f
|
|
9383
|
+
);
|
|
9384
|
+
}
|
|
9385
|
+
f = message.getFailed();
|
|
9386
|
+
if (f !== 0) {
|
|
9387
|
+
writer.writeInt64(
|
|
9388
|
+
3,
|
|
9389
|
+
f
|
|
9390
|
+
);
|
|
9391
|
+
}
|
|
9392
|
+
f = message.getAvgExecutionTime();
|
|
9393
|
+
if (f !== 0) {
|
|
9394
|
+
writer.writeDouble(
|
|
9395
|
+
4,
|
|
9396
|
+
f
|
|
9397
|
+
);
|
|
9398
|
+
}
|
|
8805
9399
|
};
|
|
8806
|
-
proto.aggregator.
|
|
9400
|
+
proto.aggregator.GetExecutionStatsResp.prototype.getTotal = function() {
|
|
8807
9401
|
return (
|
|
8808
9402
|
/** @type {number} */
|
|
8809
9403
|
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
8810
9404
|
);
|
|
8811
9405
|
};
|
|
8812
|
-
proto.aggregator.
|
|
9406
|
+
proto.aggregator.GetExecutionStatsResp.prototype.setTotal = function(value) {
|
|
8813
9407
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
8814
9408
|
};
|
|
9409
|
+
proto.aggregator.GetExecutionStatsResp.prototype.getSucceeded = function() {
|
|
9410
|
+
return (
|
|
9411
|
+
/** @type {number} */
|
|
9412
|
+
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
9413
|
+
);
|
|
9414
|
+
};
|
|
9415
|
+
proto.aggregator.GetExecutionStatsResp.prototype.setSucceeded = function(value) {
|
|
9416
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
9417
|
+
};
|
|
9418
|
+
proto.aggregator.GetExecutionStatsResp.prototype.getFailed = function() {
|
|
9419
|
+
return (
|
|
9420
|
+
/** @type {number} */
|
|
9421
|
+
jspb.Message.getFieldWithDefault(this, 3, 0)
|
|
9422
|
+
);
|
|
9423
|
+
};
|
|
9424
|
+
proto.aggregator.GetExecutionStatsResp.prototype.setFailed = function(value) {
|
|
9425
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
9426
|
+
};
|
|
9427
|
+
proto.aggregator.GetExecutionStatsResp.prototype.getAvgExecutionTime = function() {
|
|
9428
|
+
return (
|
|
9429
|
+
/** @type {number} */
|
|
9430
|
+
jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0)
|
|
9431
|
+
);
|
|
9432
|
+
};
|
|
9433
|
+
proto.aggregator.GetExecutionStatsResp.prototype.setAvgExecutionTime = function(value) {
|
|
9434
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
9435
|
+
};
|
|
8815
9436
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8816
9437
|
proto.aggregator.Evm.prototype.toObject = function(opt_includeInstance) {
|
|
8817
9438
|
return proto.aggregator.Evm.toObject(opt_includeInstance, this);
|
|
@@ -9931,271 +10552,316 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
9931
10552
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
9932
10553
|
"use strict";
|
|
9933
10554
|
var grpc = require("@grpc/grpc-js");
|
|
9934
|
-
var
|
|
10555
|
+
var avs_pb21 = require_avs_pb();
|
|
9935
10556
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
9936
10557
|
var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
9937
10558
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
9938
10559
|
var google_protobuf_struct_pb = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
9939
10560
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
9940
|
-
if (!(arg instanceof
|
|
10561
|
+
if (!(arg instanceof avs_pb21.CreateOrUpdateSecretReq)) {
|
|
9941
10562
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
9942
10563
|
}
|
|
9943
10564
|
return Buffer.from(arg.serializeBinary());
|
|
9944
10565
|
}
|
|
9945
10566
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
9946
|
-
return
|
|
10567
|
+
return avs_pb21.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
9947
10568
|
}
|
|
9948
10569
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
9949
|
-
if (!(arg instanceof
|
|
10570
|
+
if (!(arg instanceof avs_pb21.CreateTaskReq)) {
|
|
9950
10571
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
9951
10572
|
}
|
|
9952
10573
|
return Buffer.from(arg.serializeBinary());
|
|
9953
10574
|
}
|
|
9954
10575
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
9955
|
-
return
|
|
10576
|
+
return avs_pb21.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
9956
10577
|
}
|
|
9957
10578
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
9958
|
-
if (!(arg instanceof
|
|
10579
|
+
if (!(arg instanceof avs_pb21.CreateTaskResp)) {
|
|
9959
10580
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
9960
10581
|
}
|
|
9961
10582
|
return Buffer.from(arg.serializeBinary());
|
|
9962
10583
|
}
|
|
9963
10584
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
9964
|
-
return
|
|
10585
|
+
return avs_pb21.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
9965
10586
|
}
|
|
9966
10587
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
9967
|
-
if (!(arg instanceof
|
|
10588
|
+
if (!(arg instanceof avs_pb21.DeleteSecretReq)) {
|
|
9968
10589
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
9969
10590
|
}
|
|
9970
10591
|
return Buffer.from(arg.serializeBinary());
|
|
9971
10592
|
}
|
|
9972
10593
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
9973
|
-
return
|
|
10594
|
+
return avs_pb21.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
9974
10595
|
}
|
|
9975
10596
|
function serialize_aggregator_Execution(arg) {
|
|
9976
|
-
if (!(arg instanceof
|
|
10597
|
+
if (!(arg instanceof avs_pb21.Execution)) {
|
|
9977
10598
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
9978
10599
|
}
|
|
9979
10600
|
return Buffer.from(arg.serializeBinary());
|
|
9980
10601
|
}
|
|
9981
10602
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
9982
|
-
return
|
|
10603
|
+
return avs_pb21.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
9983
10604
|
}
|
|
9984
10605
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
9985
|
-
if (!(arg instanceof
|
|
10606
|
+
if (!(arg instanceof avs_pb21.ExecutionReq)) {
|
|
9986
10607
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
9987
10608
|
}
|
|
9988
10609
|
return Buffer.from(arg.serializeBinary());
|
|
9989
10610
|
}
|
|
9990
10611
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
9991
|
-
return
|
|
10612
|
+
return avs_pb21.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
9992
10613
|
}
|
|
9993
10614
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
9994
|
-
if (!(arg instanceof
|
|
10615
|
+
if (!(arg instanceof avs_pb21.ExecutionStatusResp)) {
|
|
9995
10616
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
9996
10617
|
}
|
|
9997
10618
|
return Buffer.from(arg.serializeBinary());
|
|
9998
10619
|
}
|
|
9999
10620
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
10000
|
-
return
|
|
10621
|
+
return avs_pb21.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10001
10622
|
}
|
|
10002
10623
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
10003
|
-
if (!(arg instanceof
|
|
10624
|
+
if (!(arg instanceof avs_pb21.GetExecutionCountReq)) {
|
|
10004
10625
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
10005
10626
|
}
|
|
10006
10627
|
return Buffer.from(arg.serializeBinary());
|
|
10007
10628
|
}
|
|
10008
10629
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
10009
|
-
return
|
|
10630
|
+
return avs_pb21.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10010
10631
|
}
|
|
10011
10632
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
10012
|
-
if (!(arg instanceof
|
|
10633
|
+
if (!(arg instanceof avs_pb21.GetExecutionCountResp)) {
|
|
10013
10634
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
10014
10635
|
}
|
|
10015
10636
|
return Buffer.from(arg.serializeBinary());
|
|
10016
10637
|
}
|
|
10017
10638
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
10018
|
-
return
|
|
10639
|
+
return avs_pb21.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10640
|
+
}
|
|
10641
|
+
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
10642
|
+
if (!(arg instanceof avs_pb21.GetExecutionStatsReq)) {
|
|
10643
|
+
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
10644
|
+
}
|
|
10645
|
+
return Buffer.from(arg.serializeBinary());
|
|
10646
|
+
}
|
|
10647
|
+
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
10648
|
+
return avs_pb21.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10649
|
+
}
|
|
10650
|
+
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
10651
|
+
if (!(arg instanceof avs_pb21.GetExecutionStatsResp)) {
|
|
10652
|
+
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
10653
|
+
}
|
|
10654
|
+
return Buffer.from(arg.serializeBinary());
|
|
10655
|
+
}
|
|
10656
|
+
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
10657
|
+
return avs_pb21.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10019
10658
|
}
|
|
10020
10659
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
10021
|
-
if (!(arg instanceof
|
|
10660
|
+
if (!(arg instanceof avs_pb21.GetKeyReq)) {
|
|
10022
10661
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
10023
10662
|
}
|
|
10024
10663
|
return Buffer.from(arg.serializeBinary());
|
|
10025
10664
|
}
|
|
10026
10665
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
10027
|
-
return
|
|
10666
|
+
return avs_pb21.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10667
|
+
}
|
|
10668
|
+
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
10669
|
+
if (!(arg instanceof avs_pb21.GetSignatureFormatReq)) {
|
|
10670
|
+
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
10671
|
+
}
|
|
10672
|
+
return Buffer.from(arg.serializeBinary());
|
|
10673
|
+
}
|
|
10674
|
+
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
10675
|
+
return avs_pb21.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10676
|
+
}
|
|
10677
|
+
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
10678
|
+
if (!(arg instanceof avs_pb21.GetSignatureFormatResp)) {
|
|
10679
|
+
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
10680
|
+
}
|
|
10681
|
+
return Buffer.from(arg.serializeBinary());
|
|
10682
|
+
}
|
|
10683
|
+
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
10684
|
+
return avs_pb21.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10028
10685
|
}
|
|
10029
10686
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
10030
|
-
if (!(arg instanceof
|
|
10687
|
+
if (!(arg instanceof avs_pb21.GetWalletReq)) {
|
|
10031
10688
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
10032
10689
|
}
|
|
10033
10690
|
return Buffer.from(arg.serializeBinary());
|
|
10034
10691
|
}
|
|
10035
10692
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
10036
|
-
return
|
|
10693
|
+
return avs_pb21.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10037
10694
|
}
|
|
10038
10695
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
10039
|
-
if (!(arg instanceof
|
|
10696
|
+
if (!(arg instanceof avs_pb21.GetWalletResp)) {
|
|
10040
10697
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
10041
10698
|
}
|
|
10042
10699
|
return Buffer.from(arg.serializeBinary());
|
|
10043
10700
|
}
|
|
10044
10701
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
10045
|
-
return
|
|
10702
|
+
return avs_pb21.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10046
10703
|
}
|
|
10047
10704
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
10048
|
-
if (!(arg instanceof
|
|
10705
|
+
if (!(arg instanceof avs_pb21.GetWorkflowCountReq)) {
|
|
10049
10706
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
10050
10707
|
}
|
|
10051
10708
|
return Buffer.from(arg.serializeBinary());
|
|
10052
10709
|
}
|
|
10053
10710
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
10054
|
-
return
|
|
10711
|
+
return avs_pb21.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10055
10712
|
}
|
|
10056
10713
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
10057
|
-
if (!(arg instanceof
|
|
10714
|
+
if (!(arg instanceof avs_pb21.GetWorkflowCountResp)) {
|
|
10058
10715
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
10059
10716
|
}
|
|
10060
10717
|
return Buffer.from(arg.serializeBinary());
|
|
10061
10718
|
}
|
|
10062
10719
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
10063
|
-
return
|
|
10720
|
+
return avs_pb21.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10064
10721
|
}
|
|
10065
10722
|
function serialize_aggregator_IdReq(arg) {
|
|
10066
|
-
if (!(arg instanceof
|
|
10723
|
+
if (!(arg instanceof avs_pb21.IdReq)) {
|
|
10067
10724
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
10068
10725
|
}
|
|
10069
10726
|
return Buffer.from(arg.serializeBinary());
|
|
10070
10727
|
}
|
|
10071
10728
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
10072
|
-
return
|
|
10729
|
+
return avs_pb21.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10073
10730
|
}
|
|
10074
10731
|
function serialize_aggregator_KeyResp(arg) {
|
|
10075
|
-
if (!(arg instanceof
|
|
10732
|
+
if (!(arg instanceof avs_pb21.KeyResp)) {
|
|
10076
10733
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
10077
10734
|
}
|
|
10078
10735
|
return Buffer.from(arg.serializeBinary());
|
|
10079
10736
|
}
|
|
10080
10737
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
10081
|
-
return
|
|
10738
|
+
return avs_pb21.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10082
10739
|
}
|
|
10083
10740
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
10084
|
-
if (!(arg instanceof
|
|
10741
|
+
if (!(arg instanceof avs_pb21.ListExecutionsReq)) {
|
|
10085
10742
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
10086
10743
|
}
|
|
10087
10744
|
return Buffer.from(arg.serializeBinary());
|
|
10088
10745
|
}
|
|
10089
10746
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
10090
|
-
return
|
|
10747
|
+
return avs_pb21.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10091
10748
|
}
|
|
10092
10749
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
10093
|
-
if (!(arg instanceof
|
|
10750
|
+
if (!(arg instanceof avs_pb21.ListExecutionsResp)) {
|
|
10094
10751
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
10095
10752
|
}
|
|
10096
10753
|
return Buffer.from(arg.serializeBinary());
|
|
10097
10754
|
}
|
|
10098
10755
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
10099
|
-
return
|
|
10756
|
+
return avs_pb21.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10100
10757
|
}
|
|
10101
10758
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
10102
|
-
if (!(arg instanceof
|
|
10759
|
+
if (!(arg instanceof avs_pb21.ListSecretsReq)) {
|
|
10103
10760
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
10104
10761
|
}
|
|
10105
10762
|
return Buffer.from(arg.serializeBinary());
|
|
10106
10763
|
}
|
|
10107
10764
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
10108
|
-
return
|
|
10765
|
+
return avs_pb21.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10109
10766
|
}
|
|
10110
10767
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
10111
|
-
if (!(arg instanceof
|
|
10768
|
+
if (!(arg instanceof avs_pb21.ListSecretsResp)) {
|
|
10112
10769
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
10113
10770
|
}
|
|
10114
10771
|
return Buffer.from(arg.serializeBinary());
|
|
10115
10772
|
}
|
|
10116
10773
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
10117
|
-
return
|
|
10774
|
+
return avs_pb21.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10118
10775
|
}
|
|
10119
10776
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
10120
|
-
if (!(arg instanceof
|
|
10777
|
+
if (!(arg instanceof avs_pb21.ListTasksReq)) {
|
|
10121
10778
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
10122
10779
|
}
|
|
10123
10780
|
return Buffer.from(arg.serializeBinary());
|
|
10124
10781
|
}
|
|
10125
10782
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
10126
|
-
return
|
|
10783
|
+
return avs_pb21.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10127
10784
|
}
|
|
10128
10785
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
10129
|
-
if (!(arg instanceof
|
|
10786
|
+
if (!(arg instanceof avs_pb21.ListTasksResp)) {
|
|
10130
10787
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
10131
10788
|
}
|
|
10132
10789
|
return Buffer.from(arg.serializeBinary());
|
|
10133
10790
|
}
|
|
10134
10791
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
10135
|
-
return
|
|
10792
|
+
return avs_pb21.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10136
10793
|
}
|
|
10137
10794
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
10138
|
-
if (!(arg instanceof
|
|
10795
|
+
if (!(arg instanceof avs_pb21.ListWalletReq)) {
|
|
10139
10796
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
10140
10797
|
}
|
|
10141
10798
|
return Buffer.from(arg.serializeBinary());
|
|
10142
10799
|
}
|
|
10143
10800
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
10144
|
-
return
|
|
10801
|
+
return avs_pb21.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10145
10802
|
}
|
|
10146
10803
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
10147
|
-
if (!(arg instanceof
|
|
10804
|
+
if (!(arg instanceof avs_pb21.ListWalletResp)) {
|
|
10148
10805
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
10149
10806
|
}
|
|
10150
10807
|
return Buffer.from(arg.serializeBinary());
|
|
10151
10808
|
}
|
|
10152
10809
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
10153
|
-
return
|
|
10810
|
+
return avs_pb21.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10154
10811
|
}
|
|
10155
10812
|
function serialize_aggregator_NonceRequest(arg) {
|
|
10156
|
-
if (!(arg instanceof
|
|
10813
|
+
if (!(arg instanceof avs_pb21.NonceRequest)) {
|
|
10157
10814
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
10158
10815
|
}
|
|
10159
10816
|
return Buffer.from(arg.serializeBinary());
|
|
10160
10817
|
}
|
|
10161
10818
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
10162
|
-
return
|
|
10819
|
+
return avs_pb21.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10163
10820
|
}
|
|
10164
10821
|
function serialize_aggregator_NonceResp(arg) {
|
|
10165
|
-
if (!(arg instanceof
|
|
10822
|
+
if (!(arg instanceof avs_pb21.NonceResp)) {
|
|
10166
10823
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
10167
10824
|
}
|
|
10168
10825
|
return Buffer.from(arg.serializeBinary());
|
|
10169
10826
|
}
|
|
10170
10827
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
10171
|
-
return
|
|
10828
|
+
return avs_pb21.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10829
|
+
}
|
|
10830
|
+
function serialize_aggregator_SetWalletReq(arg) {
|
|
10831
|
+
if (!(arg instanceof avs_pb21.SetWalletReq)) {
|
|
10832
|
+
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
10833
|
+
}
|
|
10834
|
+
return Buffer.from(arg.serializeBinary());
|
|
10835
|
+
}
|
|
10836
|
+
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
10837
|
+
return avs_pb21.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10172
10838
|
}
|
|
10173
10839
|
function serialize_aggregator_Task(arg) {
|
|
10174
|
-
if (!(arg instanceof
|
|
10840
|
+
if (!(arg instanceof avs_pb21.Task)) {
|
|
10175
10841
|
throw new Error("Expected argument of type aggregator.Task");
|
|
10176
10842
|
}
|
|
10177
10843
|
return Buffer.from(arg.serializeBinary());
|
|
10178
10844
|
}
|
|
10179
10845
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
10180
|
-
return
|
|
10846
|
+
return avs_pb21.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10181
10847
|
}
|
|
10182
10848
|
function serialize_aggregator_UserTriggerTaskReq(arg) {
|
|
10183
|
-
if (!(arg instanceof
|
|
10849
|
+
if (!(arg instanceof avs_pb21.UserTriggerTaskReq)) {
|
|
10184
10850
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskReq");
|
|
10185
10851
|
}
|
|
10186
10852
|
return Buffer.from(arg.serializeBinary());
|
|
10187
10853
|
}
|
|
10188
10854
|
function deserialize_aggregator_UserTriggerTaskReq(buffer_arg) {
|
|
10189
|
-
return
|
|
10855
|
+
return avs_pb21.UserTriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10190
10856
|
}
|
|
10191
10857
|
function serialize_aggregator_UserTriggerTaskResp(arg) {
|
|
10192
|
-
if (!(arg instanceof
|
|
10858
|
+
if (!(arg instanceof avs_pb21.UserTriggerTaskResp)) {
|
|
10193
10859
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskResp");
|
|
10194
10860
|
}
|
|
10195
10861
|
return Buffer.from(arg.serializeBinary());
|
|
10196
10862
|
}
|
|
10197
10863
|
function deserialize_aggregator_UserTriggerTaskResp(buffer_arg) {
|
|
10198
|
-
return
|
|
10864
|
+
return avs_pb21.UserTriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
10199
10865
|
}
|
|
10200
10866
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
10201
10867
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -10212,20 +10878,32 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10212
10878
|
path: "/aggregator.Aggregator/GetKey",
|
|
10213
10879
|
requestStream: false,
|
|
10214
10880
|
responseStream: false,
|
|
10215
|
-
requestType:
|
|
10216
|
-
responseType:
|
|
10881
|
+
requestType: avs_pb21.GetKeyReq,
|
|
10882
|
+
responseType: avs_pb21.KeyResp,
|
|
10217
10883
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
10218
10884
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
10219
10885
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
10220
10886
|
responseDeserialize: deserialize_aggregator_KeyResp
|
|
10221
10887
|
},
|
|
10888
|
+
// Get the signature format template used for authentication
|
|
10889
|
+
getSignatureFormat: {
|
|
10890
|
+
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
10891
|
+
requestStream: false,
|
|
10892
|
+
responseStream: false,
|
|
10893
|
+
requestType: avs_pb21.GetSignatureFormatReq,
|
|
10894
|
+
responseType: avs_pb21.GetSignatureFormatResp,
|
|
10895
|
+
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
10896
|
+
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
10897
|
+
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
10898
|
+
responseDeserialize: deserialize_aggregator_GetSignatureFormatResp
|
|
10899
|
+
},
|
|
10222
10900
|
// Smart Acccount Operation
|
|
10223
10901
|
getNonce: {
|
|
10224
10902
|
path: "/aggregator.Aggregator/GetNonce",
|
|
10225
10903
|
requestStream: false,
|
|
10226
10904
|
responseStream: false,
|
|
10227
|
-
requestType:
|
|
10228
|
-
responseType:
|
|
10905
|
+
requestType: avs_pb21.NonceRequest,
|
|
10906
|
+
responseType: avs_pb21.NonceResp,
|
|
10229
10907
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
10230
10908
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
10231
10909
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -10235,19 +10913,30 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10235
10913
|
path: "/aggregator.Aggregator/GetWallet",
|
|
10236
10914
|
requestStream: false,
|
|
10237
10915
|
responseStream: false,
|
|
10238
|
-
requestType:
|
|
10239
|
-
responseType:
|
|
10916
|
+
requestType: avs_pb21.GetWalletReq,
|
|
10917
|
+
responseType: avs_pb21.GetWalletResp,
|
|
10240
10918
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
10241
10919
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
10242
10920
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
10243
10921
|
responseDeserialize: deserialize_aggregator_GetWalletResp
|
|
10244
10922
|
},
|
|
10923
|
+
setWallet: {
|
|
10924
|
+
path: "/aggregator.Aggregator/SetWallet",
|
|
10925
|
+
requestStream: false,
|
|
10926
|
+
responseStream: false,
|
|
10927
|
+
requestType: avs_pb21.SetWalletReq,
|
|
10928
|
+
responseType: avs_pb21.GetWalletResp,
|
|
10929
|
+
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
10930
|
+
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
10931
|
+
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
10932
|
+
responseDeserialize: deserialize_aggregator_GetWalletResp
|
|
10933
|
+
},
|
|
10245
10934
|
listWallets: {
|
|
10246
10935
|
path: "/aggregator.Aggregator/ListWallets",
|
|
10247
10936
|
requestStream: false,
|
|
10248
10937
|
responseStream: false,
|
|
10249
|
-
requestType:
|
|
10250
|
-
responseType:
|
|
10938
|
+
requestType: avs_pb21.ListWalletReq,
|
|
10939
|
+
responseType: avs_pb21.ListWalletResp,
|
|
10251
10940
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
10252
10941
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
10253
10942
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -10258,8 +10947,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10258
10947
|
path: "/aggregator.Aggregator/CreateTask",
|
|
10259
10948
|
requestStream: false,
|
|
10260
10949
|
responseStream: false,
|
|
10261
|
-
requestType:
|
|
10262
|
-
responseType:
|
|
10950
|
+
requestType: avs_pb21.CreateTaskReq,
|
|
10951
|
+
responseType: avs_pb21.CreateTaskResp,
|
|
10263
10952
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
10264
10953
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
10265
10954
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -10269,8 +10958,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10269
10958
|
path: "/aggregator.Aggregator/ListTasks",
|
|
10270
10959
|
requestStream: false,
|
|
10271
10960
|
responseStream: false,
|
|
10272
|
-
requestType:
|
|
10273
|
-
responseType:
|
|
10961
|
+
requestType: avs_pb21.ListTasksReq,
|
|
10962
|
+
responseType: avs_pb21.ListTasksResp,
|
|
10274
10963
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
10275
10964
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
10276
10965
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -10280,8 +10969,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10280
10969
|
path: "/aggregator.Aggregator/GetTask",
|
|
10281
10970
|
requestStream: false,
|
|
10282
10971
|
responseStream: false,
|
|
10283
|
-
requestType:
|
|
10284
|
-
responseType:
|
|
10972
|
+
requestType: avs_pb21.IdReq,
|
|
10973
|
+
responseType: avs_pb21.Task,
|
|
10285
10974
|
requestSerialize: serialize_aggregator_IdReq,
|
|
10286
10975
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
10287
10976
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -10291,8 +10980,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10291
10980
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
10292
10981
|
requestStream: false,
|
|
10293
10982
|
responseStream: false,
|
|
10294
|
-
requestType:
|
|
10295
|
-
responseType:
|
|
10983
|
+
requestType: avs_pb21.ListExecutionsReq,
|
|
10984
|
+
responseType: avs_pb21.ListExecutionsResp,
|
|
10296
10985
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
10297
10986
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
10298
10987
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -10302,8 +10991,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10302
10991
|
path: "/aggregator.Aggregator/GetExecution",
|
|
10303
10992
|
requestStream: false,
|
|
10304
10993
|
responseStream: false,
|
|
10305
|
-
requestType:
|
|
10306
|
-
responseType:
|
|
10994
|
+
requestType: avs_pb21.ExecutionReq,
|
|
10995
|
+
responseType: avs_pb21.Execution,
|
|
10307
10996
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
10308
10997
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
10309
10998
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -10313,8 +11002,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10313
11002
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
10314
11003
|
requestStream: false,
|
|
10315
11004
|
responseStream: false,
|
|
10316
|
-
requestType:
|
|
10317
|
-
responseType:
|
|
11005
|
+
requestType: avs_pb21.ExecutionReq,
|
|
11006
|
+
responseType: avs_pb21.ExecutionStatusResp,
|
|
10318
11007
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
10319
11008
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
10320
11009
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -10324,7 +11013,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10324
11013
|
path: "/aggregator.Aggregator/CancelTask",
|
|
10325
11014
|
requestStream: false,
|
|
10326
11015
|
responseStream: false,
|
|
10327
|
-
requestType:
|
|
11016
|
+
requestType: avs_pb21.IdReq,
|
|
10328
11017
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
10329
11018
|
requestSerialize: serialize_aggregator_IdReq,
|
|
10330
11019
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -10335,7 +11024,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10335
11024
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
10336
11025
|
requestStream: false,
|
|
10337
11026
|
responseStream: false,
|
|
10338
|
-
requestType:
|
|
11027
|
+
requestType: avs_pb21.IdReq,
|
|
10339
11028
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
10340
11029
|
requestSerialize: serialize_aggregator_IdReq,
|
|
10341
11030
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -10346,8 +11035,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10346
11035
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
10347
11036
|
requestStream: false,
|
|
10348
11037
|
responseStream: false,
|
|
10349
|
-
requestType:
|
|
10350
|
-
responseType:
|
|
11038
|
+
requestType: avs_pb21.UserTriggerTaskReq,
|
|
11039
|
+
responseType: avs_pb21.UserTriggerTaskResp,
|
|
10351
11040
|
requestSerialize: serialize_aggregator_UserTriggerTaskReq,
|
|
10352
11041
|
requestDeserialize: deserialize_aggregator_UserTriggerTaskReq,
|
|
10353
11042
|
responseSerialize: serialize_aggregator_UserTriggerTaskResp,
|
|
@@ -10360,7 +11049,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10360
11049
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
10361
11050
|
requestStream: false,
|
|
10362
11051
|
responseStream: false,
|
|
10363
|
-
requestType:
|
|
11052
|
+
requestType: avs_pb21.CreateOrUpdateSecretReq,
|
|
10364
11053
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
10365
11054
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
10366
11055
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -10371,7 +11060,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10371
11060
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
10372
11061
|
requestStream: false,
|
|
10373
11062
|
responseStream: false,
|
|
10374
|
-
requestType:
|
|
11063
|
+
requestType: avs_pb21.DeleteSecretReq,
|
|
10375
11064
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
10376
11065
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
10377
11066
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -10384,8 +11073,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10384
11073
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
10385
11074
|
requestStream: false,
|
|
10386
11075
|
responseStream: false,
|
|
10387
|
-
requestType:
|
|
10388
|
-
responseType:
|
|
11076
|
+
requestType: avs_pb21.ListSecretsReq,
|
|
11077
|
+
responseType: avs_pb21.ListSecretsResp,
|
|
10389
11078
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
10390
11079
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
10391
11080
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -10397,7 +11086,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10397
11086
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
10398
11087
|
requestStream: false,
|
|
10399
11088
|
responseStream: false,
|
|
10400
|
-
requestType:
|
|
11089
|
+
requestType: avs_pb21.CreateOrUpdateSecretReq,
|
|
10401
11090
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
10402
11091
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
10403
11092
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -10414,8 +11103,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10414
11103
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
10415
11104
|
requestStream: false,
|
|
10416
11105
|
responseStream: false,
|
|
10417
|
-
requestType:
|
|
10418
|
-
responseType:
|
|
11106
|
+
requestType: avs_pb21.GetWorkflowCountReq,
|
|
11107
|
+
responseType: avs_pb21.GetWorkflowCountResp,
|
|
10419
11108
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
10420
11109
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
10421
11110
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -10429,12 +11118,26 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10429
11118
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
10430
11119
|
requestStream: false,
|
|
10431
11120
|
responseStream: false,
|
|
10432
|
-
requestType:
|
|
10433
|
-
responseType:
|
|
11121
|
+
requestType: avs_pb21.GetExecutionCountReq,
|
|
11122
|
+
responseType: avs_pb21.GetExecutionCountResp,
|
|
10434
11123
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
10435
11124
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
10436
11125
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
10437
11126
|
responseDeserialize: deserialize_aggregator_GetExecutionCountResp
|
|
11127
|
+
},
|
|
11128
|
+
// GetExecutionStats returns execution statistics for a specified time period
|
|
11129
|
+
// It counts total executions, successful executions, and failed executions
|
|
11130
|
+
// If no workflow IDs are provided, it counts for all workflows of the authenticated user
|
|
11131
|
+
getExecutionStats: {
|
|
11132
|
+
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
11133
|
+
requestStream: false,
|
|
11134
|
+
responseStream: false,
|
|
11135
|
+
requestType: avs_pb21.GetExecutionStatsReq,
|
|
11136
|
+
responseType: avs_pb21.GetExecutionStatsResp,
|
|
11137
|
+
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
11138
|
+
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
11139
|
+
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
11140
|
+
responseDeserialize: deserialize_aggregator_GetExecutionStatsResp
|
|
10438
11141
|
}
|
|
10439
11142
|
};
|
|
10440
11143
|
exports2.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
@@ -10444,7 +11147,6 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10444
11147
|
// src/index.ts
|
|
10445
11148
|
var index_exports = {};
|
|
10446
11149
|
__export(index_exports, {
|
|
10447
|
-
AUTH_KEY_HEADER: () => AUTH_KEY_HEADER,
|
|
10448
11150
|
BlockTrigger: () => block_default,
|
|
10449
11151
|
BranchNode: () => branch_default,
|
|
10450
11152
|
Client: () => Client,
|
|
@@ -10453,12 +11155,10 @@ __export(index_exports, {
|
|
|
10453
11155
|
CronTrigger: () => cron_default,
|
|
10454
11156
|
CustomCodeLangs: () => CustomCodeLangs,
|
|
10455
11157
|
CustomCodeNode: () => customCode_default,
|
|
10456
|
-
DEFAULT_LIMIT: () => DEFAULT_LIMIT,
|
|
10457
11158
|
ETHTransferNode: () => ethTransfer_default,
|
|
10458
11159
|
Edge: () => edge_default,
|
|
10459
11160
|
EventTrigger: () => event_default,
|
|
10460
11161
|
Execution: () => execution_default,
|
|
10461
|
-
ExecutionStatus: () => ExecutionStatus2,
|
|
10462
11162
|
FilterNode: () => filter_default,
|
|
10463
11163
|
FixedTimeTrigger: () => fixedTime_default,
|
|
10464
11164
|
GraphQLQueryNode: () => graphqlQuery_default,
|
|
@@ -10470,20 +11170,17 @@ __export(index_exports, {
|
|
|
10470
11170
|
Trigger: () => interface_default,
|
|
10471
11171
|
TriggerFactory: () => factory_default,
|
|
10472
11172
|
TriggerReason: () => reason_default,
|
|
10473
|
-
|
|
10474
|
-
Workflow: () => workflow_default,
|
|
10475
|
-
WorkflowStatus: () => WorkflowStatus
|
|
11173
|
+
Workflow: () => workflow_default
|
|
10476
11174
|
});
|
|
10477
11175
|
module.exports = __toCommonJS(index_exports);
|
|
10478
11176
|
var import_lodash4 = __toESM(require("lodash"));
|
|
10479
11177
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
10480
11178
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
10481
|
-
var
|
|
10482
|
-
var import_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb");
|
|
11179
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
10483
11180
|
|
|
10484
11181
|
// src/models/workflow.ts
|
|
10485
11182
|
var import_lodash3 = __toESM(require("lodash"));
|
|
10486
|
-
var
|
|
11183
|
+
var avs_pb15 = __toESM(require_avs_pb());
|
|
10487
11184
|
|
|
10488
11185
|
// src/models/edge.ts
|
|
10489
11186
|
var avs_pb = __toESM(require_avs_pb());
|
|
@@ -10507,7 +11204,7 @@ var Edge = class _Edge {
|
|
|
10507
11204
|
var edge_default = Edge;
|
|
10508
11205
|
|
|
10509
11206
|
// src/models/trigger/block.ts
|
|
10510
|
-
var
|
|
11207
|
+
var avs_pb2 = __toESM(require_avs_pb());
|
|
10511
11208
|
|
|
10512
11209
|
// src/models/trigger/interface.ts
|
|
10513
11210
|
var Trigger = class {
|
|
@@ -10527,42 +11224,20 @@ var Trigger = class {
|
|
|
10527
11224
|
};
|
|
10528
11225
|
var interface_default = Trigger;
|
|
10529
11226
|
|
|
10530
|
-
// src/types.ts
|
|
10531
|
-
var avs_pb2 = __toESM(require_avs_pb());
|
|
10532
|
-
var AUTH_KEY_HEADER = "authkey";
|
|
10533
|
-
var DEFAULT_LIMIT = 10;
|
|
10534
|
-
var WorkflowStatus = /* @__PURE__ */ ((WorkflowStatus2) => {
|
|
10535
|
-
WorkflowStatus2["Active"] = "active";
|
|
10536
|
-
WorkflowStatus2["Completed"] = "completed";
|
|
10537
|
-
WorkflowStatus2["Failed"] = "failed";
|
|
10538
|
-
WorkflowStatus2["Canceled"] = "canceled";
|
|
10539
|
-
WorkflowStatus2["Executing"] = "executing";
|
|
10540
|
-
return WorkflowStatus2;
|
|
10541
|
-
})(WorkflowStatus || {});
|
|
10542
|
-
var TriggerType = /* @__PURE__ */ ((TriggerType2) => {
|
|
10543
|
-
TriggerType2["Manual"] = "manual";
|
|
10544
|
-
TriggerType2["FixedTime"] = "fixed_time";
|
|
10545
|
-
TriggerType2["Cron"] = "cron";
|
|
10546
|
-
TriggerType2["Block"] = "block";
|
|
10547
|
-
TriggerType2["Event"] = "event";
|
|
10548
|
-
TriggerType2["Unset"] = "unset";
|
|
10549
|
-
return TriggerType2;
|
|
10550
|
-
})(TriggerType || {});
|
|
10551
|
-
var ExecutionStatus2 = avs_pb2.ExecutionStatus;
|
|
10552
|
-
|
|
10553
11227
|
// src/models/trigger/block.ts
|
|
11228
|
+
var import_types = require("@avaprotocol/types");
|
|
10554
11229
|
var BlockTrigger = class _BlockTrigger extends interface_default {
|
|
10555
11230
|
constructor(props) {
|
|
10556
|
-
super({ ...props, type:
|
|
11231
|
+
super({ ...props, type: import_types.TriggerType.Block, data: props.data });
|
|
10557
11232
|
}
|
|
10558
11233
|
toRequest() {
|
|
10559
|
-
const request = new
|
|
11234
|
+
const request = new avs_pb2.TaskTrigger();
|
|
10560
11235
|
request.setName(this.name);
|
|
10561
11236
|
request.setId(this.id);
|
|
10562
11237
|
if (!this.data) {
|
|
10563
11238
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10564
11239
|
}
|
|
10565
|
-
const condition = new
|
|
11240
|
+
const condition = new avs_pb2.BlockCondition();
|
|
10566
11241
|
condition.setInterval(this.data.interval);
|
|
10567
11242
|
request.setBlock(condition);
|
|
10568
11243
|
return request;
|
|
@@ -10571,7 +11246,7 @@ var BlockTrigger = class _BlockTrigger extends interface_default {
|
|
|
10571
11246
|
const obj = raw.toObject();
|
|
10572
11247
|
return new _BlockTrigger({
|
|
10573
11248
|
...obj,
|
|
10574
|
-
type:
|
|
11249
|
+
type: import_types.TriggerType.Block,
|
|
10575
11250
|
data: raw.getBlock().toObject()
|
|
10576
11251
|
});
|
|
10577
11252
|
}
|
|
@@ -10579,19 +11254,20 @@ var BlockTrigger = class _BlockTrigger extends interface_default {
|
|
|
10579
11254
|
var block_default = BlockTrigger;
|
|
10580
11255
|
|
|
10581
11256
|
// src/models/trigger/cron.ts
|
|
10582
|
-
var
|
|
11257
|
+
var avs_pb3 = __toESM(require_avs_pb());
|
|
11258
|
+
var import_types2 = require("@avaprotocol/types");
|
|
10583
11259
|
var CronTrigger = class _CronTrigger extends interface_default {
|
|
10584
11260
|
constructor(props) {
|
|
10585
|
-
super({ ...props, type:
|
|
11261
|
+
super({ ...props, type: import_types2.TriggerType.Cron, data: props.data });
|
|
10586
11262
|
}
|
|
10587
11263
|
toRequest() {
|
|
10588
|
-
const request = new
|
|
11264
|
+
const request = new avs_pb3.TaskTrigger();
|
|
10589
11265
|
request.setName(this.name);
|
|
10590
11266
|
request.setId(this.id);
|
|
10591
11267
|
if (!this.data) {
|
|
10592
11268
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10593
11269
|
}
|
|
10594
|
-
const condition = new
|
|
11270
|
+
const condition = new avs_pb3.CronCondition();
|
|
10595
11271
|
condition.setScheduleList(this.data.scheduleList);
|
|
10596
11272
|
request.setCron(condition);
|
|
10597
11273
|
return request;
|
|
@@ -10600,7 +11276,7 @@ var CronTrigger = class _CronTrigger extends interface_default {
|
|
|
10600
11276
|
const obj = raw.toObject();
|
|
10601
11277
|
return new _CronTrigger({
|
|
10602
11278
|
...obj,
|
|
10603
|
-
type:
|
|
11279
|
+
type: import_types2.TriggerType.Cron,
|
|
10604
11280
|
data: raw.getCron().toObject()
|
|
10605
11281
|
});
|
|
10606
11282
|
}
|
|
@@ -10609,19 +11285,20 @@ var cron_default = CronTrigger;
|
|
|
10609
11285
|
|
|
10610
11286
|
// src/models/trigger/event.ts
|
|
10611
11287
|
var _ = __toESM(require("lodash"));
|
|
10612
|
-
var
|
|
11288
|
+
var avs_pb4 = __toESM(require_avs_pb());
|
|
11289
|
+
var import_types3 = require("@avaprotocol/types");
|
|
10613
11290
|
var EventTrigger = class _EventTrigger extends interface_default {
|
|
10614
11291
|
constructor(props) {
|
|
10615
|
-
super({ ...props, type:
|
|
11292
|
+
super({ ...props, type: import_types3.TriggerType.Event, data: props.data });
|
|
10616
11293
|
}
|
|
10617
11294
|
toRequest() {
|
|
10618
|
-
const request = new
|
|
11295
|
+
const request = new avs_pb4.TaskTrigger();
|
|
10619
11296
|
request.setName(this.name);
|
|
10620
11297
|
request.setId(this.id);
|
|
10621
11298
|
if (!this.data) {
|
|
10622
11299
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10623
11300
|
}
|
|
10624
|
-
const condition = new
|
|
11301
|
+
const condition = new avs_pb4.EventCondition();
|
|
10625
11302
|
const expression = this.data.expression;
|
|
10626
11303
|
const matcherList = this.data.matcherList;
|
|
10627
11304
|
if (_.isUndefined(expression)) {
|
|
@@ -10633,7 +11310,7 @@ var EventTrigger = class _EventTrigger extends interface_default {
|
|
|
10633
11310
|
}
|
|
10634
11311
|
condition.setMatcherList(
|
|
10635
11312
|
matcherList.map((element) => {
|
|
10636
|
-
const m = new
|
|
11313
|
+
const m = new avs_pb4.EventCondition.Matcher();
|
|
10637
11314
|
m.setType(element["type"]);
|
|
10638
11315
|
m.setValueList(element["valueList"]);
|
|
10639
11316
|
return m;
|
|
@@ -10658,7 +11335,7 @@ var EventTrigger = class _EventTrigger extends interface_default {
|
|
|
10658
11335
|
}
|
|
10659
11336
|
return new _EventTrigger({
|
|
10660
11337
|
...obj,
|
|
10661
|
-
type:
|
|
11338
|
+
type: import_types3.TriggerType.Event,
|
|
10662
11339
|
data
|
|
10663
11340
|
});
|
|
10664
11341
|
}
|
|
@@ -10666,19 +11343,20 @@ var EventTrigger = class _EventTrigger extends interface_default {
|
|
|
10666
11343
|
var event_default = EventTrigger;
|
|
10667
11344
|
|
|
10668
11345
|
// src/models/trigger/fixedTime.ts
|
|
10669
|
-
var
|
|
11346
|
+
var avs_pb5 = __toESM(require_avs_pb());
|
|
11347
|
+
var import_types4 = require("@avaprotocol/types");
|
|
10670
11348
|
var FixedTimeTrigger = class _FixedTimeTrigger extends interface_default {
|
|
10671
11349
|
constructor(props) {
|
|
10672
|
-
super({ ...props, type:
|
|
11350
|
+
super({ ...props, type: import_types4.TriggerType.FixedTime, data: props.data });
|
|
10673
11351
|
}
|
|
10674
11352
|
toRequest() {
|
|
10675
|
-
const request = new
|
|
11353
|
+
const request = new avs_pb5.TaskTrigger();
|
|
10676
11354
|
request.setName(this.name);
|
|
10677
11355
|
request.setId(this.id);
|
|
10678
11356
|
if (!this.data) {
|
|
10679
11357
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10680
11358
|
}
|
|
10681
|
-
const condition = new
|
|
11359
|
+
const condition = new avs_pb5.FixedTimeCondition();
|
|
10682
11360
|
condition.setEpochsList(this.data.epochsList);
|
|
10683
11361
|
request.setFixedTime(condition);
|
|
10684
11362
|
return request;
|
|
@@ -10687,7 +11365,7 @@ var FixedTimeTrigger = class _FixedTimeTrigger extends interface_default {
|
|
|
10687
11365
|
const obj = raw.toObject();
|
|
10688
11366
|
return new _FixedTimeTrigger({
|
|
10689
11367
|
...obj,
|
|
10690
|
-
type:
|
|
11368
|
+
type: import_types4.TriggerType.FixedTime,
|
|
10691
11369
|
data: raw.getFixedTime().toObject()
|
|
10692
11370
|
});
|
|
10693
11371
|
}
|
|
@@ -10695,6 +11373,7 @@ var FixedTimeTrigger = class _FixedTimeTrigger extends interface_default {
|
|
|
10695
11373
|
var fixedTime_default = FixedTimeTrigger;
|
|
10696
11374
|
|
|
10697
11375
|
// src/models/trigger/factory.ts
|
|
11376
|
+
var import_types5 = require("@avaprotocol/types");
|
|
10698
11377
|
var TriggerFactory = class {
|
|
10699
11378
|
/**
|
|
10700
11379
|
* Static factory method to create Trigger instances
|
|
@@ -10703,13 +11382,13 @@ var TriggerFactory = class {
|
|
|
10703
11382
|
*/
|
|
10704
11383
|
static create(props) {
|
|
10705
11384
|
switch (props.type) {
|
|
10706
|
-
case
|
|
11385
|
+
case import_types5.TriggerType.Block:
|
|
10707
11386
|
return new block_default(props);
|
|
10708
|
-
case
|
|
11387
|
+
case import_types5.TriggerType.Cron:
|
|
10709
11388
|
return new cron_default(props);
|
|
10710
|
-
case
|
|
11389
|
+
case import_types5.TriggerType.Event:
|
|
10711
11390
|
return new event_default(props);
|
|
10712
|
-
case
|
|
11391
|
+
case import_types5.TriggerType.FixedTime:
|
|
10713
11392
|
return new fixedTime_default(props);
|
|
10714
11393
|
}
|
|
10715
11394
|
throw new Error("Unsupported trigger type");
|
|
@@ -10740,7 +11419,7 @@ var factory_default = TriggerFactory;
|
|
|
10740
11419
|
var import_lodash2 = __toESM(require("lodash"));
|
|
10741
11420
|
|
|
10742
11421
|
// src/models/node/interface.ts
|
|
10743
|
-
var
|
|
11422
|
+
var avs_pb6 = __toESM(require_avs_pb());
|
|
10744
11423
|
var import_types6 = require("@avaprotocol/types");
|
|
10745
11424
|
var import_lodash = __toESM(require("lodash"));
|
|
10746
11425
|
var Node = class {
|
|
@@ -10751,9 +11430,9 @@ var Node = class {
|
|
|
10751
11430
|
this.data = props.data;
|
|
10752
11431
|
}
|
|
10753
11432
|
toRequest() {
|
|
10754
|
-
const request = new
|
|
11433
|
+
const request = new avs_pb6.TaskNode();
|
|
10755
11434
|
const raw = request.serializeBinary();
|
|
10756
|
-
const parsed =
|
|
11435
|
+
const parsed = avs_pb6.TaskNode.deserializeBinary(raw);
|
|
10757
11436
|
if (!import_lodash.default.isEqual(request, parsed)) {
|
|
10758
11437
|
throw new Error("Invalid request object");
|
|
10759
11438
|
}
|
|
@@ -10763,7 +11442,7 @@ var Node = class {
|
|
|
10763
11442
|
var interface_default2 = Node;
|
|
10764
11443
|
|
|
10765
11444
|
// src/models/node/contractWrite.ts
|
|
10766
|
-
var
|
|
11445
|
+
var avs_pb7 = __toESM(require_avs_pb());
|
|
10767
11446
|
var import_types7 = require("@avaprotocol/types");
|
|
10768
11447
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
10769
11448
|
constructor(props) {
|
|
@@ -10778,10 +11457,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
10778
11457
|
});
|
|
10779
11458
|
}
|
|
10780
11459
|
toRequest() {
|
|
10781
|
-
const request = new
|
|
11460
|
+
const request = new avs_pb7.TaskNode();
|
|
10782
11461
|
request.setId(this.id);
|
|
10783
11462
|
request.setName(this.name);
|
|
10784
|
-
const nodeData = new
|
|
11463
|
+
const nodeData = new avs_pb7.ContractWriteNode();
|
|
10785
11464
|
nodeData.setContractAddress(
|
|
10786
11465
|
this.data.contractAddress
|
|
10787
11466
|
);
|
|
@@ -10794,9 +11473,9 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
10794
11473
|
var contractWrite_default = ContractWriteNode2;
|
|
10795
11474
|
|
|
10796
11475
|
// src/models/node/customCode.ts
|
|
10797
|
-
var
|
|
11476
|
+
var avs_pb8 = __toESM(require_avs_pb());
|
|
10798
11477
|
var import_types8 = require("@avaprotocol/types");
|
|
10799
|
-
var CustomCodeLangs =
|
|
11478
|
+
var CustomCodeLangs = avs_pb8.CustomCodeLang;
|
|
10800
11479
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
10801
11480
|
constructor(props) {
|
|
10802
11481
|
super({ ...props, type: import_types8.NodeType.CustomCode, data: props.data });
|
|
@@ -10810,10 +11489,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
10810
11489
|
});
|
|
10811
11490
|
}
|
|
10812
11491
|
toRequest() {
|
|
10813
|
-
const request = new
|
|
11492
|
+
const request = new avs_pb8.TaskNode();
|
|
10814
11493
|
request.setId(this.id);
|
|
10815
11494
|
request.setName(this.name);
|
|
10816
|
-
const nodeData = new
|
|
11495
|
+
const nodeData = new avs_pb8.CustomCodeNode();
|
|
10817
11496
|
nodeData.setLang(this.data.lang);
|
|
10818
11497
|
nodeData.setSource(this.data.source);
|
|
10819
11498
|
request.setCustomCode(nodeData);
|
|
@@ -10823,7 +11502,7 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
10823
11502
|
var customCode_default = CustomCodeNode2;
|
|
10824
11503
|
|
|
10825
11504
|
// src/models/node/graphqlQuery.ts
|
|
10826
|
-
var
|
|
11505
|
+
var avs_pb9 = __toESM(require_avs_pb());
|
|
10827
11506
|
var import_types9 = require("@avaprotocol/types");
|
|
10828
11507
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
10829
11508
|
constructor(props) {
|
|
@@ -10842,10 +11521,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
10842
11521
|
});
|
|
10843
11522
|
}
|
|
10844
11523
|
toRequest() {
|
|
10845
|
-
const request = new
|
|
11524
|
+
const request = new avs_pb9.TaskNode();
|
|
10846
11525
|
request.setId(this.id);
|
|
10847
11526
|
request.setName(this.name);
|
|
10848
|
-
const nodeData = new
|
|
11527
|
+
const nodeData = new avs_pb9.GraphQLQueryNode();
|
|
10849
11528
|
nodeData.setUrl(this.data.url);
|
|
10850
11529
|
nodeData.setQuery(this.data.query);
|
|
10851
11530
|
const variables = this.data.variablesMap;
|
|
@@ -10860,7 +11539,7 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
10860
11539
|
var graphqlQuery_default = GraphQLQueryNode2;
|
|
10861
11540
|
|
|
10862
11541
|
// src/models/node/restApi.ts
|
|
10863
|
-
var
|
|
11542
|
+
var avs_pb10 = __toESM(require_avs_pb());
|
|
10864
11543
|
var import_types10 = require("@avaprotocol/types");
|
|
10865
11544
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
10866
11545
|
constructor(props) {
|
|
@@ -10875,10 +11554,10 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
10875
11554
|
});
|
|
10876
11555
|
}
|
|
10877
11556
|
toRequest() {
|
|
10878
|
-
const request = new
|
|
11557
|
+
const request = new avs_pb10.TaskNode();
|
|
10879
11558
|
request.setId(this.id);
|
|
10880
11559
|
request.setName(this.name);
|
|
10881
|
-
const nodeData = new
|
|
11560
|
+
const nodeData = new avs_pb10.RestAPINode();
|
|
10882
11561
|
nodeData.setUrl(this.data.url);
|
|
10883
11562
|
nodeData.setMethod(this.data.method);
|
|
10884
11563
|
nodeData.setBody(this.data.body);
|
|
@@ -10894,7 +11573,7 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
10894
11573
|
var restApi_default = RestAPINode2;
|
|
10895
11574
|
|
|
10896
11575
|
// src/models/node/contractRead.ts
|
|
10897
|
-
var
|
|
11576
|
+
var avs_pb11 = __toESM(require_avs_pb());
|
|
10898
11577
|
var import_types11 = require("@avaprotocol/types");
|
|
10899
11578
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
10900
11579
|
constructor(props) {
|
|
@@ -10909,10 +11588,10 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
10909
11588
|
});
|
|
10910
11589
|
}
|
|
10911
11590
|
toRequest() {
|
|
10912
|
-
const request = new
|
|
11591
|
+
const request = new avs_pb11.TaskNode();
|
|
10913
11592
|
request.setId(this.id);
|
|
10914
11593
|
request.setName(this.name);
|
|
10915
|
-
const nodeData = new
|
|
11594
|
+
const nodeData = new avs_pb11.ContractReadNode();
|
|
10916
11595
|
nodeData.setContractAddress(
|
|
10917
11596
|
this.data.contractAddress
|
|
10918
11597
|
);
|
|
@@ -10925,7 +11604,7 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
10925
11604
|
var contractRead_default = ContractReadNode2;
|
|
10926
11605
|
|
|
10927
11606
|
// src/models/node/ethTransfer.ts
|
|
10928
|
-
var
|
|
11607
|
+
var avs_pb12 = __toESM(require_avs_pb());
|
|
10929
11608
|
var import_types12 = require("@avaprotocol/types");
|
|
10930
11609
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
10931
11610
|
constructor(props) {
|
|
@@ -10940,10 +11619,10 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
10940
11619
|
});
|
|
10941
11620
|
}
|
|
10942
11621
|
toRequest() {
|
|
10943
|
-
const request = new
|
|
11622
|
+
const request = new avs_pb12.TaskNode();
|
|
10944
11623
|
request.setId(this.id);
|
|
10945
11624
|
request.setName(this.name);
|
|
10946
|
-
const nodeData = new
|
|
11625
|
+
const nodeData = new avs_pb12.ETHTransferNode();
|
|
10947
11626
|
nodeData.setDestination(this.data.destination);
|
|
10948
11627
|
nodeData.setAmount(this.data.amount);
|
|
10949
11628
|
request.setEthTransfer(nodeData);
|
|
@@ -10954,7 +11633,7 @@ var ethTransfer_default = ETHTransferNode2;
|
|
|
10954
11633
|
|
|
10955
11634
|
// src/models/node/branch.ts
|
|
10956
11635
|
var import_types13 = require("@avaprotocol/types");
|
|
10957
|
-
var
|
|
11636
|
+
var avs_pb13 = __toESM(require_avs_pb());
|
|
10958
11637
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
10959
11638
|
constructor(props) {
|
|
10960
11639
|
super({ ...props, type: import_types13.NodeType.Branch, data: props.data });
|
|
@@ -10968,13 +11647,13 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
10968
11647
|
});
|
|
10969
11648
|
}
|
|
10970
11649
|
toRequest() {
|
|
10971
|
-
const request = new
|
|
11650
|
+
const request = new avs_pb13.TaskNode();
|
|
10972
11651
|
request.setId(this.id);
|
|
10973
11652
|
request.setName(this.name);
|
|
10974
|
-
const nodeData = new
|
|
11653
|
+
const nodeData = new avs_pb13.BranchNode();
|
|
10975
11654
|
nodeData.setConditionsList(
|
|
10976
11655
|
this.data.conditionsList.map((condition) => {
|
|
10977
|
-
const conditionObj = new
|
|
11656
|
+
const conditionObj = new avs_pb13.Condition();
|
|
10978
11657
|
conditionObj.setId(condition.id);
|
|
10979
11658
|
conditionObj.setType(condition.type);
|
|
10980
11659
|
conditionObj.setExpression(condition.expression);
|
|
@@ -10989,7 +11668,7 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
10989
11668
|
var branch_default = BranchNode2;
|
|
10990
11669
|
|
|
10991
11670
|
// src/models/node/filter.ts
|
|
10992
|
-
var
|
|
11671
|
+
var avs_pb14 = __toESM(require_avs_pb());
|
|
10993
11672
|
var import_types14 = require("@avaprotocol/types");
|
|
10994
11673
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
10995
11674
|
constructor(props) {
|
|
@@ -11004,10 +11683,10 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
11004
11683
|
});
|
|
11005
11684
|
}
|
|
11006
11685
|
toRequest() {
|
|
11007
|
-
const request = new
|
|
11686
|
+
const request = new avs_pb14.TaskNode();
|
|
11008
11687
|
request.setId(this.id);
|
|
11009
11688
|
request.setName(this.name);
|
|
11010
|
-
const nodeData = new
|
|
11689
|
+
const nodeData = new avs_pb14.FilterNode();
|
|
11011
11690
|
nodeData.setExpression(this.data.expression);
|
|
11012
11691
|
nodeData.setInput(this.data.input);
|
|
11013
11692
|
request.setFilter(nodeData);
|
|
@@ -11074,13 +11753,14 @@ var NodeFactory = class {
|
|
|
11074
11753
|
var factory_default2 = NodeFactory;
|
|
11075
11754
|
|
|
11076
11755
|
// src/models/workflow.ts
|
|
11756
|
+
var import_types16 = require("@avaprotocol/types");
|
|
11077
11757
|
function convertStatusToString(status) {
|
|
11078
11758
|
const conversionMap = {
|
|
11079
|
-
[
|
|
11080
|
-
[
|
|
11081
|
-
[
|
|
11082
|
-
[
|
|
11083
|
-
[
|
|
11759
|
+
[avs_pb15.TaskStatus.ACTIVE]: import_types16.WorkflowStatus.Active,
|
|
11760
|
+
[avs_pb15.TaskStatus.COMPLETED]: import_types16.WorkflowStatus.Completed,
|
|
11761
|
+
[avs_pb15.TaskStatus.FAILED]: import_types16.WorkflowStatus.Failed,
|
|
11762
|
+
[avs_pb15.TaskStatus.CANCELED]: import_types16.WorkflowStatus.Canceled,
|
|
11763
|
+
[avs_pb15.TaskStatus.EXECUTING]: import_types16.WorkflowStatus.Executing
|
|
11084
11764
|
};
|
|
11085
11765
|
return conversionMap[status];
|
|
11086
11766
|
}
|
|
@@ -11100,12 +11780,12 @@ var Workflow = class _Workflow {
|
|
|
11100
11780
|
this.startAt = props.startAt;
|
|
11101
11781
|
this.expiredAt = props.expiredAt;
|
|
11102
11782
|
this.maxExecution = props.maxExecution;
|
|
11783
|
+
this.executionCount = props.executionCount;
|
|
11103
11784
|
this.id = props.id;
|
|
11104
11785
|
this.owner = props.owner;
|
|
11105
11786
|
this.name = props.name;
|
|
11106
11787
|
this.status = props.status;
|
|
11107
11788
|
this.completedAt = props.completedAt;
|
|
11108
|
-
this.totalExecution = props.totalExecution;
|
|
11109
11789
|
this.lastRanAt = props.lastRanAt;
|
|
11110
11790
|
}
|
|
11111
11791
|
/**
|
|
@@ -11133,10 +11813,10 @@ var Workflow = class _Workflow {
|
|
|
11133
11813
|
startAt: obj.getStartAt(),
|
|
11134
11814
|
expiredAt: obj.getExpiredAt(),
|
|
11135
11815
|
maxExecution: obj.getMaxExecution(),
|
|
11816
|
+
executionCount: obj.getExecutionCount(),
|
|
11136
11817
|
name: obj.getName(),
|
|
11137
11818
|
status: convertStatusToString(obj.getStatus()),
|
|
11138
11819
|
completedAt: obj.getCompletedAt(),
|
|
11139
|
-
totalExecution: obj.getTotalExecution(),
|
|
11140
11820
|
lastRanAt: obj.getLastRanAt()
|
|
11141
11821
|
});
|
|
11142
11822
|
return workflow;
|
|
@@ -11150,6 +11830,7 @@ var Workflow = class _Workflow {
|
|
|
11150
11830
|
if (!trigger) {
|
|
11151
11831
|
throw new Error("Trigger is undefined in fromListResponse()");
|
|
11152
11832
|
}
|
|
11833
|
+
const executionCount = obj.getExecutionCount ? obj.getExecutionCount() : obj.executionCount;
|
|
11153
11834
|
return new _Workflow({
|
|
11154
11835
|
id: obj.getId(),
|
|
11155
11836
|
owner: obj.getOwner(),
|
|
@@ -11158,17 +11839,17 @@ var Workflow = class _Workflow {
|
|
|
11158
11839
|
startAt: obj.getStartAt(),
|
|
11159
11840
|
expiredAt: obj.getExpiredAt(),
|
|
11160
11841
|
maxExecution: obj.getMaxExecution(),
|
|
11842
|
+
executionCount,
|
|
11161
11843
|
nodes: [],
|
|
11162
11844
|
edges: [],
|
|
11163
11845
|
completedAt: obj.getCompletedAt(),
|
|
11164
11846
|
status: convertStatusToString(obj.getStatus()),
|
|
11165
11847
|
name: obj.getName(),
|
|
11166
|
-
totalExecution: obj.getTotalExecution(),
|
|
11167
11848
|
lastRanAt: obj.getLastRanAt()
|
|
11168
11849
|
});
|
|
11169
11850
|
}
|
|
11170
11851
|
toRequest() {
|
|
11171
|
-
const request = new
|
|
11852
|
+
const request = new avs_pb15.CreateTaskReq();
|
|
11172
11853
|
request.setSmartWalletAddress(this.smartWalletAddress);
|
|
11173
11854
|
request.setTrigger(this.trigger.toRequest());
|
|
11174
11855
|
import_lodash3.default.map(this.nodes, (node) => request.addNodes(node.toRequest()));
|
|
@@ -11185,18 +11866,19 @@ var Workflow = class _Workflow {
|
|
|
11185
11866
|
var workflow_default = Workflow;
|
|
11186
11867
|
|
|
11187
11868
|
// src/models/execution.ts
|
|
11188
|
-
var
|
|
11869
|
+
var avs_pb18 = __toESM(require_avs_pb());
|
|
11189
11870
|
|
|
11190
11871
|
// src/models/trigger/reason.ts
|
|
11191
|
-
var
|
|
11872
|
+
var avs_pb16 = __toESM(require_avs_pb());
|
|
11873
|
+
var import_types17 = require("@avaprotocol/types");
|
|
11192
11874
|
var convertTriggerType = (grpcType) => {
|
|
11193
11875
|
const conversionMap = {
|
|
11194
|
-
[
|
|
11195
|
-
[
|
|
11196
|
-
[
|
|
11197
|
-
[
|
|
11198
|
-
[
|
|
11199
|
-
[
|
|
11876
|
+
[avs_pb16.TriggerReason.TriggerType.FIXEDTIME]: import_types17.TriggerType.FixedTime,
|
|
11877
|
+
[avs_pb16.TriggerReason.TriggerType.CRON]: import_types17.TriggerType.Cron,
|
|
11878
|
+
[avs_pb16.TriggerReason.TriggerType.BLOCK]: import_types17.TriggerType.Block,
|
|
11879
|
+
[avs_pb16.TriggerReason.TriggerType.EVENT]: import_types17.TriggerType.Event,
|
|
11880
|
+
[avs_pb16.TriggerReason.TriggerType.MANUAL]: import_types17.TriggerType.Manual,
|
|
11881
|
+
[avs_pb16.TriggerReason.TriggerType.UNSET]: import_types17.TriggerType.Unset
|
|
11200
11882
|
};
|
|
11201
11883
|
return conversionMap[grpcType];
|
|
11202
11884
|
};
|
|
@@ -11204,14 +11886,14 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11204
11886
|
constructor(props) {
|
|
11205
11887
|
this.type = props.type;
|
|
11206
11888
|
switch (props.type) {
|
|
11207
|
-
case
|
|
11208
|
-
case
|
|
11889
|
+
case import_types17.TriggerType.FixedTime:
|
|
11890
|
+
case import_types17.TriggerType.Cron:
|
|
11209
11891
|
this.epoch = props.epoch;
|
|
11210
11892
|
break;
|
|
11211
|
-
case
|
|
11893
|
+
case import_types17.TriggerType.Block:
|
|
11212
11894
|
this.blockNumber = props.blockNumber;
|
|
11213
11895
|
break;
|
|
11214
|
-
case
|
|
11896
|
+
case import_types17.TriggerType.Event:
|
|
11215
11897
|
this.blockNumber = props.blockNumber;
|
|
11216
11898
|
this.logIndex = props.logIndex;
|
|
11217
11899
|
this.txHash = props.txHash;
|
|
@@ -11233,28 +11915,28 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11233
11915
|
});
|
|
11234
11916
|
}
|
|
11235
11917
|
toRequest() {
|
|
11236
|
-
const request = new
|
|
11918
|
+
const request = new avs_pb16.TriggerReason();
|
|
11237
11919
|
switch (this.type) {
|
|
11238
|
-
case
|
|
11239
|
-
request.setType(
|
|
11920
|
+
case import_types17.TriggerType.FixedTime:
|
|
11921
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.FIXEDTIME);
|
|
11240
11922
|
if (this.epoch) {
|
|
11241
11923
|
request.setEpoch(this.epoch);
|
|
11242
11924
|
}
|
|
11243
11925
|
break;
|
|
11244
|
-
case
|
|
11245
|
-
request.setType(
|
|
11926
|
+
case import_types17.TriggerType.Cron:
|
|
11927
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.CRON);
|
|
11246
11928
|
if (this.epoch) {
|
|
11247
11929
|
request.setEpoch(this.epoch);
|
|
11248
11930
|
}
|
|
11249
11931
|
break;
|
|
11250
|
-
case
|
|
11251
|
-
request.setType(
|
|
11932
|
+
case import_types17.TriggerType.Block:
|
|
11933
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.BLOCK);
|
|
11252
11934
|
if (this.blockNumber) {
|
|
11253
11935
|
request.setBlockNumber(this.blockNumber);
|
|
11254
11936
|
}
|
|
11255
11937
|
break;
|
|
11256
|
-
case
|
|
11257
|
-
request.setType(
|
|
11938
|
+
case import_types17.TriggerType.Event:
|
|
11939
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.EVENT);
|
|
11258
11940
|
if (this.blockNumber) {
|
|
11259
11941
|
request.setBlockNumber(this.blockNumber);
|
|
11260
11942
|
}
|
|
@@ -11265,11 +11947,11 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11265
11947
|
request.setTxHash(this.txHash);
|
|
11266
11948
|
}
|
|
11267
11949
|
break;
|
|
11268
|
-
case
|
|
11269
|
-
request.setType(
|
|
11950
|
+
case import_types17.TriggerType.Manual:
|
|
11951
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.MANUAL);
|
|
11270
11952
|
break;
|
|
11271
|
-
case
|
|
11272
|
-
request.setType(
|
|
11953
|
+
case import_types17.TriggerType.Unset:
|
|
11954
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.UNSET);
|
|
11273
11955
|
break;
|
|
11274
11956
|
default:
|
|
11275
11957
|
throw new Error("Unsupported trigger type");
|
|
@@ -11280,8 +11962,47 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11280
11962
|
var reason_default = TriggerReason2;
|
|
11281
11963
|
|
|
11282
11964
|
// src/models/step.ts
|
|
11283
|
-
var
|
|
11965
|
+
var avs_pb17 = __toESM(require_avs_pb());
|
|
11966
|
+
|
|
11967
|
+
// src/utils.ts
|
|
11968
|
+
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
11969
|
+
function convertProtobufValueToJs(value) {
|
|
11970
|
+
if (!value) {
|
|
11971
|
+
return void 0;
|
|
11972
|
+
}
|
|
11973
|
+
switch (value.getKindCase()) {
|
|
11974
|
+
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
11975
|
+
return null;
|
|
11976
|
+
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
11977
|
+
return value.getNumberValue();
|
|
11978
|
+
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
11979
|
+
return value.getStringValue();
|
|
11980
|
+
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
11981
|
+
return value.getBoolValue();
|
|
11982
|
+
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
11983
|
+
const struct = value.getStructValue();
|
|
11984
|
+
if (!struct) return {};
|
|
11985
|
+
const jsObj = {};
|
|
11986
|
+
const fields = struct.getFieldsMap();
|
|
11987
|
+
fields.forEach((val, key) => {
|
|
11988
|
+
jsObj[key] = convertProtobufValueToJs(val);
|
|
11989
|
+
});
|
|
11990
|
+
return jsObj;
|
|
11991
|
+
}
|
|
11992
|
+
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
11993
|
+
const list = value.getListValue();
|
|
11994
|
+
if (!list) return [];
|
|
11995
|
+
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
11996
|
+
}
|
|
11997
|
+
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
11998
|
+
default:
|
|
11999
|
+
return void 0;
|
|
12000
|
+
}
|
|
12001
|
+
}
|
|
12002
|
+
|
|
12003
|
+
// src/models/step.ts
|
|
11284
12004
|
var Step = class _Step {
|
|
12005
|
+
// Changed to any
|
|
11285
12006
|
constructor(props) {
|
|
11286
12007
|
this.nodeId = props.nodeId;
|
|
11287
12008
|
this.success = props.success;
|
|
@@ -11293,30 +12014,46 @@ var Step = class _Step {
|
|
|
11293
12014
|
this.output = props.output;
|
|
11294
12015
|
}
|
|
11295
12016
|
static getOutput(step) {
|
|
11296
|
-
console.log("step.getOutput", step.toObject());
|
|
11297
12017
|
const outputDataType = step.getOutputDataCase();
|
|
11298
|
-
|
|
12018
|
+
let nodeOutputMessage;
|
|
11299
12019
|
switch (outputDataType) {
|
|
11300
|
-
case
|
|
12020
|
+
case avs_pb17.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
12021
|
+
return null;
|
|
12022
|
+
case avs_pb17.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
11301
12023
|
return step.getEthTransfer()?.toObject();
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
return
|
|
11306
|
-
case
|
|
12024
|
+
// Specific structure, not google.protobuf.Value
|
|
12025
|
+
case avs_pb17.Execution.Step.OutputDataCase.GRAPHQL:
|
|
12026
|
+
nodeOutputMessage = step.getGraphql();
|
|
12027
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
12028
|
+
case avs_pb17.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
12029
|
+
nodeOutputMessage = step.getContractRead();
|
|
12030
|
+
if (nodeOutputMessage) {
|
|
12031
|
+
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
12032
|
+
}
|
|
12033
|
+
return [];
|
|
12034
|
+
// Default to empty array if no data
|
|
12035
|
+
case avs_pb17.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
11307
12036
|
return step.getContractWrite()?.toObject();
|
|
11308
|
-
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
return
|
|
11312
|
-
case
|
|
12037
|
+
// Specific structure
|
|
12038
|
+
case avs_pb17.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
12039
|
+
nodeOutputMessage = step.getCustomCode();
|
|
12040
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
12041
|
+
case avs_pb17.Execution.Step.OutputDataCase.REST_API:
|
|
12042
|
+
nodeOutputMessage = step.getRestApi();
|
|
12043
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
12044
|
+
case avs_pb17.Execution.Step.OutputDataCase.BRANCH:
|
|
11313
12045
|
return step.getBranch()?.toObject();
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
return
|
|
12046
|
+
// Specific structure
|
|
12047
|
+
case avs_pb17.Execution.Step.OutputDataCase.FILTER:
|
|
12048
|
+
nodeOutputMessage = step.getFilter();
|
|
12049
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
12050
|
+
case avs_pb17.Execution.Step.OutputDataCase.LOOP:
|
|
12051
|
+
return step.getLoop()?.getData();
|
|
11318
12052
|
default:
|
|
11319
|
-
|
|
12053
|
+
console.warn(
|
|
12054
|
+
`Unhandled output data type in Step.getOutput: ${outputDataType}`
|
|
12055
|
+
);
|
|
12056
|
+
return void 0;
|
|
11320
12057
|
}
|
|
11321
12058
|
}
|
|
11322
12059
|
static fromResponse(step) {
|
|
@@ -11329,10 +12066,9 @@ var Step = class _Step {
|
|
|
11329
12066
|
endAt: step.getEndAt(),
|
|
11330
12067
|
inputsList: step.getInputsList(),
|
|
11331
12068
|
output: _Step.getOutput(step)
|
|
11332
|
-
// static function of this class for switch conversion
|
|
11333
12069
|
});
|
|
11334
12070
|
}
|
|
11335
|
-
// Client side does not generate the step, so there
|
|
12071
|
+
// Client side does not generate the step, so there's no toRequest() method
|
|
11336
12072
|
};
|
|
11337
12073
|
var step_default = Step;
|
|
11338
12074
|
|
|
@@ -11351,20 +12087,18 @@ var Execution3 = class _Execution {
|
|
|
11351
12087
|
}
|
|
11352
12088
|
static fromResponse(execution) {
|
|
11353
12089
|
const triggerOutputDataType = execution.getOutputDataCase();
|
|
11354
|
-
console.log("execution.triggerOutputDataType", execution.toObject());
|
|
11355
|
-
console.log("execution.triggerOutputDataType", triggerOutputDataType);
|
|
11356
12090
|
let triggerOutputData;
|
|
11357
12091
|
switch (triggerOutputDataType) {
|
|
11358
|
-
case
|
|
12092
|
+
case avs_pb18.Execution.OutputDataCase.EVM_LOG:
|
|
11359
12093
|
triggerOutputData = execution.getEvmLog()?.toObject();
|
|
11360
12094
|
break;
|
|
11361
|
-
case
|
|
12095
|
+
case avs_pb18.Execution.OutputDataCase.TRANSFER_LOG:
|
|
11362
12096
|
triggerOutputData = execution.getTransferLog()?.toObject();
|
|
11363
12097
|
break;
|
|
11364
|
-
case
|
|
12098
|
+
case avs_pb18.Execution.OutputDataCase.BLOCK:
|
|
11365
12099
|
triggerOutputData = execution.getBlock()?.toObject();
|
|
11366
12100
|
break;
|
|
11367
|
-
case
|
|
12101
|
+
case avs_pb18.Execution.OutputDataCase.TIME:
|
|
11368
12102
|
triggerOutputData = execution.getTime()?.toObject();
|
|
11369
12103
|
break;
|
|
11370
12104
|
}
|
|
@@ -11385,7 +12119,7 @@ var Execution3 = class _Execution {
|
|
|
11385
12119
|
var execution_default = Execution3;
|
|
11386
12120
|
|
|
11387
12121
|
// src/models/secret.ts
|
|
11388
|
-
var
|
|
12122
|
+
var avs_pb19 = __toESM(require_avs_pb());
|
|
11389
12123
|
var Secret = class {
|
|
11390
12124
|
constructor(props) {
|
|
11391
12125
|
this.name = props.name;
|
|
@@ -11394,7 +12128,7 @@ var Secret = class {
|
|
|
11394
12128
|
this.orgId = props.orgId;
|
|
11395
12129
|
}
|
|
11396
12130
|
toRequest() {
|
|
11397
|
-
const request = new
|
|
12131
|
+
const request = new avs_pb19.CreateOrUpdateSecretReq();
|
|
11398
12132
|
request.setName(this.name);
|
|
11399
12133
|
request.setSecret(this.secret);
|
|
11400
12134
|
if (this.orgId) {
|
|
@@ -11409,6 +12143,7 @@ var Secret = class {
|
|
|
11409
12143
|
var secret_default = Secret;
|
|
11410
12144
|
|
|
11411
12145
|
// src/index.ts
|
|
12146
|
+
var import_types18 = require("@avaprotocol/types");
|
|
11412
12147
|
var BaseClient = class {
|
|
11413
12148
|
constructor(opts) {
|
|
11414
12149
|
this.endpoint = opts.endpoint;
|
|
@@ -11435,56 +12170,45 @@ var BaseClient = class {
|
|
|
11435
12170
|
return false;
|
|
11436
12171
|
}
|
|
11437
12172
|
}
|
|
12173
|
+
/**
|
|
12174
|
+
* Get the signature format from the server
|
|
12175
|
+
* @param wallet - The wallet address
|
|
12176
|
+
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
12177
|
+
*/
|
|
12178
|
+
async getSignatureFormat(wallet) {
|
|
12179
|
+
const request = new avs_pb20.GetSignatureFormatReq();
|
|
12180
|
+
request.setWallet(wallet);
|
|
12181
|
+
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
12182
|
+
return { message: result.getMessage() };
|
|
12183
|
+
}
|
|
11438
12184
|
/**
|
|
11439
12185
|
* The API key could retrieve a wallet's authKey by skipping its signature verification
|
|
11440
|
-
* @param
|
|
11441
|
-
* @param
|
|
11442
|
-
* @param issuedAt - The issued at timestamp
|
|
11443
|
-
* @param expiredAt - The expiration timestamp
|
|
11444
|
-
* @param apiKey - The API key
|
|
12186
|
+
* @param message - The message to sign, obtained from getSignatureFormat
|
|
12187
|
+
* @param apiKey - The API key used instead of a signature
|
|
11445
12188
|
* @returns {Promise<GetKeyResponse>} - The response from the auth call
|
|
11446
12189
|
*/
|
|
11447
12190
|
async authWithAPIKey({
|
|
11448
|
-
|
|
11449
|
-
address,
|
|
11450
|
-
issuedAt,
|
|
11451
|
-
expiredAt,
|
|
12191
|
+
message,
|
|
11452
12192
|
apiKey
|
|
11453
12193
|
}) {
|
|
11454
|
-
const request = new
|
|
11455
|
-
request.
|
|
11456
|
-
request.setOwner(address);
|
|
11457
|
-
const issueTs = import_timestamp_pb.Timestamp.fromDate(issuedAt);
|
|
11458
|
-
const expiredTs = import_timestamp_pb.Timestamp.fromDate(expiredAt);
|
|
11459
|
-
request.setIssuedAt(issueTs);
|
|
11460
|
-
request.setExpiredAt(expiredTs);
|
|
12194
|
+
const request = new avs_pb20.GetKeyReq();
|
|
12195
|
+
request.setMessage(message);
|
|
11461
12196
|
request.setSignature(apiKey);
|
|
11462
12197
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
11463
12198
|
return { authKey: result.getKey() };
|
|
11464
12199
|
}
|
|
11465
12200
|
/**
|
|
11466
12201
|
* Getting an authKey from the server by verifying the signature of an EOA wallet
|
|
11467
|
-
* @param
|
|
11468
|
-
* @param
|
|
11469
|
-
* @param issuedAt - The issued at timestamp
|
|
11470
|
-
* @param expiredAt - The expiration timestamp
|
|
11471
|
-
* @param signature - The signature of the EOA wallet
|
|
12202
|
+
* @param message - The message to sign, obtained from getSignatureFormat
|
|
12203
|
+
* @param signature - The signature of the message
|
|
11472
12204
|
* @returns {Promise<GetKeyResponse>} - The response from the auth call
|
|
11473
12205
|
*/
|
|
11474
12206
|
async authWithSignature({
|
|
11475
|
-
|
|
11476
|
-
address,
|
|
11477
|
-
issuedAt,
|
|
11478
|
-
expiredAt,
|
|
12207
|
+
message,
|
|
11479
12208
|
signature
|
|
11480
12209
|
}) {
|
|
11481
|
-
const request = new
|
|
11482
|
-
request.
|
|
11483
|
-
request.setOwner(address);
|
|
11484
|
-
const issueTs = import_timestamp_pb.Timestamp.fromDate(issuedAt);
|
|
11485
|
-
const expiredTs = import_timestamp_pb.Timestamp.fromDate(expiredAt);
|
|
11486
|
-
request.setIssuedAt(issueTs);
|
|
11487
|
-
request.setExpiredAt(expiredTs);
|
|
12210
|
+
const request = new avs_pb20.GetKeyReq();
|
|
12211
|
+
request.setMessage(message);
|
|
11488
12212
|
request.setSignature(signature);
|
|
11489
12213
|
const result = await this.sendGrpcRequest(
|
|
11490
12214
|
"getKey",
|
|
@@ -11531,9 +12255,9 @@ var BaseClient = class {
|
|
|
11531
12255
|
sendGrpcRequest(method, request, options) {
|
|
11532
12256
|
const metadata = import_lodash4.default.cloneDeep(this.metadata);
|
|
11533
12257
|
if (options?.authKey) {
|
|
11534
|
-
metadata.set(AUTH_KEY_HEADER, options.authKey);
|
|
12258
|
+
metadata.set(import_types18.AUTH_KEY_HEADER, options.authKey);
|
|
11535
12259
|
} else if (this.authKey) {
|
|
11536
|
-
metadata.set(AUTH_KEY_HEADER, this.authKey);
|
|
12260
|
+
metadata.set(import_types18.AUTH_KEY_HEADER, this.authKey);
|
|
11537
12261
|
}
|
|
11538
12262
|
return new Promise((resolve, reject) => {
|
|
11539
12263
|
this.rpcClient[method].bind(this.rpcClient)(
|
|
@@ -11557,7 +12281,7 @@ var Client = class extends BaseClient {
|
|
|
11557
12281
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
11558
12282
|
*/
|
|
11559
12283
|
async getWallets(options) {
|
|
11560
|
-
const request = new
|
|
12284
|
+
const request = new avs_pb20.ListWalletReq();
|
|
11561
12285
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
11562
12286
|
return result.getItemsList().map((item) => item.toObject());
|
|
11563
12287
|
}
|
|
@@ -11569,7 +12293,7 @@ var Client = class extends BaseClient {
|
|
|
11569
12293
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
11570
12294
|
*/
|
|
11571
12295
|
async getWallet({ salt, factoryAddress }, options) {
|
|
11572
|
-
const request = new
|
|
12296
|
+
const request = new avs_pb20.GetWalletReq();
|
|
11573
12297
|
request.setSalt(salt);
|
|
11574
12298
|
if (factoryAddress) {
|
|
11575
12299
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -11581,6 +12305,37 @@ var Client = class extends BaseClient {
|
|
|
11581
12305
|
address: result.getAddress(),
|
|
11582
12306
|
salt: result.getSalt(),
|
|
11583
12307
|
factory: result.getFactoryAddress(),
|
|
12308
|
+
isHidden: result.getIsHidden(),
|
|
12309
|
+
totalTaskCount: result.getTotalTaskCount(),
|
|
12310
|
+
activeTaskCount: result.getActiveTaskCount(),
|
|
12311
|
+
completedTaskCount: result.getCompletedTaskCount(),
|
|
12312
|
+
failedTaskCount: result.getFailedTaskCount(),
|
|
12313
|
+
canceledTaskCount: result.getCanceledTaskCount()
|
|
12314
|
+
};
|
|
12315
|
+
}
|
|
12316
|
+
/**
|
|
12317
|
+
* Set wallet properties including hiding/unhiding a wallet
|
|
12318
|
+
* @param {GetWalletRequest} walletRequest - The wallet request containing salt and optional factory address
|
|
12319
|
+
* @param {object} options - Options for the wallet
|
|
12320
|
+
* @param {boolean} options.isHidden - Whether the wallet should be hidden
|
|
12321
|
+
* @param {RequestOptions} requestOptions - Request options
|
|
12322
|
+
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
12323
|
+
*/
|
|
12324
|
+
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
12325
|
+
const request = new avs_pb20.SetWalletReq();
|
|
12326
|
+
request.setSalt(salt);
|
|
12327
|
+
if (factoryAddress) {
|
|
12328
|
+
request.setFactoryAddress(factoryAddress);
|
|
12329
|
+
} else if (this.factoryAddress) {
|
|
12330
|
+
request.setFactoryAddress(this.factoryAddress);
|
|
12331
|
+
}
|
|
12332
|
+
request.setIsHidden(isHidden);
|
|
12333
|
+
const result = await this.sendGrpcRequest("setWallet", request, requestOptions);
|
|
12334
|
+
return {
|
|
12335
|
+
address: result.getAddress(),
|
|
12336
|
+
salt: result.getSalt(),
|
|
12337
|
+
factory: result.getFactoryAddress(),
|
|
12338
|
+
isHidden: result.getIsHidden(),
|
|
11584
12339
|
totalTaskCount: result.getTotalTaskCount(),
|
|
11585
12340
|
activeTaskCount: result.getActiveTaskCount(),
|
|
11586
12341
|
completedTaskCount: result.getCompletedTaskCount(),
|
|
@@ -11611,14 +12366,14 @@ var Client = class extends BaseClient {
|
|
|
11611
12366
|
* @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
|
|
11612
12367
|
*/
|
|
11613
12368
|
async getWorkflows(addresses, options) {
|
|
11614
|
-
const request = new
|
|
12369
|
+
const request = new avs_pb20.ListTasksReq();
|
|
11615
12370
|
for (const a of addresses) {
|
|
11616
12371
|
request.addSmartWalletAddress(a);
|
|
11617
12372
|
}
|
|
11618
12373
|
if (options?.cursor) {
|
|
11619
12374
|
request.setCursor(options.cursor);
|
|
11620
12375
|
}
|
|
11621
|
-
request.
|
|
12376
|
+
request.setLimit(options?.limit || import_types18.DEFAULT_LIMIT);
|
|
11622
12377
|
const result = await this.sendGrpcRequest("listTasks", request, options);
|
|
11623
12378
|
return {
|
|
11624
12379
|
cursor: result.getCursor(),
|
|
@@ -11633,7 +12388,7 @@ var Client = class extends BaseClient {
|
|
|
11633
12388
|
* @returns {Promise<number>} - The count of workflows
|
|
11634
12389
|
*/
|
|
11635
12390
|
async getWorkflowCount(addresses, options) {
|
|
11636
|
-
const request = new
|
|
12391
|
+
const request = new avs_pb20.GetWorkflowCountReq();
|
|
11637
12392
|
request.setAddressesList(addresses);
|
|
11638
12393
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
11639
12394
|
return result.getTotal();
|
|
@@ -11648,12 +12403,12 @@ var Client = class extends BaseClient {
|
|
|
11648
12403
|
* @returns {Promise<{ cursor: string; result: Execution[] }>} - The list of Executions
|
|
11649
12404
|
*/
|
|
11650
12405
|
async getExecutions(workflows, options) {
|
|
11651
|
-
const request = new
|
|
12406
|
+
const request = new avs_pb20.ListExecutionsReq();
|
|
11652
12407
|
request.setTaskIdsList(workflows);
|
|
11653
12408
|
if (options?.cursor && options?.cursor != "") {
|
|
11654
12409
|
request.setCursor(options.cursor);
|
|
11655
12410
|
}
|
|
11656
|
-
request.
|
|
12411
|
+
request.setLimit(options?.limit || import_types18.DEFAULT_LIMIT);
|
|
11657
12412
|
const result = await this.sendGrpcRequest("listExecutions", request, options);
|
|
11658
12413
|
return {
|
|
11659
12414
|
cursor: result.getCursor(),
|
|
@@ -11669,7 +12424,7 @@ var Client = class extends BaseClient {
|
|
|
11669
12424
|
* @returns {Promise<Execution>} - The result execution if it is existed
|
|
11670
12425
|
*/
|
|
11671
12426
|
async getExecution(taskId, executionId, options) {
|
|
11672
|
-
const request = new
|
|
12427
|
+
const request = new avs_pb20.ExecutionReq();
|
|
11673
12428
|
request.setTaskId(taskId);
|
|
11674
12429
|
request.setExecutionId(executionId);
|
|
11675
12430
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -11682,7 +12437,7 @@ var Client = class extends BaseClient {
|
|
|
11682
12437
|
* @returns {Promise<number>} - The count of executions
|
|
11683
12438
|
*/
|
|
11684
12439
|
async getExecutionCount(workflowIds, options) {
|
|
11685
|
-
const request = new
|
|
12440
|
+
const request = new avs_pb20.GetExecutionCountReq();
|
|
11686
12441
|
request.setWorkflowIdsList(workflowIds);
|
|
11687
12442
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
11688
12443
|
return result.getTotal();
|
|
@@ -11698,7 +12453,7 @@ var Client = class extends BaseClient {
|
|
|
11698
12453
|
* @returns {Promise<ExecutionStatus>} - The result execution if it is existed
|
|
11699
12454
|
*/
|
|
11700
12455
|
async getExecutionStatus(taskId, executionId, options) {
|
|
11701
|
-
const request = new
|
|
12456
|
+
const request = new avs_pb20.ExecutionReq();
|
|
11702
12457
|
request.setTaskId(taskId);
|
|
11703
12458
|
request.setExecutionId(executionId);
|
|
11704
12459
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -11711,7 +12466,7 @@ var Client = class extends BaseClient {
|
|
|
11711
12466
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
11712
12467
|
*/
|
|
11713
12468
|
async getWorkflow(id, options) {
|
|
11714
|
-
const request = new
|
|
12469
|
+
const request = new avs_pb20.IdReq();
|
|
11715
12470
|
request.setId(id);
|
|
11716
12471
|
const result = await this.sendGrpcRequest(
|
|
11717
12472
|
"getTask",
|
|
@@ -11733,7 +12488,7 @@ var Client = class extends BaseClient {
|
|
|
11733
12488
|
reason,
|
|
11734
12489
|
isBlocking = false
|
|
11735
12490
|
}, options) {
|
|
11736
|
-
const request = new
|
|
12491
|
+
const request = new avs_pb20.UserTriggerTaskReq();
|
|
11737
12492
|
request.setTaskId(id);
|
|
11738
12493
|
request.setReason(new reason_default(reason).toRequest());
|
|
11739
12494
|
request.setIsBlocking(isBlocking);
|
|
@@ -11747,7 +12502,7 @@ var Client = class extends BaseClient {
|
|
|
11747
12502
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
11748
12503
|
*/
|
|
11749
12504
|
async cancelWorkflow(id, options) {
|
|
11750
|
-
const request = new
|
|
12505
|
+
const request = new avs_pb20.IdReq();
|
|
11751
12506
|
request.setId(id);
|
|
11752
12507
|
const result = await this.sendGrpcRequest(
|
|
11753
12508
|
"cancelTask",
|
|
@@ -11763,7 +12518,7 @@ var Client = class extends BaseClient {
|
|
|
11763
12518
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
11764
12519
|
*/
|
|
11765
12520
|
async deleteWorkflow(id, options) {
|
|
11766
|
-
const request = new
|
|
12521
|
+
const request = new avs_pb20.IdReq();
|
|
11767
12522
|
request.setId(id);
|
|
11768
12523
|
const result = await this.sendGrpcRequest(
|
|
11769
12524
|
"deleteTask",
|
|
@@ -11773,7 +12528,7 @@ var Client = class extends BaseClient {
|
|
|
11773
12528
|
return result.getValue();
|
|
11774
12529
|
}
|
|
11775
12530
|
async createSecret(name, value, options) {
|
|
11776
|
-
const request = new
|
|
12531
|
+
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
11777
12532
|
request.setName(name);
|
|
11778
12533
|
request.setSecret(value);
|
|
11779
12534
|
if (options?.workflowId) {
|
|
@@ -11792,7 +12547,7 @@ var Client = class extends BaseClient {
|
|
|
11792
12547
|
* @returns {Promise<boolean>} - Whether the secret was successfully updated
|
|
11793
12548
|
*/
|
|
11794
12549
|
async updateSecret(name, value, options) {
|
|
11795
|
-
const request = new
|
|
12550
|
+
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
11796
12551
|
request.setName(name);
|
|
11797
12552
|
request.setSecret(value);
|
|
11798
12553
|
if (options?.workflowId) {
|
|
@@ -11805,24 +12560,42 @@ var Client = class extends BaseClient {
|
|
|
11805
12560
|
return result.getValue();
|
|
11806
12561
|
}
|
|
11807
12562
|
/**
|
|
11808
|
-
* Retrieve a list of secrets
|
|
11809
|
-
* @param
|
|
11810
|
-
* @param options -
|
|
11811
|
-
* @
|
|
12563
|
+
* Retrieve a list of secrets with pagination support
|
|
12564
|
+
* @param options - Request options including pagination parameters
|
|
12565
|
+
* @param options.workflowId - Filter secrets by workflow ID
|
|
12566
|
+
* @param options.orgId - Filter secrets by organization ID
|
|
12567
|
+
* @param options.cursor - Legacy cursor parameter (deprecated, use before/after instead)
|
|
12568
|
+
* @param options.before - Get items before this cursor value (for backward pagination)
|
|
12569
|
+
* @param options.after - Get items after this cursor value (for forward pagination)
|
|
12570
|
+
* @param options.itemPerPage - Number of items per page
|
|
12571
|
+
* @returns {Promise<ListSecretsResponse>} - The list of secrets with pagination metadata
|
|
11812
12572
|
*/
|
|
11813
|
-
async
|
|
11814
|
-
const request = new
|
|
12573
|
+
async getSecrets(options) {
|
|
12574
|
+
const request = new avs_pb20.ListSecretsReq();
|
|
11815
12575
|
if (options?.workflowId) {
|
|
11816
12576
|
request.setWorkflowId(options.workflowId);
|
|
11817
12577
|
}
|
|
11818
12578
|
if (options?.orgId) {
|
|
11819
12579
|
}
|
|
12580
|
+
if (options?.itemPerPage) {
|
|
12581
|
+
request.setLimit(options.itemPerPage);
|
|
12582
|
+
}
|
|
12583
|
+
if (options?.after) {
|
|
12584
|
+
request.setAfter(options.after);
|
|
12585
|
+
}
|
|
12586
|
+
if (options?.before) {
|
|
12587
|
+
request.setBefore(options.before);
|
|
12588
|
+
}
|
|
11820
12589
|
const result = await this.sendGrpcRequest("listSecrets", request, options);
|
|
11821
|
-
return
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
12590
|
+
return {
|
|
12591
|
+
items: result.getItemsList().map((item) => ({
|
|
12592
|
+
name: item.getName(),
|
|
12593
|
+
workflowId: item.getWorkflowId(),
|
|
12594
|
+
orgId: item.getOrgId()
|
|
12595
|
+
})),
|
|
12596
|
+
cursor: result.getCursor(),
|
|
12597
|
+
hasMore: result.getHasMore()
|
|
12598
|
+
};
|
|
11826
12599
|
}
|
|
11827
12600
|
/**
|
|
11828
12601
|
* Delete a secret by its name; by default, the secret is deleted from the user scope, derived from the auth key
|
|
@@ -11833,7 +12606,7 @@ var Client = class extends BaseClient {
|
|
|
11833
12606
|
* @returns {Promise<boolean>} - Whether the secret was successfully deleted
|
|
11834
12607
|
*/
|
|
11835
12608
|
async deleteSecret(name, options) {
|
|
11836
|
-
const request = new
|
|
12609
|
+
const request = new avs_pb20.DeleteSecretReq();
|
|
11837
12610
|
request.setName(name);
|
|
11838
12611
|
if (options?.workflowId) {
|
|
11839
12612
|
request.setWorkflowId(options.workflowId);
|
|
@@ -11847,7 +12620,6 @@ var Client = class extends BaseClient {
|
|
|
11847
12620
|
};
|
|
11848
12621
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11849
12622
|
0 && (module.exports = {
|
|
11850
|
-
AUTH_KEY_HEADER,
|
|
11851
12623
|
BlockTrigger,
|
|
11852
12624
|
BranchNode,
|
|
11853
12625
|
Client,
|
|
@@ -11856,12 +12628,10 @@ var Client = class extends BaseClient {
|
|
|
11856
12628
|
CronTrigger,
|
|
11857
12629
|
CustomCodeLangs,
|
|
11858
12630
|
CustomCodeNode,
|
|
11859
|
-
DEFAULT_LIMIT,
|
|
11860
12631
|
ETHTransferNode,
|
|
11861
12632
|
Edge,
|
|
11862
12633
|
EventTrigger,
|
|
11863
12634
|
Execution,
|
|
11864
|
-
ExecutionStatus,
|
|
11865
12635
|
FilterNode,
|
|
11866
12636
|
FixedTimeTrigger,
|
|
11867
12637
|
GraphQLQueryNode,
|
|
@@ -11873,7 +12643,5 @@ var Client = class extends BaseClient {
|
|
|
11873
12643
|
Trigger,
|
|
11874
12644
|
TriggerFactory,
|
|
11875
12645
|
TriggerReason,
|
|
11876
|
-
|
|
11877
|
-
Workflow,
|
|
11878
|
-
WorkflowStatus
|
|
12646
|
+
Workflow
|
|
11879
12647
|
});
|