@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.mjs
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"(exports) {
|
|
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
|
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
@@ -10443,13 +11146,12 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
10443
11146
|
|
|
10444
11147
|
// src/index.ts
|
|
10445
11148
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
10446
|
-
var
|
|
11149
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
10447
11150
|
import _5 from "lodash";
|
|
10448
11151
|
import { credentials, Metadata } from "@grpc/grpc-js";
|
|
10449
|
-
import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb";
|
|
10450
11152
|
|
|
10451
11153
|
// src/models/workflow.ts
|
|
10452
|
-
var
|
|
11154
|
+
var avs_pb15 = __toESM(require_avs_pb());
|
|
10453
11155
|
import _4 from "lodash";
|
|
10454
11156
|
|
|
10455
11157
|
// src/models/edge.ts
|
|
@@ -10474,7 +11176,7 @@ var Edge = class _Edge {
|
|
|
10474
11176
|
var edge_default = Edge;
|
|
10475
11177
|
|
|
10476
11178
|
// src/models/trigger/block.ts
|
|
10477
|
-
var
|
|
11179
|
+
var avs_pb2 = __toESM(require_avs_pb());
|
|
10478
11180
|
|
|
10479
11181
|
// src/models/trigger/interface.ts
|
|
10480
11182
|
var Trigger = class {
|
|
@@ -10494,42 +11196,20 @@ var Trigger = class {
|
|
|
10494
11196
|
};
|
|
10495
11197
|
var interface_default = Trigger;
|
|
10496
11198
|
|
|
10497
|
-
// src/types.ts
|
|
10498
|
-
var avs_pb2 = __toESM(require_avs_pb());
|
|
10499
|
-
var AUTH_KEY_HEADER = "authkey";
|
|
10500
|
-
var DEFAULT_LIMIT = 10;
|
|
10501
|
-
var WorkflowStatus = /* @__PURE__ */ ((WorkflowStatus2) => {
|
|
10502
|
-
WorkflowStatus2["Active"] = "active";
|
|
10503
|
-
WorkflowStatus2["Completed"] = "completed";
|
|
10504
|
-
WorkflowStatus2["Failed"] = "failed";
|
|
10505
|
-
WorkflowStatus2["Canceled"] = "canceled";
|
|
10506
|
-
WorkflowStatus2["Executing"] = "executing";
|
|
10507
|
-
return WorkflowStatus2;
|
|
10508
|
-
})(WorkflowStatus || {});
|
|
10509
|
-
var TriggerType = /* @__PURE__ */ ((TriggerType2) => {
|
|
10510
|
-
TriggerType2["Manual"] = "manual";
|
|
10511
|
-
TriggerType2["FixedTime"] = "fixed_time";
|
|
10512
|
-
TriggerType2["Cron"] = "cron";
|
|
10513
|
-
TriggerType2["Block"] = "block";
|
|
10514
|
-
TriggerType2["Event"] = "event";
|
|
10515
|
-
TriggerType2["Unset"] = "unset";
|
|
10516
|
-
return TriggerType2;
|
|
10517
|
-
})(TriggerType || {});
|
|
10518
|
-
var ExecutionStatus2 = avs_pb2.ExecutionStatus;
|
|
10519
|
-
|
|
10520
11199
|
// src/models/trigger/block.ts
|
|
11200
|
+
import { TriggerType } from "@avaprotocol/types";
|
|
10521
11201
|
var BlockTrigger = class _BlockTrigger extends interface_default {
|
|
10522
11202
|
constructor(props) {
|
|
10523
|
-
super({ ...props, type:
|
|
11203
|
+
super({ ...props, type: TriggerType.Block, data: props.data });
|
|
10524
11204
|
}
|
|
10525
11205
|
toRequest() {
|
|
10526
|
-
const request = new
|
|
11206
|
+
const request = new avs_pb2.TaskTrigger();
|
|
10527
11207
|
request.setName(this.name);
|
|
10528
11208
|
request.setId(this.id);
|
|
10529
11209
|
if (!this.data) {
|
|
10530
11210
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10531
11211
|
}
|
|
10532
|
-
const condition = new
|
|
11212
|
+
const condition = new avs_pb2.BlockCondition();
|
|
10533
11213
|
condition.setInterval(this.data.interval);
|
|
10534
11214
|
request.setBlock(condition);
|
|
10535
11215
|
return request;
|
|
@@ -10538,7 +11218,7 @@ var BlockTrigger = class _BlockTrigger extends interface_default {
|
|
|
10538
11218
|
const obj = raw.toObject();
|
|
10539
11219
|
return new _BlockTrigger({
|
|
10540
11220
|
...obj,
|
|
10541
|
-
type:
|
|
11221
|
+
type: TriggerType.Block,
|
|
10542
11222
|
data: raw.getBlock().toObject()
|
|
10543
11223
|
});
|
|
10544
11224
|
}
|
|
@@ -10546,19 +11226,20 @@ var BlockTrigger = class _BlockTrigger extends interface_default {
|
|
|
10546
11226
|
var block_default = BlockTrigger;
|
|
10547
11227
|
|
|
10548
11228
|
// src/models/trigger/cron.ts
|
|
10549
|
-
var
|
|
11229
|
+
var avs_pb3 = __toESM(require_avs_pb());
|
|
11230
|
+
import { TriggerType as TriggerType2 } from "@avaprotocol/types";
|
|
10550
11231
|
var CronTrigger = class _CronTrigger extends interface_default {
|
|
10551
11232
|
constructor(props) {
|
|
10552
|
-
super({ ...props, type:
|
|
11233
|
+
super({ ...props, type: TriggerType2.Cron, data: props.data });
|
|
10553
11234
|
}
|
|
10554
11235
|
toRequest() {
|
|
10555
|
-
const request = new
|
|
11236
|
+
const request = new avs_pb3.TaskTrigger();
|
|
10556
11237
|
request.setName(this.name);
|
|
10557
11238
|
request.setId(this.id);
|
|
10558
11239
|
if (!this.data) {
|
|
10559
11240
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10560
11241
|
}
|
|
10561
|
-
const condition = new
|
|
11242
|
+
const condition = new avs_pb3.CronCondition();
|
|
10562
11243
|
condition.setScheduleList(this.data.scheduleList);
|
|
10563
11244
|
request.setCron(condition);
|
|
10564
11245
|
return request;
|
|
@@ -10567,7 +11248,7 @@ var CronTrigger = class _CronTrigger extends interface_default {
|
|
|
10567
11248
|
const obj = raw.toObject();
|
|
10568
11249
|
return new _CronTrigger({
|
|
10569
11250
|
...obj,
|
|
10570
|
-
type:
|
|
11251
|
+
type: TriggerType2.Cron,
|
|
10571
11252
|
data: raw.getCron().toObject()
|
|
10572
11253
|
});
|
|
10573
11254
|
}
|
|
@@ -10575,20 +11256,21 @@ var CronTrigger = class _CronTrigger extends interface_default {
|
|
|
10575
11256
|
var cron_default = CronTrigger;
|
|
10576
11257
|
|
|
10577
11258
|
// src/models/trigger/event.ts
|
|
10578
|
-
var
|
|
11259
|
+
var avs_pb4 = __toESM(require_avs_pb());
|
|
10579
11260
|
import * as _ from "lodash";
|
|
11261
|
+
import { TriggerType as TriggerType3 } from "@avaprotocol/types";
|
|
10580
11262
|
var EventTrigger = class _EventTrigger extends interface_default {
|
|
10581
11263
|
constructor(props) {
|
|
10582
|
-
super({ ...props, type:
|
|
11264
|
+
super({ ...props, type: TriggerType3.Event, data: props.data });
|
|
10583
11265
|
}
|
|
10584
11266
|
toRequest() {
|
|
10585
|
-
const request = new
|
|
11267
|
+
const request = new avs_pb4.TaskTrigger();
|
|
10586
11268
|
request.setName(this.name);
|
|
10587
11269
|
request.setId(this.id);
|
|
10588
11270
|
if (!this.data) {
|
|
10589
11271
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10590
11272
|
}
|
|
10591
|
-
const condition = new
|
|
11273
|
+
const condition = new avs_pb4.EventCondition();
|
|
10592
11274
|
const expression = this.data.expression;
|
|
10593
11275
|
const matcherList = this.data.matcherList;
|
|
10594
11276
|
if (_.isUndefined(expression)) {
|
|
@@ -10600,7 +11282,7 @@ var EventTrigger = class _EventTrigger extends interface_default {
|
|
|
10600
11282
|
}
|
|
10601
11283
|
condition.setMatcherList(
|
|
10602
11284
|
matcherList.map((element) => {
|
|
10603
|
-
const m = new
|
|
11285
|
+
const m = new avs_pb4.EventCondition.Matcher();
|
|
10604
11286
|
m.setType(element["type"]);
|
|
10605
11287
|
m.setValueList(element["valueList"]);
|
|
10606
11288
|
return m;
|
|
@@ -10625,7 +11307,7 @@ var EventTrigger = class _EventTrigger extends interface_default {
|
|
|
10625
11307
|
}
|
|
10626
11308
|
return new _EventTrigger({
|
|
10627
11309
|
...obj,
|
|
10628
|
-
type:
|
|
11310
|
+
type: TriggerType3.Event,
|
|
10629
11311
|
data
|
|
10630
11312
|
});
|
|
10631
11313
|
}
|
|
@@ -10633,19 +11315,20 @@ var EventTrigger = class _EventTrigger extends interface_default {
|
|
|
10633
11315
|
var event_default = EventTrigger;
|
|
10634
11316
|
|
|
10635
11317
|
// src/models/trigger/fixedTime.ts
|
|
10636
|
-
var
|
|
11318
|
+
var avs_pb5 = __toESM(require_avs_pb());
|
|
11319
|
+
import { TriggerType as TriggerType4 } from "@avaprotocol/types";
|
|
10637
11320
|
var FixedTimeTrigger = class _FixedTimeTrigger extends interface_default {
|
|
10638
11321
|
constructor(props) {
|
|
10639
|
-
super({ ...props, type:
|
|
11322
|
+
super({ ...props, type: TriggerType4.FixedTime, data: props.data });
|
|
10640
11323
|
}
|
|
10641
11324
|
toRequest() {
|
|
10642
|
-
const request = new
|
|
11325
|
+
const request = new avs_pb5.TaskTrigger();
|
|
10643
11326
|
request.setName(this.name);
|
|
10644
11327
|
request.setId(this.id);
|
|
10645
11328
|
if (!this.data) {
|
|
10646
11329
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
10647
11330
|
}
|
|
10648
|
-
const condition = new
|
|
11331
|
+
const condition = new avs_pb5.FixedTimeCondition();
|
|
10649
11332
|
condition.setEpochsList(this.data.epochsList);
|
|
10650
11333
|
request.setFixedTime(condition);
|
|
10651
11334
|
return request;
|
|
@@ -10654,7 +11337,7 @@ var FixedTimeTrigger = class _FixedTimeTrigger extends interface_default {
|
|
|
10654
11337
|
const obj = raw.toObject();
|
|
10655
11338
|
return new _FixedTimeTrigger({
|
|
10656
11339
|
...obj,
|
|
10657
|
-
type:
|
|
11340
|
+
type: TriggerType4.FixedTime,
|
|
10658
11341
|
data: raw.getFixedTime().toObject()
|
|
10659
11342
|
});
|
|
10660
11343
|
}
|
|
@@ -10662,6 +11345,7 @@ var FixedTimeTrigger = class _FixedTimeTrigger extends interface_default {
|
|
|
10662
11345
|
var fixedTime_default = FixedTimeTrigger;
|
|
10663
11346
|
|
|
10664
11347
|
// src/models/trigger/factory.ts
|
|
11348
|
+
import { TriggerType as TriggerType5 } from "@avaprotocol/types";
|
|
10665
11349
|
var TriggerFactory = class {
|
|
10666
11350
|
/**
|
|
10667
11351
|
* Static factory method to create Trigger instances
|
|
@@ -10670,13 +11354,13 @@ var TriggerFactory = class {
|
|
|
10670
11354
|
*/
|
|
10671
11355
|
static create(props) {
|
|
10672
11356
|
switch (props.type) {
|
|
10673
|
-
case
|
|
11357
|
+
case TriggerType5.Block:
|
|
10674
11358
|
return new block_default(props);
|
|
10675
|
-
case
|
|
11359
|
+
case TriggerType5.Cron:
|
|
10676
11360
|
return new cron_default(props);
|
|
10677
|
-
case
|
|
11361
|
+
case TriggerType5.Event:
|
|
10678
11362
|
return new event_default(props);
|
|
10679
|
-
case
|
|
11363
|
+
case TriggerType5.FixedTime:
|
|
10680
11364
|
return new fixedTime_default(props);
|
|
10681
11365
|
}
|
|
10682
11366
|
throw new Error("Unsupported trigger type");
|
|
@@ -10707,7 +11391,7 @@ var factory_default = TriggerFactory;
|
|
|
10707
11391
|
import _3 from "lodash";
|
|
10708
11392
|
|
|
10709
11393
|
// src/models/node/interface.ts
|
|
10710
|
-
var
|
|
11394
|
+
var avs_pb6 = __toESM(require_avs_pb());
|
|
10711
11395
|
import { NodeType } from "@avaprotocol/types";
|
|
10712
11396
|
import _2 from "lodash";
|
|
10713
11397
|
var Node = class {
|
|
@@ -10718,9 +11402,9 @@ var Node = class {
|
|
|
10718
11402
|
this.data = props.data;
|
|
10719
11403
|
}
|
|
10720
11404
|
toRequest() {
|
|
10721
|
-
const request = new
|
|
11405
|
+
const request = new avs_pb6.TaskNode();
|
|
10722
11406
|
const raw = request.serializeBinary();
|
|
10723
|
-
const parsed =
|
|
11407
|
+
const parsed = avs_pb6.TaskNode.deserializeBinary(raw);
|
|
10724
11408
|
if (!_2.isEqual(request, parsed)) {
|
|
10725
11409
|
throw new Error("Invalid request object");
|
|
10726
11410
|
}
|
|
@@ -10730,7 +11414,7 @@ var Node = class {
|
|
|
10730
11414
|
var interface_default2 = Node;
|
|
10731
11415
|
|
|
10732
11416
|
// src/models/node/contractWrite.ts
|
|
10733
|
-
var
|
|
11417
|
+
var avs_pb7 = __toESM(require_avs_pb());
|
|
10734
11418
|
import { NodeType as NodeType2 } from "@avaprotocol/types";
|
|
10735
11419
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
10736
11420
|
constructor(props) {
|
|
@@ -10745,10 +11429,10 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
10745
11429
|
});
|
|
10746
11430
|
}
|
|
10747
11431
|
toRequest() {
|
|
10748
|
-
const request = new
|
|
11432
|
+
const request = new avs_pb7.TaskNode();
|
|
10749
11433
|
request.setId(this.id);
|
|
10750
11434
|
request.setName(this.name);
|
|
10751
|
-
const nodeData = new
|
|
11435
|
+
const nodeData = new avs_pb7.ContractWriteNode();
|
|
10752
11436
|
nodeData.setContractAddress(
|
|
10753
11437
|
this.data.contractAddress
|
|
10754
11438
|
);
|
|
@@ -10761,9 +11445,9 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
10761
11445
|
var contractWrite_default = ContractWriteNode2;
|
|
10762
11446
|
|
|
10763
11447
|
// src/models/node/customCode.ts
|
|
10764
|
-
var
|
|
11448
|
+
var avs_pb8 = __toESM(require_avs_pb());
|
|
10765
11449
|
import { NodeType as NodeType3 } from "@avaprotocol/types";
|
|
10766
|
-
var CustomCodeLangs =
|
|
11450
|
+
var CustomCodeLangs = avs_pb8.CustomCodeLang;
|
|
10767
11451
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
10768
11452
|
constructor(props) {
|
|
10769
11453
|
super({ ...props, type: NodeType3.CustomCode, data: props.data });
|
|
@@ -10777,10 +11461,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
10777
11461
|
});
|
|
10778
11462
|
}
|
|
10779
11463
|
toRequest() {
|
|
10780
|
-
const request = new
|
|
11464
|
+
const request = new avs_pb8.TaskNode();
|
|
10781
11465
|
request.setId(this.id);
|
|
10782
11466
|
request.setName(this.name);
|
|
10783
|
-
const nodeData = new
|
|
11467
|
+
const nodeData = new avs_pb8.CustomCodeNode();
|
|
10784
11468
|
nodeData.setLang(this.data.lang);
|
|
10785
11469
|
nodeData.setSource(this.data.source);
|
|
10786
11470
|
request.setCustomCode(nodeData);
|
|
@@ -10790,7 +11474,7 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
10790
11474
|
var customCode_default = CustomCodeNode2;
|
|
10791
11475
|
|
|
10792
11476
|
// src/models/node/graphqlQuery.ts
|
|
10793
|
-
var
|
|
11477
|
+
var avs_pb9 = __toESM(require_avs_pb());
|
|
10794
11478
|
import { NodeType as NodeType4 } from "@avaprotocol/types";
|
|
10795
11479
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
10796
11480
|
constructor(props) {
|
|
@@ -10809,10 +11493,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
10809
11493
|
});
|
|
10810
11494
|
}
|
|
10811
11495
|
toRequest() {
|
|
10812
|
-
const request = new
|
|
11496
|
+
const request = new avs_pb9.TaskNode();
|
|
10813
11497
|
request.setId(this.id);
|
|
10814
11498
|
request.setName(this.name);
|
|
10815
|
-
const nodeData = new
|
|
11499
|
+
const nodeData = new avs_pb9.GraphQLQueryNode();
|
|
10816
11500
|
nodeData.setUrl(this.data.url);
|
|
10817
11501
|
nodeData.setQuery(this.data.query);
|
|
10818
11502
|
const variables = this.data.variablesMap;
|
|
@@ -10827,7 +11511,7 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
10827
11511
|
var graphqlQuery_default = GraphQLQueryNode2;
|
|
10828
11512
|
|
|
10829
11513
|
// src/models/node/restApi.ts
|
|
10830
|
-
var
|
|
11514
|
+
var avs_pb10 = __toESM(require_avs_pb());
|
|
10831
11515
|
import { NodeType as NodeType5 } from "@avaprotocol/types";
|
|
10832
11516
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
10833
11517
|
constructor(props) {
|
|
@@ -10842,10 +11526,10 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
10842
11526
|
});
|
|
10843
11527
|
}
|
|
10844
11528
|
toRequest() {
|
|
10845
|
-
const request = new
|
|
11529
|
+
const request = new avs_pb10.TaskNode();
|
|
10846
11530
|
request.setId(this.id);
|
|
10847
11531
|
request.setName(this.name);
|
|
10848
|
-
const nodeData = new
|
|
11532
|
+
const nodeData = new avs_pb10.RestAPINode();
|
|
10849
11533
|
nodeData.setUrl(this.data.url);
|
|
10850
11534
|
nodeData.setMethod(this.data.method);
|
|
10851
11535
|
nodeData.setBody(this.data.body);
|
|
@@ -10861,7 +11545,7 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
10861
11545
|
var restApi_default = RestAPINode2;
|
|
10862
11546
|
|
|
10863
11547
|
// src/models/node/contractRead.ts
|
|
10864
|
-
var
|
|
11548
|
+
var avs_pb11 = __toESM(require_avs_pb());
|
|
10865
11549
|
import { NodeType as NodeType6 } from "@avaprotocol/types";
|
|
10866
11550
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
10867
11551
|
constructor(props) {
|
|
@@ -10876,10 +11560,10 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
10876
11560
|
});
|
|
10877
11561
|
}
|
|
10878
11562
|
toRequest() {
|
|
10879
|
-
const request = new
|
|
11563
|
+
const request = new avs_pb11.TaskNode();
|
|
10880
11564
|
request.setId(this.id);
|
|
10881
11565
|
request.setName(this.name);
|
|
10882
|
-
const nodeData = new
|
|
11566
|
+
const nodeData = new avs_pb11.ContractReadNode();
|
|
10883
11567
|
nodeData.setContractAddress(
|
|
10884
11568
|
this.data.contractAddress
|
|
10885
11569
|
);
|
|
@@ -10892,7 +11576,7 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
10892
11576
|
var contractRead_default = ContractReadNode2;
|
|
10893
11577
|
|
|
10894
11578
|
// src/models/node/ethTransfer.ts
|
|
10895
|
-
var
|
|
11579
|
+
var avs_pb12 = __toESM(require_avs_pb());
|
|
10896
11580
|
import { NodeType as NodeType7 } from "@avaprotocol/types";
|
|
10897
11581
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
10898
11582
|
constructor(props) {
|
|
@@ -10907,10 +11591,10 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
10907
11591
|
});
|
|
10908
11592
|
}
|
|
10909
11593
|
toRequest() {
|
|
10910
|
-
const request = new
|
|
11594
|
+
const request = new avs_pb12.TaskNode();
|
|
10911
11595
|
request.setId(this.id);
|
|
10912
11596
|
request.setName(this.name);
|
|
10913
|
-
const nodeData = new
|
|
11597
|
+
const nodeData = new avs_pb12.ETHTransferNode();
|
|
10914
11598
|
nodeData.setDestination(this.data.destination);
|
|
10915
11599
|
nodeData.setAmount(this.data.amount);
|
|
10916
11600
|
request.setEthTransfer(nodeData);
|
|
@@ -10921,7 +11605,7 @@ var ethTransfer_default = ETHTransferNode2;
|
|
|
10921
11605
|
|
|
10922
11606
|
// src/models/node/branch.ts
|
|
10923
11607
|
import { NodeType as NodeType8 } from "@avaprotocol/types";
|
|
10924
|
-
var
|
|
11608
|
+
var avs_pb13 = __toESM(require_avs_pb());
|
|
10925
11609
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
10926
11610
|
constructor(props) {
|
|
10927
11611
|
super({ ...props, type: NodeType8.Branch, data: props.data });
|
|
@@ -10935,13 +11619,13 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
10935
11619
|
});
|
|
10936
11620
|
}
|
|
10937
11621
|
toRequest() {
|
|
10938
|
-
const request = new
|
|
11622
|
+
const request = new avs_pb13.TaskNode();
|
|
10939
11623
|
request.setId(this.id);
|
|
10940
11624
|
request.setName(this.name);
|
|
10941
|
-
const nodeData = new
|
|
11625
|
+
const nodeData = new avs_pb13.BranchNode();
|
|
10942
11626
|
nodeData.setConditionsList(
|
|
10943
11627
|
this.data.conditionsList.map((condition) => {
|
|
10944
|
-
const conditionObj = new
|
|
11628
|
+
const conditionObj = new avs_pb13.Condition();
|
|
10945
11629
|
conditionObj.setId(condition.id);
|
|
10946
11630
|
conditionObj.setType(condition.type);
|
|
10947
11631
|
conditionObj.setExpression(condition.expression);
|
|
@@ -10956,7 +11640,7 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
10956
11640
|
var branch_default = BranchNode2;
|
|
10957
11641
|
|
|
10958
11642
|
// src/models/node/filter.ts
|
|
10959
|
-
var
|
|
11643
|
+
var avs_pb14 = __toESM(require_avs_pb());
|
|
10960
11644
|
import { NodeType as NodeType9 } from "@avaprotocol/types";
|
|
10961
11645
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
10962
11646
|
constructor(props) {
|
|
@@ -10971,10 +11655,10 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
10971
11655
|
});
|
|
10972
11656
|
}
|
|
10973
11657
|
toRequest() {
|
|
10974
|
-
const request = new
|
|
11658
|
+
const request = new avs_pb14.TaskNode();
|
|
10975
11659
|
request.setId(this.id);
|
|
10976
11660
|
request.setName(this.name);
|
|
10977
|
-
const nodeData = new
|
|
11661
|
+
const nodeData = new avs_pb14.FilterNode();
|
|
10978
11662
|
nodeData.setExpression(this.data.expression);
|
|
10979
11663
|
nodeData.setInput(this.data.input);
|
|
10980
11664
|
request.setFilter(nodeData);
|
|
@@ -11041,13 +11725,14 @@ var NodeFactory = class {
|
|
|
11041
11725
|
var factory_default2 = NodeFactory;
|
|
11042
11726
|
|
|
11043
11727
|
// src/models/workflow.ts
|
|
11728
|
+
import { WorkflowStatus } from "@avaprotocol/types";
|
|
11044
11729
|
function convertStatusToString(status) {
|
|
11045
11730
|
const conversionMap = {
|
|
11046
|
-
[
|
|
11047
|
-
[
|
|
11048
|
-
[
|
|
11049
|
-
[
|
|
11050
|
-
[
|
|
11731
|
+
[avs_pb15.TaskStatus.ACTIVE]: WorkflowStatus.Active,
|
|
11732
|
+
[avs_pb15.TaskStatus.COMPLETED]: WorkflowStatus.Completed,
|
|
11733
|
+
[avs_pb15.TaskStatus.FAILED]: WorkflowStatus.Failed,
|
|
11734
|
+
[avs_pb15.TaskStatus.CANCELED]: WorkflowStatus.Canceled,
|
|
11735
|
+
[avs_pb15.TaskStatus.EXECUTING]: WorkflowStatus.Executing
|
|
11051
11736
|
};
|
|
11052
11737
|
return conversionMap[status];
|
|
11053
11738
|
}
|
|
@@ -11067,12 +11752,12 @@ var Workflow = class _Workflow {
|
|
|
11067
11752
|
this.startAt = props.startAt;
|
|
11068
11753
|
this.expiredAt = props.expiredAt;
|
|
11069
11754
|
this.maxExecution = props.maxExecution;
|
|
11755
|
+
this.executionCount = props.executionCount;
|
|
11070
11756
|
this.id = props.id;
|
|
11071
11757
|
this.owner = props.owner;
|
|
11072
11758
|
this.name = props.name;
|
|
11073
11759
|
this.status = props.status;
|
|
11074
11760
|
this.completedAt = props.completedAt;
|
|
11075
|
-
this.totalExecution = props.totalExecution;
|
|
11076
11761
|
this.lastRanAt = props.lastRanAt;
|
|
11077
11762
|
}
|
|
11078
11763
|
/**
|
|
@@ -11100,10 +11785,10 @@ var Workflow = class _Workflow {
|
|
|
11100
11785
|
startAt: obj.getStartAt(),
|
|
11101
11786
|
expiredAt: obj.getExpiredAt(),
|
|
11102
11787
|
maxExecution: obj.getMaxExecution(),
|
|
11788
|
+
executionCount: obj.getExecutionCount(),
|
|
11103
11789
|
name: obj.getName(),
|
|
11104
11790
|
status: convertStatusToString(obj.getStatus()),
|
|
11105
11791
|
completedAt: obj.getCompletedAt(),
|
|
11106
|
-
totalExecution: obj.getTotalExecution(),
|
|
11107
11792
|
lastRanAt: obj.getLastRanAt()
|
|
11108
11793
|
});
|
|
11109
11794
|
return workflow;
|
|
@@ -11117,6 +11802,7 @@ var Workflow = class _Workflow {
|
|
|
11117
11802
|
if (!trigger) {
|
|
11118
11803
|
throw new Error("Trigger is undefined in fromListResponse()");
|
|
11119
11804
|
}
|
|
11805
|
+
const executionCount = obj.getExecutionCount ? obj.getExecutionCount() : obj.executionCount;
|
|
11120
11806
|
return new _Workflow({
|
|
11121
11807
|
id: obj.getId(),
|
|
11122
11808
|
owner: obj.getOwner(),
|
|
@@ -11125,17 +11811,17 @@ var Workflow = class _Workflow {
|
|
|
11125
11811
|
startAt: obj.getStartAt(),
|
|
11126
11812
|
expiredAt: obj.getExpiredAt(),
|
|
11127
11813
|
maxExecution: obj.getMaxExecution(),
|
|
11814
|
+
executionCount,
|
|
11128
11815
|
nodes: [],
|
|
11129
11816
|
edges: [],
|
|
11130
11817
|
completedAt: obj.getCompletedAt(),
|
|
11131
11818
|
status: convertStatusToString(obj.getStatus()),
|
|
11132
11819
|
name: obj.getName(),
|
|
11133
|
-
totalExecution: obj.getTotalExecution(),
|
|
11134
11820
|
lastRanAt: obj.getLastRanAt()
|
|
11135
11821
|
});
|
|
11136
11822
|
}
|
|
11137
11823
|
toRequest() {
|
|
11138
|
-
const request = new
|
|
11824
|
+
const request = new avs_pb15.CreateTaskReq();
|
|
11139
11825
|
request.setSmartWalletAddress(this.smartWalletAddress);
|
|
11140
11826
|
request.setTrigger(this.trigger.toRequest());
|
|
11141
11827
|
_4.map(this.nodes, (node) => request.addNodes(node.toRequest()));
|
|
@@ -11152,18 +11838,19 @@ var Workflow = class _Workflow {
|
|
|
11152
11838
|
var workflow_default = Workflow;
|
|
11153
11839
|
|
|
11154
11840
|
// src/models/execution.ts
|
|
11155
|
-
var
|
|
11841
|
+
var avs_pb18 = __toESM(require_avs_pb());
|
|
11156
11842
|
|
|
11157
11843
|
// src/models/trigger/reason.ts
|
|
11158
|
-
var
|
|
11844
|
+
var avs_pb16 = __toESM(require_avs_pb());
|
|
11845
|
+
import { TriggerType as TriggerType6 } from "@avaprotocol/types";
|
|
11159
11846
|
var convertTriggerType = (grpcType) => {
|
|
11160
11847
|
const conversionMap = {
|
|
11161
|
-
[
|
|
11162
|
-
[
|
|
11163
|
-
[
|
|
11164
|
-
[
|
|
11165
|
-
[
|
|
11166
|
-
[
|
|
11848
|
+
[avs_pb16.TriggerReason.TriggerType.FIXEDTIME]: TriggerType6.FixedTime,
|
|
11849
|
+
[avs_pb16.TriggerReason.TriggerType.CRON]: TriggerType6.Cron,
|
|
11850
|
+
[avs_pb16.TriggerReason.TriggerType.BLOCK]: TriggerType6.Block,
|
|
11851
|
+
[avs_pb16.TriggerReason.TriggerType.EVENT]: TriggerType6.Event,
|
|
11852
|
+
[avs_pb16.TriggerReason.TriggerType.MANUAL]: TriggerType6.Manual,
|
|
11853
|
+
[avs_pb16.TriggerReason.TriggerType.UNSET]: TriggerType6.Unset
|
|
11167
11854
|
};
|
|
11168
11855
|
return conversionMap[grpcType];
|
|
11169
11856
|
};
|
|
@@ -11171,14 +11858,14 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11171
11858
|
constructor(props) {
|
|
11172
11859
|
this.type = props.type;
|
|
11173
11860
|
switch (props.type) {
|
|
11174
|
-
case
|
|
11175
|
-
case
|
|
11861
|
+
case TriggerType6.FixedTime:
|
|
11862
|
+
case TriggerType6.Cron:
|
|
11176
11863
|
this.epoch = props.epoch;
|
|
11177
11864
|
break;
|
|
11178
|
-
case
|
|
11865
|
+
case TriggerType6.Block:
|
|
11179
11866
|
this.blockNumber = props.blockNumber;
|
|
11180
11867
|
break;
|
|
11181
|
-
case
|
|
11868
|
+
case TriggerType6.Event:
|
|
11182
11869
|
this.blockNumber = props.blockNumber;
|
|
11183
11870
|
this.logIndex = props.logIndex;
|
|
11184
11871
|
this.txHash = props.txHash;
|
|
@@ -11200,28 +11887,28 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11200
11887
|
});
|
|
11201
11888
|
}
|
|
11202
11889
|
toRequest() {
|
|
11203
|
-
const request = new
|
|
11890
|
+
const request = new avs_pb16.TriggerReason();
|
|
11204
11891
|
switch (this.type) {
|
|
11205
|
-
case
|
|
11206
|
-
request.setType(
|
|
11892
|
+
case TriggerType6.FixedTime:
|
|
11893
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.FIXEDTIME);
|
|
11207
11894
|
if (this.epoch) {
|
|
11208
11895
|
request.setEpoch(this.epoch);
|
|
11209
11896
|
}
|
|
11210
11897
|
break;
|
|
11211
|
-
case
|
|
11212
|
-
request.setType(
|
|
11898
|
+
case TriggerType6.Cron:
|
|
11899
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.CRON);
|
|
11213
11900
|
if (this.epoch) {
|
|
11214
11901
|
request.setEpoch(this.epoch);
|
|
11215
11902
|
}
|
|
11216
11903
|
break;
|
|
11217
|
-
case
|
|
11218
|
-
request.setType(
|
|
11904
|
+
case TriggerType6.Block:
|
|
11905
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.BLOCK);
|
|
11219
11906
|
if (this.blockNumber) {
|
|
11220
11907
|
request.setBlockNumber(this.blockNumber);
|
|
11221
11908
|
}
|
|
11222
11909
|
break;
|
|
11223
|
-
case
|
|
11224
|
-
request.setType(
|
|
11910
|
+
case TriggerType6.Event:
|
|
11911
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.EVENT);
|
|
11225
11912
|
if (this.blockNumber) {
|
|
11226
11913
|
request.setBlockNumber(this.blockNumber);
|
|
11227
11914
|
}
|
|
@@ -11232,11 +11919,11 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11232
11919
|
request.setTxHash(this.txHash);
|
|
11233
11920
|
}
|
|
11234
11921
|
break;
|
|
11235
|
-
case
|
|
11236
|
-
request.setType(
|
|
11922
|
+
case TriggerType6.Manual:
|
|
11923
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.MANUAL);
|
|
11237
11924
|
break;
|
|
11238
|
-
case
|
|
11239
|
-
request.setType(
|
|
11925
|
+
case TriggerType6.Unset:
|
|
11926
|
+
request.setType(avs_pb16.TriggerReason.TriggerType.UNSET);
|
|
11240
11927
|
break;
|
|
11241
11928
|
default:
|
|
11242
11929
|
throw new Error("Unsupported trigger type");
|
|
@@ -11247,8 +11934,47 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
11247
11934
|
var reason_default = TriggerReason2;
|
|
11248
11935
|
|
|
11249
11936
|
// src/models/step.ts
|
|
11250
|
-
var
|
|
11937
|
+
var avs_pb17 = __toESM(require_avs_pb());
|
|
11938
|
+
|
|
11939
|
+
// src/utils.ts
|
|
11940
|
+
import { Value as ProtobufValue } from "google-protobuf/google/protobuf/struct_pb";
|
|
11941
|
+
function convertProtobufValueToJs(value) {
|
|
11942
|
+
if (!value) {
|
|
11943
|
+
return void 0;
|
|
11944
|
+
}
|
|
11945
|
+
switch (value.getKindCase()) {
|
|
11946
|
+
case ProtobufValue.KindCase.NULL_VALUE:
|
|
11947
|
+
return null;
|
|
11948
|
+
case ProtobufValue.KindCase.NUMBER_VALUE:
|
|
11949
|
+
return value.getNumberValue();
|
|
11950
|
+
case ProtobufValue.KindCase.STRING_VALUE:
|
|
11951
|
+
return value.getStringValue();
|
|
11952
|
+
case ProtobufValue.KindCase.BOOL_VALUE:
|
|
11953
|
+
return value.getBoolValue();
|
|
11954
|
+
case ProtobufValue.KindCase.STRUCT_VALUE: {
|
|
11955
|
+
const struct = value.getStructValue();
|
|
11956
|
+
if (!struct) return {};
|
|
11957
|
+
const jsObj = {};
|
|
11958
|
+
const fields = struct.getFieldsMap();
|
|
11959
|
+
fields.forEach((val, key) => {
|
|
11960
|
+
jsObj[key] = convertProtobufValueToJs(val);
|
|
11961
|
+
});
|
|
11962
|
+
return jsObj;
|
|
11963
|
+
}
|
|
11964
|
+
case ProtobufValue.KindCase.LIST_VALUE: {
|
|
11965
|
+
const list = value.getListValue();
|
|
11966
|
+
if (!list) return [];
|
|
11967
|
+
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
11968
|
+
}
|
|
11969
|
+
case ProtobufValue.KindCase.KIND_NOT_SET:
|
|
11970
|
+
default:
|
|
11971
|
+
return void 0;
|
|
11972
|
+
}
|
|
11973
|
+
}
|
|
11974
|
+
|
|
11975
|
+
// src/models/step.ts
|
|
11251
11976
|
var Step = class _Step {
|
|
11977
|
+
// Changed to any
|
|
11252
11978
|
constructor(props) {
|
|
11253
11979
|
this.nodeId = props.nodeId;
|
|
11254
11980
|
this.success = props.success;
|
|
@@ -11260,30 +11986,46 @@ var Step = class _Step {
|
|
|
11260
11986
|
this.output = props.output;
|
|
11261
11987
|
}
|
|
11262
11988
|
static getOutput(step) {
|
|
11263
|
-
console.log("step.getOutput", step.toObject());
|
|
11264
11989
|
const outputDataType = step.getOutputDataCase();
|
|
11265
|
-
|
|
11990
|
+
let nodeOutputMessage;
|
|
11266
11991
|
switch (outputDataType) {
|
|
11267
|
-
case
|
|
11992
|
+
case avs_pb17.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
11993
|
+
return null;
|
|
11994
|
+
case avs_pb17.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
11268
11995
|
return step.getEthTransfer()?.toObject();
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
return
|
|
11273
|
-
case
|
|
11996
|
+
// Specific structure, not google.protobuf.Value
|
|
11997
|
+
case avs_pb17.Execution.Step.OutputDataCase.GRAPHQL:
|
|
11998
|
+
nodeOutputMessage = step.getGraphql();
|
|
11999
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
12000
|
+
case avs_pb17.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
12001
|
+
nodeOutputMessage = step.getContractRead();
|
|
12002
|
+
if (nodeOutputMessage) {
|
|
12003
|
+
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
12004
|
+
}
|
|
12005
|
+
return [];
|
|
12006
|
+
// Default to empty array if no data
|
|
12007
|
+
case avs_pb17.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
11274
12008
|
return step.getContractWrite()?.toObject();
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
return
|
|
11279
|
-
case
|
|
12009
|
+
// Specific structure
|
|
12010
|
+
case avs_pb17.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
12011
|
+
nodeOutputMessage = step.getCustomCode();
|
|
12012
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
12013
|
+
case avs_pb17.Execution.Step.OutputDataCase.REST_API:
|
|
12014
|
+
nodeOutputMessage = step.getRestApi();
|
|
12015
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
12016
|
+
case avs_pb17.Execution.Step.OutputDataCase.BRANCH:
|
|
11280
12017
|
return step.getBranch()?.toObject();
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
return
|
|
12018
|
+
// Specific structure
|
|
12019
|
+
case avs_pb17.Execution.Step.OutputDataCase.FILTER:
|
|
12020
|
+
nodeOutputMessage = step.getFilter();
|
|
12021
|
+
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
12022
|
+
case avs_pb17.Execution.Step.OutputDataCase.LOOP:
|
|
12023
|
+
return step.getLoop()?.getData();
|
|
11285
12024
|
default:
|
|
11286
|
-
|
|
12025
|
+
console.warn(
|
|
12026
|
+
`Unhandled output data type in Step.getOutput: ${outputDataType}`
|
|
12027
|
+
);
|
|
12028
|
+
return void 0;
|
|
11287
12029
|
}
|
|
11288
12030
|
}
|
|
11289
12031
|
static fromResponse(step) {
|
|
@@ -11296,10 +12038,9 @@ var Step = class _Step {
|
|
|
11296
12038
|
endAt: step.getEndAt(),
|
|
11297
12039
|
inputsList: step.getInputsList(),
|
|
11298
12040
|
output: _Step.getOutput(step)
|
|
11299
|
-
// static function of this class for switch conversion
|
|
11300
12041
|
});
|
|
11301
12042
|
}
|
|
11302
|
-
// Client side does not generate the step, so there
|
|
12043
|
+
// Client side does not generate the step, so there's no toRequest() method
|
|
11303
12044
|
};
|
|
11304
12045
|
var step_default = Step;
|
|
11305
12046
|
|
|
@@ -11318,20 +12059,18 @@ var Execution3 = class _Execution {
|
|
|
11318
12059
|
}
|
|
11319
12060
|
static fromResponse(execution) {
|
|
11320
12061
|
const triggerOutputDataType = execution.getOutputDataCase();
|
|
11321
|
-
console.log("execution.triggerOutputDataType", execution.toObject());
|
|
11322
|
-
console.log("execution.triggerOutputDataType", triggerOutputDataType);
|
|
11323
12062
|
let triggerOutputData;
|
|
11324
12063
|
switch (triggerOutputDataType) {
|
|
11325
|
-
case
|
|
12064
|
+
case avs_pb18.Execution.OutputDataCase.EVM_LOG:
|
|
11326
12065
|
triggerOutputData = execution.getEvmLog()?.toObject();
|
|
11327
12066
|
break;
|
|
11328
|
-
case
|
|
12067
|
+
case avs_pb18.Execution.OutputDataCase.TRANSFER_LOG:
|
|
11329
12068
|
triggerOutputData = execution.getTransferLog()?.toObject();
|
|
11330
12069
|
break;
|
|
11331
|
-
case
|
|
12070
|
+
case avs_pb18.Execution.OutputDataCase.BLOCK:
|
|
11332
12071
|
triggerOutputData = execution.getBlock()?.toObject();
|
|
11333
12072
|
break;
|
|
11334
|
-
case
|
|
12073
|
+
case avs_pb18.Execution.OutputDataCase.TIME:
|
|
11335
12074
|
triggerOutputData = execution.getTime()?.toObject();
|
|
11336
12075
|
break;
|
|
11337
12076
|
}
|
|
@@ -11352,7 +12091,7 @@ var Execution3 = class _Execution {
|
|
|
11352
12091
|
var execution_default = Execution3;
|
|
11353
12092
|
|
|
11354
12093
|
// src/models/secret.ts
|
|
11355
|
-
var
|
|
12094
|
+
var avs_pb19 = __toESM(require_avs_pb());
|
|
11356
12095
|
var Secret = class {
|
|
11357
12096
|
constructor(props) {
|
|
11358
12097
|
this.name = props.name;
|
|
@@ -11361,7 +12100,7 @@ var Secret = class {
|
|
|
11361
12100
|
this.orgId = props.orgId;
|
|
11362
12101
|
}
|
|
11363
12102
|
toRequest() {
|
|
11364
|
-
const request = new
|
|
12103
|
+
const request = new avs_pb19.CreateOrUpdateSecretReq();
|
|
11365
12104
|
request.setName(this.name);
|
|
11366
12105
|
request.setSecret(this.secret);
|
|
11367
12106
|
if (this.orgId) {
|
|
@@ -11376,6 +12115,7 @@ var Secret = class {
|
|
|
11376
12115
|
var secret_default = Secret;
|
|
11377
12116
|
|
|
11378
12117
|
// src/index.ts
|
|
12118
|
+
import { AUTH_KEY_HEADER, DEFAULT_LIMIT } from "@avaprotocol/types";
|
|
11379
12119
|
var BaseClient = class {
|
|
11380
12120
|
constructor(opts) {
|
|
11381
12121
|
this.endpoint = opts.endpoint;
|
|
@@ -11402,56 +12142,45 @@ var BaseClient = class {
|
|
|
11402
12142
|
return false;
|
|
11403
12143
|
}
|
|
11404
12144
|
}
|
|
12145
|
+
/**
|
|
12146
|
+
* Get the signature format from the server
|
|
12147
|
+
* @param wallet - The wallet address
|
|
12148
|
+
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
12149
|
+
*/
|
|
12150
|
+
async getSignatureFormat(wallet) {
|
|
12151
|
+
const request = new avs_pb20.GetSignatureFormatReq();
|
|
12152
|
+
request.setWallet(wallet);
|
|
12153
|
+
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
12154
|
+
return { message: result.getMessage() };
|
|
12155
|
+
}
|
|
11405
12156
|
/**
|
|
11406
12157
|
* The API key could retrieve a wallet's authKey by skipping its signature verification
|
|
11407
|
-
* @param
|
|
11408
|
-
* @param
|
|
11409
|
-
* @param issuedAt - The issued at timestamp
|
|
11410
|
-
* @param expiredAt - The expiration timestamp
|
|
11411
|
-
* @param apiKey - The API key
|
|
12158
|
+
* @param message - The message to sign, obtained from getSignatureFormat
|
|
12159
|
+
* @param apiKey - The API key used instead of a signature
|
|
11412
12160
|
* @returns {Promise<GetKeyResponse>} - The response from the auth call
|
|
11413
12161
|
*/
|
|
11414
12162
|
async authWithAPIKey({
|
|
11415
|
-
|
|
11416
|
-
address,
|
|
11417
|
-
issuedAt,
|
|
11418
|
-
expiredAt,
|
|
12163
|
+
message,
|
|
11419
12164
|
apiKey
|
|
11420
12165
|
}) {
|
|
11421
|
-
const request = new
|
|
11422
|
-
request.
|
|
11423
|
-
request.setOwner(address);
|
|
11424
|
-
const issueTs = Timestamp.fromDate(issuedAt);
|
|
11425
|
-
const expiredTs = Timestamp.fromDate(expiredAt);
|
|
11426
|
-
request.setIssuedAt(issueTs);
|
|
11427
|
-
request.setExpiredAt(expiredTs);
|
|
12166
|
+
const request = new avs_pb20.GetKeyReq();
|
|
12167
|
+
request.setMessage(message);
|
|
11428
12168
|
request.setSignature(apiKey);
|
|
11429
12169
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
11430
12170
|
return { authKey: result.getKey() };
|
|
11431
12171
|
}
|
|
11432
12172
|
/**
|
|
11433
12173
|
* Getting an authKey from the server by verifying the signature of an EOA wallet
|
|
11434
|
-
* @param
|
|
11435
|
-
* @param
|
|
11436
|
-
* @param issuedAt - The issued at timestamp
|
|
11437
|
-
* @param expiredAt - The expiration timestamp
|
|
11438
|
-
* @param signature - The signature of the EOA wallet
|
|
12174
|
+
* @param message - The message to sign, obtained from getSignatureFormat
|
|
12175
|
+
* @param signature - The signature of the message
|
|
11439
12176
|
* @returns {Promise<GetKeyResponse>} - The response from the auth call
|
|
11440
12177
|
*/
|
|
11441
12178
|
async authWithSignature({
|
|
11442
|
-
|
|
11443
|
-
address,
|
|
11444
|
-
issuedAt,
|
|
11445
|
-
expiredAt,
|
|
12179
|
+
message,
|
|
11446
12180
|
signature
|
|
11447
12181
|
}) {
|
|
11448
|
-
const request = new
|
|
11449
|
-
request.
|
|
11450
|
-
request.setOwner(address);
|
|
11451
|
-
const issueTs = Timestamp.fromDate(issuedAt);
|
|
11452
|
-
const expiredTs = Timestamp.fromDate(expiredAt);
|
|
11453
|
-
request.setIssuedAt(issueTs);
|
|
11454
|
-
request.setExpiredAt(expiredTs);
|
|
12182
|
+
const request = new avs_pb20.GetKeyReq();
|
|
12183
|
+
request.setMessage(message);
|
|
11455
12184
|
request.setSignature(signature);
|
|
11456
12185
|
const result = await this.sendGrpcRequest(
|
|
11457
12186
|
"getKey",
|
|
@@ -11524,7 +12253,7 @@ var Client = class extends BaseClient {
|
|
|
11524
12253
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
11525
12254
|
*/
|
|
11526
12255
|
async getWallets(options) {
|
|
11527
|
-
const request = new
|
|
12256
|
+
const request = new avs_pb20.ListWalletReq();
|
|
11528
12257
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
11529
12258
|
return result.getItemsList().map((item) => item.toObject());
|
|
11530
12259
|
}
|
|
@@ -11536,7 +12265,7 @@ var Client = class extends BaseClient {
|
|
|
11536
12265
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
11537
12266
|
*/
|
|
11538
12267
|
async getWallet({ salt, factoryAddress }, options) {
|
|
11539
|
-
const request = new
|
|
12268
|
+
const request = new avs_pb20.GetWalletReq();
|
|
11540
12269
|
request.setSalt(salt);
|
|
11541
12270
|
if (factoryAddress) {
|
|
11542
12271
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -11548,6 +12277,37 @@ var Client = class extends BaseClient {
|
|
|
11548
12277
|
address: result.getAddress(),
|
|
11549
12278
|
salt: result.getSalt(),
|
|
11550
12279
|
factory: result.getFactoryAddress(),
|
|
12280
|
+
isHidden: result.getIsHidden(),
|
|
12281
|
+
totalTaskCount: result.getTotalTaskCount(),
|
|
12282
|
+
activeTaskCount: result.getActiveTaskCount(),
|
|
12283
|
+
completedTaskCount: result.getCompletedTaskCount(),
|
|
12284
|
+
failedTaskCount: result.getFailedTaskCount(),
|
|
12285
|
+
canceledTaskCount: result.getCanceledTaskCount()
|
|
12286
|
+
};
|
|
12287
|
+
}
|
|
12288
|
+
/**
|
|
12289
|
+
* Set wallet properties including hiding/unhiding a wallet
|
|
12290
|
+
* @param {GetWalletRequest} walletRequest - The wallet request containing salt and optional factory address
|
|
12291
|
+
* @param {object} options - Options for the wallet
|
|
12292
|
+
* @param {boolean} options.isHidden - Whether the wallet should be hidden
|
|
12293
|
+
* @param {RequestOptions} requestOptions - Request options
|
|
12294
|
+
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
12295
|
+
*/
|
|
12296
|
+
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
12297
|
+
const request = new avs_pb20.SetWalletReq();
|
|
12298
|
+
request.setSalt(salt);
|
|
12299
|
+
if (factoryAddress) {
|
|
12300
|
+
request.setFactoryAddress(factoryAddress);
|
|
12301
|
+
} else if (this.factoryAddress) {
|
|
12302
|
+
request.setFactoryAddress(this.factoryAddress);
|
|
12303
|
+
}
|
|
12304
|
+
request.setIsHidden(isHidden);
|
|
12305
|
+
const result = await this.sendGrpcRequest("setWallet", request, requestOptions);
|
|
12306
|
+
return {
|
|
12307
|
+
address: result.getAddress(),
|
|
12308
|
+
salt: result.getSalt(),
|
|
12309
|
+
factory: result.getFactoryAddress(),
|
|
12310
|
+
isHidden: result.getIsHidden(),
|
|
11551
12311
|
totalTaskCount: result.getTotalTaskCount(),
|
|
11552
12312
|
activeTaskCount: result.getActiveTaskCount(),
|
|
11553
12313
|
completedTaskCount: result.getCompletedTaskCount(),
|
|
@@ -11578,14 +12338,14 @@ var Client = class extends BaseClient {
|
|
|
11578
12338
|
* @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
|
|
11579
12339
|
*/
|
|
11580
12340
|
async getWorkflows(addresses, options) {
|
|
11581
|
-
const request = new
|
|
12341
|
+
const request = new avs_pb20.ListTasksReq();
|
|
11582
12342
|
for (const a of addresses) {
|
|
11583
12343
|
request.addSmartWalletAddress(a);
|
|
11584
12344
|
}
|
|
11585
12345
|
if (options?.cursor) {
|
|
11586
12346
|
request.setCursor(options.cursor);
|
|
11587
12347
|
}
|
|
11588
|
-
request.
|
|
12348
|
+
request.setLimit(options?.limit || DEFAULT_LIMIT);
|
|
11589
12349
|
const result = await this.sendGrpcRequest("listTasks", request, options);
|
|
11590
12350
|
return {
|
|
11591
12351
|
cursor: result.getCursor(),
|
|
@@ -11600,7 +12360,7 @@ var Client = class extends BaseClient {
|
|
|
11600
12360
|
* @returns {Promise<number>} - The count of workflows
|
|
11601
12361
|
*/
|
|
11602
12362
|
async getWorkflowCount(addresses, options) {
|
|
11603
|
-
const request = new
|
|
12363
|
+
const request = new avs_pb20.GetWorkflowCountReq();
|
|
11604
12364
|
request.setAddressesList(addresses);
|
|
11605
12365
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
11606
12366
|
return result.getTotal();
|
|
@@ -11615,12 +12375,12 @@ var Client = class extends BaseClient {
|
|
|
11615
12375
|
* @returns {Promise<{ cursor: string; result: Execution[] }>} - The list of Executions
|
|
11616
12376
|
*/
|
|
11617
12377
|
async getExecutions(workflows, options) {
|
|
11618
|
-
const request = new
|
|
12378
|
+
const request = new avs_pb20.ListExecutionsReq();
|
|
11619
12379
|
request.setTaskIdsList(workflows);
|
|
11620
12380
|
if (options?.cursor && options?.cursor != "") {
|
|
11621
12381
|
request.setCursor(options.cursor);
|
|
11622
12382
|
}
|
|
11623
|
-
request.
|
|
12383
|
+
request.setLimit(options?.limit || DEFAULT_LIMIT);
|
|
11624
12384
|
const result = await this.sendGrpcRequest("listExecutions", request, options);
|
|
11625
12385
|
return {
|
|
11626
12386
|
cursor: result.getCursor(),
|
|
@@ -11636,7 +12396,7 @@ var Client = class extends BaseClient {
|
|
|
11636
12396
|
* @returns {Promise<Execution>} - The result execution if it is existed
|
|
11637
12397
|
*/
|
|
11638
12398
|
async getExecution(taskId, executionId, options) {
|
|
11639
|
-
const request = new
|
|
12399
|
+
const request = new avs_pb20.ExecutionReq();
|
|
11640
12400
|
request.setTaskId(taskId);
|
|
11641
12401
|
request.setExecutionId(executionId);
|
|
11642
12402
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -11649,7 +12409,7 @@ var Client = class extends BaseClient {
|
|
|
11649
12409
|
* @returns {Promise<number>} - The count of executions
|
|
11650
12410
|
*/
|
|
11651
12411
|
async getExecutionCount(workflowIds, options) {
|
|
11652
|
-
const request = new
|
|
12412
|
+
const request = new avs_pb20.GetExecutionCountReq();
|
|
11653
12413
|
request.setWorkflowIdsList(workflowIds);
|
|
11654
12414
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
11655
12415
|
return result.getTotal();
|
|
@@ -11665,7 +12425,7 @@ var Client = class extends BaseClient {
|
|
|
11665
12425
|
* @returns {Promise<ExecutionStatus>} - The result execution if it is existed
|
|
11666
12426
|
*/
|
|
11667
12427
|
async getExecutionStatus(taskId, executionId, options) {
|
|
11668
|
-
const request = new
|
|
12428
|
+
const request = new avs_pb20.ExecutionReq();
|
|
11669
12429
|
request.setTaskId(taskId);
|
|
11670
12430
|
request.setExecutionId(executionId);
|
|
11671
12431
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -11678,7 +12438,7 @@ var Client = class extends BaseClient {
|
|
|
11678
12438
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
11679
12439
|
*/
|
|
11680
12440
|
async getWorkflow(id, options) {
|
|
11681
|
-
const request = new
|
|
12441
|
+
const request = new avs_pb20.IdReq();
|
|
11682
12442
|
request.setId(id);
|
|
11683
12443
|
const result = await this.sendGrpcRequest(
|
|
11684
12444
|
"getTask",
|
|
@@ -11700,7 +12460,7 @@ var Client = class extends BaseClient {
|
|
|
11700
12460
|
reason,
|
|
11701
12461
|
isBlocking = false
|
|
11702
12462
|
}, options) {
|
|
11703
|
-
const request = new
|
|
12463
|
+
const request = new avs_pb20.UserTriggerTaskReq();
|
|
11704
12464
|
request.setTaskId(id);
|
|
11705
12465
|
request.setReason(new reason_default(reason).toRequest());
|
|
11706
12466
|
request.setIsBlocking(isBlocking);
|
|
@@ -11714,7 +12474,7 @@ var Client = class extends BaseClient {
|
|
|
11714
12474
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
11715
12475
|
*/
|
|
11716
12476
|
async cancelWorkflow(id, options) {
|
|
11717
|
-
const request = new
|
|
12477
|
+
const request = new avs_pb20.IdReq();
|
|
11718
12478
|
request.setId(id);
|
|
11719
12479
|
const result = await this.sendGrpcRequest(
|
|
11720
12480
|
"cancelTask",
|
|
@@ -11730,7 +12490,7 @@ var Client = class extends BaseClient {
|
|
|
11730
12490
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
11731
12491
|
*/
|
|
11732
12492
|
async deleteWorkflow(id, options) {
|
|
11733
|
-
const request = new
|
|
12493
|
+
const request = new avs_pb20.IdReq();
|
|
11734
12494
|
request.setId(id);
|
|
11735
12495
|
const result = await this.sendGrpcRequest(
|
|
11736
12496
|
"deleteTask",
|
|
@@ -11740,7 +12500,7 @@ var Client = class extends BaseClient {
|
|
|
11740
12500
|
return result.getValue();
|
|
11741
12501
|
}
|
|
11742
12502
|
async createSecret(name, value, options) {
|
|
11743
|
-
const request = new
|
|
12503
|
+
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
11744
12504
|
request.setName(name);
|
|
11745
12505
|
request.setSecret(value);
|
|
11746
12506
|
if (options?.workflowId) {
|
|
@@ -11759,7 +12519,7 @@ var Client = class extends BaseClient {
|
|
|
11759
12519
|
* @returns {Promise<boolean>} - Whether the secret was successfully updated
|
|
11760
12520
|
*/
|
|
11761
12521
|
async updateSecret(name, value, options) {
|
|
11762
|
-
const request = new
|
|
12522
|
+
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
11763
12523
|
request.setName(name);
|
|
11764
12524
|
request.setSecret(value);
|
|
11765
12525
|
if (options?.workflowId) {
|
|
@@ -11772,24 +12532,42 @@ var Client = class extends BaseClient {
|
|
|
11772
12532
|
return result.getValue();
|
|
11773
12533
|
}
|
|
11774
12534
|
/**
|
|
11775
|
-
* Retrieve a list of secrets
|
|
11776
|
-
* @param
|
|
11777
|
-
* @param options -
|
|
11778
|
-
* @
|
|
12535
|
+
* Retrieve a list of secrets with pagination support
|
|
12536
|
+
* @param options - Request options including pagination parameters
|
|
12537
|
+
* @param options.workflowId - Filter secrets by workflow ID
|
|
12538
|
+
* @param options.orgId - Filter secrets by organization ID
|
|
12539
|
+
* @param options.cursor - Legacy cursor parameter (deprecated, use before/after instead)
|
|
12540
|
+
* @param options.before - Get items before this cursor value (for backward pagination)
|
|
12541
|
+
* @param options.after - Get items after this cursor value (for forward pagination)
|
|
12542
|
+
* @param options.itemPerPage - Number of items per page
|
|
12543
|
+
* @returns {Promise<ListSecretsResponse>} - The list of secrets with pagination metadata
|
|
11779
12544
|
*/
|
|
11780
|
-
async
|
|
11781
|
-
const request = new
|
|
12545
|
+
async getSecrets(options) {
|
|
12546
|
+
const request = new avs_pb20.ListSecretsReq();
|
|
11782
12547
|
if (options?.workflowId) {
|
|
11783
12548
|
request.setWorkflowId(options.workflowId);
|
|
11784
12549
|
}
|
|
11785
12550
|
if (options?.orgId) {
|
|
11786
12551
|
}
|
|
12552
|
+
if (options?.itemPerPage) {
|
|
12553
|
+
request.setLimit(options.itemPerPage);
|
|
12554
|
+
}
|
|
12555
|
+
if (options?.after) {
|
|
12556
|
+
request.setAfter(options.after);
|
|
12557
|
+
}
|
|
12558
|
+
if (options?.before) {
|
|
12559
|
+
request.setBefore(options.before);
|
|
12560
|
+
}
|
|
11787
12561
|
const result = await this.sendGrpcRequest("listSecrets", request, options);
|
|
11788
|
-
return
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
12562
|
+
return {
|
|
12563
|
+
items: result.getItemsList().map((item) => ({
|
|
12564
|
+
name: item.getName(),
|
|
12565
|
+
workflowId: item.getWorkflowId(),
|
|
12566
|
+
orgId: item.getOrgId()
|
|
12567
|
+
})),
|
|
12568
|
+
cursor: result.getCursor(),
|
|
12569
|
+
hasMore: result.getHasMore()
|
|
12570
|
+
};
|
|
11793
12571
|
}
|
|
11794
12572
|
/**
|
|
11795
12573
|
* Delete a secret by its name; by default, the secret is deleted from the user scope, derived from the auth key
|
|
@@ -11800,7 +12578,7 @@ var Client = class extends BaseClient {
|
|
|
11800
12578
|
* @returns {Promise<boolean>} - Whether the secret was successfully deleted
|
|
11801
12579
|
*/
|
|
11802
12580
|
async deleteSecret(name, options) {
|
|
11803
|
-
const request = new
|
|
12581
|
+
const request = new avs_pb20.DeleteSecretReq();
|
|
11804
12582
|
request.setName(name);
|
|
11805
12583
|
if (options?.workflowId) {
|
|
11806
12584
|
request.setWorkflowId(options.workflowId);
|
|
@@ -11813,7 +12591,6 @@ var Client = class extends BaseClient {
|
|
|
11813
12591
|
}
|
|
11814
12592
|
};
|
|
11815
12593
|
export {
|
|
11816
|
-
AUTH_KEY_HEADER,
|
|
11817
12594
|
block_default as BlockTrigger,
|
|
11818
12595
|
branch_default as BranchNode,
|
|
11819
12596
|
Client,
|
|
@@ -11822,12 +12599,10 @@ export {
|
|
|
11822
12599
|
cron_default as CronTrigger,
|
|
11823
12600
|
CustomCodeLangs,
|
|
11824
12601
|
customCode_default as CustomCodeNode,
|
|
11825
|
-
DEFAULT_LIMIT,
|
|
11826
12602
|
ethTransfer_default as ETHTransferNode,
|
|
11827
12603
|
edge_default as Edge,
|
|
11828
12604
|
event_default as EventTrigger,
|
|
11829
12605
|
execution_default as Execution,
|
|
11830
|
-
ExecutionStatus2 as ExecutionStatus,
|
|
11831
12606
|
filter_default as FilterNode,
|
|
11832
12607
|
fixedTime_default as FixedTimeTrigger,
|
|
11833
12608
|
graphqlQuery_default as GraphQLQueryNode,
|
|
@@ -11839,7 +12614,5 @@ export {
|
|
|
11839
12614
|
interface_default as Trigger,
|
|
11840
12615
|
factory_default as TriggerFactory,
|
|
11841
12616
|
reason_default as TriggerReason,
|
|
11842
|
-
|
|
11843
|
-
workflow_default as Workflow,
|
|
11844
|
-
WorkflowStatus
|
|
12617
|
+
workflow_default as Workflow
|
|
11845
12618
|
};
|