@avaprotocol/sdk-js 2.7.0 → 2.7.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/CHANGELOG.md +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +280 -265
- package/dist/index.mjs +271 -256
- package/dist/models/execution.d.ts +21 -0
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +26 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7008,8 +7008,9 @@ var require_avs_pb = __commonJS({
|
|
|
7008
7008
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7009
7009
|
startAt: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
7010
7010
|
endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
7011
|
-
|
|
7011
|
+
status: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
7012
7012
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
7013
|
+
index: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
7013
7014
|
stepsList: jspb.Message.toObjectList(
|
|
7014
7015
|
msg.getStepsList(),
|
|
7015
7016
|
proto.aggregator.Execution.Step.toObject,
|
|
@@ -7057,10 +7058,10 @@ var require_avs_pb = __commonJS({
|
|
|
7057
7058
|
break;
|
|
7058
7059
|
case 4:
|
|
7059
7060
|
var value = (
|
|
7060
|
-
/** @type {
|
|
7061
|
-
reader.
|
|
7061
|
+
/** @type {!proto.aggregator.ExecutionStatus} */
|
|
7062
|
+
reader.readEnum()
|
|
7062
7063
|
);
|
|
7063
|
-
msg.
|
|
7064
|
+
msg.setStatus(value);
|
|
7064
7065
|
break;
|
|
7065
7066
|
case 5:
|
|
7066
7067
|
var value = (
|
|
@@ -7069,6 +7070,13 @@ var require_avs_pb = __commonJS({
|
|
|
7069
7070
|
);
|
|
7070
7071
|
msg.setError(value);
|
|
7071
7072
|
break;
|
|
7073
|
+
case 6:
|
|
7074
|
+
var value = (
|
|
7075
|
+
/** @type {number} */
|
|
7076
|
+
reader.readInt64()
|
|
7077
|
+
);
|
|
7078
|
+
msg.setIndex(value);
|
|
7079
|
+
break;
|
|
7072
7080
|
case 8:
|
|
7073
7081
|
var value = new proto.aggregator.Execution.Step();
|
|
7074
7082
|
reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
|
|
@@ -7109,9 +7117,9 @@ var require_avs_pb = __commonJS({
|
|
|
7109
7117
|
f
|
|
7110
7118
|
);
|
|
7111
7119
|
}
|
|
7112
|
-
f = message.
|
|
7113
|
-
if (f) {
|
|
7114
|
-
writer.
|
|
7120
|
+
f = message.getStatus();
|
|
7121
|
+
if (f !== 0) {
|
|
7122
|
+
writer.writeEnum(
|
|
7115
7123
|
4,
|
|
7116
7124
|
f
|
|
7117
7125
|
);
|
|
@@ -7123,6 +7131,13 @@ var require_avs_pb = __commonJS({
|
|
|
7123
7131
|
f
|
|
7124
7132
|
);
|
|
7125
7133
|
}
|
|
7134
|
+
f = message.getIndex();
|
|
7135
|
+
if (f !== 0) {
|
|
7136
|
+
writer.writeInt64(
|
|
7137
|
+
6,
|
|
7138
|
+
f
|
|
7139
|
+
);
|
|
7140
|
+
}
|
|
7126
7141
|
f = message.getStepsList();
|
|
7127
7142
|
if (f.length > 0) {
|
|
7128
7143
|
writer.writeRepeatedMessage(
|
|
@@ -7939,14 +7954,14 @@ var require_avs_pb = __commonJS({
|
|
|
7939
7954
|
proto.aggregator.Execution.prototype.setEndAt = function(value) {
|
|
7940
7955
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
7941
7956
|
};
|
|
7942
|
-
proto.aggregator.Execution.prototype.
|
|
7957
|
+
proto.aggregator.Execution.prototype.getStatus = function() {
|
|
7943
7958
|
return (
|
|
7944
|
-
/** @type {
|
|
7945
|
-
jspb.Message.
|
|
7959
|
+
/** @type {!proto.aggregator.ExecutionStatus} */
|
|
7960
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
7946
7961
|
);
|
|
7947
7962
|
};
|
|
7948
|
-
proto.aggregator.Execution.prototype.
|
|
7949
|
-
return jspb.Message.
|
|
7963
|
+
proto.aggregator.Execution.prototype.setStatus = function(value) {
|
|
7964
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
7950
7965
|
};
|
|
7951
7966
|
proto.aggregator.Execution.prototype.getError = function() {
|
|
7952
7967
|
return (
|
|
@@ -7957,6 +7972,15 @@ var require_avs_pb = __commonJS({
|
|
|
7957
7972
|
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
7958
7973
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
7959
7974
|
};
|
|
7975
|
+
proto.aggregator.Execution.prototype.getIndex = function() {
|
|
7976
|
+
return (
|
|
7977
|
+
/** @type {number} */
|
|
7978
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
7979
|
+
);
|
|
7980
|
+
};
|
|
7981
|
+
proto.aggregator.Execution.prototype.setIndex = function(value) {
|
|
7982
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
7983
|
+
};
|
|
7960
7984
|
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
7961
7985
|
return (
|
|
7962
7986
|
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
@@ -11190,7 +11214,6 @@ var require_avs_pb = __commonJS({
|
|
|
11190
11214
|
workflowId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
11191
11215
|
startAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
11192
11216
|
endAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
11193
|
-
success: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
11194
11217
|
error: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
11195
11218
|
stepsList: jspb.Message.toObjectList(
|
|
11196
11219
|
msg.getStepsList(),
|
|
@@ -11251,13 +11274,6 @@ var require_avs_pb = __commonJS({
|
|
|
11251
11274
|
);
|
|
11252
11275
|
msg.setEndAt(value);
|
|
11253
11276
|
break;
|
|
11254
|
-
case 6:
|
|
11255
|
-
var value = (
|
|
11256
|
-
/** @type {boolean} */
|
|
11257
|
-
reader.readBool()
|
|
11258
|
-
);
|
|
11259
|
-
msg.setSuccess(value);
|
|
11260
|
-
break;
|
|
11261
11277
|
case 7:
|
|
11262
11278
|
var value = (
|
|
11263
11279
|
/** @type {string} */
|
|
@@ -11321,14 +11337,6 @@ var require_avs_pb = __commonJS({
|
|
|
11321
11337
|
f
|
|
11322
11338
|
);
|
|
11323
11339
|
}
|
|
11324
|
-
f = /** @type {boolean} */
|
|
11325
|
-
jspb.Message.getField(message, 6);
|
|
11326
|
-
if (f != null) {
|
|
11327
|
-
writer.writeBool(
|
|
11328
|
-
6,
|
|
11329
|
-
f
|
|
11330
|
-
);
|
|
11331
|
-
}
|
|
11332
11340
|
f = /** @type {string} */
|
|
11333
11341
|
jspb.Message.getField(message, 7);
|
|
11334
11342
|
if (f != null) {
|
|
@@ -11403,21 +11411,6 @@ var require_avs_pb = __commonJS({
|
|
|
11403
11411
|
proto.aggregator.TriggerTaskResp.prototype.hasEndAt = function() {
|
|
11404
11412
|
return jspb.Message.getField(this, 5) != null;
|
|
11405
11413
|
};
|
|
11406
|
-
proto.aggregator.TriggerTaskResp.prototype.getSuccess = function() {
|
|
11407
|
-
return (
|
|
11408
|
-
/** @type {boolean} */
|
|
11409
|
-
jspb.Message.getBooleanFieldWithDefault(this, 6, false)
|
|
11410
|
-
);
|
|
11411
|
-
};
|
|
11412
|
-
proto.aggregator.TriggerTaskResp.prototype.setSuccess = function(value) {
|
|
11413
|
-
return jspb.Message.setField(this, 6, value);
|
|
11414
|
-
};
|
|
11415
|
-
proto.aggregator.TriggerTaskResp.prototype.clearSuccess = function() {
|
|
11416
|
-
return jspb.Message.setField(this, 6, void 0);
|
|
11417
|
-
};
|
|
11418
|
-
proto.aggregator.TriggerTaskResp.prototype.hasSuccess = function() {
|
|
11419
|
-
return jspb.Message.getField(this, 6) != null;
|
|
11420
|
-
};
|
|
11421
11414
|
proto.aggregator.TriggerTaskResp.prototype.getError = function() {
|
|
11422
11415
|
return (
|
|
11423
11416
|
/** @type {string} */
|
|
@@ -15264,8 +15257,9 @@ var require_avs_pb = __commonJS({
|
|
|
15264
15257
|
proto.aggregator.ExecutionStatus = {
|
|
15265
15258
|
EXECUTION_STATUS_UNSPECIFIED: 0,
|
|
15266
15259
|
EXECUTION_STATUS_PENDING: 1,
|
|
15267
|
-
|
|
15268
|
-
EXECUTION_STATUS_FAILED: 3
|
|
15260
|
+
EXECUTION_STATUS_SUCCESS: 2,
|
|
15261
|
+
EXECUTION_STATUS_FAILED: 3,
|
|
15262
|
+
EXECUTION_STATUS_PARTIAL_SUCCESS: 4
|
|
15269
15263
|
};
|
|
15270
15264
|
goog.object.extend(exports2, proto.aggregator);
|
|
15271
15265
|
}
|
|
@@ -15276,439 +15270,439 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15276
15270
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
15277
15271
|
"use strict";
|
|
15278
15272
|
var grpc = require("@grpc/grpc-js");
|
|
15279
|
-
var
|
|
15273
|
+
var avs_pb24 = require_avs_pb();
|
|
15280
15274
|
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
15281
15275
|
function serialize_aggregator_CancelTaskResp(arg) {
|
|
15282
|
-
if (!(arg instanceof
|
|
15276
|
+
if (!(arg instanceof avs_pb24.CancelTaskResp)) {
|
|
15283
15277
|
throw new Error("Expected argument of type aggregator.CancelTaskResp");
|
|
15284
15278
|
}
|
|
15285
15279
|
return Buffer.from(arg.serializeBinary());
|
|
15286
15280
|
}
|
|
15287
15281
|
function deserialize_aggregator_CancelTaskResp(buffer_arg) {
|
|
15288
|
-
return
|
|
15282
|
+
return avs_pb24.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15289
15283
|
}
|
|
15290
15284
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
15291
|
-
if (!(arg instanceof
|
|
15285
|
+
if (!(arg instanceof avs_pb24.CreateOrUpdateSecretReq)) {
|
|
15292
15286
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
15293
15287
|
}
|
|
15294
15288
|
return Buffer.from(arg.serializeBinary());
|
|
15295
15289
|
}
|
|
15296
15290
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
15297
|
-
return
|
|
15291
|
+
return avs_pb24.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15298
15292
|
}
|
|
15299
15293
|
function serialize_aggregator_CreateSecretResp(arg) {
|
|
15300
|
-
if (!(arg instanceof
|
|
15294
|
+
if (!(arg instanceof avs_pb24.CreateSecretResp)) {
|
|
15301
15295
|
throw new Error("Expected argument of type aggregator.CreateSecretResp");
|
|
15302
15296
|
}
|
|
15303
15297
|
return Buffer.from(arg.serializeBinary());
|
|
15304
15298
|
}
|
|
15305
15299
|
function deserialize_aggregator_CreateSecretResp(buffer_arg) {
|
|
15306
|
-
return
|
|
15300
|
+
return avs_pb24.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15307
15301
|
}
|
|
15308
15302
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
15309
|
-
if (!(arg instanceof
|
|
15303
|
+
if (!(arg instanceof avs_pb24.CreateTaskReq)) {
|
|
15310
15304
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
15311
15305
|
}
|
|
15312
15306
|
return Buffer.from(arg.serializeBinary());
|
|
15313
15307
|
}
|
|
15314
15308
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
15315
|
-
return
|
|
15309
|
+
return avs_pb24.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15316
15310
|
}
|
|
15317
15311
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
15318
|
-
if (!(arg instanceof
|
|
15312
|
+
if (!(arg instanceof avs_pb24.CreateTaskResp)) {
|
|
15319
15313
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
15320
15314
|
}
|
|
15321
15315
|
return Buffer.from(arg.serializeBinary());
|
|
15322
15316
|
}
|
|
15323
15317
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
15324
|
-
return
|
|
15318
|
+
return avs_pb24.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15325
15319
|
}
|
|
15326
15320
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
15327
|
-
if (!(arg instanceof
|
|
15321
|
+
if (!(arg instanceof avs_pb24.DeleteSecretReq)) {
|
|
15328
15322
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
15329
15323
|
}
|
|
15330
15324
|
return Buffer.from(arg.serializeBinary());
|
|
15331
15325
|
}
|
|
15332
15326
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
15333
|
-
return
|
|
15327
|
+
return avs_pb24.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15334
15328
|
}
|
|
15335
15329
|
function serialize_aggregator_DeleteSecretResp(arg) {
|
|
15336
|
-
if (!(arg instanceof
|
|
15330
|
+
if (!(arg instanceof avs_pb24.DeleteSecretResp)) {
|
|
15337
15331
|
throw new Error("Expected argument of type aggregator.DeleteSecretResp");
|
|
15338
15332
|
}
|
|
15339
15333
|
return Buffer.from(arg.serializeBinary());
|
|
15340
15334
|
}
|
|
15341
15335
|
function deserialize_aggregator_DeleteSecretResp(buffer_arg) {
|
|
15342
|
-
return
|
|
15336
|
+
return avs_pb24.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15343
15337
|
}
|
|
15344
15338
|
function serialize_aggregator_DeleteTaskResp(arg) {
|
|
15345
|
-
if (!(arg instanceof
|
|
15339
|
+
if (!(arg instanceof avs_pb24.DeleteTaskResp)) {
|
|
15346
15340
|
throw new Error("Expected argument of type aggregator.DeleteTaskResp");
|
|
15347
15341
|
}
|
|
15348
15342
|
return Buffer.from(arg.serializeBinary());
|
|
15349
15343
|
}
|
|
15350
15344
|
function deserialize_aggregator_DeleteTaskResp(buffer_arg) {
|
|
15351
|
-
return
|
|
15345
|
+
return avs_pb24.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15352
15346
|
}
|
|
15353
15347
|
function serialize_aggregator_Execution(arg) {
|
|
15354
|
-
if (!(arg instanceof
|
|
15348
|
+
if (!(arg instanceof avs_pb24.Execution)) {
|
|
15355
15349
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
15356
15350
|
}
|
|
15357
15351
|
return Buffer.from(arg.serializeBinary());
|
|
15358
15352
|
}
|
|
15359
15353
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
15360
|
-
return
|
|
15354
|
+
return avs_pb24.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15361
15355
|
}
|
|
15362
15356
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
15363
|
-
if (!(arg instanceof
|
|
15357
|
+
if (!(arg instanceof avs_pb24.ExecutionReq)) {
|
|
15364
15358
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
15365
15359
|
}
|
|
15366
15360
|
return Buffer.from(arg.serializeBinary());
|
|
15367
15361
|
}
|
|
15368
15362
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
15369
|
-
return
|
|
15363
|
+
return avs_pb24.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15370
15364
|
}
|
|
15371
15365
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
15372
|
-
if (!(arg instanceof
|
|
15366
|
+
if (!(arg instanceof avs_pb24.ExecutionStatusResp)) {
|
|
15373
15367
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
15374
15368
|
}
|
|
15375
15369
|
return Buffer.from(arg.serializeBinary());
|
|
15376
15370
|
}
|
|
15377
15371
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
15378
|
-
return
|
|
15372
|
+
return avs_pb24.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15379
15373
|
}
|
|
15380
15374
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
15381
|
-
if (!(arg instanceof
|
|
15375
|
+
if (!(arg instanceof avs_pb24.GetExecutionCountReq)) {
|
|
15382
15376
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
15383
15377
|
}
|
|
15384
15378
|
return Buffer.from(arg.serializeBinary());
|
|
15385
15379
|
}
|
|
15386
15380
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
15387
|
-
return
|
|
15381
|
+
return avs_pb24.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15388
15382
|
}
|
|
15389
15383
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
15390
|
-
if (!(arg instanceof
|
|
15384
|
+
if (!(arg instanceof avs_pb24.GetExecutionCountResp)) {
|
|
15391
15385
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
15392
15386
|
}
|
|
15393
15387
|
return Buffer.from(arg.serializeBinary());
|
|
15394
15388
|
}
|
|
15395
15389
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
15396
|
-
return
|
|
15390
|
+
return avs_pb24.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15397
15391
|
}
|
|
15398
15392
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
15399
|
-
if (!(arg instanceof
|
|
15393
|
+
if (!(arg instanceof avs_pb24.GetExecutionStatsReq)) {
|
|
15400
15394
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
15401
15395
|
}
|
|
15402
15396
|
return Buffer.from(arg.serializeBinary());
|
|
15403
15397
|
}
|
|
15404
15398
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
15405
|
-
return
|
|
15399
|
+
return avs_pb24.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15406
15400
|
}
|
|
15407
15401
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
15408
|
-
if (!(arg instanceof
|
|
15402
|
+
if (!(arg instanceof avs_pb24.GetExecutionStatsResp)) {
|
|
15409
15403
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
15410
15404
|
}
|
|
15411
15405
|
return Buffer.from(arg.serializeBinary());
|
|
15412
15406
|
}
|
|
15413
15407
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
15414
|
-
return
|
|
15408
|
+
return avs_pb24.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15415
15409
|
}
|
|
15416
15410
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
15417
|
-
if (!(arg instanceof
|
|
15411
|
+
if (!(arg instanceof avs_pb24.GetKeyReq)) {
|
|
15418
15412
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
15419
15413
|
}
|
|
15420
15414
|
return Buffer.from(arg.serializeBinary());
|
|
15421
15415
|
}
|
|
15422
15416
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
15423
|
-
return
|
|
15417
|
+
return avs_pb24.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15424
15418
|
}
|
|
15425
15419
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
15426
|
-
if (!(arg instanceof
|
|
15420
|
+
if (!(arg instanceof avs_pb24.GetSignatureFormatReq)) {
|
|
15427
15421
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
15428
15422
|
}
|
|
15429
15423
|
return Buffer.from(arg.serializeBinary());
|
|
15430
15424
|
}
|
|
15431
15425
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
15432
|
-
return
|
|
15426
|
+
return avs_pb24.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15433
15427
|
}
|
|
15434
15428
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
15435
|
-
if (!(arg instanceof
|
|
15429
|
+
if (!(arg instanceof avs_pb24.GetSignatureFormatResp)) {
|
|
15436
15430
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
15437
15431
|
}
|
|
15438
15432
|
return Buffer.from(arg.serializeBinary());
|
|
15439
15433
|
}
|
|
15440
15434
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
15441
|
-
return
|
|
15435
|
+
return avs_pb24.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15442
15436
|
}
|
|
15443
15437
|
function serialize_aggregator_GetTokenMetadataReq(arg) {
|
|
15444
|
-
if (!(arg instanceof
|
|
15438
|
+
if (!(arg instanceof avs_pb24.GetTokenMetadataReq)) {
|
|
15445
15439
|
throw new Error("Expected argument of type aggregator.GetTokenMetadataReq");
|
|
15446
15440
|
}
|
|
15447
15441
|
return Buffer.from(arg.serializeBinary());
|
|
15448
15442
|
}
|
|
15449
15443
|
function deserialize_aggregator_GetTokenMetadataReq(buffer_arg) {
|
|
15450
|
-
return
|
|
15444
|
+
return avs_pb24.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15451
15445
|
}
|
|
15452
15446
|
function serialize_aggregator_GetTokenMetadataResp(arg) {
|
|
15453
|
-
if (!(arg instanceof
|
|
15447
|
+
if (!(arg instanceof avs_pb24.GetTokenMetadataResp)) {
|
|
15454
15448
|
throw new Error("Expected argument of type aggregator.GetTokenMetadataResp");
|
|
15455
15449
|
}
|
|
15456
15450
|
return Buffer.from(arg.serializeBinary());
|
|
15457
15451
|
}
|
|
15458
15452
|
function deserialize_aggregator_GetTokenMetadataResp(buffer_arg) {
|
|
15459
|
-
return
|
|
15453
|
+
return avs_pb24.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15460
15454
|
}
|
|
15461
15455
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
15462
|
-
if (!(arg instanceof
|
|
15456
|
+
if (!(arg instanceof avs_pb24.GetWalletReq)) {
|
|
15463
15457
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
15464
15458
|
}
|
|
15465
15459
|
return Buffer.from(arg.serializeBinary());
|
|
15466
15460
|
}
|
|
15467
15461
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
15468
|
-
return
|
|
15462
|
+
return avs_pb24.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15469
15463
|
}
|
|
15470
15464
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
15471
|
-
if (!(arg instanceof
|
|
15465
|
+
if (!(arg instanceof avs_pb24.GetWalletResp)) {
|
|
15472
15466
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
15473
15467
|
}
|
|
15474
15468
|
return Buffer.from(arg.serializeBinary());
|
|
15475
15469
|
}
|
|
15476
15470
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
15477
|
-
return
|
|
15471
|
+
return avs_pb24.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15478
15472
|
}
|
|
15479
15473
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
15480
|
-
if (!(arg instanceof
|
|
15474
|
+
if (!(arg instanceof avs_pb24.GetWorkflowCountReq)) {
|
|
15481
15475
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
15482
15476
|
}
|
|
15483
15477
|
return Buffer.from(arg.serializeBinary());
|
|
15484
15478
|
}
|
|
15485
15479
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
15486
|
-
return
|
|
15480
|
+
return avs_pb24.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15487
15481
|
}
|
|
15488
15482
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
15489
|
-
if (!(arg instanceof
|
|
15483
|
+
if (!(arg instanceof avs_pb24.GetWorkflowCountResp)) {
|
|
15490
15484
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
15491
15485
|
}
|
|
15492
15486
|
return Buffer.from(arg.serializeBinary());
|
|
15493
15487
|
}
|
|
15494
15488
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
15495
|
-
return
|
|
15489
|
+
return avs_pb24.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15496
15490
|
}
|
|
15497
15491
|
function serialize_aggregator_IdReq(arg) {
|
|
15498
|
-
if (!(arg instanceof
|
|
15492
|
+
if (!(arg instanceof avs_pb24.IdReq)) {
|
|
15499
15493
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
15500
15494
|
}
|
|
15501
15495
|
return Buffer.from(arg.serializeBinary());
|
|
15502
15496
|
}
|
|
15503
15497
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
15504
|
-
return
|
|
15498
|
+
return avs_pb24.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15505
15499
|
}
|
|
15506
15500
|
function serialize_aggregator_KeyResp(arg) {
|
|
15507
|
-
if (!(arg instanceof
|
|
15501
|
+
if (!(arg instanceof avs_pb24.KeyResp)) {
|
|
15508
15502
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
15509
15503
|
}
|
|
15510
15504
|
return Buffer.from(arg.serializeBinary());
|
|
15511
15505
|
}
|
|
15512
15506
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
15513
|
-
return
|
|
15507
|
+
return avs_pb24.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15514
15508
|
}
|
|
15515
15509
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
15516
|
-
if (!(arg instanceof
|
|
15510
|
+
if (!(arg instanceof avs_pb24.ListExecutionsReq)) {
|
|
15517
15511
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
15518
15512
|
}
|
|
15519
15513
|
return Buffer.from(arg.serializeBinary());
|
|
15520
15514
|
}
|
|
15521
15515
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
15522
|
-
return
|
|
15516
|
+
return avs_pb24.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15523
15517
|
}
|
|
15524
15518
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
15525
|
-
if (!(arg instanceof
|
|
15519
|
+
if (!(arg instanceof avs_pb24.ListExecutionsResp)) {
|
|
15526
15520
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
15527
15521
|
}
|
|
15528
15522
|
return Buffer.from(arg.serializeBinary());
|
|
15529
15523
|
}
|
|
15530
15524
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
15531
|
-
return
|
|
15525
|
+
return avs_pb24.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15532
15526
|
}
|
|
15533
15527
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
15534
|
-
if (!(arg instanceof
|
|
15528
|
+
if (!(arg instanceof avs_pb24.ListSecretsReq)) {
|
|
15535
15529
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
15536
15530
|
}
|
|
15537
15531
|
return Buffer.from(arg.serializeBinary());
|
|
15538
15532
|
}
|
|
15539
15533
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
15540
|
-
return
|
|
15534
|
+
return avs_pb24.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15541
15535
|
}
|
|
15542
15536
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
15543
|
-
if (!(arg instanceof
|
|
15537
|
+
if (!(arg instanceof avs_pb24.ListSecretsResp)) {
|
|
15544
15538
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
15545
15539
|
}
|
|
15546
15540
|
return Buffer.from(arg.serializeBinary());
|
|
15547
15541
|
}
|
|
15548
15542
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
15549
|
-
return
|
|
15543
|
+
return avs_pb24.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15550
15544
|
}
|
|
15551
15545
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
15552
|
-
if (!(arg instanceof
|
|
15546
|
+
if (!(arg instanceof avs_pb24.ListTasksReq)) {
|
|
15553
15547
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
15554
15548
|
}
|
|
15555
15549
|
return Buffer.from(arg.serializeBinary());
|
|
15556
15550
|
}
|
|
15557
15551
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
15558
|
-
return
|
|
15552
|
+
return avs_pb24.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15559
15553
|
}
|
|
15560
15554
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
15561
|
-
if (!(arg instanceof
|
|
15555
|
+
if (!(arg instanceof avs_pb24.ListTasksResp)) {
|
|
15562
15556
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
15563
15557
|
}
|
|
15564
15558
|
return Buffer.from(arg.serializeBinary());
|
|
15565
15559
|
}
|
|
15566
15560
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
15567
|
-
return
|
|
15561
|
+
return avs_pb24.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15568
15562
|
}
|
|
15569
15563
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
15570
|
-
if (!(arg instanceof
|
|
15564
|
+
if (!(arg instanceof avs_pb24.ListWalletReq)) {
|
|
15571
15565
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
15572
15566
|
}
|
|
15573
15567
|
return Buffer.from(arg.serializeBinary());
|
|
15574
15568
|
}
|
|
15575
15569
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
15576
|
-
return
|
|
15570
|
+
return avs_pb24.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15577
15571
|
}
|
|
15578
15572
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
15579
|
-
if (!(arg instanceof
|
|
15573
|
+
if (!(arg instanceof avs_pb24.ListWalletResp)) {
|
|
15580
15574
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
15581
15575
|
}
|
|
15582
15576
|
return Buffer.from(arg.serializeBinary());
|
|
15583
15577
|
}
|
|
15584
15578
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
15585
|
-
return
|
|
15579
|
+
return avs_pb24.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15586
15580
|
}
|
|
15587
15581
|
function serialize_aggregator_NonceRequest(arg) {
|
|
15588
|
-
if (!(arg instanceof
|
|
15582
|
+
if (!(arg instanceof avs_pb24.NonceRequest)) {
|
|
15589
15583
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
15590
15584
|
}
|
|
15591
15585
|
return Buffer.from(arg.serializeBinary());
|
|
15592
15586
|
}
|
|
15593
15587
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
15594
|
-
return
|
|
15588
|
+
return avs_pb24.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15595
15589
|
}
|
|
15596
15590
|
function serialize_aggregator_NonceResp(arg) {
|
|
15597
|
-
if (!(arg instanceof
|
|
15591
|
+
if (!(arg instanceof avs_pb24.NonceResp)) {
|
|
15598
15592
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
15599
15593
|
}
|
|
15600
15594
|
return Buffer.from(arg.serializeBinary());
|
|
15601
15595
|
}
|
|
15602
15596
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
15603
|
-
return
|
|
15597
|
+
return avs_pb24.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15604
15598
|
}
|
|
15605
15599
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
15606
|
-
if (!(arg instanceof
|
|
15600
|
+
if (!(arg instanceof avs_pb24.RunNodeWithInputsReq)) {
|
|
15607
15601
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
15608
15602
|
}
|
|
15609
15603
|
return Buffer.from(arg.serializeBinary());
|
|
15610
15604
|
}
|
|
15611
15605
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
15612
|
-
return
|
|
15606
|
+
return avs_pb24.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15613
15607
|
}
|
|
15614
15608
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
15615
|
-
if (!(arg instanceof
|
|
15609
|
+
if (!(arg instanceof avs_pb24.RunNodeWithInputsResp)) {
|
|
15616
15610
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
15617
15611
|
}
|
|
15618
15612
|
return Buffer.from(arg.serializeBinary());
|
|
15619
15613
|
}
|
|
15620
15614
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
15621
|
-
return
|
|
15615
|
+
return avs_pb24.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15622
15616
|
}
|
|
15623
15617
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
15624
|
-
if (!(arg instanceof
|
|
15618
|
+
if (!(arg instanceof avs_pb24.RunTriggerReq)) {
|
|
15625
15619
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
15626
15620
|
}
|
|
15627
15621
|
return Buffer.from(arg.serializeBinary());
|
|
15628
15622
|
}
|
|
15629
15623
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
15630
|
-
return
|
|
15624
|
+
return avs_pb24.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15631
15625
|
}
|
|
15632
15626
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
15633
|
-
if (!(arg instanceof
|
|
15627
|
+
if (!(arg instanceof avs_pb24.RunTriggerResp)) {
|
|
15634
15628
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
15635
15629
|
}
|
|
15636
15630
|
return Buffer.from(arg.serializeBinary());
|
|
15637
15631
|
}
|
|
15638
15632
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
15639
|
-
return
|
|
15633
|
+
return avs_pb24.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15640
15634
|
}
|
|
15641
15635
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
15642
|
-
if (!(arg instanceof
|
|
15636
|
+
if (!(arg instanceof avs_pb24.SetWalletReq)) {
|
|
15643
15637
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
15644
15638
|
}
|
|
15645
15639
|
return Buffer.from(arg.serializeBinary());
|
|
15646
15640
|
}
|
|
15647
15641
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
15648
|
-
return
|
|
15642
|
+
return avs_pb24.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15649
15643
|
}
|
|
15650
15644
|
function serialize_aggregator_SimulateTaskReq(arg) {
|
|
15651
|
-
if (!(arg instanceof
|
|
15645
|
+
if (!(arg instanceof avs_pb24.SimulateTaskReq)) {
|
|
15652
15646
|
throw new Error("Expected argument of type aggregator.SimulateTaskReq");
|
|
15653
15647
|
}
|
|
15654
15648
|
return Buffer.from(arg.serializeBinary());
|
|
15655
15649
|
}
|
|
15656
15650
|
function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
|
|
15657
|
-
return
|
|
15651
|
+
return avs_pb24.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15658
15652
|
}
|
|
15659
15653
|
function serialize_aggregator_Task(arg) {
|
|
15660
|
-
if (!(arg instanceof
|
|
15654
|
+
if (!(arg instanceof avs_pb24.Task)) {
|
|
15661
15655
|
throw new Error("Expected argument of type aggregator.Task");
|
|
15662
15656
|
}
|
|
15663
15657
|
return Buffer.from(arg.serializeBinary());
|
|
15664
15658
|
}
|
|
15665
15659
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
15666
|
-
return
|
|
15660
|
+
return avs_pb24.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15667
15661
|
}
|
|
15668
15662
|
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
15669
|
-
if (!(arg instanceof
|
|
15663
|
+
if (!(arg instanceof avs_pb24.TriggerTaskReq)) {
|
|
15670
15664
|
throw new Error("Expected argument of type aggregator.TriggerTaskReq");
|
|
15671
15665
|
}
|
|
15672
15666
|
return Buffer.from(arg.serializeBinary());
|
|
15673
15667
|
}
|
|
15674
15668
|
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
15675
|
-
return
|
|
15669
|
+
return avs_pb24.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15676
15670
|
}
|
|
15677
15671
|
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
15678
|
-
if (!(arg instanceof
|
|
15672
|
+
if (!(arg instanceof avs_pb24.TriggerTaskResp)) {
|
|
15679
15673
|
throw new Error("Expected argument of type aggregator.TriggerTaskResp");
|
|
15680
15674
|
}
|
|
15681
15675
|
return Buffer.from(arg.serializeBinary());
|
|
15682
15676
|
}
|
|
15683
15677
|
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
15684
|
-
return
|
|
15678
|
+
return avs_pb24.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15685
15679
|
}
|
|
15686
15680
|
function serialize_aggregator_UpdateSecretResp(arg) {
|
|
15687
|
-
if (!(arg instanceof
|
|
15681
|
+
if (!(arg instanceof avs_pb24.UpdateSecretResp)) {
|
|
15688
15682
|
throw new Error("Expected argument of type aggregator.UpdateSecretResp");
|
|
15689
15683
|
}
|
|
15690
15684
|
return Buffer.from(arg.serializeBinary());
|
|
15691
15685
|
}
|
|
15692
15686
|
function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
|
|
15693
|
-
return
|
|
15687
|
+
return avs_pb24.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15694
15688
|
}
|
|
15695
15689
|
function serialize_aggregator_WithdrawFundsReq(arg) {
|
|
15696
|
-
if (!(arg instanceof
|
|
15690
|
+
if (!(arg instanceof avs_pb24.WithdrawFundsReq)) {
|
|
15697
15691
|
throw new Error("Expected argument of type aggregator.WithdrawFundsReq");
|
|
15698
15692
|
}
|
|
15699
15693
|
return Buffer.from(arg.serializeBinary());
|
|
15700
15694
|
}
|
|
15701
15695
|
function deserialize_aggregator_WithdrawFundsReq(buffer_arg) {
|
|
15702
|
-
return
|
|
15696
|
+
return avs_pb24.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15703
15697
|
}
|
|
15704
15698
|
function serialize_aggregator_WithdrawFundsResp(arg) {
|
|
15705
|
-
if (!(arg instanceof
|
|
15699
|
+
if (!(arg instanceof avs_pb24.WithdrawFundsResp)) {
|
|
15706
15700
|
throw new Error("Expected argument of type aggregator.WithdrawFundsResp");
|
|
15707
15701
|
}
|
|
15708
15702
|
return Buffer.from(arg.serializeBinary());
|
|
15709
15703
|
}
|
|
15710
15704
|
function deserialize_aggregator_WithdrawFundsResp(buffer_arg) {
|
|
15711
|
-
return
|
|
15705
|
+
return avs_pb24.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15712
15706
|
}
|
|
15713
15707
|
var AggregatorService = exports2.AggregatorService = {
|
|
15714
15708
|
// Exchange for an Auth Key to authenticate in subsequent request
|
|
@@ -15716,8 +15710,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15716
15710
|
path: "/aggregator.Aggregator/GetKey",
|
|
15717
15711
|
requestStream: false,
|
|
15718
15712
|
responseStream: false,
|
|
15719
|
-
requestType:
|
|
15720
|
-
responseType:
|
|
15713
|
+
requestType: avs_pb24.GetKeyReq,
|
|
15714
|
+
responseType: avs_pb24.KeyResp,
|
|
15721
15715
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
15722
15716
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
15723
15717
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -15728,8 +15722,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15728
15722
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
15729
15723
|
requestStream: false,
|
|
15730
15724
|
responseStream: false,
|
|
15731
|
-
requestType:
|
|
15732
|
-
responseType:
|
|
15725
|
+
requestType: avs_pb24.GetSignatureFormatReq,
|
|
15726
|
+
responseType: avs_pb24.GetSignatureFormatResp,
|
|
15733
15727
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
15734
15728
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
15735
15729
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -15740,8 +15734,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15740
15734
|
path: "/aggregator.Aggregator/GetNonce",
|
|
15741
15735
|
requestStream: false,
|
|
15742
15736
|
responseStream: false,
|
|
15743
|
-
requestType:
|
|
15744
|
-
responseType:
|
|
15737
|
+
requestType: avs_pb24.NonceRequest,
|
|
15738
|
+
responseType: avs_pb24.NonceResp,
|
|
15745
15739
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
15746
15740
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
15747
15741
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -15751,8 +15745,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15751
15745
|
path: "/aggregator.Aggregator/GetWallet",
|
|
15752
15746
|
requestStream: false,
|
|
15753
15747
|
responseStream: false,
|
|
15754
|
-
requestType:
|
|
15755
|
-
responseType:
|
|
15748
|
+
requestType: avs_pb24.GetWalletReq,
|
|
15749
|
+
responseType: avs_pb24.GetWalletResp,
|
|
15756
15750
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
15757
15751
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
15758
15752
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -15762,8 +15756,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15762
15756
|
path: "/aggregator.Aggregator/SetWallet",
|
|
15763
15757
|
requestStream: false,
|
|
15764
15758
|
responseStream: false,
|
|
15765
|
-
requestType:
|
|
15766
|
-
responseType:
|
|
15759
|
+
requestType: avs_pb24.SetWalletReq,
|
|
15760
|
+
responseType: avs_pb24.GetWalletResp,
|
|
15767
15761
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
15768
15762
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
15769
15763
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -15773,8 +15767,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15773
15767
|
path: "/aggregator.Aggregator/ListWallets",
|
|
15774
15768
|
requestStream: false,
|
|
15775
15769
|
responseStream: false,
|
|
15776
|
-
requestType:
|
|
15777
|
-
responseType:
|
|
15770
|
+
requestType: avs_pb24.ListWalletReq,
|
|
15771
|
+
responseType: avs_pb24.ListWalletResp,
|
|
15778
15772
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
15779
15773
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
15780
15774
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -15785,8 +15779,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15785
15779
|
path: "/aggregator.Aggregator/WithdrawFunds",
|
|
15786
15780
|
requestStream: false,
|
|
15787
15781
|
responseStream: false,
|
|
15788
|
-
requestType:
|
|
15789
|
-
responseType:
|
|
15782
|
+
requestType: avs_pb24.WithdrawFundsReq,
|
|
15783
|
+
responseType: avs_pb24.WithdrawFundsResp,
|
|
15790
15784
|
requestSerialize: serialize_aggregator_WithdrawFundsReq,
|
|
15791
15785
|
requestDeserialize: deserialize_aggregator_WithdrawFundsReq,
|
|
15792
15786
|
responseSerialize: serialize_aggregator_WithdrawFundsResp,
|
|
@@ -15797,8 +15791,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15797
15791
|
path: "/aggregator.Aggregator/CreateTask",
|
|
15798
15792
|
requestStream: false,
|
|
15799
15793
|
responseStream: false,
|
|
15800
|
-
requestType:
|
|
15801
|
-
responseType:
|
|
15794
|
+
requestType: avs_pb24.CreateTaskReq,
|
|
15795
|
+
responseType: avs_pb24.CreateTaskResp,
|
|
15802
15796
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
15803
15797
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
15804
15798
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -15808,8 +15802,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15808
15802
|
path: "/aggregator.Aggregator/ListTasks",
|
|
15809
15803
|
requestStream: false,
|
|
15810
15804
|
responseStream: false,
|
|
15811
|
-
requestType:
|
|
15812
|
-
responseType:
|
|
15805
|
+
requestType: avs_pb24.ListTasksReq,
|
|
15806
|
+
responseType: avs_pb24.ListTasksResp,
|
|
15813
15807
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
15814
15808
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
15815
15809
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -15819,8 +15813,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15819
15813
|
path: "/aggregator.Aggregator/GetTask",
|
|
15820
15814
|
requestStream: false,
|
|
15821
15815
|
responseStream: false,
|
|
15822
|
-
requestType:
|
|
15823
|
-
responseType:
|
|
15816
|
+
requestType: avs_pb24.IdReq,
|
|
15817
|
+
responseType: avs_pb24.Task,
|
|
15824
15818
|
requestSerialize: serialize_aggregator_IdReq,
|
|
15825
15819
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
15826
15820
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -15830,8 +15824,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15830
15824
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
15831
15825
|
requestStream: false,
|
|
15832
15826
|
responseStream: false,
|
|
15833
|
-
requestType:
|
|
15834
|
-
responseType:
|
|
15827
|
+
requestType: avs_pb24.ListExecutionsReq,
|
|
15828
|
+
responseType: avs_pb24.ListExecutionsResp,
|
|
15835
15829
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
15836
15830
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
15837
15831
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -15841,8 +15835,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15841
15835
|
path: "/aggregator.Aggregator/GetExecution",
|
|
15842
15836
|
requestStream: false,
|
|
15843
15837
|
responseStream: false,
|
|
15844
|
-
requestType:
|
|
15845
|
-
responseType:
|
|
15838
|
+
requestType: avs_pb24.ExecutionReq,
|
|
15839
|
+
responseType: avs_pb24.Execution,
|
|
15846
15840
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
15847
15841
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
15848
15842
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -15852,8 +15846,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15852
15846
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
15853
15847
|
requestStream: false,
|
|
15854
15848
|
responseStream: false,
|
|
15855
|
-
requestType:
|
|
15856
|
-
responseType:
|
|
15849
|
+
requestType: avs_pb24.ExecutionReq,
|
|
15850
|
+
responseType: avs_pb24.ExecutionStatusResp,
|
|
15857
15851
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
15858
15852
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
15859
15853
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -15863,8 +15857,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15863
15857
|
path: "/aggregator.Aggregator/CancelTask",
|
|
15864
15858
|
requestStream: false,
|
|
15865
15859
|
responseStream: false,
|
|
15866
|
-
requestType:
|
|
15867
|
-
responseType:
|
|
15860
|
+
requestType: avs_pb24.IdReq,
|
|
15861
|
+
responseType: avs_pb24.CancelTaskResp,
|
|
15868
15862
|
requestSerialize: serialize_aggregator_IdReq,
|
|
15869
15863
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
15870
15864
|
responseSerialize: serialize_aggregator_CancelTaskResp,
|
|
@@ -15874,8 +15868,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15874
15868
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
15875
15869
|
requestStream: false,
|
|
15876
15870
|
responseStream: false,
|
|
15877
|
-
requestType:
|
|
15878
|
-
responseType:
|
|
15871
|
+
requestType: avs_pb24.IdReq,
|
|
15872
|
+
responseType: avs_pb24.DeleteTaskResp,
|
|
15879
15873
|
requestSerialize: serialize_aggregator_IdReq,
|
|
15880
15874
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
15881
15875
|
responseSerialize: serialize_aggregator_DeleteTaskResp,
|
|
@@ -15885,8 +15879,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15885
15879
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
15886
15880
|
requestStream: false,
|
|
15887
15881
|
responseStream: false,
|
|
15888
|
-
requestType:
|
|
15889
|
-
responseType:
|
|
15882
|
+
requestType: avs_pb24.TriggerTaskReq,
|
|
15883
|
+
responseType: avs_pb24.TriggerTaskResp,
|
|
15890
15884
|
requestSerialize: serialize_aggregator_TriggerTaskReq,
|
|
15891
15885
|
requestDeserialize: deserialize_aggregator_TriggerTaskReq,
|
|
15892
15886
|
responseSerialize: serialize_aggregator_TriggerTaskResp,
|
|
@@ -15899,8 +15893,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15899
15893
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
15900
15894
|
requestStream: false,
|
|
15901
15895
|
responseStream: false,
|
|
15902
|
-
requestType:
|
|
15903
|
-
responseType:
|
|
15896
|
+
requestType: avs_pb24.CreateOrUpdateSecretReq,
|
|
15897
|
+
responseType: avs_pb24.CreateSecretResp,
|
|
15904
15898
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
15905
15899
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
15906
15900
|
responseSerialize: serialize_aggregator_CreateSecretResp,
|
|
@@ -15910,8 +15904,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15910
15904
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
15911
15905
|
requestStream: false,
|
|
15912
15906
|
responseStream: false,
|
|
15913
|
-
requestType:
|
|
15914
|
-
responseType:
|
|
15907
|
+
requestType: avs_pb24.DeleteSecretReq,
|
|
15908
|
+
responseType: avs_pb24.DeleteSecretResp,
|
|
15915
15909
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
15916
15910
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
15917
15911
|
responseSerialize: serialize_aggregator_DeleteSecretResp,
|
|
@@ -15923,8 +15917,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15923
15917
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
15924
15918
|
requestStream: false,
|
|
15925
15919
|
responseStream: false,
|
|
15926
|
-
requestType:
|
|
15927
|
-
responseType:
|
|
15920
|
+
requestType: avs_pb24.ListSecretsReq,
|
|
15921
|
+
responseType: avs_pb24.ListSecretsResp,
|
|
15928
15922
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
15929
15923
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
15930
15924
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -15936,8 +15930,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15936
15930
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
15937
15931
|
requestStream: false,
|
|
15938
15932
|
responseStream: false,
|
|
15939
|
-
requestType:
|
|
15940
|
-
responseType:
|
|
15933
|
+
requestType: avs_pb24.CreateOrUpdateSecretReq,
|
|
15934
|
+
responseType: avs_pb24.UpdateSecretResp,
|
|
15941
15935
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
15942
15936
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
15943
15937
|
responseSerialize: serialize_aggregator_UpdateSecretResp,
|
|
@@ -15953,8 +15947,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15953
15947
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
15954
15948
|
requestStream: false,
|
|
15955
15949
|
responseStream: false,
|
|
15956
|
-
requestType:
|
|
15957
|
-
responseType:
|
|
15950
|
+
requestType: avs_pb24.GetWorkflowCountReq,
|
|
15951
|
+
responseType: avs_pb24.GetWorkflowCountResp,
|
|
15958
15952
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
15959
15953
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
15960
15954
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -15968,8 +15962,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15968
15962
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
15969
15963
|
requestStream: false,
|
|
15970
15964
|
responseStream: false,
|
|
15971
|
-
requestType:
|
|
15972
|
-
responseType:
|
|
15965
|
+
requestType: avs_pb24.GetExecutionCountReq,
|
|
15966
|
+
responseType: avs_pb24.GetExecutionCountResp,
|
|
15973
15967
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
15974
15968
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
15975
15969
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -15982,8 +15976,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15982
15976
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
15983
15977
|
requestStream: false,
|
|
15984
15978
|
responseStream: false,
|
|
15985
|
-
requestType:
|
|
15986
|
-
responseType:
|
|
15979
|
+
requestType: avs_pb24.GetExecutionStatsReq,
|
|
15980
|
+
responseType: avs_pb24.GetExecutionStatsResp,
|
|
15987
15981
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
15988
15982
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
15989
15983
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -15994,8 +15988,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15994
15988
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
15995
15989
|
requestStream: false,
|
|
15996
15990
|
responseStream: false,
|
|
15997
|
-
requestType:
|
|
15998
|
-
responseType:
|
|
15991
|
+
requestType: avs_pb24.RunNodeWithInputsReq,
|
|
15992
|
+
responseType: avs_pb24.RunNodeWithInputsResp,
|
|
15999
15993
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
16000
15994
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
16001
15995
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -16006,8 +16000,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
16006
16000
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
16007
16001
|
requestStream: false,
|
|
16008
16002
|
responseStream: false,
|
|
16009
|
-
requestType:
|
|
16010
|
-
responseType:
|
|
16003
|
+
requestType: avs_pb24.RunTriggerReq,
|
|
16004
|
+
responseType: avs_pb24.RunTriggerResp,
|
|
16011
16005
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
16012
16006
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
16013
16007
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
@@ -16018,8 +16012,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
16018
16012
|
path: "/aggregator.Aggregator/SimulateTask",
|
|
16019
16013
|
requestStream: false,
|
|
16020
16014
|
responseStream: false,
|
|
16021
|
-
requestType:
|
|
16022
|
-
responseType:
|
|
16015
|
+
requestType: avs_pb24.SimulateTaskReq,
|
|
16016
|
+
responseType: avs_pb24.Execution,
|
|
16023
16017
|
requestSerialize: serialize_aggregator_SimulateTaskReq,
|
|
16024
16018
|
requestDeserialize: deserialize_aggregator_SimulateTaskReq,
|
|
16025
16019
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -16030,8 +16024,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
16030
16024
|
path: "/aggregator.Aggregator/GetTokenMetadata",
|
|
16031
16025
|
requestStream: false,
|
|
16032
16026
|
responseStream: false,
|
|
16033
|
-
requestType:
|
|
16034
|
-
responseType:
|
|
16027
|
+
requestType: avs_pb24.GetTokenMetadataReq,
|
|
16028
|
+
responseType: avs_pb24.GetTokenMetadataResp,
|
|
16035
16029
|
requestSerialize: serialize_aggregator_GetTokenMetadataReq,
|
|
16036
16030
|
requestDeserialize: deserialize_aggregator_GetTokenMetadataReq,
|
|
16037
16031
|
responseSerialize: serialize_aggregator_GetTokenMetadataResp,
|
|
@@ -16066,7 +16060,7 @@ __export(index_exports, {
|
|
|
16066
16060
|
RestAPINode: () => restApi_default,
|
|
16067
16061
|
Secret: () => secret_default,
|
|
16068
16062
|
Step: () => step_default,
|
|
16069
|
-
TimeoutPresets: () =>
|
|
16063
|
+
TimeoutPresets: () => import_types22.TimeoutPresets,
|
|
16070
16064
|
Trigger: () => Trigger,
|
|
16071
16065
|
TriggerFactory: () => factory_default,
|
|
16072
16066
|
Workflow: () => workflow_default,
|
|
@@ -16075,7 +16069,7 @@ __export(index_exports, {
|
|
|
16075
16069
|
module.exports = __toCommonJS(index_exports);
|
|
16076
16070
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
16077
16071
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
16078
|
-
var
|
|
16072
|
+
var avs_pb23 = __toESM(require_avs_pb());
|
|
16079
16073
|
|
|
16080
16074
|
// src/models/workflow.ts
|
|
16081
16075
|
var import_lodash3 = __toESM(require("lodash"));
|
|
@@ -17923,6 +17917,10 @@ var Workflow = class _Workflow {
|
|
|
17923
17917
|
};
|
|
17924
17918
|
var workflow_default = Workflow;
|
|
17925
17919
|
|
|
17920
|
+
// src/models/execution.ts
|
|
17921
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
17922
|
+
var import_types20 = require("@avaprotocol/types");
|
|
17923
|
+
|
|
17926
17924
|
// src/models/step.ts
|
|
17927
17925
|
var avs_pb20 = __toESM(require_avs_pb());
|
|
17928
17926
|
var Step = class _Step {
|
|
@@ -18119,13 +18117,29 @@ var Step = class _Step {
|
|
|
18119
18117
|
var step_default = Step;
|
|
18120
18118
|
|
|
18121
18119
|
// src/models/execution.ts
|
|
18120
|
+
function convertProtobufExecutionStatusToTypes(protobufStatus) {
|
|
18121
|
+
switch (protobufStatus) {
|
|
18122
|
+
case avs_pb21.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
18123
|
+
return import_types20.ExecutionStatus.Pending;
|
|
18124
|
+
case avs_pb21.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
18125
|
+
return import_types20.ExecutionStatus.Success;
|
|
18126
|
+
case avs_pb21.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
18127
|
+
return import_types20.ExecutionStatus.Failed;
|
|
18128
|
+
case avs_pb21.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
|
|
18129
|
+
return import_types20.ExecutionStatus.PartialSuccess;
|
|
18130
|
+
case avs_pb21.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
18131
|
+
default:
|
|
18132
|
+
return import_types20.ExecutionStatus.Unspecified;
|
|
18133
|
+
}
|
|
18134
|
+
}
|
|
18122
18135
|
var Execution2 = class _Execution {
|
|
18123
18136
|
constructor(props) {
|
|
18124
18137
|
this.id = props.id;
|
|
18125
18138
|
this.startAt = props.startAt;
|
|
18126
18139
|
this.endAt = props.endAt;
|
|
18127
|
-
this.
|
|
18140
|
+
this.status = props.status;
|
|
18128
18141
|
this.error = props.error;
|
|
18142
|
+
this.index = props.index;
|
|
18129
18143
|
this.steps = props.steps.map((s) => new step_default(s));
|
|
18130
18144
|
}
|
|
18131
18145
|
/**
|
|
@@ -18137,8 +18151,9 @@ var Execution2 = class _Execution {
|
|
|
18137
18151
|
id: this.id,
|
|
18138
18152
|
startAt: this.startAt,
|
|
18139
18153
|
endAt: this.endAt,
|
|
18140
|
-
|
|
18154
|
+
status: this.status,
|
|
18141
18155
|
error: this.error,
|
|
18156
|
+
index: this.index,
|
|
18142
18157
|
steps: this.steps.map((step) => step.toJson())
|
|
18143
18158
|
};
|
|
18144
18159
|
}
|
|
@@ -18147,8 +18162,9 @@ var Execution2 = class _Execution {
|
|
|
18147
18162
|
id: execution.getId(),
|
|
18148
18163
|
startAt: execution.getStartAt(),
|
|
18149
18164
|
endAt: execution.getEndAt(),
|
|
18150
|
-
|
|
18165
|
+
status: convertProtobufExecutionStatusToTypes(execution.getStatus()),
|
|
18151
18166
|
error: execution.getError(),
|
|
18167
|
+
index: execution.getIndex(),
|
|
18152
18168
|
steps: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
18153
18169
|
});
|
|
18154
18170
|
}
|
|
@@ -18157,7 +18173,7 @@ var Execution2 = class _Execution {
|
|
|
18157
18173
|
var execution_default = Execution2;
|
|
18158
18174
|
|
|
18159
18175
|
// src/models/secret.ts
|
|
18160
|
-
var
|
|
18176
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
18161
18177
|
var Secret = class {
|
|
18162
18178
|
constructor(props) {
|
|
18163
18179
|
this.name = props.name;
|
|
@@ -18170,7 +18186,7 @@ var Secret = class {
|
|
|
18170
18186
|
this.description = props.description;
|
|
18171
18187
|
}
|
|
18172
18188
|
toRequest() {
|
|
18173
|
-
const request = new
|
|
18189
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
18174
18190
|
request.setName(this.name);
|
|
18175
18191
|
if (this.secret) {
|
|
18176
18192
|
request.setSecret(this.secret);
|
|
@@ -18187,21 +18203,23 @@ var Secret = class {
|
|
|
18187
18203
|
var secret_default = Secret;
|
|
18188
18204
|
|
|
18189
18205
|
// src/index.ts
|
|
18190
|
-
var
|
|
18206
|
+
var import_types21 = require("@avaprotocol/types");
|
|
18191
18207
|
var import_avs_pb = __toESM(require_avs_pb());
|
|
18192
18208
|
var google_protobuf_struct_pb4 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
18193
|
-
var
|
|
18209
|
+
var import_types22 = require("@avaprotocol/types");
|
|
18194
18210
|
function convertProtobufExecutionStatus(protobufStatus) {
|
|
18195
18211
|
switch (protobufStatus) {
|
|
18196
18212
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
18197
|
-
return
|
|
18198
|
-
case import_avs_pb.ExecutionStatus.
|
|
18199
|
-
return
|
|
18213
|
+
return import_types21.ExecutionStatus.Pending;
|
|
18214
|
+
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
18215
|
+
return import_types21.ExecutionStatus.Success;
|
|
18200
18216
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
18201
|
-
return
|
|
18217
|
+
return import_types21.ExecutionStatus.Failed;
|
|
18218
|
+
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
|
|
18219
|
+
return import_types21.ExecutionStatus.PartialSuccess;
|
|
18202
18220
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
18203
18221
|
default:
|
|
18204
|
-
return
|
|
18222
|
+
return import_types21.ExecutionStatus.Unspecified;
|
|
18205
18223
|
}
|
|
18206
18224
|
}
|
|
18207
18225
|
var BaseClient = class {
|
|
@@ -18244,7 +18262,7 @@ var BaseClient = class {
|
|
|
18244
18262
|
sendFastRequest(method, request, options) {
|
|
18245
18263
|
return this.sendGrpcRequest(method, request, {
|
|
18246
18264
|
...options,
|
|
18247
|
-
timeout:
|
|
18265
|
+
timeout: import_types21.TimeoutPresets.FAST
|
|
18248
18266
|
});
|
|
18249
18267
|
}
|
|
18250
18268
|
/**
|
|
@@ -18257,7 +18275,7 @@ var BaseClient = class {
|
|
|
18257
18275
|
sendSlowRequest(method, request, options) {
|
|
18258
18276
|
return this.sendGrpcRequest(method, request, {
|
|
18259
18277
|
...options,
|
|
18260
|
-
timeout:
|
|
18278
|
+
timeout: import_types21.TimeoutPresets.SLOW
|
|
18261
18279
|
});
|
|
18262
18280
|
}
|
|
18263
18281
|
/**
|
|
@@ -18270,7 +18288,7 @@ var BaseClient = class {
|
|
|
18270
18288
|
sendNoRetryRequest(method, request, options) {
|
|
18271
18289
|
return this.sendGrpcRequest(method, request, {
|
|
18272
18290
|
...options,
|
|
18273
|
-
timeout:
|
|
18291
|
+
timeout: import_types21.TimeoutPresets.NO_RETRY
|
|
18274
18292
|
});
|
|
18275
18293
|
}
|
|
18276
18294
|
/**
|
|
@@ -18295,7 +18313,7 @@ var BaseClient = class {
|
|
|
18295
18313
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
18296
18314
|
*/
|
|
18297
18315
|
async getSignatureFormat(wallet) {
|
|
18298
|
-
const request = new
|
|
18316
|
+
const request = new avs_pb23.GetSignatureFormatReq();
|
|
18299
18317
|
request.setWallet(wallet);
|
|
18300
18318
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
18301
18319
|
return { message: result.getMessage() };
|
|
@@ -18310,7 +18328,7 @@ var BaseClient = class {
|
|
|
18310
18328
|
message,
|
|
18311
18329
|
apiKey
|
|
18312
18330
|
}) {
|
|
18313
|
-
const request = new
|
|
18331
|
+
const request = new avs_pb23.GetKeyReq();
|
|
18314
18332
|
request.setMessage(message);
|
|
18315
18333
|
request.setSignature(apiKey);
|
|
18316
18334
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -18326,7 +18344,7 @@ var BaseClient = class {
|
|
|
18326
18344
|
message,
|
|
18327
18345
|
signature
|
|
18328
18346
|
}) {
|
|
18329
|
-
const request = new
|
|
18347
|
+
const request = new avs_pb23.GetKeyReq();
|
|
18330
18348
|
request.setMessage(message);
|
|
18331
18349
|
request.setSignature(signature);
|
|
18332
18350
|
const result = await this.sendGrpcRequest(
|
|
@@ -18402,7 +18420,7 @@ var BaseClient = class {
|
|
|
18402
18420
|
const metadata = new import_grpc_js.Metadata();
|
|
18403
18421
|
const authKey = options?.authKey || this.authKey;
|
|
18404
18422
|
if (authKey) {
|
|
18405
|
-
metadata.set(
|
|
18423
|
+
metadata.set(import_types21.AUTH_KEY_HEADER, authKey);
|
|
18406
18424
|
}
|
|
18407
18425
|
const call = this.rpcClient[method](
|
|
18408
18426
|
request,
|
|
@@ -18462,7 +18480,7 @@ var Client = class extends BaseClient {
|
|
|
18462
18480
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
18463
18481
|
*/
|
|
18464
18482
|
async getWallets(options) {
|
|
18465
|
-
const request = new
|
|
18483
|
+
const request = new avs_pb23.ListWalletReq();
|
|
18466
18484
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
18467
18485
|
return result.getItemsList().map((item) => item.toObject());
|
|
18468
18486
|
}
|
|
@@ -18474,7 +18492,7 @@ var Client = class extends BaseClient {
|
|
|
18474
18492
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
18475
18493
|
*/
|
|
18476
18494
|
async getWallet({ salt, factoryAddress }, options) {
|
|
18477
|
-
const request = new
|
|
18495
|
+
const request = new avs_pb23.GetWalletReq();
|
|
18478
18496
|
request.setSalt(salt);
|
|
18479
18497
|
if (factoryAddress) {
|
|
18480
18498
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -18503,7 +18521,7 @@ var Client = class extends BaseClient {
|
|
|
18503
18521
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
18504
18522
|
*/
|
|
18505
18523
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
18506
|
-
const request = new
|
|
18524
|
+
const request = new avs_pb23.SetWalletReq();
|
|
18507
18525
|
request.setSalt(salt);
|
|
18508
18526
|
if (factoryAddress) {
|
|
18509
18527
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -18540,7 +18558,7 @@ var Client = class extends BaseClient {
|
|
|
18540
18558
|
token,
|
|
18541
18559
|
smartWalletAddress
|
|
18542
18560
|
}, options) {
|
|
18543
|
-
const request = new
|
|
18561
|
+
const request = new avs_pb23.WithdrawFundsReq();
|
|
18544
18562
|
request.setRecipientAddress(recipientAddress);
|
|
18545
18563
|
request.setAmount(amount);
|
|
18546
18564
|
request.setToken(token);
|
|
@@ -18586,7 +18604,7 @@ var Client = class extends BaseClient {
|
|
|
18586
18604
|
* @returns {Promise<{ items: WorkflowProps[]; pageInfo: PageInfo }>} - The list of WorkflowProps objects with nested pagination metadata
|
|
18587
18605
|
*/
|
|
18588
18606
|
async getWorkflows(addresses, options) {
|
|
18589
|
-
const request = new
|
|
18607
|
+
const request = new avs_pb23.ListTasksReq();
|
|
18590
18608
|
for (const a of addresses) {
|
|
18591
18609
|
request.addSmartWalletAddress(a);
|
|
18592
18610
|
}
|
|
@@ -18596,7 +18614,7 @@ var Client = class extends BaseClient {
|
|
|
18596
18614
|
if (options?.after) {
|
|
18597
18615
|
request.setAfter(options.after);
|
|
18598
18616
|
}
|
|
18599
|
-
request.setLimit(options?.limit ||
|
|
18617
|
+
request.setLimit(options?.limit || import_types21.DEFAULT_LIMIT);
|
|
18600
18618
|
if (options?.includeNodes) {
|
|
18601
18619
|
request.setIncludeNodes(options.includeNodes);
|
|
18602
18620
|
}
|
|
@@ -18625,7 +18643,7 @@ var Client = class extends BaseClient {
|
|
|
18625
18643
|
* @returns {Promise<number>} - The count of workflows
|
|
18626
18644
|
*/
|
|
18627
18645
|
async getWorkflowCount(addresses, options) {
|
|
18628
|
-
const request = new
|
|
18646
|
+
const request = new avs_pb23.GetWorkflowCountReq();
|
|
18629
18647
|
request.setAddressesList(addresses);
|
|
18630
18648
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
18631
18649
|
return result.getTotal();
|
|
@@ -18641,7 +18659,7 @@ var Client = class extends BaseClient {
|
|
|
18641
18659
|
* @returns {Promise<{ items: ExecutionProps[]; pageInfo: PageInfo }>} - The list of ExecutionProps objects with nested pagination metadata
|
|
18642
18660
|
*/
|
|
18643
18661
|
async getExecutions(workflows, options) {
|
|
18644
|
-
const request = new
|
|
18662
|
+
const request = new avs_pb23.ListExecutionsReq();
|
|
18645
18663
|
for (const w of workflows) {
|
|
18646
18664
|
request.addTaskIds(w);
|
|
18647
18665
|
}
|
|
@@ -18651,7 +18669,7 @@ var Client = class extends BaseClient {
|
|
|
18651
18669
|
if (options?.after) {
|
|
18652
18670
|
request.setAfter(options.after);
|
|
18653
18671
|
}
|
|
18654
|
-
request.setLimit(options?.limit ||
|
|
18672
|
+
request.setLimit(options?.limit || import_types21.DEFAULT_LIMIT);
|
|
18655
18673
|
const result = await this.sendGrpcRequest("listExecutions", request, options);
|
|
18656
18674
|
const pageInfo = result.getPageInfo();
|
|
18657
18675
|
if (!pageInfo) {
|
|
@@ -18675,7 +18693,7 @@ var Client = class extends BaseClient {
|
|
|
18675
18693
|
* @returns {Promise<ExecutionProps>} - The ExecutionProps object
|
|
18676
18694
|
*/
|
|
18677
18695
|
async getExecution(workflowId, executionId, options) {
|
|
18678
|
-
const request = new
|
|
18696
|
+
const request = new avs_pb23.ExecutionReq();
|
|
18679
18697
|
request.setTaskId(workflowId);
|
|
18680
18698
|
request.setExecutionId(executionId);
|
|
18681
18699
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -18688,7 +18706,7 @@ var Client = class extends BaseClient {
|
|
|
18688
18706
|
* @returns {Promise<number>} - The count of executions
|
|
18689
18707
|
*/
|
|
18690
18708
|
async getExecutionCount(workflows, options) {
|
|
18691
|
-
const request = new
|
|
18709
|
+
const request = new avs_pb23.GetExecutionCountReq();
|
|
18692
18710
|
request.setWorkflowIdsList(workflows);
|
|
18693
18711
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
18694
18712
|
return result.getTotal();
|
|
@@ -18702,7 +18720,7 @@ var Client = class extends BaseClient {
|
|
|
18702
18720
|
* @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
|
|
18703
18721
|
*/
|
|
18704
18722
|
async getExecutionStats(options) {
|
|
18705
|
-
const request = new
|
|
18723
|
+
const request = new avs_pb23.GetExecutionStatsReq();
|
|
18706
18724
|
if (options?.workflowIds && options.workflowIds.length > 0) {
|
|
18707
18725
|
request.setWorkflowIdsList(options.workflowIds);
|
|
18708
18726
|
}
|
|
@@ -18725,7 +18743,7 @@ var Client = class extends BaseClient {
|
|
|
18725
18743
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
18726
18744
|
*/
|
|
18727
18745
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
18728
|
-
const request = new
|
|
18746
|
+
const request = new avs_pb23.ExecutionReq();
|
|
18729
18747
|
request.setTaskId(workflowId);
|
|
18730
18748
|
request.setExecutionId(executionId);
|
|
18731
18749
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -18738,7 +18756,7 @@ var Client = class extends BaseClient {
|
|
|
18738
18756
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
18739
18757
|
*/
|
|
18740
18758
|
async getWorkflow(id, options) {
|
|
18741
|
-
const request = new
|
|
18759
|
+
const request = new avs_pb23.IdReq();
|
|
18742
18760
|
request.setId(id);
|
|
18743
18761
|
const result = await this.sendGrpcRequest(
|
|
18744
18762
|
"getTask",
|
|
@@ -18761,14 +18779,14 @@ var Client = class extends BaseClient {
|
|
|
18761
18779
|
triggerData,
|
|
18762
18780
|
isBlocking = false
|
|
18763
18781
|
}, options) {
|
|
18764
|
-
const request = new
|
|
18782
|
+
const request = new avs_pb23.TriggerTaskReq();
|
|
18765
18783
|
request.setTaskId(id);
|
|
18766
|
-
request.setTriggerType(
|
|
18784
|
+
request.setTriggerType(import_types21.TriggerTypeConverter.toProtobuf(triggerData.type));
|
|
18767
18785
|
request.setIsBlocking(isBlocking);
|
|
18768
18786
|
switch (triggerData.type) {
|
|
18769
|
-
case
|
|
18787
|
+
case import_types21.TriggerType.FixedTime: {
|
|
18770
18788
|
const fixedTimeData = triggerData;
|
|
18771
|
-
const fixedTimeOutput = new
|
|
18789
|
+
const fixedTimeOutput = new avs_pb23.FixedTimeTrigger.Output();
|
|
18772
18790
|
const triggerOutputData = {
|
|
18773
18791
|
timestamp: fixedTimeData.timestamp,
|
|
18774
18792
|
timestampIso: fixedTimeData.timestampIso
|
|
@@ -18781,9 +18799,9 @@ var Client = class extends BaseClient {
|
|
|
18781
18799
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
18782
18800
|
break;
|
|
18783
18801
|
}
|
|
18784
|
-
case
|
|
18802
|
+
case import_types21.TriggerType.Cron: {
|
|
18785
18803
|
const cronData = triggerData;
|
|
18786
|
-
const cronOutput = new
|
|
18804
|
+
const cronOutput = new avs_pb23.CronTrigger.Output();
|
|
18787
18805
|
const triggerOutputData = {
|
|
18788
18806
|
timestamp: cronData.timestamp,
|
|
18789
18807
|
timestampIso: cronData.timestampIso
|
|
@@ -18796,9 +18814,9 @@ var Client = class extends BaseClient {
|
|
|
18796
18814
|
request.setCronTrigger(cronOutput);
|
|
18797
18815
|
break;
|
|
18798
18816
|
}
|
|
18799
|
-
case
|
|
18817
|
+
case import_types21.TriggerType.Block: {
|
|
18800
18818
|
const blockData = triggerData;
|
|
18801
|
-
const blockOutput = new
|
|
18819
|
+
const blockOutput = new avs_pb23.BlockTrigger.Output();
|
|
18802
18820
|
const triggerOutputData = {
|
|
18803
18821
|
blockNumber: blockData.blockNumber,
|
|
18804
18822
|
blockHash: blockData.blockHash || "",
|
|
@@ -18816,9 +18834,9 @@ var Client = class extends BaseClient {
|
|
|
18816
18834
|
request.setBlockTrigger(blockOutput);
|
|
18817
18835
|
break;
|
|
18818
18836
|
}
|
|
18819
|
-
case
|
|
18837
|
+
case import_types21.TriggerType.Event: {
|
|
18820
18838
|
const eventData = triggerData;
|
|
18821
|
-
const eventOutput = new
|
|
18839
|
+
const eventOutput = new avs_pb23.EventTrigger.Output();
|
|
18822
18840
|
if (eventData.data) {
|
|
18823
18841
|
const protobufValue = convertJSValueToProtobuf(eventData.data);
|
|
18824
18842
|
eventOutput.setData(protobufValue);
|
|
@@ -18826,9 +18844,9 @@ var Client = class extends BaseClient {
|
|
|
18826
18844
|
request.setEventTrigger(eventOutput);
|
|
18827
18845
|
break;
|
|
18828
18846
|
}
|
|
18829
|
-
case
|
|
18847
|
+
case import_types21.TriggerType.Manual: {
|
|
18830
18848
|
const manualData = triggerData;
|
|
18831
|
-
const manualOutput = new
|
|
18849
|
+
const manualOutput = new avs_pb23.ManualTrigger.Output();
|
|
18832
18850
|
if (manualData.data) {
|
|
18833
18851
|
const protobufValue = convertJSValueToProtobuf(manualData.data);
|
|
18834
18852
|
manualOutput.setData(protobufValue);
|
|
@@ -18836,7 +18854,7 @@ var Client = class extends BaseClient {
|
|
|
18836
18854
|
request.setManualTrigger(manualOutput);
|
|
18837
18855
|
break;
|
|
18838
18856
|
}
|
|
18839
|
-
case
|
|
18857
|
+
case import_types21.TriggerType.Unspecified:
|
|
18840
18858
|
break;
|
|
18841
18859
|
default:
|
|
18842
18860
|
throw new Error(
|
|
@@ -18856,9 +18874,6 @@ var Client = class extends BaseClient {
|
|
|
18856
18874
|
if (responseObject.endAt !== void 0) {
|
|
18857
18875
|
response.endAt = responseObject.endAt;
|
|
18858
18876
|
}
|
|
18859
|
-
if (responseObject.success !== void 0) {
|
|
18860
|
-
response.success = responseObject.success;
|
|
18861
|
-
}
|
|
18862
18877
|
if (responseObject.error) {
|
|
18863
18878
|
response.error = responseObject.error;
|
|
18864
18879
|
}
|
|
@@ -18903,7 +18918,7 @@ var Client = class extends BaseClient {
|
|
|
18903
18918
|
* @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
|
|
18904
18919
|
*/
|
|
18905
18920
|
async cancelWorkflow(id, options) {
|
|
18906
|
-
const request = new
|
|
18921
|
+
const request = new avs_pb23.IdReq();
|
|
18907
18922
|
request.setId(id);
|
|
18908
18923
|
const result = await this.sendGrpcRequest("cancelTask", request, options);
|
|
18909
18924
|
return {
|
|
@@ -18922,7 +18937,7 @@ var Client = class extends BaseClient {
|
|
|
18922
18937
|
* @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
|
|
18923
18938
|
*/
|
|
18924
18939
|
async deleteWorkflow(id, options) {
|
|
18925
|
-
const request = new
|
|
18940
|
+
const request = new avs_pb23.IdReq();
|
|
18926
18941
|
request.setId(id);
|
|
18927
18942
|
const result = await this.sendGrpcRequest("deleteTask", request, options);
|
|
18928
18943
|
return {
|
|
@@ -18945,7 +18960,7 @@ var Client = class extends BaseClient {
|
|
|
18945
18960
|
* @returns {Promise<CreateSecretResponse>} - Structured response with creation details
|
|
18946
18961
|
*/
|
|
18947
18962
|
async createSecret(name, value, options) {
|
|
18948
|
-
const request = new
|
|
18963
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
18949
18964
|
request.setName(name);
|
|
18950
18965
|
request.setSecret(value);
|
|
18951
18966
|
if (options?.workflowId) {
|
|
@@ -18975,7 +18990,7 @@ var Client = class extends BaseClient {
|
|
|
18975
18990
|
* @returns {Promise<UpdateSecretResponse>} - Structured response with update details
|
|
18976
18991
|
*/
|
|
18977
18992
|
async updateSecret(name, value, options) {
|
|
18978
|
-
const request = new
|
|
18993
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
18979
18994
|
request.setName(name);
|
|
18980
18995
|
request.setSecret(value);
|
|
18981
18996
|
if (options?.workflowId) {
|
|
@@ -19009,7 +19024,7 @@ var Client = class extends BaseClient {
|
|
|
19009
19024
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
19010
19025
|
*/
|
|
19011
19026
|
async getSecrets(options) {
|
|
19012
|
-
const request = new
|
|
19027
|
+
const request = new avs_pb23.ListSecretsReq();
|
|
19013
19028
|
if (options?.workflowId) {
|
|
19014
19029
|
request.setWorkflowId(options.workflowId);
|
|
19015
19030
|
}
|
|
@@ -19019,7 +19034,7 @@ var Client = class extends BaseClient {
|
|
|
19019
19034
|
if (options?.after) {
|
|
19020
19035
|
request.setAfter(options.after);
|
|
19021
19036
|
}
|
|
19022
|
-
request.setLimit(options?.limit ||
|
|
19037
|
+
request.setLimit(options?.limit || import_types21.DEFAULT_LIMIT);
|
|
19023
19038
|
if (options?.includeTimestamps) {
|
|
19024
19039
|
request.setIncludeTimestamps(options.includeTimestamps);
|
|
19025
19040
|
}
|
|
@@ -19064,7 +19079,7 @@ var Client = class extends BaseClient {
|
|
|
19064
19079
|
* @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
|
|
19065
19080
|
*/
|
|
19066
19081
|
async deleteSecret(name, options) {
|
|
19067
|
-
const request = new
|
|
19082
|
+
const request = new avs_pb23.DeleteSecretReq();
|
|
19068
19083
|
request.setName(name);
|
|
19069
19084
|
if (options?.workflowId) {
|
|
19070
19085
|
request.setWorkflowId(options.workflowId);
|
|
@@ -19093,11 +19108,11 @@ var Client = class extends BaseClient {
|
|
|
19093
19108
|
*/
|
|
19094
19109
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
19095
19110
|
const triggerTypes = [
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19111
|
+
import_types21.TriggerType.Block,
|
|
19112
|
+
import_types21.TriggerType.FixedTime,
|
|
19113
|
+
import_types21.TriggerType.Cron,
|
|
19114
|
+
import_types21.TriggerType.Event,
|
|
19115
|
+
import_types21.TriggerType.Manual
|
|
19101
19116
|
];
|
|
19102
19117
|
if (triggerTypes.includes(nodeType)) {
|
|
19103
19118
|
return {
|
|
@@ -19106,8 +19121,8 @@ var Client = class extends BaseClient {
|
|
|
19106
19121
|
data: null
|
|
19107
19122
|
};
|
|
19108
19123
|
}
|
|
19109
|
-
const request = new
|
|
19110
|
-
const protobufNodeType =
|
|
19124
|
+
const request = new avs_pb23.RunNodeWithInputsReq();
|
|
19125
|
+
const protobufNodeType = import_types21.NodeTypeGoConverter.fromGoString(nodeType);
|
|
19111
19126
|
request.setNodeType(protobufNodeType);
|
|
19112
19127
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
19113
19128
|
for (const [key, value] of Object.entries(nodeConfig)) {
|
|
@@ -19137,8 +19152,8 @@ var Client = class extends BaseClient {
|
|
|
19137
19152
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
19138
19153
|
*/
|
|
19139
19154
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
19140
|
-
const request = new
|
|
19141
|
-
const protobufTriggerType =
|
|
19155
|
+
const request = new avs_pb23.RunTriggerReq();
|
|
19156
|
+
const protobufTriggerType = import_types21.TriggerTypeGoConverter.fromGoString(triggerType);
|
|
19142
19157
|
request.setTriggerType(protobufTriggerType);
|
|
19143
19158
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
19144
19159
|
for (const [key, value] of Object.entries(triggerConfig)) {
|
|
@@ -19174,7 +19189,7 @@ var Client = class extends BaseClient {
|
|
|
19174
19189
|
* @returns {Promise<ExecutionProps>} - The response from simulating the task
|
|
19175
19190
|
*/
|
|
19176
19191
|
async simulateWorkflow({ trigger, nodes, edges, inputVariables = {} }, options) {
|
|
19177
|
-
const request = new
|
|
19192
|
+
const request = new avs_pb23.SimulateTaskReq();
|
|
19178
19193
|
const triggerSdk = factory_default.create(trigger);
|
|
19179
19194
|
request.setTrigger(triggerSdk.toRequest());
|
|
19180
19195
|
const nodeMessages = nodes.map((node) => {
|
|
@@ -19203,7 +19218,7 @@ var Client = class extends BaseClient {
|
|
|
19203
19218
|
* @returns {Promise<GetTokenMetadataResponse>} - The response containing token metadata
|
|
19204
19219
|
*/
|
|
19205
19220
|
async getTokenMetadata({ address }, options) {
|
|
19206
|
-
const request = new
|
|
19221
|
+
const request = new avs_pb23.GetTokenMetadataReq();
|
|
19207
19222
|
request.setAddress(address);
|
|
19208
19223
|
const result = await this.sendGrpcRequest("getTokenMetadata", request, options);
|
|
19209
19224
|
const token = result.getToken();
|