@avaprotocol/sdk-js 2.4.1 → 2.4.4

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.mjs CHANGED
@@ -64,6 +64,7 @@ var require_avs_pb = __commonJS({
64
64
  goog.exportSymbol("proto.aggregator.BranchNode.Condition", null, global);
65
65
  goog.exportSymbol("proto.aggregator.BranchNode.Config", null, global);
66
66
  goog.exportSymbol("proto.aggregator.BranchNode.Output", null, global);
67
+ goog.exportSymbol("proto.aggregator.CancelTaskResp", null, global);
67
68
  goog.exportSymbol("proto.aggregator.ContractReadNode", null, global);
68
69
  goog.exportSymbol("proto.aggregator.ContractReadNode.Config", null, global);
69
70
  goog.exportSymbol("proto.aggregator.ContractReadNode.MethodCall", null, global);
@@ -80,6 +81,7 @@ var require_avs_pb = __commonJS({
80
81
  goog.exportSymbol("proto.aggregator.ContractWriteNode.ReturnData", null, global);
81
82
  goog.exportSymbol("proto.aggregator.ContractWriteNode.TransactionData", null, global);
82
83
  goog.exportSymbol("proto.aggregator.CreateOrUpdateSecretReq", null, global);
84
+ goog.exportSymbol("proto.aggregator.CreateSecretResp", null, global);
83
85
  goog.exportSymbol("proto.aggregator.CreateTaskReq", null, global);
84
86
  goog.exportSymbol("proto.aggregator.CreateTaskResp", null, global);
85
87
  goog.exportSymbol("proto.aggregator.CronTrigger", null, global);
@@ -89,6 +91,8 @@ var require_avs_pb = __commonJS({
89
91
  goog.exportSymbol("proto.aggregator.CustomCodeNode.Config", null, global);
90
92
  goog.exportSymbol("proto.aggregator.CustomCodeNode.Output", null, global);
91
93
  goog.exportSymbol("proto.aggregator.DeleteSecretReq", null, global);
94
+ goog.exportSymbol("proto.aggregator.DeleteSecretResp", null, global);
95
+ goog.exportSymbol("proto.aggregator.DeleteTaskResp", null, global);
92
96
  goog.exportSymbol("proto.aggregator.ETHTransferNode", null, global);
93
97
  goog.exportSymbol("proto.aggregator.ETHTransferNode.Config", null, global);
94
98
  goog.exportSymbol("proto.aggregator.ETHTransferNode.Output", null, global);
@@ -103,6 +107,7 @@ var require_avs_pb = __commonJS({
103
107
  goog.exportSymbol("proto.aggregator.Execution", null, global);
104
108
  goog.exportSymbol("proto.aggregator.Execution.Step", null, global);
105
109
  goog.exportSymbol("proto.aggregator.Execution.Step.OutputDataCase", null, global);
110
+ goog.exportSymbol("proto.aggregator.ExecutionMode", null, global);
106
111
  goog.exportSymbol("proto.aggregator.ExecutionReq", null, global);
107
112
  goog.exportSymbol("proto.aggregator.ExecutionStatus", null, global);
108
113
  goog.exportSymbol("proto.aggregator.ExecutionStatusResp", null, global);
@@ -175,6 +180,7 @@ var require_avs_pb = __commonJS({
175
180
  goog.exportSymbol("proto.aggregator.TriggerTaskReq.TriggerOutputCase", null, global);
176
181
  goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
177
182
  goog.exportSymbol("proto.aggregator.TriggerType", null, global);
183
+ goog.exportSymbol("proto.aggregator.UpdateSecretResp", null, global);
178
184
  proto.aggregator.TokenMetadata = function(opt_data) {
179
185
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
180
186
  };
@@ -812,6 +818,13 @@ var require_avs_pb = __commonJS({
812
818
  if (goog.DEBUG && !COMPILED) {
813
819
  proto.aggregator.DeleteSecretReq.displayName = "proto.aggregator.DeleteSecretReq";
814
820
  }
821
+ proto.aggregator.DeleteSecretResp = function(opt_data) {
822
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
823
+ };
824
+ goog.inherits(proto.aggregator.DeleteSecretResp, jspb.Message);
825
+ if (goog.DEBUG && !COMPILED) {
826
+ proto.aggregator.DeleteSecretResp.displayName = "proto.aggregator.DeleteSecretResp";
827
+ }
815
828
  proto.aggregator.GetSignatureFormatReq = function(opt_data) {
816
829
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
817
830
  };
@@ -826,6 +839,34 @@ var require_avs_pb = __commonJS({
826
839
  if (goog.DEBUG && !COMPILED) {
827
840
  proto.aggregator.GetSignatureFormatResp.displayName = "proto.aggregator.GetSignatureFormatResp";
828
841
  }
842
+ proto.aggregator.CreateSecretResp = function(opt_data) {
843
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
844
+ };
845
+ goog.inherits(proto.aggregator.CreateSecretResp, jspb.Message);
846
+ if (goog.DEBUG && !COMPILED) {
847
+ proto.aggregator.CreateSecretResp.displayName = "proto.aggregator.CreateSecretResp";
848
+ }
849
+ proto.aggregator.UpdateSecretResp = function(opt_data) {
850
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
851
+ };
852
+ goog.inherits(proto.aggregator.UpdateSecretResp, jspb.Message);
853
+ if (goog.DEBUG && !COMPILED) {
854
+ proto.aggregator.UpdateSecretResp.displayName = "proto.aggregator.UpdateSecretResp";
855
+ }
856
+ proto.aggregator.DeleteTaskResp = function(opt_data) {
857
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
858
+ };
859
+ goog.inherits(proto.aggregator.DeleteTaskResp, jspb.Message);
860
+ if (goog.DEBUG && !COMPILED) {
861
+ proto.aggregator.DeleteTaskResp.displayName = "proto.aggregator.DeleteTaskResp";
862
+ }
863
+ proto.aggregator.CancelTaskResp = function(opt_data) {
864
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
865
+ };
866
+ goog.inherits(proto.aggregator.CancelTaskResp, jspb.Message);
867
+ if (goog.DEBUG && !COMPILED) {
868
+ proto.aggregator.CancelTaskResp.displayName = "proto.aggregator.CancelTaskResp";
869
+ }
829
870
  proto.aggregator.GetWorkflowCountReq = function(opt_data) {
830
871
  jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.GetWorkflowCountReq.repeatedFields_, null);
831
872
  };
@@ -7372,7 +7413,8 @@ var require_avs_pb = __commonJS({
7372
7413
  var f, obj = {
7373
7414
  sourceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
7374
7415
  iterVal: jspb.Message.getFieldWithDefault(msg, 2, ""),
7375
- iterKey: jspb.Message.getFieldWithDefault(msg, 3, "")
7416
+ iterKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
7417
+ executionMode: jspb.Message.getFieldWithDefault(msg, 4, 0)
7376
7418
  };
7377
7419
  if (includeInstance) {
7378
7420
  obj.$jspbMessageInstance = msg;
@@ -7413,6 +7455,13 @@ var require_avs_pb = __commonJS({
7413
7455
  );
7414
7456
  msg.setIterKey(value);
7415
7457
  break;
7458
+ case 4:
7459
+ var value = (
7460
+ /** @type {!proto.aggregator.ExecutionMode} */
7461
+ reader.readEnum()
7462
+ );
7463
+ msg.setExecutionMode(value);
7464
+ break;
7416
7465
  default:
7417
7466
  reader.skipField();
7418
7467
  break;
@@ -7448,6 +7497,13 @@ var require_avs_pb = __commonJS({
7448
7497
  f
7449
7498
  );
7450
7499
  }
7500
+ f = message.getExecutionMode();
7501
+ if (f !== 0) {
7502
+ writer.writeEnum(
7503
+ 4,
7504
+ f
7505
+ );
7506
+ }
7451
7507
  };
7452
7508
  proto.aggregator.LoopNode.Config.prototype.getSourceId = function() {
7453
7509
  return (
@@ -7476,6 +7532,15 @@ var require_avs_pb = __commonJS({
7476
7532
  proto.aggregator.LoopNode.Config.prototype.setIterKey = function(value) {
7477
7533
  return jspb.Message.setProto3StringField(this, 3, value);
7478
7534
  };
7535
+ proto.aggregator.LoopNode.Config.prototype.getExecutionMode = function() {
7536
+ return (
7537
+ /** @type {!proto.aggregator.ExecutionMode} */
7538
+ jspb.Message.getFieldWithDefault(this, 4, 0)
7539
+ );
7540
+ };
7541
+ proto.aggregator.LoopNode.Config.prototype.setExecutionMode = function(value) {
7542
+ return jspb.Message.setProto3EnumField(this, 4, value);
7543
+ };
7479
7544
  if (jspb.Message.GENERATE_TO_OBJECT) {
7480
7545
  proto.aggregator.LoopNode.Output.prototype.toObject = function(opt_includeInstance) {
7481
7546
  return proto.aggregator.LoopNode.Output.toObject(opt_includeInstance, this);
@@ -12914,6 +12979,190 @@ var require_avs_pb = __commonJS({
12914
12979
  proto.aggregator.DeleteSecretReq.prototype.setOrgId = function(value) {
12915
12980
  return jspb.Message.setProto3StringField(this, 3, value);
12916
12981
  };
12982
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12983
+ proto.aggregator.DeleteSecretResp.prototype.toObject = function(opt_includeInstance) {
12984
+ return proto.aggregator.DeleteSecretResp.toObject(opt_includeInstance, this);
12985
+ };
12986
+ proto.aggregator.DeleteSecretResp.toObject = function(includeInstance, msg) {
12987
+ var f, obj = {
12988
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
12989
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
12990
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
12991
+ deletedAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
12992
+ secretName: jspb.Message.getFieldWithDefault(msg, 5, ""),
12993
+ scope: jspb.Message.getFieldWithDefault(msg, 6, "")
12994
+ };
12995
+ if (includeInstance) {
12996
+ obj.$jspbMessageInstance = msg;
12997
+ }
12998
+ return obj;
12999
+ };
13000
+ }
13001
+ proto.aggregator.DeleteSecretResp.deserializeBinary = function(bytes) {
13002
+ var reader = new jspb.BinaryReader(bytes);
13003
+ var msg = new proto.aggregator.DeleteSecretResp();
13004
+ return proto.aggregator.DeleteSecretResp.deserializeBinaryFromReader(msg, reader);
13005
+ };
13006
+ proto.aggregator.DeleteSecretResp.deserializeBinaryFromReader = function(msg, reader) {
13007
+ while (reader.nextField()) {
13008
+ if (reader.isEndGroup()) {
13009
+ break;
13010
+ }
13011
+ var field = reader.getFieldNumber();
13012
+ switch (field) {
13013
+ case 1:
13014
+ var value = (
13015
+ /** @type {boolean} */
13016
+ reader.readBool()
13017
+ );
13018
+ msg.setSuccess(value);
13019
+ break;
13020
+ case 2:
13021
+ var value = (
13022
+ /** @type {string} */
13023
+ reader.readString()
13024
+ );
13025
+ msg.setStatus(value);
13026
+ break;
13027
+ case 3:
13028
+ var value = (
13029
+ /** @type {string} */
13030
+ reader.readString()
13031
+ );
13032
+ msg.setMessage(value);
13033
+ break;
13034
+ case 4:
13035
+ var value = (
13036
+ /** @type {number} */
13037
+ reader.readInt64()
13038
+ );
13039
+ msg.setDeletedAt(value);
13040
+ break;
13041
+ case 5:
13042
+ var value = (
13043
+ /** @type {string} */
13044
+ reader.readString()
13045
+ );
13046
+ msg.setSecretName(value);
13047
+ break;
13048
+ case 6:
13049
+ var value = (
13050
+ /** @type {string} */
13051
+ reader.readString()
13052
+ );
13053
+ msg.setScope(value);
13054
+ break;
13055
+ default:
13056
+ reader.skipField();
13057
+ break;
13058
+ }
13059
+ }
13060
+ return msg;
13061
+ };
13062
+ proto.aggregator.DeleteSecretResp.prototype.serializeBinary = function() {
13063
+ var writer = new jspb.BinaryWriter();
13064
+ proto.aggregator.DeleteSecretResp.serializeBinaryToWriter(this, writer);
13065
+ return writer.getResultBuffer();
13066
+ };
13067
+ proto.aggregator.DeleteSecretResp.serializeBinaryToWriter = function(message, writer) {
13068
+ var f = void 0;
13069
+ f = message.getSuccess();
13070
+ if (f) {
13071
+ writer.writeBool(
13072
+ 1,
13073
+ f
13074
+ );
13075
+ }
13076
+ f = message.getStatus();
13077
+ if (f.length > 0) {
13078
+ writer.writeString(
13079
+ 2,
13080
+ f
13081
+ );
13082
+ }
13083
+ f = message.getMessage();
13084
+ if (f.length > 0) {
13085
+ writer.writeString(
13086
+ 3,
13087
+ f
13088
+ );
13089
+ }
13090
+ f = message.getDeletedAt();
13091
+ if (f !== 0) {
13092
+ writer.writeInt64(
13093
+ 4,
13094
+ f
13095
+ );
13096
+ }
13097
+ f = message.getSecretName();
13098
+ if (f.length > 0) {
13099
+ writer.writeString(
13100
+ 5,
13101
+ f
13102
+ );
13103
+ }
13104
+ f = message.getScope();
13105
+ if (f.length > 0) {
13106
+ writer.writeString(
13107
+ 6,
13108
+ f
13109
+ );
13110
+ }
13111
+ };
13112
+ proto.aggregator.DeleteSecretResp.prototype.getSuccess = function() {
13113
+ return (
13114
+ /** @type {boolean} */
13115
+ jspb.Message.getBooleanFieldWithDefault(this, 1, false)
13116
+ );
13117
+ };
13118
+ proto.aggregator.DeleteSecretResp.prototype.setSuccess = function(value) {
13119
+ return jspb.Message.setProto3BooleanField(this, 1, value);
13120
+ };
13121
+ proto.aggregator.DeleteSecretResp.prototype.getStatus = function() {
13122
+ return (
13123
+ /** @type {string} */
13124
+ jspb.Message.getFieldWithDefault(this, 2, "")
13125
+ );
13126
+ };
13127
+ proto.aggregator.DeleteSecretResp.prototype.setStatus = function(value) {
13128
+ return jspb.Message.setProto3StringField(this, 2, value);
13129
+ };
13130
+ proto.aggregator.DeleteSecretResp.prototype.getMessage = function() {
13131
+ return (
13132
+ /** @type {string} */
13133
+ jspb.Message.getFieldWithDefault(this, 3, "")
13134
+ );
13135
+ };
13136
+ proto.aggregator.DeleteSecretResp.prototype.setMessage = function(value) {
13137
+ return jspb.Message.setProto3StringField(this, 3, value);
13138
+ };
13139
+ proto.aggregator.DeleteSecretResp.prototype.getDeletedAt = function() {
13140
+ return (
13141
+ /** @type {number} */
13142
+ jspb.Message.getFieldWithDefault(this, 4, 0)
13143
+ );
13144
+ };
13145
+ proto.aggregator.DeleteSecretResp.prototype.setDeletedAt = function(value) {
13146
+ return jspb.Message.setProto3IntField(this, 4, value);
13147
+ };
13148
+ proto.aggregator.DeleteSecretResp.prototype.getSecretName = function() {
13149
+ return (
13150
+ /** @type {string} */
13151
+ jspb.Message.getFieldWithDefault(this, 5, "")
13152
+ );
13153
+ };
13154
+ proto.aggregator.DeleteSecretResp.prototype.setSecretName = function(value) {
13155
+ return jspb.Message.setProto3StringField(this, 5, value);
13156
+ };
13157
+ proto.aggregator.DeleteSecretResp.prototype.getScope = function() {
13158
+ return (
13159
+ /** @type {string} */
13160
+ jspb.Message.getFieldWithDefault(this, 6, "")
13161
+ );
13162
+ };
13163
+ proto.aggregator.DeleteSecretResp.prototype.setScope = function(value) {
13164
+ return jspb.Message.setProto3StringField(this, 6, value);
13165
+ };
12917
13166
  if (jspb.Message.GENERATE_TO_OBJECT) {
12918
13167
  proto.aggregator.GetSignatureFormatReq.prototype.toObject = function(opt_includeInstance) {
12919
13168
  return proto.aggregator.GetSignatureFormatReq.toObject(opt_includeInstance, this);
@@ -13042,14 +13291,18 @@ var require_avs_pb = __commonJS({
13042
13291
  proto.aggregator.GetSignatureFormatResp.prototype.setMessage = function(value) {
13043
13292
  return jspb.Message.setProto3StringField(this, 1, value);
13044
13293
  };
13045
- proto.aggregator.GetWorkflowCountReq.repeatedFields_ = [1];
13046
13294
  if (jspb.Message.GENERATE_TO_OBJECT) {
13047
- proto.aggregator.GetWorkflowCountReq.prototype.toObject = function(opt_includeInstance) {
13048
- return proto.aggregator.GetWorkflowCountReq.toObject(opt_includeInstance, this);
13295
+ proto.aggregator.CreateSecretResp.prototype.toObject = function(opt_includeInstance) {
13296
+ return proto.aggregator.CreateSecretResp.toObject(opt_includeInstance, this);
13049
13297
  };
13050
- proto.aggregator.GetWorkflowCountReq.toObject = function(includeInstance, msg) {
13298
+ proto.aggregator.CreateSecretResp.toObject = function(includeInstance, msg) {
13051
13299
  var f, obj = {
13052
- addressesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f
13300
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
13301
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
13302
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
13303
+ createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
13304
+ secretName: jspb.Message.getFieldWithDefault(msg, 5, ""),
13305
+ scope: jspb.Message.getFieldWithDefault(msg, 6, "")
13053
13306
  };
13054
13307
  if (includeInstance) {
13055
13308
  obj.$jspbMessageInstance = msg;
@@ -13057,12 +13310,12 @@ var require_avs_pb = __commonJS({
13057
13310
  return obj;
13058
13311
  };
13059
13312
  }
13060
- proto.aggregator.GetWorkflowCountReq.deserializeBinary = function(bytes) {
13313
+ proto.aggregator.CreateSecretResp.deserializeBinary = function(bytes) {
13061
13314
  var reader = new jspb.BinaryReader(bytes);
13062
- var msg = new proto.aggregator.GetWorkflowCountReq();
13063
- return proto.aggregator.GetWorkflowCountReq.deserializeBinaryFromReader(msg, reader);
13315
+ var msg = new proto.aggregator.CreateSecretResp();
13316
+ return proto.aggregator.CreateSecretResp.deserializeBinaryFromReader(msg, reader);
13064
13317
  };
13065
- proto.aggregator.GetWorkflowCountReq.deserializeBinaryFromReader = function(msg, reader) {
13318
+ proto.aggregator.CreateSecretResp.deserializeBinaryFromReader = function(msg, reader) {
13066
13319
  while (reader.nextField()) {
13067
13320
  if (reader.isEndGroup()) {
13068
13321
  break;
@@ -13070,11 +13323,46 @@ var require_avs_pb = __commonJS({
13070
13323
  var field = reader.getFieldNumber();
13071
13324
  switch (field) {
13072
13325
  case 1:
13326
+ var value = (
13327
+ /** @type {boolean} */
13328
+ reader.readBool()
13329
+ );
13330
+ msg.setSuccess(value);
13331
+ break;
13332
+ case 2:
13073
13333
  var value = (
13074
13334
  /** @type {string} */
13075
13335
  reader.readString()
13076
13336
  );
13077
- msg.addAddresses(value);
13337
+ msg.setStatus(value);
13338
+ break;
13339
+ case 3:
13340
+ var value = (
13341
+ /** @type {string} */
13342
+ reader.readString()
13343
+ );
13344
+ msg.setMessage(value);
13345
+ break;
13346
+ case 4:
13347
+ var value = (
13348
+ /** @type {number} */
13349
+ reader.readInt64()
13350
+ );
13351
+ msg.setCreatedAt(value);
13352
+ break;
13353
+ case 5:
13354
+ var value = (
13355
+ /** @type {string} */
13356
+ reader.readString()
13357
+ );
13358
+ msg.setSecretName(value);
13359
+ break;
13360
+ case 6:
13361
+ var value = (
13362
+ /** @type {string} */
13363
+ reader.readString()
13364
+ );
13365
+ msg.setScope(value);
13078
13366
  break;
13079
13367
  default:
13080
13368
  reader.skipField();
@@ -13083,28 +13371,725 @@ var require_avs_pb = __commonJS({
13083
13371
  }
13084
13372
  return msg;
13085
13373
  };
13086
- proto.aggregator.GetWorkflowCountReq.prototype.serializeBinary = function() {
13374
+ proto.aggregator.CreateSecretResp.prototype.serializeBinary = function() {
13087
13375
  var writer = new jspb.BinaryWriter();
13088
- proto.aggregator.GetWorkflowCountReq.serializeBinaryToWriter(this, writer);
13376
+ proto.aggregator.CreateSecretResp.serializeBinaryToWriter(this, writer);
13089
13377
  return writer.getResultBuffer();
13090
13378
  };
13091
- proto.aggregator.GetWorkflowCountReq.serializeBinaryToWriter = function(message, writer) {
13379
+ proto.aggregator.CreateSecretResp.serializeBinaryToWriter = function(message, writer) {
13092
13380
  var f = void 0;
13093
- f = message.getAddressesList();
13094
- if (f.length > 0) {
13095
- writer.writeRepeatedString(
13381
+ f = message.getSuccess();
13382
+ if (f) {
13383
+ writer.writeBool(
13096
13384
  1,
13097
13385
  f
13098
13386
  );
13099
13387
  }
13100
- };
13101
- proto.aggregator.GetWorkflowCountReq.prototype.getAddressesList = function() {
13102
- return (
13103
- /** @type {!Array<string>} */
13104
- jspb.Message.getRepeatedField(this, 1)
13105
- );
13106
- };
13107
- proto.aggregator.GetWorkflowCountReq.prototype.setAddressesList = function(value) {
13388
+ f = message.getStatus();
13389
+ if (f.length > 0) {
13390
+ writer.writeString(
13391
+ 2,
13392
+ f
13393
+ );
13394
+ }
13395
+ f = message.getMessage();
13396
+ if (f.length > 0) {
13397
+ writer.writeString(
13398
+ 3,
13399
+ f
13400
+ );
13401
+ }
13402
+ f = message.getCreatedAt();
13403
+ if (f !== 0) {
13404
+ writer.writeInt64(
13405
+ 4,
13406
+ f
13407
+ );
13408
+ }
13409
+ f = message.getSecretName();
13410
+ if (f.length > 0) {
13411
+ writer.writeString(
13412
+ 5,
13413
+ f
13414
+ );
13415
+ }
13416
+ f = message.getScope();
13417
+ if (f.length > 0) {
13418
+ writer.writeString(
13419
+ 6,
13420
+ f
13421
+ );
13422
+ }
13423
+ };
13424
+ proto.aggregator.CreateSecretResp.prototype.getSuccess = function() {
13425
+ return (
13426
+ /** @type {boolean} */
13427
+ jspb.Message.getBooleanFieldWithDefault(this, 1, false)
13428
+ );
13429
+ };
13430
+ proto.aggregator.CreateSecretResp.prototype.setSuccess = function(value) {
13431
+ return jspb.Message.setProto3BooleanField(this, 1, value);
13432
+ };
13433
+ proto.aggregator.CreateSecretResp.prototype.getStatus = function() {
13434
+ return (
13435
+ /** @type {string} */
13436
+ jspb.Message.getFieldWithDefault(this, 2, "")
13437
+ );
13438
+ };
13439
+ proto.aggregator.CreateSecretResp.prototype.setStatus = function(value) {
13440
+ return jspb.Message.setProto3StringField(this, 2, value);
13441
+ };
13442
+ proto.aggregator.CreateSecretResp.prototype.getMessage = function() {
13443
+ return (
13444
+ /** @type {string} */
13445
+ jspb.Message.getFieldWithDefault(this, 3, "")
13446
+ );
13447
+ };
13448
+ proto.aggregator.CreateSecretResp.prototype.setMessage = function(value) {
13449
+ return jspb.Message.setProto3StringField(this, 3, value);
13450
+ };
13451
+ proto.aggregator.CreateSecretResp.prototype.getCreatedAt = function() {
13452
+ return (
13453
+ /** @type {number} */
13454
+ jspb.Message.getFieldWithDefault(this, 4, 0)
13455
+ );
13456
+ };
13457
+ proto.aggregator.CreateSecretResp.prototype.setCreatedAt = function(value) {
13458
+ return jspb.Message.setProto3IntField(this, 4, value);
13459
+ };
13460
+ proto.aggregator.CreateSecretResp.prototype.getSecretName = function() {
13461
+ return (
13462
+ /** @type {string} */
13463
+ jspb.Message.getFieldWithDefault(this, 5, "")
13464
+ );
13465
+ };
13466
+ proto.aggregator.CreateSecretResp.prototype.setSecretName = function(value) {
13467
+ return jspb.Message.setProto3StringField(this, 5, value);
13468
+ };
13469
+ proto.aggregator.CreateSecretResp.prototype.getScope = function() {
13470
+ return (
13471
+ /** @type {string} */
13472
+ jspb.Message.getFieldWithDefault(this, 6, "")
13473
+ );
13474
+ };
13475
+ proto.aggregator.CreateSecretResp.prototype.setScope = function(value) {
13476
+ return jspb.Message.setProto3StringField(this, 6, value);
13477
+ };
13478
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13479
+ proto.aggregator.UpdateSecretResp.prototype.toObject = function(opt_includeInstance) {
13480
+ return proto.aggregator.UpdateSecretResp.toObject(opt_includeInstance, this);
13481
+ };
13482
+ proto.aggregator.UpdateSecretResp.toObject = function(includeInstance, msg) {
13483
+ var f, obj = {
13484
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
13485
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
13486
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
13487
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
13488
+ secretName: jspb.Message.getFieldWithDefault(msg, 5, ""),
13489
+ scope: jspb.Message.getFieldWithDefault(msg, 6, "")
13490
+ };
13491
+ if (includeInstance) {
13492
+ obj.$jspbMessageInstance = msg;
13493
+ }
13494
+ return obj;
13495
+ };
13496
+ }
13497
+ proto.aggregator.UpdateSecretResp.deserializeBinary = function(bytes) {
13498
+ var reader = new jspb.BinaryReader(bytes);
13499
+ var msg = new proto.aggregator.UpdateSecretResp();
13500
+ return proto.aggregator.UpdateSecretResp.deserializeBinaryFromReader(msg, reader);
13501
+ };
13502
+ proto.aggregator.UpdateSecretResp.deserializeBinaryFromReader = function(msg, reader) {
13503
+ while (reader.nextField()) {
13504
+ if (reader.isEndGroup()) {
13505
+ break;
13506
+ }
13507
+ var field = reader.getFieldNumber();
13508
+ switch (field) {
13509
+ case 1:
13510
+ var value = (
13511
+ /** @type {boolean} */
13512
+ reader.readBool()
13513
+ );
13514
+ msg.setSuccess(value);
13515
+ break;
13516
+ case 2:
13517
+ var value = (
13518
+ /** @type {string} */
13519
+ reader.readString()
13520
+ );
13521
+ msg.setStatus(value);
13522
+ break;
13523
+ case 3:
13524
+ var value = (
13525
+ /** @type {string} */
13526
+ reader.readString()
13527
+ );
13528
+ msg.setMessage(value);
13529
+ break;
13530
+ case 4:
13531
+ var value = (
13532
+ /** @type {number} */
13533
+ reader.readInt64()
13534
+ );
13535
+ msg.setUpdatedAt(value);
13536
+ break;
13537
+ case 5:
13538
+ var value = (
13539
+ /** @type {string} */
13540
+ reader.readString()
13541
+ );
13542
+ msg.setSecretName(value);
13543
+ break;
13544
+ case 6:
13545
+ var value = (
13546
+ /** @type {string} */
13547
+ reader.readString()
13548
+ );
13549
+ msg.setScope(value);
13550
+ break;
13551
+ default:
13552
+ reader.skipField();
13553
+ break;
13554
+ }
13555
+ }
13556
+ return msg;
13557
+ };
13558
+ proto.aggregator.UpdateSecretResp.prototype.serializeBinary = function() {
13559
+ var writer = new jspb.BinaryWriter();
13560
+ proto.aggregator.UpdateSecretResp.serializeBinaryToWriter(this, writer);
13561
+ return writer.getResultBuffer();
13562
+ };
13563
+ proto.aggregator.UpdateSecretResp.serializeBinaryToWriter = function(message, writer) {
13564
+ var f = void 0;
13565
+ f = message.getSuccess();
13566
+ if (f) {
13567
+ writer.writeBool(
13568
+ 1,
13569
+ f
13570
+ );
13571
+ }
13572
+ f = message.getStatus();
13573
+ if (f.length > 0) {
13574
+ writer.writeString(
13575
+ 2,
13576
+ f
13577
+ );
13578
+ }
13579
+ f = message.getMessage();
13580
+ if (f.length > 0) {
13581
+ writer.writeString(
13582
+ 3,
13583
+ f
13584
+ );
13585
+ }
13586
+ f = message.getUpdatedAt();
13587
+ if (f !== 0) {
13588
+ writer.writeInt64(
13589
+ 4,
13590
+ f
13591
+ );
13592
+ }
13593
+ f = message.getSecretName();
13594
+ if (f.length > 0) {
13595
+ writer.writeString(
13596
+ 5,
13597
+ f
13598
+ );
13599
+ }
13600
+ f = message.getScope();
13601
+ if (f.length > 0) {
13602
+ writer.writeString(
13603
+ 6,
13604
+ f
13605
+ );
13606
+ }
13607
+ };
13608
+ proto.aggregator.UpdateSecretResp.prototype.getSuccess = function() {
13609
+ return (
13610
+ /** @type {boolean} */
13611
+ jspb.Message.getBooleanFieldWithDefault(this, 1, false)
13612
+ );
13613
+ };
13614
+ proto.aggregator.UpdateSecretResp.prototype.setSuccess = function(value) {
13615
+ return jspb.Message.setProto3BooleanField(this, 1, value);
13616
+ };
13617
+ proto.aggregator.UpdateSecretResp.prototype.getStatus = function() {
13618
+ return (
13619
+ /** @type {string} */
13620
+ jspb.Message.getFieldWithDefault(this, 2, "")
13621
+ );
13622
+ };
13623
+ proto.aggregator.UpdateSecretResp.prototype.setStatus = function(value) {
13624
+ return jspb.Message.setProto3StringField(this, 2, value);
13625
+ };
13626
+ proto.aggregator.UpdateSecretResp.prototype.getMessage = function() {
13627
+ return (
13628
+ /** @type {string} */
13629
+ jspb.Message.getFieldWithDefault(this, 3, "")
13630
+ );
13631
+ };
13632
+ proto.aggregator.UpdateSecretResp.prototype.setMessage = function(value) {
13633
+ return jspb.Message.setProto3StringField(this, 3, value);
13634
+ };
13635
+ proto.aggregator.UpdateSecretResp.prototype.getUpdatedAt = function() {
13636
+ return (
13637
+ /** @type {number} */
13638
+ jspb.Message.getFieldWithDefault(this, 4, 0)
13639
+ );
13640
+ };
13641
+ proto.aggregator.UpdateSecretResp.prototype.setUpdatedAt = function(value) {
13642
+ return jspb.Message.setProto3IntField(this, 4, value);
13643
+ };
13644
+ proto.aggregator.UpdateSecretResp.prototype.getSecretName = function() {
13645
+ return (
13646
+ /** @type {string} */
13647
+ jspb.Message.getFieldWithDefault(this, 5, "")
13648
+ );
13649
+ };
13650
+ proto.aggregator.UpdateSecretResp.prototype.setSecretName = function(value) {
13651
+ return jspb.Message.setProto3StringField(this, 5, value);
13652
+ };
13653
+ proto.aggregator.UpdateSecretResp.prototype.getScope = function() {
13654
+ return (
13655
+ /** @type {string} */
13656
+ jspb.Message.getFieldWithDefault(this, 6, "")
13657
+ );
13658
+ };
13659
+ proto.aggregator.UpdateSecretResp.prototype.setScope = function(value) {
13660
+ return jspb.Message.setProto3StringField(this, 6, value);
13661
+ };
13662
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13663
+ proto.aggregator.DeleteTaskResp.prototype.toObject = function(opt_includeInstance) {
13664
+ return proto.aggregator.DeleteTaskResp.toObject(opt_includeInstance, this);
13665
+ };
13666
+ proto.aggregator.DeleteTaskResp.toObject = function(includeInstance, msg) {
13667
+ var f, obj = {
13668
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
13669
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
13670
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
13671
+ deletedAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
13672
+ id: jspb.Message.getFieldWithDefault(msg, 5, ""),
13673
+ previousStatus: jspb.Message.getFieldWithDefault(msg, 6, "")
13674
+ };
13675
+ if (includeInstance) {
13676
+ obj.$jspbMessageInstance = msg;
13677
+ }
13678
+ return obj;
13679
+ };
13680
+ }
13681
+ proto.aggregator.DeleteTaskResp.deserializeBinary = function(bytes) {
13682
+ var reader = new jspb.BinaryReader(bytes);
13683
+ var msg = new proto.aggregator.DeleteTaskResp();
13684
+ return proto.aggregator.DeleteTaskResp.deserializeBinaryFromReader(msg, reader);
13685
+ };
13686
+ proto.aggregator.DeleteTaskResp.deserializeBinaryFromReader = function(msg, reader) {
13687
+ while (reader.nextField()) {
13688
+ if (reader.isEndGroup()) {
13689
+ break;
13690
+ }
13691
+ var field = reader.getFieldNumber();
13692
+ switch (field) {
13693
+ case 1:
13694
+ var value = (
13695
+ /** @type {boolean} */
13696
+ reader.readBool()
13697
+ );
13698
+ msg.setSuccess(value);
13699
+ break;
13700
+ case 2:
13701
+ var value = (
13702
+ /** @type {string} */
13703
+ reader.readString()
13704
+ );
13705
+ msg.setStatus(value);
13706
+ break;
13707
+ case 3:
13708
+ var value = (
13709
+ /** @type {string} */
13710
+ reader.readString()
13711
+ );
13712
+ msg.setMessage(value);
13713
+ break;
13714
+ case 4:
13715
+ var value = (
13716
+ /** @type {number} */
13717
+ reader.readInt64()
13718
+ );
13719
+ msg.setDeletedAt(value);
13720
+ break;
13721
+ case 5:
13722
+ var value = (
13723
+ /** @type {string} */
13724
+ reader.readString()
13725
+ );
13726
+ msg.setId(value);
13727
+ break;
13728
+ case 6:
13729
+ var value = (
13730
+ /** @type {string} */
13731
+ reader.readString()
13732
+ );
13733
+ msg.setPreviousStatus(value);
13734
+ break;
13735
+ default:
13736
+ reader.skipField();
13737
+ break;
13738
+ }
13739
+ }
13740
+ return msg;
13741
+ };
13742
+ proto.aggregator.DeleteTaskResp.prototype.serializeBinary = function() {
13743
+ var writer = new jspb.BinaryWriter();
13744
+ proto.aggregator.DeleteTaskResp.serializeBinaryToWriter(this, writer);
13745
+ return writer.getResultBuffer();
13746
+ };
13747
+ proto.aggregator.DeleteTaskResp.serializeBinaryToWriter = function(message, writer) {
13748
+ var f = void 0;
13749
+ f = message.getSuccess();
13750
+ if (f) {
13751
+ writer.writeBool(
13752
+ 1,
13753
+ f
13754
+ );
13755
+ }
13756
+ f = message.getStatus();
13757
+ if (f.length > 0) {
13758
+ writer.writeString(
13759
+ 2,
13760
+ f
13761
+ );
13762
+ }
13763
+ f = message.getMessage();
13764
+ if (f.length > 0) {
13765
+ writer.writeString(
13766
+ 3,
13767
+ f
13768
+ );
13769
+ }
13770
+ f = message.getDeletedAt();
13771
+ if (f !== 0) {
13772
+ writer.writeInt64(
13773
+ 4,
13774
+ f
13775
+ );
13776
+ }
13777
+ f = message.getId();
13778
+ if (f.length > 0) {
13779
+ writer.writeString(
13780
+ 5,
13781
+ f
13782
+ );
13783
+ }
13784
+ f = message.getPreviousStatus();
13785
+ if (f.length > 0) {
13786
+ writer.writeString(
13787
+ 6,
13788
+ f
13789
+ );
13790
+ }
13791
+ };
13792
+ proto.aggregator.DeleteTaskResp.prototype.getSuccess = function() {
13793
+ return (
13794
+ /** @type {boolean} */
13795
+ jspb.Message.getBooleanFieldWithDefault(this, 1, false)
13796
+ );
13797
+ };
13798
+ proto.aggregator.DeleteTaskResp.prototype.setSuccess = function(value) {
13799
+ return jspb.Message.setProto3BooleanField(this, 1, value);
13800
+ };
13801
+ proto.aggregator.DeleteTaskResp.prototype.getStatus = function() {
13802
+ return (
13803
+ /** @type {string} */
13804
+ jspb.Message.getFieldWithDefault(this, 2, "")
13805
+ );
13806
+ };
13807
+ proto.aggregator.DeleteTaskResp.prototype.setStatus = function(value) {
13808
+ return jspb.Message.setProto3StringField(this, 2, value);
13809
+ };
13810
+ proto.aggregator.DeleteTaskResp.prototype.getMessage = function() {
13811
+ return (
13812
+ /** @type {string} */
13813
+ jspb.Message.getFieldWithDefault(this, 3, "")
13814
+ );
13815
+ };
13816
+ proto.aggregator.DeleteTaskResp.prototype.setMessage = function(value) {
13817
+ return jspb.Message.setProto3StringField(this, 3, value);
13818
+ };
13819
+ proto.aggregator.DeleteTaskResp.prototype.getDeletedAt = function() {
13820
+ return (
13821
+ /** @type {number} */
13822
+ jspb.Message.getFieldWithDefault(this, 4, 0)
13823
+ );
13824
+ };
13825
+ proto.aggregator.DeleteTaskResp.prototype.setDeletedAt = function(value) {
13826
+ return jspb.Message.setProto3IntField(this, 4, value);
13827
+ };
13828
+ proto.aggregator.DeleteTaskResp.prototype.getId = function() {
13829
+ return (
13830
+ /** @type {string} */
13831
+ jspb.Message.getFieldWithDefault(this, 5, "")
13832
+ );
13833
+ };
13834
+ proto.aggregator.DeleteTaskResp.prototype.setId = function(value) {
13835
+ return jspb.Message.setProto3StringField(this, 5, value);
13836
+ };
13837
+ proto.aggregator.DeleteTaskResp.prototype.getPreviousStatus = function() {
13838
+ return (
13839
+ /** @type {string} */
13840
+ jspb.Message.getFieldWithDefault(this, 6, "")
13841
+ );
13842
+ };
13843
+ proto.aggregator.DeleteTaskResp.prototype.setPreviousStatus = function(value) {
13844
+ return jspb.Message.setProto3StringField(this, 6, value);
13845
+ };
13846
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13847
+ proto.aggregator.CancelTaskResp.prototype.toObject = function(opt_includeInstance) {
13848
+ return proto.aggregator.CancelTaskResp.toObject(opt_includeInstance, this);
13849
+ };
13850
+ proto.aggregator.CancelTaskResp.toObject = function(includeInstance, msg) {
13851
+ var f, obj = {
13852
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
13853
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
13854
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
13855
+ cancelledAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
13856
+ id: jspb.Message.getFieldWithDefault(msg, 5, ""),
13857
+ previousStatus: jspb.Message.getFieldWithDefault(msg, 6, "")
13858
+ };
13859
+ if (includeInstance) {
13860
+ obj.$jspbMessageInstance = msg;
13861
+ }
13862
+ return obj;
13863
+ };
13864
+ }
13865
+ proto.aggregator.CancelTaskResp.deserializeBinary = function(bytes) {
13866
+ var reader = new jspb.BinaryReader(bytes);
13867
+ var msg = new proto.aggregator.CancelTaskResp();
13868
+ return proto.aggregator.CancelTaskResp.deserializeBinaryFromReader(msg, reader);
13869
+ };
13870
+ proto.aggregator.CancelTaskResp.deserializeBinaryFromReader = function(msg, reader) {
13871
+ while (reader.nextField()) {
13872
+ if (reader.isEndGroup()) {
13873
+ break;
13874
+ }
13875
+ var field = reader.getFieldNumber();
13876
+ switch (field) {
13877
+ case 1:
13878
+ var value = (
13879
+ /** @type {boolean} */
13880
+ reader.readBool()
13881
+ );
13882
+ msg.setSuccess(value);
13883
+ break;
13884
+ case 2:
13885
+ var value = (
13886
+ /** @type {string} */
13887
+ reader.readString()
13888
+ );
13889
+ msg.setStatus(value);
13890
+ break;
13891
+ case 3:
13892
+ var value = (
13893
+ /** @type {string} */
13894
+ reader.readString()
13895
+ );
13896
+ msg.setMessage(value);
13897
+ break;
13898
+ case 4:
13899
+ var value = (
13900
+ /** @type {number} */
13901
+ reader.readInt64()
13902
+ );
13903
+ msg.setCancelledAt(value);
13904
+ break;
13905
+ case 5:
13906
+ var value = (
13907
+ /** @type {string} */
13908
+ reader.readString()
13909
+ );
13910
+ msg.setId(value);
13911
+ break;
13912
+ case 6:
13913
+ var value = (
13914
+ /** @type {string} */
13915
+ reader.readString()
13916
+ );
13917
+ msg.setPreviousStatus(value);
13918
+ break;
13919
+ default:
13920
+ reader.skipField();
13921
+ break;
13922
+ }
13923
+ }
13924
+ return msg;
13925
+ };
13926
+ proto.aggregator.CancelTaskResp.prototype.serializeBinary = function() {
13927
+ var writer = new jspb.BinaryWriter();
13928
+ proto.aggregator.CancelTaskResp.serializeBinaryToWriter(this, writer);
13929
+ return writer.getResultBuffer();
13930
+ };
13931
+ proto.aggregator.CancelTaskResp.serializeBinaryToWriter = function(message, writer) {
13932
+ var f = void 0;
13933
+ f = message.getSuccess();
13934
+ if (f) {
13935
+ writer.writeBool(
13936
+ 1,
13937
+ f
13938
+ );
13939
+ }
13940
+ f = message.getStatus();
13941
+ if (f.length > 0) {
13942
+ writer.writeString(
13943
+ 2,
13944
+ f
13945
+ );
13946
+ }
13947
+ f = message.getMessage();
13948
+ if (f.length > 0) {
13949
+ writer.writeString(
13950
+ 3,
13951
+ f
13952
+ );
13953
+ }
13954
+ f = message.getCancelledAt();
13955
+ if (f !== 0) {
13956
+ writer.writeInt64(
13957
+ 4,
13958
+ f
13959
+ );
13960
+ }
13961
+ f = message.getId();
13962
+ if (f.length > 0) {
13963
+ writer.writeString(
13964
+ 5,
13965
+ f
13966
+ );
13967
+ }
13968
+ f = message.getPreviousStatus();
13969
+ if (f.length > 0) {
13970
+ writer.writeString(
13971
+ 6,
13972
+ f
13973
+ );
13974
+ }
13975
+ };
13976
+ proto.aggregator.CancelTaskResp.prototype.getSuccess = function() {
13977
+ return (
13978
+ /** @type {boolean} */
13979
+ jspb.Message.getBooleanFieldWithDefault(this, 1, false)
13980
+ );
13981
+ };
13982
+ proto.aggregator.CancelTaskResp.prototype.setSuccess = function(value) {
13983
+ return jspb.Message.setProto3BooleanField(this, 1, value);
13984
+ };
13985
+ proto.aggregator.CancelTaskResp.prototype.getStatus = function() {
13986
+ return (
13987
+ /** @type {string} */
13988
+ jspb.Message.getFieldWithDefault(this, 2, "")
13989
+ );
13990
+ };
13991
+ proto.aggregator.CancelTaskResp.prototype.setStatus = function(value) {
13992
+ return jspb.Message.setProto3StringField(this, 2, value);
13993
+ };
13994
+ proto.aggregator.CancelTaskResp.prototype.getMessage = function() {
13995
+ return (
13996
+ /** @type {string} */
13997
+ jspb.Message.getFieldWithDefault(this, 3, "")
13998
+ );
13999
+ };
14000
+ proto.aggregator.CancelTaskResp.prototype.setMessage = function(value) {
14001
+ return jspb.Message.setProto3StringField(this, 3, value);
14002
+ };
14003
+ proto.aggregator.CancelTaskResp.prototype.getCancelledAt = function() {
14004
+ return (
14005
+ /** @type {number} */
14006
+ jspb.Message.getFieldWithDefault(this, 4, 0)
14007
+ );
14008
+ };
14009
+ proto.aggregator.CancelTaskResp.prototype.setCancelledAt = function(value) {
14010
+ return jspb.Message.setProto3IntField(this, 4, value);
14011
+ };
14012
+ proto.aggregator.CancelTaskResp.prototype.getId = function() {
14013
+ return (
14014
+ /** @type {string} */
14015
+ jspb.Message.getFieldWithDefault(this, 5, "")
14016
+ );
14017
+ };
14018
+ proto.aggregator.CancelTaskResp.prototype.setId = function(value) {
14019
+ return jspb.Message.setProto3StringField(this, 5, value);
14020
+ };
14021
+ proto.aggregator.CancelTaskResp.prototype.getPreviousStatus = function() {
14022
+ return (
14023
+ /** @type {string} */
14024
+ jspb.Message.getFieldWithDefault(this, 6, "")
14025
+ );
14026
+ };
14027
+ proto.aggregator.CancelTaskResp.prototype.setPreviousStatus = function(value) {
14028
+ return jspb.Message.setProto3StringField(this, 6, value);
14029
+ };
14030
+ proto.aggregator.GetWorkflowCountReq.repeatedFields_ = [1];
14031
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14032
+ proto.aggregator.GetWorkflowCountReq.prototype.toObject = function(opt_includeInstance) {
14033
+ return proto.aggregator.GetWorkflowCountReq.toObject(opt_includeInstance, this);
14034
+ };
14035
+ proto.aggregator.GetWorkflowCountReq.toObject = function(includeInstance, msg) {
14036
+ var f, obj = {
14037
+ addressesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? void 0 : f
14038
+ };
14039
+ if (includeInstance) {
14040
+ obj.$jspbMessageInstance = msg;
14041
+ }
14042
+ return obj;
14043
+ };
14044
+ }
14045
+ proto.aggregator.GetWorkflowCountReq.deserializeBinary = function(bytes) {
14046
+ var reader = new jspb.BinaryReader(bytes);
14047
+ var msg = new proto.aggregator.GetWorkflowCountReq();
14048
+ return proto.aggregator.GetWorkflowCountReq.deserializeBinaryFromReader(msg, reader);
14049
+ };
14050
+ proto.aggregator.GetWorkflowCountReq.deserializeBinaryFromReader = function(msg, reader) {
14051
+ while (reader.nextField()) {
14052
+ if (reader.isEndGroup()) {
14053
+ break;
14054
+ }
14055
+ var field = reader.getFieldNumber();
14056
+ switch (field) {
14057
+ case 1:
14058
+ var value = (
14059
+ /** @type {string} */
14060
+ reader.readString()
14061
+ );
14062
+ msg.addAddresses(value);
14063
+ break;
14064
+ default:
14065
+ reader.skipField();
14066
+ break;
14067
+ }
14068
+ }
14069
+ return msg;
14070
+ };
14071
+ proto.aggregator.GetWorkflowCountReq.prototype.serializeBinary = function() {
14072
+ var writer = new jspb.BinaryWriter();
14073
+ proto.aggregator.GetWorkflowCountReq.serializeBinaryToWriter(this, writer);
14074
+ return writer.getResultBuffer();
14075
+ };
14076
+ proto.aggregator.GetWorkflowCountReq.serializeBinaryToWriter = function(message, writer) {
14077
+ var f = void 0;
14078
+ f = message.getAddressesList();
14079
+ if (f.length > 0) {
14080
+ writer.writeRepeatedString(
14081
+ 1,
14082
+ f
14083
+ );
14084
+ }
14085
+ };
14086
+ proto.aggregator.GetWorkflowCountReq.prototype.getAddressesList = function() {
14087
+ return (
14088
+ /** @type {!Array<string>} */
14089
+ jspb.Message.getRepeatedField(this, 1)
14090
+ );
14091
+ };
14092
+ proto.aggregator.GetWorkflowCountReq.prototype.setAddressesList = function(value) {
13108
14093
  return jspb.Message.setField(this, 1, value || []);
13109
14094
  };
13110
14095
  proto.aggregator.GetWorkflowCountReq.prototype.addAddresses = function(value, opt_index) {
@@ -14815,6 +15800,10 @@ var require_avs_pb = __commonJS({
14815
15800
  NODE_TYPE_FILTER: 8,
14816
15801
  NODE_TYPE_LOOP: 9
14817
15802
  };
15803
+ proto.aggregator.ExecutionMode = {
15804
+ EXECUTION_MODE_SEQUENTIAL: 0,
15805
+ EXECUTION_MODE_PARALLEL: 1
15806
+ };
14818
15807
  proto.aggregator.Lang = {
14819
15808
  JAVASCRIPT: 0
14820
15809
  };
@@ -14885,6 +15874,15 @@ var require_avs_grpc_pb = __commonJS({
14885
15874
  var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
14886
15875
  var google_protobuf_any_pb = __require("google-protobuf/google/protobuf/any_pb.js");
14887
15876
  var google_protobuf_struct_pb2 = __require("google-protobuf/google/protobuf/struct_pb.js");
15877
+ function serialize_aggregator_CancelTaskResp(arg) {
15878
+ if (!(arg instanceof avs_pb23.CancelTaskResp)) {
15879
+ throw new Error("Expected argument of type aggregator.CancelTaskResp");
15880
+ }
15881
+ return Buffer.from(arg.serializeBinary());
15882
+ }
15883
+ function deserialize_aggregator_CancelTaskResp(buffer_arg) {
15884
+ return avs_pb23.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
15885
+ }
14888
15886
  function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
14889
15887
  if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
14890
15888
  throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
@@ -14894,6 +15892,15 @@ var require_avs_grpc_pb = __commonJS({
14894
15892
  function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
14895
15893
  return avs_pb23.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
14896
15894
  }
15895
+ function serialize_aggregator_CreateSecretResp(arg) {
15896
+ if (!(arg instanceof avs_pb23.CreateSecretResp)) {
15897
+ throw new Error("Expected argument of type aggregator.CreateSecretResp");
15898
+ }
15899
+ return Buffer.from(arg.serializeBinary());
15900
+ }
15901
+ function deserialize_aggregator_CreateSecretResp(buffer_arg) {
15902
+ return avs_pb23.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
15903
+ }
14897
15904
  function serialize_aggregator_CreateTaskReq(arg) {
14898
15905
  if (!(arg instanceof avs_pb23.CreateTaskReq)) {
14899
15906
  throw new Error("Expected argument of type aggregator.CreateTaskReq");
@@ -14921,6 +15928,24 @@ var require_avs_grpc_pb = __commonJS({
14921
15928
  function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
14922
15929
  return avs_pb23.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
14923
15930
  }
15931
+ function serialize_aggregator_DeleteSecretResp(arg) {
15932
+ if (!(arg instanceof avs_pb23.DeleteSecretResp)) {
15933
+ throw new Error("Expected argument of type aggregator.DeleteSecretResp");
15934
+ }
15935
+ return Buffer.from(arg.serializeBinary());
15936
+ }
15937
+ function deserialize_aggregator_DeleteSecretResp(buffer_arg) {
15938
+ return avs_pb23.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
15939
+ }
15940
+ function serialize_aggregator_DeleteTaskResp(arg) {
15941
+ if (!(arg instanceof avs_pb23.DeleteTaskResp)) {
15942
+ throw new Error("Expected argument of type aggregator.DeleteTaskResp");
15943
+ }
15944
+ return Buffer.from(arg.serializeBinary());
15945
+ }
15946
+ function deserialize_aggregator_DeleteTaskResp(buffer_arg) {
15947
+ return avs_pb23.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
15948
+ }
14924
15949
  function serialize_aggregator_Execution(arg) {
14925
15950
  if (!(arg instanceof avs_pb23.Execution)) {
14926
15951
  throw new Error("Expected argument of type aggregator.Execution");
@@ -15254,14 +16279,14 @@ var require_avs_grpc_pb = __commonJS({
15254
16279
  function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
15255
16280
  return avs_pb23.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
15256
16281
  }
15257
- function serialize_google_protobuf_BoolValue(arg) {
15258
- if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
15259
- throw new Error("Expected argument of type google.protobuf.BoolValue");
16282
+ function serialize_aggregator_UpdateSecretResp(arg) {
16283
+ if (!(arg instanceof avs_pb23.UpdateSecretResp)) {
16284
+ throw new Error("Expected argument of type aggregator.UpdateSecretResp");
15260
16285
  }
15261
16286
  return Buffer.from(arg.serializeBinary());
15262
16287
  }
15263
- function deserialize_google_protobuf_BoolValue(buffer_arg) {
15264
- return google_protobuf_wrappers_pb.BoolValue.deserializeBinary(new Uint8Array(buffer_arg));
16288
+ function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
16289
+ return avs_pb23.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
15265
16290
  }
15266
16291
  var AggregatorService = exports.AggregatorService = {
15267
16292
  // Exchange for an Auth Key to authenticate in subsequent request
@@ -15405,22 +16430,22 @@ var require_avs_grpc_pb = __commonJS({
15405
16430
  requestStream: false,
15406
16431
  responseStream: false,
15407
16432
  requestType: avs_pb23.IdReq,
15408
- responseType: google_protobuf_wrappers_pb.BoolValue,
16433
+ responseType: avs_pb23.CancelTaskResp,
15409
16434
  requestSerialize: serialize_aggregator_IdReq,
15410
16435
  requestDeserialize: deserialize_aggregator_IdReq,
15411
- responseSerialize: serialize_google_protobuf_BoolValue,
15412
- responseDeserialize: deserialize_google_protobuf_BoolValue
16436
+ responseSerialize: serialize_aggregator_CancelTaskResp,
16437
+ responseDeserialize: deserialize_aggregator_CancelTaskResp
15413
16438
  },
15414
16439
  deleteTask: {
15415
16440
  path: "/aggregator.Aggregator/DeleteTask",
15416
16441
  requestStream: false,
15417
16442
  responseStream: false,
15418
16443
  requestType: avs_pb23.IdReq,
15419
- responseType: google_protobuf_wrappers_pb.BoolValue,
16444
+ responseType: avs_pb23.DeleteTaskResp,
15420
16445
  requestSerialize: serialize_aggregator_IdReq,
15421
16446
  requestDeserialize: deserialize_aggregator_IdReq,
15422
- responseSerialize: serialize_google_protobuf_BoolValue,
15423
- responseDeserialize: deserialize_google_protobuf_BoolValue
16447
+ responseSerialize: serialize_aggregator_DeleteTaskResp,
16448
+ responseDeserialize: deserialize_aggregator_DeleteTaskResp
15424
16449
  },
15425
16450
  triggerTask: {
15426
16451
  path: "/aggregator.Aggregator/TriggerTask",
@@ -15441,22 +16466,22 @@ var require_avs_grpc_pb = __commonJS({
15441
16466
  requestStream: false,
15442
16467
  responseStream: false,
15443
16468
  requestType: avs_pb23.CreateOrUpdateSecretReq,
15444
- responseType: google_protobuf_wrappers_pb.BoolValue,
16469
+ responseType: avs_pb23.CreateSecretResp,
15445
16470
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
15446
16471
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
15447
- responseSerialize: serialize_google_protobuf_BoolValue,
15448
- responseDeserialize: deserialize_google_protobuf_BoolValue
16472
+ responseSerialize: serialize_aggregator_CreateSecretResp,
16473
+ responseDeserialize: deserialize_aggregator_CreateSecretResp
15449
16474
  },
15450
16475
  deleteSecret: {
15451
16476
  path: "/aggregator.Aggregator/DeleteSecret",
15452
16477
  requestStream: false,
15453
16478
  responseStream: false,
15454
16479
  requestType: avs_pb23.DeleteSecretReq,
15455
- responseType: google_protobuf_wrappers_pb.BoolValue,
16480
+ responseType: avs_pb23.DeleteSecretResp,
15456
16481
  requestSerialize: serialize_aggregator_DeleteSecretReq,
15457
16482
  requestDeserialize: deserialize_aggregator_DeleteSecretReq,
15458
- responseSerialize: serialize_google_protobuf_BoolValue,
15459
- responseDeserialize: deserialize_google_protobuf_BoolValue
16483
+ responseSerialize: serialize_aggregator_DeleteSecretResp,
16484
+ responseDeserialize: deserialize_aggregator_DeleteSecretResp
15460
16485
  },
15461
16486
  // Return all secrets belong to this user. Currently we don't support any fine tune or filter yet.
15462
16487
  // Only secret names and config data are returned. The secret value aren't returned.
@@ -15478,11 +16503,11 @@ var require_avs_grpc_pb = __commonJS({
15478
16503
  requestStream: false,
15479
16504
  responseStream: false,
15480
16505
  requestType: avs_pb23.CreateOrUpdateSecretReq,
15481
- responseType: google_protobuf_wrappers_pb.BoolValue,
16506
+ responseType: avs_pb23.UpdateSecretResp,
15482
16507
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
15483
16508
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
15484
- responseSerialize: serialize_google_protobuf_BoolValue,
15485
- responseDeserialize: deserialize_google_protobuf_BoolValue
16509
+ responseSerialize: serialize_aggregator_UpdateSecretResp,
16510
+ responseDeserialize: deserialize_aggregator_UpdateSecretResp
15486
16511
  },
15487
16512
  // The spec of these 2 RPCs are based on the following issue:
15488
16513
  // Reference: https://github.com/AvaProtocol/EigenLayer-AVS/issues/150
@@ -16431,6 +17456,29 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
16431
17456
  constructor(props) {
16432
17457
  super({ ...props, type: NodeType3.ContractWrite, data: props.data });
16433
17458
  }
17459
+ /**
17460
+ * Create a protobuf ContractWriteNode from config data
17461
+ * @param configData - The configuration data for the contract write node
17462
+ * @returns Configured avs_pb.ContractWriteNode
17463
+ */
17464
+ static createProtobufNode(configData) {
17465
+ const node = new avs_pb9.ContractWriteNode();
17466
+ const config = new avs_pb9.ContractWriteNode.Config();
17467
+ config.setContractAddress(configData.contractAddress);
17468
+ config.setCallData(configData.callData);
17469
+ config.setContractAbi(configData.contractAbi);
17470
+ const methodCalls = configData.methodCalls || [];
17471
+ methodCalls.forEach((methodCall) => {
17472
+ const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
17473
+ methodCallMsg.setCallData(methodCall.callData);
17474
+ if (methodCall.methodName) {
17475
+ methodCallMsg.setMethodName(methodCall.methodName);
17476
+ }
17477
+ config.addMethodCalls(methodCallMsg);
17478
+ });
17479
+ node.setConfig(config);
17480
+ return node;
17481
+ }
16434
17482
  static fromResponse(raw) {
16435
17483
  const obj = raw.toObject();
16436
17484
  const protobufData = raw.getContractWrite().getConfig().toObject();
@@ -16458,25 +17506,9 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
16458
17506
  const request = new avs_pb9.TaskNode();
16459
17507
  request.setId(this.id);
16460
17508
  request.setName(this.name);
16461
- const node = new avs_pb9.ContractWriteNode();
16462
- const config = new avs_pb9.ContractWriteNode.Config();
16463
- config.setContractAddress(
16464
- this.data.contractAddress
16465
- );
16466
- config.setCallData(this.data.callData);
16467
- config.setContractAbi(this.data.contractAbi);
16468
- const methodCalls = this.data.methodCalls || [];
16469
- methodCalls.forEach(
16470
- (methodCall) => {
16471
- const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
16472
- methodCallMsg.setCallData(methodCall.callData);
16473
- if (methodCall.methodName) {
16474
- methodCallMsg.setMethodName(methodCall.methodName);
16475
- }
16476
- config.addMethodCalls(methodCallMsg);
16477
- }
17509
+ const node = _ContractWriteNode.createProtobufNode(
17510
+ this.data
16478
17511
  );
16479
- node.setConfig(config);
16480
17512
  const inputValue = convertInputToProtobuf(this.input);
16481
17513
  if (inputValue) {
16482
17514
  request.setInput(inputValue);
@@ -16504,6 +17536,19 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
16504
17536
  constructor(props) {
16505
17537
  super({ ...props, type: NodeType4.CustomCode, data: props.data });
16506
17538
  }
17539
+ /**
17540
+ * Create a protobuf CustomCodeNode from config data
17541
+ * @param configData - The configuration data for the custom code node
17542
+ * @returns Configured avs_pb.CustomCodeNode
17543
+ */
17544
+ static createProtobufNode(configData) {
17545
+ const node = new avs_pb10.CustomCodeNode();
17546
+ const config = new avs_pb10.CustomCodeNode.Config();
17547
+ config.setLang(configData.lang);
17548
+ config.setSource(configData.source);
17549
+ node.setConfig(config);
17550
+ return node;
17551
+ }
16507
17552
  static fromResponse(raw) {
16508
17553
  const obj = raw.toObject();
16509
17554
  const rawConfig = raw.getCustomCode().getConfig().toObject();
@@ -16526,11 +17571,9 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
16526
17571
  const request = new avs_pb10.TaskNode();
16527
17572
  request.setId(this.id);
16528
17573
  request.setName(this.name);
16529
- const node = new avs_pb10.CustomCodeNode();
16530
- const config = new avs_pb10.CustomCodeNode.Config();
16531
- config.setLang(this.data.lang);
16532
- config.setSource(this.data.source);
16533
- node.setConfig(config);
17574
+ const node = _CustomCodeNode.createProtobufNode(
17575
+ this.data
17576
+ );
16534
17577
  const inputValue = convertInputToProtobuf(this.input);
16535
17578
  if (inputValue) {
16536
17579
  request.setInput(inputValue);
@@ -16563,6 +17606,25 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
16563
17606
  data: props.data
16564
17607
  });
16565
17608
  }
17609
+ /**
17610
+ * Create a protobuf GraphQLQueryNode from config data
17611
+ * @param configData - The configuration data for the GraphQL query node
17612
+ * @returns Configured avs_pb.GraphQLQueryNode
17613
+ */
17614
+ static createProtobufNode(configData) {
17615
+ const node = new avs_pb11.GraphQLQueryNode();
17616
+ const config = new avs_pb11.GraphQLQueryNode.Config();
17617
+ config.setUrl(configData.url);
17618
+ config.setQuery(configData.query);
17619
+ if (configData.variablesMap && configData.variablesMap.length > 0) {
17620
+ const variablesMap = config.getVariablesMap();
17621
+ configData.variablesMap.forEach(([key, value]) => {
17622
+ variablesMap.set(key, value);
17623
+ });
17624
+ }
17625
+ node.setConfig(config);
17626
+ return node;
17627
+ }
16566
17628
  static fromResponse(raw) {
16567
17629
  const obj = raw.toObject();
16568
17630
  const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
@@ -16577,17 +17639,9 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
16577
17639
  const request = new avs_pb11.TaskNode();
16578
17640
  request.setId(this.id);
16579
17641
  request.setName(this.name);
16580
- const node = new avs_pb11.GraphQLQueryNode();
16581
- const config = new avs_pb11.GraphQLQueryNode.Config();
16582
- config.setUrl(this.data.url);
16583
- config.setQuery(this.data.query);
16584
- if (this.data.variablesMap && this.data.variablesMap.length > 0) {
16585
- const variablesMap = config.getVariablesMap();
16586
- this.data.variablesMap.forEach(([key, value]) => {
16587
- variablesMap.set(key, value);
16588
- });
16589
- }
16590
- node.setConfig(config);
17642
+ const node = _GraphQLQueryNode.createProtobufNode(
17643
+ this.data
17644
+ );
16591
17645
  const inputValue = convertInputToProtobuf(this.input);
16592
17646
  if (inputValue) {
16593
17647
  node.setInput(inputValue);
@@ -16611,6 +17665,26 @@ var RestAPINode2 = class _RestAPINode extends Node {
16611
17665
  constructor(props) {
16612
17666
  super({ ...props, type: NodeType6.RestAPI, data: props.data });
16613
17667
  }
17668
+ /**
17669
+ * Create a protobuf RestAPINode from config data
17670
+ * @param configData - The configuration data for the REST API node
17671
+ * @returns Configured avs_pb.RestAPINode
17672
+ */
17673
+ static createProtobufNode(configData) {
17674
+ const node = new avs_pb12.RestAPINode();
17675
+ const config = new avs_pb12.RestAPINode.Config();
17676
+ config.setUrl(configData.url);
17677
+ config.setMethod(configData.method);
17678
+ config.setBody(configData.body || "");
17679
+ if (configData.headersMap && configData.headersMap.length > 0) {
17680
+ const headersMap = config.getHeadersMap();
17681
+ configData.headersMap.forEach(([key, value]) => {
17682
+ headersMap.set(key, value);
17683
+ });
17684
+ }
17685
+ node.setConfig(config);
17686
+ return node;
17687
+ }
16614
17688
  static fromResponse(raw) {
16615
17689
  const obj = raw.toObject();
16616
17690
  let input = void 0;
@@ -16629,20 +17703,9 @@ var RestAPINode2 = class _RestAPINode extends Node {
16629
17703
  const request = new avs_pb12.TaskNode();
16630
17704
  request.setId(this.id);
16631
17705
  request.setName(this.name);
16632
- const nodeData = new avs_pb12.RestAPINode();
16633
- const config = new avs_pb12.RestAPINode.Config();
16634
- config.setUrl(this.data.url);
16635
- config.setMethod(this.data.method);
16636
- config.setBody(this.data.body || "");
16637
- if (this.data.headersMap && this.data.headersMap.length > 0) {
16638
- const headersMap = config.getHeadersMap();
16639
- this.data.headersMap.forEach(
16640
- ([key, value]) => {
16641
- headersMap.set(key, value);
16642
- }
16643
- );
16644
- }
16645
- nodeData.setConfig(config);
17706
+ const nodeData = _RestAPINode.createProtobufNode(
17707
+ this.data
17708
+ );
16646
17709
  const inputValue = convertInputToProtobuf(this.input);
16647
17710
  if (inputValue) {
16648
17711
  request.setInput(inputValue);
@@ -16674,6 +17737,31 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
16674
17737
  constructor(props) {
16675
17738
  super({ ...props, type: NodeType7.ContractRead, data: props.data });
16676
17739
  }
17740
+ /**
17741
+ * Create a protobuf ContractReadNode from config data
17742
+ * @param configData - The configuration data for the contract read node
17743
+ * @returns Configured avs_pb.ContractReadNode
17744
+ */
17745
+ static createProtobufNode(configData) {
17746
+ const node = new avs_pb13.ContractReadNode();
17747
+ const config = new avs_pb13.ContractReadNode.Config();
17748
+ config.setContractAddress(configData.contractAddress);
17749
+ config.setContractAbi(configData.contractAbi);
17750
+ const methodCalls = configData.methodCalls || [];
17751
+ methodCalls.forEach((methodCall) => {
17752
+ const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
17753
+ methodCallMsg.setCallData(methodCall.callData);
17754
+ if (methodCall.methodName) {
17755
+ methodCallMsg.setMethodName(methodCall.methodName);
17756
+ }
17757
+ if (methodCall.applyToFields) {
17758
+ methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
17759
+ }
17760
+ config.addMethodCalls(methodCallMsg);
17761
+ });
17762
+ node.setConfig(config);
17763
+ return node;
17764
+ }
16677
17765
  static fromResponse(raw) {
16678
17766
  const obj = raw.toObject();
16679
17767
  const protobufData = raw.getContractRead().getConfig().toObject();
@@ -16701,27 +17789,9 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
16701
17789
  const request = new avs_pb13.TaskNode();
16702
17790
  request.setId(this.id);
16703
17791
  request.setName(this.name);
16704
- const node = new avs_pb13.ContractReadNode();
16705
- const config = new avs_pb13.ContractReadNode.Config();
16706
- config.setContractAddress(
16707
- this.data.contractAddress
16708
- );
16709
- config.setContractAbi(this.data.contractAbi);
16710
- const methodCalls = this.data.methodCalls || [];
16711
- methodCalls.forEach(
16712
- (methodCall) => {
16713
- const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
16714
- methodCallMsg.setCallData(methodCall.callData);
16715
- if (methodCall.methodName) {
16716
- methodCallMsg.setMethodName(methodCall.methodName);
16717
- }
16718
- if (methodCall.applyToFields) {
16719
- methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
16720
- }
16721
- config.addMethodCalls(methodCallMsg);
16722
- }
17792
+ const node = _ContractReadNode.createProtobufNode(
17793
+ this.data
16723
17794
  );
16724
- node.setConfig(config);
16725
17795
  const inputValue = convertInputToProtobuf(this.input);
16726
17796
  if (inputValue) {
16727
17797
  request.setInput(inputValue);
@@ -16759,6 +17829,19 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
16759
17829
  constructor(props) {
16760
17830
  super({ ...props, type: NodeType8.ETHTransfer, data: props.data });
16761
17831
  }
17832
+ /**
17833
+ * Create a protobuf ETHTransferNode from config data
17834
+ * @param configData - The configuration data for the ETH transfer node
17835
+ * @returns Configured avs_pb.ETHTransferNode
17836
+ */
17837
+ static createProtobufNode(configData) {
17838
+ const node = new avs_pb14.ETHTransferNode();
17839
+ const config = new avs_pb14.ETHTransferNode.Config();
17840
+ config.setDestination(configData.destination);
17841
+ config.setAmount(configData.amount);
17842
+ node.setConfig(config);
17843
+ return node;
17844
+ }
16762
17845
  static fromResponse(raw) {
16763
17846
  const obj = raw.toObject();
16764
17847
  const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
@@ -16773,11 +17856,9 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
16773
17856
  const request = new avs_pb14.TaskNode();
16774
17857
  request.setId(this.id);
16775
17858
  request.setName(this.name);
16776
- const node = new avs_pb14.ETHTransferNode();
16777
- const config = new avs_pb14.ETHTransferNode.Config();
16778
- config.setDestination(this.data.destination);
16779
- config.setAmount(this.data.amount);
16780
- node.setConfig(config);
17859
+ const node = _ETHTransferNode.createProtobufNode(
17860
+ this.data
17861
+ );
16781
17862
  const inputValue = convertInputToProtobuf(this.input);
16782
17863
  if (inputValue) {
16783
17864
  node.setInput(inputValue);
@@ -16894,7 +17975,8 @@ var filter_default = FilterNode2;
16894
17975
  // src/models/node/loop.ts
16895
17976
  var avs_pb17 = __toESM(require_avs_pb());
16896
17977
  import {
16897
- NodeType as NodeType11
17978
+ NodeType as NodeType11,
17979
+ ExecutionMode
16898
17980
  } from "@avaprotocol/types";
16899
17981
  var LoopNode2 = class _LoopNode extends Node {
16900
17982
  constructor(props) {
@@ -16910,13 +17992,12 @@ var LoopNode2 = class _LoopNode extends Node {
16910
17992
  const loopNodeData = loopNode.toObject();
16911
17993
  const data = {
16912
17994
  ...configData,
16913
- // Keep the nested node structures from the full object
16914
- restApi: loopNodeData.restApi,
16915
- customCode: loopNodeData.customCode,
16916
- ethTransfer: loopNodeData.ethTransfer,
16917
- contractRead: loopNodeData.contractRead,
16918
- contractWrite: loopNodeData.contractWrite,
16919
- graphqlDataQuery: loopNodeData.graphqlDataQuery
17995
+ // Extract runner data from the oneof runner field
17996
+ runner: this.extractRunnerFromProtobuf(loopNodeData),
17997
+ // Map execution mode from protobuf enum to ExecutionMode enum
17998
+ executionMode: this.mapExecutionModeFromProtobuf(
17999
+ configData?.executionMode
18000
+ )
16920
18001
  };
16921
18002
  let input = void 0;
16922
18003
  if (raw.hasInput()) {
@@ -16929,6 +18010,54 @@ var LoopNode2 = class _LoopNode extends Node {
16929
18010
  input
16930
18011
  });
16931
18012
  }
18013
+ static extractRunnerFromProtobuf(loopNodeData) {
18014
+ if (loopNodeData.restApi) {
18015
+ return { type: "restApi", data: loopNodeData.restApi };
18016
+ } else if (loopNodeData.customCode) {
18017
+ return { type: "customCode", data: loopNodeData.customCode };
18018
+ } else if (loopNodeData.ethTransfer) {
18019
+ return { type: "ethTransfer", data: loopNodeData.ethTransfer };
18020
+ } else if (loopNodeData.contractRead) {
18021
+ return { type: "contractRead", data: loopNodeData.contractRead };
18022
+ } else if (loopNodeData.contractWrite) {
18023
+ return { type: "contractWrite", data: loopNodeData.contractWrite };
18024
+ } else if (loopNodeData.graphqlDataQuery) {
18025
+ return { type: "graphqlDataQuery", data: loopNodeData.graphqlDataQuery };
18026
+ }
18027
+ return null;
18028
+ }
18029
+ static mapExecutionModeFromProtobuf(executionMode) {
18030
+ switch (executionMode) {
18031
+ case 0:
18032
+ return ExecutionMode.Sequential;
18033
+ case 1:
18034
+ return ExecutionMode.Parallel;
18035
+ default:
18036
+ return ExecutionMode.Sequential;
18037
+ }
18038
+ }
18039
+ mapExecutionModeToProtobuf(executionMode) {
18040
+ if (!executionMode) {
18041
+ return 0;
18042
+ }
18043
+ if (typeof executionMode === "string") {
18044
+ switch (executionMode.toLowerCase()) {
18045
+ case "parallel":
18046
+ return 1;
18047
+ case "sequential":
18048
+ default:
18049
+ return 0;
18050
+ }
18051
+ } else {
18052
+ switch (executionMode) {
18053
+ case ExecutionMode.Parallel:
18054
+ return 1;
18055
+ case ExecutionMode.Sequential:
18056
+ default:
18057
+ return 0;
18058
+ }
18059
+ }
18060
+ }
16932
18061
  toRequest() {
16933
18062
  const node = new avs_pb17.TaskNode();
16934
18063
  const loopNode = new avs_pb17.LoopNode();
@@ -16939,113 +18068,103 @@ var LoopNode2 = class _LoopNode extends Node {
16939
18068
  config.setSourceId(data.sourceId || "");
16940
18069
  config.setIterVal(data.iterVal || "");
16941
18070
  config.setIterKey(data.iterKey || "");
18071
+ const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
18072
+ config.setExecutionMode(executionMode);
16942
18073
  loopNode.setConfig(config);
16943
18074
  const inputValue = convertInputToProtobuf(this.input);
16944
18075
  if (inputValue) {
16945
18076
  node.setInput(inputValue);
16946
18077
  }
16947
- if (data.ethTransfer) {
16948
- const ethTransfer = new avs_pb17.ETHTransferNode();
16949
- if (data.ethTransfer.config) {
16950
- const config2 = new avs_pb17.ETHTransferNode.Config();
16951
- config2.setDestination(data.ethTransfer.config.destination);
16952
- config2.setAmount(data.ethTransfer.config.amount);
16953
- ethTransfer.setConfig(config2);
16954
- }
16955
- loopNode.setEthTransfer(ethTransfer);
16956
- } else if (data.contractWrite) {
16957
- const contractWrite = new avs_pb17.ContractWriteNode();
16958
- if (data.contractWrite.config) {
16959
- const config2 = new avs_pb17.ContractWriteNode.Config();
16960
- config2.setContractAddress(
16961
- data.contractWrite.config.contractAddress
16962
- );
16963
- config2.setCallData(data.contractWrite.config.callData);
16964
- config2.setContractAbi(data.contractWrite.config.contractAbi);
16965
- const methodCalls = data.contractWrite.config.methodCallsList || [];
16966
- methodCalls.forEach(
16967
- (methodCall) => {
16968
- const methodCallMsg = new avs_pb17.ContractWriteNode.MethodCall();
16969
- methodCallMsg.setCallData(methodCall.callData);
16970
- if (methodCall.methodName) {
16971
- methodCallMsg.setMethodName(methodCall.methodName);
16972
- }
16973
- config2.addMethodCalls(methodCallMsg);
16974
- }
16975
- );
16976
- contractWrite.setConfig(config2);
16977
- }
16978
- loopNode.setContractWrite(contractWrite);
16979
- } else if (data.contractRead) {
16980
- const contractRead = new avs_pb17.ContractReadNode();
16981
- if (data.contractRead.config) {
16982
- const config2 = new avs_pb17.ContractReadNode.Config();
16983
- config2.setContractAddress(
16984
- data.contractRead.config.contractAddress
16985
- );
16986
- config2.setContractAbi(data.contractRead.config.contractAbi);
16987
- const methodCalls = data.contractRead.config.methodCallsList || [];
16988
- methodCalls.forEach(
16989
- (methodCall) => {
16990
- const methodCallMsg = new avs_pb17.ContractReadNode.MethodCall();
16991
- methodCallMsg.setCallData(methodCall.callData);
16992
- if (methodCall.methodName) {
16993
- methodCallMsg.setMethodName(methodCall.methodName);
16994
- }
16995
- if (methodCall.applyToFields) {
16996
- methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
16997
- }
16998
- config2.addMethodCalls(methodCallMsg);
16999
- }
17000
- );
17001
- contractRead.setConfig(config2);
17002
- }
17003
- loopNode.setContractRead(contractRead);
17004
- } else if (data.graphqlDataQuery) {
17005
- const graphqlQuery = new avs_pb17.GraphQLQueryNode();
17006
- if (data.graphqlDataQuery.config) {
17007
- const config2 = new avs_pb17.GraphQLQueryNode.Config();
17008
- config2.setUrl(data.graphqlDataQuery.config.url);
17009
- config2.setQuery(data.graphqlDataQuery.config.query);
17010
- if (data.graphqlDataQuery.config.variablesMap && data.graphqlDataQuery.config.variablesMap.length > 0) {
17011
- data.graphqlDataQuery.config.variablesMap.forEach(
17012
- ([key, value]) => {
17013
- config2.getVariablesMap().set(key, value);
17014
- }
17015
- );
18078
+ if (data.runner) {
18079
+ this.setRunnerOnProtobuf(loopNode, data.runner);
18080
+ }
18081
+ node.setLoop(loopNode);
18082
+ return node;
18083
+ }
18084
+ setRunnerOnProtobuf(loopNode, runner) {
18085
+ if (!runner || !runner.type || !runner.data) {
18086
+ return;
18087
+ }
18088
+ switch (runner.type) {
18089
+ case "ethTransfer": {
18090
+ const ethTransferData = runner.data;
18091
+ if (ethTransferData.config) {
18092
+ const ethConfig = ethTransferData.config;
18093
+ const ethTransfer = ethTransfer_default.createProtobufNode({
18094
+ destination: ethConfig.destination,
18095
+ amount: ethConfig.amount
18096
+ });
18097
+ loopNode.setEthTransfer(ethTransfer);
17016
18098
  }
17017
- graphqlQuery.setConfig(config2);
17018
- }
17019
- loopNode.setGraphqlDataQuery(graphqlQuery);
17020
- } else if (data.restApi) {
17021
- const restApi = new avs_pb17.RestAPINode();
17022
- if (data.restApi.config) {
17023
- const config2 = new avs_pb17.RestAPINode.Config();
17024
- config2.setUrl(data.restApi.config.url);
17025
- config2.setMethod(data.restApi.config.method);
17026
- config2.setBody(data.restApi.config.body || "");
17027
- if (data.restApi.config.headersMap && data.restApi.config.headersMap.length > 0) {
17028
- data.restApi.config.headersMap.forEach(
17029
- ([key, value]) => {
17030
- config2.getHeadersMap().set(key, value);
17031
- }
17032
- );
18099
+ break;
18100
+ }
18101
+ case "contractWrite": {
18102
+ const contractWriteData = runner.data;
18103
+ if (contractWriteData.config) {
18104
+ const writeConfig = contractWriteData.config;
18105
+ const contractWrite = contractWrite_default.createProtobufNode({
18106
+ contractAddress: writeConfig.contractAddress,
18107
+ callData: writeConfig.callData,
18108
+ contractAbi: writeConfig.contractAbi,
18109
+ methodCalls: writeConfig.methodCallsList || []
18110
+ });
18111
+ loopNode.setContractWrite(contractWrite);
18112
+ }
18113
+ break;
18114
+ }
18115
+ case "contractRead": {
18116
+ const contractReadData = runner.data;
18117
+ if (contractReadData.config) {
18118
+ const readConfig = contractReadData.config;
18119
+ const contractRead = contractRead_default.createProtobufNode({
18120
+ contractAddress: readConfig.contractAddress,
18121
+ contractAbi: readConfig.contractAbi,
18122
+ methodCalls: readConfig.methodCallsList || []
18123
+ });
18124
+ loopNode.setContractRead(contractRead);
18125
+ }
18126
+ break;
18127
+ }
18128
+ case "graphqlDataQuery": {
18129
+ const graphqlData = runner.data;
18130
+ if (graphqlData.config) {
18131
+ const gqlConfig = graphqlData.config;
18132
+ const graphqlQuery = graphqlQuery_default.createProtobufNode({
18133
+ url: gqlConfig.url,
18134
+ query: gqlConfig.query,
18135
+ variablesMap: gqlConfig.variablesMap
18136
+ });
18137
+ loopNode.setGraphqlDataQuery(graphqlQuery);
18138
+ }
18139
+ break;
18140
+ }
18141
+ case "restApi": {
18142
+ const restApiData = runner.data;
18143
+ if (restApiData.config) {
18144
+ const apiConfig = restApiData.config;
18145
+ const restApi = restApi_default.createProtobufNode({
18146
+ url: apiConfig.url,
18147
+ method: apiConfig.method,
18148
+ body: apiConfig.body || "",
18149
+ headersMap: apiConfig.headersMap
18150
+ });
18151
+ loopNode.setRestApi(restApi);
17033
18152
  }
17034
- restApi.setConfig(config2);
18153
+ break;
17035
18154
  }
17036
- loopNode.setRestApi(restApi);
17037
- } else if (data.customCode) {
17038
- const customCode = new avs_pb17.CustomCodeNode();
17039
- if (data.customCode.config) {
17040
- const config2 = new avs_pb17.CustomCodeNode.Config();
17041
- config2.setLang(data.customCode.config.lang);
17042
- config2.setSource(data.customCode.config.source);
17043
- customCode.setConfig(config2);
18155
+ case "customCode": {
18156
+ const customCodeData = runner.data;
18157
+ if (customCodeData.config) {
18158
+ const codeConfig = customCodeData.config;
18159
+ const customCode = customCode_default.createProtobufNode({
18160
+ lang: codeConfig.lang,
18161
+ source: codeConfig.source
18162
+ });
18163
+ loopNode.setCustomCode(customCode);
18164
+ }
18165
+ break;
17044
18166
  }
17045
- loopNode.setCustomCode(customCode);
17046
18167
  }
17047
- node.setLoop(loopNode);
17048
- return node;
17049
18168
  }
17050
18169
  static fromOutputData(outputData) {
17051
18170
  const customCodeOutput = outputData.getCustomCode();
@@ -17062,7 +18181,7 @@ var LoopNode2 = class _LoopNode extends Node {
17062
18181
  if (loopObj.data && typeof loopObj.data === "string") {
17063
18182
  try {
17064
18183
  return JSON.parse(loopObj.data);
17065
- } catch (e) {
18184
+ } catch {
17066
18185
  return loopObj.data;
17067
18186
  }
17068
18187
  }
@@ -18174,6 +19293,30 @@ var Client = class extends BaseClient {
18174
19293
  const result = await this.sendGrpcRequest("getExecutionCount", request, options);
18175
19294
  return result.getTotal();
18176
19295
  }
19296
+ /**
19297
+ * Get execution statistics for a specified time period
19298
+ * @param {GetExecutionStatsOptions} options - Request options
19299
+ * @param {string[]} [options.workflowIds] - Optional array of workflow IDs
19300
+ * @param {number} [options.days] - Number of days to look back (default: 7)
19301
+ * @param {string} [options.authKey] - The auth key for the request
19302
+ * @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
19303
+ */
19304
+ async getExecutionStats(options) {
19305
+ const request = new avs_pb22.GetExecutionStatsReq();
19306
+ if (options?.workflowIds && options.workflowIds.length > 0) {
19307
+ request.setWorkflowIdsList(options.workflowIds);
19308
+ }
19309
+ if (options?.days) {
19310
+ request.setDays(options.days);
19311
+ }
19312
+ const result = await this.sendGrpcRequest("getExecutionStats", request, options);
19313
+ return {
19314
+ total: result.getTotal(),
19315
+ succeeded: result.getSucceeded(),
19316
+ failed: result.getFailed(),
19317
+ avgExecutionTime: result.getAvgExecutionTime()
19318
+ };
19319
+ }
18177
19320
  /**
18178
19321
  * Get the status of an execution
18179
19322
  * @param {string} workflowId - The workflow id (taskId)
@@ -18283,33 +19426,39 @@ var Client = class extends BaseClient {
18283
19426
  * Cancel a workflow
18284
19427
  * @param {string} id - The workflow id
18285
19428
  * @param {RequestOptions} options - Request options
18286
- * @returns {Promise<boolean>} - Whether the workflow was successfully canceled
19429
+ * @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
18287
19430
  */
18288
19431
  async cancelWorkflow(id, options) {
18289
19432
  const request = new avs_pb22.IdReq();
18290
19433
  request.setId(id);
18291
- const result = await this.sendGrpcRequest(
18292
- "cancelTask",
18293
- request,
18294
- options
18295
- );
18296
- return result.getValue();
19434
+ const result = await this.sendGrpcRequest("cancelTask", request, options);
19435
+ return {
19436
+ success: result.getSuccess(),
19437
+ status: result.getStatus(),
19438
+ message: result.getMessage(),
19439
+ cancelledAt: result.getCancelledAt() || void 0,
19440
+ id: result.getId(),
19441
+ previousStatus: result.getPreviousStatus()
19442
+ };
18297
19443
  }
18298
19444
  /**
18299
19445
  * Delete a workflow
18300
19446
  * @param {string} id - The workflow id
18301
19447
  * @param {RequestOptions} options - Request options
18302
- * @returns {Promise<boolean>} - Whether the workflow was successfully deleted
19448
+ * @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
18303
19449
  */
18304
19450
  async deleteWorkflow(id, options) {
18305
19451
  const request = new avs_pb22.IdReq();
18306
19452
  request.setId(id);
18307
- const result = await this.sendGrpcRequest(
18308
- "deleteTask",
18309
- request,
18310
- options
18311
- );
18312
- return result.getValue();
19453
+ const result = await this.sendGrpcRequest("deleteTask", request, options);
19454
+ return {
19455
+ success: result.getSuccess(),
19456
+ status: result.getStatus(),
19457
+ message: result.getMessage(),
19458
+ deletedAt: result.getDeletedAt() || void 0,
19459
+ id: result.getId(),
19460
+ previousStatus: result.getPreviousStatus()
19461
+ };
18313
19462
  }
18314
19463
  /**
18315
19464
  * Create a new secret
@@ -18319,7 +19468,7 @@ var Client = class extends BaseClient {
18319
19468
  * @param {string} [options.workflowId] - The workflow ID to associate the secret with
18320
19469
  * @param {string} [options.orgId] - The organization ID to associate the secret with
18321
19470
  * @param {string} [options.authKey] - The auth key for the request
18322
- * @returns {Promise<boolean>} - True if the secret was created successfully
19471
+ * @returns {Promise<CreateSecretResponse>} - Structured response with creation details
18323
19472
  */
18324
19473
  async createSecret(name, value, options) {
18325
19474
  const request = new avs_pb22.CreateOrUpdateSecretReq();
@@ -18332,7 +19481,14 @@ var Client = class extends BaseClient {
18332
19481
  request.setOrgId(options.orgId);
18333
19482
  }
18334
19483
  const result = await this.sendGrpcRequest("createSecret", request, options);
18335
- return result.getValue();
19484
+ return {
19485
+ success: result.getSuccess(),
19486
+ status: result.getStatus(),
19487
+ message: result.getMessage(),
19488
+ createdAt: result.getCreatedAt() || void 0,
19489
+ secretName: result.getSecretName(),
19490
+ scope: result.getScope()
19491
+ };
18336
19492
  }
18337
19493
  /**
18338
19494
  * Update a secret
@@ -18342,7 +19498,7 @@ var Client = class extends BaseClient {
18342
19498
  * @param {string} [options.workflowId] - The workflow ID to associate the secret with
18343
19499
  * @param {string} [options.orgId] - The organization ID to associate the secret with
18344
19500
  * @param {string} [options.authKey] - The auth key for the request
18345
- * @returns {Promise<boolean>} - True if the secret was updated successfully
19501
+ * @returns {Promise<UpdateSecretResponse>} - Structured response with update details
18346
19502
  */
18347
19503
  async updateSecret(name, value, options) {
18348
19504
  const request = new avs_pb22.CreateOrUpdateSecretReq();
@@ -18355,7 +19511,14 @@ var Client = class extends BaseClient {
18355
19511
  request.setOrgId(options.orgId);
18356
19512
  }
18357
19513
  const result = await this.sendGrpcRequest("updateSecret", request, options);
18358
- return result.getValue();
19514
+ return {
19515
+ success: result.getSuccess(),
19516
+ status: result.getStatus(),
19517
+ message: result.getMessage(),
19518
+ updatedAt: result.getUpdatedAt() || void 0,
19519
+ secretName: result.getSecretName(),
19520
+ scope: result.getScope()
19521
+ };
18359
19522
  }
18360
19523
  /**
18361
19524
  * Get the list of secrets
@@ -18424,7 +19587,7 @@ var Client = class extends BaseClient {
18424
19587
  * @param {string} [options.workflowId] - The workflow ID to associate the secret with
18425
19588
  * @param {string} [options.orgId] - The organization ID to associate the secret with
18426
19589
  * @param {string} [options.authKey] - The auth key for the request
18427
- * @returns {Promise<boolean>} - True if the secret was deleted successfully
19590
+ * @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
18428
19591
  */
18429
19592
  async deleteSecret(name, options) {
18430
19593
  const request = new avs_pb22.DeleteSecretReq();
@@ -18436,7 +19599,14 @@ var Client = class extends BaseClient {
18436
19599
  request.setOrgId(options.orgId);
18437
19600
  }
18438
19601
  const result = await this.sendGrpcRequest("deleteSecret", request, options);
18439
- return result.getValue();
19602
+ return {
19603
+ success: result.getSuccess(),
19604
+ status: result.getStatus(),
19605
+ message: result.getMessage(),
19606
+ deletedAt: result.getDeletedAt() || void 0,
19607
+ secretName: result.getSecretName(),
19608
+ scope: result.getScope()
19609
+ };
18440
19610
  }
18441
19611
  /**
18442
19612
  * Run a node with inputs for testing purposes