@avaprotocol/sdk-js 1.3.4-dev.3 → 1.3.5-dev.2
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/dist/index.d.mts +54 -59
- package/dist/index.d.ts +54 -59
- package/dist/index.js +253 -253
- package/dist/index.mjs +252 -251
- package/package.json +3 -7
package/dist/index.js
CHANGED
|
@@ -140,7 +140,7 @@ var require_avs_pb = __commonJS({
|
|
|
140
140
|
proto.aggregator.BlockCondition.displayName = "proto.aggregator.BlockCondition";
|
|
141
141
|
}
|
|
142
142
|
proto.aggregator.EventCondition = function(opt_data) {
|
|
143
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
143
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.EventCondition.repeatedFields_, null);
|
|
144
144
|
};
|
|
145
145
|
goog.inherits(proto.aggregator.EventCondition, jspb.Message);
|
|
146
146
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -719,13 +719,19 @@ var require_avs_pb = __commonJS({
|
|
|
719
719
|
proto.aggregator.BlockCondition.prototype.setInterval = function(value) {
|
|
720
720
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
721
721
|
};
|
|
722
|
+
proto.aggregator.EventCondition.repeatedFields_ = [1];
|
|
722
723
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
723
724
|
proto.aggregator.EventCondition.prototype.toObject = function(opt_includeInstance) {
|
|
724
725
|
return proto.aggregator.EventCondition.toObject(opt_includeInstance, this);
|
|
725
726
|
};
|
|
726
727
|
proto.aggregator.EventCondition.toObject = function(includeInstance, msg) {
|
|
727
728
|
var f, obj = {
|
|
728
|
-
|
|
729
|
+
matcherList: jspb.Message.toObjectList(
|
|
730
|
+
msg.getMatcherList(),
|
|
731
|
+
proto.aggregator.EventCondition.Matcher.toObject,
|
|
732
|
+
includeInstance
|
|
733
|
+
),
|
|
734
|
+
expression: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
729
735
|
};
|
|
730
736
|
if (includeInstance) {
|
|
731
737
|
obj.$jspbMessageInstance = msg;
|
|
@@ -746,6 +752,11 @@ var require_avs_pb = __commonJS({
|
|
|
746
752
|
var field = reader.getFieldNumber();
|
|
747
753
|
switch (field) {
|
|
748
754
|
case 1:
|
|
755
|
+
var value = new proto.aggregator.EventCondition.Matcher();
|
|
756
|
+
reader.readMessage(value, proto.aggregator.EventCondition.Matcher.deserializeBinaryFromReader);
|
|
757
|
+
msg.addMatcher(value);
|
|
758
|
+
break;
|
|
759
|
+
case 2:
|
|
749
760
|
var value = (
|
|
750
761
|
/** @type {string} */
|
|
751
762
|
reader.readString()
|
|
@@ -766,10 +777,18 @@ var require_avs_pb = __commonJS({
|
|
|
766
777
|
};
|
|
767
778
|
proto.aggregator.EventCondition.serializeBinaryToWriter = function(message, writer) {
|
|
768
779
|
var f = void 0;
|
|
780
|
+
f = message.getMatcherList();
|
|
781
|
+
if (f.length > 0) {
|
|
782
|
+
writer.writeRepeatedMessage(
|
|
783
|
+
1,
|
|
784
|
+
f,
|
|
785
|
+
proto.aggregator.EventCondition.Matcher.serializeBinaryToWriter
|
|
786
|
+
);
|
|
787
|
+
}
|
|
769
788
|
f = message.getExpression();
|
|
770
789
|
if (f.length > 0) {
|
|
771
790
|
writer.writeString(
|
|
772
|
-
|
|
791
|
+
2,
|
|
773
792
|
f
|
|
774
793
|
);
|
|
775
794
|
}
|
|
@@ -869,14 +888,29 @@ var require_avs_pb = __commonJS({
|
|
|
869
888
|
proto.aggregator.EventCondition.Matcher.prototype.clearValueList = function() {
|
|
870
889
|
return this.setValueList([]);
|
|
871
890
|
};
|
|
891
|
+
proto.aggregator.EventCondition.prototype.getMatcherList = function() {
|
|
892
|
+
return (
|
|
893
|
+
/** @type{!Array<!proto.aggregator.EventCondition.Matcher>} */
|
|
894
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.EventCondition.Matcher, 1)
|
|
895
|
+
);
|
|
896
|
+
};
|
|
897
|
+
proto.aggregator.EventCondition.prototype.setMatcherList = function(value) {
|
|
898
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
899
|
+
};
|
|
900
|
+
proto.aggregator.EventCondition.prototype.addMatcher = function(opt_value, opt_index) {
|
|
901
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.aggregator.EventCondition.Matcher, opt_index);
|
|
902
|
+
};
|
|
903
|
+
proto.aggregator.EventCondition.prototype.clearMatcherList = function() {
|
|
904
|
+
return this.setMatcherList([]);
|
|
905
|
+
};
|
|
872
906
|
proto.aggregator.EventCondition.prototype.getExpression = function() {
|
|
873
907
|
return (
|
|
874
908
|
/** @type {string} */
|
|
875
|
-
jspb.Message.getFieldWithDefault(this,
|
|
909
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
876
910
|
);
|
|
877
911
|
};
|
|
878
912
|
proto.aggregator.EventCondition.prototype.setExpression = function(value) {
|
|
879
|
-
return jspb.Message.setProto3StringField(this,
|
|
913
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
880
914
|
};
|
|
881
915
|
proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
|
|
882
916
|
proto.aggregator.TaskTrigger.TriggerTypeCase = {
|
|
@@ -1224,8 +1258,7 @@ var require_avs_pb = __commonJS({
|
|
|
1224
1258
|
var f, obj = {
|
|
1225
1259
|
contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1226
1260
|
callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1227
|
-
contractAbi: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1228
|
-
method: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1261
|
+
contractAbi: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1229
1262
|
};
|
|
1230
1263
|
if (includeInstance) {
|
|
1231
1264
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1266,13 +1299,6 @@ var require_avs_pb = __commonJS({
|
|
|
1266
1299
|
);
|
|
1267
1300
|
msg.setContractAbi(value);
|
|
1268
1301
|
break;
|
|
1269
|
-
case 4:
|
|
1270
|
-
var value = (
|
|
1271
|
-
/** @type {string} */
|
|
1272
|
-
reader.readString()
|
|
1273
|
-
);
|
|
1274
|
-
msg.setMethod(value);
|
|
1275
|
-
break;
|
|
1276
1302
|
default:
|
|
1277
1303
|
reader.skipField();
|
|
1278
1304
|
break;
|
|
@@ -1308,13 +1334,6 @@ var require_avs_pb = __commonJS({
|
|
|
1308
1334
|
f
|
|
1309
1335
|
);
|
|
1310
1336
|
}
|
|
1311
|
-
f = message.getMethod();
|
|
1312
|
-
if (f.length > 0) {
|
|
1313
|
-
writer.writeString(
|
|
1314
|
-
4,
|
|
1315
|
-
f
|
|
1316
|
-
);
|
|
1317
|
-
}
|
|
1318
1337
|
};
|
|
1319
1338
|
proto.aggregator.ContractWriteNode.prototype.getContractAddress = function() {
|
|
1320
1339
|
return (
|
|
@@ -1343,15 +1362,6 @@ var require_avs_pb = __commonJS({
|
|
|
1343
1362
|
proto.aggregator.ContractWriteNode.prototype.setContractAbi = function(value) {
|
|
1344
1363
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1345
1364
|
};
|
|
1346
|
-
proto.aggregator.ContractWriteNode.prototype.getMethod = function() {
|
|
1347
|
-
return (
|
|
1348
|
-
/** @type {string} */
|
|
1349
|
-
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
1350
|
-
);
|
|
1351
|
-
};
|
|
1352
|
-
proto.aggregator.ContractWriteNode.prototype.setMethod = function(value) {
|
|
1353
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1354
|
-
};
|
|
1355
1365
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1356
1366
|
proto.aggregator.ContractReadNode.prototype.toObject = function(opt_includeInstance) {
|
|
1357
1367
|
return proto.aggregator.ContractReadNode.toObject(opt_includeInstance, this);
|
|
@@ -1360,8 +1370,7 @@ var require_avs_pb = __commonJS({
|
|
|
1360
1370
|
var f, obj = {
|
|
1361
1371
|
contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1362
1372
|
callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1363
|
-
contractAbi: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1364
|
-
method: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1373
|
+
contractAbi: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1365
1374
|
};
|
|
1366
1375
|
if (includeInstance) {
|
|
1367
1376
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1402,13 +1411,6 @@ var require_avs_pb = __commonJS({
|
|
|
1402
1411
|
);
|
|
1403
1412
|
msg.setContractAbi(value);
|
|
1404
1413
|
break;
|
|
1405
|
-
case 4:
|
|
1406
|
-
var value = (
|
|
1407
|
-
/** @type {string} */
|
|
1408
|
-
reader.readString()
|
|
1409
|
-
);
|
|
1410
|
-
msg.setMethod(value);
|
|
1411
|
-
break;
|
|
1412
1414
|
default:
|
|
1413
1415
|
reader.skipField();
|
|
1414
1416
|
break;
|
|
@@ -1444,13 +1446,6 @@ var require_avs_pb = __commonJS({
|
|
|
1444
1446
|
f
|
|
1445
1447
|
);
|
|
1446
1448
|
}
|
|
1447
|
-
f = message.getMethod();
|
|
1448
|
-
if (f.length > 0) {
|
|
1449
|
-
writer.writeString(
|
|
1450
|
-
4,
|
|
1451
|
-
f
|
|
1452
|
-
);
|
|
1453
|
-
}
|
|
1454
1449
|
};
|
|
1455
1450
|
proto.aggregator.ContractReadNode.prototype.getContractAddress = function() {
|
|
1456
1451
|
return (
|
|
@@ -1479,15 +1474,6 @@ var require_avs_pb = __commonJS({
|
|
|
1479
1474
|
proto.aggregator.ContractReadNode.prototype.setContractAbi = function(value) {
|
|
1480
1475
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1481
1476
|
};
|
|
1482
|
-
proto.aggregator.ContractReadNode.prototype.getMethod = function() {
|
|
1483
|
-
return (
|
|
1484
|
-
/** @type {string} */
|
|
1485
|
-
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
1486
|
-
);
|
|
1487
|
-
};
|
|
1488
|
-
proto.aggregator.ContractReadNode.prototype.setMethod = function(value) {
|
|
1489
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1490
|
-
};
|
|
1491
1477
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1492
1478
|
proto.aggregator.GraphQLQueryNode.prototype.toObject = function(opt_includeInstance) {
|
|
1493
1479
|
return proto.aggregator.GraphQLQueryNode.toObject(opt_includeInstance, this);
|
|
@@ -6911,233 +6897,233 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
6911
6897
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
6912
6898
|
"use strict";
|
|
6913
6899
|
var grpc = require("@grpc/grpc-js");
|
|
6914
|
-
var
|
|
6900
|
+
var avs_pb21 = require_avs_pb();
|
|
6915
6901
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
6916
6902
|
var google_protobuf_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
6917
6903
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
6918
|
-
if (!(arg instanceof
|
|
6904
|
+
if (!(arg instanceof avs_pb21.CreateOrUpdateSecretReq)) {
|
|
6919
6905
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
6920
6906
|
}
|
|
6921
6907
|
return Buffer.from(arg.serializeBinary());
|
|
6922
6908
|
}
|
|
6923
6909
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
6924
|
-
return
|
|
6910
|
+
return avs_pb21.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6925
6911
|
}
|
|
6926
6912
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
6927
|
-
if (!(arg instanceof
|
|
6913
|
+
if (!(arg instanceof avs_pb21.CreateTaskReq)) {
|
|
6928
6914
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
6929
6915
|
}
|
|
6930
6916
|
return Buffer.from(arg.serializeBinary());
|
|
6931
6917
|
}
|
|
6932
6918
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
6933
|
-
return
|
|
6919
|
+
return avs_pb21.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6934
6920
|
}
|
|
6935
6921
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
6936
|
-
if (!(arg instanceof
|
|
6922
|
+
if (!(arg instanceof avs_pb21.CreateTaskResp)) {
|
|
6937
6923
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
6938
6924
|
}
|
|
6939
6925
|
return Buffer.from(arg.serializeBinary());
|
|
6940
6926
|
}
|
|
6941
6927
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
6942
|
-
return
|
|
6928
|
+
return avs_pb21.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6943
6929
|
}
|
|
6944
6930
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
6945
|
-
if (!(arg instanceof
|
|
6931
|
+
if (!(arg instanceof avs_pb21.DeleteSecretReq)) {
|
|
6946
6932
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
6947
6933
|
}
|
|
6948
6934
|
return Buffer.from(arg.serializeBinary());
|
|
6949
6935
|
}
|
|
6950
6936
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
6951
|
-
return
|
|
6937
|
+
return avs_pb21.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6952
6938
|
}
|
|
6953
6939
|
function serialize_aggregator_Execution(arg) {
|
|
6954
|
-
if (!(arg instanceof
|
|
6940
|
+
if (!(arg instanceof avs_pb21.Execution)) {
|
|
6955
6941
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
6956
6942
|
}
|
|
6957
6943
|
return Buffer.from(arg.serializeBinary());
|
|
6958
6944
|
}
|
|
6959
6945
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
6960
|
-
return
|
|
6946
|
+
return avs_pb21.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6961
6947
|
}
|
|
6962
6948
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
6963
|
-
if (!(arg instanceof
|
|
6949
|
+
if (!(arg instanceof avs_pb21.ExecutionReq)) {
|
|
6964
6950
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
6965
6951
|
}
|
|
6966
6952
|
return Buffer.from(arg.serializeBinary());
|
|
6967
6953
|
}
|
|
6968
6954
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
6969
|
-
return
|
|
6955
|
+
return avs_pb21.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6970
6956
|
}
|
|
6971
6957
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
6972
|
-
if (!(arg instanceof
|
|
6958
|
+
if (!(arg instanceof avs_pb21.ExecutionStatusResp)) {
|
|
6973
6959
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
6974
6960
|
}
|
|
6975
6961
|
return Buffer.from(arg.serializeBinary());
|
|
6976
6962
|
}
|
|
6977
6963
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
6978
|
-
return
|
|
6964
|
+
return avs_pb21.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6979
6965
|
}
|
|
6980
6966
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
6981
|
-
if (!(arg instanceof
|
|
6967
|
+
if (!(arg instanceof avs_pb21.GetKeyReq)) {
|
|
6982
6968
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
6983
6969
|
}
|
|
6984
6970
|
return Buffer.from(arg.serializeBinary());
|
|
6985
6971
|
}
|
|
6986
6972
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
6987
|
-
return
|
|
6973
|
+
return avs_pb21.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6988
6974
|
}
|
|
6989
6975
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
6990
|
-
if (!(arg instanceof
|
|
6976
|
+
if (!(arg instanceof avs_pb21.GetWalletReq)) {
|
|
6991
6977
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
6992
6978
|
}
|
|
6993
6979
|
return Buffer.from(arg.serializeBinary());
|
|
6994
6980
|
}
|
|
6995
6981
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
6996
|
-
return
|
|
6982
|
+
return avs_pb21.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6997
6983
|
}
|
|
6998
6984
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
6999
|
-
if (!(arg instanceof
|
|
6985
|
+
if (!(arg instanceof avs_pb21.GetWalletResp)) {
|
|
7000
6986
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
7001
6987
|
}
|
|
7002
6988
|
return Buffer.from(arg.serializeBinary());
|
|
7003
6989
|
}
|
|
7004
6990
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
7005
|
-
return
|
|
6991
|
+
return avs_pb21.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7006
6992
|
}
|
|
7007
6993
|
function serialize_aggregator_IdReq(arg) {
|
|
7008
|
-
if (!(arg instanceof
|
|
6994
|
+
if (!(arg instanceof avs_pb21.IdReq)) {
|
|
7009
6995
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
7010
6996
|
}
|
|
7011
6997
|
return Buffer.from(arg.serializeBinary());
|
|
7012
6998
|
}
|
|
7013
6999
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
7014
|
-
return
|
|
7000
|
+
return avs_pb21.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7015
7001
|
}
|
|
7016
7002
|
function serialize_aggregator_KeyResp(arg) {
|
|
7017
|
-
if (!(arg instanceof
|
|
7003
|
+
if (!(arg instanceof avs_pb21.KeyResp)) {
|
|
7018
7004
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
7019
7005
|
}
|
|
7020
7006
|
return Buffer.from(arg.serializeBinary());
|
|
7021
7007
|
}
|
|
7022
7008
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
7023
|
-
return
|
|
7009
|
+
return avs_pb21.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7024
7010
|
}
|
|
7025
7011
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
7026
|
-
if (!(arg instanceof
|
|
7012
|
+
if (!(arg instanceof avs_pb21.ListExecutionsReq)) {
|
|
7027
7013
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
7028
7014
|
}
|
|
7029
7015
|
return Buffer.from(arg.serializeBinary());
|
|
7030
7016
|
}
|
|
7031
7017
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
7032
|
-
return
|
|
7018
|
+
return avs_pb21.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7033
7019
|
}
|
|
7034
7020
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
7035
|
-
if (!(arg instanceof
|
|
7021
|
+
if (!(arg instanceof avs_pb21.ListExecutionsResp)) {
|
|
7036
7022
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
7037
7023
|
}
|
|
7038
7024
|
return Buffer.from(arg.serializeBinary());
|
|
7039
7025
|
}
|
|
7040
7026
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
7041
|
-
return
|
|
7027
|
+
return avs_pb21.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7042
7028
|
}
|
|
7043
7029
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
7044
|
-
if (!(arg instanceof
|
|
7030
|
+
if (!(arg instanceof avs_pb21.ListSecretsReq)) {
|
|
7045
7031
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
7046
7032
|
}
|
|
7047
7033
|
return Buffer.from(arg.serializeBinary());
|
|
7048
7034
|
}
|
|
7049
7035
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
7050
|
-
return
|
|
7036
|
+
return avs_pb21.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7051
7037
|
}
|
|
7052
7038
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
7053
|
-
if (!(arg instanceof
|
|
7039
|
+
if (!(arg instanceof avs_pb21.ListSecretsResp)) {
|
|
7054
7040
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
7055
7041
|
}
|
|
7056
7042
|
return Buffer.from(arg.serializeBinary());
|
|
7057
7043
|
}
|
|
7058
7044
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
7059
|
-
return
|
|
7045
|
+
return avs_pb21.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7060
7046
|
}
|
|
7061
7047
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
7062
|
-
if (!(arg instanceof
|
|
7048
|
+
if (!(arg instanceof avs_pb21.ListTasksReq)) {
|
|
7063
7049
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
7064
7050
|
}
|
|
7065
7051
|
return Buffer.from(arg.serializeBinary());
|
|
7066
7052
|
}
|
|
7067
7053
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
7068
|
-
return
|
|
7054
|
+
return avs_pb21.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7069
7055
|
}
|
|
7070
7056
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
7071
|
-
if (!(arg instanceof
|
|
7057
|
+
if (!(arg instanceof avs_pb21.ListTasksResp)) {
|
|
7072
7058
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
7073
7059
|
}
|
|
7074
7060
|
return Buffer.from(arg.serializeBinary());
|
|
7075
7061
|
}
|
|
7076
7062
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
7077
|
-
return
|
|
7063
|
+
return avs_pb21.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7078
7064
|
}
|
|
7079
7065
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
7080
|
-
if (!(arg instanceof
|
|
7066
|
+
if (!(arg instanceof avs_pb21.ListWalletReq)) {
|
|
7081
7067
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
7082
7068
|
}
|
|
7083
7069
|
return Buffer.from(arg.serializeBinary());
|
|
7084
7070
|
}
|
|
7085
7071
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
7086
|
-
return
|
|
7072
|
+
return avs_pb21.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7087
7073
|
}
|
|
7088
7074
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
7089
|
-
if (!(arg instanceof
|
|
7075
|
+
if (!(arg instanceof avs_pb21.ListWalletResp)) {
|
|
7090
7076
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
7091
7077
|
}
|
|
7092
7078
|
return Buffer.from(arg.serializeBinary());
|
|
7093
7079
|
}
|
|
7094
7080
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
7095
|
-
return
|
|
7081
|
+
return avs_pb21.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7096
7082
|
}
|
|
7097
7083
|
function serialize_aggregator_NonceRequest(arg) {
|
|
7098
|
-
if (!(arg instanceof
|
|
7084
|
+
if (!(arg instanceof avs_pb21.NonceRequest)) {
|
|
7099
7085
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
7100
7086
|
}
|
|
7101
7087
|
return Buffer.from(arg.serializeBinary());
|
|
7102
7088
|
}
|
|
7103
7089
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
7104
|
-
return
|
|
7090
|
+
return avs_pb21.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7105
7091
|
}
|
|
7106
7092
|
function serialize_aggregator_NonceResp(arg) {
|
|
7107
|
-
if (!(arg instanceof
|
|
7093
|
+
if (!(arg instanceof avs_pb21.NonceResp)) {
|
|
7108
7094
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
7109
7095
|
}
|
|
7110
7096
|
return Buffer.from(arg.serializeBinary());
|
|
7111
7097
|
}
|
|
7112
7098
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
7113
|
-
return
|
|
7099
|
+
return avs_pb21.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7114
7100
|
}
|
|
7115
7101
|
function serialize_aggregator_Task(arg) {
|
|
7116
|
-
if (!(arg instanceof
|
|
7102
|
+
if (!(arg instanceof avs_pb21.Task)) {
|
|
7117
7103
|
throw new Error("Expected argument of type aggregator.Task");
|
|
7118
7104
|
}
|
|
7119
7105
|
return Buffer.from(arg.serializeBinary());
|
|
7120
7106
|
}
|
|
7121
7107
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
7122
|
-
return
|
|
7108
|
+
return avs_pb21.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7123
7109
|
}
|
|
7124
7110
|
function serialize_aggregator_UserTriggerTaskReq(arg) {
|
|
7125
|
-
if (!(arg instanceof
|
|
7111
|
+
if (!(arg instanceof avs_pb21.UserTriggerTaskReq)) {
|
|
7126
7112
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskReq");
|
|
7127
7113
|
}
|
|
7128
7114
|
return Buffer.from(arg.serializeBinary());
|
|
7129
7115
|
}
|
|
7130
7116
|
function deserialize_aggregator_UserTriggerTaskReq(buffer_arg) {
|
|
7131
|
-
return
|
|
7117
|
+
return avs_pb21.UserTriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7132
7118
|
}
|
|
7133
7119
|
function serialize_aggregator_UserTriggerTaskResp(arg) {
|
|
7134
|
-
if (!(arg instanceof
|
|
7120
|
+
if (!(arg instanceof avs_pb21.UserTriggerTaskResp)) {
|
|
7135
7121
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskResp");
|
|
7136
7122
|
}
|
|
7137
7123
|
return Buffer.from(arg.serializeBinary());
|
|
7138
7124
|
}
|
|
7139
7125
|
function deserialize_aggregator_UserTriggerTaskResp(buffer_arg) {
|
|
7140
|
-
return
|
|
7126
|
+
return avs_pb21.UserTriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7141
7127
|
}
|
|
7142
7128
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
7143
7129
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -7154,8 +7140,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7154
7140
|
path: "/aggregator.Aggregator/GetKey",
|
|
7155
7141
|
requestStream: false,
|
|
7156
7142
|
responseStream: false,
|
|
7157
|
-
requestType:
|
|
7158
|
-
responseType:
|
|
7143
|
+
requestType: avs_pb21.GetKeyReq,
|
|
7144
|
+
responseType: avs_pb21.KeyResp,
|
|
7159
7145
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
7160
7146
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
7161
7147
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -7166,8 +7152,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7166
7152
|
path: "/aggregator.Aggregator/GetNonce",
|
|
7167
7153
|
requestStream: false,
|
|
7168
7154
|
responseStream: false,
|
|
7169
|
-
requestType:
|
|
7170
|
-
responseType:
|
|
7155
|
+
requestType: avs_pb21.NonceRequest,
|
|
7156
|
+
responseType: avs_pb21.NonceResp,
|
|
7171
7157
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
7172
7158
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
7173
7159
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -7177,8 +7163,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7177
7163
|
path: "/aggregator.Aggregator/GetWallet",
|
|
7178
7164
|
requestStream: false,
|
|
7179
7165
|
responseStream: false,
|
|
7180
|
-
requestType:
|
|
7181
|
-
responseType:
|
|
7166
|
+
requestType: avs_pb21.GetWalletReq,
|
|
7167
|
+
responseType: avs_pb21.GetWalletResp,
|
|
7182
7168
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
7183
7169
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
7184
7170
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -7188,8 +7174,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7188
7174
|
path: "/aggregator.Aggregator/ListWallets",
|
|
7189
7175
|
requestStream: false,
|
|
7190
7176
|
responseStream: false,
|
|
7191
|
-
requestType:
|
|
7192
|
-
responseType:
|
|
7177
|
+
requestType: avs_pb21.ListWalletReq,
|
|
7178
|
+
responseType: avs_pb21.ListWalletResp,
|
|
7193
7179
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
7194
7180
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
7195
7181
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -7200,8 +7186,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7200
7186
|
path: "/aggregator.Aggregator/CreateTask",
|
|
7201
7187
|
requestStream: false,
|
|
7202
7188
|
responseStream: false,
|
|
7203
|
-
requestType:
|
|
7204
|
-
responseType:
|
|
7189
|
+
requestType: avs_pb21.CreateTaskReq,
|
|
7190
|
+
responseType: avs_pb21.CreateTaskResp,
|
|
7205
7191
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
7206
7192
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
7207
7193
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -7211,8 +7197,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7211
7197
|
path: "/aggregator.Aggregator/ListTasks",
|
|
7212
7198
|
requestStream: false,
|
|
7213
7199
|
responseStream: false,
|
|
7214
|
-
requestType:
|
|
7215
|
-
responseType:
|
|
7200
|
+
requestType: avs_pb21.ListTasksReq,
|
|
7201
|
+
responseType: avs_pb21.ListTasksResp,
|
|
7216
7202
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
7217
7203
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
7218
7204
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -7222,8 +7208,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7222
7208
|
path: "/aggregator.Aggregator/GetTask",
|
|
7223
7209
|
requestStream: false,
|
|
7224
7210
|
responseStream: false,
|
|
7225
|
-
requestType:
|
|
7226
|
-
responseType:
|
|
7211
|
+
requestType: avs_pb21.IdReq,
|
|
7212
|
+
responseType: avs_pb21.Task,
|
|
7227
7213
|
requestSerialize: serialize_aggregator_IdReq,
|
|
7228
7214
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
7229
7215
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -7233,8 +7219,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7233
7219
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
7234
7220
|
requestStream: false,
|
|
7235
7221
|
responseStream: false,
|
|
7236
|
-
requestType:
|
|
7237
|
-
responseType:
|
|
7222
|
+
requestType: avs_pb21.ListExecutionsReq,
|
|
7223
|
+
responseType: avs_pb21.ListExecutionsResp,
|
|
7238
7224
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
7239
7225
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
7240
7226
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -7244,8 +7230,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7244
7230
|
path: "/aggregator.Aggregator/GetExecution",
|
|
7245
7231
|
requestStream: false,
|
|
7246
7232
|
responseStream: false,
|
|
7247
|
-
requestType:
|
|
7248
|
-
responseType:
|
|
7233
|
+
requestType: avs_pb21.ExecutionReq,
|
|
7234
|
+
responseType: avs_pb21.Execution,
|
|
7249
7235
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
7250
7236
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
7251
7237
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -7255,8 +7241,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7255
7241
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
7256
7242
|
requestStream: false,
|
|
7257
7243
|
responseStream: false,
|
|
7258
|
-
requestType:
|
|
7259
|
-
responseType:
|
|
7244
|
+
requestType: avs_pb21.ExecutionReq,
|
|
7245
|
+
responseType: avs_pb21.ExecutionStatusResp,
|
|
7260
7246
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
7261
7247
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
7262
7248
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -7266,7 +7252,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7266
7252
|
path: "/aggregator.Aggregator/CancelTask",
|
|
7267
7253
|
requestStream: false,
|
|
7268
7254
|
responseStream: false,
|
|
7269
|
-
requestType:
|
|
7255
|
+
requestType: avs_pb21.IdReq,
|
|
7270
7256
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7271
7257
|
requestSerialize: serialize_aggregator_IdReq,
|
|
7272
7258
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -7277,7 +7263,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7277
7263
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
7278
7264
|
requestStream: false,
|
|
7279
7265
|
responseStream: false,
|
|
7280
|
-
requestType:
|
|
7266
|
+
requestType: avs_pb21.IdReq,
|
|
7281
7267
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7282
7268
|
requestSerialize: serialize_aggregator_IdReq,
|
|
7283
7269
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -7288,8 +7274,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7288
7274
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
7289
7275
|
requestStream: false,
|
|
7290
7276
|
responseStream: false,
|
|
7291
|
-
requestType:
|
|
7292
|
-
responseType:
|
|
7277
|
+
requestType: avs_pb21.UserTriggerTaskReq,
|
|
7278
|
+
responseType: avs_pb21.UserTriggerTaskResp,
|
|
7293
7279
|
requestSerialize: serialize_aggregator_UserTriggerTaskReq,
|
|
7294
7280
|
requestDeserialize: deserialize_aggregator_UserTriggerTaskReq,
|
|
7295
7281
|
responseSerialize: serialize_aggregator_UserTriggerTaskResp,
|
|
@@ -7302,7 +7288,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7302
7288
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
7303
7289
|
requestStream: false,
|
|
7304
7290
|
responseStream: false,
|
|
7305
|
-
requestType:
|
|
7291
|
+
requestType: avs_pb21.CreateOrUpdateSecretReq,
|
|
7306
7292
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7307
7293
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
7308
7294
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -7313,7 +7299,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7313
7299
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
7314
7300
|
requestStream: false,
|
|
7315
7301
|
responseStream: false,
|
|
7316
|
-
requestType:
|
|
7302
|
+
requestType: avs_pb21.DeleteSecretReq,
|
|
7317
7303
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7318
7304
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
7319
7305
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -7326,8 +7312,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7326
7312
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
7327
7313
|
requestStream: false,
|
|
7328
7314
|
responseStream: false,
|
|
7329
|
-
requestType:
|
|
7330
|
-
responseType:
|
|
7315
|
+
requestType: avs_pb21.ListSecretsReq,
|
|
7316
|
+
responseType: avs_pb21.ListSecretsResp,
|
|
7331
7317
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
7332
7318
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
7333
7319
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -7339,7 +7325,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7339
7325
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
7340
7326
|
requestStream: false,
|
|
7341
7327
|
responseStream: false,
|
|
7342
|
-
requestType:
|
|
7328
|
+
requestType: avs_pb21.CreateOrUpdateSecretReq,
|
|
7343
7329
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7344
7330
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
7345
7331
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -7374,38 +7360,23 @@ __export(index_exports, {
|
|
|
7374
7360
|
Node: () => interface_default2,
|
|
7375
7361
|
NodeFactory: () => factory_default2,
|
|
7376
7362
|
RestAPINode: () => restApi_default,
|
|
7377
|
-
|
|
7363
|
+
Step: () => step_default,
|
|
7378
7364
|
Trigger: () => interface_default,
|
|
7379
7365
|
TriggerFactory: () => factory_default,
|
|
7380
7366
|
TriggerType: () => TriggerType,
|
|
7381
7367
|
Workflow: () => workflow_default,
|
|
7382
7368
|
WorkflowStatus: () => WorkflowStatus,
|
|
7383
|
-
default: () => Client
|
|
7384
|
-
getKeyRequestMessage: () => getKeyRequestMessage
|
|
7369
|
+
default: () => Client
|
|
7385
7370
|
});
|
|
7386
7371
|
module.exports = __toCommonJS(index_exports);
|
|
7387
|
-
var
|
|
7372
|
+
var import_lodash4 = __toESM(require("lodash"));
|
|
7388
7373
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
7389
|
-
|
|
7390
|
-
// src/auth.ts
|
|
7391
|
-
var getKeyRequestMessage = (chainId, address, issuedAt, expiredAt) => {
|
|
7392
|
-
return `Please sign the below text for ownership verification.
|
|
7393
|
-
|
|
7394
|
-
URI: https://app.avaprotocol.org
|
|
7395
|
-
Chain ID: ${chainId}
|
|
7396
|
-
Version: 1
|
|
7397
|
-
Issued At: ${issuedAt}
|
|
7398
|
-
Expire At: ${expiredAt}
|
|
7399
|
-
Wallet: ${address}`;
|
|
7400
|
-
};
|
|
7401
|
-
|
|
7402
|
-
// src/index.ts
|
|
7403
7374
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
7404
|
-
var
|
|
7375
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
7405
7376
|
var import_timestamp_pb = require("google-protobuf/google/protobuf/timestamp_pb");
|
|
7406
7377
|
|
|
7407
7378
|
// src/models/workflow.ts
|
|
7408
|
-
var
|
|
7379
|
+
var import_lodash3 = __toESM(require("lodash"));
|
|
7409
7380
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
7410
7381
|
|
|
7411
7382
|
// src/models/edge.ts
|
|
@@ -7426,13 +7397,6 @@ var Edge = class _Edge {
|
|
|
7426
7397
|
edge.setTarget(this.target);
|
|
7427
7398
|
return edge;
|
|
7428
7399
|
}
|
|
7429
|
-
toJson() {
|
|
7430
|
-
return {
|
|
7431
|
-
id: this.id,
|
|
7432
|
-
source: this.source,
|
|
7433
|
-
target: this.target
|
|
7434
|
-
};
|
|
7435
|
-
}
|
|
7436
7400
|
};
|
|
7437
7401
|
var edge_default = Edge;
|
|
7438
7402
|
|
|
@@ -7454,14 +7418,6 @@ var Trigger = class {
|
|
|
7454
7418
|
toRequest() {
|
|
7455
7419
|
throw new Error("Method not implemented.");
|
|
7456
7420
|
}
|
|
7457
|
-
toJson() {
|
|
7458
|
-
return {
|
|
7459
|
-
id: this.id,
|
|
7460
|
-
name: this.name,
|
|
7461
|
-
type: this.type,
|
|
7462
|
-
data: this.data
|
|
7463
|
-
};
|
|
7464
|
-
}
|
|
7465
7421
|
};
|
|
7466
7422
|
var interface_default = Trigger;
|
|
7467
7423
|
|
|
@@ -7571,17 +7527,42 @@ var EventTrigger = class _EventTrigger extends interface_default {
|
|
|
7571
7527
|
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
7572
7528
|
}
|
|
7573
7529
|
const condition = new avs_pb5.EventCondition();
|
|
7574
|
-
|
|
7530
|
+
const expression = this.data.expression;
|
|
7531
|
+
const matcher = this.data.matcher;
|
|
7532
|
+
if (expression && expression != "") {
|
|
7533
|
+
condition.setExpression(expression);
|
|
7534
|
+
}
|
|
7535
|
+
if (matcher && matcher.length >= 1) {
|
|
7536
|
+
condition.setMatcherList(matcher.map((element) => {
|
|
7537
|
+
const m = new avs_pb5.EventCondition.Matcher();
|
|
7538
|
+
m.setType(element["type"]);
|
|
7539
|
+
m.setValueList(element["value"]);
|
|
7540
|
+
return m;
|
|
7541
|
+
}));
|
|
7542
|
+
}
|
|
7575
7543
|
request.setEvent(condition);
|
|
7544
|
+
console.log("EventTrigger.toRequest.request:", request.toObject());
|
|
7576
7545
|
return request;
|
|
7577
7546
|
}
|
|
7578
7547
|
static fromResponse(raw) {
|
|
7579
7548
|
const obj = raw.toObject();
|
|
7580
7549
|
console.log("EventTrigger.fromResponse.obj:", obj);
|
|
7550
|
+
let data = {};
|
|
7551
|
+
if (raw.getEvent().getExpression()) {
|
|
7552
|
+
data.expression = raw.getEvent().getExpression();
|
|
7553
|
+
}
|
|
7554
|
+
if (raw.getEvent().getMatcherList()) {
|
|
7555
|
+
data.matcher = raw.getEvent().getMatcherList().map((item) => {
|
|
7556
|
+
return {
|
|
7557
|
+
type: item.getType(),
|
|
7558
|
+
value: item.getValueList()
|
|
7559
|
+
};
|
|
7560
|
+
});
|
|
7561
|
+
}
|
|
7581
7562
|
return new _EventTrigger({
|
|
7582
7563
|
...obj,
|
|
7583
7564
|
type: "event" /* Event */,
|
|
7584
|
-
data
|
|
7565
|
+
data
|
|
7585
7566
|
});
|
|
7586
7567
|
}
|
|
7587
7568
|
};
|
|
@@ -7666,11 +7647,12 @@ var TriggerFactory = class {
|
|
|
7666
7647
|
var factory_default = TriggerFactory;
|
|
7667
7648
|
|
|
7668
7649
|
// src/models/node/factory.ts
|
|
7669
|
-
var
|
|
7650
|
+
var import_lodash2 = __toESM(require("lodash"));
|
|
7670
7651
|
|
|
7671
7652
|
// src/models/node/interface.ts
|
|
7672
7653
|
var avs_pb7 = __toESM(require_avs_pb());
|
|
7673
7654
|
var import_types6 = require("@avaprotocol/types");
|
|
7655
|
+
var import_lodash = __toESM(require("lodash"));
|
|
7674
7656
|
var Node = class {
|
|
7675
7657
|
constructor(props) {
|
|
7676
7658
|
this.id = props.id;
|
|
@@ -7679,15 +7661,13 @@ var Node = class {
|
|
|
7679
7661
|
this.data = props.data;
|
|
7680
7662
|
}
|
|
7681
7663
|
toRequest() {
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
data: this.data
|
|
7690
|
-
};
|
|
7664
|
+
const request = new avs_pb7.TaskNode();
|
|
7665
|
+
const raw = request.serializeBinary();
|
|
7666
|
+
const parsed = avs_pb7.TaskNode.deserializeBinary(raw);
|
|
7667
|
+
if (!import_lodash.default.isEqual(request, parsed)) {
|
|
7668
|
+
throw new Error("Invalid request object");
|
|
7669
|
+
}
|
|
7670
|
+
return request;
|
|
7691
7671
|
}
|
|
7692
7672
|
};
|
|
7693
7673
|
var interface_default2 = Node;
|
|
@@ -7717,7 +7697,6 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
7717
7697
|
);
|
|
7718
7698
|
nodeData.setCallData(this.data.callData);
|
|
7719
7699
|
nodeData.setContractAbi(this.data.contractAbi);
|
|
7720
|
-
nodeData.setMethod(this.data.method);
|
|
7721
7700
|
request.setContractWrite(nodeData);
|
|
7722
7701
|
return request;
|
|
7723
7702
|
}
|
|
@@ -7849,7 +7828,6 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
7849
7828
|
);
|
|
7850
7829
|
nodeData.setCallData(this.data.callData);
|
|
7851
7830
|
nodeData.setContractAbi(this.data.contractAbi);
|
|
7852
|
-
nodeData.setMethod(this.data.method);
|
|
7853
7831
|
request.setContractRead(nodeData);
|
|
7854
7832
|
return request;
|
|
7855
7833
|
}
|
|
@@ -7973,7 +7951,7 @@ var NodeFactory = class {
|
|
|
7973
7951
|
}
|
|
7974
7952
|
}
|
|
7975
7953
|
static createNodes(props) {
|
|
7976
|
-
return
|
|
7954
|
+
return import_lodash2.default.map(props, (node) => this.create(node));
|
|
7977
7955
|
}
|
|
7978
7956
|
static fromResponse(raw) {
|
|
7979
7957
|
switch (true) {
|
|
@@ -8045,11 +8023,11 @@ var Workflow = class _Workflow {
|
|
|
8045
8023
|
if (!trigger) {
|
|
8046
8024
|
throw new Error("Trigger is undefined in fromResponse()");
|
|
8047
8025
|
}
|
|
8048
|
-
const nodes =
|
|
8026
|
+
const nodes = import_lodash3.default.map(
|
|
8049
8027
|
obj.getNodesList(),
|
|
8050
8028
|
(node) => factory_default2.fromResponse(node)
|
|
8051
8029
|
);
|
|
8052
|
-
const edges =
|
|
8030
|
+
const edges = import_lodash3.default.map(obj.getEdgesList(), (edge) => edge_default.fromResponse(edge));
|
|
8053
8031
|
const workflow = new _Workflow({
|
|
8054
8032
|
id: obj.getId(),
|
|
8055
8033
|
owner: obj.getOwner(),
|
|
@@ -8098,8 +8076,8 @@ var Workflow = class _Workflow {
|
|
|
8098
8076
|
const request = new avs_pb16.CreateTaskReq();
|
|
8099
8077
|
request.setSmartWalletAddress(this.smartWalletAddress);
|
|
8100
8078
|
request.setTrigger(this.trigger.toRequest());
|
|
8101
|
-
|
|
8102
|
-
|
|
8079
|
+
import_lodash3.default.map(this.nodes, (node) => request.addNodes(node.toRequest()));
|
|
8080
|
+
import_lodash3.default.map(this.edges, (edge) => request.addEdges(edge.toRequest()));
|
|
8103
8081
|
request.setStartAt(this.startAt);
|
|
8104
8082
|
request.setExpiredAt(this.expiredAt);
|
|
8105
8083
|
request.setMaxExecution(this.maxExecution);
|
|
@@ -8286,26 +8264,6 @@ var Execution3 = class _Execution {
|
|
|
8286
8264
|
};
|
|
8287
8265
|
var execution_default = Execution3;
|
|
8288
8266
|
|
|
8289
|
-
// src/models/secret.ts
|
|
8290
|
-
var avs_pb20 = __toESM(require_avs_pb());
|
|
8291
|
-
var Secret = class {
|
|
8292
|
-
constructor(props) {
|
|
8293
|
-
this.name = props.name;
|
|
8294
|
-
this.secret = props.secret;
|
|
8295
|
-
this.workflowId = props.workflowId;
|
|
8296
|
-
this.orgId = props.orgId;
|
|
8297
|
-
}
|
|
8298
|
-
toRequest() {
|
|
8299
|
-
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
8300
|
-
request.setName(this.name);
|
|
8301
|
-
request.setSecret(this.secret);
|
|
8302
|
-
request.setOrgId(this.orgId);
|
|
8303
|
-
request.setWorkflowId(this.workflowId);
|
|
8304
|
-
return request;
|
|
8305
|
-
}
|
|
8306
|
-
};
|
|
8307
|
-
var secret_default = Secret;
|
|
8308
|
-
|
|
8309
8267
|
// src/index.ts
|
|
8310
8268
|
var BaseClient = class {
|
|
8311
8269
|
constructor(opts) {
|
|
@@ -8334,10 +8292,12 @@ var BaseClient = class {
|
|
|
8334
8292
|
}
|
|
8335
8293
|
}
|
|
8336
8294
|
/**
|
|
8337
|
-
* The API key could retrieve a wallet
|
|
8295
|
+
* The API key could retrieve a wallet's authKey by skipping its signature verification
|
|
8296
|
+
* @param chainId - The chain id
|
|
8338
8297
|
* @param address - The address of the EOA wallet
|
|
8298
|
+
* @param issuedAt - The issued at timestamp
|
|
8299
|
+
* @param expiredAt - The expiration timestamp
|
|
8339
8300
|
* @param apiKey - The API key
|
|
8340
|
-
* @param expiredAtEpoch - The expiration epoch
|
|
8341
8301
|
* @returns {Promise<GetKeyResponse>} - The response from the auth call
|
|
8342
8302
|
*/
|
|
8343
8303
|
async authWithAPIKey({
|
|
@@ -8347,7 +8307,7 @@ var BaseClient = class {
|
|
|
8347
8307
|
expiredAt,
|
|
8348
8308
|
apiKey
|
|
8349
8309
|
}) {
|
|
8350
|
-
const request = new
|
|
8310
|
+
const request = new avs_pb20.GetKeyReq();
|
|
8351
8311
|
request.setChainId(chainId);
|
|
8352
8312
|
request.setOwner(address);
|
|
8353
8313
|
const issueTs = import_timestamp_pb.Timestamp.fromDate(issuedAt);
|
|
@@ -8360,9 +8320,11 @@ var BaseClient = class {
|
|
|
8360
8320
|
}
|
|
8361
8321
|
/**
|
|
8362
8322
|
* Getting an authKey from the server by verifying the signature of an EOA wallet
|
|
8323
|
+
* @param chainId - The chain id
|
|
8363
8324
|
* @param address - The address of the EOA wallet
|
|
8325
|
+
* @param issuedAt - The issued at timestamp
|
|
8326
|
+
* @param expiredAt - The expiration timestamp
|
|
8364
8327
|
* @param signature - The signature of the EOA wallet
|
|
8365
|
-
* @param expiredAtEpoch - The expiration epoch
|
|
8366
8328
|
* @returns {Promise<GetKeyResponse>} - The response from the auth call
|
|
8367
8329
|
*/
|
|
8368
8330
|
async authWithSignature({
|
|
@@ -8372,7 +8334,7 @@ var BaseClient = class {
|
|
|
8372
8334
|
expiredAt,
|
|
8373
8335
|
signature
|
|
8374
8336
|
}) {
|
|
8375
|
-
const request = new
|
|
8337
|
+
const request = new avs_pb20.GetKeyReq();
|
|
8376
8338
|
request.setChainId(chainId);
|
|
8377
8339
|
request.setOwner(address);
|
|
8378
8340
|
const issueTs = import_timestamp_pb.Timestamp.fromDate(issuedAt);
|
|
@@ -8395,7 +8357,7 @@ var BaseClient = class {
|
|
|
8395
8357
|
this.authKey = authKey;
|
|
8396
8358
|
}
|
|
8397
8359
|
/**
|
|
8398
|
-
* Get the auth key if it
|
|
8360
|
+
* Get the auth key if it's set in the client
|
|
8399
8361
|
* @returns {string | undefined} - The auth key
|
|
8400
8362
|
*/
|
|
8401
8363
|
getAuthKey() {
|
|
@@ -8409,7 +8371,7 @@ var BaseClient = class {
|
|
|
8409
8371
|
this.factoryAddress = address;
|
|
8410
8372
|
}
|
|
8411
8373
|
/**
|
|
8412
|
-
* Get the factory address if it
|
|
8374
|
+
* Get the factory address if it's set in the client
|
|
8413
8375
|
* @returns {string | undefined} - The factory address
|
|
8414
8376
|
*/
|
|
8415
8377
|
getFactoryAddress() {
|
|
@@ -8423,7 +8385,7 @@ var BaseClient = class {
|
|
|
8423
8385
|
* @returns {Promise<TResponse>} - The response from the gRPC call
|
|
8424
8386
|
*/
|
|
8425
8387
|
sendGrpcRequest(method, request, options) {
|
|
8426
|
-
const metadata =
|
|
8388
|
+
const metadata = import_lodash4.default.cloneDeep(this.metadata);
|
|
8427
8389
|
if (options?.authKey) {
|
|
8428
8390
|
metadata.set(AUTH_KEY_HEADER, options.authKey);
|
|
8429
8391
|
} else if (this.authKey) {
|
|
@@ -8451,7 +8413,7 @@ var Client = class extends BaseClient {
|
|
|
8451
8413
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
8452
8414
|
*/
|
|
8453
8415
|
async getWallets(options) {
|
|
8454
|
-
const request = new
|
|
8416
|
+
const request = new avs_pb20.ListWalletReq();
|
|
8455
8417
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
8456
8418
|
return result.getItemsList().map((item) => item.toObject());
|
|
8457
8419
|
}
|
|
@@ -8463,7 +8425,7 @@ var Client = class extends BaseClient {
|
|
|
8463
8425
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
8464
8426
|
*/
|
|
8465
8427
|
async getWallet({ salt, factoryAddress }, options) {
|
|
8466
|
-
const request = new
|
|
8428
|
+
const request = new avs_pb20.GetWalletReq();
|
|
8467
8429
|
request.setSalt(salt);
|
|
8468
8430
|
if (factoryAddress) {
|
|
8469
8431
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -8505,7 +8467,7 @@ var Client = class extends BaseClient {
|
|
|
8505
8467
|
* @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
|
|
8506
8468
|
*/
|
|
8507
8469
|
async getWorkflows(addresses, options) {
|
|
8508
|
-
const request = new
|
|
8470
|
+
const request = new avs_pb20.ListTasksReq();
|
|
8509
8471
|
for (const a of addresses) {
|
|
8510
8472
|
request.addSmartWalletAddress(a);
|
|
8511
8473
|
}
|
|
@@ -8530,7 +8492,7 @@ var Client = class extends BaseClient {
|
|
|
8530
8492
|
* @returns {Promise<{ cursor: string; result: Execution[] }>} - The list of Executions
|
|
8531
8493
|
*/
|
|
8532
8494
|
async getExecutions(workflows, options) {
|
|
8533
|
-
const request = new
|
|
8495
|
+
const request = new avs_pb20.ListExecutionsReq();
|
|
8534
8496
|
request.setTaskIdsList(workflows);
|
|
8535
8497
|
if (options?.cursor && options?.cursor != "") {
|
|
8536
8498
|
request.setCursor(options.cursor);
|
|
@@ -8551,7 +8513,7 @@ var Client = class extends BaseClient {
|
|
|
8551
8513
|
* @returns {Promise<Execution>} - The result execution if it is existed
|
|
8552
8514
|
*/
|
|
8553
8515
|
async getExecution(taskId, executionId, options) {
|
|
8554
|
-
const request = new
|
|
8516
|
+
const request = new avs_pb20.ExecutionReq();
|
|
8555
8517
|
request.setTaskId(taskId);
|
|
8556
8518
|
request.setExecutionId(executionId);
|
|
8557
8519
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -8568,7 +8530,7 @@ var Client = class extends BaseClient {
|
|
|
8568
8530
|
* @returns {Promise<ExecutionStatus>} - The result execution if it is existed
|
|
8569
8531
|
*/
|
|
8570
8532
|
async getExecutionStatus(taskId, executionId, options) {
|
|
8571
|
-
const request = new
|
|
8533
|
+
const request = new avs_pb20.ExecutionReq();
|
|
8572
8534
|
request.setTaskId(taskId);
|
|
8573
8535
|
request.setExecutionId(executionId);
|
|
8574
8536
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -8581,7 +8543,7 @@ var Client = class extends BaseClient {
|
|
|
8581
8543
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
8582
8544
|
*/
|
|
8583
8545
|
async getWorkflow(id, options) {
|
|
8584
|
-
const request = new
|
|
8546
|
+
const request = new avs_pb20.IdReq();
|
|
8585
8547
|
request.setId(id);
|
|
8586
8548
|
const result = await this.sendGrpcRequest(
|
|
8587
8549
|
"getTask",
|
|
@@ -8603,7 +8565,7 @@ var Client = class extends BaseClient {
|
|
|
8603
8565
|
data,
|
|
8604
8566
|
isBlocking = false
|
|
8605
8567
|
}, options) {
|
|
8606
|
-
const request = new
|
|
8568
|
+
const request = new avs_pb20.UserTriggerTaskReq();
|
|
8607
8569
|
request.setTaskId(id);
|
|
8608
8570
|
request.setTriggerMetadata(new metadata_default(data).toRequest());
|
|
8609
8571
|
request.setIsBlocking(isBlocking);
|
|
@@ -8617,7 +8579,7 @@ var Client = class extends BaseClient {
|
|
|
8617
8579
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
8618
8580
|
*/
|
|
8619
8581
|
async cancelWorkflow(id, options) {
|
|
8620
|
-
const request = new
|
|
8582
|
+
const request = new avs_pb20.IdReq();
|
|
8621
8583
|
request.setId(id);
|
|
8622
8584
|
const result = await this.sendGrpcRequest(
|
|
8623
8585
|
"cancelTask",
|
|
@@ -8633,7 +8595,7 @@ var Client = class extends BaseClient {
|
|
|
8633
8595
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
8634
8596
|
*/
|
|
8635
8597
|
async deleteWorkflow(id, options) {
|
|
8636
|
-
const request = new
|
|
8598
|
+
const request = new avs_pb20.IdReq();
|
|
8637
8599
|
request.setId(id);
|
|
8638
8600
|
const result = await this.sendGrpcRequest(
|
|
8639
8601
|
"deleteTask",
|
|
@@ -8642,39 +8604,78 @@ var Client = class extends BaseClient {
|
|
|
8642
8604
|
);
|
|
8643
8605
|
return result.getValue();
|
|
8644
8606
|
}
|
|
8645
|
-
async createSecret(
|
|
8646
|
-
const request =
|
|
8607
|
+
async createSecret(name, value, options) {
|
|
8608
|
+
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
8609
|
+
request.setName(name);
|
|
8610
|
+
request.setSecret(value);
|
|
8611
|
+
if (options?.workflowId) {
|
|
8612
|
+
request.setWorkflowId(options.workflowId);
|
|
8613
|
+
}
|
|
8614
|
+
if (options?.orgId) {
|
|
8615
|
+
request.setOrgId(options.orgId);
|
|
8616
|
+
}
|
|
8647
8617
|
const result = await this.sendGrpcRequest("createSecret", request, options);
|
|
8648
8618
|
return result.getValue();
|
|
8649
8619
|
}
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8620
|
+
/**
|
|
8621
|
+
* Update an existing secret; the secret is updated in the user scope by default, derived from the auth key.
|
|
8622
|
+
* @param secret - The secret object containing updated information
|
|
8623
|
+
* @param options - Request options, including workflowId and orgId for scoping
|
|
8624
|
+
* @returns {Promise<boolean>} - Whether the secret was successfully updated
|
|
8625
|
+
*/
|
|
8626
|
+
async updateSecret(name, value, options) {
|
|
8627
|
+
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
8628
|
+
request.setName(name);
|
|
8629
|
+
request.setSecret(value);
|
|
8630
|
+
if (options?.workflowId) {
|
|
8631
|
+
request.setWorkflowId(options.workflowId);
|
|
8632
|
+
}
|
|
8633
|
+
if (options?.orgId) {
|
|
8634
|
+
request.setOrgId(options.orgId);
|
|
8635
|
+
}
|
|
8636
|
+
const result = await this.sendGrpcRequest("updateSecret", request, options);
|
|
8637
|
+
return result.getValue();
|
|
8638
|
+
}
|
|
8639
|
+
/**
|
|
8640
|
+
* Retrieve a list of secrets; secrets can be filtered by workflowId or orgId.
|
|
8641
|
+
* @param params - Parameters for listing secrets
|
|
8642
|
+
* @param options - Request options, including workflowId and orgId for filtering
|
|
8643
|
+
* @returns {Promise<ListSecretResponse[]>} - The list of secrets
|
|
8644
|
+
*/
|
|
8645
|
+
async listSecrets(options) {
|
|
8646
|
+
const request = new avs_pb20.ListSecretsReq();
|
|
8647
|
+
if (options?.workflowId) {
|
|
8648
|
+
request.setWorkflowId(options.workflowId);
|
|
8649
|
+
}
|
|
8650
|
+
if (options?.orgId) {
|
|
8654
8651
|
}
|
|
8655
8652
|
const result = await this.sendGrpcRequest("listSecrets", request, options);
|
|
8656
|
-
return result.getItemsList().map((item) => {
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
};
|
|
8662
|
-
});
|
|
8653
|
+
return result.getItemsList().map((item) => ({
|
|
8654
|
+
name: item.getName(),
|
|
8655
|
+
workflowId: item.getWorkflowId(),
|
|
8656
|
+
orgId: item.getOrgId()
|
|
8657
|
+
}));
|
|
8663
8658
|
}
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8659
|
+
/**
|
|
8660
|
+
* Delete a secret by its name; by default, the secret is deleted from the user scope, derived from the auth key
|
|
8661
|
+
* @param name - The name of the secret
|
|
8662
|
+
* @param options - Request options
|
|
8663
|
+
* @param options.workflowId - The workflow id; if specified, the secret will be deleted from the workflow scope
|
|
8664
|
+
* @param options.orgId - The organization id; if specified, the secret will be deleted from the organization scope
|
|
8665
|
+
* @returns {Promise<boolean>} - Whether the secret was successfully deleted
|
|
8666
|
+
*/
|
|
8667
|
+
async deleteSecret(name, options) {
|
|
8668
|
+
const request = new avs_pb20.DeleteSecretReq();
|
|
8669
|
+
request.setName(name);
|
|
8670
|
+
if (options?.workflowId) {
|
|
8671
|
+
request.setWorkflowId(options.workflowId);
|
|
8672
|
+
}
|
|
8673
|
+
if (options?.orgId) {
|
|
8674
|
+
request.setOrgId(options.orgId);
|
|
8669
8675
|
}
|
|
8670
8676
|
const result = await this.sendGrpcRequest("deleteSecret", request, options);
|
|
8671
8677
|
return result.getValue();
|
|
8672
8678
|
}
|
|
8673
|
-
async updateSecret(secret, options) {
|
|
8674
|
-
const request = secret.toRequest();
|
|
8675
|
-
const result = await this.sendGrpcRequest("updateSecret", request, options);
|
|
8676
|
-
return result.getValue();
|
|
8677
|
-
}
|
|
8678
8679
|
};
|
|
8679
8680
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8680
8681
|
0 && (module.exports = {
|
|
@@ -8698,11 +8699,10 @@ var Client = class extends BaseClient {
|
|
|
8698
8699
|
Node,
|
|
8699
8700
|
NodeFactory,
|
|
8700
8701
|
RestAPINode,
|
|
8701
|
-
|
|
8702
|
+
Step,
|
|
8702
8703
|
Trigger,
|
|
8703
8704
|
TriggerFactory,
|
|
8704
8705
|
TriggerType,
|
|
8705
8706
|
Workflow,
|
|
8706
|
-
WorkflowStatus
|
|
8707
|
-
getKeyRequestMessage
|
|
8707
|
+
WorkflowStatus
|
|
8708
8708
|
});
|