@avaprotocol/sdk-js 1.6.8 → 1.7.1
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 +19 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +848 -583
- package/dist/index.mjs +880 -615
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +2 -53
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +48 -15
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +1 -0
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +1 -0
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +1 -0
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +1 -0
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +79 -0
- package/package.json +2 -2
- package/dist/auth.d.ts +0 -2
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -10
- package/dist/config.d.ts +0 -9
- package/dist/grpc_codegen/custom_types.d.ts +0 -45
- package/dist/grpc_codegen/custom_types.d.ts.map +0 -1
- package/dist/grpc_codegen/custom_types.js +0 -179
- package/dist/models/edge.d.ts +0 -12
- package/dist/models/execution.d.ts +0 -30
- package/dist/models/node/branch.d.ts +0 -15
- package/dist/models/node/contractRead.d.ts +0 -15
- package/dist/models/node/contractWrite.d.ts +0 -15
- package/dist/models/node/customCode.d.ts +0 -15
- package/dist/models/node/ethTransfer.d.ts +0 -15
- package/dist/models/node/factory.d.ts +0 -23
- package/dist/models/node/filter.d.ts +0 -15
- package/dist/models/node/graphqlQuery.d.ts +0 -15
- package/dist/models/node/interface.d.ts +0 -25
- package/dist/models/node/loop.d.ts +0 -14
- package/dist/models/node/restApi.d.ts +0 -15
- package/dist/models/secret.d.ts +0 -16
- package/dist/models/step.d.ts +0 -19
- package/dist/models/trigger/block.d.ts +0 -25
- package/dist/models/trigger/cron.d.ts +0 -26
- package/dist/models/trigger/event.d.ts +0 -25
- package/dist/models/trigger/factory.d.ts +0 -26
- package/dist/models/trigger/fixedTime.d.ts +0 -26
- package/dist/models/trigger/interface.d.ts +0 -25
- package/dist/models/trigger/manual.d.ts +0 -26
- package/dist/models/trigger/reason.d.ts +0 -33
- package/dist/models/trigger/reason.d.ts.map +0 -1
- package/dist/models/trigger/reason.js +0 -96
- package/dist/models/workflow.d.ts +0 -54
- package/dist/utils.d.ts +0 -37
package/dist/index.js
CHANGED
|
@@ -53,8 +53,6 @@ var require_avs_pb = __commonJS({
|
|
|
53
53
|
}.call(null);
|
|
54
54
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
55
55
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
|
-
var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
57
|
-
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
58
56
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
59
57
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
60
58
|
var google_protobuf_struct_pb = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
@@ -96,7 +94,6 @@ var require_avs_pb = __commonJS({
|
|
|
96
94
|
goog.exportSymbol("proto.aggregator.Evm.TransactionReceipt", null, global);
|
|
97
95
|
goog.exportSymbol("proto.aggregator.Evm.UserOp", null, global);
|
|
98
96
|
goog.exportSymbol("proto.aggregator.Execution", null, global);
|
|
99
|
-
goog.exportSymbol("proto.aggregator.Execution.OutputDataCase", null, global);
|
|
100
97
|
goog.exportSymbol("proto.aggregator.Execution.Step", null, global);
|
|
101
98
|
goog.exportSymbol("proto.aggregator.Execution.Step.OutputDataCase", null, global);
|
|
102
99
|
goog.exportSymbol("proto.aggregator.ExecutionReq", null, global);
|
|
@@ -155,6 +152,7 @@ var require_avs_pb = __commonJS({
|
|
|
155
152
|
goog.exportSymbol("proto.aggregator.RunTriggerResp.OutputDataCase", null, global);
|
|
156
153
|
goog.exportSymbol("proto.aggregator.Secret", null, global);
|
|
157
154
|
goog.exportSymbol("proto.aggregator.SetWalletReq", null, global);
|
|
155
|
+
goog.exportSymbol("proto.aggregator.SimulateTaskReq", null, global);
|
|
158
156
|
goog.exportSymbol("proto.aggregator.SmartWallet", null, global);
|
|
159
157
|
goog.exportSymbol("proto.aggregator.Task", null, global);
|
|
160
158
|
goog.exportSymbol("proto.aggregator.TaskEdge", null, global);
|
|
@@ -511,7 +509,7 @@ var require_avs_pb = __commonJS({
|
|
|
511
509
|
proto.aggregator.TaskNode.displayName = "proto.aggregator.TaskNode";
|
|
512
510
|
}
|
|
513
511
|
proto.aggregator.Execution = function(opt_data) {
|
|
514
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_,
|
|
512
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_, null);
|
|
515
513
|
};
|
|
516
514
|
goog.inherits(proto.aggregator.Execution, jspb.Message);
|
|
517
515
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -825,6 +823,13 @@ var require_avs_pb = __commonJS({
|
|
|
825
823
|
if (goog.DEBUG && !COMPILED) {
|
|
826
824
|
proto.aggregator.Evm.UserOp.displayName = "proto.aggregator.Evm.UserOp";
|
|
827
825
|
}
|
|
826
|
+
proto.aggregator.SimulateTaskReq = function(opt_data) {
|
|
827
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.SimulateTaskReq.repeatedFields_, null);
|
|
828
|
+
};
|
|
829
|
+
goog.inherits(proto.aggregator.SimulateTaskReq, jspb.Message);
|
|
830
|
+
if (goog.DEBUG && !COMPILED) {
|
|
831
|
+
proto.aggregator.SimulateTaskReq.displayName = "proto.aggregator.SimulateTaskReq";
|
|
832
|
+
}
|
|
828
833
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
829
834
|
proto.aggregator.IdReq.prototype.toObject = function(opt_includeInstance) {
|
|
830
835
|
return proto.aggregator.IdReq.toObject(opt_includeInstance, this);
|
|
@@ -5840,21 +5845,6 @@ var require_avs_pb = __commonJS({
|
|
|
5840
5845
|
return jspb.Message.getField(this, 18) != null;
|
|
5841
5846
|
};
|
|
5842
5847
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
5843
|
-
proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
5844
|
-
proto.aggregator.Execution.OutputDataCase = {
|
|
5845
|
-
OUTPUT_DATA_NOT_SET: 0,
|
|
5846
|
-
BLOCK_TRIGGER: 10,
|
|
5847
|
-
FIXED_TIME_TRIGGER: 11,
|
|
5848
|
-
CRON_TRIGGER: 12,
|
|
5849
|
-
EVENT_TRIGGER: 13,
|
|
5850
|
-
MANUAL_TRIGGER: 14
|
|
5851
|
-
};
|
|
5852
|
-
proto.aggregator.Execution.prototype.getOutputDataCase = function() {
|
|
5853
|
-
return (
|
|
5854
|
-
/** @type {proto.aggregator.Execution.OutputDataCase} */
|
|
5855
|
-
jspb.Message.computeOneofCase(this, proto.aggregator.Execution.oneofGroups_[0])
|
|
5856
|
-
);
|
|
5857
|
-
};
|
|
5858
5848
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5859
5849
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
5860
5850
|
return proto.aggregator.Execution.toObject(opt_includeInstance, this);
|
|
@@ -5866,18 +5856,11 @@ var require_avs_pb = __commonJS({
|
|
|
5866
5856
|
endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
5867
5857
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
5868
5858
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5869
|
-
triggerType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
5870
5859
|
stepsList: jspb.Message.toObjectList(
|
|
5871
5860
|
msg.getStepsList(),
|
|
5872
5861
|
proto.aggregator.Execution.Step.toObject,
|
|
5873
5862
|
includeInstance
|
|
5874
|
-
)
|
|
5875
|
-
triggerName: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
5876
|
-
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
5877
|
-
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
5878
|
-
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
5879
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
5880
|
-
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f)
|
|
5863
|
+
)
|
|
5881
5864
|
};
|
|
5882
5865
|
if (includeInstance) {
|
|
5883
5866
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5932,50 +5915,11 @@ var require_avs_pb = __commonJS({
|
|
|
5932
5915
|
);
|
|
5933
5916
|
msg.setError(value);
|
|
5934
5917
|
break;
|
|
5935
|
-
case 6:
|
|
5936
|
-
var value = (
|
|
5937
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
5938
|
-
reader.readEnum()
|
|
5939
|
-
);
|
|
5940
|
-
msg.setTriggerType(value);
|
|
5941
|
-
break;
|
|
5942
5918
|
case 8:
|
|
5943
5919
|
var value = new proto.aggregator.Execution.Step();
|
|
5944
5920
|
reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
|
|
5945
5921
|
msg.addSteps(value);
|
|
5946
5922
|
break;
|
|
5947
|
-
case 9:
|
|
5948
|
-
var value = (
|
|
5949
|
-
/** @type {string} */
|
|
5950
|
-
reader.readString()
|
|
5951
|
-
);
|
|
5952
|
-
msg.setTriggerName(value);
|
|
5953
|
-
break;
|
|
5954
|
-
case 10:
|
|
5955
|
-
var value = new proto.aggregator.BlockTrigger.Output();
|
|
5956
|
-
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
5957
|
-
msg.setBlockTrigger(value);
|
|
5958
|
-
break;
|
|
5959
|
-
case 11:
|
|
5960
|
-
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
5961
|
-
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
5962
|
-
msg.setFixedTimeTrigger(value);
|
|
5963
|
-
break;
|
|
5964
|
-
case 12:
|
|
5965
|
-
var value = new proto.aggregator.CronTrigger.Output();
|
|
5966
|
-
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
5967
|
-
msg.setCronTrigger(value);
|
|
5968
|
-
break;
|
|
5969
|
-
case 13:
|
|
5970
|
-
var value = new proto.aggregator.EventTrigger.Output();
|
|
5971
|
-
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
5972
|
-
msg.setEventTrigger(value);
|
|
5973
|
-
break;
|
|
5974
|
-
case 14:
|
|
5975
|
-
var value = new proto.aggregator.ManualTrigger.Output();
|
|
5976
|
-
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
5977
|
-
msg.setManualTrigger(value);
|
|
5978
|
-
break;
|
|
5979
5923
|
default:
|
|
5980
5924
|
reader.skipField();
|
|
5981
5925
|
break;
|
|
@@ -6025,13 +5969,6 @@ var require_avs_pb = __commonJS({
|
|
|
6025
5969
|
f
|
|
6026
5970
|
);
|
|
6027
5971
|
}
|
|
6028
|
-
f = message.getTriggerType();
|
|
6029
|
-
if (f !== 0) {
|
|
6030
|
-
writer.writeEnum(
|
|
6031
|
-
6,
|
|
6032
|
-
f
|
|
6033
|
-
);
|
|
6034
|
-
}
|
|
6035
5972
|
f = message.getStepsList();
|
|
6036
5973
|
if (f.length > 0) {
|
|
6037
5974
|
writer.writeRepeatedMessage(
|
|
@@ -6040,58 +5977,16 @@ var require_avs_pb = __commonJS({
|
|
|
6040
5977
|
proto.aggregator.Execution.Step.serializeBinaryToWriter
|
|
6041
5978
|
);
|
|
6042
5979
|
}
|
|
6043
|
-
f = message.getTriggerName();
|
|
6044
|
-
if (f.length > 0) {
|
|
6045
|
-
writer.writeString(
|
|
6046
|
-
9,
|
|
6047
|
-
f
|
|
6048
|
-
);
|
|
6049
|
-
}
|
|
6050
|
-
f = message.getBlockTrigger();
|
|
6051
|
-
if (f != null) {
|
|
6052
|
-
writer.writeMessage(
|
|
6053
|
-
10,
|
|
6054
|
-
f,
|
|
6055
|
-
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6056
|
-
);
|
|
6057
|
-
}
|
|
6058
|
-
f = message.getFixedTimeTrigger();
|
|
6059
|
-
if (f != null) {
|
|
6060
|
-
writer.writeMessage(
|
|
6061
|
-
11,
|
|
6062
|
-
f,
|
|
6063
|
-
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6064
|
-
);
|
|
6065
|
-
}
|
|
6066
|
-
f = message.getCronTrigger();
|
|
6067
|
-
if (f != null) {
|
|
6068
|
-
writer.writeMessage(
|
|
6069
|
-
12,
|
|
6070
|
-
f,
|
|
6071
|
-
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6072
|
-
);
|
|
6073
|
-
}
|
|
6074
|
-
f = message.getEventTrigger();
|
|
6075
|
-
if (f != null) {
|
|
6076
|
-
writer.writeMessage(
|
|
6077
|
-
13,
|
|
6078
|
-
f,
|
|
6079
|
-
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
6080
|
-
);
|
|
6081
|
-
}
|
|
6082
|
-
f = message.getManualTrigger();
|
|
6083
|
-
if (f != null) {
|
|
6084
|
-
writer.writeMessage(
|
|
6085
|
-
14,
|
|
6086
|
-
f,
|
|
6087
|
-
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
6088
|
-
);
|
|
6089
|
-
}
|
|
6090
5980
|
};
|
|
6091
5981
|
proto.aggregator.Execution.Step.repeatedFields_ = [16];
|
|
6092
|
-
proto.aggregator.Execution.Step.oneofGroups_ = [[3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
5982
|
+
proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
6093
5983
|
proto.aggregator.Execution.Step.OutputDataCase = {
|
|
6094
5984
|
OUTPUT_DATA_NOT_SET: 0,
|
|
5985
|
+
BLOCK_TRIGGER: 20,
|
|
5986
|
+
FIXED_TIME_TRIGGER: 21,
|
|
5987
|
+
CRON_TRIGGER: 22,
|
|
5988
|
+
EVENT_TRIGGER: 23,
|
|
5989
|
+
MANUAL_TRIGGER: 24,
|
|
6095
5990
|
ETH_TRANSFER: 3,
|
|
6096
5991
|
GRAPHQL: 4,
|
|
6097
5992
|
CONTRACT_READ: 5,
|
|
@@ -6114,8 +6009,18 @@ var require_avs_pb = __commonJS({
|
|
|
6114
6009
|
};
|
|
6115
6010
|
proto.aggregator.Execution.Step.toObject = function(includeInstance, msg) {
|
|
6116
6011
|
var f, obj = {
|
|
6117
|
-
|
|
6012
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6013
|
+
type: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
6014
|
+
name: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
6118
6015
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
6016
|
+
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6017
|
+
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6018
|
+
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
6019
|
+
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
6020
|
+
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
6021
|
+
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
6022
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
6023
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
|
|
6119
6024
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
6120
6025
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
6121
6026
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -6125,11 +6030,8 @@ var require_avs_pb = __commonJS({
|
|
|
6125
6030
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
|
|
6126
6031
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
|
|
6127
6032
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
|
|
6128
|
-
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6129
|
-
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6130
6033
|
startAt: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
6131
|
-
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6132
|
-
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f
|
|
6034
|
+
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6133
6035
|
};
|
|
6134
6036
|
if (includeInstance) {
|
|
6135
6037
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6154,7 +6056,21 @@ var require_avs_pb = __commonJS({
|
|
|
6154
6056
|
/** @type {string} */
|
|
6155
6057
|
reader.readString()
|
|
6156
6058
|
);
|
|
6157
|
-
msg.
|
|
6059
|
+
msg.setId(value);
|
|
6060
|
+
break;
|
|
6061
|
+
case 17:
|
|
6062
|
+
var value = (
|
|
6063
|
+
/** @type {string} */
|
|
6064
|
+
reader.readString()
|
|
6065
|
+
);
|
|
6066
|
+
msg.setType(value);
|
|
6067
|
+
break;
|
|
6068
|
+
case 18:
|
|
6069
|
+
var value = (
|
|
6070
|
+
/** @type {string} */
|
|
6071
|
+
reader.readString()
|
|
6072
|
+
);
|
|
6073
|
+
msg.setName(value);
|
|
6158
6074
|
break;
|
|
6159
6075
|
case 2:
|
|
6160
6076
|
var value = (
|
|
@@ -6163,6 +6079,52 @@ var require_avs_pb = __commonJS({
|
|
|
6163
6079
|
);
|
|
6164
6080
|
msg.setSuccess(value);
|
|
6165
6081
|
break;
|
|
6082
|
+
case 13:
|
|
6083
|
+
var value = (
|
|
6084
|
+
/** @type {string} */
|
|
6085
|
+
reader.readString()
|
|
6086
|
+
);
|
|
6087
|
+
msg.setError(value);
|
|
6088
|
+
break;
|
|
6089
|
+
case 12:
|
|
6090
|
+
var value = (
|
|
6091
|
+
/** @type {string} */
|
|
6092
|
+
reader.readString()
|
|
6093
|
+
);
|
|
6094
|
+
msg.setLog(value);
|
|
6095
|
+
break;
|
|
6096
|
+
case 16:
|
|
6097
|
+
var value = (
|
|
6098
|
+
/** @type {string} */
|
|
6099
|
+
reader.readString()
|
|
6100
|
+
);
|
|
6101
|
+
msg.addInputs(value);
|
|
6102
|
+
break;
|
|
6103
|
+
case 20:
|
|
6104
|
+
var value = new proto.aggregator.BlockTrigger.Output();
|
|
6105
|
+
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
6106
|
+
msg.setBlockTrigger(value);
|
|
6107
|
+
break;
|
|
6108
|
+
case 21:
|
|
6109
|
+
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
6110
|
+
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
6111
|
+
msg.setFixedTimeTrigger(value);
|
|
6112
|
+
break;
|
|
6113
|
+
case 22:
|
|
6114
|
+
var value = new proto.aggregator.CronTrigger.Output();
|
|
6115
|
+
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
6116
|
+
msg.setCronTrigger(value);
|
|
6117
|
+
break;
|
|
6118
|
+
case 23:
|
|
6119
|
+
var value = new proto.aggregator.EventTrigger.Output();
|
|
6120
|
+
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
6121
|
+
msg.setEventTrigger(value);
|
|
6122
|
+
break;
|
|
6123
|
+
case 24:
|
|
6124
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
6125
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
6126
|
+
msg.setManualTrigger(value);
|
|
6127
|
+
break;
|
|
6166
6128
|
case 3:
|
|
6167
6129
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
6168
6130
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -6208,20 +6170,6 @@ var require_avs_pb = __commonJS({
|
|
|
6208
6170
|
reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
|
|
6209
6171
|
msg.setLoop(value);
|
|
6210
6172
|
break;
|
|
6211
|
-
case 12:
|
|
6212
|
-
var value = (
|
|
6213
|
-
/** @type {string} */
|
|
6214
|
-
reader.readString()
|
|
6215
|
-
);
|
|
6216
|
-
msg.setLog(value);
|
|
6217
|
-
break;
|
|
6218
|
-
case 13:
|
|
6219
|
-
var value = (
|
|
6220
|
-
/** @type {string} */
|
|
6221
|
-
reader.readString()
|
|
6222
|
-
);
|
|
6223
|
-
msg.setError(value);
|
|
6224
|
-
break;
|
|
6225
6173
|
case 14:
|
|
6226
6174
|
var value = (
|
|
6227
6175
|
/** @type {number} */
|
|
@@ -6236,13 +6184,6 @@ var require_avs_pb = __commonJS({
|
|
|
6236
6184
|
);
|
|
6237
6185
|
msg.setEndAt(value);
|
|
6238
6186
|
break;
|
|
6239
|
-
case 16:
|
|
6240
|
-
var value = (
|
|
6241
|
-
/** @type {string} */
|
|
6242
|
-
reader.readString()
|
|
6243
|
-
);
|
|
6244
|
-
msg.addInputs(value);
|
|
6245
|
-
break;
|
|
6246
6187
|
default:
|
|
6247
6188
|
reader.skipField();
|
|
6248
6189
|
break;
|
|
@@ -6257,13 +6198,27 @@ var require_avs_pb = __commonJS({
|
|
|
6257
6198
|
};
|
|
6258
6199
|
proto.aggregator.Execution.Step.serializeBinaryToWriter = function(message, writer) {
|
|
6259
6200
|
var f = void 0;
|
|
6260
|
-
f = message.
|
|
6201
|
+
f = message.getId();
|
|
6261
6202
|
if (f.length > 0) {
|
|
6262
6203
|
writer.writeString(
|
|
6263
6204
|
1,
|
|
6264
6205
|
f
|
|
6265
6206
|
);
|
|
6266
6207
|
}
|
|
6208
|
+
f = message.getType();
|
|
6209
|
+
if (f.length > 0) {
|
|
6210
|
+
writer.writeString(
|
|
6211
|
+
17,
|
|
6212
|
+
f
|
|
6213
|
+
);
|
|
6214
|
+
}
|
|
6215
|
+
f = message.getName();
|
|
6216
|
+
if (f.length > 0) {
|
|
6217
|
+
writer.writeString(
|
|
6218
|
+
18,
|
|
6219
|
+
f
|
|
6220
|
+
);
|
|
6221
|
+
}
|
|
6267
6222
|
f = message.getSuccess();
|
|
6268
6223
|
if (f) {
|
|
6269
6224
|
writer.writeBool(
|
|
@@ -6271,6 +6226,67 @@ var require_avs_pb = __commonJS({
|
|
|
6271
6226
|
f
|
|
6272
6227
|
);
|
|
6273
6228
|
}
|
|
6229
|
+
f = message.getError();
|
|
6230
|
+
if (f.length > 0) {
|
|
6231
|
+
writer.writeString(
|
|
6232
|
+
13,
|
|
6233
|
+
f
|
|
6234
|
+
);
|
|
6235
|
+
}
|
|
6236
|
+
f = message.getLog();
|
|
6237
|
+
if (f.length > 0) {
|
|
6238
|
+
writer.writeString(
|
|
6239
|
+
12,
|
|
6240
|
+
f
|
|
6241
|
+
);
|
|
6242
|
+
}
|
|
6243
|
+
f = message.getInputsList();
|
|
6244
|
+
if (f.length > 0) {
|
|
6245
|
+
writer.writeRepeatedString(
|
|
6246
|
+
16,
|
|
6247
|
+
f
|
|
6248
|
+
);
|
|
6249
|
+
}
|
|
6250
|
+
f = message.getBlockTrigger();
|
|
6251
|
+
if (f != null) {
|
|
6252
|
+
writer.writeMessage(
|
|
6253
|
+
20,
|
|
6254
|
+
f,
|
|
6255
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6256
|
+
);
|
|
6257
|
+
}
|
|
6258
|
+
f = message.getFixedTimeTrigger();
|
|
6259
|
+
if (f != null) {
|
|
6260
|
+
writer.writeMessage(
|
|
6261
|
+
21,
|
|
6262
|
+
f,
|
|
6263
|
+
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6264
|
+
);
|
|
6265
|
+
}
|
|
6266
|
+
f = message.getCronTrigger();
|
|
6267
|
+
if (f != null) {
|
|
6268
|
+
writer.writeMessage(
|
|
6269
|
+
22,
|
|
6270
|
+
f,
|
|
6271
|
+
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6272
|
+
);
|
|
6273
|
+
}
|
|
6274
|
+
f = message.getEventTrigger();
|
|
6275
|
+
if (f != null) {
|
|
6276
|
+
writer.writeMessage(
|
|
6277
|
+
23,
|
|
6278
|
+
f,
|
|
6279
|
+
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
6280
|
+
);
|
|
6281
|
+
}
|
|
6282
|
+
f = message.getManualTrigger();
|
|
6283
|
+
if (f != null) {
|
|
6284
|
+
writer.writeMessage(
|
|
6285
|
+
24,
|
|
6286
|
+
f,
|
|
6287
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
6288
|
+
);
|
|
6289
|
+
}
|
|
6274
6290
|
f = message.getEthTransfer();
|
|
6275
6291
|
if (f != null) {
|
|
6276
6292
|
writer.writeMessage(
|
|
@@ -6343,20 +6359,6 @@ var require_avs_pb = __commonJS({
|
|
|
6343
6359
|
proto.aggregator.LoopNode.Output.serializeBinaryToWriter
|
|
6344
6360
|
);
|
|
6345
6361
|
}
|
|
6346
|
-
f = message.getLog();
|
|
6347
|
-
if (f.length > 0) {
|
|
6348
|
-
writer.writeString(
|
|
6349
|
-
12,
|
|
6350
|
-
f
|
|
6351
|
-
);
|
|
6352
|
-
}
|
|
6353
|
-
f = message.getError();
|
|
6354
|
-
if (f.length > 0) {
|
|
6355
|
-
writer.writeString(
|
|
6356
|
-
13,
|
|
6357
|
-
f
|
|
6358
|
-
);
|
|
6359
|
-
}
|
|
6360
6362
|
f = message.getStartAt();
|
|
6361
6363
|
if (f !== 0) {
|
|
6362
6364
|
writer.writeInt64(
|
|
@@ -6371,23 +6373,34 @@ var require_avs_pb = __commonJS({
|
|
|
6371
6373
|
f
|
|
6372
6374
|
);
|
|
6373
6375
|
}
|
|
6374
|
-
f = message.getInputsList();
|
|
6375
|
-
if (f.length > 0) {
|
|
6376
|
-
writer.writeRepeatedString(
|
|
6377
|
-
16,
|
|
6378
|
-
f
|
|
6379
|
-
);
|
|
6380
|
-
}
|
|
6381
6376
|
};
|
|
6382
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6377
|
+
proto.aggregator.Execution.Step.prototype.getId = function() {
|
|
6383
6378
|
return (
|
|
6384
6379
|
/** @type {string} */
|
|
6385
6380
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
6386
6381
|
);
|
|
6387
6382
|
};
|
|
6388
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6383
|
+
proto.aggregator.Execution.Step.prototype.setId = function(value) {
|
|
6389
6384
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6390
6385
|
};
|
|
6386
|
+
proto.aggregator.Execution.Step.prototype.getType = function() {
|
|
6387
|
+
return (
|
|
6388
|
+
/** @type {string} */
|
|
6389
|
+
jspb.Message.getFieldWithDefault(this, 17, "")
|
|
6390
|
+
);
|
|
6391
|
+
};
|
|
6392
|
+
proto.aggregator.Execution.Step.prototype.setType = function(value) {
|
|
6393
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
6394
|
+
};
|
|
6395
|
+
proto.aggregator.Execution.Step.prototype.getName = function() {
|
|
6396
|
+
return (
|
|
6397
|
+
/** @type {string} */
|
|
6398
|
+
jspb.Message.getFieldWithDefault(this, 18, "")
|
|
6399
|
+
);
|
|
6400
|
+
};
|
|
6401
|
+
proto.aggregator.Execution.Step.prototype.setName = function(value) {
|
|
6402
|
+
return jspb.Message.setProto3StringField(this, 18, value);
|
|
6403
|
+
};
|
|
6391
6404
|
proto.aggregator.Execution.Step.prototype.getSuccess = function() {
|
|
6392
6405
|
return (
|
|
6393
6406
|
/** @type {boolean} */
|
|
@@ -6397,6 +6410,114 @@ var require_avs_pb = __commonJS({
|
|
|
6397
6410
|
proto.aggregator.Execution.Step.prototype.setSuccess = function(value) {
|
|
6398
6411
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
6399
6412
|
};
|
|
6413
|
+
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
6414
|
+
return (
|
|
6415
|
+
/** @type {string} */
|
|
6416
|
+
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
6417
|
+
);
|
|
6418
|
+
};
|
|
6419
|
+
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
6420
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
6421
|
+
};
|
|
6422
|
+
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
6423
|
+
return (
|
|
6424
|
+
/** @type {string} */
|
|
6425
|
+
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
6426
|
+
);
|
|
6427
|
+
};
|
|
6428
|
+
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
6429
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
6430
|
+
};
|
|
6431
|
+
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
6432
|
+
return (
|
|
6433
|
+
/** @type {!Array<string>} */
|
|
6434
|
+
jspb.Message.getRepeatedField(this, 16)
|
|
6435
|
+
);
|
|
6436
|
+
};
|
|
6437
|
+
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
6438
|
+
return jspb.Message.setField(this, 16, value || []);
|
|
6439
|
+
};
|
|
6440
|
+
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
6441
|
+
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
6442
|
+
};
|
|
6443
|
+
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
6444
|
+
return this.setInputsList([]);
|
|
6445
|
+
};
|
|
6446
|
+
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
6447
|
+
return (
|
|
6448
|
+
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
6449
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 20)
|
|
6450
|
+
);
|
|
6451
|
+
};
|
|
6452
|
+
proto.aggregator.Execution.Step.prototype.setBlockTrigger = function(value) {
|
|
6453
|
+
return jspb.Message.setOneofWrapperField(this, 20, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6454
|
+
};
|
|
6455
|
+
proto.aggregator.Execution.Step.prototype.clearBlockTrigger = function() {
|
|
6456
|
+
return this.setBlockTrigger(void 0);
|
|
6457
|
+
};
|
|
6458
|
+
proto.aggregator.Execution.Step.prototype.hasBlockTrigger = function() {
|
|
6459
|
+
return jspb.Message.getField(this, 20) != null;
|
|
6460
|
+
};
|
|
6461
|
+
proto.aggregator.Execution.Step.prototype.getFixedTimeTrigger = function() {
|
|
6462
|
+
return (
|
|
6463
|
+
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
6464
|
+
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 21)
|
|
6465
|
+
);
|
|
6466
|
+
};
|
|
6467
|
+
proto.aggregator.Execution.Step.prototype.setFixedTimeTrigger = function(value) {
|
|
6468
|
+
return jspb.Message.setOneofWrapperField(this, 21, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6469
|
+
};
|
|
6470
|
+
proto.aggregator.Execution.Step.prototype.clearFixedTimeTrigger = function() {
|
|
6471
|
+
return this.setFixedTimeTrigger(void 0);
|
|
6472
|
+
};
|
|
6473
|
+
proto.aggregator.Execution.Step.prototype.hasFixedTimeTrigger = function() {
|
|
6474
|
+
return jspb.Message.getField(this, 21) != null;
|
|
6475
|
+
};
|
|
6476
|
+
proto.aggregator.Execution.Step.prototype.getCronTrigger = function() {
|
|
6477
|
+
return (
|
|
6478
|
+
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
6479
|
+
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 22)
|
|
6480
|
+
);
|
|
6481
|
+
};
|
|
6482
|
+
proto.aggregator.Execution.Step.prototype.setCronTrigger = function(value) {
|
|
6483
|
+
return jspb.Message.setOneofWrapperField(this, 22, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6484
|
+
};
|
|
6485
|
+
proto.aggregator.Execution.Step.prototype.clearCronTrigger = function() {
|
|
6486
|
+
return this.setCronTrigger(void 0);
|
|
6487
|
+
};
|
|
6488
|
+
proto.aggregator.Execution.Step.prototype.hasCronTrigger = function() {
|
|
6489
|
+
return jspb.Message.getField(this, 22) != null;
|
|
6490
|
+
};
|
|
6491
|
+
proto.aggregator.Execution.Step.prototype.getEventTrigger = function() {
|
|
6492
|
+
return (
|
|
6493
|
+
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
6494
|
+
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 23)
|
|
6495
|
+
);
|
|
6496
|
+
};
|
|
6497
|
+
proto.aggregator.Execution.Step.prototype.setEventTrigger = function(value) {
|
|
6498
|
+
return jspb.Message.setOneofWrapperField(this, 23, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6499
|
+
};
|
|
6500
|
+
proto.aggregator.Execution.Step.prototype.clearEventTrigger = function() {
|
|
6501
|
+
return this.setEventTrigger(void 0);
|
|
6502
|
+
};
|
|
6503
|
+
proto.aggregator.Execution.Step.prototype.hasEventTrigger = function() {
|
|
6504
|
+
return jspb.Message.getField(this, 23) != null;
|
|
6505
|
+
};
|
|
6506
|
+
proto.aggregator.Execution.Step.prototype.getManualTrigger = function() {
|
|
6507
|
+
return (
|
|
6508
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
6509
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 24)
|
|
6510
|
+
);
|
|
6511
|
+
};
|
|
6512
|
+
proto.aggregator.Execution.Step.prototype.setManualTrigger = function(value) {
|
|
6513
|
+
return jspb.Message.setOneofWrapperField(this, 24, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6514
|
+
};
|
|
6515
|
+
proto.aggregator.Execution.Step.prototype.clearManualTrigger = function() {
|
|
6516
|
+
return this.setManualTrigger(void 0);
|
|
6517
|
+
};
|
|
6518
|
+
proto.aggregator.Execution.Step.prototype.hasManualTrigger = function() {
|
|
6519
|
+
return jspb.Message.getField(this, 24) != null;
|
|
6520
|
+
};
|
|
6400
6521
|
proto.aggregator.Execution.Step.prototype.getEthTransfer = function() {
|
|
6401
6522
|
return (
|
|
6402
6523
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -6532,24 +6653,6 @@ var require_avs_pb = __commonJS({
|
|
|
6532
6653
|
proto.aggregator.Execution.Step.prototype.hasLoop = function() {
|
|
6533
6654
|
return jspb.Message.getField(this, 11) != null;
|
|
6534
6655
|
};
|
|
6535
|
-
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
6536
|
-
return (
|
|
6537
|
-
/** @type {string} */
|
|
6538
|
-
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
6539
|
-
);
|
|
6540
|
-
};
|
|
6541
|
-
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
6542
|
-
return jspb.Message.setProto3StringField(this, 12, value);
|
|
6543
|
-
};
|
|
6544
|
-
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
6545
|
-
return (
|
|
6546
|
-
/** @type {string} */
|
|
6547
|
-
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
6548
|
-
);
|
|
6549
|
-
};
|
|
6550
|
-
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
6551
|
-
return jspb.Message.setProto3StringField(this, 13, value);
|
|
6552
|
-
};
|
|
6553
6656
|
proto.aggregator.Execution.Step.prototype.getStartAt = function() {
|
|
6554
6657
|
return (
|
|
6555
6658
|
/** @type {number} */
|
|
@@ -6568,21 +6671,6 @@ var require_avs_pb = __commonJS({
|
|
|
6568
6671
|
proto.aggregator.Execution.Step.prototype.setEndAt = function(value) {
|
|
6569
6672
|
return jspb.Message.setProto3IntField(this, 15, value);
|
|
6570
6673
|
};
|
|
6571
|
-
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
6572
|
-
return (
|
|
6573
|
-
/** @type {!Array<string>} */
|
|
6574
|
-
jspb.Message.getRepeatedField(this, 16)
|
|
6575
|
-
);
|
|
6576
|
-
};
|
|
6577
|
-
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
6578
|
-
return jspb.Message.setField(this, 16, value || []);
|
|
6579
|
-
};
|
|
6580
|
-
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
6581
|
-
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
6582
|
-
};
|
|
6583
|
-
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
6584
|
-
return this.setInputsList([]);
|
|
6585
|
-
};
|
|
6586
6674
|
proto.aggregator.Execution.prototype.getId = function() {
|
|
6587
6675
|
return (
|
|
6588
6676
|
/** @type {string} */
|
|
@@ -6622,119 +6710,26 @@ var require_avs_pb = __commonJS({
|
|
|
6622
6710
|
proto.aggregator.Execution.prototype.getError = function() {
|
|
6623
6711
|
return (
|
|
6624
6712
|
/** @type {string} */
|
|
6625
|
-
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
6626
|
-
);
|
|
6627
|
-
};
|
|
6628
|
-
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
6629
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6630
|
-
};
|
|
6631
|
-
proto.aggregator.Execution.prototype.getTriggerType = function() {
|
|
6632
|
-
return (
|
|
6633
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
6634
|
-
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
6635
|
-
);
|
|
6636
|
-
};
|
|
6637
|
-
proto.aggregator.Execution.prototype.setTriggerType = function(value) {
|
|
6638
|
-
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
6639
|
-
};
|
|
6640
|
-
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
6641
|
-
return (
|
|
6642
|
-
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
6643
|
-
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.Execution.Step, 8)
|
|
6644
|
-
);
|
|
6645
|
-
};
|
|
6646
|
-
proto.aggregator.Execution.prototype.setStepsList = function(value) {
|
|
6647
|
-
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
6648
|
-
};
|
|
6649
|
-
proto.aggregator.Execution.prototype.addSteps = function(opt_value, opt_index) {
|
|
6650
|
-
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.aggregator.Execution.Step, opt_index);
|
|
6651
|
-
};
|
|
6652
|
-
proto.aggregator.Execution.prototype.clearStepsList = function() {
|
|
6653
|
-
return this.setStepsList([]);
|
|
6654
|
-
};
|
|
6655
|
-
proto.aggregator.Execution.prototype.getTriggerName = function() {
|
|
6656
|
-
return (
|
|
6657
|
-
/** @type {string} */
|
|
6658
|
-
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
6659
|
-
);
|
|
6660
|
-
};
|
|
6661
|
-
proto.aggregator.Execution.prototype.setTriggerName = function(value) {
|
|
6662
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
6663
|
-
};
|
|
6664
|
-
proto.aggregator.Execution.prototype.getBlockTrigger = function() {
|
|
6665
|
-
return (
|
|
6666
|
-
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
6667
|
-
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 10)
|
|
6668
|
-
);
|
|
6669
|
-
};
|
|
6670
|
-
proto.aggregator.Execution.prototype.setBlockTrigger = function(value) {
|
|
6671
|
-
return jspb.Message.setOneofWrapperField(this, 10, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6672
|
-
};
|
|
6673
|
-
proto.aggregator.Execution.prototype.clearBlockTrigger = function() {
|
|
6674
|
-
return this.setBlockTrigger(void 0);
|
|
6675
|
-
};
|
|
6676
|
-
proto.aggregator.Execution.prototype.hasBlockTrigger = function() {
|
|
6677
|
-
return jspb.Message.getField(this, 10) != null;
|
|
6678
|
-
};
|
|
6679
|
-
proto.aggregator.Execution.prototype.getFixedTimeTrigger = function() {
|
|
6680
|
-
return (
|
|
6681
|
-
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
6682
|
-
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 11)
|
|
6683
|
-
);
|
|
6684
|
-
};
|
|
6685
|
-
proto.aggregator.Execution.prototype.setFixedTimeTrigger = function(value) {
|
|
6686
|
-
return jspb.Message.setOneofWrapperField(this, 11, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6687
|
-
};
|
|
6688
|
-
proto.aggregator.Execution.prototype.clearFixedTimeTrigger = function() {
|
|
6689
|
-
return this.setFixedTimeTrigger(void 0);
|
|
6690
|
-
};
|
|
6691
|
-
proto.aggregator.Execution.prototype.hasFixedTimeTrigger = function() {
|
|
6692
|
-
return jspb.Message.getField(this, 11) != null;
|
|
6693
|
-
};
|
|
6694
|
-
proto.aggregator.Execution.prototype.getCronTrigger = function() {
|
|
6695
|
-
return (
|
|
6696
|
-
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
6697
|
-
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 12)
|
|
6698
|
-
);
|
|
6699
|
-
};
|
|
6700
|
-
proto.aggregator.Execution.prototype.setCronTrigger = function(value) {
|
|
6701
|
-
return jspb.Message.setOneofWrapperField(this, 12, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6702
|
-
};
|
|
6703
|
-
proto.aggregator.Execution.prototype.clearCronTrigger = function() {
|
|
6704
|
-
return this.setCronTrigger(void 0);
|
|
6705
|
-
};
|
|
6706
|
-
proto.aggregator.Execution.prototype.hasCronTrigger = function() {
|
|
6707
|
-
return jspb.Message.getField(this, 12) != null;
|
|
6708
|
-
};
|
|
6709
|
-
proto.aggregator.Execution.prototype.getEventTrigger = function() {
|
|
6710
|
-
return (
|
|
6711
|
-
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
6712
|
-
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 13)
|
|
6713
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
6713
6714
|
);
|
|
6714
6715
|
};
|
|
6715
|
-
proto.aggregator.Execution.prototype.
|
|
6716
|
-
return jspb.Message.
|
|
6717
|
-
};
|
|
6718
|
-
proto.aggregator.Execution.prototype.clearEventTrigger = function() {
|
|
6719
|
-
return this.setEventTrigger(void 0);
|
|
6720
|
-
};
|
|
6721
|
-
proto.aggregator.Execution.prototype.hasEventTrigger = function() {
|
|
6722
|
-
return jspb.Message.getField(this, 13) != null;
|
|
6716
|
+
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
6717
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6723
6718
|
};
|
|
6724
|
-
proto.aggregator.Execution.prototype.
|
|
6719
|
+
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
6725
6720
|
return (
|
|
6726
|
-
/** @type{
|
|
6727
|
-
jspb.Message.
|
|
6721
|
+
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
6722
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.Execution.Step, 8)
|
|
6728
6723
|
);
|
|
6729
6724
|
};
|
|
6730
|
-
proto.aggregator.Execution.prototype.
|
|
6731
|
-
return jspb.Message.
|
|
6725
|
+
proto.aggregator.Execution.prototype.setStepsList = function(value) {
|
|
6726
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
6732
6727
|
};
|
|
6733
|
-
proto.aggregator.Execution.prototype.
|
|
6734
|
-
return
|
|
6728
|
+
proto.aggregator.Execution.prototype.addSteps = function(opt_value, opt_index) {
|
|
6729
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.aggregator.Execution.Step, opt_index);
|
|
6735
6730
|
};
|
|
6736
|
-
proto.aggregator.Execution.prototype.
|
|
6737
|
-
return
|
|
6731
|
+
proto.aggregator.Execution.prototype.clearStepsList = function() {
|
|
6732
|
+
return this.setStepsList([]);
|
|
6738
6733
|
};
|
|
6739
6734
|
proto.aggregator.Task.repeatedFields_ = [13, 14];
|
|
6740
6735
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -13125,6 +13120,168 @@ var require_avs_pb = __commonJS({
|
|
|
13125
13120
|
proto.aggregator.Evm.UserOp.prototype.setSignature = function(value) {
|
|
13126
13121
|
return jspb.Message.setProto3StringField(this, 11, value);
|
|
13127
13122
|
};
|
|
13123
|
+
proto.aggregator.SimulateTaskReq.repeatedFields_ = [2, 3];
|
|
13124
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13125
|
+
proto.aggregator.SimulateTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
13126
|
+
return proto.aggregator.SimulateTaskReq.toObject(opt_includeInstance, this);
|
|
13127
|
+
};
|
|
13128
|
+
proto.aggregator.SimulateTaskReq.toObject = function(includeInstance, msg) {
|
|
13129
|
+
var f, obj = {
|
|
13130
|
+
trigger: (f = msg.getTrigger()) && proto.aggregator.TaskTrigger.toObject(includeInstance, f),
|
|
13131
|
+
nodesList: jspb.Message.toObjectList(
|
|
13132
|
+
msg.getNodesList(),
|
|
13133
|
+
proto.aggregator.TaskNode.toObject,
|
|
13134
|
+
includeInstance
|
|
13135
|
+
),
|
|
13136
|
+
edgesList: jspb.Message.toObjectList(
|
|
13137
|
+
msg.getEdgesList(),
|
|
13138
|
+
proto.aggregator.TaskEdge.toObject,
|
|
13139
|
+
includeInstance
|
|
13140
|
+
),
|
|
13141
|
+
inputVariablesMap: (f = msg.getInputVariablesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
13142
|
+
};
|
|
13143
|
+
if (includeInstance) {
|
|
13144
|
+
obj.$jspbMessageInstance = msg;
|
|
13145
|
+
}
|
|
13146
|
+
return obj;
|
|
13147
|
+
};
|
|
13148
|
+
}
|
|
13149
|
+
proto.aggregator.SimulateTaskReq.deserializeBinary = function(bytes) {
|
|
13150
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13151
|
+
var msg = new proto.aggregator.SimulateTaskReq();
|
|
13152
|
+
return proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
13153
|
+
};
|
|
13154
|
+
proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
13155
|
+
while (reader.nextField()) {
|
|
13156
|
+
if (reader.isEndGroup()) {
|
|
13157
|
+
break;
|
|
13158
|
+
}
|
|
13159
|
+
var field = reader.getFieldNumber();
|
|
13160
|
+
switch (field) {
|
|
13161
|
+
case 1:
|
|
13162
|
+
var value = new proto.aggregator.TaskTrigger();
|
|
13163
|
+
reader.readMessage(value, proto.aggregator.TaskTrigger.deserializeBinaryFromReader);
|
|
13164
|
+
msg.setTrigger(value);
|
|
13165
|
+
break;
|
|
13166
|
+
case 2:
|
|
13167
|
+
var value = new proto.aggregator.TaskNode();
|
|
13168
|
+
reader.readMessage(value, proto.aggregator.TaskNode.deserializeBinaryFromReader);
|
|
13169
|
+
msg.addNodes(value);
|
|
13170
|
+
break;
|
|
13171
|
+
case 3:
|
|
13172
|
+
var value = new proto.aggregator.TaskEdge();
|
|
13173
|
+
reader.readMessage(value, proto.aggregator.TaskEdge.deserializeBinaryFromReader);
|
|
13174
|
+
msg.addEdges(value);
|
|
13175
|
+
break;
|
|
13176
|
+
case 6:
|
|
13177
|
+
var value = msg.getInputVariablesMap();
|
|
13178
|
+
reader.readMessage(value, function(message, reader2) {
|
|
13179
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13180
|
+
});
|
|
13181
|
+
break;
|
|
13182
|
+
default:
|
|
13183
|
+
reader.skipField();
|
|
13184
|
+
break;
|
|
13185
|
+
}
|
|
13186
|
+
}
|
|
13187
|
+
return msg;
|
|
13188
|
+
};
|
|
13189
|
+
proto.aggregator.SimulateTaskReq.prototype.serializeBinary = function() {
|
|
13190
|
+
var writer = new jspb.BinaryWriter();
|
|
13191
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter(this, writer);
|
|
13192
|
+
return writer.getResultBuffer();
|
|
13193
|
+
};
|
|
13194
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter = function(message, writer) {
|
|
13195
|
+
var f = void 0;
|
|
13196
|
+
f = message.getTrigger();
|
|
13197
|
+
if (f != null) {
|
|
13198
|
+
writer.writeMessage(
|
|
13199
|
+
1,
|
|
13200
|
+
f,
|
|
13201
|
+
proto.aggregator.TaskTrigger.serializeBinaryToWriter
|
|
13202
|
+
);
|
|
13203
|
+
}
|
|
13204
|
+
f = message.getNodesList();
|
|
13205
|
+
if (f.length > 0) {
|
|
13206
|
+
writer.writeRepeatedMessage(
|
|
13207
|
+
2,
|
|
13208
|
+
f,
|
|
13209
|
+
proto.aggregator.TaskNode.serializeBinaryToWriter
|
|
13210
|
+
);
|
|
13211
|
+
}
|
|
13212
|
+
f = message.getEdgesList();
|
|
13213
|
+
if (f.length > 0) {
|
|
13214
|
+
writer.writeRepeatedMessage(
|
|
13215
|
+
3,
|
|
13216
|
+
f,
|
|
13217
|
+
proto.aggregator.TaskEdge.serializeBinaryToWriter
|
|
13218
|
+
);
|
|
13219
|
+
}
|
|
13220
|
+
f = message.getInputVariablesMap(true);
|
|
13221
|
+
if (f && f.getLength() > 0) {
|
|
13222
|
+
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
13223
|
+
}
|
|
13224
|
+
};
|
|
13225
|
+
proto.aggregator.SimulateTaskReq.prototype.getTrigger = function() {
|
|
13226
|
+
return (
|
|
13227
|
+
/** @type{?proto.aggregator.TaskTrigger} */
|
|
13228
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TaskTrigger, 1)
|
|
13229
|
+
);
|
|
13230
|
+
};
|
|
13231
|
+
proto.aggregator.SimulateTaskReq.prototype.setTrigger = function(value) {
|
|
13232
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
13233
|
+
};
|
|
13234
|
+
proto.aggregator.SimulateTaskReq.prototype.clearTrigger = function() {
|
|
13235
|
+
return this.setTrigger(void 0);
|
|
13236
|
+
};
|
|
13237
|
+
proto.aggregator.SimulateTaskReq.prototype.hasTrigger = function() {
|
|
13238
|
+
return jspb.Message.getField(this, 1) != null;
|
|
13239
|
+
};
|
|
13240
|
+
proto.aggregator.SimulateTaskReq.prototype.getNodesList = function() {
|
|
13241
|
+
return (
|
|
13242
|
+
/** @type{!Array<!proto.aggregator.TaskNode>} */
|
|
13243
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskNode, 2)
|
|
13244
|
+
);
|
|
13245
|
+
};
|
|
13246
|
+
proto.aggregator.SimulateTaskReq.prototype.setNodesList = function(value) {
|
|
13247
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
13248
|
+
};
|
|
13249
|
+
proto.aggregator.SimulateTaskReq.prototype.addNodes = function(opt_value, opt_index) {
|
|
13250
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.aggregator.TaskNode, opt_index);
|
|
13251
|
+
};
|
|
13252
|
+
proto.aggregator.SimulateTaskReq.prototype.clearNodesList = function() {
|
|
13253
|
+
return this.setNodesList([]);
|
|
13254
|
+
};
|
|
13255
|
+
proto.aggregator.SimulateTaskReq.prototype.getEdgesList = function() {
|
|
13256
|
+
return (
|
|
13257
|
+
/** @type{!Array<!proto.aggregator.TaskEdge>} */
|
|
13258
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskEdge, 3)
|
|
13259
|
+
);
|
|
13260
|
+
};
|
|
13261
|
+
proto.aggregator.SimulateTaskReq.prototype.setEdgesList = function(value) {
|
|
13262
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
13263
|
+
};
|
|
13264
|
+
proto.aggregator.SimulateTaskReq.prototype.addEdges = function(opt_value, opt_index) {
|
|
13265
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.aggregator.TaskEdge, opt_index);
|
|
13266
|
+
};
|
|
13267
|
+
proto.aggregator.SimulateTaskReq.prototype.clearEdgesList = function() {
|
|
13268
|
+
return this.setEdgesList([]);
|
|
13269
|
+
};
|
|
13270
|
+
proto.aggregator.SimulateTaskReq.prototype.getInputVariablesMap = function(opt_noLazyCreate) {
|
|
13271
|
+
return (
|
|
13272
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
13273
|
+
jspb.Message.getMapField(
|
|
13274
|
+
this,
|
|
13275
|
+
6,
|
|
13276
|
+
opt_noLazyCreate,
|
|
13277
|
+
proto.google.protobuf.Value
|
|
13278
|
+
)
|
|
13279
|
+
);
|
|
13280
|
+
};
|
|
13281
|
+
proto.aggregator.SimulateTaskReq.prototype.clearInputVariablesMap = function() {
|
|
13282
|
+
this.getInputVariablesMap().clear();
|
|
13283
|
+
return this;
|
|
13284
|
+
};
|
|
13128
13285
|
proto.aggregator.TriggerType = {
|
|
13129
13286
|
TRIGGER_TYPE_UNSPECIFIED: 0,
|
|
13130
13287
|
TRIGGER_TYPE_MANUAL: 1,
|
|
@@ -13181,352 +13338,360 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13181
13338
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
13182
13339
|
"use strict";
|
|
13183
13340
|
var grpc = require("@grpc/grpc-js");
|
|
13184
|
-
var
|
|
13341
|
+
var avs_pb23 = require_avs_pb();
|
|
13185
13342
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
13186
|
-
var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
13187
13343
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
13188
13344
|
var google_protobuf_struct_pb = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
13189
13345
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
13190
|
-
if (!(arg instanceof
|
|
13346
|
+
if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
|
|
13191
13347
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
13192
13348
|
}
|
|
13193
13349
|
return Buffer.from(arg.serializeBinary());
|
|
13194
13350
|
}
|
|
13195
13351
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
13196
|
-
return
|
|
13352
|
+
return avs_pb23.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13197
13353
|
}
|
|
13198
13354
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
13199
|
-
if (!(arg instanceof
|
|
13355
|
+
if (!(arg instanceof avs_pb23.CreateTaskReq)) {
|
|
13200
13356
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
13201
13357
|
}
|
|
13202
13358
|
return Buffer.from(arg.serializeBinary());
|
|
13203
13359
|
}
|
|
13204
13360
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
13205
|
-
return
|
|
13361
|
+
return avs_pb23.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13206
13362
|
}
|
|
13207
13363
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
13208
|
-
if (!(arg instanceof
|
|
13364
|
+
if (!(arg instanceof avs_pb23.CreateTaskResp)) {
|
|
13209
13365
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
13210
13366
|
}
|
|
13211
13367
|
return Buffer.from(arg.serializeBinary());
|
|
13212
13368
|
}
|
|
13213
13369
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
13214
|
-
return
|
|
13370
|
+
return avs_pb23.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13215
13371
|
}
|
|
13216
13372
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
13217
|
-
if (!(arg instanceof
|
|
13373
|
+
if (!(arg instanceof avs_pb23.DeleteSecretReq)) {
|
|
13218
13374
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
13219
13375
|
}
|
|
13220
13376
|
return Buffer.from(arg.serializeBinary());
|
|
13221
13377
|
}
|
|
13222
13378
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
13223
|
-
return
|
|
13379
|
+
return avs_pb23.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13224
13380
|
}
|
|
13225
13381
|
function serialize_aggregator_Execution(arg) {
|
|
13226
|
-
if (!(arg instanceof
|
|
13382
|
+
if (!(arg instanceof avs_pb23.Execution)) {
|
|
13227
13383
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
13228
13384
|
}
|
|
13229
13385
|
return Buffer.from(arg.serializeBinary());
|
|
13230
13386
|
}
|
|
13231
13387
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
13232
|
-
return
|
|
13388
|
+
return avs_pb23.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13233
13389
|
}
|
|
13234
13390
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
13235
|
-
if (!(arg instanceof
|
|
13391
|
+
if (!(arg instanceof avs_pb23.ExecutionReq)) {
|
|
13236
13392
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
13237
13393
|
}
|
|
13238
13394
|
return Buffer.from(arg.serializeBinary());
|
|
13239
13395
|
}
|
|
13240
13396
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
13241
|
-
return
|
|
13397
|
+
return avs_pb23.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13242
13398
|
}
|
|
13243
13399
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
13244
|
-
if (!(arg instanceof
|
|
13400
|
+
if (!(arg instanceof avs_pb23.ExecutionStatusResp)) {
|
|
13245
13401
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
13246
13402
|
}
|
|
13247
13403
|
return Buffer.from(arg.serializeBinary());
|
|
13248
13404
|
}
|
|
13249
13405
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
13250
|
-
return
|
|
13406
|
+
return avs_pb23.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13251
13407
|
}
|
|
13252
13408
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
13253
|
-
if (!(arg instanceof
|
|
13409
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountReq)) {
|
|
13254
13410
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
13255
13411
|
}
|
|
13256
13412
|
return Buffer.from(arg.serializeBinary());
|
|
13257
13413
|
}
|
|
13258
13414
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
13259
|
-
return
|
|
13415
|
+
return avs_pb23.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13260
13416
|
}
|
|
13261
13417
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
13262
|
-
if (!(arg instanceof
|
|
13418
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountResp)) {
|
|
13263
13419
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
13264
13420
|
}
|
|
13265
13421
|
return Buffer.from(arg.serializeBinary());
|
|
13266
13422
|
}
|
|
13267
13423
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
13268
|
-
return
|
|
13424
|
+
return avs_pb23.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13269
13425
|
}
|
|
13270
13426
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
13271
|
-
if (!(arg instanceof
|
|
13427
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsReq)) {
|
|
13272
13428
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
13273
13429
|
}
|
|
13274
13430
|
return Buffer.from(arg.serializeBinary());
|
|
13275
13431
|
}
|
|
13276
13432
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
13277
|
-
return
|
|
13433
|
+
return avs_pb23.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13278
13434
|
}
|
|
13279
13435
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
13280
|
-
if (!(arg instanceof
|
|
13436
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsResp)) {
|
|
13281
13437
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
13282
13438
|
}
|
|
13283
13439
|
return Buffer.from(arg.serializeBinary());
|
|
13284
13440
|
}
|
|
13285
13441
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
13286
|
-
return
|
|
13442
|
+
return avs_pb23.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13287
13443
|
}
|
|
13288
13444
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
13289
|
-
if (!(arg instanceof
|
|
13445
|
+
if (!(arg instanceof avs_pb23.GetKeyReq)) {
|
|
13290
13446
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
13291
13447
|
}
|
|
13292
13448
|
return Buffer.from(arg.serializeBinary());
|
|
13293
13449
|
}
|
|
13294
13450
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
13295
|
-
return
|
|
13451
|
+
return avs_pb23.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13296
13452
|
}
|
|
13297
13453
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
13298
|
-
if (!(arg instanceof
|
|
13454
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatReq)) {
|
|
13299
13455
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
13300
13456
|
}
|
|
13301
13457
|
return Buffer.from(arg.serializeBinary());
|
|
13302
13458
|
}
|
|
13303
13459
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
13304
|
-
return
|
|
13460
|
+
return avs_pb23.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13305
13461
|
}
|
|
13306
13462
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
13307
|
-
if (!(arg instanceof
|
|
13463
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatResp)) {
|
|
13308
13464
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
13309
13465
|
}
|
|
13310
13466
|
return Buffer.from(arg.serializeBinary());
|
|
13311
13467
|
}
|
|
13312
13468
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
13313
|
-
return
|
|
13469
|
+
return avs_pb23.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13314
13470
|
}
|
|
13315
13471
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
13316
|
-
if (!(arg instanceof
|
|
13472
|
+
if (!(arg instanceof avs_pb23.GetWalletReq)) {
|
|
13317
13473
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
13318
13474
|
}
|
|
13319
13475
|
return Buffer.from(arg.serializeBinary());
|
|
13320
13476
|
}
|
|
13321
13477
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
13322
|
-
return
|
|
13478
|
+
return avs_pb23.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13323
13479
|
}
|
|
13324
13480
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
13325
|
-
if (!(arg instanceof
|
|
13481
|
+
if (!(arg instanceof avs_pb23.GetWalletResp)) {
|
|
13326
13482
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
13327
13483
|
}
|
|
13328
13484
|
return Buffer.from(arg.serializeBinary());
|
|
13329
13485
|
}
|
|
13330
13486
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
13331
|
-
return
|
|
13487
|
+
return avs_pb23.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13332
13488
|
}
|
|
13333
13489
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
13334
|
-
if (!(arg instanceof
|
|
13490
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountReq)) {
|
|
13335
13491
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
13336
13492
|
}
|
|
13337
13493
|
return Buffer.from(arg.serializeBinary());
|
|
13338
13494
|
}
|
|
13339
13495
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
13340
|
-
return
|
|
13496
|
+
return avs_pb23.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13341
13497
|
}
|
|
13342
13498
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
13343
|
-
if (!(arg instanceof
|
|
13499
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountResp)) {
|
|
13344
13500
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
13345
13501
|
}
|
|
13346
13502
|
return Buffer.from(arg.serializeBinary());
|
|
13347
13503
|
}
|
|
13348
13504
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
13349
|
-
return
|
|
13505
|
+
return avs_pb23.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13350
13506
|
}
|
|
13351
13507
|
function serialize_aggregator_IdReq(arg) {
|
|
13352
|
-
if (!(arg instanceof
|
|
13508
|
+
if (!(arg instanceof avs_pb23.IdReq)) {
|
|
13353
13509
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
13354
13510
|
}
|
|
13355
13511
|
return Buffer.from(arg.serializeBinary());
|
|
13356
13512
|
}
|
|
13357
13513
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
13358
|
-
return
|
|
13514
|
+
return avs_pb23.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13359
13515
|
}
|
|
13360
13516
|
function serialize_aggregator_KeyResp(arg) {
|
|
13361
|
-
if (!(arg instanceof
|
|
13517
|
+
if (!(arg instanceof avs_pb23.KeyResp)) {
|
|
13362
13518
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
13363
13519
|
}
|
|
13364
13520
|
return Buffer.from(arg.serializeBinary());
|
|
13365
13521
|
}
|
|
13366
13522
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
13367
|
-
return
|
|
13523
|
+
return avs_pb23.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13368
13524
|
}
|
|
13369
13525
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
13370
|
-
if (!(arg instanceof
|
|
13526
|
+
if (!(arg instanceof avs_pb23.ListExecutionsReq)) {
|
|
13371
13527
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
13372
13528
|
}
|
|
13373
13529
|
return Buffer.from(arg.serializeBinary());
|
|
13374
13530
|
}
|
|
13375
13531
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
13376
|
-
return
|
|
13532
|
+
return avs_pb23.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13377
13533
|
}
|
|
13378
13534
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
13379
|
-
if (!(arg instanceof
|
|
13535
|
+
if (!(arg instanceof avs_pb23.ListExecutionsResp)) {
|
|
13380
13536
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
13381
13537
|
}
|
|
13382
13538
|
return Buffer.from(arg.serializeBinary());
|
|
13383
13539
|
}
|
|
13384
13540
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
13385
|
-
return
|
|
13541
|
+
return avs_pb23.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13386
13542
|
}
|
|
13387
13543
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
13388
|
-
if (!(arg instanceof
|
|
13544
|
+
if (!(arg instanceof avs_pb23.ListSecretsReq)) {
|
|
13389
13545
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
13390
13546
|
}
|
|
13391
13547
|
return Buffer.from(arg.serializeBinary());
|
|
13392
13548
|
}
|
|
13393
13549
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
13394
|
-
return
|
|
13550
|
+
return avs_pb23.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13395
13551
|
}
|
|
13396
13552
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
13397
|
-
if (!(arg instanceof
|
|
13553
|
+
if (!(arg instanceof avs_pb23.ListSecretsResp)) {
|
|
13398
13554
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
13399
13555
|
}
|
|
13400
13556
|
return Buffer.from(arg.serializeBinary());
|
|
13401
13557
|
}
|
|
13402
13558
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
13403
|
-
return
|
|
13559
|
+
return avs_pb23.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13404
13560
|
}
|
|
13405
13561
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
13406
|
-
if (!(arg instanceof
|
|
13562
|
+
if (!(arg instanceof avs_pb23.ListTasksReq)) {
|
|
13407
13563
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
13408
13564
|
}
|
|
13409
13565
|
return Buffer.from(arg.serializeBinary());
|
|
13410
13566
|
}
|
|
13411
13567
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
13412
|
-
return
|
|
13568
|
+
return avs_pb23.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13413
13569
|
}
|
|
13414
13570
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
13415
|
-
if (!(arg instanceof
|
|
13571
|
+
if (!(arg instanceof avs_pb23.ListTasksResp)) {
|
|
13416
13572
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
13417
13573
|
}
|
|
13418
13574
|
return Buffer.from(arg.serializeBinary());
|
|
13419
13575
|
}
|
|
13420
13576
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
13421
|
-
return
|
|
13577
|
+
return avs_pb23.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13422
13578
|
}
|
|
13423
13579
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
13424
|
-
if (!(arg instanceof
|
|
13580
|
+
if (!(arg instanceof avs_pb23.ListWalletReq)) {
|
|
13425
13581
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
13426
13582
|
}
|
|
13427
13583
|
return Buffer.from(arg.serializeBinary());
|
|
13428
13584
|
}
|
|
13429
13585
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
13430
|
-
return
|
|
13586
|
+
return avs_pb23.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13431
13587
|
}
|
|
13432
13588
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
13433
|
-
if (!(arg instanceof
|
|
13589
|
+
if (!(arg instanceof avs_pb23.ListWalletResp)) {
|
|
13434
13590
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
13435
13591
|
}
|
|
13436
13592
|
return Buffer.from(arg.serializeBinary());
|
|
13437
13593
|
}
|
|
13438
13594
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
13439
|
-
return
|
|
13595
|
+
return avs_pb23.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13440
13596
|
}
|
|
13441
13597
|
function serialize_aggregator_NonceRequest(arg) {
|
|
13442
|
-
if (!(arg instanceof
|
|
13598
|
+
if (!(arg instanceof avs_pb23.NonceRequest)) {
|
|
13443
13599
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
13444
13600
|
}
|
|
13445
13601
|
return Buffer.from(arg.serializeBinary());
|
|
13446
13602
|
}
|
|
13447
13603
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
13448
|
-
return
|
|
13604
|
+
return avs_pb23.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13449
13605
|
}
|
|
13450
13606
|
function serialize_aggregator_NonceResp(arg) {
|
|
13451
|
-
if (!(arg instanceof
|
|
13607
|
+
if (!(arg instanceof avs_pb23.NonceResp)) {
|
|
13452
13608
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
13453
13609
|
}
|
|
13454
13610
|
return Buffer.from(arg.serializeBinary());
|
|
13455
13611
|
}
|
|
13456
13612
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
13457
|
-
return
|
|
13613
|
+
return avs_pb23.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13458
13614
|
}
|
|
13459
13615
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
13460
|
-
if (!(arg instanceof
|
|
13616
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsReq)) {
|
|
13461
13617
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
13462
13618
|
}
|
|
13463
13619
|
return Buffer.from(arg.serializeBinary());
|
|
13464
13620
|
}
|
|
13465
13621
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
13466
|
-
return
|
|
13622
|
+
return avs_pb23.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13467
13623
|
}
|
|
13468
13624
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
13469
|
-
if (!(arg instanceof
|
|
13625
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsResp)) {
|
|
13470
13626
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
13471
13627
|
}
|
|
13472
13628
|
return Buffer.from(arg.serializeBinary());
|
|
13473
13629
|
}
|
|
13474
13630
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
13475
|
-
return
|
|
13631
|
+
return avs_pb23.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13476
13632
|
}
|
|
13477
13633
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
13478
|
-
if (!(arg instanceof
|
|
13634
|
+
if (!(arg instanceof avs_pb23.RunTriggerReq)) {
|
|
13479
13635
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
13480
13636
|
}
|
|
13481
13637
|
return Buffer.from(arg.serializeBinary());
|
|
13482
13638
|
}
|
|
13483
13639
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
13484
|
-
return
|
|
13640
|
+
return avs_pb23.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13485
13641
|
}
|
|
13486
13642
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
13487
|
-
if (!(arg instanceof
|
|
13643
|
+
if (!(arg instanceof avs_pb23.RunTriggerResp)) {
|
|
13488
13644
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
13489
13645
|
}
|
|
13490
13646
|
return Buffer.from(arg.serializeBinary());
|
|
13491
13647
|
}
|
|
13492
13648
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
13493
|
-
return
|
|
13649
|
+
return avs_pb23.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13494
13650
|
}
|
|
13495
13651
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
13496
|
-
if (!(arg instanceof
|
|
13652
|
+
if (!(arg instanceof avs_pb23.SetWalletReq)) {
|
|
13497
13653
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
13498
13654
|
}
|
|
13499
13655
|
return Buffer.from(arg.serializeBinary());
|
|
13500
13656
|
}
|
|
13501
13657
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
13502
|
-
return
|
|
13658
|
+
return avs_pb23.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13659
|
+
}
|
|
13660
|
+
function serialize_aggregator_SimulateTaskReq(arg) {
|
|
13661
|
+
if (!(arg instanceof avs_pb23.SimulateTaskReq)) {
|
|
13662
|
+
throw new Error("Expected argument of type aggregator.SimulateTaskReq");
|
|
13663
|
+
}
|
|
13664
|
+
return Buffer.from(arg.serializeBinary());
|
|
13665
|
+
}
|
|
13666
|
+
function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
|
|
13667
|
+
return avs_pb23.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13503
13668
|
}
|
|
13504
13669
|
function serialize_aggregator_Task(arg) {
|
|
13505
|
-
if (!(arg instanceof
|
|
13670
|
+
if (!(arg instanceof avs_pb23.Task)) {
|
|
13506
13671
|
throw new Error("Expected argument of type aggregator.Task");
|
|
13507
13672
|
}
|
|
13508
13673
|
return Buffer.from(arg.serializeBinary());
|
|
13509
13674
|
}
|
|
13510
13675
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
13511
|
-
return
|
|
13676
|
+
return avs_pb23.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13512
13677
|
}
|
|
13513
13678
|
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
13514
|
-
if (!(arg instanceof
|
|
13679
|
+
if (!(arg instanceof avs_pb23.TriggerTaskReq)) {
|
|
13515
13680
|
throw new Error("Expected argument of type aggregator.TriggerTaskReq");
|
|
13516
13681
|
}
|
|
13517
13682
|
return Buffer.from(arg.serializeBinary());
|
|
13518
13683
|
}
|
|
13519
13684
|
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
13520
|
-
return
|
|
13685
|
+
return avs_pb23.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13521
13686
|
}
|
|
13522
13687
|
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
13523
|
-
if (!(arg instanceof
|
|
13688
|
+
if (!(arg instanceof avs_pb23.TriggerTaskResp)) {
|
|
13524
13689
|
throw new Error("Expected argument of type aggregator.TriggerTaskResp");
|
|
13525
13690
|
}
|
|
13526
13691
|
return Buffer.from(arg.serializeBinary());
|
|
13527
13692
|
}
|
|
13528
13693
|
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
13529
|
-
return
|
|
13694
|
+
return avs_pb23.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13530
13695
|
}
|
|
13531
13696
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
13532
13697
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -13543,8 +13708,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13543
13708
|
path: "/aggregator.Aggregator/GetKey",
|
|
13544
13709
|
requestStream: false,
|
|
13545
13710
|
responseStream: false,
|
|
13546
|
-
requestType:
|
|
13547
|
-
responseType:
|
|
13711
|
+
requestType: avs_pb23.GetKeyReq,
|
|
13712
|
+
responseType: avs_pb23.KeyResp,
|
|
13548
13713
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
13549
13714
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
13550
13715
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -13555,8 +13720,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13555
13720
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
13556
13721
|
requestStream: false,
|
|
13557
13722
|
responseStream: false,
|
|
13558
|
-
requestType:
|
|
13559
|
-
responseType:
|
|
13723
|
+
requestType: avs_pb23.GetSignatureFormatReq,
|
|
13724
|
+
responseType: avs_pb23.GetSignatureFormatResp,
|
|
13560
13725
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
13561
13726
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
13562
13727
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -13567,8 +13732,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13567
13732
|
path: "/aggregator.Aggregator/GetNonce",
|
|
13568
13733
|
requestStream: false,
|
|
13569
13734
|
responseStream: false,
|
|
13570
|
-
requestType:
|
|
13571
|
-
responseType:
|
|
13735
|
+
requestType: avs_pb23.NonceRequest,
|
|
13736
|
+
responseType: avs_pb23.NonceResp,
|
|
13572
13737
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
13573
13738
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
13574
13739
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -13578,8 +13743,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13578
13743
|
path: "/aggregator.Aggregator/GetWallet",
|
|
13579
13744
|
requestStream: false,
|
|
13580
13745
|
responseStream: false,
|
|
13581
|
-
requestType:
|
|
13582
|
-
responseType:
|
|
13746
|
+
requestType: avs_pb23.GetWalletReq,
|
|
13747
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13583
13748
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
13584
13749
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
13585
13750
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13589,8 +13754,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13589
13754
|
path: "/aggregator.Aggregator/SetWallet",
|
|
13590
13755
|
requestStream: false,
|
|
13591
13756
|
responseStream: false,
|
|
13592
|
-
requestType:
|
|
13593
|
-
responseType:
|
|
13757
|
+
requestType: avs_pb23.SetWalletReq,
|
|
13758
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13594
13759
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
13595
13760
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
13596
13761
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13600,8 +13765,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13600
13765
|
path: "/aggregator.Aggregator/ListWallets",
|
|
13601
13766
|
requestStream: false,
|
|
13602
13767
|
responseStream: false,
|
|
13603
|
-
requestType:
|
|
13604
|
-
responseType:
|
|
13768
|
+
requestType: avs_pb23.ListWalletReq,
|
|
13769
|
+
responseType: avs_pb23.ListWalletResp,
|
|
13605
13770
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
13606
13771
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
13607
13772
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -13612,8 +13777,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13612
13777
|
path: "/aggregator.Aggregator/CreateTask",
|
|
13613
13778
|
requestStream: false,
|
|
13614
13779
|
responseStream: false,
|
|
13615
|
-
requestType:
|
|
13616
|
-
responseType:
|
|
13780
|
+
requestType: avs_pb23.CreateTaskReq,
|
|
13781
|
+
responseType: avs_pb23.CreateTaskResp,
|
|
13617
13782
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
13618
13783
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
13619
13784
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -13623,8 +13788,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13623
13788
|
path: "/aggregator.Aggregator/ListTasks",
|
|
13624
13789
|
requestStream: false,
|
|
13625
13790
|
responseStream: false,
|
|
13626
|
-
requestType:
|
|
13627
|
-
responseType:
|
|
13791
|
+
requestType: avs_pb23.ListTasksReq,
|
|
13792
|
+
responseType: avs_pb23.ListTasksResp,
|
|
13628
13793
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
13629
13794
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
13630
13795
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -13634,8 +13799,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13634
13799
|
path: "/aggregator.Aggregator/GetTask",
|
|
13635
13800
|
requestStream: false,
|
|
13636
13801
|
responseStream: false,
|
|
13637
|
-
requestType:
|
|
13638
|
-
responseType:
|
|
13802
|
+
requestType: avs_pb23.IdReq,
|
|
13803
|
+
responseType: avs_pb23.Task,
|
|
13639
13804
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13640
13805
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
13641
13806
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -13645,8 +13810,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13645
13810
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
13646
13811
|
requestStream: false,
|
|
13647
13812
|
responseStream: false,
|
|
13648
|
-
requestType:
|
|
13649
|
-
responseType:
|
|
13813
|
+
requestType: avs_pb23.ListExecutionsReq,
|
|
13814
|
+
responseType: avs_pb23.ListExecutionsResp,
|
|
13650
13815
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
13651
13816
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
13652
13817
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -13656,8 +13821,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13656
13821
|
path: "/aggregator.Aggregator/GetExecution",
|
|
13657
13822
|
requestStream: false,
|
|
13658
13823
|
responseStream: false,
|
|
13659
|
-
requestType:
|
|
13660
|
-
responseType:
|
|
13824
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13825
|
+
responseType: avs_pb23.Execution,
|
|
13661
13826
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13662
13827
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13663
13828
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -13667,8 +13832,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13667
13832
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
13668
13833
|
requestStream: false,
|
|
13669
13834
|
responseStream: false,
|
|
13670
|
-
requestType:
|
|
13671
|
-
responseType:
|
|
13835
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13836
|
+
responseType: avs_pb23.ExecutionStatusResp,
|
|
13672
13837
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13673
13838
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13674
13839
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -13678,7 +13843,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13678
13843
|
path: "/aggregator.Aggregator/CancelTask",
|
|
13679
13844
|
requestStream: false,
|
|
13680
13845
|
responseStream: false,
|
|
13681
|
-
requestType:
|
|
13846
|
+
requestType: avs_pb23.IdReq,
|
|
13682
13847
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13683
13848
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13684
13849
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13689,7 +13854,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13689
13854
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
13690
13855
|
requestStream: false,
|
|
13691
13856
|
responseStream: false,
|
|
13692
|
-
requestType:
|
|
13857
|
+
requestType: avs_pb23.IdReq,
|
|
13693
13858
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13694
13859
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13695
13860
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13700,8 +13865,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13700
13865
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
13701
13866
|
requestStream: false,
|
|
13702
13867
|
responseStream: false,
|
|
13703
|
-
requestType:
|
|
13704
|
-
responseType:
|
|
13868
|
+
requestType: avs_pb23.TriggerTaskReq,
|
|
13869
|
+
responseType: avs_pb23.TriggerTaskResp,
|
|
13705
13870
|
requestSerialize: serialize_aggregator_TriggerTaskReq,
|
|
13706
13871
|
requestDeserialize: deserialize_aggregator_TriggerTaskReq,
|
|
13707
13872
|
responseSerialize: serialize_aggregator_TriggerTaskResp,
|
|
@@ -13714,7 +13879,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13714
13879
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
13715
13880
|
requestStream: false,
|
|
13716
13881
|
responseStream: false,
|
|
13717
|
-
requestType:
|
|
13882
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13718
13883
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13719
13884
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13720
13885
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13725,7 +13890,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13725
13890
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
13726
13891
|
requestStream: false,
|
|
13727
13892
|
responseStream: false,
|
|
13728
|
-
requestType:
|
|
13893
|
+
requestType: avs_pb23.DeleteSecretReq,
|
|
13729
13894
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13730
13895
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
13731
13896
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -13738,8 +13903,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13738
13903
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
13739
13904
|
requestStream: false,
|
|
13740
13905
|
responseStream: false,
|
|
13741
|
-
requestType:
|
|
13742
|
-
responseType:
|
|
13906
|
+
requestType: avs_pb23.ListSecretsReq,
|
|
13907
|
+
responseType: avs_pb23.ListSecretsResp,
|
|
13743
13908
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
13744
13909
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
13745
13910
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -13751,7 +13916,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13751
13916
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
13752
13917
|
requestStream: false,
|
|
13753
13918
|
responseStream: false,
|
|
13754
|
-
requestType:
|
|
13919
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13755
13920
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13756
13921
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13757
13922
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13768,8 +13933,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13768
13933
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
13769
13934
|
requestStream: false,
|
|
13770
13935
|
responseStream: false,
|
|
13771
|
-
requestType:
|
|
13772
|
-
responseType:
|
|
13936
|
+
requestType: avs_pb23.GetWorkflowCountReq,
|
|
13937
|
+
responseType: avs_pb23.GetWorkflowCountResp,
|
|
13773
13938
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
13774
13939
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
13775
13940
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -13783,8 +13948,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13783
13948
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
13784
13949
|
requestStream: false,
|
|
13785
13950
|
responseStream: false,
|
|
13786
|
-
requestType:
|
|
13787
|
-
responseType:
|
|
13951
|
+
requestType: avs_pb23.GetExecutionCountReq,
|
|
13952
|
+
responseType: avs_pb23.GetExecutionCountResp,
|
|
13788
13953
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
13789
13954
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
13790
13955
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -13797,8 +13962,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13797
13962
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
13798
13963
|
requestStream: false,
|
|
13799
13964
|
responseStream: false,
|
|
13800
|
-
requestType:
|
|
13801
|
-
responseType:
|
|
13965
|
+
requestType: avs_pb23.GetExecutionStatsReq,
|
|
13966
|
+
responseType: avs_pb23.GetExecutionStatsResp,
|
|
13802
13967
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
13803
13968
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
13804
13969
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -13809,8 +13974,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13809
13974
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
13810
13975
|
requestStream: false,
|
|
13811
13976
|
responseStream: false,
|
|
13812
|
-
requestType:
|
|
13813
|
-
responseType:
|
|
13977
|
+
requestType: avs_pb23.RunNodeWithInputsReq,
|
|
13978
|
+
responseType: avs_pb23.RunNodeWithInputsResp,
|
|
13814
13979
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
13815
13980
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
13816
13981
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -13821,12 +13986,24 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13821
13986
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
13822
13987
|
requestStream: false,
|
|
13823
13988
|
responseStream: false,
|
|
13824
|
-
requestType:
|
|
13825
|
-
responseType:
|
|
13989
|
+
requestType: avs_pb23.RunTriggerReq,
|
|
13990
|
+
responseType: avs_pb23.RunTriggerResp,
|
|
13826
13991
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
13827
13992
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
13828
13993
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
13829
13994
|
responseDeserialize: deserialize_aggregator_RunTriggerResp
|
|
13995
|
+
},
|
|
13996
|
+
// SimulateTask allows executing a complete task simulation including trigger and all workflow nodes
|
|
13997
|
+
simulateTask: {
|
|
13998
|
+
path: "/aggregator.Aggregator/SimulateTask",
|
|
13999
|
+
requestStream: false,
|
|
14000
|
+
responseStream: false,
|
|
14001
|
+
requestType: avs_pb23.SimulateTaskReq,
|
|
14002
|
+
responseType: avs_pb23.Execution,
|
|
14003
|
+
requestSerialize: serialize_aggregator_SimulateTaskReq,
|
|
14004
|
+
requestDeserialize: deserialize_aggregator_SimulateTaskReq,
|
|
14005
|
+
responseSerialize: serialize_aggregator_Execution,
|
|
14006
|
+
responseDeserialize: deserialize_aggregator_Execution
|
|
13830
14007
|
}
|
|
13831
14008
|
};
|
|
13832
14009
|
exports2.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
@@ -13842,7 +14019,7 @@ __export(index_exports, {
|
|
|
13842
14019
|
ContractReadNode: () => contractRead_default,
|
|
13843
14020
|
ContractWriteNode: () => contractWrite_default,
|
|
13844
14021
|
CronTrigger: () => cron_default,
|
|
13845
|
-
CustomCodeLangs: () =>
|
|
14022
|
+
CustomCodeLangs: () => import_types18.CustomCodeLangs,
|
|
13846
14023
|
CustomCodeNode: () => customCode_default,
|
|
13847
14024
|
ETHTransferNode: () => ethTransfer_default,
|
|
13848
14025
|
Edge: () => edge_default,
|
|
@@ -13865,7 +14042,7 @@ __export(index_exports, {
|
|
|
13865
14042
|
module.exports = __toCommonJS(index_exports);
|
|
13866
14043
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
13867
14044
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
13868
|
-
var
|
|
14045
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
13869
14046
|
|
|
13870
14047
|
// src/models/workflow.ts
|
|
13871
14048
|
var import_lodash3 = __toESM(require("lodash"));
|
|
@@ -13930,6 +14107,7 @@ var BlockTrigger2 = class _BlockTrigger extends interface_default {
|
|
|
13930
14107
|
const request = new avs_pb2.TaskTrigger();
|
|
13931
14108
|
request.setName(this.name);
|
|
13932
14109
|
request.setId(this.id);
|
|
14110
|
+
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
13933
14111
|
if (!this.data) {
|
|
13934
14112
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
13935
14113
|
}
|
|
@@ -13988,6 +14166,7 @@ var CronTrigger2 = class _CronTrigger extends interface_default {
|
|
|
13988
14166
|
const request = new avs_pb3.TaskTrigger();
|
|
13989
14167
|
request.setName(this.name);
|
|
13990
14168
|
request.setId(this.id);
|
|
14169
|
+
request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
|
|
13991
14170
|
if (!this.data) {
|
|
13992
14171
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
13993
14172
|
}
|
|
@@ -14053,6 +14232,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
14053
14232
|
const request = new avs_pb4.TaskTrigger();
|
|
14054
14233
|
request.setName(this.name);
|
|
14055
14234
|
request.setId(this.id);
|
|
14235
|
+
request.setType(avs_pb4.TriggerType.TRIGGER_TYPE_EVENT);
|
|
14056
14236
|
if (!this.data) {
|
|
14057
14237
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
14058
14238
|
}
|
|
@@ -14135,6 +14315,7 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends interface_default {
|
|
|
14135
14315
|
const request = new avs_pb5.TaskTrigger();
|
|
14136
14316
|
request.setName(this.name);
|
|
14137
14317
|
request.setId(this.id);
|
|
14318
|
+
request.setType(avs_pb5.TriggerType.TRIGGER_TYPE_FIXED_TIME);
|
|
14138
14319
|
if (!this.data) {
|
|
14139
14320
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
14140
14321
|
}
|
|
@@ -14199,6 +14380,7 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
14199
14380
|
const trigger = new avs_pb6.TaskTrigger();
|
|
14200
14381
|
trigger.setId(this.id);
|
|
14201
14382
|
trigger.setName(this.name);
|
|
14383
|
+
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
14202
14384
|
trigger.setManual(true);
|
|
14203
14385
|
return trigger;
|
|
14204
14386
|
}
|
|
@@ -14235,10 +14417,11 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
14235
14417
|
var manual_default = ManualTrigger;
|
|
14236
14418
|
|
|
14237
14419
|
// src/models/trigger/factory.ts
|
|
14238
|
-
var
|
|
14420
|
+
var import_types7 = require("@avaprotocol/types");
|
|
14239
14421
|
|
|
14240
14422
|
// src/utils.ts
|
|
14241
14423
|
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
14424
|
+
var import_types6 = require("@avaprotocol/types");
|
|
14242
14425
|
function convertProtobufValueToJs(value) {
|
|
14243
14426
|
if (!value) {
|
|
14244
14427
|
return void 0;
|
|
@@ -14299,6 +14482,78 @@ function convertJSValueToProtobuf(value) {
|
|
|
14299
14482
|
}
|
|
14300
14483
|
return protobufValue;
|
|
14301
14484
|
}
|
|
14485
|
+
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
14486
|
+
switch (protobufType) {
|
|
14487
|
+
case "TRIGGER_TYPE_MANUAL":
|
|
14488
|
+
return import_types6.TriggerType.Manual;
|
|
14489
|
+
// "manualTrigger"
|
|
14490
|
+
case "TRIGGER_TYPE_FIXED_TIME":
|
|
14491
|
+
return import_types6.TriggerType.FixedTime;
|
|
14492
|
+
// "fixedTimeTrigger"
|
|
14493
|
+
case "TRIGGER_TYPE_CRON":
|
|
14494
|
+
return import_types6.TriggerType.Cron;
|
|
14495
|
+
// "cronTrigger"
|
|
14496
|
+
case "TRIGGER_TYPE_BLOCK":
|
|
14497
|
+
return import_types6.TriggerType.Block;
|
|
14498
|
+
// "blockTrigger"
|
|
14499
|
+
case "TRIGGER_TYPE_EVENT":
|
|
14500
|
+
return import_types6.TriggerType.Event;
|
|
14501
|
+
// "eventTrigger"
|
|
14502
|
+
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
14503
|
+
return import_types6.TriggerType.Unspecified;
|
|
14504
|
+
// "unspecified"
|
|
14505
|
+
default:
|
|
14506
|
+
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
14507
|
+
return protobufType;
|
|
14508
|
+
}
|
|
14509
|
+
}
|
|
14510
|
+
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
14511
|
+
switch (protobufType) {
|
|
14512
|
+
case "NODE_TYPE_ETH_TRANSFER":
|
|
14513
|
+
return import_types6.NodeType.ETHTransfer;
|
|
14514
|
+
// "ethTransfer"
|
|
14515
|
+
case "NODE_TYPE_CONTRACT_WRITE":
|
|
14516
|
+
return import_types6.NodeType.ContractWrite;
|
|
14517
|
+
// "contractWrite"
|
|
14518
|
+
case "NODE_TYPE_CONTRACT_READ":
|
|
14519
|
+
return import_types6.NodeType.ContractRead;
|
|
14520
|
+
// "contractRead"
|
|
14521
|
+
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
14522
|
+
return import_types6.NodeType.GraphQLQuery;
|
|
14523
|
+
// "graphql"
|
|
14524
|
+
case "NODE_TYPE_REST_API":
|
|
14525
|
+
return import_types6.NodeType.RestAPI;
|
|
14526
|
+
// "restApi"
|
|
14527
|
+
case "NODE_TYPE_CUSTOM_CODE":
|
|
14528
|
+
return import_types6.NodeType.CustomCode;
|
|
14529
|
+
// "customCode"
|
|
14530
|
+
case "NODE_TYPE_BRANCH":
|
|
14531
|
+
return import_types6.NodeType.Branch;
|
|
14532
|
+
// "branch"
|
|
14533
|
+
case "NODE_TYPE_FILTER":
|
|
14534
|
+
return import_types6.NodeType.Filter;
|
|
14535
|
+
// "filter"
|
|
14536
|
+
case "NODE_TYPE_LOOP":
|
|
14537
|
+
return import_types6.NodeType.Loop;
|
|
14538
|
+
// "loop"
|
|
14539
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
14540
|
+
return import_types6.NodeType.Unspecified;
|
|
14541
|
+
// "unspecified"
|
|
14542
|
+
default:
|
|
14543
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
14544
|
+
return protobufType;
|
|
14545
|
+
}
|
|
14546
|
+
}
|
|
14547
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
14548
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
14549
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
14550
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
14551
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
14552
|
+
} else {
|
|
14553
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
14554
|
+
return protobufType;
|
|
14555
|
+
}
|
|
14556
|
+
}
|
|
14302
14557
|
|
|
14303
14558
|
// src/models/trigger/factory.ts
|
|
14304
14559
|
var TriggerFactory = class {
|
|
@@ -14309,15 +14564,15 @@ var TriggerFactory = class {
|
|
|
14309
14564
|
*/
|
|
14310
14565
|
static create(props) {
|
|
14311
14566
|
switch (props.type) {
|
|
14312
|
-
case
|
|
14567
|
+
case import_types7.TriggerType.Block:
|
|
14313
14568
|
return new block_default(props);
|
|
14314
|
-
case
|
|
14569
|
+
case import_types7.TriggerType.Cron:
|
|
14315
14570
|
return new cron_default(props);
|
|
14316
|
-
case
|
|
14571
|
+
case import_types7.TriggerType.Event:
|
|
14317
14572
|
return new event_default(props);
|
|
14318
|
-
case
|
|
14573
|
+
case import_types7.TriggerType.FixedTime:
|
|
14319
14574
|
return new fixedTime_default(props);
|
|
14320
|
-
case
|
|
14575
|
+
case import_types7.TriggerType.Manual:
|
|
14321
14576
|
return new manual_default(props);
|
|
14322
14577
|
}
|
|
14323
14578
|
throw new Error("Unsupported trigger type");
|
|
@@ -14388,7 +14643,7 @@ var import_lodash2 = __toESM(require("lodash"));
|
|
|
14388
14643
|
|
|
14389
14644
|
// src/models/node/interface.ts
|
|
14390
14645
|
var avs_pb8 = __toESM(require_avs_pb());
|
|
14391
|
-
var
|
|
14646
|
+
var import_types8 = require("@avaprotocol/types");
|
|
14392
14647
|
var import_lodash = __toESM(require("lodash"));
|
|
14393
14648
|
var Node = class {
|
|
14394
14649
|
constructor(props) {
|
|
@@ -14411,16 +14666,16 @@ var interface_default2 = Node;
|
|
|
14411
14666
|
|
|
14412
14667
|
// src/models/node/contractWrite.ts
|
|
14413
14668
|
var avs_pb9 = __toESM(require_avs_pb());
|
|
14414
|
-
var
|
|
14669
|
+
var import_types9 = require("@avaprotocol/types");
|
|
14415
14670
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
14416
14671
|
constructor(props) {
|
|
14417
|
-
super({ ...props, type:
|
|
14672
|
+
super({ ...props, type: import_types9.NodeType.ContractWrite, data: props.data });
|
|
14418
14673
|
}
|
|
14419
14674
|
static fromResponse(raw) {
|
|
14420
14675
|
const obj = raw.toObject();
|
|
14421
14676
|
return new _ContractWriteNode({
|
|
14422
14677
|
...obj,
|
|
14423
|
-
type:
|
|
14678
|
+
type: import_types9.NodeType.ContractWrite,
|
|
14424
14679
|
data: raw.getContractWrite().getConfig().toObject()
|
|
14425
14680
|
});
|
|
14426
14681
|
}
|
|
@@ -14446,16 +14701,16 @@ var contractWrite_default = ContractWriteNode2;
|
|
|
14446
14701
|
|
|
14447
14702
|
// src/models/node/customCode.ts
|
|
14448
14703
|
var avs_pb10 = __toESM(require_avs_pb());
|
|
14449
|
-
var
|
|
14704
|
+
var import_types10 = require("@avaprotocol/types");
|
|
14450
14705
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
14451
14706
|
constructor(props) {
|
|
14452
|
-
super({ ...props, type:
|
|
14707
|
+
super({ ...props, type: import_types10.NodeType.CustomCode, data: props.data });
|
|
14453
14708
|
}
|
|
14454
14709
|
static fromResponse(raw) {
|
|
14455
14710
|
const obj = raw.toObject();
|
|
14456
14711
|
return new _CustomCodeNode({
|
|
14457
14712
|
...obj,
|
|
14458
|
-
type:
|
|
14713
|
+
type: import_types10.NodeType.CustomCode,
|
|
14459
14714
|
data: raw.getCustomCode().getConfig().toObject()
|
|
14460
14715
|
});
|
|
14461
14716
|
}
|
|
@@ -14483,12 +14738,12 @@ var customCode_default = CustomCodeNode2;
|
|
|
14483
14738
|
|
|
14484
14739
|
// src/models/node/graphqlQuery.ts
|
|
14485
14740
|
var avs_pb11 = __toESM(require_avs_pb());
|
|
14486
|
-
var
|
|
14741
|
+
var import_types11 = require("@avaprotocol/types");
|
|
14487
14742
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
14488
14743
|
constructor(props) {
|
|
14489
14744
|
super({
|
|
14490
14745
|
...props,
|
|
14491
|
-
type:
|
|
14746
|
+
type: import_types11.NodeType.GraphQLQuery,
|
|
14492
14747
|
data: props.data
|
|
14493
14748
|
});
|
|
14494
14749
|
}
|
|
@@ -14496,7 +14751,7 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
14496
14751
|
const obj = raw.toObject();
|
|
14497
14752
|
return new _GraphQLQueryNode({
|
|
14498
14753
|
...obj,
|
|
14499
|
-
type:
|
|
14754
|
+
type: import_types11.NodeType.GraphQLQuery,
|
|
14500
14755
|
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
14501
14756
|
});
|
|
14502
14757
|
}
|
|
@@ -14527,16 +14782,16 @@ var graphqlQuery_default = GraphQLQueryNode2;
|
|
|
14527
14782
|
|
|
14528
14783
|
// src/models/node/restApi.ts
|
|
14529
14784
|
var avs_pb12 = __toESM(require_avs_pb());
|
|
14530
|
-
var
|
|
14785
|
+
var import_types12 = require("@avaprotocol/types");
|
|
14531
14786
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
14532
14787
|
constructor(props) {
|
|
14533
|
-
super({ ...props, type:
|
|
14788
|
+
super({ ...props, type: import_types12.NodeType.RestAPI, data: props.data });
|
|
14534
14789
|
}
|
|
14535
14790
|
static fromResponse(raw) {
|
|
14536
14791
|
const obj = raw.toObject();
|
|
14537
14792
|
return new _RestAPINode({
|
|
14538
14793
|
...obj,
|
|
14539
|
-
type:
|
|
14794
|
+
type: import_types12.NodeType.RestAPI,
|
|
14540
14795
|
data: raw.getRestApi().getConfig().toObject()
|
|
14541
14796
|
});
|
|
14542
14797
|
}
|
|
@@ -14578,16 +14833,16 @@ var restApi_default = RestAPINode2;
|
|
|
14578
14833
|
|
|
14579
14834
|
// src/models/node/contractRead.ts
|
|
14580
14835
|
var avs_pb13 = __toESM(require_avs_pb());
|
|
14581
|
-
var
|
|
14836
|
+
var import_types13 = require("@avaprotocol/types");
|
|
14582
14837
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
14583
14838
|
constructor(props) {
|
|
14584
|
-
super({ ...props, type:
|
|
14839
|
+
super({ ...props, type: import_types13.NodeType.ContractRead, data: props.data });
|
|
14585
14840
|
}
|
|
14586
14841
|
static fromResponse(raw) {
|
|
14587
14842
|
const obj = raw.toObject();
|
|
14588
14843
|
return new _ContractReadNode({
|
|
14589
14844
|
...obj,
|
|
14590
|
-
type:
|
|
14845
|
+
type: import_types13.NodeType.ContractRead,
|
|
14591
14846
|
data: raw.getContractRead().getConfig().toObject()
|
|
14592
14847
|
});
|
|
14593
14848
|
}
|
|
@@ -14619,16 +14874,16 @@ var contractRead_default = ContractReadNode2;
|
|
|
14619
14874
|
|
|
14620
14875
|
// src/models/node/ethTransfer.ts
|
|
14621
14876
|
var avs_pb14 = __toESM(require_avs_pb());
|
|
14622
|
-
var
|
|
14877
|
+
var import_types14 = require("@avaprotocol/types");
|
|
14623
14878
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
14624
14879
|
constructor(props) {
|
|
14625
|
-
super({ ...props, type:
|
|
14880
|
+
super({ ...props, type: import_types14.NodeType.ETHTransfer, data: props.data });
|
|
14626
14881
|
}
|
|
14627
14882
|
static fromResponse(raw) {
|
|
14628
14883
|
const obj = raw.toObject();
|
|
14629
14884
|
return new _ETHTransferNode({
|
|
14630
14885
|
...obj,
|
|
14631
|
-
type:
|
|
14886
|
+
type: import_types14.NodeType.ETHTransfer,
|
|
14632
14887
|
data: raw.getEthTransfer().getConfig().toObject()
|
|
14633
14888
|
});
|
|
14634
14889
|
}
|
|
@@ -14652,17 +14907,17 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
14652
14907
|
var ethTransfer_default = ETHTransferNode2;
|
|
14653
14908
|
|
|
14654
14909
|
// src/models/node/branch.ts
|
|
14655
|
-
var
|
|
14910
|
+
var import_types15 = require("@avaprotocol/types");
|
|
14656
14911
|
var avs_pb15 = __toESM(require_avs_pb());
|
|
14657
14912
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
14658
14913
|
constructor(props) {
|
|
14659
|
-
super({ ...props, type:
|
|
14914
|
+
super({ ...props, type: import_types15.NodeType.Branch, data: props.data });
|
|
14660
14915
|
}
|
|
14661
14916
|
static fromResponse(raw) {
|
|
14662
14917
|
const obj = raw.toObject();
|
|
14663
14918
|
return new _BranchNode({
|
|
14664
14919
|
...obj,
|
|
14665
|
-
type:
|
|
14920
|
+
type: import_types15.NodeType.Branch,
|
|
14666
14921
|
data: raw.getBranch().toObject().config
|
|
14667
14922
|
});
|
|
14668
14923
|
}
|
|
@@ -14698,16 +14953,16 @@ var branch_default = BranchNode2;
|
|
|
14698
14953
|
|
|
14699
14954
|
// src/models/node/filter.ts
|
|
14700
14955
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
14701
|
-
var
|
|
14956
|
+
var import_types16 = require("@avaprotocol/types");
|
|
14702
14957
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
14703
14958
|
constructor(props) {
|
|
14704
|
-
super({ ...props, type:
|
|
14959
|
+
super({ ...props, type: import_types16.NodeType.Filter, data: props.data });
|
|
14705
14960
|
}
|
|
14706
14961
|
static fromResponse(raw) {
|
|
14707
14962
|
const obj = raw.toObject();
|
|
14708
14963
|
return new _FilterNode({
|
|
14709
14964
|
...obj,
|
|
14710
|
-
type:
|
|
14965
|
+
type: import_types16.NodeType.Filter,
|
|
14711
14966
|
data: raw.getFilter().getConfig().toObject()
|
|
14712
14967
|
});
|
|
14713
14968
|
}
|
|
@@ -14732,10 +14987,10 @@ var filter_default = FilterNode2;
|
|
|
14732
14987
|
|
|
14733
14988
|
// src/models/node/loop.ts
|
|
14734
14989
|
var avs_pb17 = __toESM(require_avs_pb());
|
|
14735
|
-
var
|
|
14990
|
+
var import_types17 = require("@avaprotocol/types");
|
|
14736
14991
|
var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
14737
14992
|
constructor(props) {
|
|
14738
|
-
super({ ...props, type:
|
|
14993
|
+
super({ ...props, type: import_types17.NodeType.Loop, data: props.data });
|
|
14739
14994
|
}
|
|
14740
14995
|
static fromResponse(raw) {
|
|
14741
14996
|
const loopNode = raw.getLoop();
|
|
@@ -14757,7 +15012,7 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14757
15012
|
return new _LoopNode({
|
|
14758
15013
|
id: raw.getId(),
|
|
14759
15014
|
name: raw.getName(),
|
|
14760
|
-
type:
|
|
15015
|
+
type: import_types17.NodeType.Loop,
|
|
14761
15016
|
data
|
|
14762
15017
|
});
|
|
14763
15018
|
}
|
|
@@ -14851,29 +15106,29 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14851
15106
|
var loop_default = LoopNode2;
|
|
14852
15107
|
|
|
14853
15108
|
// src/models/node/factory.ts
|
|
14854
|
-
var
|
|
15109
|
+
var import_types18 = require("@avaprotocol/types");
|
|
14855
15110
|
var NodeFactory = class {
|
|
14856
15111
|
static create(props) {
|
|
14857
15112
|
switch (props.type) {
|
|
14858
|
-
case
|
|
15113
|
+
case import_types18.NodeType.ContractWrite:
|
|
14859
15114
|
return new contractWrite_default(props);
|
|
14860
|
-
case
|
|
15115
|
+
case import_types18.NodeType.RestAPI:
|
|
14861
15116
|
return new restApi_default(props);
|
|
14862
|
-
case
|
|
15117
|
+
case import_types18.NodeType.CustomCode:
|
|
14863
15118
|
return new customCode_default(props);
|
|
14864
|
-
case
|
|
15119
|
+
case import_types18.NodeType.ContractRead:
|
|
14865
15120
|
return new contractRead_default(props);
|
|
14866
|
-
case
|
|
15121
|
+
case import_types18.NodeType.ETHTransfer:
|
|
14867
15122
|
return new ethTransfer_default(props);
|
|
14868
|
-
case
|
|
15123
|
+
case import_types18.NodeType.GraphQLQuery:
|
|
14869
15124
|
return new graphqlQuery_default(props);
|
|
14870
|
-
case
|
|
15125
|
+
case import_types18.NodeType.Branch:
|
|
14871
15126
|
return new branch_default(props);
|
|
14872
|
-
case
|
|
15127
|
+
case import_types18.NodeType.Filter:
|
|
14873
15128
|
return new filter_default(props);
|
|
14874
|
-
case
|
|
15129
|
+
case import_types18.NodeType.Loop:
|
|
14875
15130
|
return new loop_default(props);
|
|
14876
|
-
case
|
|
15131
|
+
case import_types18.NodeType.Unspecified:
|
|
14877
15132
|
throw new Error("Cannot create node with unspecified type");
|
|
14878
15133
|
default:
|
|
14879
15134
|
throw new Error(`Unsupported node type: ${props.type}`);
|
|
@@ -14956,14 +15211,14 @@ var NodeFactory = class {
|
|
|
14956
15211
|
var factory_default2 = NodeFactory;
|
|
14957
15212
|
|
|
14958
15213
|
// src/models/workflow.ts
|
|
14959
|
-
var
|
|
15214
|
+
var import_types19 = require("@avaprotocol/types");
|
|
14960
15215
|
function convertStatusToString(status) {
|
|
14961
15216
|
const conversionMap = {
|
|
14962
|
-
[avs_pb19.TaskStatus.ACTIVE]:
|
|
14963
|
-
[avs_pb19.TaskStatus.COMPLETED]:
|
|
14964
|
-
[avs_pb19.TaskStatus.FAILED]:
|
|
14965
|
-
[avs_pb19.TaskStatus.CANCELED]:
|
|
14966
|
-
[avs_pb19.TaskStatus.EXECUTING]:
|
|
15217
|
+
[avs_pb19.TaskStatus.ACTIVE]: import_types19.WorkflowStatus.Active,
|
|
15218
|
+
[avs_pb19.TaskStatus.COMPLETED]: import_types19.WorkflowStatus.Completed,
|
|
15219
|
+
[avs_pb19.TaskStatus.FAILED]: import_types19.WorkflowStatus.Failed,
|
|
15220
|
+
[avs_pb19.TaskStatus.CANCELED]: import_types19.WorkflowStatus.Canceled,
|
|
15221
|
+
[avs_pb19.TaskStatus.EXECUTING]: import_types19.WorkflowStatus.Executing
|
|
14967
15222
|
};
|
|
14968
15223
|
return conversionMap[status];
|
|
14969
15224
|
}
|
|
@@ -15067,23 +15322,20 @@ var Workflow = class _Workflow {
|
|
|
15067
15322
|
};
|
|
15068
15323
|
var workflow_default = Workflow;
|
|
15069
15324
|
|
|
15070
|
-
// src/models/execution.ts
|
|
15071
|
-
var avs_pb21 = __toESM(require_avs_pb());
|
|
15072
|
-
var import_types19 = require("@avaprotocol/types");
|
|
15073
|
-
|
|
15074
15325
|
// src/models/step.ts
|
|
15075
15326
|
var avs_pb20 = __toESM(require_avs_pb());
|
|
15076
15327
|
var Step = class _Step {
|
|
15077
|
-
// Changed to any
|
|
15078
15328
|
constructor(props) {
|
|
15079
|
-
this.
|
|
15329
|
+
this.id = props.id;
|
|
15330
|
+
this.type = props.type;
|
|
15331
|
+
this.name = props.name;
|
|
15080
15332
|
this.success = props.success;
|
|
15081
|
-
this.log = props.log;
|
|
15082
15333
|
this.error = props.error;
|
|
15083
|
-
this.
|
|
15084
|
-
this.endAt = props.endAt;
|
|
15334
|
+
this.log = props.log;
|
|
15085
15335
|
this.inputsList = props.inputsList;
|
|
15086
15336
|
this.output = props.output;
|
|
15337
|
+
this.startAt = props.startAt;
|
|
15338
|
+
this.endAt = props.endAt;
|
|
15087
15339
|
}
|
|
15088
15340
|
static getOutput(step) {
|
|
15089
15341
|
const outputDataType = step.getOutputDataCase();
|
|
@@ -15091,9 +15343,38 @@ var Step = class _Step {
|
|
|
15091
15343
|
switch (outputDataType) {
|
|
15092
15344
|
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15093
15345
|
return null;
|
|
15346
|
+
// Trigger outputs
|
|
15347
|
+
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
15348
|
+
const blockOutput = step.getBlockTrigger()?.toObject();
|
|
15349
|
+
return blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15350
|
+
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15351
|
+
const fixedTimeOutput = step.getFixedTimeTrigger()?.toObject();
|
|
15352
|
+
return fixedTimeOutput ? {
|
|
15353
|
+
timestamp: fixedTimeOutput.timestamp,
|
|
15354
|
+
timestampIso: fixedTimeOutput.timestampIso
|
|
15355
|
+
} : void 0;
|
|
15356
|
+
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
15357
|
+
const cronOutput = step.getCronTrigger()?.toObject();
|
|
15358
|
+
return cronOutput ? {
|
|
15359
|
+
timestamp: cronOutput.timestamp,
|
|
15360
|
+
timestampIso: cronOutput.timestampIso
|
|
15361
|
+
} : void 0;
|
|
15362
|
+
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
15363
|
+
const eventTrigger = step.getEventTrigger();
|
|
15364
|
+
if (eventTrigger) {
|
|
15365
|
+
if (eventTrigger.hasEvmLog()) {
|
|
15366
|
+
return eventTrigger.getEvmLog()?.toObject();
|
|
15367
|
+
} else if (eventTrigger.hasTransferLog()) {
|
|
15368
|
+
return eventTrigger.getTransferLog()?.toObject();
|
|
15369
|
+
}
|
|
15370
|
+
}
|
|
15371
|
+
return void 0;
|
|
15372
|
+
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
15373
|
+
const manualOutput = step.getManualTrigger()?.toObject();
|
|
15374
|
+
return manualOutput || void 0;
|
|
15375
|
+
// Node outputs
|
|
15094
15376
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
15095
15377
|
return step.getEthTransfer()?.toObject();
|
|
15096
|
-
// Specific structure, not google.protobuf.Value
|
|
15097
15378
|
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
15098
15379
|
nodeOutputMessage = step.getGraphql();
|
|
15099
15380
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
@@ -15103,10 +15384,8 @@ var Step = class _Step {
|
|
|
15103
15384
|
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
15104
15385
|
}
|
|
15105
15386
|
return [];
|
|
15106
|
-
// Default to empty array if no data
|
|
15107
15387
|
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
15108
15388
|
return step.getContractWrite()?.toObject();
|
|
15109
|
-
// Specific structure
|
|
15110
15389
|
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
15111
15390
|
nodeOutputMessage = step.getCustomCode();
|
|
15112
15391
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
@@ -15115,7 +15394,6 @@ var Step = class _Step {
|
|
|
15115
15394
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15116
15395
|
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
15117
15396
|
return step.getBranch()?.toObject();
|
|
15118
|
-
// Specific structure
|
|
15119
15397
|
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
15120
15398
|
nodeOutputMessage = step.getFilter();
|
|
15121
15399
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
@@ -15130,14 +15408,16 @@ var Step = class _Step {
|
|
|
15130
15408
|
}
|
|
15131
15409
|
static fromResponse(step) {
|
|
15132
15410
|
return new _Step({
|
|
15133
|
-
|
|
15411
|
+
id: step.getId(),
|
|
15412
|
+
type: convertProtobufStepTypeToSdk(step.getType()),
|
|
15413
|
+
name: step.getName(),
|
|
15134
15414
|
success: step.getSuccess(),
|
|
15135
|
-
log: step.getLog(),
|
|
15136
15415
|
error: step.getError(),
|
|
15137
|
-
|
|
15138
|
-
endAt: step.getEndAt(),
|
|
15416
|
+
log: step.getLog(),
|
|
15139
15417
|
inputsList: step.getInputsList(),
|
|
15140
|
-
output: _Step.getOutput(step)
|
|
15418
|
+
output: _Step.getOutput(step),
|
|
15419
|
+
startAt: step.getStartAt(),
|
|
15420
|
+
endAt: step.getEndAt()
|
|
15141
15421
|
});
|
|
15142
15422
|
}
|
|
15143
15423
|
// Client side does not generate the step, so there's no toRequest() method
|
|
@@ -15145,77 +15425,31 @@ var Step = class _Step {
|
|
|
15145
15425
|
var step_default = Step;
|
|
15146
15426
|
|
|
15147
15427
|
// src/models/execution.ts
|
|
15148
|
-
var
|
|
15428
|
+
var Execution2 = class _Execution {
|
|
15149
15429
|
constructor(props) {
|
|
15150
15430
|
this.id = props.id;
|
|
15151
15431
|
this.startAt = props.startAt;
|
|
15152
15432
|
this.endAt = props.endAt;
|
|
15153
15433
|
this.success = props.success;
|
|
15154
15434
|
this.error = props.error;
|
|
15155
|
-
this.
|
|
15156
|
-
this.triggerName = props.triggerName;
|
|
15157
|
-
this.triggerType = props.triggerType;
|
|
15158
|
-
this.triggerOutput = props.triggerOutput;
|
|
15435
|
+
this.steps = props.steps;
|
|
15159
15436
|
}
|
|
15160
15437
|
static fromResponse(execution) {
|
|
15161
|
-
const triggerOutputDataType = execution.getOutputDataCase();
|
|
15162
|
-
let triggerOutputData;
|
|
15163
|
-
switch (triggerOutputDataType) {
|
|
15164
|
-
case avs_pb21.Execution.OutputDataCase.BLOCK_TRIGGER:
|
|
15165
|
-
const blockOutput = execution.getBlockTrigger()?.toObject();
|
|
15166
|
-
triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15167
|
-
break;
|
|
15168
|
-
case avs_pb21.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15169
|
-
const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
|
|
15170
|
-
triggerOutputData = fixedTimeOutput ? {
|
|
15171
|
-
timestamp: fixedTimeOutput.timestamp,
|
|
15172
|
-
timestampIso: fixedTimeOutput.timestampIso
|
|
15173
|
-
} : void 0;
|
|
15174
|
-
break;
|
|
15175
|
-
case avs_pb21.Execution.OutputDataCase.CRON_TRIGGER:
|
|
15176
|
-
const cronOutput = execution.getCronTrigger()?.toObject();
|
|
15177
|
-
triggerOutputData = cronOutput ? {
|
|
15178
|
-
timestamp: cronOutput.timestamp,
|
|
15179
|
-
timestampIso: cronOutput.timestampIso
|
|
15180
|
-
} : void 0;
|
|
15181
|
-
break;
|
|
15182
|
-
case avs_pb21.Execution.OutputDataCase.EVENT_TRIGGER:
|
|
15183
|
-
const eventTrigger = execution.getEventTrigger();
|
|
15184
|
-
if (eventTrigger) {
|
|
15185
|
-
if (eventTrigger.hasEvmLog()) {
|
|
15186
|
-
triggerOutputData = eventTrigger.getEvmLog()?.toObject();
|
|
15187
|
-
} else if (eventTrigger.hasTransferLog()) {
|
|
15188
|
-
triggerOutputData = eventTrigger.getTransferLog()?.toObject();
|
|
15189
|
-
}
|
|
15190
|
-
}
|
|
15191
|
-
break;
|
|
15192
|
-
case avs_pb21.Execution.OutputDataCase.MANUAL_TRIGGER:
|
|
15193
|
-
const manualOutput = execution.getManualTrigger()?.toObject();
|
|
15194
|
-
triggerOutputData = manualOutput || void 0;
|
|
15195
|
-
break;
|
|
15196
|
-
case avs_pb21.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15197
|
-
triggerOutputData = void 0;
|
|
15198
|
-
break;
|
|
15199
|
-
}
|
|
15200
15438
|
return new _Execution({
|
|
15201
15439
|
id: execution.getId(),
|
|
15202
15440
|
startAt: execution.getStartAt(),
|
|
15203
15441
|
endAt: execution.getEndAt(),
|
|
15204
15442
|
success: execution.getSuccess(),
|
|
15205
15443
|
error: execution.getError(),
|
|
15206
|
-
|
|
15207
|
-
triggerType: import_types19.TriggerTypeConverter.fromProtobuf(execution.getTriggerType()),
|
|
15208
|
-
// Convert protobuf enum to SDK enum
|
|
15209
|
-
triggerOutput: triggerOutputData,
|
|
15210
|
-
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15444
|
+
steps: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15211
15445
|
});
|
|
15212
15446
|
}
|
|
15213
15447
|
// Client side does not generate the execution, so there's no toRequest() method
|
|
15214
15448
|
};
|
|
15215
|
-
var execution_default =
|
|
15449
|
+
var execution_default = Execution2;
|
|
15216
15450
|
|
|
15217
15451
|
// src/models/secret.ts
|
|
15218
|
-
var
|
|
15452
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
15219
15453
|
var Secret = class {
|
|
15220
15454
|
constructor(props) {
|
|
15221
15455
|
this.name = props.name;
|
|
@@ -15228,7 +15462,7 @@ var Secret = class {
|
|
|
15228
15462
|
this.description = props.description;
|
|
15229
15463
|
}
|
|
15230
15464
|
toRequest() {
|
|
15231
|
-
const request = new
|
|
15465
|
+
const request = new avs_pb21.CreateOrUpdateSecretReq();
|
|
15232
15466
|
request.setName(this.name);
|
|
15233
15467
|
if (this.secret) {
|
|
15234
15468
|
request.setSecret(this.secret);
|
|
@@ -15279,7 +15513,7 @@ var BaseClient = class {
|
|
|
15279
15513
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
15280
15514
|
*/
|
|
15281
15515
|
async getSignatureFormat(wallet) {
|
|
15282
|
-
const request = new
|
|
15516
|
+
const request = new avs_pb22.GetSignatureFormatReq();
|
|
15283
15517
|
request.setWallet(wallet);
|
|
15284
15518
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
15285
15519
|
return { message: result.getMessage() };
|
|
@@ -15294,7 +15528,7 @@ var BaseClient = class {
|
|
|
15294
15528
|
message,
|
|
15295
15529
|
apiKey
|
|
15296
15530
|
}) {
|
|
15297
|
-
const request = new
|
|
15531
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15298
15532
|
request.setMessage(message);
|
|
15299
15533
|
request.setSignature(apiKey);
|
|
15300
15534
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -15310,7 +15544,7 @@ var BaseClient = class {
|
|
|
15310
15544
|
message,
|
|
15311
15545
|
signature
|
|
15312
15546
|
}) {
|
|
15313
|
-
const request = new
|
|
15547
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15314
15548
|
request.setMessage(message);
|
|
15315
15549
|
request.setSignature(signature);
|
|
15316
15550
|
const result = await this.sendGrpcRequest(
|
|
@@ -15386,7 +15620,7 @@ var Client = class extends BaseClient {
|
|
|
15386
15620
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
15387
15621
|
*/
|
|
15388
15622
|
async getWallets(options) {
|
|
15389
|
-
const request = new
|
|
15623
|
+
const request = new avs_pb22.ListWalletReq();
|
|
15390
15624
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
15391
15625
|
return result.getItemsList().map((item) => item.toObject());
|
|
15392
15626
|
}
|
|
@@ -15398,7 +15632,7 @@ var Client = class extends BaseClient {
|
|
|
15398
15632
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
15399
15633
|
*/
|
|
15400
15634
|
async getWallet({ salt, factoryAddress }, options) {
|
|
15401
|
-
const request = new
|
|
15635
|
+
const request = new avs_pb22.GetWalletReq();
|
|
15402
15636
|
request.setSalt(salt);
|
|
15403
15637
|
if (factoryAddress) {
|
|
15404
15638
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15427,7 +15661,7 @@ var Client = class extends BaseClient {
|
|
|
15427
15661
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
15428
15662
|
*/
|
|
15429
15663
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
15430
|
-
const request = new
|
|
15664
|
+
const request = new avs_pb22.SetWalletReq();
|
|
15431
15665
|
request.setSalt(salt);
|
|
15432
15666
|
if (factoryAddress) {
|
|
15433
15667
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15475,7 +15709,7 @@ var Client = class extends BaseClient {
|
|
|
15475
15709
|
* @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
|
|
15476
15710
|
*/
|
|
15477
15711
|
async getWorkflows(addresses, options) {
|
|
15478
|
-
const request = new
|
|
15712
|
+
const request = new avs_pb22.ListTasksReq();
|
|
15479
15713
|
for (const a of addresses) {
|
|
15480
15714
|
request.addSmartWalletAddress(a);
|
|
15481
15715
|
}
|
|
@@ -15514,7 +15748,7 @@ var Client = class extends BaseClient {
|
|
|
15514
15748
|
* @returns {Promise<number>} - The count of workflows
|
|
15515
15749
|
*/
|
|
15516
15750
|
async getWorkflowCount(addresses, options) {
|
|
15517
|
-
const request = new
|
|
15751
|
+
const request = new avs_pb22.GetWorkflowCountReq();
|
|
15518
15752
|
request.setAddressesList(addresses);
|
|
15519
15753
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
15520
15754
|
return result.getTotal();
|
|
@@ -15530,7 +15764,7 @@ var Client = class extends BaseClient {
|
|
|
15530
15764
|
* @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
|
|
15531
15765
|
*/
|
|
15532
15766
|
async getExecutions(workflows, options) {
|
|
15533
|
-
const request = new
|
|
15767
|
+
const request = new avs_pb22.ListExecutionsReq();
|
|
15534
15768
|
for (const w of workflows) {
|
|
15535
15769
|
request.addTaskIds(w);
|
|
15536
15770
|
}
|
|
@@ -15564,7 +15798,7 @@ var Client = class extends BaseClient {
|
|
|
15564
15798
|
* @returns {Promise<Execution>} - The Execution object
|
|
15565
15799
|
*/
|
|
15566
15800
|
async getExecution(workflowId, executionId, options) {
|
|
15567
|
-
const request = new
|
|
15801
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15568
15802
|
request.setTaskId(workflowId);
|
|
15569
15803
|
request.setExecutionId(executionId);
|
|
15570
15804
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -15577,7 +15811,7 @@ var Client = class extends BaseClient {
|
|
|
15577
15811
|
* @returns {Promise<number>} - The count of executions
|
|
15578
15812
|
*/
|
|
15579
15813
|
async getExecutionCount(workflows, options) {
|
|
15580
|
-
const request = new
|
|
15814
|
+
const request = new avs_pb22.GetExecutionCountReq();
|
|
15581
15815
|
request.setWorkflowIdsList(workflows);
|
|
15582
15816
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
15583
15817
|
return result.getTotal();
|
|
@@ -15590,7 +15824,7 @@ var Client = class extends BaseClient {
|
|
|
15590
15824
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
15591
15825
|
*/
|
|
15592
15826
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
15593
|
-
const request = new
|
|
15827
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15594
15828
|
request.setTaskId(workflowId);
|
|
15595
15829
|
request.setExecutionId(executionId);
|
|
15596
15830
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -15603,7 +15837,7 @@ var Client = class extends BaseClient {
|
|
|
15603
15837
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
15604
15838
|
*/
|
|
15605
15839
|
async getWorkflow(id, options) {
|
|
15606
|
-
const request = new
|
|
15840
|
+
const request = new avs_pb22.IdReq();
|
|
15607
15841
|
request.setId(id);
|
|
15608
15842
|
const result = await this.sendGrpcRequest(
|
|
15609
15843
|
"getTask",
|
|
@@ -15626,20 +15860,20 @@ var Client = class extends BaseClient {
|
|
|
15626
15860
|
triggerData,
|
|
15627
15861
|
isBlocking = false
|
|
15628
15862
|
}, options) {
|
|
15629
|
-
const request = new
|
|
15863
|
+
const request = new avs_pb22.TriggerTaskReq();
|
|
15630
15864
|
request.setTaskId(id);
|
|
15631
15865
|
request.setTriggerType(import_types20.TriggerTypeConverter.toProtobuf(triggerData.type));
|
|
15632
15866
|
request.setIsBlocking(isBlocking);
|
|
15633
15867
|
switch (triggerData.type) {
|
|
15634
15868
|
case import_types20.TriggerType.FixedTime: {
|
|
15635
|
-
const fixedTimeOutput = new
|
|
15869
|
+
const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
|
|
15636
15870
|
fixedTimeOutput.setTimestamp(triggerData.timestamp);
|
|
15637
15871
|
fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
|
|
15638
15872
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
15639
15873
|
break;
|
|
15640
15874
|
}
|
|
15641
15875
|
case import_types20.TriggerType.Cron: {
|
|
15642
|
-
const cronOutput = new
|
|
15876
|
+
const cronOutput = new avs_pb22.CronTrigger.Output();
|
|
15643
15877
|
cronOutput.setTimestamp(triggerData.timestamp);
|
|
15644
15878
|
cronOutput.setTimestampIso(triggerData.timestampIso);
|
|
15645
15879
|
request.setCronTrigger(cronOutput);
|
|
@@ -15647,7 +15881,7 @@ var Client = class extends BaseClient {
|
|
|
15647
15881
|
}
|
|
15648
15882
|
case import_types20.TriggerType.Block: {
|
|
15649
15883
|
const blockData = triggerData;
|
|
15650
|
-
const blockOutput = new
|
|
15884
|
+
const blockOutput = new avs_pb22.BlockTrigger.Output();
|
|
15651
15885
|
blockOutput.setBlockNumber(blockData.blockNumber);
|
|
15652
15886
|
if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
|
|
15653
15887
|
if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
|
|
@@ -15660,9 +15894,9 @@ var Client = class extends BaseClient {
|
|
|
15660
15894
|
}
|
|
15661
15895
|
case import_types20.TriggerType.Event: {
|
|
15662
15896
|
const eventData = triggerData;
|
|
15663
|
-
const eventOutput = new
|
|
15897
|
+
const eventOutput = new avs_pb22.EventTrigger.Output();
|
|
15664
15898
|
if (eventData.evmLog) {
|
|
15665
|
-
const evmLog = new
|
|
15899
|
+
const evmLog = new avs_pb22.Evm.Log();
|
|
15666
15900
|
evmLog.setAddress(eventData.evmLog.address);
|
|
15667
15901
|
evmLog.setBlockNumber(eventData.evmLog.blockNumber);
|
|
15668
15902
|
evmLog.setTransactionHash(eventData.evmLog.transactionHash);
|
|
@@ -15670,7 +15904,7 @@ var Client = class extends BaseClient {
|
|
|
15670
15904
|
eventOutput.setEvmLog(evmLog);
|
|
15671
15905
|
}
|
|
15672
15906
|
if (eventData.transferLog) {
|
|
15673
|
-
const transferLog = new
|
|
15907
|
+
const transferLog = new avs_pb22.EventTrigger.TransferLogOutput();
|
|
15674
15908
|
transferLog.setTokenName(eventData.transferLog.tokenName);
|
|
15675
15909
|
transferLog.setTokenSymbol(eventData.transferLog.tokenSymbol);
|
|
15676
15910
|
transferLog.setTokenDecimals(eventData.transferLog.tokenDecimals);
|
|
@@ -15691,7 +15925,7 @@ var Client = class extends BaseClient {
|
|
|
15691
15925
|
}
|
|
15692
15926
|
case import_types20.TriggerType.Manual: {
|
|
15693
15927
|
const manualData = triggerData;
|
|
15694
|
-
const manualOutput = new
|
|
15928
|
+
const manualOutput = new avs_pb22.ManualTrigger.Output();
|
|
15695
15929
|
if (manualData.runAt) manualOutput.setRunAt(manualData.runAt);
|
|
15696
15930
|
request.setManualTrigger(manualOutput);
|
|
15697
15931
|
break;
|
|
@@ -15711,7 +15945,7 @@ var Client = class extends BaseClient {
|
|
|
15711
15945
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
15712
15946
|
*/
|
|
15713
15947
|
async cancelWorkflow(id, options) {
|
|
15714
|
-
const request = new
|
|
15948
|
+
const request = new avs_pb22.IdReq();
|
|
15715
15949
|
request.setId(id);
|
|
15716
15950
|
const result = await this.sendGrpcRequest(
|
|
15717
15951
|
"cancelTask",
|
|
@@ -15727,7 +15961,7 @@ var Client = class extends BaseClient {
|
|
|
15727
15961
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
15728
15962
|
*/
|
|
15729
15963
|
async deleteWorkflow(id, options) {
|
|
15730
|
-
const request = new
|
|
15964
|
+
const request = new avs_pb22.IdReq();
|
|
15731
15965
|
request.setId(id);
|
|
15732
15966
|
const result = await this.sendGrpcRequest(
|
|
15733
15967
|
"deleteTask",
|
|
@@ -15747,7 +15981,7 @@ var Client = class extends BaseClient {
|
|
|
15747
15981
|
* @returns {Promise<boolean>} - True if the secret was created successfully
|
|
15748
15982
|
*/
|
|
15749
15983
|
async createSecret(name, value, options) {
|
|
15750
|
-
const request = new
|
|
15984
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15751
15985
|
request.setName(name);
|
|
15752
15986
|
request.setSecret(value);
|
|
15753
15987
|
if (options?.workflowId) {
|
|
@@ -15770,7 +16004,7 @@ var Client = class extends BaseClient {
|
|
|
15770
16004
|
* @returns {Promise<boolean>} - True if the secret was updated successfully
|
|
15771
16005
|
*/
|
|
15772
16006
|
async updateSecret(name, value, options) {
|
|
15773
|
-
const request = new
|
|
16007
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15774
16008
|
request.setName(name);
|
|
15775
16009
|
request.setSecret(value);
|
|
15776
16010
|
if (options?.workflowId) {
|
|
@@ -15797,7 +16031,7 @@ var Client = class extends BaseClient {
|
|
|
15797
16031
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
15798
16032
|
*/
|
|
15799
16033
|
async getSecrets(options) {
|
|
15800
|
-
const request = new
|
|
16034
|
+
const request = new avs_pb22.ListSecretsReq();
|
|
15801
16035
|
if (options?.workflowId) {
|
|
15802
16036
|
request.setWorkflowId(options.workflowId);
|
|
15803
16037
|
}
|
|
@@ -15852,7 +16086,7 @@ var Client = class extends BaseClient {
|
|
|
15852
16086
|
* @returns {Promise<boolean>} - True if the secret was deleted successfully
|
|
15853
16087
|
*/
|
|
15854
16088
|
async deleteSecret(name, options) {
|
|
15855
|
-
const request = new
|
|
16089
|
+
const request = new avs_pb22.DeleteSecretReq();
|
|
15856
16090
|
request.setName(name);
|
|
15857
16091
|
if (options?.workflowId) {
|
|
15858
16092
|
request.setWorkflowId(options.workflowId);
|
|
@@ -15887,7 +16121,7 @@ var Client = class extends BaseClient {
|
|
|
15887
16121
|
nodeId: ""
|
|
15888
16122
|
};
|
|
15889
16123
|
}
|
|
15890
|
-
const request = new
|
|
16124
|
+
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
15891
16125
|
const protobufNodeType = import_types20.NodeTypeGoConverter.fromGoString(nodeType);
|
|
15892
16126
|
request.setNodeType(protobufNodeType);
|
|
15893
16127
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
@@ -15917,7 +16151,7 @@ var Client = class extends BaseClient {
|
|
|
15917
16151
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
15918
16152
|
*/
|
|
15919
16153
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
15920
|
-
const request = new
|
|
16154
|
+
const request = new avs_pb22.RunTriggerReq();
|
|
15921
16155
|
const protobufTriggerType = import_types20.TriggerTypeGoConverter.fromGoString(triggerType);
|
|
15922
16156
|
request.setTriggerType(protobufTriggerType);
|
|
15923
16157
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
@@ -15932,6 +16166,37 @@ var Client = class extends BaseClient {
|
|
|
15932
16166
|
triggerId: result.getTriggerId()
|
|
15933
16167
|
};
|
|
15934
16168
|
}
|
|
16169
|
+
/**
|
|
16170
|
+
* Simulate a complete task execution including trigger and all workflow nodes
|
|
16171
|
+
* @param {SimulateWorkflowRequest} params - The parameters for simulating the task
|
|
16172
|
+
* @param {Record<string, any>} params.trigger - The trigger configuration
|
|
16173
|
+
* @param {Array<Record<string, any>>} params.nodes - The workflow nodes
|
|
16174
|
+
* @param {Array<Record<string, any>>} params.edges - The workflow edges
|
|
16175
|
+
* @param {Record<string, any>} params.inputVariables - Input variables for the simulation
|
|
16176
|
+
* @param {RequestOptions} options - Request options
|
|
16177
|
+
* @returns {Promise<Execution>} - The response from simulating the task
|
|
16178
|
+
*/
|
|
16179
|
+
async simulateWorkflow({ trigger, nodes, edges, inputVariables = {} }, options) {
|
|
16180
|
+
const request = new avs_pb22.SimulateTaskReq();
|
|
16181
|
+
const triggerSdk = factory_default.create(trigger);
|
|
16182
|
+
request.setTrigger(triggerSdk.toRequest());
|
|
16183
|
+
const nodeMessages = nodes.map((node) => {
|
|
16184
|
+
const nodeSdk = factory_default2.create(node);
|
|
16185
|
+
return nodeSdk.toRequest();
|
|
16186
|
+
});
|
|
16187
|
+
request.setNodesList(nodeMessages);
|
|
16188
|
+
const edgeMessages = edges.map((edge) => {
|
|
16189
|
+
const edgeSdk = new edge_default(edge);
|
|
16190
|
+
return edgeSdk.toRequest();
|
|
16191
|
+
});
|
|
16192
|
+
request.setEdgesList(edgeMessages);
|
|
16193
|
+
const inputVarsMap = request.getInputVariablesMap();
|
|
16194
|
+
for (const [key, value] of Object.entries(inputVariables)) {
|
|
16195
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
16196
|
+
}
|
|
16197
|
+
const result = await this.sendGrpcRequest("simulateTask", request, options);
|
|
16198
|
+
return execution_default.fromResponse(result);
|
|
16199
|
+
}
|
|
15935
16200
|
};
|
|
15936
16201
|
// Annotate the CommonJS export names for ESM import in node:
|
|
15937
16202
|
0 && (module.exports = {
|