@avaprotocol/sdk-js 2.6.13 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -173,6 +173,8 @@ var require_avs_pb = __commonJS({
173
173
  goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
174
174
  goog.exportSymbol("proto.aggregator.TriggerType", null, global);
175
175
  goog.exportSymbol("proto.aggregator.UpdateSecretResp", null, global);
176
+ goog.exportSymbol("proto.aggregator.WithdrawFundsReq", null, global);
177
+ goog.exportSymbol("proto.aggregator.WithdrawFundsResp", null, global);
176
178
  proto.aggregator.TokenMetadata = function(opt_data) {
177
179
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
180
  };
@@ -726,6 +728,20 @@ var require_avs_pb = __commonJS({
726
728
  if (goog.DEBUG && !COMPILED) {
727
729
  proto.aggregator.SetWalletReq.displayName = "proto.aggregator.SetWalletReq";
728
730
  }
731
+ proto.aggregator.WithdrawFundsReq = function(opt_data) {
732
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
733
+ };
734
+ goog.inherits(proto.aggregator.WithdrawFundsReq, jspb.Message);
735
+ if (goog.DEBUG && !COMPILED) {
736
+ proto.aggregator.WithdrawFundsReq.displayName = "proto.aggregator.WithdrawFundsReq";
737
+ }
738
+ proto.aggregator.WithdrawFundsResp = function(opt_data) {
739
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
740
+ };
741
+ goog.inherits(proto.aggregator.WithdrawFundsResp, jspb.Message);
742
+ if (goog.DEBUG && !COMPILED) {
743
+ proto.aggregator.WithdrawFundsResp.displayName = "proto.aggregator.WithdrawFundsResp";
744
+ }
729
745
  proto.aggregator.TriggerTaskReq = function(opt_data) {
730
746
  jspb.Message.initialize(this, opt_data, 0, -1, null, proto.aggregator.TriggerTaskReq.oneofGroups_);
731
747
  };
@@ -6994,6 +7010,7 @@ var require_avs_pb = __commonJS({
6994
7010
  endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
6995
7011
  success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
6996
7012
  error: jspb.Message.getFieldWithDefault(msg, 5, ""),
7013
+ index: jspb.Message.getFieldWithDefault(msg, 6, 0),
6997
7014
  stepsList: jspb.Message.toObjectList(
6998
7015
  msg.getStepsList(),
6999
7016
  proto.aggregator.Execution.Step.toObject,
@@ -7053,6 +7070,13 @@ var require_avs_pb = __commonJS({
7053
7070
  );
7054
7071
  msg.setError(value);
7055
7072
  break;
7073
+ case 6:
7074
+ var value = (
7075
+ /** @type {number} */
7076
+ reader.readInt64()
7077
+ );
7078
+ msg.setIndex(value);
7079
+ break;
7056
7080
  case 8:
7057
7081
  var value = new proto.aggregator.Execution.Step();
7058
7082
  reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
@@ -7107,6 +7131,13 @@ var require_avs_pb = __commonJS({
7107
7131
  f
7108
7132
  );
7109
7133
  }
7134
+ f = message.getIndex();
7135
+ if (f !== 0) {
7136
+ writer.writeInt64(
7137
+ 6,
7138
+ f
7139
+ );
7140
+ }
7110
7141
  f = message.getStepsList();
7111
7142
  if (f.length > 0) {
7112
7143
  writer.writeRepeatedMessage(
@@ -7941,6 +7972,15 @@ var require_avs_pb = __commonJS({
7941
7972
  proto.aggregator.Execution.prototype.setError = function(value) {
7942
7973
  return jspb.Message.setProto3StringField(this, 5, value);
7943
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
+ };
7944
7984
  proto.aggregator.Execution.prototype.getStepsList = function() {
7945
7985
  return (
7946
7986
  /** @type{!Array<!proto.aggregator.Execution.Step>} */
@@ -10474,6 +10514,422 @@ var require_avs_pb = __commonJS({
10474
10514
  proto.aggregator.SetWalletReq.prototype.setIsHidden = function(value) {
10475
10515
  return jspb.Message.setProto3BooleanField(this, 3, value);
10476
10516
  };
10517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10518
+ proto.aggregator.WithdrawFundsReq.prototype.toObject = function(opt_includeInstance) {
10519
+ return proto.aggregator.WithdrawFundsReq.toObject(opt_includeInstance, this);
10520
+ };
10521
+ proto.aggregator.WithdrawFundsReq.toObject = function(includeInstance, msg) {
10522
+ var f, obj = {
10523
+ recipientAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
10524
+ amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
10525
+ token: jspb.Message.getFieldWithDefault(msg, 3, ""),
10526
+ smartWalletAddress: jspb.Message.getFieldWithDefault(msg, 4, "")
10527
+ };
10528
+ if (includeInstance) {
10529
+ obj.$jspbMessageInstance = msg;
10530
+ }
10531
+ return obj;
10532
+ };
10533
+ }
10534
+ proto.aggregator.WithdrawFundsReq.deserializeBinary = function(bytes) {
10535
+ var reader = new jspb.BinaryReader(bytes);
10536
+ var msg = new proto.aggregator.WithdrawFundsReq();
10537
+ return proto.aggregator.WithdrawFundsReq.deserializeBinaryFromReader(msg, reader);
10538
+ };
10539
+ proto.aggregator.WithdrawFundsReq.deserializeBinaryFromReader = function(msg, reader) {
10540
+ while (reader.nextField()) {
10541
+ if (reader.isEndGroup()) {
10542
+ break;
10543
+ }
10544
+ var field = reader.getFieldNumber();
10545
+ switch (field) {
10546
+ case 1:
10547
+ var value = (
10548
+ /** @type {string} */
10549
+ reader.readString()
10550
+ );
10551
+ msg.setRecipientAddress(value);
10552
+ break;
10553
+ case 2:
10554
+ var value = (
10555
+ /** @type {string} */
10556
+ reader.readString()
10557
+ );
10558
+ msg.setAmount(value);
10559
+ break;
10560
+ case 3:
10561
+ var value = (
10562
+ /** @type {string} */
10563
+ reader.readString()
10564
+ );
10565
+ msg.setToken(value);
10566
+ break;
10567
+ case 4:
10568
+ var value = (
10569
+ /** @type {string} */
10570
+ reader.readString()
10571
+ );
10572
+ msg.setSmartWalletAddress(value);
10573
+ break;
10574
+ default:
10575
+ reader.skipField();
10576
+ break;
10577
+ }
10578
+ }
10579
+ return msg;
10580
+ };
10581
+ proto.aggregator.WithdrawFundsReq.prototype.serializeBinary = function() {
10582
+ var writer = new jspb.BinaryWriter();
10583
+ proto.aggregator.WithdrawFundsReq.serializeBinaryToWriter(this, writer);
10584
+ return writer.getResultBuffer();
10585
+ };
10586
+ proto.aggregator.WithdrawFundsReq.serializeBinaryToWriter = function(message, writer) {
10587
+ var f = void 0;
10588
+ f = message.getRecipientAddress();
10589
+ if (f.length > 0) {
10590
+ writer.writeString(
10591
+ 1,
10592
+ f
10593
+ );
10594
+ }
10595
+ f = message.getAmount();
10596
+ if (f.length > 0) {
10597
+ writer.writeString(
10598
+ 2,
10599
+ f
10600
+ );
10601
+ }
10602
+ f = message.getToken();
10603
+ if (f.length > 0) {
10604
+ writer.writeString(
10605
+ 3,
10606
+ f
10607
+ );
10608
+ }
10609
+ f = message.getSmartWalletAddress();
10610
+ if (f.length > 0) {
10611
+ writer.writeString(
10612
+ 4,
10613
+ f
10614
+ );
10615
+ }
10616
+ };
10617
+ proto.aggregator.WithdrawFundsReq.prototype.getRecipientAddress = function() {
10618
+ return (
10619
+ /** @type {string} */
10620
+ jspb.Message.getFieldWithDefault(this, 1, "")
10621
+ );
10622
+ };
10623
+ proto.aggregator.WithdrawFundsReq.prototype.setRecipientAddress = function(value) {
10624
+ return jspb.Message.setProto3StringField(this, 1, value);
10625
+ };
10626
+ proto.aggregator.WithdrawFundsReq.prototype.getAmount = function() {
10627
+ return (
10628
+ /** @type {string} */
10629
+ jspb.Message.getFieldWithDefault(this, 2, "")
10630
+ );
10631
+ };
10632
+ proto.aggregator.WithdrawFundsReq.prototype.setAmount = function(value) {
10633
+ return jspb.Message.setProto3StringField(this, 2, value);
10634
+ };
10635
+ proto.aggregator.WithdrawFundsReq.prototype.getToken = function() {
10636
+ return (
10637
+ /** @type {string} */
10638
+ jspb.Message.getFieldWithDefault(this, 3, "")
10639
+ );
10640
+ };
10641
+ proto.aggregator.WithdrawFundsReq.prototype.setToken = function(value) {
10642
+ return jspb.Message.setProto3StringField(this, 3, value);
10643
+ };
10644
+ proto.aggregator.WithdrawFundsReq.prototype.getSmartWalletAddress = function() {
10645
+ return (
10646
+ /** @type {string} */
10647
+ jspb.Message.getFieldWithDefault(this, 4, "")
10648
+ );
10649
+ };
10650
+ proto.aggregator.WithdrawFundsReq.prototype.setSmartWalletAddress = function(value) {
10651
+ return jspb.Message.setProto3StringField(this, 4, value);
10652
+ };
10653
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10654
+ proto.aggregator.WithdrawFundsResp.prototype.toObject = function(opt_includeInstance) {
10655
+ return proto.aggregator.WithdrawFundsResp.toObject(opt_includeInstance, this);
10656
+ };
10657
+ proto.aggregator.WithdrawFundsResp.toObject = function(includeInstance, msg) {
10658
+ var f, obj = {
10659
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
10660
+ status: jspb.Message.getFieldWithDefault(msg, 2, ""),
10661
+ message: jspb.Message.getFieldWithDefault(msg, 3, ""),
10662
+ userOpHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
10663
+ transactionHash: jspb.Message.getFieldWithDefault(msg, 5, ""),
10664
+ submittedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
10665
+ smartWalletAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
10666
+ recipientAddress: jspb.Message.getFieldWithDefault(msg, 8, ""),
10667
+ amount: jspb.Message.getFieldWithDefault(msg, 9, ""),
10668
+ token: jspb.Message.getFieldWithDefault(msg, 10, "")
10669
+ };
10670
+ if (includeInstance) {
10671
+ obj.$jspbMessageInstance = msg;
10672
+ }
10673
+ return obj;
10674
+ };
10675
+ }
10676
+ proto.aggregator.WithdrawFundsResp.deserializeBinary = function(bytes) {
10677
+ var reader = new jspb.BinaryReader(bytes);
10678
+ var msg = new proto.aggregator.WithdrawFundsResp();
10679
+ return proto.aggregator.WithdrawFundsResp.deserializeBinaryFromReader(msg, reader);
10680
+ };
10681
+ proto.aggregator.WithdrawFundsResp.deserializeBinaryFromReader = function(msg, reader) {
10682
+ while (reader.nextField()) {
10683
+ if (reader.isEndGroup()) {
10684
+ break;
10685
+ }
10686
+ var field = reader.getFieldNumber();
10687
+ switch (field) {
10688
+ case 1:
10689
+ var value = (
10690
+ /** @type {boolean} */
10691
+ reader.readBool()
10692
+ );
10693
+ msg.setSuccess(value);
10694
+ break;
10695
+ case 2:
10696
+ var value = (
10697
+ /** @type {string} */
10698
+ reader.readString()
10699
+ );
10700
+ msg.setStatus(value);
10701
+ break;
10702
+ case 3:
10703
+ var value = (
10704
+ /** @type {string} */
10705
+ reader.readString()
10706
+ );
10707
+ msg.setMessage(value);
10708
+ break;
10709
+ case 4:
10710
+ var value = (
10711
+ /** @type {string} */
10712
+ reader.readString()
10713
+ );
10714
+ msg.setUserOpHash(value);
10715
+ break;
10716
+ case 5:
10717
+ var value = (
10718
+ /** @type {string} */
10719
+ reader.readString()
10720
+ );
10721
+ msg.setTransactionHash(value);
10722
+ break;
10723
+ case 6:
10724
+ var value = (
10725
+ /** @type {number} */
10726
+ reader.readInt64()
10727
+ );
10728
+ msg.setSubmittedAt(value);
10729
+ break;
10730
+ case 7:
10731
+ var value = (
10732
+ /** @type {string} */
10733
+ reader.readString()
10734
+ );
10735
+ msg.setSmartWalletAddress(value);
10736
+ break;
10737
+ case 8:
10738
+ var value = (
10739
+ /** @type {string} */
10740
+ reader.readString()
10741
+ );
10742
+ msg.setRecipientAddress(value);
10743
+ break;
10744
+ case 9:
10745
+ var value = (
10746
+ /** @type {string} */
10747
+ reader.readString()
10748
+ );
10749
+ msg.setAmount(value);
10750
+ break;
10751
+ case 10:
10752
+ var value = (
10753
+ /** @type {string} */
10754
+ reader.readString()
10755
+ );
10756
+ msg.setToken(value);
10757
+ break;
10758
+ default:
10759
+ reader.skipField();
10760
+ break;
10761
+ }
10762
+ }
10763
+ return msg;
10764
+ };
10765
+ proto.aggregator.WithdrawFundsResp.prototype.serializeBinary = function() {
10766
+ var writer = new jspb.BinaryWriter();
10767
+ proto.aggregator.WithdrawFundsResp.serializeBinaryToWriter(this, writer);
10768
+ return writer.getResultBuffer();
10769
+ };
10770
+ proto.aggregator.WithdrawFundsResp.serializeBinaryToWriter = function(message, writer) {
10771
+ var f = void 0;
10772
+ f = message.getSuccess();
10773
+ if (f) {
10774
+ writer.writeBool(
10775
+ 1,
10776
+ f
10777
+ );
10778
+ }
10779
+ f = message.getStatus();
10780
+ if (f.length > 0) {
10781
+ writer.writeString(
10782
+ 2,
10783
+ f
10784
+ );
10785
+ }
10786
+ f = message.getMessage();
10787
+ if (f.length > 0) {
10788
+ writer.writeString(
10789
+ 3,
10790
+ f
10791
+ );
10792
+ }
10793
+ f = message.getUserOpHash();
10794
+ if (f.length > 0) {
10795
+ writer.writeString(
10796
+ 4,
10797
+ f
10798
+ );
10799
+ }
10800
+ f = message.getTransactionHash();
10801
+ if (f.length > 0) {
10802
+ writer.writeString(
10803
+ 5,
10804
+ f
10805
+ );
10806
+ }
10807
+ f = message.getSubmittedAt();
10808
+ if (f !== 0) {
10809
+ writer.writeInt64(
10810
+ 6,
10811
+ f
10812
+ );
10813
+ }
10814
+ f = message.getSmartWalletAddress();
10815
+ if (f.length > 0) {
10816
+ writer.writeString(
10817
+ 7,
10818
+ f
10819
+ );
10820
+ }
10821
+ f = message.getRecipientAddress();
10822
+ if (f.length > 0) {
10823
+ writer.writeString(
10824
+ 8,
10825
+ f
10826
+ );
10827
+ }
10828
+ f = message.getAmount();
10829
+ if (f.length > 0) {
10830
+ writer.writeString(
10831
+ 9,
10832
+ f
10833
+ );
10834
+ }
10835
+ f = message.getToken();
10836
+ if (f.length > 0) {
10837
+ writer.writeString(
10838
+ 10,
10839
+ f
10840
+ );
10841
+ }
10842
+ };
10843
+ proto.aggregator.WithdrawFundsResp.prototype.getSuccess = function() {
10844
+ return (
10845
+ /** @type {boolean} */
10846
+ jspb.Message.getBooleanFieldWithDefault(this, 1, false)
10847
+ );
10848
+ };
10849
+ proto.aggregator.WithdrawFundsResp.prototype.setSuccess = function(value) {
10850
+ return jspb.Message.setProto3BooleanField(this, 1, value);
10851
+ };
10852
+ proto.aggregator.WithdrawFundsResp.prototype.getStatus = function() {
10853
+ return (
10854
+ /** @type {string} */
10855
+ jspb.Message.getFieldWithDefault(this, 2, "")
10856
+ );
10857
+ };
10858
+ proto.aggregator.WithdrawFundsResp.prototype.setStatus = function(value) {
10859
+ return jspb.Message.setProto3StringField(this, 2, value);
10860
+ };
10861
+ proto.aggregator.WithdrawFundsResp.prototype.getMessage = function() {
10862
+ return (
10863
+ /** @type {string} */
10864
+ jspb.Message.getFieldWithDefault(this, 3, "")
10865
+ );
10866
+ };
10867
+ proto.aggregator.WithdrawFundsResp.prototype.setMessage = function(value) {
10868
+ return jspb.Message.setProto3StringField(this, 3, value);
10869
+ };
10870
+ proto.aggregator.WithdrawFundsResp.prototype.getUserOpHash = function() {
10871
+ return (
10872
+ /** @type {string} */
10873
+ jspb.Message.getFieldWithDefault(this, 4, "")
10874
+ );
10875
+ };
10876
+ proto.aggregator.WithdrawFundsResp.prototype.setUserOpHash = function(value) {
10877
+ return jspb.Message.setProto3StringField(this, 4, value);
10878
+ };
10879
+ proto.aggregator.WithdrawFundsResp.prototype.getTransactionHash = function() {
10880
+ return (
10881
+ /** @type {string} */
10882
+ jspb.Message.getFieldWithDefault(this, 5, "")
10883
+ );
10884
+ };
10885
+ proto.aggregator.WithdrawFundsResp.prototype.setTransactionHash = function(value) {
10886
+ return jspb.Message.setProto3StringField(this, 5, value);
10887
+ };
10888
+ proto.aggregator.WithdrawFundsResp.prototype.getSubmittedAt = function() {
10889
+ return (
10890
+ /** @type {number} */
10891
+ jspb.Message.getFieldWithDefault(this, 6, 0)
10892
+ );
10893
+ };
10894
+ proto.aggregator.WithdrawFundsResp.prototype.setSubmittedAt = function(value) {
10895
+ return jspb.Message.setProto3IntField(this, 6, value);
10896
+ };
10897
+ proto.aggregator.WithdrawFundsResp.prototype.getSmartWalletAddress = function() {
10898
+ return (
10899
+ /** @type {string} */
10900
+ jspb.Message.getFieldWithDefault(this, 7, "")
10901
+ );
10902
+ };
10903
+ proto.aggregator.WithdrawFundsResp.prototype.setSmartWalletAddress = function(value) {
10904
+ return jspb.Message.setProto3StringField(this, 7, value);
10905
+ };
10906
+ proto.aggregator.WithdrawFundsResp.prototype.getRecipientAddress = function() {
10907
+ return (
10908
+ /** @type {string} */
10909
+ jspb.Message.getFieldWithDefault(this, 8, "")
10910
+ );
10911
+ };
10912
+ proto.aggregator.WithdrawFundsResp.prototype.setRecipientAddress = function(value) {
10913
+ return jspb.Message.setProto3StringField(this, 8, value);
10914
+ };
10915
+ proto.aggregator.WithdrawFundsResp.prototype.getAmount = function() {
10916
+ return (
10917
+ /** @type {string} */
10918
+ jspb.Message.getFieldWithDefault(this, 9, "")
10919
+ );
10920
+ };
10921
+ proto.aggregator.WithdrawFundsResp.prototype.setAmount = function(value) {
10922
+ return jspb.Message.setProto3StringField(this, 9, value);
10923
+ };
10924
+ proto.aggregator.WithdrawFundsResp.prototype.getToken = function() {
10925
+ return (
10926
+ /** @type {string} */
10927
+ jspb.Message.getFieldWithDefault(this, 10, "")
10928
+ );
10929
+ };
10930
+ proto.aggregator.WithdrawFundsResp.prototype.setToken = function(value) {
10931
+ return jspb.Message.setProto3StringField(this, 10, value);
10932
+ };
10477
10933
  proto.aggregator.TriggerTaskReq.oneofGroups_ = [[3, 4, 5, 6, 7]];
10478
10934
  proto.aggregator.TriggerTaskReq.TriggerOutputCase = {
10479
10935
  TRIGGER_OUTPUT_NOT_SET: 0,
@@ -13635,7 +14091,6 @@ var require_avs_pb = __commonJS({
13635
14091
  var f, obj = {
13636
14092
  success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
13637
14093
  error: jspb.Message.getFieldWithDefault(msg, 3, ""),
13638
- nodeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
13639
14094
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
13640
14095
  executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
13641
14096
  ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
@@ -13680,13 +14135,6 @@ var require_avs_pb = __commonJS({
13680
14135
  );
13681
14136
  msg.setError(value);
13682
14137
  break;
13683
- case 4:
13684
- var value = (
13685
- /** @type {string} */
13686
- reader.readString()
13687
- );
13688
- msg.setNodeId(value);
13689
- break;
13690
14138
  case 5:
13691
14139
  var value = new google_protobuf_struct_pb5.Value();
13692
14140
  reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
@@ -13770,13 +14218,6 @@ var require_avs_pb = __commonJS({
13770
14218
  f
13771
14219
  );
13772
14220
  }
13773
- f = message.getNodeId();
13774
- if (f.length > 0) {
13775
- writer.writeString(
13776
- 4,
13777
- f
13778
- );
13779
- }
13780
14221
  f = message.getMetadata();
13781
14222
  if (f != null) {
13782
14223
  writer.writeMessage(
@@ -13884,15 +14325,6 @@ var require_avs_pb = __commonJS({
13884
14325
  proto.aggregator.RunNodeWithInputsResp.prototype.setError = function(value) {
13885
14326
  return jspb.Message.setProto3StringField(this, 3, value);
13886
14327
  };
13887
- proto.aggregator.RunNodeWithInputsResp.prototype.getNodeId = function() {
13888
- return (
13889
- /** @type {string} */
13890
- jspb.Message.getFieldWithDefault(this, 4, "")
13891
- );
13892
- };
13893
- proto.aggregator.RunNodeWithInputsResp.prototype.setNodeId = function(value) {
13894
- return jspb.Message.setProto3StringField(this, 4, value);
13895
- };
13896
14328
  proto.aggregator.RunNodeWithInputsResp.prototype.getMetadata = function() {
13897
14329
  return (
13898
14330
  /** @type{?proto.google.protobuf.Value} */
@@ -14197,7 +14629,6 @@ var require_avs_pb = __commonJS({
14197
14629
  var f, obj = {
14198
14630
  success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
14199
14631
  error: jspb.Message.getFieldWithDefault(msg, 2, ""),
14200
- triggerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
14201
14632
  metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
14202
14633
  executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
14203
14634
  blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
@@ -14238,13 +14669,6 @@ var require_avs_pb = __commonJS({
14238
14669
  );
14239
14670
  msg.setError(value);
14240
14671
  break;
14241
- case 3:
14242
- var value = (
14243
- /** @type {string} */
14244
- reader.readString()
14245
- );
14246
- msg.setTriggerId(value);
14247
- break;
14248
14672
  case 4:
14249
14673
  var value = new google_protobuf_struct_pb5.Value();
14250
14674
  reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
@@ -14308,13 +14732,6 @@ var require_avs_pb = __commonJS({
14308
14732
  f
14309
14733
  );
14310
14734
  }
14311
- f = message.getTriggerId();
14312
- if (f.length > 0) {
14313
- writer.writeString(
14314
- 3,
14315
- f
14316
- );
14317
- }
14318
14735
  f = message.getMetadata();
14319
14736
  if (f != null) {
14320
14737
  writer.writeMessage(
@@ -14390,15 +14807,6 @@ var require_avs_pb = __commonJS({
14390
14807
  proto.aggregator.RunTriggerResp.prototype.setError = function(value) {
14391
14808
  return jspb.Message.setProto3StringField(this, 2, value);
14392
14809
  };
14393
- proto.aggregator.RunTriggerResp.prototype.getTriggerId = function() {
14394
- return (
14395
- /** @type {string} */
14396
- jspb.Message.getFieldWithDefault(this, 3, "")
14397
- );
14398
- };
14399
- proto.aggregator.RunTriggerResp.prototype.setTriggerId = function(value) {
14400
- return jspb.Message.setProto3StringField(this, 3, value);
14401
- };
14402
14810
  proto.aggregator.RunTriggerResp.prototype.getMetadata = function() {
14403
14811
  return (
14404
14812
  /** @type{?proto.google.protobuf.Value} */
@@ -14881,7 +15289,8 @@ var require_avs_pb = __commonJS({
14881
15289
  EXECUTION_STATUS_UNSPECIFIED: 0,
14882
15290
  EXECUTION_STATUS_PENDING: 1,
14883
15291
  EXECUTION_STATUS_COMPLETED: 2,
14884
- EXECUTION_STATUS_FAILED: 3
15292
+ EXECUTION_STATUS_FAILED: 3,
15293
+ EXECUTION_STATUS_PARTIAL_SUCCESS: 4
14885
15294
  };
14886
15295
  goog.object.extend(exports, proto.aggregator);
14887
15296
  }
@@ -15308,6 +15717,24 @@ var require_avs_grpc_pb = __commonJS({
15308
15717
  function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
15309
15718
  return avs_pb23.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
15310
15719
  }
15720
+ function serialize_aggregator_WithdrawFundsReq(arg) {
15721
+ if (!(arg instanceof avs_pb23.WithdrawFundsReq)) {
15722
+ throw new Error("Expected argument of type aggregator.WithdrawFundsReq");
15723
+ }
15724
+ return Buffer.from(arg.serializeBinary());
15725
+ }
15726
+ function deserialize_aggregator_WithdrawFundsReq(buffer_arg) {
15727
+ return avs_pb23.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
15728
+ }
15729
+ function serialize_aggregator_WithdrawFundsResp(arg) {
15730
+ if (!(arg instanceof avs_pb23.WithdrawFundsResp)) {
15731
+ throw new Error("Expected argument of type aggregator.WithdrawFundsResp");
15732
+ }
15733
+ return Buffer.from(arg.serializeBinary());
15734
+ }
15735
+ function deserialize_aggregator_WithdrawFundsResp(buffer_arg) {
15736
+ return avs_pb23.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
15737
+ }
15311
15738
  var AggregatorService = exports.AggregatorService = {
15312
15739
  // Exchange for an Auth Key to authenticate in subsequent request
15313
15740
  getKey: {
@@ -15378,6 +15805,18 @@ var require_avs_grpc_pb = __commonJS({
15378
15805
  responseSerialize: serialize_aggregator_ListWalletResp,
15379
15806
  responseDeserialize: deserialize_aggregator_ListWalletResp
15380
15807
  },
15808
+ // Withdraw funds from a smart wallet using UserOp
15809
+ withdrawFunds: {
15810
+ path: "/aggregator.Aggregator/WithdrawFunds",
15811
+ requestStream: false,
15812
+ responseStream: false,
15813
+ requestType: avs_pb23.WithdrawFundsReq,
15814
+ responseType: avs_pb23.WithdrawFundsResp,
15815
+ requestSerialize: serialize_aggregator_WithdrawFundsReq,
15816
+ requestDeserialize: deserialize_aggregator_WithdrawFundsReq,
15817
+ responseSerialize: serialize_aggregator_WithdrawFundsResp,
15818
+ responseDeserialize: deserialize_aggregator_WithdrawFundsResp
15819
+ },
15381
15820
  // Task Management Operation
15382
15821
  createTask: {
15383
15822
  path: "/aggregator.Aggregator/CreateTask",
@@ -17719,6 +18158,7 @@ var Execution2 = class _Execution {
17719
18158
  this.endAt = props.endAt;
17720
18159
  this.success = props.success;
17721
18160
  this.error = props.error;
18161
+ this.index = props.index;
17722
18162
  this.steps = props.steps.map((s) => new step_default(s));
17723
18163
  }
17724
18164
  /**
@@ -17732,6 +18172,7 @@ var Execution2 = class _Execution {
17732
18172
  endAt: this.endAt,
17733
18173
  success: this.success,
17734
18174
  error: this.error,
18175
+ index: this.index,
17735
18176
  steps: this.steps.map((step) => step.toJson())
17736
18177
  };
17737
18178
  }
@@ -17742,6 +18183,7 @@ var Execution2 = class _Execution {
17742
18183
  endAt: execution.getEndAt(),
17743
18184
  success: execution.getSuccess(),
17744
18185
  error: execution.getError(),
18186
+ index: execution.getIndex(),
17745
18187
  steps: execution.getStepsList().map((step) => step_default.fromResponse(step))
17746
18188
  });
17747
18189
  }
@@ -18128,6 +18570,41 @@ var Client = class extends BaseClient {
18128
18570
  canceledTaskCount: result.getCanceledTaskCount()
18129
18571
  };
18130
18572
  }
18573
+ /**
18574
+ * Withdraw funds from a smart wallet using UserOp
18575
+ * @param {WithdrawFundsRequest} withdrawRequest - The withdraw request parameters
18576
+ * @param {string} withdrawRequest.recipientAddress - The recipient address to send funds to
18577
+ * @param {string} withdrawRequest.amount - The amount to withdraw in wei for ETH or smallest token unit for ERC20
18578
+ * @param {string} withdrawRequest.token - Token type: "ETH" for native ETH, or contract address for ERC20 tokens
18579
+ * @param {string} withdrawRequest.smartWalletAddress - Required: Smart wallet address to withdraw from (must be from user's getWallet() call)
18580
+ * @param {RequestOptions} options - Request options
18581
+ * @returns {Promise<WithdrawFundsResponse>} - The response from the withdraw operation
18582
+ */
18583
+ async withdrawFunds({
18584
+ recipientAddress,
18585
+ amount,
18586
+ token,
18587
+ smartWalletAddress
18588
+ }, options) {
18589
+ const request = new avs_pb22.WithdrawFundsReq();
18590
+ request.setRecipientAddress(recipientAddress);
18591
+ request.setAmount(amount);
18592
+ request.setToken(token);
18593
+ request.setSmartWalletAddress(smartWalletAddress);
18594
+ const result = await this.sendGrpcRequest("withdrawFunds", request, options);
18595
+ return {
18596
+ success: result.getSuccess(),
18597
+ status: result.getStatus(),
18598
+ message: result.getMessage(),
18599
+ userOpHash: result.getUserOpHash() || void 0,
18600
+ transactionHash: result.getTransactionHash() || void 0,
18601
+ submittedAt: result.getSubmittedAt() || void 0,
18602
+ smartWalletAddress: result.getSmartWalletAddress(),
18603
+ recipientAddress: result.getRecipientAddress(),
18604
+ amount: result.getAmount(),
18605
+ token: result.getToken()
18606
+ };
18607
+ }
18131
18608
  /**
18132
18609
  * Submit a workflow to the AVS server; once the workflow is submitted, it cannot be modified
18133
18610
  * @param {Workflow} workflow - Workflow object to submit