@avaprotocol/sdk-js 1.6.6 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.d.ts +5 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +793 -492
- package/dist/index.mjs +800 -493
- package/dist/models/node/branch.d.ts +1 -0
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +4 -0
- package/dist/models/node/contractRead.d.ts +1 -0
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +11 -0
- package/dist/models/node/contractWrite.d.ts +1 -0
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +4 -0
- package/dist/models/node/customCode.d.ts +1 -0
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +9 -0
- package/dist/models/node/ethTransfer.d.ts +1 -0
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +4 -0
- package/dist/models/node/factory.d.ts +1 -0
- package/dist/models/node/factory.d.ts.map +1 -1
- package/dist/models/node/factory.js +54 -0
- package/dist/models/node/filter.d.ts +1 -0
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +4 -0
- package/dist/models/node/graphqlQuery.d.ts +1 -0
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +4 -0
- package/dist/models/node/loop.d.ts +1 -0
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +4 -0
- package/dist/models/node/restApi.d.ts +1 -0
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +15 -1
- package/dist/models/trigger/block.d.ts +6 -0
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +9 -0
- package/dist/models/trigger/cron.d.ts +7 -1
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +10 -1
- package/dist/models/trigger/event.d.ts +7 -1
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +10 -1
- package/dist/models/trigger/factory.d.ts +1 -0
- package/dist/models/trigger/factory.d.ts.map +1 -1
- package/dist/models/trigger/factory.js +42 -0
- package/dist/models/trigger/fixedTime.d.ts +7 -1
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +10 -1
- package/dist/models/trigger/interface.d.ts +1 -1
- package/dist/models/trigger/interface.d.ts.map +1 -1
- package/dist/models/trigger/manual.d.ts +13 -0
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +17 -0
- package/dist/utils.d.ts +34 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +116 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -137,6 +137,9 @@ var require_avs_pb = __commonJS({
|
|
|
137
137
|
goog.exportSymbol("proto.aggregator.LoopNode.Config", null, global);
|
|
138
138
|
goog.exportSymbol("proto.aggregator.LoopNode.Output", null, global);
|
|
139
139
|
goog.exportSymbol("proto.aggregator.LoopNode.RunnerCase", null, global);
|
|
140
|
+
goog.exportSymbol("proto.aggregator.ManualTrigger", null, global);
|
|
141
|
+
goog.exportSymbol("proto.aggregator.ManualTrigger.Config", null, global);
|
|
142
|
+
goog.exportSymbol("proto.aggregator.ManualTrigger.Output", null, global);
|
|
140
143
|
goog.exportSymbol("proto.aggregator.NodeType", null, global);
|
|
141
144
|
goog.exportSymbol("proto.aggregator.NonceRequest", null, global);
|
|
142
145
|
goog.exportSymbol("proto.aggregator.NonceResp", null, global);
|
|
@@ -269,6 +272,27 @@ var require_avs_pb = __commonJS({
|
|
|
269
272
|
if (goog.DEBUG && !COMPILED) {
|
|
270
273
|
proto.aggregator.EventTrigger.TransferLogOutput.displayName = "proto.aggregator.EventTrigger.TransferLogOutput";
|
|
271
274
|
}
|
|
275
|
+
proto.aggregator.ManualTrigger = function(opt_data) {
|
|
276
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
277
|
+
};
|
|
278
|
+
goog.inherits(proto.aggregator.ManualTrigger, jspb.Message);
|
|
279
|
+
if (goog.DEBUG && !COMPILED) {
|
|
280
|
+
proto.aggregator.ManualTrigger.displayName = "proto.aggregator.ManualTrigger";
|
|
281
|
+
}
|
|
282
|
+
proto.aggregator.ManualTrigger.Config = function(opt_data) {
|
|
283
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
284
|
+
};
|
|
285
|
+
goog.inherits(proto.aggregator.ManualTrigger.Config, jspb.Message);
|
|
286
|
+
if (goog.DEBUG && !COMPILED) {
|
|
287
|
+
proto.aggregator.ManualTrigger.Config.displayName = "proto.aggregator.ManualTrigger.Config";
|
|
288
|
+
}
|
|
289
|
+
proto.aggregator.ManualTrigger.Output = function(opt_data) {
|
|
290
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
291
|
+
};
|
|
292
|
+
goog.inherits(proto.aggregator.ManualTrigger.Output, jspb.Message);
|
|
293
|
+
if (goog.DEBUG && !COMPILED) {
|
|
294
|
+
proto.aggregator.ManualTrigger.Output.displayName = "proto.aggregator.ManualTrigger.Output";
|
|
295
|
+
}
|
|
272
296
|
proto.aggregator.TaskTrigger = function(opt_data) {
|
|
273
297
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.aggregator.TaskTrigger.oneofGroups_);
|
|
274
298
|
};
|
|
@@ -2359,6 +2383,178 @@ var require_avs_pb = __commonJS({
|
|
|
2359
2383
|
proto.aggregator.EventTrigger.prototype.hasConfig = function() {
|
|
2360
2384
|
return jspb.Message.getField(this, 1) != null;
|
|
2361
2385
|
};
|
|
2386
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2387
|
+
proto.aggregator.ManualTrigger.prototype.toObject = function(opt_includeInstance) {
|
|
2388
|
+
return proto.aggregator.ManualTrigger.toObject(opt_includeInstance, this);
|
|
2389
|
+
};
|
|
2390
|
+
proto.aggregator.ManualTrigger.toObject = function(includeInstance, msg) {
|
|
2391
|
+
var f, obj = {
|
|
2392
|
+
config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
|
|
2393
|
+
};
|
|
2394
|
+
if (includeInstance) {
|
|
2395
|
+
obj.$jspbMessageInstance = msg;
|
|
2396
|
+
}
|
|
2397
|
+
return obj;
|
|
2398
|
+
};
|
|
2399
|
+
}
|
|
2400
|
+
proto.aggregator.ManualTrigger.deserializeBinary = function(bytes) {
|
|
2401
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2402
|
+
var msg = new proto.aggregator.ManualTrigger();
|
|
2403
|
+
return proto.aggregator.ManualTrigger.deserializeBinaryFromReader(msg, reader);
|
|
2404
|
+
};
|
|
2405
|
+
proto.aggregator.ManualTrigger.deserializeBinaryFromReader = function(msg, reader) {
|
|
2406
|
+
while (reader.nextField()) {
|
|
2407
|
+
if (reader.isEndGroup()) {
|
|
2408
|
+
break;
|
|
2409
|
+
}
|
|
2410
|
+
var field = reader.getFieldNumber();
|
|
2411
|
+
switch (field) {
|
|
2412
|
+
case 1:
|
|
2413
|
+
var value = new proto.aggregator.ManualTrigger.Config();
|
|
2414
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader);
|
|
2415
|
+
msg.setConfig(value);
|
|
2416
|
+
break;
|
|
2417
|
+
default:
|
|
2418
|
+
reader.skipField();
|
|
2419
|
+
break;
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
return msg;
|
|
2423
|
+
};
|
|
2424
|
+
proto.aggregator.ManualTrigger.prototype.serializeBinary = function() {
|
|
2425
|
+
var writer = new jspb.BinaryWriter();
|
|
2426
|
+
proto.aggregator.ManualTrigger.serializeBinaryToWriter(this, writer);
|
|
2427
|
+
return writer.getResultBuffer();
|
|
2428
|
+
};
|
|
2429
|
+
proto.aggregator.ManualTrigger.serializeBinaryToWriter = function(message, writer) {
|
|
2430
|
+
var f = void 0;
|
|
2431
|
+
f = message.getConfig();
|
|
2432
|
+
if (f != null) {
|
|
2433
|
+
writer.writeMessage(
|
|
2434
|
+
1,
|
|
2435
|
+
f,
|
|
2436
|
+
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter
|
|
2437
|
+
);
|
|
2438
|
+
}
|
|
2439
|
+
};
|
|
2440
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2441
|
+
proto.aggregator.ManualTrigger.Config.prototype.toObject = function(opt_includeInstance) {
|
|
2442
|
+
return proto.aggregator.ManualTrigger.Config.toObject(opt_includeInstance, this);
|
|
2443
|
+
};
|
|
2444
|
+
proto.aggregator.ManualTrigger.Config.toObject = function(includeInstance, msg) {
|
|
2445
|
+
var f, obj = {};
|
|
2446
|
+
if (includeInstance) {
|
|
2447
|
+
obj.$jspbMessageInstance = msg;
|
|
2448
|
+
}
|
|
2449
|
+
return obj;
|
|
2450
|
+
};
|
|
2451
|
+
}
|
|
2452
|
+
proto.aggregator.ManualTrigger.Config.deserializeBinary = function(bytes) {
|
|
2453
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2454
|
+
var msg = new proto.aggregator.ManualTrigger.Config();
|
|
2455
|
+
return proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader(msg, reader);
|
|
2456
|
+
};
|
|
2457
|
+
proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader = function(msg, reader) {
|
|
2458
|
+
while (reader.nextField()) {
|
|
2459
|
+
if (reader.isEndGroup()) {
|
|
2460
|
+
break;
|
|
2461
|
+
}
|
|
2462
|
+
var field = reader.getFieldNumber();
|
|
2463
|
+
switch (field) {
|
|
2464
|
+
default:
|
|
2465
|
+
reader.skipField();
|
|
2466
|
+
break;
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
return msg;
|
|
2470
|
+
};
|
|
2471
|
+
proto.aggregator.ManualTrigger.Config.prototype.serializeBinary = function() {
|
|
2472
|
+
var writer = new jspb.BinaryWriter();
|
|
2473
|
+
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter(this, writer);
|
|
2474
|
+
return writer.getResultBuffer();
|
|
2475
|
+
};
|
|
2476
|
+
proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter = function(message, writer) {
|
|
2477
|
+
var f = void 0;
|
|
2478
|
+
};
|
|
2479
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2480
|
+
proto.aggregator.ManualTrigger.Output.prototype.toObject = function(opt_includeInstance) {
|
|
2481
|
+
return proto.aggregator.ManualTrigger.Output.toObject(opt_includeInstance, this);
|
|
2482
|
+
};
|
|
2483
|
+
proto.aggregator.ManualTrigger.Output.toObject = function(includeInstance, msg) {
|
|
2484
|
+
var f, obj = {
|
|
2485
|
+
runAt: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
2486
|
+
};
|
|
2487
|
+
if (includeInstance) {
|
|
2488
|
+
obj.$jspbMessageInstance = msg;
|
|
2489
|
+
}
|
|
2490
|
+
return obj;
|
|
2491
|
+
};
|
|
2492
|
+
}
|
|
2493
|
+
proto.aggregator.ManualTrigger.Output.deserializeBinary = function(bytes) {
|
|
2494
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2495
|
+
var msg = new proto.aggregator.ManualTrigger.Output();
|
|
2496
|
+
return proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader(msg, reader);
|
|
2497
|
+
};
|
|
2498
|
+
proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader = function(msg, reader) {
|
|
2499
|
+
while (reader.nextField()) {
|
|
2500
|
+
if (reader.isEndGroup()) {
|
|
2501
|
+
break;
|
|
2502
|
+
}
|
|
2503
|
+
var field = reader.getFieldNumber();
|
|
2504
|
+
switch (field) {
|
|
2505
|
+
case 1:
|
|
2506
|
+
var value = (
|
|
2507
|
+
/** @type {number} */
|
|
2508
|
+
reader.readUint64()
|
|
2509
|
+
);
|
|
2510
|
+
msg.setRunAt(value);
|
|
2511
|
+
break;
|
|
2512
|
+
default:
|
|
2513
|
+
reader.skipField();
|
|
2514
|
+
break;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
return msg;
|
|
2518
|
+
};
|
|
2519
|
+
proto.aggregator.ManualTrigger.Output.prototype.serializeBinary = function() {
|
|
2520
|
+
var writer = new jspb.BinaryWriter();
|
|
2521
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter(this, writer);
|
|
2522
|
+
return writer.getResultBuffer();
|
|
2523
|
+
};
|
|
2524
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter = function(message, writer) {
|
|
2525
|
+
var f = void 0;
|
|
2526
|
+
f = message.getRunAt();
|
|
2527
|
+
if (f !== 0) {
|
|
2528
|
+
writer.writeUint64(
|
|
2529
|
+
1,
|
|
2530
|
+
f
|
|
2531
|
+
);
|
|
2532
|
+
}
|
|
2533
|
+
};
|
|
2534
|
+
proto.aggregator.ManualTrigger.Output.prototype.getRunAt = function() {
|
|
2535
|
+
return (
|
|
2536
|
+
/** @type {number} */
|
|
2537
|
+
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
2538
|
+
);
|
|
2539
|
+
};
|
|
2540
|
+
proto.aggregator.ManualTrigger.Output.prototype.setRunAt = function(value) {
|
|
2541
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2542
|
+
};
|
|
2543
|
+
proto.aggregator.ManualTrigger.prototype.getConfig = function() {
|
|
2544
|
+
return (
|
|
2545
|
+
/** @type{?proto.aggregator.ManualTrigger.Config} */
|
|
2546
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Config, 1)
|
|
2547
|
+
);
|
|
2548
|
+
};
|
|
2549
|
+
proto.aggregator.ManualTrigger.prototype.setConfig = function(value) {
|
|
2550
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2551
|
+
};
|
|
2552
|
+
proto.aggregator.ManualTrigger.prototype.clearConfig = function() {
|
|
2553
|
+
return this.setConfig(void 0);
|
|
2554
|
+
};
|
|
2555
|
+
proto.aggregator.ManualTrigger.prototype.hasConfig = function() {
|
|
2556
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2557
|
+
};
|
|
2362
2558
|
proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
|
|
2363
2559
|
proto.aggregator.TaskTrigger.TriggerTypeCase = {
|
|
2364
2560
|
TRIGGER_TYPE_NOT_SET: 0,
|
|
@@ -3838,7 +4034,7 @@ var require_avs_pb = __commonJS({
|
|
|
3838
4034
|
};
|
|
3839
4035
|
proto.aggregator.RestAPINode.Output.toObject = function(includeInstance, msg) {
|
|
3840
4036
|
var f, obj = {
|
|
3841
|
-
data: (f = msg.getData()) &&
|
|
4037
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb.Value.toObject(includeInstance, f)
|
|
3842
4038
|
};
|
|
3843
4039
|
if (includeInstance) {
|
|
3844
4040
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3859,8 +4055,8 @@ var require_avs_pb = __commonJS({
|
|
|
3859
4055
|
var field = reader.getFieldNumber();
|
|
3860
4056
|
switch (field) {
|
|
3861
4057
|
case 1:
|
|
3862
|
-
var value = new
|
|
3863
|
-
reader.readMessage(value,
|
|
4058
|
+
var value = new google_protobuf_struct_pb.Value();
|
|
4059
|
+
reader.readMessage(value, google_protobuf_struct_pb.Value.deserializeBinaryFromReader);
|
|
3864
4060
|
msg.setData(value);
|
|
3865
4061
|
break;
|
|
3866
4062
|
default:
|
|
@@ -3882,14 +4078,14 @@ var require_avs_pb = __commonJS({
|
|
|
3882
4078
|
writer.writeMessage(
|
|
3883
4079
|
1,
|
|
3884
4080
|
f,
|
|
3885
|
-
|
|
4081
|
+
google_protobuf_struct_pb.Value.serializeBinaryToWriter
|
|
3886
4082
|
);
|
|
3887
4083
|
}
|
|
3888
4084
|
};
|
|
3889
4085
|
proto.aggregator.RestAPINode.Output.prototype.getData = function() {
|
|
3890
4086
|
return (
|
|
3891
|
-
/** @type{?proto.google.protobuf.
|
|
3892
|
-
jspb.Message.getWrapperField(this,
|
|
4087
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
4088
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Value, 1)
|
|
3893
4089
|
);
|
|
3894
4090
|
};
|
|
3895
4091
|
proto.aggregator.RestAPINode.Output.prototype.setData = function(value) {
|
|
@@ -11463,13 +11659,14 @@ var require_avs_pb = __commonJS({
|
|
|
11463
11659
|
this.getTriggerConfigMap().clear();
|
|
11464
11660
|
return this;
|
|
11465
11661
|
};
|
|
11466
|
-
proto.aggregator.RunTriggerResp.oneofGroups_ = [[10, 11, 12, 13]];
|
|
11662
|
+
proto.aggregator.RunTriggerResp.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
11467
11663
|
proto.aggregator.RunTriggerResp.OutputDataCase = {
|
|
11468
11664
|
OUTPUT_DATA_NOT_SET: 0,
|
|
11469
11665
|
BLOCK_TRIGGER: 10,
|
|
11470
11666
|
FIXED_TIME_TRIGGER: 11,
|
|
11471
11667
|
CRON_TRIGGER: 12,
|
|
11472
|
-
EVENT_TRIGGER: 13
|
|
11668
|
+
EVENT_TRIGGER: 13,
|
|
11669
|
+
MANUAL_TRIGGER: 14
|
|
11473
11670
|
};
|
|
11474
11671
|
proto.aggregator.RunTriggerResp.prototype.getOutputDataCase = function() {
|
|
11475
11672
|
return (
|
|
@@ -11489,7 +11686,8 @@ var require_avs_pb = __commonJS({
|
|
|
11489
11686
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
11490
11687
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
11491
11688
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
11492
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f)
|
|
11689
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
11690
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f)
|
|
11493
11691
|
};
|
|
11494
11692
|
if (includeInstance) {
|
|
11495
11693
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11550,6 +11748,11 @@ var require_avs_pb = __commonJS({
|
|
|
11550
11748
|
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
11551
11749
|
msg.setEventTrigger(value);
|
|
11552
11750
|
break;
|
|
11751
|
+
case 14:
|
|
11752
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
11753
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
11754
|
+
msg.setManualTrigger(value);
|
|
11755
|
+
break;
|
|
11553
11756
|
default:
|
|
11554
11757
|
reader.skipField();
|
|
11555
11758
|
break;
|
|
@@ -11617,6 +11820,14 @@ var require_avs_pb = __commonJS({
|
|
|
11617
11820
|
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
11618
11821
|
);
|
|
11619
11822
|
}
|
|
11823
|
+
f = message.getManualTrigger();
|
|
11824
|
+
if (f != null) {
|
|
11825
|
+
writer.writeMessage(
|
|
11826
|
+
14,
|
|
11827
|
+
f,
|
|
11828
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
11829
|
+
);
|
|
11830
|
+
}
|
|
11620
11831
|
};
|
|
11621
11832
|
proto.aggregator.RunTriggerResp.prototype.getSuccess = function() {
|
|
11622
11833
|
return (
|
|
@@ -11705,6 +11916,21 @@ var require_avs_pb = __commonJS({
|
|
|
11705
11916
|
proto.aggregator.RunTriggerResp.prototype.hasEventTrigger = function() {
|
|
11706
11917
|
return jspb.Message.getField(this, 13) != null;
|
|
11707
11918
|
};
|
|
11919
|
+
proto.aggregator.RunTriggerResp.prototype.getManualTrigger = function() {
|
|
11920
|
+
return (
|
|
11921
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
11922
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 14)
|
|
11923
|
+
);
|
|
11924
|
+
};
|
|
11925
|
+
proto.aggregator.RunTriggerResp.prototype.setManualTrigger = function(value) {
|
|
11926
|
+
return jspb.Message.setOneofWrapperField(this, 14, proto.aggregator.RunTriggerResp.oneofGroups_[0], value);
|
|
11927
|
+
};
|
|
11928
|
+
proto.aggregator.RunTriggerResp.prototype.clearManualTrigger = function() {
|
|
11929
|
+
return this.setManualTrigger(void 0);
|
|
11930
|
+
};
|
|
11931
|
+
proto.aggregator.RunTriggerResp.prototype.hasManualTrigger = function() {
|
|
11932
|
+
return jspb.Message.getField(this, 14) != null;
|
|
11933
|
+
};
|
|
11708
11934
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11709
11935
|
proto.aggregator.Evm.prototype.toObject = function(opt_includeInstance) {
|
|
11710
11936
|
return proto.aggregator.Evm.toObject(opt_includeInstance, this);
|
|
@@ -12844,352 +13070,352 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
12844
13070
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
12845
13071
|
"use strict";
|
|
12846
13072
|
var grpc = require("@grpc/grpc-js");
|
|
12847
|
-
var
|
|
13073
|
+
var avs_pb25 = require_avs_pb();
|
|
12848
13074
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
12849
13075
|
var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
12850
13076
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
12851
13077
|
var google_protobuf_struct_pb = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
12852
13078
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
12853
|
-
if (!(arg instanceof
|
|
13079
|
+
if (!(arg instanceof avs_pb25.CreateOrUpdateSecretReq)) {
|
|
12854
13080
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
12855
13081
|
}
|
|
12856
13082
|
return Buffer.from(arg.serializeBinary());
|
|
12857
13083
|
}
|
|
12858
13084
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
12859
|
-
return
|
|
13085
|
+
return avs_pb25.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12860
13086
|
}
|
|
12861
13087
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
12862
|
-
if (!(arg instanceof
|
|
13088
|
+
if (!(arg instanceof avs_pb25.CreateTaskReq)) {
|
|
12863
13089
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
12864
13090
|
}
|
|
12865
13091
|
return Buffer.from(arg.serializeBinary());
|
|
12866
13092
|
}
|
|
12867
13093
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
12868
|
-
return
|
|
13094
|
+
return avs_pb25.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12869
13095
|
}
|
|
12870
13096
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
12871
|
-
if (!(arg instanceof
|
|
13097
|
+
if (!(arg instanceof avs_pb25.CreateTaskResp)) {
|
|
12872
13098
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
12873
13099
|
}
|
|
12874
13100
|
return Buffer.from(arg.serializeBinary());
|
|
12875
13101
|
}
|
|
12876
13102
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
12877
|
-
return
|
|
13103
|
+
return avs_pb25.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12878
13104
|
}
|
|
12879
13105
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
12880
|
-
if (!(arg instanceof
|
|
13106
|
+
if (!(arg instanceof avs_pb25.DeleteSecretReq)) {
|
|
12881
13107
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
12882
13108
|
}
|
|
12883
13109
|
return Buffer.from(arg.serializeBinary());
|
|
12884
13110
|
}
|
|
12885
13111
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
12886
|
-
return
|
|
13112
|
+
return avs_pb25.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12887
13113
|
}
|
|
12888
13114
|
function serialize_aggregator_Execution(arg) {
|
|
12889
|
-
if (!(arg instanceof
|
|
13115
|
+
if (!(arg instanceof avs_pb25.Execution)) {
|
|
12890
13116
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
12891
13117
|
}
|
|
12892
13118
|
return Buffer.from(arg.serializeBinary());
|
|
12893
13119
|
}
|
|
12894
13120
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
12895
|
-
return
|
|
13121
|
+
return avs_pb25.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12896
13122
|
}
|
|
12897
13123
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
12898
|
-
if (!(arg instanceof
|
|
13124
|
+
if (!(arg instanceof avs_pb25.ExecutionReq)) {
|
|
12899
13125
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
12900
13126
|
}
|
|
12901
13127
|
return Buffer.from(arg.serializeBinary());
|
|
12902
13128
|
}
|
|
12903
13129
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
12904
|
-
return
|
|
13130
|
+
return avs_pb25.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12905
13131
|
}
|
|
12906
13132
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
12907
|
-
if (!(arg instanceof
|
|
13133
|
+
if (!(arg instanceof avs_pb25.ExecutionStatusResp)) {
|
|
12908
13134
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
12909
13135
|
}
|
|
12910
13136
|
return Buffer.from(arg.serializeBinary());
|
|
12911
13137
|
}
|
|
12912
13138
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
12913
|
-
return
|
|
13139
|
+
return avs_pb25.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12914
13140
|
}
|
|
12915
13141
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
12916
|
-
if (!(arg instanceof
|
|
13142
|
+
if (!(arg instanceof avs_pb25.GetExecutionCountReq)) {
|
|
12917
13143
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
12918
13144
|
}
|
|
12919
13145
|
return Buffer.from(arg.serializeBinary());
|
|
12920
13146
|
}
|
|
12921
13147
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
12922
|
-
return
|
|
13148
|
+
return avs_pb25.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12923
13149
|
}
|
|
12924
13150
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
12925
|
-
if (!(arg instanceof
|
|
13151
|
+
if (!(arg instanceof avs_pb25.GetExecutionCountResp)) {
|
|
12926
13152
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
12927
13153
|
}
|
|
12928
13154
|
return Buffer.from(arg.serializeBinary());
|
|
12929
13155
|
}
|
|
12930
13156
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
12931
|
-
return
|
|
13157
|
+
return avs_pb25.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12932
13158
|
}
|
|
12933
13159
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
12934
|
-
if (!(arg instanceof
|
|
13160
|
+
if (!(arg instanceof avs_pb25.GetExecutionStatsReq)) {
|
|
12935
13161
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
12936
13162
|
}
|
|
12937
13163
|
return Buffer.from(arg.serializeBinary());
|
|
12938
13164
|
}
|
|
12939
13165
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
12940
|
-
return
|
|
13166
|
+
return avs_pb25.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12941
13167
|
}
|
|
12942
13168
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
12943
|
-
if (!(arg instanceof
|
|
13169
|
+
if (!(arg instanceof avs_pb25.GetExecutionStatsResp)) {
|
|
12944
13170
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
12945
13171
|
}
|
|
12946
13172
|
return Buffer.from(arg.serializeBinary());
|
|
12947
13173
|
}
|
|
12948
13174
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
12949
|
-
return
|
|
13175
|
+
return avs_pb25.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12950
13176
|
}
|
|
12951
13177
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
12952
|
-
if (!(arg instanceof
|
|
13178
|
+
if (!(arg instanceof avs_pb25.GetKeyReq)) {
|
|
12953
13179
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
12954
13180
|
}
|
|
12955
13181
|
return Buffer.from(arg.serializeBinary());
|
|
12956
13182
|
}
|
|
12957
13183
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
12958
|
-
return
|
|
13184
|
+
return avs_pb25.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12959
13185
|
}
|
|
12960
13186
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
12961
|
-
if (!(arg instanceof
|
|
13187
|
+
if (!(arg instanceof avs_pb25.GetSignatureFormatReq)) {
|
|
12962
13188
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
12963
13189
|
}
|
|
12964
13190
|
return Buffer.from(arg.serializeBinary());
|
|
12965
13191
|
}
|
|
12966
13192
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
12967
|
-
return
|
|
13193
|
+
return avs_pb25.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12968
13194
|
}
|
|
12969
13195
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
12970
|
-
if (!(arg instanceof
|
|
13196
|
+
if (!(arg instanceof avs_pb25.GetSignatureFormatResp)) {
|
|
12971
13197
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
12972
13198
|
}
|
|
12973
13199
|
return Buffer.from(arg.serializeBinary());
|
|
12974
13200
|
}
|
|
12975
13201
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
12976
|
-
return
|
|
13202
|
+
return avs_pb25.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12977
13203
|
}
|
|
12978
13204
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
12979
|
-
if (!(arg instanceof
|
|
13205
|
+
if (!(arg instanceof avs_pb25.GetWalletReq)) {
|
|
12980
13206
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
12981
13207
|
}
|
|
12982
13208
|
return Buffer.from(arg.serializeBinary());
|
|
12983
13209
|
}
|
|
12984
13210
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
12985
|
-
return
|
|
13211
|
+
return avs_pb25.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12986
13212
|
}
|
|
12987
13213
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
12988
|
-
if (!(arg instanceof
|
|
13214
|
+
if (!(arg instanceof avs_pb25.GetWalletResp)) {
|
|
12989
13215
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
12990
13216
|
}
|
|
12991
13217
|
return Buffer.from(arg.serializeBinary());
|
|
12992
13218
|
}
|
|
12993
13219
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
12994
|
-
return
|
|
13220
|
+
return avs_pb25.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
12995
13221
|
}
|
|
12996
13222
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
12997
|
-
if (!(arg instanceof
|
|
13223
|
+
if (!(arg instanceof avs_pb25.GetWorkflowCountReq)) {
|
|
12998
13224
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
12999
13225
|
}
|
|
13000
13226
|
return Buffer.from(arg.serializeBinary());
|
|
13001
13227
|
}
|
|
13002
13228
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
13003
|
-
return
|
|
13229
|
+
return avs_pb25.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13004
13230
|
}
|
|
13005
13231
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
13006
|
-
if (!(arg instanceof
|
|
13232
|
+
if (!(arg instanceof avs_pb25.GetWorkflowCountResp)) {
|
|
13007
13233
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
13008
13234
|
}
|
|
13009
13235
|
return Buffer.from(arg.serializeBinary());
|
|
13010
13236
|
}
|
|
13011
13237
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
13012
|
-
return
|
|
13238
|
+
return avs_pb25.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13013
13239
|
}
|
|
13014
13240
|
function serialize_aggregator_IdReq(arg) {
|
|
13015
|
-
if (!(arg instanceof
|
|
13241
|
+
if (!(arg instanceof avs_pb25.IdReq)) {
|
|
13016
13242
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
13017
13243
|
}
|
|
13018
13244
|
return Buffer.from(arg.serializeBinary());
|
|
13019
13245
|
}
|
|
13020
13246
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
13021
|
-
return
|
|
13247
|
+
return avs_pb25.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13022
13248
|
}
|
|
13023
13249
|
function serialize_aggregator_KeyResp(arg) {
|
|
13024
|
-
if (!(arg instanceof
|
|
13250
|
+
if (!(arg instanceof avs_pb25.KeyResp)) {
|
|
13025
13251
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
13026
13252
|
}
|
|
13027
13253
|
return Buffer.from(arg.serializeBinary());
|
|
13028
13254
|
}
|
|
13029
13255
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
13030
|
-
return
|
|
13256
|
+
return avs_pb25.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13031
13257
|
}
|
|
13032
13258
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
13033
|
-
if (!(arg instanceof
|
|
13259
|
+
if (!(arg instanceof avs_pb25.ListExecutionsReq)) {
|
|
13034
13260
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
13035
13261
|
}
|
|
13036
13262
|
return Buffer.from(arg.serializeBinary());
|
|
13037
13263
|
}
|
|
13038
13264
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
13039
|
-
return
|
|
13265
|
+
return avs_pb25.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13040
13266
|
}
|
|
13041
13267
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
13042
|
-
if (!(arg instanceof
|
|
13268
|
+
if (!(arg instanceof avs_pb25.ListExecutionsResp)) {
|
|
13043
13269
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
13044
13270
|
}
|
|
13045
13271
|
return Buffer.from(arg.serializeBinary());
|
|
13046
13272
|
}
|
|
13047
13273
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
13048
|
-
return
|
|
13274
|
+
return avs_pb25.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13049
13275
|
}
|
|
13050
13276
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
13051
|
-
if (!(arg instanceof
|
|
13277
|
+
if (!(arg instanceof avs_pb25.ListSecretsReq)) {
|
|
13052
13278
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
13053
13279
|
}
|
|
13054
13280
|
return Buffer.from(arg.serializeBinary());
|
|
13055
13281
|
}
|
|
13056
13282
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
13057
|
-
return
|
|
13283
|
+
return avs_pb25.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13058
13284
|
}
|
|
13059
13285
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
13060
|
-
if (!(arg instanceof
|
|
13286
|
+
if (!(arg instanceof avs_pb25.ListSecretsResp)) {
|
|
13061
13287
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
13062
13288
|
}
|
|
13063
13289
|
return Buffer.from(arg.serializeBinary());
|
|
13064
13290
|
}
|
|
13065
13291
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
13066
|
-
return
|
|
13292
|
+
return avs_pb25.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13067
13293
|
}
|
|
13068
13294
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
13069
|
-
if (!(arg instanceof
|
|
13295
|
+
if (!(arg instanceof avs_pb25.ListTasksReq)) {
|
|
13070
13296
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
13071
13297
|
}
|
|
13072
13298
|
return Buffer.from(arg.serializeBinary());
|
|
13073
13299
|
}
|
|
13074
13300
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
13075
|
-
return
|
|
13301
|
+
return avs_pb25.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13076
13302
|
}
|
|
13077
13303
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
13078
|
-
if (!(arg instanceof
|
|
13304
|
+
if (!(arg instanceof avs_pb25.ListTasksResp)) {
|
|
13079
13305
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
13080
13306
|
}
|
|
13081
13307
|
return Buffer.from(arg.serializeBinary());
|
|
13082
13308
|
}
|
|
13083
13309
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
13084
|
-
return
|
|
13310
|
+
return avs_pb25.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13085
13311
|
}
|
|
13086
13312
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
13087
|
-
if (!(arg instanceof
|
|
13313
|
+
if (!(arg instanceof avs_pb25.ListWalletReq)) {
|
|
13088
13314
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
13089
13315
|
}
|
|
13090
13316
|
return Buffer.from(arg.serializeBinary());
|
|
13091
13317
|
}
|
|
13092
13318
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
13093
|
-
return
|
|
13319
|
+
return avs_pb25.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13094
13320
|
}
|
|
13095
13321
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
13096
|
-
if (!(arg instanceof
|
|
13322
|
+
if (!(arg instanceof avs_pb25.ListWalletResp)) {
|
|
13097
13323
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
13098
13324
|
}
|
|
13099
13325
|
return Buffer.from(arg.serializeBinary());
|
|
13100
13326
|
}
|
|
13101
13327
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
13102
|
-
return
|
|
13328
|
+
return avs_pb25.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13103
13329
|
}
|
|
13104
13330
|
function serialize_aggregator_NonceRequest(arg) {
|
|
13105
|
-
if (!(arg instanceof
|
|
13331
|
+
if (!(arg instanceof avs_pb25.NonceRequest)) {
|
|
13106
13332
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
13107
13333
|
}
|
|
13108
13334
|
return Buffer.from(arg.serializeBinary());
|
|
13109
13335
|
}
|
|
13110
13336
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
13111
|
-
return
|
|
13337
|
+
return avs_pb25.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13112
13338
|
}
|
|
13113
13339
|
function serialize_aggregator_NonceResp(arg) {
|
|
13114
|
-
if (!(arg instanceof
|
|
13340
|
+
if (!(arg instanceof avs_pb25.NonceResp)) {
|
|
13115
13341
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
13116
13342
|
}
|
|
13117
13343
|
return Buffer.from(arg.serializeBinary());
|
|
13118
13344
|
}
|
|
13119
13345
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
13120
|
-
return
|
|
13346
|
+
return avs_pb25.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13121
13347
|
}
|
|
13122
13348
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
13123
|
-
if (!(arg instanceof
|
|
13349
|
+
if (!(arg instanceof avs_pb25.RunNodeWithInputsReq)) {
|
|
13124
13350
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
13125
13351
|
}
|
|
13126
13352
|
return Buffer.from(arg.serializeBinary());
|
|
13127
13353
|
}
|
|
13128
13354
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
13129
|
-
return
|
|
13355
|
+
return avs_pb25.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13130
13356
|
}
|
|
13131
13357
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
13132
|
-
if (!(arg instanceof
|
|
13358
|
+
if (!(arg instanceof avs_pb25.RunNodeWithInputsResp)) {
|
|
13133
13359
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
13134
13360
|
}
|
|
13135
13361
|
return Buffer.from(arg.serializeBinary());
|
|
13136
13362
|
}
|
|
13137
13363
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
13138
|
-
return
|
|
13364
|
+
return avs_pb25.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13139
13365
|
}
|
|
13140
13366
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
13141
|
-
if (!(arg instanceof
|
|
13367
|
+
if (!(arg instanceof avs_pb25.RunTriggerReq)) {
|
|
13142
13368
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
13143
13369
|
}
|
|
13144
13370
|
return Buffer.from(arg.serializeBinary());
|
|
13145
13371
|
}
|
|
13146
13372
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
13147
|
-
return
|
|
13373
|
+
return avs_pb25.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13148
13374
|
}
|
|
13149
13375
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
13150
|
-
if (!(arg instanceof
|
|
13376
|
+
if (!(arg instanceof avs_pb25.RunTriggerResp)) {
|
|
13151
13377
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
13152
13378
|
}
|
|
13153
13379
|
return Buffer.from(arg.serializeBinary());
|
|
13154
13380
|
}
|
|
13155
13381
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
13156
|
-
return
|
|
13382
|
+
return avs_pb25.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13157
13383
|
}
|
|
13158
13384
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
13159
|
-
if (!(arg instanceof
|
|
13385
|
+
if (!(arg instanceof avs_pb25.SetWalletReq)) {
|
|
13160
13386
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
13161
13387
|
}
|
|
13162
13388
|
return Buffer.from(arg.serializeBinary());
|
|
13163
13389
|
}
|
|
13164
13390
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
13165
|
-
return
|
|
13391
|
+
return avs_pb25.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13166
13392
|
}
|
|
13167
13393
|
function serialize_aggregator_Task(arg) {
|
|
13168
|
-
if (!(arg instanceof
|
|
13394
|
+
if (!(arg instanceof avs_pb25.Task)) {
|
|
13169
13395
|
throw new Error("Expected argument of type aggregator.Task");
|
|
13170
13396
|
}
|
|
13171
13397
|
return Buffer.from(arg.serializeBinary());
|
|
13172
13398
|
}
|
|
13173
13399
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
13174
|
-
return
|
|
13400
|
+
return avs_pb25.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13175
13401
|
}
|
|
13176
13402
|
function serialize_aggregator_UserTriggerTaskReq(arg) {
|
|
13177
|
-
if (!(arg instanceof
|
|
13403
|
+
if (!(arg instanceof avs_pb25.UserTriggerTaskReq)) {
|
|
13178
13404
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskReq");
|
|
13179
13405
|
}
|
|
13180
13406
|
return Buffer.from(arg.serializeBinary());
|
|
13181
13407
|
}
|
|
13182
13408
|
function deserialize_aggregator_UserTriggerTaskReq(buffer_arg) {
|
|
13183
|
-
return
|
|
13409
|
+
return avs_pb25.UserTriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13184
13410
|
}
|
|
13185
13411
|
function serialize_aggregator_UserTriggerTaskResp(arg) {
|
|
13186
|
-
if (!(arg instanceof
|
|
13412
|
+
if (!(arg instanceof avs_pb25.UserTriggerTaskResp)) {
|
|
13187
13413
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskResp");
|
|
13188
13414
|
}
|
|
13189
13415
|
return Buffer.from(arg.serializeBinary());
|
|
13190
13416
|
}
|
|
13191
13417
|
function deserialize_aggregator_UserTriggerTaskResp(buffer_arg) {
|
|
13192
|
-
return
|
|
13418
|
+
return avs_pb25.UserTriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13193
13419
|
}
|
|
13194
13420
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
13195
13421
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -13206,8 +13432,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13206
13432
|
path: "/aggregator.Aggregator/GetKey",
|
|
13207
13433
|
requestStream: false,
|
|
13208
13434
|
responseStream: false,
|
|
13209
|
-
requestType:
|
|
13210
|
-
responseType:
|
|
13435
|
+
requestType: avs_pb25.GetKeyReq,
|
|
13436
|
+
responseType: avs_pb25.KeyResp,
|
|
13211
13437
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
13212
13438
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
13213
13439
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -13218,8 +13444,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13218
13444
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
13219
13445
|
requestStream: false,
|
|
13220
13446
|
responseStream: false,
|
|
13221
|
-
requestType:
|
|
13222
|
-
responseType:
|
|
13447
|
+
requestType: avs_pb25.GetSignatureFormatReq,
|
|
13448
|
+
responseType: avs_pb25.GetSignatureFormatResp,
|
|
13223
13449
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
13224
13450
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
13225
13451
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -13230,8 +13456,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13230
13456
|
path: "/aggregator.Aggregator/GetNonce",
|
|
13231
13457
|
requestStream: false,
|
|
13232
13458
|
responseStream: false,
|
|
13233
|
-
requestType:
|
|
13234
|
-
responseType:
|
|
13459
|
+
requestType: avs_pb25.NonceRequest,
|
|
13460
|
+
responseType: avs_pb25.NonceResp,
|
|
13235
13461
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
13236
13462
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
13237
13463
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -13241,8 +13467,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13241
13467
|
path: "/aggregator.Aggregator/GetWallet",
|
|
13242
13468
|
requestStream: false,
|
|
13243
13469
|
responseStream: false,
|
|
13244
|
-
requestType:
|
|
13245
|
-
responseType:
|
|
13470
|
+
requestType: avs_pb25.GetWalletReq,
|
|
13471
|
+
responseType: avs_pb25.GetWalletResp,
|
|
13246
13472
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
13247
13473
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
13248
13474
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13252,8 +13478,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13252
13478
|
path: "/aggregator.Aggregator/SetWallet",
|
|
13253
13479
|
requestStream: false,
|
|
13254
13480
|
responseStream: false,
|
|
13255
|
-
requestType:
|
|
13256
|
-
responseType:
|
|
13481
|
+
requestType: avs_pb25.SetWalletReq,
|
|
13482
|
+
responseType: avs_pb25.GetWalletResp,
|
|
13257
13483
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
13258
13484
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
13259
13485
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13263,8 +13489,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13263
13489
|
path: "/aggregator.Aggregator/ListWallets",
|
|
13264
13490
|
requestStream: false,
|
|
13265
13491
|
responseStream: false,
|
|
13266
|
-
requestType:
|
|
13267
|
-
responseType:
|
|
13492
|
+
requestType: avs_pb25.ListWalletReq,
|
|
13493
|
+
responseType: avs_pb25.ListWalletResp,
|
|
13268
13494
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
13269
13495
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
13270
13496
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -13275,8 +13501,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13275
13501
|
path: "/aggregator.Aggregator/CreateTask",
|
|
13276
13502
|
requestStream: false,
|
|
13277
13503
|
responseStream: false,
|
|
13278
|
-
requestType:
|
|
13279
|
-
responseType:
|
|
13504
|
+
requestType: avs_pb25.CreateTaskReq,
|
|
13505
|
+
responseType: avs_pb25.CreateTaskResp,
|
|
13280
13506
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
13281
13507
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
13282
13508
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -13286,8 +13512,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13286
13512
|
path: "/aggregator.Aggregator/ListTasks",
|
|
13287
13513
|
requestStream: false,
|
|
13288
13514
|
responseStream: false,
|
|
13289
|
-
requestType:
|
|
13290
|
-
responseType:
|
|
13515
|
+
requestType: avs_pb25.ListTasksReq,
|
|
13516
|
+
responseType: avs_pb25.ListTasksResp,
|
|
13291
13517
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
13292
13518
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
13293
13519
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -13297,8 +13523,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13297
13523
|
path: "/aggregator.Aggregator/GetTask",
|
|
13298
13524
|
requestStream: false,
|
|
13299
13525
|
responseStream: false,
|
|
13300
|
-
requestType:
|
|
13301
|
-
responseType:
|
|
13526
|
+
requestType: avs_pb25.IdReq,
|
|
13527
|
+
responseType: avs_pb25.Task,
|
|
13302
13528
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13303
13529
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
13304
13530
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -13308,8 +13534,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13308
13534
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
13309
13535
|
requestStream: false,
|
|
13310
13536
|
responseStream: false,
|
|
13311
|
-
requestType:
|
|
13312
|
-
responseType:
|
|
13537
|
+
requestType: avs_pb25.ListExecutionsReq,
|
|
13538
|
+
responseType: avs_pb25.ListExecutionsResp,
|
|
13313
13539
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
13314
13540
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
13315
13541
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -13319,8 +13545,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13319
13545
|
path: "/aggregator.Aggregator/GetExecution",
|
|
13320
13546
|
requestStream: false,
|
|
13321
13547
|
responseStream: false,
|
|
13322
|
-
requestType:
|
|
13323
|
-
responseType:
|
|
13548
|
+
requestType: avs_pb25.ExecutionReq,
|
|
13549
|
+
responseType: avs_pb25.Execution,
|
|
13324
13550
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13325
13551
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13326
13552
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -13330,8 +13556,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13330
13556
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
13331
13557
|
requestStream: false,
|
|
13332
13558
|
responseStream: false,
|
|
13333
|
-
requestType:
|
|
13334
|
-
responseType:
|
|
13559
|
+
requestType: avs_pb25.ExecutionReq,
|
|
13560
|
+
responseType: avs_pb25.ExecutionStatusResp,
|
|
13335
13561
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13336
13562
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13337
13563
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -13341,7 +13567,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13341
13567
|
path: "/aggregator.Aggregator/CancelTask",
|
|
13342
13568
|
requestStream: false,
|
|
13343
13569
|
responseStream: false,
|
|
13344
|
-
requestType:
|
|
13570
|
+
requestType: avs_pb25.IdReq,
|
|
13345
13571
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13346
13572
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13347
13573
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13352,7 +13578,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13352
13578
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
13353
13579
|
requestStream: false,
|
|
13354
13580
|
responseStream: false,
|
|
13355
|
-
requestType:
|
|
13581
|
+
requestType: avs_pb25.IdReq,
|
|
13356
13582
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13357
13583
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13358
13584
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13363,8 +13589,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13363
13589
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
13364
13590
|
requestStream: false,
|
|
13365
13591
|
responseStream: false,
|
|
13366
|
-
requestType:
|
|
13367
|
-
responseType:
|
|
13592
|
+
requestType: avs_pb25.UserTriggerTaskReq,
|
|
13593
|
+
responseType: avs_pb25.UserTriggerTaskResp,
|
|
13368
13594
|
requestSerialize: serialize_aggregator_UserTriggerTaskReq,
|
|
13369
13595
|
requestDeserialize: deserialize_aggregator_UserTriggerTaskReq,
|
|
13370
13596
|
responseSerialize: serialize_aggregator_UserTriggerTaskResp,
|
|
@@ -13377,7 +13603,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13377
13603
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
13378
13604
|
requestStream: false,
|
|
13379
13605
|
responseStream: false,
|
|
13380
|
-
requestType:
|
|
13606
|
+
requestType: avs_pb25.CreateOrUpdateSecretReq,
|
|
13381
13607
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13382
13608
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13383
13609
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13388,7 +13614,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13388
13614
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
13389
13615
|
requestStream: false,
|
|
13390
13616
|
responseStream: false,
|
|
13391
|
-
requestType:
|
|
13617
|
+
requestType: avs_pb25.DeleteSecretReq,
|
|
13392
13618
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13393
13619
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
13394
13620
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -13401,8 +13627,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13401
13627
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
13402
13628
|
requestStream: false,
|
|
13403
13629
|
responseStream: false,
|
|
13404
|
-
requestType:
|
|
13405
|
-
responseType:
|
|
13630
|
+
requestType: avs_pb25.ListSecretsReq,
|
|
13631
|
+
responseType: avs_pb25.ListSecretsResp,
|
|
13406
13632
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
13407
13633
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
13408
13634
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -13414,7 +13640,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13414
13640
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
13415
13641
|
requestStream: false,
|
|
13416
13642
|
responseStream: false,
|
|
13417
|
-
requestType:
|
|
13643
|
+
requestType: avs_pb25.CreateOrUpdateSecretReq,
|
|
13418
13644
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13419
13645
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13420
13646
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13431,8 +13657,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13431
13657
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
13432
13658
|
requestStream: false,
|
|
13433
13659
|
responseStream: false,
|
|
13434
|
-
requestType:
|
|
13435
|
-
responseType:
|
|
13660
|
+
requestType: avs_pb25.GetWorkflowCountReq,
|
|
13661
|
+
responseType: avs_pb25.GetWorkflowCountResp,
|
|
13436
13662
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
13437
13663
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
13438
13664
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -13446,8 +13672,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13446
13672
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
13447
13673
|
requestStream: false,
|
|
13448
13674
|
responseStream: false,
|
|
13449
|
-
requestType:
|
|
13450
|
-
responseType:
|
|
13675
|
+
requestType: avs_pb25.GetExecutionCountReq,
|
|
13676
|
+
responseType: avs_pb25.GetExecutionCountResp,
|
|
13451
13677
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
13452
13678
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
13453
13679
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -13460,8 +13686,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13460
13686
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
13461
13687
|
requestStream: false,
|
|
13462
13688
|
responseStream: false,
|
|
13463
|
-
requestType:
|
|
13464
|
-
responseType:
|
|
13689
|
+
requestType: avs_pb25.GetExecutionStatsReq,
|
|
13690
|
+
responseType: avs_pb25.GetExecutionStatsResp,
|
|
13465
13691
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
13466
13692
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
13467
13693
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -13472,8 +13698,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13472
13698
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
13473
13699
|
requestStream: false,
|
|
13474
13700
|
responseStream: false,
|
|
13475
|
-
requestType:
|
|
13476
|
-
responseType:
|
|
13701
|
+
requestType: avs_pb25.RunNodeWithInputsReq,
|
|
13702
|
+
responseType: avs_pb25.RunNodeWithInputsResp,
|
|
13477
13703
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
13478
13704
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
13479
13705
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -13484,8 +13710,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13484
13710
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
13485
13711
|
requestStream: false,
|
|
13486
13712
|
responseStream: false,
|
|
13487
|
-
requestType:
|
|
13488
|
-
responseType:
|
|
13713
|
+
requestType: avs_pb25.RunTriggerReq,
|
|
13714
|
+
responseType: avs_pb25.RunTriggerResp,
|
|
13489
13715
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
13490
13716
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
13491
13717
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
@@ -13527,14 +13753,13 @@ __export(index_exports, {
|
|
|
13527
13753
|
Workflow: () => workflow_default
|
|
13528
13754
|
});
|
|
13529
13755
|
module.exports = __toCommonJS(index_exports);
|
|
13530
|
-
var import_lodash4 = __toESM(require("lodash"));
|
|
13531
13756
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
13532
13757
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
13533
|
-
var
|
|
13758
|
+
var avs_pb24 = __toESM(require_avs_pb());
|
|
13534
13759
|
|
|
13535
13760
|
// src/models/workflow.ts
|
|
13536
13761
|
var import_lodash3 = __toESM(require("lodash"));
|
|
13537
|
-
var
|
|
13762
|
+
var avs_pb19 = __toESM(require_avs_pb());
|
|
13538
13763
|
|
|
13539
13764
|
// src/models/edge.ts
|
|
13540
13765
|
var avs_pb = __toESM(require_avs_pb());
|
|
@@ -13557,6 +13782,9 @@ var Edge = class _Edge {
|
|
|
13557
13782
|
};
|
|
13558
13783
|
var edge_default = Edge;
|
|
13559
13784
|
|
|
13785
|
+
// src/models/trigger/factory.ts
|
|
13786
|
+
var avs_pb7 = __toESM(require_avs_pb());
|
|
13787
|
+
|
|
13560
13788
|
// src/models/trigger/block.ts
|
|
13561
13789
|
var avs_pb2 = __toESM(require_avs_pb());
|
|
13562
13790
|
|
|
@@ -13627,6 +13855,15 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
13627
13855
|
getOutput() {
|
|
13628
13856
|
return this.output;
|
|
13629
13857
|
}
|
|
13858
|
+
/**
|
|
13859
|
+
* Extract output data from RunTriggerResp for block triggers
|
|
13860
|
+
* @param outputData - The RunTriggerResp containing block trigger output
|
|
13861
|
+
* @returns Plain JavaScript object with block trigger data
|
|
13862
|
+
*/
|
|
13863
|
+
static fromOutputData(outputData) {
|
|
13864
|
+
const blockOutput = outputData.getBlockTrigger();
|
|
13865
|
+
return blockOutput?.toObject() || null;
|
|
13866
|
+
}
|
|
13630
13867
|
};
|
|
13631
13868
|
var block_default = BlockTrigger2;
|
|
13632
13869
|
|
|
@@ -13669,13 +13906,22 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
13669
13906
|
});
|
|
13670
13907
|
}
|
|
13671
13908
|
/**
|
|
13672
|
-
* Convert raw data from
|
|
13909
|
+
* Convert raw data from runTrigger response to CronOutput format
|
|
13673
13910
|
* @param rawData - The raw data from the gRPC response
|
|
13674
13911
|
* @returns {CronTriggerOutput | undefined} - The converted data
|
|
13675
13912
|
*/
|
|
13676
13913
|
getOutput() {
|
|
13677
13914
|
return this.output;
|
|
13678
13915
|
}
|
|
13916
|
+
/**
|
|
13917
|
+
* Extract output data from RunTriggerResp for cron triggers
|
|
13918
|
+
* @param outputData - The RunTriggerResp containing cron trigger output
|
|
13919
|
+
* @returns Plain JavaScript object with cron trigger data
|
|
13920
|
+
*/
|
|
13921
|
+
static fromOutputData(outputData) {
|
|
13922
|
+
const cronOutput = outputData.getCronTrigger();
|
|
13923
|
+
return cronOutput?.toObject() || null;
|
|
13924
|
+
}
|
|
13679
13925
|
};
|
|
13680
13926
|
var cron_default = CronTrigger2;
|
|
13681
13927
|
|
|
@@ -13743,13 +13989,22 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
13743
13989
|
});
|
|
13744
13990
|
}
|
|
13745
13991
|
/**
|
|
13746
|
-
* Convert raw data from
|
|
13992
|
+
* Convert raw data from runTrigger response to EventOutput format
|
|
13747
13993
|
* @param rawData - The raw data from the gRPC response
|
|
13748
13994
|
* @returns {EventTriggerOutput | undefined} - The converted data
|
|
13749
13995
|
*/
|
|
13750
13996
|
getOutput() {
|
|
13751
13997
|
return this.output;
|
|
13752
13998
|
}
|
|
13999
|
+
/**
|
|
14000
|
+
* Extract output data from RunTriggerResp for event triggers
|
|
14001
|
+
* @param outputData - The RunTriggerResp containing event trigger output
|
|
14002
|
+
* @returns Plain JavaScript object with event trigger data
|
|
14003
|
+
*/
|
|
14004
|
+
static fromOutputData(outputData) {
|
|
14005
|
+
const eventOutput = outputData.getEventTrigger();
|
|
14006
|
+
return eventOutput?.toObject() || null;
|
|
14007
|
+
}
|
|
13753
14008
|
};
|
|
13754
14009
|
var event_default = EventTrigger2;
|
|
13755
14010
|
|
|
@@ -13792,13 +14047,22 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
13792
14047
|
});
|
|
13793
14048
|
}
|
|
13794
14049
|
/**
|
|
13795
|
-
* Convert raw data from
|
|
14050
|
+
* Convert raw data from runTrigger response to FixedTimeOutput format
|
|
13796
14051
|
* @param rawData - The raw data from the gRPC response
|
|
13797
14052
|
* @returns {FixedTimeTriggerOutput | undefined} - The converted data
|
|
13798
14053
|
*/
|
|
13799
14054
|
getOutput() {
|
|
13800
14055
|
return this.output;
|
|
13801
14056
|
}
|
|
14057
|
+
/**
|
|
14058
|
+
* Extract output data from RunTriggerResp for fixed time triggers
|
|
14059
|
+
* @param outputData - The RunTriggerResp containing fixed time trigger output
|
|
14060
|
+
* @returns Plain JavaScript object with fixed time trigger data
|
|
14061
|
+
*/
|
|
14062
|
+
static fromOutputData(outputData) {
|
|
14063
|
+
const fixedTimeOutput = outputData.getFixedTimeTrigger();
|
|
14064
|
+
return fixedTimeOutput?.toObject() || null;
|
|
14065
|
+
}
|
|
13802
14066
|
};
|
|
13803
14067
|
var fixedTime_default = FixedTimeTrigger2;
|
|
13804
14068
|
|
|
@@ -13828,11 +14092,93 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
13828
14092
|
getInputVariables() {
|
|
13829
14093
|
return this.data;
|
|
13830
14094
|
}
|
|
14095
|
+
/**
|
|
14096
|
+
* Convert raw data from runTrigger response to ManualOutput format
|
|
14097
|
+
* @param rawData - The raw data from the gRPC response
|
|
14098
|
+
* @returns {ManualTriggerOutput | undefined} - The converted data
|
|
14099
|
+
*/
|
|
14100
|
+
getOutput() {
|
|
14101
|
+
return this.output;
|
|
14102
|
+
}
|
|
14103
|
+
/**
|
|
14104
|
+
* Extract output data from RunTriggerResp for manual triggers
|
|
14105
|
+
* @param outputData - The RunTriggerResp containing manual trigger output
|
|
14106
|
+
* @returns Plain JavaScript object with manual trigger data
|
|
14107
|
+
*/
|
|
14108
|
+
static fromOutputData(outputData) {
|
|
14109
|
+
const manualOutput = outputData.getManualTrigger();
|
|
14110
|
+
return manualOutput?.toObject() || null;
|
|
14111
|
+
}
|
|
13831
14112
|
};
|
|
13832
14113
|
var manual_default = ManualTrigger;
|
|
13833
14114
|
|
|
13834
14115
|
// src/models/trigger/factory.ts
|
|
13835
14116
|
var import_types6 = require("@avaprotocol/types");
|
|
14117
|
+
|
|
14118
|
+
// src/utils.ts
|
|
14119
|
+
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
14120
|
+
function convertProtobufValueToJs(value) {
|
|
14121
|
+
if (!value) {
|
|
14122
|
+
return void 0;
|
|
14123
|
+
}
|
|
14124
|
+
switch (value.getKindCase()) {
|
|
14125
|
+
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
14126
|
+
return null;
|
|
14127
|
+
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
14128
|
+
return value.getNumberValue();
|
|
14129
|
+
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
14130
|
+
return value.getStringValue();
|
|
14131
|
+
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
14132
|
+
return value.getBoolValue();
|
|
14133
|
+
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
14134
|
+
const struct = value.getStructValue();
|
|
14135
|
+
if (!struct) return {};
|
|
14136
|
+
const jsObj = {};
|
|
14137
|
+
const fields = struct.getFieldsMap();
|
|
14138
|
+
fields.forEach((val, key) => {
|
|
14139
|
+
jsObj[key] = convertProtobufValueToJs(val);
|
|
14140
|
+
});
|
|
14141
|
+
return jsObj;
|
|
14142
|
+
}
|
|
14143
|
+
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
14144
|
+
const list = value.getListValue();
|
|
14145
|
+
if (!list) return [];
|
|
14146
|
+
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
14147
|
+
}
|
|
14148
|
+
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
14149
|
+
default:
|
|
14150
|
+
return void 0;
|
|
14151
|
+
}
|
|
14152
|
+
}
|
|
14153
|
+
function convertJSValueToProtobuf(value) {
|
|
14154
|
+
const protobufValue = new import_struct_pb.Value();
|
|
14155
|
+
if (value === null || value === void 0) {
|
|
14156
|
+
protobufValue.setNullValue(0);
|
|
14157
|
+
} else if (typeof value === "number") {
|
|
14158
|
+
protobufValue.setNumberValue(value);
|
|
14159
|
+
} else if (typeof value === "string") {
|
|
14160
|
+
protobufValue.setStringValue(value);
|
|
14161
|
+
} else if (typeof value === "boolean") {
|
|
14162
|
+
protobufValue.setBoolValue(value);
|
|
14163
|
+
} else if (Array.isArray(value)) {
|
|
14164
|
+
const listValue = new import_struct_pb.ListValue();
|
|
14165
|
+
const convertedValues = value.map((item) => convertJSValueToProtobuf(item));
|
|
14166
|
+
listValue.setValuesList(convertedValues);
|
|
14167
|
+
protobufValue.setListValue(listValue);
|
|
14168
|
+
} else if (typeof value === "object") {
|
|
14169
|
+
const structValue = new import_struct_pb.Struct();
|
|
14170
|
+
const fieldsMap = structValue.getFieldsMap();
|
|
14171
|
+
Object.entries(value).forEach(([key, val]) => {
|
|
14172
|
+
fieldsMap.set(key, convertJSValueToProtobuf(val));
|
|
14173
|
+
});
|
|
14174
|
+
protobufValue.setStructValue(structValue);
|
|
14175
|
+
} else {
|
|
14176
|
+
protobufValue.setStringValue(String(value));
|
|
14177
|
+
}
|
|
14178
|
+
return protobufValue;
|
|
14179
|
+
}
|
|
14180
|
+
|
|
14181
|
+
// src/models/trigger/factory.ts
|
|
13836
14182
|
var TriggerFactory = class {
|
|
13837
14183
|
/**
|
|
13838
14184
|
* Static factory method to create Trigger instances
|
|
@@ -13875,14 +14221,51 @@ var TriggerFactory = class {
|
|
|
13875
14221
|
throw new Error("Unknown trigger type");
|
|
13876
14222
|
}
|
|
13877
14223
|
}
|
|
14224
|
+
static fromOutputData(outputData) {
|
|
14225
|
+
let triggerOutput = null;
|
|
14226
|
+
let rawData = null;
|
|
14227
|
+
switch (outputData.getOutputDataCase()) {
|
|
14228
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.BLOCK_TRIGGER:
|
|
14229
|
+
triggerOutput = outputData.getBlockTrigger();
|
|
14230
|
+
break;
|
|
14231
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
14232
|
+
triggerOutput = outputData.getFixedTimeTrigger();
|
|
14233
|
+
break;
|
|
14234
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.CRON_TRIGGER:
|
|
14235
|
+
triggerOutput = outputData.getCronTrigger();
|
|
14236
|
+
break;
|
|
14237
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.EVENT_TRIGGER:
|
|
14238
|
+
triggerOutput = outputData.getEventTrigger();
|
|
14239
|
+
break;
|
|
14240
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.MANUAL_TRIGGER:
|
|
14241
|
+
triggerOutput = outputData.getManualTrigger();
|
|
14242
|
+
break;
|
|
14243
|
+
case avs_pb7.RunTriggerResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14244
|
+
default:
|
|
14245
|
+
throw new Error(
|
|
14246
|
+
`Unsupported output data case: ${outputData.getOutputDataCase()}`
|
|
14247
|
+
);
|
|
14248
|
+
}
|
|
14249
|
+
if (!triggerOutput) {
|
|
14250
|
+
return null;
|
|
14251
|
+
}
|
|
14252
|
+
if (typeof triggerOutput.getData === "function") {
|
|
14253
|
+
rawData = triggerOutput.getData();
|
|
14254
|
+
if (rawData) {
|
|
14255
|
+
return convertProtobufValueToJs(rawData);
|
|
14256
|
+
}
|
|
14257
|
+
}
|
|
14258
|
+
return triggerOutput.toObject();
|
|
14259
|
+
}
|
|
13878
14260
|
};
|
|
13879
14261
|
var factory_default = TriggerFactory;
|
|
13880
14262
|
|
|
13881
14263
|
// src/models/node/factory.ts
|
|
14264
|
+
var avs_pb18 = __toESM(require_avs_pb());
|
|
13882
14265
|
var import_lodash2 = __toESM(require("lodash"));
|
|
13883
14266
|
|
|
13884
14267
|
// src/models/node/interface.ts
|
|
13885
|
-
var
|
|
14268
|
+
var avs_pb8 = __toESM(require_avs_pb());
|
|
13886
14269
|
var import_types7 = require("@avaprotocol/types");
|
|
13887
14270
|
var import_lodash = __toESM(require("lodash"));
|
|
13888
14271
|
var Node = class {
|
|
@@ -13893,9 +14276,9 @@ var Node = class {
|
|
|
13893
14276
|
this.data = props.data;
|
|
13894
14277
|
}
|
|
13895
14278
|
toRequest() {
|
|
13896
|
-
const request = new
|
|
14279
|
+
const request = new avs_pb8.TaskNode();
|
|
13897
14280
|
const raw = request.serializeBinary();
|
|
13898
|
-
const parsed =
|
|
14281
|
+
const parsed = avs_pb8.TaskNode.deserializeBinary(raw);
|
|
13899
14282
|
if (!import_lodash.default.isEqual(request, parsed)) {
|
|
13900
14283
|
throw new Error("Invalid request object");
|
|
13901
14284
|
}
|
|
@@ -13905,7 +14288,7 @@ var Node = class {
|
|
|
13905
14288
|
var interface_default2 = Node;
|
|
13906
14289
|
|
|
13907
14290
|
// src/models/node/contractWrite.ts
|
|
13908
|
-
var
|
|
14291
|
+
var avs_pb9 = __toESM(require_avs_pb());
|
|
13909
14292
|
var import_types8 = require("@avaprotocol/types");
|
|
13910
14293
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
13911
14294
|
constructor(props) {
|
|
@@ -13920,11 +14303,11 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
13920
14303
|
});
|
|
13921
14304
|
}
|
|
13922
14305
|
toRequest() {
|
|
13923
|
-
const request = new
|
|
14306
|
+
const request = new avs_pb9.TaskNode();
|
|
13924
14307
|
request.setId(this.id);
|
|
13925
14308
|
request.setName(this.name);
|
|
13926
|
-
const nodeData = new
|
|
13927
|
-
const config = new
|
|
14309
|
+
const nodeData = new avs_pb9.ContractWriteNode();
|
|
14310
|
+
const config = new avs_pb9.ContractWriteNode.Config();
|
|
13928
14311
|
config.setContractAddress(this.data.contractAddress);
|
|
13929
14312
|
config.setCallData(this.data.callData);
|
|
13930
14313
|
config.setContractAbi(this.data.contractAbi);
|
|
@@ -13932,11 +14315,15 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
13932
14315
|
request.setContractWrite(nodeData);
|
|
13933
14316
|
return request;
|
|
13934
14317
|
}
|
|
14318
|
+
static fromOutputData(outputData) {
|
|
14319
|
+
const contractWriteOutput = outputData.getContractWrite();
|
|
14320
|
+
return contractWriteOutput?.toObject() || null;
|
|
14321
|
+
}
|
|
13935
14322
|
};
|
|
13936
14323
|
var contractWrite_default = ContractWriteNode2;
|
|
13937
14324
|
|
|
13938
14325
|
// src/models/node/customCode.ts
|
|
13939
|
-
var
|
|
14326
|
+
var avs_pb10 = __toESM(require_avs_pb());
|
|
13940
14327
|
var import_types9 = require("@avaprotocol/types");
|
|
13941
14328
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
13942
14329
|
constructor(props) {
|
|
@@ -13951,22 +14338,29 @@ var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
|
13951
14338
|
});
|
|
13952
14339
|
}
|
|
13953
14340
|
toRequest() {
|
|
13954
|
-
const request = new
|
|
14341
|
+
const request = new avs_pb10.TaskNode();
|
|
13955
14342
|
request.setId(this.id);
|
|
13956
14343
|
request.setName(this.name);
|
|
13957
|
-
const nodeData = new
|
|
13958
|
-
const config = new
|
|
14344
|
+
const nodeData = new avs_pb10.CustomCodeNode();
|
|
14345
|
+
const config = new avs_pb10.CustomCodeNode.Config();
|
|
13959
14346
|
config.setLang(this.data.lang);
|
|
13960
14347
|
config.setSource(this.data.source);
|
|
13961
14348
|
nodeData.setConfig(config);
|
|
13962
14349
|
request.setCustomCode(nodeData);
|
|
13963
14350
|
return request;
|
|
13964
14351
|
}
|
|
14352
|
+
static fromOutputData(outputData) {
|
|
14353
|
+
const customCodeOutput = outputData.getCustomCode();
|
|
14354
|
+
if (customCodeOutput?.getData()) {
|
|
14355
|
+
return convertProtobufValueToJs(customCodeOutput.getData());
|
|
14356
|
+
}
|
|
14357
|
+
return null;
|
|
14358
|
+
}
|
|
13965
14359
|
};
|
|
13966
14360
|
var customCode_default = CustomCodeNode2;
|
|
13967
14361
|
|
|
13968
14362
|
// src/models/node/graphqlQuery.ts
|
|
13969
|
-
var
|
|
14363
|
+
var avs_pb11 = __toESM(require_avs_pb());
|
|
13970
14364
|
var import_types10 = require("@avaprotocol/types");
|
|
13971
14365
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
13972
14366
|
constructor(props) {
|
|
@@ -13985,11 +14379,11 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
13985
14379
|
});
|
|
13986
14380
|
}
|
|
13987
14381
|
toRequest() {
|
|
13988
|
-
const request = new
|
|
14382
|
+
const request = new avs_pb11.TaskNode();
|
|
13989
14383
|
request.setId(this.id);
|
|
13990
14384
|
request.setName(this.name);
|
|
13991
|
-
const nodeData = new
|
|
13992
|
-
const config = new
|
|
14385
|
+
const nodeData = new avs_pb11.GraphQLQueryNode();
|
|
14386
|
+
const config = new avs_pb11.GraphQLQueryNode.Config();
|
|
13993
14387
|
config.setUrl(this.data.url);
|
|
13994
14388
|
config.setQuery(this.data.query);
|
|
13995
14389
|
if (this.data.variablesMap && this.data.variablesMap.length > 0) {
|
|
@@ -14002,11 +14396,15 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
14002
14396
|
request.setGraphqlQuery(nodeData);
|
|
14003
14397
|
return request;
|
|
14004
14398
|
}
|
|
14399
|
+
static fromOutputData(outputData) {
|
|
14400
|
+
const graphqlOutput = outputData.getGraphql();
|
|
14401
|
+
return graphqlOutput?.toObject() || null;
|
|
14402
|
+
}
|
|
14005
14403
|
};
|
|
14006
14404
|
var graphqlQuery_default = GraphQLQueryNode2;
|
|
14007
14405
|
|
|
14008
14406
|
// src/models/node/restApi.ts
|
|
14009
|
-
var
|
|
14407
|
+
var avs_pb12 = __toESM(require_avs_pb());
|
|
14010
14408
|
var import_types11 = require("@avaprotocol/types");
|
|
14011
14409
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
14012
14410
|
constructor(props) {
|
|
@@ -14021,29 +14419,43 @@ var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
|
14021
14419
|
});
|
|
14022
14420
|
}
|
|
14023
14421
|
toRequest() {
|
|
14024
|
-
const request = new
|
|
14422
|
+
const request = new avs_pb12.TaskNode();
|
|
14025
14423
|
request.setId(this.id);
|
|
14026
14424
|
request.setName(this.name);
|
|
14027
|
-
const nodeData = new
|
|
14028
|
-
const config = new
|
|
14425
|
+
const nodeData = new avs_pb12.RestAPINode();
|
|
14426
|
+
const config = new avs_pb12.RestAPINode.Config();
|
|
14029
14427
|
config.setUrl(this.data.url);
|
|
14030
14428
|
config.setMethod(this.data.method);
|
|
14031
14429
|
config.setBody(this.data.body || "");
|
|
14032
14430
|
if (this.data.headersMap && this.data.headersMap.length > 0) {
|
|
14033
14431
|
const headersMap = config.getHeadersMap();
|
|
14034
|
-
this.data.headersMap.forEach(
|
|
14035
|
-
|
|
14036
|
-
|
|
14432
|
+
this.data.headersMap.forEach(
|
|
14433
|
+
([key, value]) => {
|
|
14434
|
+
headersMap.set(key, value);
|
|
14435
|
+
}
|
|
14436
|
+
);
|
|
14037
14437
|
}
|
|
14038
14438
|
nodeData.setConfig(config);
|
|
14039
14439
|
request.setRestApi(nodeData);
|
|
14040
14440
|
return request;
|
|
14041
14441
|
}
|
|
14442
|
+
static fromOutputData(outputData) {
|
|
14443
|
+
const restApiOutput = outputData.getRestApi();
|
|
14444
|
+
if (!restApiOutput) {
|
|
14445
|
+
console.log("Debug RestAPI: No restApiOutput found");
|
|
14446
|
+
return null;
|
|
14447
|
+
}
|
|
14448
|
+
const rawData = restApiOutput.getData();
|
|
14449
|
+
if (rawData) {
|
|
14450
|
+
return convertProtobufValueToJs(rawData);
|
|
14451
|
+
}
|
|
14452
|
+
return restApiOutput.toObject();
|
|
14453
|
+
}
|
|
14042
14454
|
};
|
|
14043
14455
|
var restApi_default = RestAPINode2;
|
|
14044
14456
|
|
|
14045
14457
|
// src/models/node/contractRead.ts
|
|
14046
|
-
var
|
|
14458
|
+
var avs_pb13 = __toESM(require_avs_pb());
|
|
14047
14459
|
var import_types12 = require("@avaprotocol/types");
|
|
14048
14460
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
14049
14461
|
constructor(props) {
|
|
@@ -14058,11 +14470,11 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
14058
14470
|
});
|
|
14059
14471
|
}
|
|
14060
14472
|
toRequest() {
|
|
14061
|
-
const request = new
|
|
14473
|
+
const request = new avs_pb13.TaskNode();
|
|
14062
14474
|
request.setId(this.id);
|
|
14063
14475
|
request.setName(this.name);
|
|
14064
|
-
const nodeData = new
|
|
14065
|
-
const config = new
|
|
14476
|
+
const nodeData = new avs_pb13.ContractReadNode();
|
|
14477
|
+
const config = new avs_pb13.ContractReadNode.Config();
|
|
14066
14478
|
config.setContractAddress(this.data.contractAddress);
|
|
14067
14479
|
config.setCallData(this.data.callData);
|
|
14068
14480
|
config.setContractAbi(this.data.contractAbi);
|
|
@@ -14070,11 +14482,21 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
14070
14482
|
request.setContractRead(nodeData);
|
|
14071
14483
|
return request;
|
|
14072
14484
|
}
|
|
14485
|
+
static fromOutputData(outputData) {
|
|
14486
|
+
const contractReadOutput = outputData.getContractRead();
|
|
14487
|
+
if (contractReadOutput && contractReadOutput.getDataList()) {
|
|
14488
|
+
const dataList = contractReadOutput.getDataList();
|
|
14489
|
+
return {
|
|
14490
|
+
dataList: dataList.map((value) => convertProtobufValueToJs(value))
|
|
14491
|
+
};
|
|
14492
|
+
}
|
|
14493
|
+
return null;
|
|
14494
|
+
}
|
|
14073
14495
|
};
|
|
14074
14496
|
var contractRead_default = ContractReadNode2;
|
|
14075
14497
|
|
|
14076
14498
|
// src/models/node/ethTransfer.ts
|
|
14077
|
-
var
|
|
14499
|
+
var avs_pb14 = __toESM(require_avs_pb());
|
|
14078
14500
|
var import_types13 = require("@avaprotocol/types");
|
|
14079
14501
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
14080
14502
|
constructor(props) {
|
|
@@ -14089,23 +14511,27 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
14089
14511
|
});
|
|
14090
14512
|
}
|
|
14091
14513
|
toRequest() {
|
|
14092
|
-
const request = new
|
|
14514
|
+
const request = new avs_pb14.TaskNode();
|
|
14093
14515
|
request.setId(this.id);
|
|
14094
14516
|
request.setName(this.name);
|
|
14095
|
-
const nodeData = new
|
|
14096
|
-
const config = new
|
|
14517
|
+
const nodeData = new avs_pb14.ETHTransferNode();
|
|
14518
|
+
const config = new avs_pb14.ETHTransferNode.Config();
|
|
14097
14519
|
config.setDestination(this.data.destination);
|
|
14098
14520
|
config.setAmount(this.data.amount);
|
|
14099
14521
|
nodeData.setConfig(config);
|
|
14100
14522
|
request.setEthTransfer(nodeData);
|
|
14101
14523
|
return request;
|
|
14102
14524
|
}
|
|
14525
|
+
static fromOutputData(outputData) {
|
|
14526
|
+
const ethTransferOutput = outputData.getEthTransfer();
|
|
14527
|
+
return ethTransferOutput?.toObject() || null;
|
|
14528
|
+
}
|
|
14103
14529
|
};
|
|
14104
14530
|
var ethTransfer_default = ETHTransferNode2;
|
|
14105
14531
|
|
|
14106
14532
|
// src/models/node/branch.ts
|
|
14107
14533
|
var import_types14 = require("@avaprotocol/types");
|
|
14108
|
-
var
|
|
14534
|
+
var avs_pb15 = __toESM(require_avs_pb());
|
|
14109
14535
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
14110
14536
|
constructor(props) {
|
|
14111
14537
|
super({ ...props, type: import_types14.NodeType.Branch, data: props.data });
|
|
@@ -14119,15 +14545,15 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
14119
14545
|
});
|
|
14120
14546
|
}
|
|
14121
14547
|
toRequest() {
|
|
14122
|
-
const request = new
|
|
14548
|
+
const request = new avs_pb15.TaskNode();
|
|
14123
14549
|
request.setId(this.id);
|
|
14124
14550
|
request.setName(this.name);
|
|
14125
|
-
const nodeData = new
|
|
14126
|
-
const config = new
|
|
14551
|
+
const nodeData = new avs_pb15.BranchNode();
|
|
14552
|
+
const config = new avs_pb15.BranchNode.Config();
|
|
14127
14553
|
if (this.data.conditionsList && this.data.conditionsList.length > 0) {
|
|
14128
14554
|
const conditionsList = this.data.conditionsList.map(
|
|
14129
14555
|
(condition) => {
|
|
14130
|
-
const conditionObj = new
|
|
14556
|
+
const conditionObj = new avs_pb15.BranchNode.Condition();
|
|
14131
14557
|
conditionObj.setId(condition.id);
|
|
14132
14558
|
conditionObj.setType(condition.type);
|
|
14133
14559
|
conditionObj.setExpression(condition.expression);
|
|
@@ -14140,12 +14566,16 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
14140
14566
|
request.setBranch(nodeData);
|
|
14141
14567
|
return request;
|
|
14142
14568
|
}
|
|
14569
|
+
static fromOutputData(outputData) {
|
|
14570
|
+
const branchOutput = outputData.getBranch();
|
|
14571
|
+
return branchOutput?.toObject() || null;
|
|
14572
|
+
}
|
|
14143
14573
|
// TODO: do we need a getConditionId() to avoid exporting BranchNodeData?
|
|
14144
14574
|
};
|
|
14145
14575
|
var branch_default = BranchNode2;
|
|
14146
14576
|
|
|
14147
14577
|
// src/models/node/filter.ts
|
|
14148
|
-
var
|
|
14578
|
+
var avs_pb16 = __toESM(require_avs_pb());
|
|
14149
14579
|
var import_types15 = require("@avaprotocol/types");
|
|
14150
14580
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
14151
14581
|
constructor(props) {
|
|
@@ -14160,22 +14590,26 @@ var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
|
14160
14590
|
});
|
|
14161
14591
|
}
|
|
14162
14592
|
toRequest() {
|
|
14163
|
-
const request = new
|
|
14593
|
+
const request = new avs_pb16.TaskNode();
|
|
14164
14594
|
request.setId(this.id);
|
|
14165
14595
|
request.setName(this.name);
|
|
14166
|
-
const nodeData = new
|
|
14167
|
-
const config = new
|
|
14596
|
+
const nodeData = new avs_pb16.FilterNode();
|
|
14597
|
+
const config = new avs_pb16.FilterNode.Config();
|
|
14168
14598
|
config.setExpression(this.data.expression);
|
|
14169
14599
|
config.setSourceId(this.data.sourceId || "");
|
|
14170
14600
|
nodeData.setConfig(config);
|
|
14171
14601
|
request.setFilter(nodeData);
|
|
14172
14602
|
return request;
|
|
14173
14603
|
}
|
|
14604
|
+
static fromOutputData(outputData) {
|
|
14605
|
+
const filterOutput = outputData.getFilter();
|
|
14606
|
+
return filterOutput?.toObject() || null;
|
|
14607
|
+
}
|
|
14174
14608
|
};
|
|
14175
14609
|
var filter_default = FilterNode2;
|
|
14176
14610
|
|
|
14177
14611
|
// src/models/node/loop.ts
|
|
14178
|
-
var
|
|
14612
|
+
var avs_pb17 = __toESM(require_avs_pb());
|
|
14179
14613
|
var import_types16 = require("@avaprotocol/types");
|
|
14180
14614
|
var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
14181
14615
|
constructor(props) {
|
|
@@ -14206,29 +14640,29 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14206
14640
|
});
|
|
14207
14641
|
}
|
|
14208
14642
|
toRequest() {
|
|
14209
|
-
const node = new
|
|
14210
|
-
const loopNode = new
|
|
14643
|
+
const node = new avs_pb17.TaskNode();
|
|
14644
|
+
const loopNode = new avs_pb17.LoopNode();
|
|
14211
14645
|
node.setId(this.id);
|
|
14212
14646
|
node.setName(this.name);
|
|
14213
14647
|
const data = this.data;
|
|
14214
|
-
const config = new
|
|
14648
|
+
const config = new avs_pb17.LoopNode.Config();
|
|
14215
14649
|
config.setSourceId(data.sourceId || "");
|
|
14216
14650
|
config.setIterVal(data.iterVal || "");
|
|
14217
14651
|
config.setIterKey(data.iterKey || "");
|
|
14218
14652
|
loopNode.setConfig(config);
|
|
14219
14653
|
if (data.ethTransfer) {
|
|
14220
|
-
const ethTransfer = new
|
|
14654
|
+
const ethTransfer = new avs_pb17.ETHTransferNode();
|
|
14221
14655
|
if (data.ethTransfer.config) {
|
|
14222
|
-
const config2 = new
|
|
14656
|
+
const config2 = new avs_pb17.ETHTransferNode.Config();
|
|
14223
14657
|
config2.setDestination(data.ethTransfer.config.destination);
|
|
14224
14658
|
config2.setAmount(data.ethTransfer.config.amount);
|
|
14225
14659
|
ethTransfer.setConfig(config2);
|
|
14226
14660
|
}
|
|
14227
14661
|
loopNode.setEthTransfer(ethTransfer);
|
|
14228
14662
|
} else if (data.contractWrite) {
|
|
14229
|
-
const contractWrite = new
|
|
14663
|
+
const contractWrite = new avs_pb17.ContractWriteNode();
|
|
14230
14664
|
if (data.contractWrite.config) {
|
|
14231
|
-
const config2 = new
|
|
14665
|
+
const config2 = new avs_pb17.ContractWriteNode.Config();
|
|
14232
14666
|
config2.setContractAddress(data.contractWrite.config.contractAddress);
|
|
14233
14667
|
config2.setCallData(data.contractWrite.config.callData);
|
|
14234
14668
|
config2.setContractAbi(data.contractWrite.config.contractAbi);
|
|
@@ -14236,9 +14670,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14236
14670
|
}
|
|
14237
14671
|
loopNode.setContractWrite(contractWrite);
|
|
14238
14672
|
} else if (data.contractRead) {
|
|
14239
|
-
const contractRead = new
|
|
14673
|
+
const contractRead = new avs_pb17.ContractReadNode();
|
|
14240
14674
|
if (data.contractRead.config) {
|
|
14241
|
-
const config2 = new
|
|
14675
|
+
const config2 = new avs_pb17.ContractReadNode.Config();
|
|
14242
14676
|
config2.setContractAddress(data.contractRead.config.contractAddress);
|
|
14243
14677
|
config2.setCallData(data.contractRead.config.callData);
|
|
14244
14678
|
config2.setContractAbi(data.contractRead.config.contractAbi);
|
|
@@ -14246,9 +14680,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14246
14680
|
}
|
|
14247
14681
|
loopNode.setContractRead(contractRead);
|
|
14248
14682
|
} else if (data.graphqlDataQuery) {
|
|
14249
|
-
const graphqlQuery = new
|
|
14683
|
+
const graphqlQuery = new avs_pb17.GraphQLQueryNode();
|
|
14250
14684
|
if (data.graphqlDataQuery.config) {
|
|
14251
|
-
const config2 = new
|
|
14685
|
+
const config2 = new avs_pb17.GraphQLQueryNode.Config();
|
|
14252
14686
|
config2.setUrl(data.graphqlDataQuery.config.url);
|
|
14253
14687
|
config2.setQuery(data.graphqlDataQuery.config.query);
|
|
14254
14688
|
if (data.graphqlDataQuery.config.variablesMap && data.graphqlDataQuery.config.variablesMap.length > 0) {
|
|
@@ -14260,9 +14694,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14260
14694
|
}
|
|
14261
14695
|
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
14262
14696
|
} else if (data.restApi) {
|
|
14263
|
-
const restApi = new
|
|
14697
|
+
const restApi = new avs_pb17.RestAPINode();
|
|
14264
14698
|
if (data.restApi.config) {
|
|
14265
|
-
const config2 = new
|
|
14699
|
+
const config2 = new avs_pb17.RestAPINode.Config();
|
|
14266
14700
|
config2.setUrl(data.restApi.config.url);
|
|
14267
14701
|
config2.setMethod(data.restApi.config.method);
|
|
14268
14702
|
config2.setBody(data.restApi.config.body || "");
|
|
@@ -14275,9 +14709,9 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14275
14709
|
}
|
|
14276
14710
|
loopNode.setRestApi(restApi);
|
|
14277
14711
|
} else if (data.customCode) {
|
|
14278
|
-
const customCode = new
|
|
14712
|
+
const customCode = new avs_pb17.CustomCodeNode();
|
|
14279
14713
|
if (data.customCode.config) {
|
|
14280
|
-
const config2 = new
|
|
14714
|
+
const config2 = new avs_pb17.CustomCodeNode.Config();
|
|
14281
14715
|
config2.setLang(data.customCode.config.lang);
|
|
14282
14716
|
config2.setSource(data.customCode.config.source);
|
|
14283
14717
|
customCode.setConfig(config2);
|
|
@@ -14287,6 +14721,10 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14287
14721
|
node.setLoop(loopNode);
|
|
14288
14722
|
return node;
|
|
14289
14723
|
}
|
|
14724
|
+
static fromOutputData(outputData) {
|
|
14725
|
+
const loopOutput = outputData.getLoop();
|
|
14726
|
+
return loopOutput?.toObject() || null;
|
|
14727
|
+
}
|
|
14290
14728
|
};
|
|
14291
14729
|
var loop_default = LoopNode2;
|
|
14292
14730
|
|
|
@@ -14346,6 +14784,52 @@ var NodeFactory = class {
|
|
|
14346
14784
|
throw new Error(`Unsupported node type: ${raw.getName()}`);
|
|
14347
14785
|
}
|
|
14348
14786
|
}
|
|
14787
|
+
static fromOutputData(outputData) {
|
|
14788
|
+
let nodeOutput = null;
|
|
14789
|
+
let rawData = null;
|
|
14790
|
+
switch (outputData.getOutputDataCase()) {
|
|
14791
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.REST_API:
|
|
14792
|
+
nodeOutput = outputData.getRestApi();
|
|
14793
|
+
break;
|
|
14794
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
|
|
14795
|
+
nodeOutput = outputData.getCustomCode();
|
|
14796
|
+
break;
|
|
14797
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
|
|
14798
|
+
nodeOutput = outputData.getContractRead();
|
|
14799
|
+
break;
|
|
14800
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
|
|
14801
|
+
nodeOutput = outputData.getContractWrite();
|
|
14802
|
+
break;
|
|
14803
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
|
|
14804
|
+
nodeOutput = outputData.getEthTransfer();
|
|
14805
|
+
break;
|
|
14806
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
|
|
14807
|
+
nodeOutput = outputData.getGraphql();
|
|
14808
|
+
break;
|
|
14809
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.BRANCH:
|
|
14810
|
+
nodeOutput = outputData.getBranch();
|
|
14811
|
+
break;
|
|
14812
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.FILTER:
|
|
14813
|
+
nodeOutput = outputData.getFilter();
|
|
14814
|
+
break;
|
|
14815
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.LOOP:
|
|
14816
|
+
nodeOutput = outputData.getLoop();
|
|
14817
|
+
break;
|
|
14818
|
+
case avs_pb18.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14819
|
+
default:
|
|
14820
|
+
throw new Error(`Unsupported output data case: ${outputData.getOutputDataCase()}`);
|
|
14821
|
+
}
|
|
14822
|
+
if (!nodeOutput) {
|
|
14823
|
+
return null;
|
|
14824
|
+
}
|
|
14825
|
+
if (typeof nodeOutput.getData === "function") {
|
|
14826
|
+
rawData = nodeOutput.getData();
|
|
14827
|
+
if (rawData) {
|
|
14828
|
+
return convertProtobufValueToJs(rawData);
|
|
14829
|
+
}
|
|
14830
|
+
}
|
|
14831
|
+
return nodeOutput.toObject();
|
|
14832
|
+
}
|
|
14349
14833
|
};
|
|
14350
14834
|
var factory_default2 = NodeFactory;
|
|
14351
14835
|
|
|
@@ -14353,11 +14837,11 @@ var factory_default2 = NodeFactory;
|
|
|
14353
14837
|
var import_types18 = require("@avaprotocol/types");
|
|
14354
14838
|
function convertStatusToString(status) {
|
|
14355
14839
|
const conversionMap = {
|
|
14356
|
-
[
|
|
14357
|
-
[
|
|
14358
|
-
[
|
|
14359
|
-
[
|
|
14360
|
-
[
|
|
14840
|
+
[avs_pb19.TaskStatus.ACTIVE]: import_types18.WorkflowStatus.Active,
|
|
14841
|
+
[avs_pb19.TaskStatus.COMPLETED]: import_types18.WorkflowStatus.Completed,
|
|
14842
|
+
[avs_pb19.TaskStatus.FAILED]: import_types18.WorkflowStatus.Failed,
|
|
14843
|
+
[avs_pb19.TaskStatus.CANCELED]: import_types18.WorkflowStatus.Canceled,
|
|
14844
|
+
[avs_pb19.TaskStatus.EXECUTING]: import_types18.WorkflowStatus.Executing
|
|
14361
14845
|
};
|
|
14362
14846
|
return conversionMap[status];
|
|
14363
14847
|
}
|
|
@@ -14445,7 +14929,7 @@ var Workflow = class _Workflow {
|
|
|
14445
14929
|
});
|
|
14446
14930
|
}
|
|
14447
14931
|
toRequest() {
|
|
14448
|
-
const request = new
|
|
14932
|
+
const request = new avs_pb19.CreateTaskReq();
|
|
14449
14933
|
request.setSmartWalletAddress(this.smartWalletAddress);
|
|
14450
14934
|
request.setTrigger(this.trigger.toRequest());
|
|
14451
14935
|
import_lodash3.default.map(this.nodes, (node) => request.addNodes(node.toRequest()));
|
|
@@ -14462,19 +14946,19 @@ var Workflow = class _Workflow {
|
|
|
14462
14946
|
var workflow_default = Workflow;
|
|
14463
14947
|
|
|
14464
14948
|
// src/models/execution.ts
|
|
14465
|
-
var
|
|
14949
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
14466
14950
|
|
|
14467
14951
|
// src/models/trigger/reason.ts
|
|
14468
|
-
var
|
|
14952
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
14469
14953
|
var import_types19 = require("@avaprotocol/types");
|
|
14470
14954
|
var convertTriggerType = (grpcType) => {
|
|
14471
14955
|
const conversionMap = {
|
|
14472
|
-
[
|
|
14473
|
-
[
|
|
14474
|
-
[
|
|
14475
|
-
[
|
|
14476
|
-
[
|
|
14477
|
-
[
|
|
14956
|
+
[avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME]: import_types19.TriggerType.FixedTime,
|
|
14957
|
+
[avs_pb20.TriggerType.TRIGGER_TYPE_CRON]: import_types19.TriggerType.Cron,
|
|
14958
|
+
[avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK]: import_types19.TriggerType.Block,
|
|
14959
|
+
[avs_pb20.TriggerType.TRIGGER_TYPE_EVENT]: import_types19.TriggerType.Event,
|
|
14960
|
+
[avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL]: import_types19.TriggerType.Manual,
|
|
14961
|
+
[avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED]: import_types19.TriggerType.Unspecified
|
|
14478
14962
|
};
|
|
14479
14963
|
return conversionMap[grpcType];
|
|
14480
14964
|
};
|
|
@@ -14514,28 +14998,28 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
14514
14998
|
});
|
|
14515
14999
|
}
|
|
14516
15000
|
toRequest() {
|
|
14517
|
-
const request = new
|
|
15001
|
+
const request = new avs_pb20.TriggerReason();
|
|
14518
15002
|
switch (this.type) {
|
|
14519
15003
|
case import_types19.TriggerType.FixedTime:
|
|
14520
|
-
request.setType(
|
|
15004
|
+
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_FIXED_TIME);
|
|
14521
15005
|
if (this.epoch) {
|
|
14522
15006
|
request.setEpoch(this.epoch);
|
|
14523
15007
|
}
|
|
14524
15008
|
break;
|
|
14525
15009
|
case import_types19.TriggerType.Cron:
|
|
14526
|
-
request.setType(
|
|
15010
|
+
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_CRON);
|
|
14527
15011
|
if (this.epoch) {
|
|
14528
15012
|
request.setEpoch(this.epoch);
|
|
14529
15013
|
}
|
|
14530
15014
|
break;
|
|
14531
15015
|
case import_types19.TriggerType.Block:
|
|
14532
|
-
request.setType(
|
|
15016
|
+
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
14533
15017
|
if (this.blockNumber) {
|
|
14534
15018
|
request.setBlockNumber(this.blockNumber);
|
|
14535
15019
|
}
|
|
14536
15020
|
break;
|
|
14537
15021
|
case import_types19.TriggerType.Event:
|
|
14538
|
-
request.setType(
|
|
15022
|
+
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_EVENT);
|
|
14539
15023
|
if (this.blockNumber) {
|
|
14540
15024
|
request.setBlockNumber(this.blockNumber);
|
|
14541
15025
|
}
|
|
@@ -14547,10 +15031,10 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
14547
15031
|
}
|
|
14548
15032
|
break;
|
|
14549
15033
|
case import_types19.TriggerType.Manual:
|
|
14550
|
-
request.setType(
|
|
15034
|
+
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
14551
15035
|
break;
|
|
14552
15036
|
case import_types19.TriggerType.Unspecified:
|
|
14553
|
-
request.setType(
|
|
15037
|
+
request.setType(avs_pb20.TriggerType.TRIGGER_TYPE_UNSPECIFIED);
|
|
14554
15038
|
break;
|
|
14555
15039
|
default:
|
|
14556
15040
|
throw new Error("Unsupported trigger type");
|
|
@@ -14561,45 +15045,7 @@ var TriggerReason2 = class _TriggerReason {
|
|
|
14561
15045
|
var reason_default = TriggerReason2;
|
|
14562
15046
|
|
|
14563
15047
|
// src/models/step.ts
|
|
14564
|
-
var
|
|
14565
|
-
|
|
14566
|
-
// src/utils.ts
|
|
14567
|
-
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
14568
|
-
function convertProtobufValueToJs(value) {
|
|
14569
|
-
if (!value) {
|
|
14570
|
-
return void 0;
|
|
14571
|
-
}
|
|
14572
|
-
switch (value.getKindCase()) {
|
|
14573
|
-
case import_struct_pb.Value.KindCase.NULL_VALUE:
|
|
14574
|
-
return null;
|
|
14575
|
-
case import_struct_pb.Value.KindCase.NUMBER_VALUE:
|
|
14576
|
-
return value.getNumberValue();
|
|
14577
|
-
case import_struct_pb.Value.KindCase.STRING_VALUE:
|
|
14578
|
-
return value.getStringValue();
|
|
14579
|
-
case import_struct_pb.Value.KindCase.BOOL_VALUE:
|
|
14580
|
-
return value.getBoolValue();
|
|
14581
|
-
case import_struct_pb.Value.KindCase.STRUCT_VALUE: {
|
|
14582
|
-
const struct = value.getStructValue();
|
|
14583
|
-
if (!struct) return {};
|
|
14584
|
-
const jsObj = {};
|
|
14585
|
-
const fields = struct.getFieldsMap();
|
|
14586
|
-
fields.forEach((val, key) => {
|
|
14587
|
-
jsObj[key] = convertProtobufValueToJs(val);
|
|
14588
|
-
});
|
|
14589
|
-
return jsObj;
|
|
14590
|
-
}
|
|
14591
|
-
case import_struct_pb.Value.KindCase.LIST_VALUE: {
|
|
14592
|
-
const list = value.getListValue();
|
|
14593
|
-
if (!list) return [];
|
|
14594
|
-
return list.getValuesList().map((item) => convertProtobufValueToJs(item));
|
|
14595
|
-
}
|
|
14596
|
-
case import_struct_pb.Value.KindCase.KIND_NOT_SET:
|
|
14597
|
-
default:
|
|
14598
|
-
return void 0;
|
|
14599
|
-
}
|
|
14600
|
-
}
|
|
14601
|
-
|
|
14602
|
-
// src/models/step.ts
|
|
15048
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
14603
15049
|
var Step = class _Step {
|
|
14604
15050
|
// Changed to any
|
|
14605
15051
|
constructor(props) {
|
|
@@ -14616,37 +15062,37 @@ var Step = class _Step {
|
|
|
14616
15062
|
const outputDataType = step.getOutputDataCase();
|
|
14617
15063
|
let nodeOutputMessage;
|
|
14618
15064
|
switch (outputDataType) {
|
|
14619
|
-
case
|
|
15065
|
+
case avs_pb21.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14620
15066
|
return null;
|
|
14621
|
-
case
|
|
15067
|
+
case avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
14622
15068
|
return step.getEthTransfer()?.toObject();
|
|
14623
15069
|
// Specific structure, not google.protobuf.Value
|
|
14624
|
-
case
|
|
15070
|
+
case avs_pb21.Execution.Step.OutputDataCase.GRAPHQL:
|
|
14625
15071
|
nodeOutputMessage = step.getGraphql();
|
|
14626
15072
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
14627
|
-
case
|
|
15073
|
+
case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
14628
15074
|
nodeOutputMessage = step.getContractRead();
|
|
14629
15075
|
if (nodeOutputMessage) {
|
|
14630
15076
|
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
14631
15077
|
}
|
|
14632
15078
|
return [];
|
|
14633
15079
|
// Default to empty array if no data
|
|
14634
|
-
case
|
|
15080
|
+
case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
14635
15081
|
return step.getContractWrite()?.toObject();
|
|
14636
15082
|
// Specific structure
|
|
14637
|
-
case
|
|
15083
|
+
case avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
14638
15084
|
nodeOutputMessage = step.getCustomCode();
|
|
14639
15085
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
14640
|
-
case
|
|
15086
|
+
case avs_pb21.Execution.Step.OutputDataCase.REST_API:
|
|
14641
15087
|
nodeOutputMessage = step.getRestApi();
|
|
14642
15088
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
14643
|
-
case
|
|
15089
|
+
case avs_pb21.Execution.Step.OutputDataCase.BRANCH:
|
|
14644
15090
|
return step.getBranch()?.toObject();
|
|
14645
15091
|
// Specific structure
|
|
14646
|
-
case
|
|
15092
|
+
case avs_pb21.Execution.Step.OutputDataCase.FILTER:
|
|
14647
15093
|
nodeOutputMessage = step.getFilter();
|
|
14648
15094
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
14649
|
-
case
|
|
15095
|
+
case avs_pb21.Execution.Step.OutputDataCase.LOOP:
|
|
14650
15096
|
return step.getLoop()?.getData();
|
|
14651
15097
|
default:
|
|
14652
15098
|
console.warn(
|
|
@@ -14688,19 +15134,19 @@ var Execution3 = class _Execution {
|
|
|
14688
15134
|
const triggerOutputDataType = execution.getOutputDataCase();
|
|
14689
15135
|
let triggerOutputData;
|
|
14690
15136
|
switch (triggerOutputDataType) {
|
|
14691
|
-
case
|
|
15137
|
+
case avs_pb22.Execution.OutputDataCase.BLOCK_TRIGGER:
|
|
14692
15138
|
const blockOutput = execution.getBlockTrigger()?.toObject();
|
|
14693
15139
|
triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
14694
15140
|
break;
|
|
14695
|
-
case
|
|
15141
|
+
case avs_pb22.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
14696
15142
|
const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
|
|
14697
15143
|
triggerOutputData = fixedTimeOutput ? { epoch: fixedTimeOutput.epoch } : void 0;
|
|
14698
15144
|
break;
|
|
14699
|
-
case
|
|
15145
|
+
case avs_pb22.Execution.OutputDataCase.CRON_TRIGGER:
|
|
14700
15146
|
const cronOutput = execution.getCronTrigger()?.toObject();
|
|
14701
15147
|
triggerOutputData = cronOutput ? { epoch: cronOutput.epoch, scheduleMatched: cronOutput.scheduleMatched } : void 0;
|
|
14702
15148
|
break;
|
|
14703
|
-
case
|
|
15149
|
+
case avs_pb22.Execution.OutputDataCase.EVENT_TRIGGER:
|
|
14704
15150
|
const eventTrigger = execution.getEventTrigger();
|
|
14705
15151
|
if (eventTrigger) {
|
|
14706
15152
|
if (eventTrigger.hasEvmLog()) {
|
|
@@ -14710,7 +15156,7 @@ var Execution3 = class _Execution {
|
|
|
14710
15156
|
}
|
|
14711
15157
|
}
|
|
14712
15158
|
break;
|
|
14713
|
-
case
|
|
15159
|
+
case avs_pb22.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
14714
15160
|
triggerOutputData = void 0;
|
|
14715
15161
|
break;
|
|
14716
15162
|
}
|
|
@@ -14731,7 +15177,7 @@ var Execution3 = class _Execution {
|
|
|
14731
15177
|
var execution_default = Execution3;
|
|
14732
15178
|
|
|
14733
15179
|
// src/models/secret.ts
|
|
14734
|
-
var
|
|
15180
|
+
var avs_pb23 = __toESM(require_avs_pb());
|
|
14735
15181
|
var Secret = class {
|
|
14736
15182
|
constructor(props) {
|
|
14737
15183
|
this.name = props.name;
|
|
@@ -14744,7 +15190,7 @@ var Secret = class {
|
|
|
14744
15190
|
this.description = props.description;
|
|
14745
15191
|
}
|
|
14746
15192
|
toRequest() {
|
|
14747
|
-
const request = new
|
|
15193
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
14748
15194
|
request.setName(this.name);
|
|
14749
15195
|
if (this.secret) {
|
|
14750
15196
|
request.setSecret(this.secret);
|
|
@@ -14795,7 +15241,7 @@ var BaseClient = class {
|
|
|
14795
15241
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
14796
15242
|
*/
|
|
14797
15243
|
async getSignatureFormat(wallet) {
|
|
14798
|
-
const request = new
|
|
15244
|
+
const request = new avs_pb24.GetSignatureFormatReq();
|
|
14799
15245
|
request.setWallet(wallet);
|
|
14800
15246
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
14801
15247
|
return { message: result.getMessage() };
|
|
@@ -14810,7 +15256,7 @@ var BaseClient = class {
|
|
|
14810
15256
|
message,
|
|
14811
15257
|
apiKey
|
|
14812
15258
|
}) {
|
|
14813
|
-
const request = new
|
|
15259
|
+
const request = new avs_pb24.GetKeyReq();
|
|
14814
15260
|
request.setMessage(message);
|
|
14815
15261
|
request.setSignature(apiKey);
|
|
14816
15262
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -14826,7 +15272,7 @@ var BaseClient = class {
|
|
|
14826
15272
|
message,
|
|
14827
15273
|
signature
|
|
14828
15274
|
}) {
|
|
14829
|
-
const request = new
|
|
15275
|
+
const request = new avs_pb24.GetKeyReq();
|
|
14830
15276
|
request.setMessage(message);
|
|
14831
15277
|
request.setSignature(signature);
|
|
14832
15278
|
const result = await this.sendGrpcRequest(
|
|
@@ -14865,112 +15311,32 @@ var BaseClient = class {
|
|
|
14865
15311
|
return this.factoryAddress;
|
|
14866
15312
|
}
|
|
14867
15313
|
/**
|
|
14868
|
-
* Send a gRPC request with
|
|
14869
|
-
* @param method - The method name
|
|
14870
|
-
* @param request - The request
|
|
14871
|
-
* @param options -
|
|
14872
|
-
* @returns {Promise<TResponse>} - The response from the
|
|
15314
|
+
* Send a gRPC request with authentication and error handling
|
|
15315
|
+
* @param method - The method name to call
|
|
15316
|
+
* @param request - The request object
|
|
15317
|
+
* @param options - Request options
|
|
15318
|
+
* @returns {Promise<TResponse>} - The response from the server
|
|
14873
15319
|
*/
|
|
14874
15320
|
sendGrpcRequest(method, request, options) {
|
|
14875
|
-
const metadata = import_lodash4.default.cloneDeep(this.metadata);
|
|
14876
|
-
if (options?.authKey) {
|
|
14877
|
-
metadata.set(import_types21.AUTH_KEY_HEADER, options.authKey);
|
|
14878
|
-
} else if (this.authKey) {
|
|
14879
|
-
metadata.set(import_types21.AUTH_KEY_HEADER, this.authKey);
|
|
14880
|
-
}
|
|
14881
15321
|
return new Promise((resolve, reject) => {
|
|
14882
|
-
|
|
15322
|
+
const metadata = new import_grpc_js.Metadata();
|
|
15323
|
+
const authKey = options?.authKey || this.authKey;
|
|
15324
|
+
if (authKey) {
|
|
15325
|
+
metadata.set(import_types21.AUTH_KEY_HEADER, authKey);
|
|
15326
|
+
}
|
|
15327
|
+
this.rpcClient[method](
|
|
14883
15328
|
request,
|
|
14884
15329
|
metadata,
|
|
14885
15330
|
(error, response) => {
|
|
14886
|
-
if (error)
|
|
14887
|
-
|
|
15331
|
+
if (error) {
|
|
15332
|
+
reject(error);
|
|
15333
|
+
} else {
|
|
15334
|
+
resolve(response);
|
|
15335
|
+
}
|
|
14888
15336
|
}
|
|
14889
15337
|
);
|
|
14890
15338
|
});
|
|
14891
15339
|
}
|
|
14892
|
-
/**
|
|
14893
|
-
* Convert a protobuf Value to a JavaScript value
|
|
14894
|
-
* @param value - The protobuf Value object
|
|
14895
|
-
* @returns {any} - The converted JavaScript value
|
|
14896
|
-
*/
|
|
14897
|
-
convertProtobufValueToJS(value) {
|
|
14898
|
-
if (!value) return null;
|
|
14899
|
-
if (value.hasNullValue && value.hasNullValue()) {
|
|
14900
|
-
return null;
|
|
14901
|
-
}
|
|
14902
|
-
if (value.hasNumberValue && value.hasNumberValue()) {
|
|
14903
|
-
return value.getNumberValue();
|
|
14904
|
-
}
|
|
14905
|
-
if (value.hasStringValue && value.hasStringValue()) {
|
|
14906
|
-
return value.getStringValue();
|
|
14907
|
-
}
|
|
14908
|
-
if (value.hasBoolValue && value.hasBoolValue()) {
|
|
14909
|
-
return value.getBoolValue();
|
|
14910
|
-
}
|
|
14911
|
-
if (value.hasStructValue && value.hasStructValue()) {
|
|
14912
|
-
const struct = value.getStructValue();
|
|
14913
|
-
const result = {};
|
|
14914
|
-
if (struct && struct.getFieldsMap) {
|
|
14915
|
-
const fieldsMap = struct.getFieldsMap();
|
|
14916
|
-
fieldsMap.forEach((fieldValue, key) => {
|
|
14917
|
-
result[key] = this.convertProtobufValueToJS(fieldValue);
|
|
14918
|
-
});
|
|
14919
|
-
}
|
|
14920
|
-
return result;
|
|
14921
|
-
}
|
|
14922
|
-
if (value.hasListValue && value.hasListValue()) {
|
|
14923
|
-
const list = value.getListValue();
|
|
14924
|
-
if (list && list.getValuesList) {
|
|
14925
|
-
return list.getValuesList().map((item) => this.convertProtobufValueToJS(item));
|
|
14926
|
-
}
|
|
14927
|
-
return [];
|
|
14928
|
-
}
|
|
14929
|
-
if (typeof value.getNumberValue === "function") {
|
|
14930
|
-
return value.getNumberValue();
|
|
14931
|
-
}
|
|
14932
|
-
if (typeof value.getStringValue === "function") {
|
|
14933
|
-
return value.getStringValue();
|
|
14934
|
-
}
|
|
14935
|
-
if (typeof value.getBoolValue === "function") {
|
|
14936
|
-
return value.getBoolValue();
|
|
14937
|
-
}
|
|
14938
|
-
return value;
|
|
14939
|
-
}
|
|
14940
|
-
/**
|
|
14941
|
-
* Convert a JavaScript value to a protobuf Value
|
|
14942
|
-
* @param value - The JavaScript value to convert
|
|
14943
|
-
* @returns {any} - The protobuf Value object
|
|
14944
|
-
*/
|
|
14945
|
-
convertJSValueToProtobuf(value) {
|
|
14946
|
-
const protobufValue = new (require("google-protobuf/google/protobuf/struct_pb")).Value();
|
|
14947
|
-
if (value === null || value === void 0) {
|
|
14948
|
-
protobufValue.setNullValue(0);
|
|
14949
|
-
} else if (typeof value === "number") {
|
|
14950
|
-
protobufValue.setNumberValue(value);
|
|
14951
|
-
} else if (typeof value === "string") {
|
|
14952
|
-
protobufValue.setStringValue(value);
|
|
14953
|
-
} else if (typeof value === "boolean") {
|
|
14954
|
-
protobufValue.setBoolValue(value);
|
|
14955
|
-
} else if (Array.isArray(value)) {
|
|
14956
|
-
const listValue = new (require("google-protobuf/google/protobuf/struct_pb")).ListValue();
|
|
14957
|
-
const convertedValues = value.map(
|
|
14958
|
-
(item) => this.convertJSValueToProtobuf(item)
|
|
14959
|
-
);
|
|
14960
|
-
listValue.setValuesList(convertedValues);
|
|
14961
|
-
protobufValue.setListValue(listValue);
|
|
14962
|
-
} else if (typeof value === "object") {
|
|
14963
|
-
const structValue = new (require("google-protobuf/google/protobuf/struct_pb")).Struct();
|
|
14964
|
-
const fieldsMap = structValue.getFieldsMap();
|
|
14965
|
-
Object.entries(value).forEach(([key, val]) => {
|
|
14966
|
-
fieldsMap.set(key, this.convertJSValueToProtobuf(val));
|
|
14967
|
-
});
|
|
14968
|
-
protobufValue.setStructValue(structValue);
|
|
14969
|
-
} else {
|
|
14970
|
-
protobufValue.setStringValue(String(value));
|
|
14971
|
-
}
|
|
14972
|
-
return protobufValue;
|
|
14973
|
-
}
|
|
14974
15340
|
};
|
|
14975
15341
|
var Client = class extends BaseClient {
|
|
14976
15342
|
constructor(config) {
|
|
@@ -14982,7 +15348,7 @@ var Client = class extends BaseClient {
|
|
|
14982
15348
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
14983
15349
|
*/
|
|
14984
15350
|
async getWallets(options) {
|
|
14985
|
-
const request = new
|
|
15351
|
+
const request = new avs_pb24.ListWalletReq();
|
|
14986
15352
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
14987
15353
|
return result.getItemsList().map((item) => item.toObject());
|
|
14988
15354
|
}
|
|
@@ -14994,7 +15360,7 @@ var Client = class extends BaseClient {
|
|
|
14994
15360
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
14995
15361
|
*/
|
|
14996
15362
|
async getWallet({ salt, factoryAddress }, options) {
|
|
14997
|
-
const request = new
|
|
15363
|
+
const request = new avs_pb24.GetWalletReq();
|
|
14998
15364
|
request.setSalt(salt);
|
|
14999
15365
|
if (factoryAddress) {
|
|
15000
15366
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15023,7 +15389,7 @@ var Client = class extends BaseClient {
|
|
|
15023
15389
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
15024
15390
|
*/
|
|
15025
15391
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
15026
|
-
const request = new
|
|
15392
|
+
const request = new avs_pb24.SetWalletReq();
|
|
15027
15393
|
request.setSalt(salt);
|
|
15028
15394
|
if (factoryAddress) {
|
|
15029
15395
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15071,7 +15437,7 @@ var Client = class extends BaseClient {
|
|
|
15071
15437
|
* @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
|
|
15072
15438
|
*/
|
|
15073
15439
|
async getWorkflows(addresses, options) {
|
|
15074
|
-
const request = new
|
|
15440
|
+
const request = new avs_pb24.ListTasksReq();
|
|
15075
15441
|
for (const a of addresses) {
|
|
15076
15442
|
request.addSmartWalletAddress(a);
|
|
15077
15443
|
}
|
|
@@ -15110,7 +15476,7 @@ var Client = class extends BaseClient {
|
|
|
15110
15476
|
* @returns {Promise<number>} - The count of workflows
|
|
15111
15477
|
*/
|
|
15112
15478
|
async getWorkflowCount(addresses, options) {
|
|
15113
|
-
const request = new
|
|
15479
|
+
const request = new avs_pb24.GetWorkflowCountReq();
|
|
15114
15480
|
request.setAddressesList(addresses);
|
|
15115
15481
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
15116
15482
|
return result.getTotal();
|
|
@@ -15126,7 +15492,7 @@ var Client = class extends BaseClient {
|
|
|
15126
15492
|
* @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
|
|
15127
15493
|
*/
|
|
15128
15494
|
async getExecutions(workflows, options) {
|
|
15129
|
-
const request = new
|
|
15495
|
+
const request = new avs_pb24.ListExecutionsReq();
|
|
15130
15496
|
for (const w of workflows) {
|
|
15131
15497
|
request.addTaskIds(w);
|
|
15132
15498
|
}
|
|
@@ -15160,7 +15526,7 @@ var Client = class extends BaseClient {
|
|
|
15160
15526
|
* @returns {Promise<Execution>} - The Execution object
|
|
15161
15527
|
*/
|
|
15162
15528
|
async getExecution(workflowId, executionId, options) {
|
|
15163
|
-
const request = new
|
|
15529
|
+
const request = new avs_pb24.ExecutionReq();
|
|
15164
15530
|
request.setTaskId(workflowId);
|
|
15165
15531
|
request.setExecutionId(executionId);
|
|
15166
15532
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -15173,7 +15539,7 @@ var Client = class extends BaseClient {
|
|
|
15173
15539
|
* @returns {Promise<number>} - The count of executions
|
|
15174
15540
|
*/
|
|
15175
15541
|
async getExecutionCount(workflows, options) {
|
|
15176
|
-
const request = new
|
|
15542
|
+
const request = new avs_pb24.GetExecutionCountReq();
|
|
15177
15543
|
request.setWorkflowIdsList(workflows);
|
|
15178
15544
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
15179
15545
|
return result.getTotal();
|
|
@@ -15186,7 +15552,7 @@ var Client = class extends BaseClient {
|
|
|
15186
15552
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
15187
15553
|
*/
|
|
15188
15554
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
15189
|
-
const request = new
|
|
15555
|
+
const request = new avs_pb24.ExecutionReq();
|
|
15190
15556
|
request.setTaskId(workflowId);
|
|
15191
15557
|
request.setExecutionId(executionId);
|
|
15192
15558
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -15199,7 +15565,7 @@ var Client = class extends BaseClient {
|
|
|
15199
15565
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
15200
15566
|
*/
|
|
15201
15567
|
async getWorkflow(id, options) {
|
|
15202
|
-
const request = new
|
|
15568
|
+
const request = new avs_pb24.IdReq();
|
|
15203
15569
|
request.setId(id);
|
|
15204
15570
|
const result = await this.sendGrpcRequest(
|
|
15205
15571
|
"getTask",
|
|
@@ -15222,7 +15588,7 @@ var Client = class extends BaseClient {
|
|
|
15222
15588
|
reason,
|
|
15223
15589
|
isBlocking = false
|
|
15224
15590
|
}, options) {
|
|
15225
|
-
const request = new
|
|
15591
|
+
const request = new avs_pb24.UserTriggerTaskReq();
|
|
15226
15592
|
request.setTaskId(id);
|
|
15227
15593
|
request.setReason(new reason_default(reason).toRequest());
|
|
15228
15594
|
request.setIsBlocking(isBlocking);
|
|
@@ -15236,7 +15602,7 @@ var Client = class extends BaseClient {
|
|
|
15236
15602
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
15237
15603
|
*/
|
|
15238
15604
|
async cancelWorkflow(id, options) {
|
|
15239
|
-
const request = new
|
|
15605
|
+
const request = new avs_pb24.IdReq();
|
|
15240
15606
|
request.setId(id);
|
|
15241
15607
|
const result = await this.sendGrpcRequest(
|
|
15242
15608
|
"cancelTask",
|
|
@@ -15252,7 +15618,7 @@ var Client = class extends BaseClient {
|
|
|
15252
15618
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
15253
15619
|
*/
|
|
15254
15620
|
async deleteWorkflow(id, options) {
|
|
15255
|
-
const request = new
|
|
15621
|
+
const request = new avs_pb24.IdReq();
|
|
15256
15622
|
request.setId(id);
|
|
15257
15623
|
const result = await this.sendGrpcRequest(
|
|
15258
15624
|
"deleteTask",
|
|
@@ -15272,7 +15638,7 @@ var Client = class extends BaseClient {
|
|
|
15272
15638
|
* @returns {Promise<boolean>} - True if the secret was created successfully
|
|
15273
15639
|
*/
|
|
15274
15640
|
async createSecret(name, value, options) {
|
|
15275
|
-
const request = new
|
|
15641
|
+
const request = new avs_pb24.CreateOrUpdateSecretReq();
|
|
15276
15642
|
request.setName(name);
|
|
15277
15643
|
request.setSecret(value);
|
|
15278
15644
|
if (options?.workflowId) {
|
|
@@ -15295,7 +15661,7 @@ var Client = class extends BaseClient {
|
|
|
15295
15661
|
* @returns {Promise<boolean>} - True if the secret was updated successfully
|
|
15296
15662
|
*/
|
|
15297
15663
|
async updateSecret(name, value, options) {
|
|
15298
|
-
const request = new
|
|
15664
|
+
const request = new avs_pb24.CreateOrUpdateSecretReq();
|
|
15299
15665
|
request.setName(name);
|
|
15300
15666
|
request.setSecret(value);
|
|
15301
15667
|
if (options?.workflowId) {
|
|
@@ -15322,7 +15688,7 @@ var Client = class extends BaseClient {
|
|
|
15322
15688
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
15323
15689
|
*/
|
|
15324
15690
|
async getSecrets(options) {
|
|
15325
|
-
const request = new
|
|
15691
|
+
const request = new avs_pb24.ListSecretsReq();
|
|
15326
15692
|
if (options?.workflowId) {
|
|
15327
15693
|
request.setWorkflowId(options.workflowId);
|
|
15328
15694
|
}
|
|
@@ -15377,7 +15743,7 @@ var Client = class extends BaseClient {
|
|
|
15377
15743
|
* @returns {Promise<boolean>} - True if the secret was deleted successfully
|
|
15378
15744
|
*/
|
|
15379
15745
|
async deleteSecret(name, options) {
|
|
15380
|
-
const request = new
|
|
15746
|
+
const request = new avs_pb24.DeleteSecretReq();
|
|
15381
15747
|
request.setName(name);
|
|
15382
15748
|
if (options?.workflowId) {
|
|
15383
15749
|
request.setWorkflowId(options.workflowId);
|
|
@@ -15398,80 +15764,40 @@ var Client = class extends BaseClient {
|
|
|
15398
15764
|
* @returns {Promise<RunNodeWithInputsResponse>} - The response from running the node
|
|
15399
15765
|
*/
|
|
15400
15766
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
15401
|
-
|
|
15402
|
-
|
|
15403
|
-
|
|
15404
|
-
|
|
15405
|
-
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
|
|
15409
|
-
if (triggerTypes.includes(nodeType)) {
|
|
15410
|
-
return {
|
|
15411
|
-
success: false,
|
|
15412
|
-
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
15413
|
-
nodeId: ""
|
|
15414
|
-
};
|
|
15415
|
-
}
|
|
15416
|
-
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
15417
|
-
const protobufNodeType = import_types20.NodeTypeGoConverter.fromGoString(nodeType);
|
|
15418
|
-
request.setNodeType(protobufNodeType);
|
|
15419
|
-
const nodeConfigMap = request.getNodeConfigMap();
|
|
15420
|
-
for (const [key, value] of Object.entries(nodeConfig)) {
|
|
15421
|
-
nodeConfigMap.set(key, this.convertJSValueToProtobuf(value));
|
|
15422
|
-
}
|
|
15423
|
-
if (inputVariables && Object.keys(inputVariables).length > 0) {
|
|
15424
|
-
const inputVarsMap = request.getInputVariablesMap();
|
|
15425
|
-
for (const [key, value] of Object.entries(inputVariables)) {
|
|
15426
|
-
inputVarsMap.set(key, this.convertJSValueToProtobuf(value));
|
|
15427
|
-
}
|
|
15428
|
-
}
|
|
15429
|
-
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
15430
|
-
let data;
|
|
15431
|
-
const outputCase = result.getOutputDataCase();
|
|
15432
|
-
if (outputCase !== avs_pb22.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET) {
|
|
15433
|
-
switch (outputCase) {
|
|
15434
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
|
|
15435
|
-
data = result.getEthTransfer()?.toObject();
|
|
15436
|
-
break;
|
|
15437
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
|
|
15438
|
-
data = result.getGraphql()?.toObject();
|
|
15439
|
-
break;
|
|
15440
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
|
|
15441
|
-
data = result.getContractRead()?.toObject();
|
|
15442
|
-
break;
|
|
15443
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
|
|
15444
|
-
data = result.getContractWrite()?.toObject();
|
|
15445
|
-
break;
|
|
15446
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
|
|
15447
|
-
data = result.getCustomCode()?.toObject();
|
|
15448
|
-
break;
|
|
15449
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.REST_API:
|
|
15450
|
-
data = result.getRestApi()?.toObject();
|
|
15451
|
-
break;
|
|
15452
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.BRANCH:
|
|
15453
|
-
data = result.getBranch()?.toObject();
|
|
15454
|
-
break;
|
|
15455
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.FILTER:
|
|
15456
|
-
data = result.getFilter()?.toObject();
|
|
15457
|
-
break;
|
|
15458
|
-
case avs_pb22.RunNodeWithInputsResp.OutputDataCase.LOOP:
|
|
15459
|
-
data = result.getLoop()?.toObject();
|
|
15460
|
-
break;
|
|
15461
|
-
}
|
|
15462
|
-
}
|
|
15463
|
-
return {
|
|
15464
|
-
success: result.getSuccess(),
|
|
15465
|
-
data,
|
|
15466
|
-
error: result.getError(),
|
|
15467
|
-
nodeId: result.getNodeId()
|
|
15468
|
-
};
|
|
15469
|
-
} catch (error) {
|
|
15767
|
+
const triggerTypes = [
|
|
15768
|
+
import_types20.TriggerType.Block,
|
|
15769
|
+
import_types20.TriggerType.FixedTime,
|
|
15770
|
+
import_types20.TriggerType.Cron,
|
|
15771
|
+
import_types20.TriggerType.Event,
|
|
15772
|
+
import_types20.TriggerType.Manual
|
|
15773
|
+
];
|
|
15774
|
+
if (triggerTypes.includes(nodeType)) {
|
|
15470
15775
|
return {
|
|
15471
15776
|
success: false,
|
|
15472
|
-
error:
|
|
15777
|
+
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
15778
|
+
nodeId: ""
|
|
15473
15779
|
};
|
|
15474
15780
|
}
|
|
15781
|
+
const request = new avs_pb24.RunNodeWithInputsReq();
|
|
15782
|
+
const protobufNodeType = import_types20.NodeTypeGoConverter.fromGoString(nodeType);
|
|
15783
|
+
request.setNodeType(protobufNodeType);
|
|
15784
|
+
const nodeConfigMap = request.getNodeConfigMap();
|
|
15785
|
+
for (const [key, value] of Object.entries(nodeConfig)) {
|
|
15786
|
+
nodeConfigMap.set(key, convertJSValueToProtobuf(value));
|
|
15787
|
+
}
|
|
15788
|
+
if (inputVariables && Object.keys(inputVariables).length > 0) {
|
|
15789
|
+
const inputVarsMap = request.getInputVariablesMap();
|
|
15790
|
+
for (const [key, value] of Object.entries(inputVariables)) {
|
|
15791
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
15792
|
+
}
|
|
15793
|
+
}
|
|
15794
|
+
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
15795
|
+
return {
|
|
15796
|
+
success: result.getSuccess(),
|
|
15797
|
+
data: factory_default2.fromOutputData(result),
|
|
15798
|
+
error: result.getError(),
|
|
15799
|
+
nodeId: result.getNodeId()
|
|
15800
|
+
};
|
|
15475
15801
|
}
|
|
15476
15802
|
/**
|
|
15477
15803
|
* Run a trigger for testing purposes
|
|
@@ -15482,45 +15808,20 @@ var Client = class extends BaseClient {
|
|
|
15482
15808
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
15483
15809
|
*/
|
|
15484
15810
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
data = result.getBlockTrigger()?.toObject();
|
|
15500
|
-
break;
|
|
15501
|
-
case avs_pb22.RunTriggerResp.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15502
|
-
data = result.getFixedTimeTrigger()?.toObject();
|
|
15503
|
-
break;
|
|
15504
|
-
case avs_pb22.RunTriggerResp.OutputDataCase.CRON_TRIGGER:
|
|
15505
|
-
data = result.getCronTrigger()?.toObject();
|
|
15506
|
-
break;
|
|
15507
|
-
case avs_pb22.RunTriggerResp.OutputDataCase.EVENT_TRIGGER:
|
|
15508
|
-
data = result.getEventTrigger()?.toObject();
|
|
15509
|
-
break;
|
|
15510
|
-
}
|
|
15511
|
-
}
|
|
15512
|
-
return {
|
|
15513
|
-
success: result.getSuccess(),
|
|
15514
|
-
data,
|
|
15515
|
-
error: result.getError(),
|
|
15516
|
-
triggerId: result.getTriggerId()
|
|
15517
|
-
};
|
|
15518
|
-
} catch (error) {
|
|
15519
|
-
return {
|
|
15520
|
-
success: false,
|
|
15521
|
-
error: error.message || "An error occurred"
|
|
15522
|
-
};
|
|
15523
|
-
}
|
|
15811
|
+
const request = new avs_pb24.RunTriggerReq();
|
|
15812
|
+
const protobufTriggerType = import_types20.TriggerTypeGoConverter.fromGoString(triggerType);
|
|
15813
|
+
request.setTriggerType(protobufTriggerType);
|
|
15814
|
+
const triggerConfigMap = request.getTriggerConfigMap();
|
|
15815
|
+
for (const [key, value] of Object.entries(triggerConfig)) {
|
|
15816
|
+
triggerConfigMap.set(key, convertJSValueToProtobuf(value));
|
|
15817
|
+
}
|
|
15818
|
+
const result = await this.sendGrpcRequest("runTrigger", request, options);
|
|
15819
|
+
return {
|
|
15820
|
+
success: result.getSuccess(),
|
|
15821
|
+
data: factory_default.fromOutputData(result),
|
|
15822
|
+
error: result.getError(),
|
|
15823
|
+
triggerId: result.getTriggerId()
|
|
15824
|
+
};
|
|
15524
15825
|
}
|
|
15525
15826
|
};
|
|
15526
15827
|
// Annotate the CommonJS export names for ESM import in node:
|