@sats-connect/core 0.14.0-37f2f13 → 0.14.0-678332e

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
@@ -1,5 +1,5 @@
1
1
  // src/request/index.ts
2
- import * as v53 from "valibot";
2
+ import * as v54 from "valibot";
3
3
 
4
4
  // src/provider/types.ts
5
5
  import * as v4 from "valibot";
@@ -243,7 +243,7 @@ var sanitizeAddressPurposeRequest = (method, params) => {
243
243
  };
244
244
 
245
245
  // src/request/types/btcMethods.ts
246
- import * as v18 from "valibot";
246
+ import * as v19 from "valibot";
247
247
 
248
248
  // src/request/types/walletMethods/addNetwork.ts
249
249
  import * as v5 from "valibot";
@@ -465,50 +465,67 @@ var getWalletTypeRequestMessageSchema = v14.object({
465
465
  }).entries
466
466
  });
467
467
 
468
- // src/request/types/walletMethods/openReceive.ts
468
+ // src/request/types/walletMethods/openBridge.ts
469
469
  import * as v15 from "valibot";
470
- var openReceiveMethodName = "wallet_openReceive";
471
- var openReceiveParamsSchema = v15.object({
472
- address: v15.string()
470
+ var openBridgeMethodName = "wallet_openBridge";
471
+ var openBridgeParamsSchema = v15.object({
472
+ fromAsset: v15.string(),
473
+ toAsset: v15.string()
473
474
  });
474
- var openReceiveResultSchema = v15.nullish(v15.null());
475
- var openReceiveRequestMessageSchema = v15.object({
475
+ var openBridgeResultSchema = v15.nullish(v15.null());
476
+ var openBridgeRequestMessageSchema = v15.object({
476
477
  ...rpcRequestMessageSchema.entries,
477
478
  ...v15.object({
478
- method: v15.literal(openReceiveMethodName),
479
- params: openReceiveParamsSchema,
479
+ method: v15.literal(openBridgeMethodName),
480
+ params: openBridgeParamsSchema,
480
481
  id: v15.string()
481
482
  }).entries
482
483
  });
483
484
 
484
- // src/request/types/walletMethods/renouncePermissions.ts
485
+ // src/request/types/walletMethods/openReceive.ts
485
486
  import * as v16 from "valibot";
486
- var renouncePermissionsMethodName = "wallet_renouncePermissions";
487
- var renouncePermissionsParamsSchema = v16.nullish(v16.null());
488
- var renouncePermissionsResultSchema = v16.nullish(v16.null());
489
- var renouncePermissionsRequestMessageSchema = v16.object({
487
+ var openReceiveMethodName = "wallet_openReceive";
488
+ var openReceiveParamsSchema = v16.object({
489
+ address: v16.string()
490
+ });
491
+ var openReceiveResultSchema = addressSchema;
492
+ var openReceiveRequestMessageSchema = v16.object({
490
493
  ...rpcRequestMessageSchema.entries,
491
494
  ...v16.object({
492
- method: v16.literal(renouncePermissionsMethodName),
493
- params: renouncePermissionsParamsSchema,
495
+ method: v16.literal(openReceiveMethodName),
496
+ params: openReceiveParamsSchema,
494
497
  id: v16.string()
495
498
  }).entries
496
499
  });
497
500
 
498
- // src/request/types/walletMethods/requestPermissions.ts
501
+ // src/request/types/walletMethods/renouncePermissions.ts
499
502
  import * as v17 from "valibot";
500
- var requestPermissionsMethodName = "wallet_requestPermissions";
501
- var requestPermissionsParamsSchema = v17.nullish(v17.array(PermissionRequestParams));
502
- var requestPermissionsResultSchema = v17.literal(true);
503
- var requestPermissionsRequestMessageSchema = v17.object({
503
+ var renouncePermissionsMethodName = "wallet_renouncePermissions";
504
+ var renouncePermissionsParamsSchema = v17.nullish(v17.null());
505
+ var renouncePermissionsResultSchema = v17.nullish(v17.null());
506
+ var renouncePermissionsRequestMessageSchema = v17.object({
504
507
  ...rpcRequestMessageSchema.entries,
505
508
  ...v17.object({
506
- method: v17.literal(requestPermissionsMethodName),
507
- params: requestPermissionsParamsSchema,
509
+ method: v17.literal(renouncePermissionsMethodName),
510
+ params: renouncePermissionsParamsSchema,
508
511
  id: v17.string()
509
512
  }).entries
510
513
  });
511
514
 
515
+ // src/request/types/walletMethods/requestPermissions.ts
516
+ import * as v18 from "valibot";
517
+ var requestPermissionsMethodName = "wallet_requestPermissions";
518
+ var requestPermissionsParamsSchema = v18.nullish(v18.array(PermissionRequestParams));
519
+ var requestPermissionsResultSchema = v18.literal(true);
520
+ var requestPermissionsRequestMessageSchema = v18.object({
521
+ ...rpcRequestMessageSchema.entries,
522
+ ...v18.object({
523
+ method: v18.literal(requestPermissionsMethodName),
524
+ params: requestPermissionsParamsSchema,
525
+ id: v18.string()
526
+ }).entries
527
+ });
528
+
512
529
  // src/request/types/btcMethods.ts
513
530
  var ProviderPlatform = /* @__PURE__ */ ((ProviderPlatform2) => {
514
531
  ProviderPlatform2["Web"] = "web";
@@ -516,58 +533,58 @@ var ProviderPlatform = /* @__PURE__ */ ((ProviderPlatform2) => {
516
533
  return ProviderPlatform2;
517
534
  })(ProviderPlatform || {});
518
535
  var getInfoMethodName = "getInfo";
519
- var getInfoParamsSchema = v18.nullish(v18.null());
520
- var getInfoResultSchema = v18.object({
536
+ var getInfoParamsSchema = v19.nullish(v19.null());
537
+ var getInfoResultSchema = v19.object({
521
538
  /**
522
539
  * Version of the wallet.
523
540
  */
524
- version: v18.string(),
541
+ version: v19.string(),
525
542
  /**
526
543
  * The platform the wallet is running on (web or mobile).
527
544
  */
528
- platform: v18.optional(v18.enum(ProviderPlatform)),
545
+ platform: v19.optional(v19.enum(ProviderPlatform)),
529
546
  /**
530
547
  * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
531
548
  */
532
- methods: v18.optional(v18.array(v18.string())),
549
+ methods: v19.optional(v19.array(v19.string())),
533
550
  /**
534
551
  * List of WBIP standards supported by the wallet. Not currently used.
535
552
  */
536
- supports: v18.array(v18.string())
553
+ supports: v19.array(v19.string())
537
554
  });
538
- var getInfoRequestMessageSchema = v18.object({
555
+ var getInfoRequestMessageSchema = v19.object({
539
556
  ...rpcRequestMessageSchema.entries,
540
- ...v18.object({
541
- method: v18.literal(getInfoMethodName),
557
+ ...v19.object({
558
+ method: v19.literal(getInfoMethodName),
542
559
  params: getInfoParamsSchema,
543
- id: v18.string()
560
+ id: v19.string()
544
561
  }).entries
545
562
  });
546
563
  var getAddressesMethodName = "getAddresses";
547
- var getAddressesParamsSchema = v18.object({
564
+ var getAddressesParamsSchema = v19.object({
548
565
  /**
549
566
  * The purposes for which to generate addresses. See
550
567
  * {@linkcode AddressPurpose} for available purposes.
551
568
  */
552
- purposes: v18.array(v18.enum(AddressPurpose)),
569
+ purposes: v19.array(v19.enum(AddressPurpose)),
553
570
  /**
554
571
  * A message to be displayed to the user in the request prompt.
555
572
  */
556
- message: v18.optional(v18.string())
573
+ message: v19.optional(v19.string())
557
574
  });
558
- var getAddressesResultSchema = v18.object({
575
+ var getAddressesResultSchema = v19.object({
559
576
  /**
560
577
  * The addresses generated for the given purposes.
561
578
  */
562
- addresses: v18.array(addressSchema),
579
+ addresses: v19.array(addressSchema),
563
580
  network: getNetworkResultSchema
564
581
  });
565
- var getAddressesRequestMessageSchema = v18.object({
582
+ var getAddressesRequestMessageSchema = v19.object({
566
583
  ...rpcRequestMessageSchema.entries,
567
- ...v18.object({
568
- method: v18.literal(getAddressesMethodName),
584
+ ...v19.object({
585
+ method: v19.literal(getAddressesMethodName),
569
586
  params: getAddressesParamsSchema,
570
- id: v18.string()
587
+ id: v19.string()
571
588
  }).entries
572
589
  });
573
590
  var signMessageMethodName = "signMessage";
@@ -576,606 +593,606 @@ var MessageSigningProtocols = /* @__PURE__ */ ((MessageSigningProtocols2) => {
576
593
  MessageSigningProtocols2["BIP322"] = "BIP322";
577
594
  return MessageSigningProtocols2;
578
595
  })(MessageSigningProtocols || {});
579
- var signMessageParamsSchema = v18.object({
596
+ var signMessageParamsSchema = v19.object({
580
597
  /**
581
598
  * The address used for signing.
582
599
  **/
583
- address: v18.string(),
600
+ address: v19.string(),
584
601
  /**
585
602
  * The message to sign.
586
603
  **/
587
- message: v18.string(),
604
+ message: v19.string(),
588
605
  /**
589
606
  * The protocol to use for signing the message.
590
607
  */
591
- protocol: v18.optional(v18.enum(MessageSigningProtocols))
608
+ protocol: v19.optional(v19.enum(MessageSigningProtocols))
592
609
  });
593
- var signMessageResultSchema = v18.object({
610
+ var signMessageResultSchema = v19.object({
594
611
  /**
595
612
  * The signature of the message.
596
613
  */
597
- signature: v18.string(),
614
+ signature: v19.string(),
598
615
  /**
599
616
  * hash of the message.
600
617
  */
601
- messageHash: v18.string(),
618
+ messageHash: v19.string(),
602
619
  /**
603
620
  * The address used for signing.
604
621
  */
605
- address: v18.string(),
622
+ address: v19.string(),
606
623
  /**
607
624
  * The protocol to use for signing the message.
608
625
  */
609
- protocol: v18.enum(MessageSigningProtocols)
626
+ protocol: v19.enum(MessageSigningProtocols)
610
627
  });
611
- var signMessageRequestMessageSchema = v18.object({
628
+ var signMessageRequestMessageSchema = v19.object({
612
629
  ...rpcRequestMessageSchema.entries,
613
- ...v18.object({
614
- method: v18.literal(signMessageMethodName),
630
+ ...v19.object({
631
+ method: v19.literal(signMessageMethodName),
615
632
  params: signMessageParamsSchema,
616
- id: v18.string()
633
+ id: v19.string()
617
634
  }).entries
618
635
  });
619
636
  var sendTransferMethodName = "sendTransfer";
620
- var sendTransferParamsSchema = v18.object({
637
+ var sendTransferParamsSchema = v19.object({
621
638
  /**
622
639
  * Array of recipients to send to.
623
640
  * The amount to send to each recipient is in satoshis.
624
641
  */
625
- recipients: v18.array(
626
- v18.object({
627
- address: v18.string(),
628
- amount: v18.number()
642
+ recipients: v19.array(
643
+ v19.object({
644
+ address: v19.string(),
645
+ amount: v19.number()
629
646
  })
630
647
  )
631
648
  });
632
- var sendTransferResultSchema = v18.object({
649
+ var sendTransferResultSchema = v19.object({
633
650
  /**
634
651
  * The transaction id as a hex-encoded string.
635
652
  */
636
- txid: v18.string()
653
+ txid: v19.string()
637
654
  });
638
- var sendTransferRequestMessageSchema = v18.object({
655
+ var sendTransferRequestMessageSchema = v19.object({
639
656
  ...rpcRequestMessageSchema.entries,
640
- ...v18.object({
641
- method: v18.literal(sendTransferMethodName),
657
+ ...v19.object({
658
+ method: v19.literal(sendTransferMethodName),
642
659
  params: sendTransferParamsSchema,
643
- id: v18.string()
660
+ id: v19.string()
644
661
  }).entries
645
662
  });
646
663
  var signPsbtMethodName = "signPsbt";
647
- var signPsbtParamsSchema = v18.object({
664
+ var signPsbtParamsSchema = v19.object({
648
665
  /**
649
666
  * The base64 encoded PSBT to sign.
650
667
  */
651
- psbt: v18.string(),
668
+ psbt: v19.string(),
652
669
  /**
653
670
  * The inputs to sign.
654
671
  * The key is the address and the value is an array of indexes of the inputs to sign.
655
672
  */
656
- signInputs: v18.optional(v18.record(v18.string(), v18.array(v18.number()))),
673
+ signInputs: v19.optional(v19.record(v19.string(), v19.array(v19.number()))),
657
674
  /**
658
675
  * Whether to broadcast the transaction after signing.
659
676
  **/
660
- broadcast: v18.optional(v18.boolean())
677
+ broadcast: v19.optional(v19.boolean())
661
678
  });
662
- var signPsbtResultSchema = v18.object({
679
+ var signPsbtResultSchema = v19.object({
663
680
  /**
664
681
  * The base64 encoded PSBT after signing.
665
682
  */
666
- psbt: v18.string(),
683
+ psbt: v19.string(),
667
684
  /**
668
685
  * The transaction id as a hex-encoded string.
669
686
  * This is only returned if the transaction was broadcast.
670
687
  **/
671
- txid: v18.optional(v18.string())
688
+ txid: v19.optional(v19.string())
672
689
  });
673
- var signPsbtRequestMessageSchema = v18.object({
690
+ var signPsbtRequestMessageSchema = v19.object({
674
691
  ...rpcRequestMessageSchema.entries,
675
- ...v18.object({
676
- method: v18.literal(signPsbtMethodName),
692
+ ...v19.object({
693
+ method: v19.literal(signPsbtMethodName),
677
694
  params: signPsbtParamsSchema,
678
- id: v18.string()
695
+ id: v19.string()
679
696
  }).entries
680
697
  });
681
698
  var getAccountsMethodName = "getAccounts";
682
- var getAccountsParamsSchema = v18.object({
699
+ var getAccountsParamsSchema = v19.object({
683
700
  /**
684
701
  * The purposes for which to generate addresses. See
685
702
  * {@linkcode AddressPurpose} for available purposes.
686
703
  */
687
- purposes: v18.array(v18.enum(AddressPurpose)),
704
+ purposes: v19.array(v19.enum(AddressPurpose)),
688
705
  /**
689
706
  * A message to be displayed to the user in the request prompt.
690
707
  */
691
- message: v18.optional(v18.string())
708
+ message: v19.optional(v19.string())
692
709
  });
693
- var getAccountsResultSchema = v18.array(
694
- v18.object({
710
+ var getAccountsResultSchema = v19.array(
711
+ v19.object({
695
712
  ...addressSchema.entries,
696
- ...v18.object({
713
+ ...v19.object({
697
714
  walletType: walletTypeSchema
698
715
  }).entries
699
716
  })
700
717
  );
701
- var getAccountsRequestMessageSchema = v18.object({
718
+ var getAccountsRequestMessageSchema = v19.object({
702
719
  ...rpcRequestMessageSchema.entries,
703
- ...v18.object({
704
- method: v18.literal(getAccountsMethodName),
720
+ ...v19.object({
721
+ method: v19.literal(getAccountsMethodName),
705
722
  params: getAccountsParamsSchema,
706
- id: v18.string()
723
+ id: v19.string()
707
724
  }).entries
708
725
  });
709
726
  var getBalanceMethodName = "getBalance";
710
- var getBalanceParamsSchema = v18.nullish(v18.null());
711
- var getBalanceResultSchema = v18.object({
727
+ var getBalanceParamsSchema = v19.nullish(v19.null());
728
+ var getBalanceResultSchema = v19.object({
712
729
  /**
713
730
  * The confirmed balance of the wallet in sats. Using a string due to chrome
714
731
  * messages not supporting bigint
715
732
  * (https://issues.chromium.org/issues/40116184).
716
733
  */
717
- confirmed: v18.string(),
734
+ confirmed: v19.string(),
718
735
  /**
719
736
  * The unconfirmed balance of the wallet in sats. Using a string due to chrome
720
737
  * messages not supporting bigint
721
738
  * (https://issues.chromium.org/issues/40116184).
722
739
  */
723
- unconfirmed: v18.string(),
740
+ unconfirmed: v19.string(),
724
741
  /**
725
742
  * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
726
743
  * sats. Using a string due to chrome messages not supporting bigint
727
744
  * (https://issues.chromium.org/issues/40116184).
728
745
  */
729
- total: v18.string()
746
+ total: v19.string()
730
747
  });
731
- var getBalanceRequestMessageSchema = v18.object({
748
+ var getBalanceRequestMessageSchema = v19.object({
732
749
  ...rpcRequestMessageSchema.entries,
733
- ...v18.object({
734
- method: v18.literal(getBalanceMethodName),
735
- id: v18.string()
750
+ ...v19.object({
751
+ method: v19.literal(getBalanceMethodName),
752
+ id: v19.string()
736
753
  }).entries
737
754
  });
738
755
 
739
756
  // src/request/types/ordinalsMethods.ts
740
- import * as v19 from "valibot";
757
+ import * as v20 from "valibot";
741
758
  var getInscriptionsMethodName = "ord_getInscriptions";
742
- var getInscriptionsParamsSchema = v19.object({
743
- offset: v19.number(),
744
- limit: v19.number()
745
- });
746
- var getInscriptionsResultSchema = v19.object({
747
- total: v19.number(),
748
- limit: v19.number(),
749
- offset: v19.number(),
750
- inscriptions: v19.array(
751
- v19.object({
752
- inscriptionId: v19.string(),
753
- inscriptionNumber: v19.string(),
754
- address: v19.string(),
755
- collectionName: v19.optional(v19.string()),
756
- postage: v19.string(),
757
- contentLength: v19.string(),
758
- contentType: v19.string(),
759
- timestamp: v19.number(),
760
- offset: v19.number(),
761
- genesisTransaction: v19.string(),
762
- output: v19.string()
759
+ var getInscriptionsParamsSchema = v20.object({
760
+ offset: v20.number(),
761
+ limit: v20.number()
762
+ });
763
+ var getInscriptionsResultSchema = v20.object({
764
+ total: v20.number(),
765
+ limit: v20.number(),
766
+ offset: v20.number(),
767
+ inscriptions: v20.array(
768
+ v20.object({
769
+ inscriptionId: v20.string(),
770
+ inscriptionNumber: v20.string(),
771
+ address: v20.string(),
772
+ collectionName: v20.optional(v20.string()),
773
+ postage: v20.string(),
774
+ contentLength: v20.string(),
775
+ contentType: v20.string(),
776
+ timestamp: v20.number(),
777
+ offset: v20.number(),
778
+ genesisTransaction: v20.string(),
779
+ output: v20.string()
763
780
  })
764
781
  )
765
782
  });
766
- var getInscriptionsRequestMessageSchema = v19.object({
783
+ var getInscriptionsRequestMessageSchema = v20.object({
767
784
  ...rpcRequestMessageSchema.entries,
768
- ...v19.object({
769
- method: v19.literal(getInscriptionsMethodName),
785
+ ...v20.object({
786
+ method: v20.literal(getInscriptionsMethodName),
770
787
  params: getInscriptionsParamsSchema,
771
- id: v19.string()
788
+ id: v20.string()
772
789
  }).entries
773
790
  });
774
791
  var sendInscriptionsMethodName = "ord_sendInscriptions";
775
- var sendInscriptionsParamsSchema = v19.object({
776
- transfers: v19.array(
777
- v19.object({
778
- address: v19.string(),
779
- inscriptionId: v19.string()
792
+ var sendInscriptionsParamsSchema = v20.object({
793
+ transfers: v20.array(
794
+ v20.object({
795
+ address: v20.string(),
796
+ inscriptionId: v20.string()
780
797
  })
781
798
  )
782
799
  });
783
- var sendInscriptionsResultSchema = v19.object({
784
- txid: v19.string()
800
+ var sendInscriptionsResultSchema = v20.object({
801
+ txid: v20.string()
785
802
  });
786
- var sendInscriptionsRequestMessageSchema = v19.object({
803
+ var sendInscriptionsRequestMessageSchema = v20.object({
787
804
  ...rpcRequestMessageSchema.entries,
788
- ...v19.object({
789
- method: v19.literal(sendInscriptionsMethodName),
805
+ ...v20.object({
806
+ method: v20.literal(sendInscriptionsMethodName),
790
807
  params: sendInscriptionsParamsSchema,
791
- id: v19.string()
808
+ id: v20.string()
792
809
  }).entries
793
810
  });
794
811
 
795
812
  // src/request/types/runesMethods/etch.ts
796
- import * as v20 from "valibot";
813
+ import * as v21 from "valibot";
797
814
  var runesEtchMethodName = "runes_etch";
798
- var etchTermsSchema = v20.object({
799
- amount: v20.string(),
800
- cap: v20.string(),
801
- heightStart: v20.optional(v20.string()),
802
- heightEnd: v20.optional(v20.string()),
803
- offsetStart: v20.optional(v20.string()),
804
- offsetEnd: v20.optional(v20.string())
805
- });
806
- var inscriptionDetailsSchema = v20.object({
807
- contentType: v20.string(),
808
- contentBase64: v20.string()
809
- });
810
- var runesEtchParamsSchema = v20.object({
811
- runeName: v20.string(),
812
- divisibility: v20.optional(v20.number()),
813
- symbol: v20.optional(v20.string()),
814
- premine: v20.optional(v20.string()),
815
- isMintable: v20.boolean(),
816
- delegateInscriptionId: v20.optional(v20.string()),
817
- destinationAddress: v20.string(),
818
- refundAddress: v20.string(),
819
- feeRate: v20.number(),
820
- appServiceFee: v20.optional(v20.number()),
821
- appServiceFeeAddress: v20.optional(v20.string()),
822
- terms: v20.optional(etchTermsSchema),
823
- inscriptionDetails: v20.optional(inscriptionDetailsSchema),
824
- network: v20.optional(v20.enum(BitcoinNetworkType))
825
- });
826
- var runesEtchResultSchema = v20.object({
827
- orderId: v20.string(),
828
- fundTransactionId: v20.string(),
829
- fundingAddress: v20.string()
830
- });
831
- var runesEtchRequestMessageSchema = v20.object({
815
+ var etchTermsSchema = v21.object({
816
+ amount: v21.string(),
817
+ cap: v21.string(),
818
+ heightStart: v21.optional(v21.string()),
819
+ heightEnd: v21.optional(v21.string()),
820
+ offsetStart: v21.optional(v21.string()),
821
+ offsetEnd: v21.optional(v21.string())
822
+ });
823
+ var inscriptionDetailsSchema = v21.object({
824
+ contentType: v21.string(),
825
+ contentBase64: v21.string()
826
+ });
827
+ var runesEtchParamsSchema = v21.object({
828
+ runeName: v21.string(),
829
+ divisibility: v21.optional(v21.number()),
830
+ symbol: v21.optional(v21.string()),
831
+ premine: v21.optional(v21.string()),
832
+ isMintable: v21.boolean(),
833
+ delegateInscriptionId: v21.optional(v21.string()),
834
+ destinationAddress: v21.string(),
835
+ refundAddress: v21.string(),
836
+ feeRate: v21.number(),
837
+ appServiceFee: v21.optional(v21.number()),
838
+ appServiceFeeAddress: v21.optional(v21.string()),
839
+ terms: v21.optional(etchTermsSchema),
840
+ inscriptionDetails: v21.optional(inscriptionDetailsSchema),
841
+ network: v21.optional(v21.enum(BitcoinNetworkType))
842
+ });
843
+ var runesEtchResultSchema = v21.object({
844
+ orderId: v21.string(),
845
+ fundTransactionId: v21.string(),
846
+ fundingAddress: v21.string()
847
+ });
848
+ var runesEtchRequestMessageSchema = v21.object({
832
849
  ...rpcRequestMessageSchema.entries,
833
- ...v20.object({
834
- method: v20.literal(runesEtchMethodName),
850
+ ...v21.object({
851
+ method: v21.literal(runesEtchMethodName),
835
852
  params: runesEtchParamsSchema,
836
- id: v20.string()
853
+ id: v21.string()
837
854
  }).entries
838
855
  });
839
856
 
840
857
  // src/request/types/runesMethods/getBalance.ts
841
- import * as v21 from "valibot";
858
+ import * as v22 from "valibot";
842
859
  var runesGetBalanceMethodName = "runes_getBalance";
843
- var runesGetBalanceParamsSchema = v21.nullish(v21.null());
844
- var runesGetBalanceResultSchema = v21.object({
845
- balances: v21.array(
846
- v21.object({
847
- runeName: v21.string(),
848
- amount: v21.string(),
849
- divisibility: v21.number(),
850
- symbol: v21.string(),
851
- inscriptionId: v21.nullish(v21.string()),
852
- spendableBalance: v21.string()
860
+ var runesGetBalanceParamsSchema = v22.nullish(v22.null());
861
+ var runesGetBalanceResultSchema = v22.object({
862
+ balances: v22.array(
863
+ v22.object({
864
+ runeName: v22.string(),
865
+ amount: v22.string(),
866
+ divisibility: v22.number(),
867
+ symbol: v22.string(),
868
+ inscriptionId: v22.nullish(v22.string()),
869
+ spendableBalance: v22.string()
853
870
  })
854
871
  )
855
872
  });
856
- var runesGetBalanceRequestMessageSchema = v21.object({
873
+ var runesGetBalanceRequestMessageSchema = v22.object({
857
874
  ...rpcRequestMessageSchema.entries,
858
- ...v21.object({
859
- method: v21.literal(runesGetBalanceMethodName),
875
+ ...v22.object({
876
+ method: v22.literal(runesGetBalanceMethodName),
860
877
  params: runesGetBalanceParamsSchema,
861
- id: v21.string()
878
+ id: v22.string()
862
879
  }).entries
863
880
  });
864
881
 
865
882
  // src/request/types/runesMethods/mint.ts
866
- import * as v22 from "valibot";
883
+ import * as v23 from "valibot";
867
884
  var runesMintMethodName = "runes_mint";
868
- var runesMintParamsSchema = v22.object({
869
- appServiceFee: v22.optional(v22.number()),
870
- appServiceFeeAddress: v22.optional(v22.string()),
871
- destinationAddress: v22.string(),
872
- feeRate: v22.number(),
873
- refundAddress: v22.string(),
874
- repeats: v22.number(),
875
- runeName: v22.string(),
876
- network: v22.optional(v22.enum(BitcoinNetworkType))
877
- });
878
- var runesMintResultSchema = v22.object({
879
- orderId: v22.string(),
880
- fundTransactionId: v22.string(),
881
- fundingAddress: v22.string()
882
- });
883
- var runesMintRequestMessageSchema = v22.object({
885
+ var runesMintParamsSchema = v23.object({
886
+ appServiceFee: v23.optional(v23.number()),
887
+ appServiceFeeAddress: v23.optional(v23.string()),
888
+ destinationAddress: v23.string(),
889
+ feeRate: v23.number(),
890
+ refundAddress: v23.string(),
891
+ repeats: v23.number(),
892
+ runeName: v23.string(),
893
+ network: v23.optional(v23.enum(BitcoinNetworkType))
894
+ });
895
+ var runesMintResultSchema = v23.object({
896
+ orderId: v23.string(),
897
+ fundTransactionId: v23.string(),
898
+ fundingAddress: v23.string()
899
+ });
900
+ var runesMintRequestMessageSchema = v23.object({
884
901
  ...rpcRequestMessageSchema.entries,
885
- ...v22.object({
886
- method: v22.literal(runesMintMethodName),
902
+ ...v23.object({
903
+ method: v23.literal(runesMintMethodName),
887
904
  params: runesMintParamsSchema,
888
- id: v22.string()
905
+ id: v23.string()
889
906
  }).entries
890
907
  });
891
908
 
892
909
  // src/request/types/runesMethods/transfer.ts
893
- import * as v23 from "valibot";
910
+ import * as v24 from "valibot";
894
911
  var runesTransferMethodName = "runes_transfer";
895
- var runesTransferParamsSchema = v23.object({
896
- recipients: v23.array(
897
- v23.object({
898
- runeName: v23.string(),
899
- amount: v23.string(),
900
- address: v23.string()
912
+ var runesTransferParamsSchema = v24.object({
913
+ recipients: v24.array(
914
+ v24.object({
915
+ runeName: v24.string(),
916
+ amount: v24.string(),
917
+ address: v24.string()
901
918
  })
902
919
  )
903
920
  });
904
- var runesTransferResultSchema = v23.object({
905
- txid: v23.string()
921
+ var runesTransferResultSchema = v24.object({
922
+ txid: v24.string()
906
923
  });
907
- var runesTransferRequestMessageSchema = v23.object({
924
+ var runesTransferRequestMessageSchema = v24.object({
908
925
  ...rpcRequestMessageSchema.entries,
909
- ...v23.object({
910
- method: v23.literal(runesTransferMethodName),
926
+ ...v24.object({
927
+ method: v24.literal(runesTransferMethodName),
911
928
  params: runesTransferParamsSchema,
912
- id: v23.string()
929
+ id: v24.string()
913
930
  }).entries
914
931
  });
915
932
 
916
933
  // src/request/types/sparkMethods/flashnetMethods/clawbackFunds.ts
917
- import * as v24 from "valibot";
934
+ import * as v25 from "valibot";
918
935
  var sparkFlashnetClawbackFundsMethodName = "spark_flashnet_clawbackFunds";
919
- var sparkFlashnetClawbackFundsParamsSchema = v24.object({
920
- sparkTransferId: v24.string(),
921
- lpIdentityPublicKey: v24.string()
922
- });
923
- var sparkFlashnetClawbackFundsResultSchema = v24.object({
924
- requestId: v24.string(),
925
- accepted: v24.boolean(),
926
- internalRequestId: v24.optional(v24.string()),
927
- sparkStatusTrackingId: v24.optional(v24.string()),
928
- error: v24.optional(v24.string())
929
- });
930
- var sparkFlashnetClawbackFundsRequestMessageSchema = v24.object({
931
- ...rpcRequestMessageSchema.entries,
932
- ...v24.object({
933
- method: v24.literal(sparkFlashnetClawbackFundsMethodName),
934
- params: sparkFlashnetClawbackFundsParamsSchema,
935
- id: v24.string()
936
- }).entries
936
+ var sparkFlashnetClawbackFundsParamsSchema = v25.object({
937
+ sparkTransferId: v25.string(),
938
+ lpIdentityPublicKey: v25.string()
937
939
  });
938
-
939
- // src/request/types/sparkMethods/flashnetMethods/executeRouteSwap.ts
940
- import * as v25 from "valibot";
941
- var sparkFlashnetExecuteRouteSwapMethodName = "spark_flashnet_executeRouteSwap";
942
- var sparkFlashnetExecuteRouteSwapParamsSchema = v25.object({
943
- hops: v25.array(
944
- v25.object({
945
- poolId: v25.string(),
946
- assetInAddress: v25.string(),
947
- assetOutAddress: v25.string(),
948
- hopIntegratorFeeRateBps: v25.optional(v25.number())
949
- })
950
- ),
951
- initialAssetAddress: v25.string(),
952
- inputAmount: v25.string(),
953
- maxRouteSlippageBps: v25.string(),
954
- minAmountOut: v25.optional(v25.string()),
955
- integratorFeeRateBps: v25.optional(v25.number()),
956
- integratorPublicKey: v25.optional(v25.string())
957
- });
958
- var sparkFlashnetExecuteRouteSwapResultSchema = v25.object({
940
+ var sparkFlashnetClawbackFundsResultSchema = v25.object({
959
941
  requestId: v25.string(),
960
942
  accepted: v25.boolean(),
961
- outputAmount: v25.string(),
962
- executionPrice: v25.string(),
963
- finalOutboundTransferId: v25.string(),
943
+ internalRequestId: v25.optional(v25.string()),
944
+ sparkStatusTrackingId: v25.optional(v25.string()),
964
945
  error: v25.optional(v25.string())
965
946
  });
966
- var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v25.object({
947
+ var sparkFlashnetClawbackFundsRequestMessageSchema = v25.object({
967
948
  ...rpcRequestMessageSchema.entries,
968
949
  ...v25.object({
969
- method: v25.literal(sparkFlashnetExecuteRouteSwapMethodName),
970
- params: sparkFlashnetExecuteRouteSwapParamsSchema,
950
+ method: v25.literal(sparkFlashnetClawbackFundsMethodName),
951
+ params: sparkFlashnetClawbackFundsParamsSchema,
971
952
  id: v25.string()
972
953
  }).entries
973
954
  });
974
955
 
975
- // src/request/types/sparkMethods/flashnetMethods/executeSwap.ts
956
+ // src/request/types/sparkMethods/flashnetMethods/executeRouteSwap.ts
976
957
  import * as v26 from "valibot";
977
- var sparkFlashnetExecuteSwapMethodName = "spark_flashnet_executeSwap";
978
- var sparkFlashnetExecuteSwapParamsSchema = v26.object({
979
- poolId: v26.string(),
980
- assetInAddress: v26.string(),
981
- assetOutAddress: v26.string(),
982
- amountIn: v26.string(),
983
- maxSlippageBps: v26.number(),
958
+ var sparkFlashnetExecuteRouteSwapMethodName = "spark_flashnet_executeRouteSwap";
959
+ var sparkFlashnetExecuteRouteSwapParamsSchema = v26.object({
960
+ hops: v26.array(
961
+ v26.object({
962
+ poolId: v26.string(),
963
+ assetInAddress: v26.string(),
964
+ assetOutAddress: v26.string(),
965
+ hopIntegratorFeeRateBps: v26.optional(v26.number())
966
+ })
967
+ ),
968
+ initialAssetAddress: v26.string(),
969
+ inputAmount: v26.string(),
970
+ maxRouteSlippageBps: v26.string(),
984
971
  minAmountOut: v26.optional(v26.string()),
985
972
  integratorFeeRateBps: v26.optional(v26.number()),
986
973
  integratorPublicKey: v26.optional(v26.string())
987
974
  });
988
- var sparkFlashnetExecuteSwapResultSchema = v26.object({
975
+ var sparkFlashnetExecuteRouteSwapResultSchema = v26.object({
989
976
  requestId: v26.string(),
990
977
  accepted: v26.boolean(),
991
- amountOut: v26.optional(v26.string()),
992
- feeAmount: v26.optional(v26.string()),
993
- executionPrice: v26.optional(v26.string()),
994
- assetOutAddress: v26.optional(v26.string()),
995
- assetInAddress: v26.optional(v26.string()),
996
- outboundTransferId: v26.optional(v26.string()),
978
+ outputAmount: v26.string(),
979
+ executionPrice: v26.string(),
980
+ finalOutboundTransferId: v26.string(),
997
981
  error: v26.optional(v26.string())
998
982
  });
999
- var sparkFlashnetExecuteSwapRequestMessageSchema = v26.object({
983
+ var sparkFlashnetExecuteRouteSwapRequestMessageSchema = v26.object({
1000
984
  ...rpcRequestMessageSchema.entries,
1001
985
  ...v26.object({
1002
- method: v26.literal(sparkFlashnetExecuteSwapMethodName),
1003
- params: sparkFlashnetExecuteSwapParamsSchema,
986
+ method: v26.literal(sparkFlashnetExecuteRouteSwapMethodName),
987
+ params: sparkFlashnetExecuteRouteSwapParamsSchema,
1004
988
  id: v26.string()
1005
989
  }).entries
1006
990
  });
1007
991
 
1008
- // src/request/types/sparkMethods/flashnetMethods/getClawbackEligibleTransfers.ts
992
+ // src/request/types/sparkMethods/flashnetMethods/executeSwap.ts
1009
993
  import * as v27 from "valibot";
994
+ var sparkFlashnetExecuteSwapMethodName = "spark_flashnet_executeSwap";
995
+ var sparkFlashnetExecuteSwapParamsSchema = v27.object({
996
+ poolId: v27.string(),
997
+ assetInAddress: v27.string(),
998
+ assetOutAddress: v27.string(),
999
+ amountIn: v27.string(),
1000
+ maxSlippageBps: v27.number(),
1001
+ minAmountOut: v27.optional(v27.string()),
1002
+ integratorFeeRateBps: v27.optional(v27.number()),
1003
+ integratorPublicKey: v27.optional(v27.string())
1004
+ });
1005
+ var sparkFlashnetExecuteSwapResultSchema = v27.object({
1006
+ requestId: v27.string(),
1007
+ accepted: v27.boolean(),
1008
+ amountOut: v27.optional(v27.string()),
1009
+ feeAmount: v27.optional(v27.string()),
1010
+ executionPrice: v27.optional(v27.string()),
1011
+ assetOutAddress: v27.optional(v27.string()),
1012
+ assetInAddress: v27.optional(v27.string()),
1013
+ outboundTransferId: v27.optional(v27.string()),
1014
+ error: v27.optional(v27.string())
1015
+ });
1016
+ var sparkFlashnetExecuteSwapRequestMessageSchema = v27.object({
1017
+ ...rpcRequestMessageSchema.entries,
1018
+ ...v27.object({
1019
+ method: v27.literal(sparkFlashnetExecuteSwapMethodName),
1020
+ params: sparkFlashnetExecuteSwapParamsSchema,
1021
+ id: v27.string()
1022
+ }).entries
1023
+ });
1024
+
1025
+ // src/request/types/sparkMethods/flashnetMethods/getClawbackEligibleTransfers.ts
1026
+ import * as v28 from "valibot";
1010
1027
  var sparkGetClawbackEligibleTransfersMethodName = "spark_flashnet_getClawbackEligibleTransfers";
1011
- var sparkGetClawbackEligibleTransfersParamsSchema = v27.nullish(v27.null());
1012
- var sparkGetClawbackEligibleTransfersResultSchema = v27.object({
1013
- eligibleTransfers: v27.array(
1014
- v27.object({
1015
- txId: v27.string(),
1016
- createdAt: v27.string(),
1017
- lpIdentityPublicKey: v27.string()
1028
+ var sparkGetClawbackEligibleTransfersParamsSchema = v28.nullish(v28.null());
1029
+ var sparkGetClawbackEligibleTransfersResultSchema = v28.object({
1030
+ eligibleTransfers: v28.array(
1031
+ v28.object({
1032
+ txId: v28.string(),
1033
+ createdAt: v28.string(),
1034
+ lpIdentityPublicKey: v28.string()
1018
1035
  })
1019
1036
  )
1020
1037
  });
1021
- var sparkGetClawbackEligibleTransfersRequestMessageSchema = v27.object({
1038
+ var sparkGetClawbackEligibleTransfersRequestMessageSchema = v28.object({
1022
1039
  ...rpcRequestMessageSchema.entries,
1023
- ...v27.object({
1024
- method: v27.literal(sparkGetClawbackEligibleTransfersMethodName),
1040
+ ...v28.object({
1041
+ method: v28.literal(sparkGetClawbackEligibleTransfersMethodName),
1025
1042
  params: sparkGetClawbackEligibleTransfersParamsSchema,
1026
- id: v27.string()
1043
+ id: v28.string()
1027
1044
  }).entries
1028
1045
  });
1029
1046
 
1030
1047
  // src/request/types/sparkMethods/flashnetMethods/getJwt.ts
1031
- import * as v28 from "valibot";
1048
+ import * as v29 from "valibot";
1032
1049
  var sparkFlashnetGetJwtMethodName = "spark_flashnet_getJwt";
1033
- var sparkFlashnetGetJwtParamsSchema = v28.null();
1034
- var sparkFlashnetGetJwtResultSchema = v28.object({
1050
+ var sparkFlashnetGetJwtParamsSchema = v29.null();
1051
+ var sparkFlashnetGetJwtResultSchema = v29.object({
1035
1052
  /**
1036
1053
  * The JWT token for authenticated requests to the Flashnet API.
1037
1054
  */
1038
- jwt: v28.string()
1055
+ jwt: v29.string()
1039
1056
  });
1040
- var sparkFlashnetGetJwtRequestMessageSchema = v28.object({
1057
+ var sparkFlashnetGetJwtRequestMessageSchema = v29.object({
1041
1058
  ...rpcRequestMessageSchema.entries,
1042
- ...v28.object({
1043
- method: v28.literal(sparkFlashnetGetJwtMethodName),
1059
+ ...v29.object({
1060
+ method: v29.literal(sparkFlashnetGetJwtMethodName),
1044
1061
  params: sparkFlashnetGetJwtParamsSchema,
1045
- id: v28.string()
1062
+ id: v29.string()
1046
1063
  }).entries
1047
1064
  });
1048
1065
 
1049
1066
  // src/request/types/sparkMethods/flashnetMethods/intents/addLiquidity.ts
1050
- import * as v29 from "valibot";
1051
- var sparkFlashnetAddLiquidityIntentSchema = v29.object({
1052
- type: v29.literal("addLiquidity"),
1053
- data: v29.object({
1054
- userPublicKey: v29.string(),
1055
- poolId: v29.string(),
1056
- assetAAmount: v29.string(),
1057
- assetBAmount: v29.string(),
1058
- assetAMinAmountIn: v29.string(),
1059
- assetBMinAmountIn: v29.string(),
1060
- assetATransferId: v29.string(),
1061
- assetBTransferId: v29.string(),
1062
- nonce: v29.string()
1063
- })
1064
- });
1065
-
1066
- // src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
1067
1067
  import * as v30 from "valibot";
1068
- var sparkFlashnetClawbackIntentSchema = v30.object({
1069
- type: v30.literal("clawback"),
1068
+ var sparkFlashnetAddLiquidityIntentSchema = v30.object({
1069
+ type: v30.literal("addLiquidity"),
1070
1070
  data: v30.object({
1071
- senderPublicKey: v30.string(),
1072
- sparkTransferId: v30.string(),
1073
- lpIdentityPublicKey: v30.string(),
1071
+ userPublicKey: v30.string(),
1072
+ poolId: v30.string(),
1073
+ assetAAmount: v30.string(),
1074
+ assetBAmount: v30.string(),
1075
+ assetAMinAmountIn: v30.string(),
1076
+ assetBMinAmountIn: v30.string(),
1077
+ assetATransferId: v30.string(),
1078
+ assetBTransferId: v30.string(),
1074
1079
  nonce: v30.string()
1075
1080
  })
1076
1081
  });
1077
1082
 
1078
- // src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
1083
+ // src/request/types/sparkMethods/flashnetMethods/intents/clawback.ts
1079
1084
  import * as v31 from "valibot";
1080
- var sparkFlashnetConfirmInitialDepositIntentSchema = v31.object({
1081
- type: v31.literal("confirmInitialDeposit"),
1085
+ var sparkFlashnetClawbackIntentSchema = v31.object({
1086
+ type: v31.literal("clawback"),
1082
1087
  data: v31.object({
1083
- poolId: v31.string(),
1084
- assetASparkTransferId: v31.string(),
1085
- poolOwnerPublicKey: v31.string(),
1088
+ senderPublicKey: v31.string(),
1089
+ sparkTransferId: v31.string(),
1090
+ lpIdentityPublicKey: v31.string(),
1086
1091
  nonce: v31.string()
1087
1092
  })
1088
1093
  });
1089
1094
 
1090
- // src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
1095
+ // src/request/types/sparkMethods/flashnetMethods/intents/confirmInitialDeposit.ts
1091
1096
  import * as v32 from "valibot";
1092
- var sparkFlashnetCreateConstantProductPoolIntentSchema = v32.object({
1093
- type: v32.literal("createConstantProductPool"),
1097
+ var sparkFlashnetConfirmInitialDepositIntentSchema = v32.object({
1098
+ type: v32.literal("confirmInitialDeposit"),
1094
1099
  data: v32.object({
1100
+ poolId: v32.string(),
1101
+ assetASparkTransferId: v32.string(),
1095
1102
  poolOwnerPublicKey: v32.string(),
1096
- assetAAddress: v32.string(),
1097
- assetBAddress: v32.string(),
1098
- lpFeeRateBps: v32.union([v32.number(), v32.string()]),
1099
- totalHostFeeRateBps: v32.union([v32.number(), v32.string()]),
1100
1103
  nonce: v32.string()
1101
1104
  })
1102
1105
  });
1103
1106
 
1104
- // src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
1107
+ // src/request/types/sparkMethods/flashnetMethods/intents/createConstantProductPool.ts
1105
1108
  import * as v33 from "valibot";
1106
- var sparkFlashnetCreateSingleSidedPoolIntentSchema = v33.object({
1107
- type: v33.literal("createSingleSidedPool"),
1109
+ var sparkFlashnetCreateConstantProductPoolIntentSchema = v33.object({
1110
+ type: v33.literal("createConstantProductPool"),
1108
1111
  data: v33.object({
1112
+ poolOwnerPublicKey: v33.string(),
1109
1113
  assetAAddress: v33.string(),
1110
1114
  assetBAddress: v33.string(),
1111
- assetAInitialReserve: v33.string(),
1112
- virtualReserveA: v33.union([v33.number(), v33.string()]),
1113
- virtualReserveB: v33.union([v33.number(), v33.string()]),
1114
- threshold: v33.union([v33.number(), v33.string()]),
1115
1115
  lpFeeRateBps: v33.union([v33.number(), v33.string()]),
1116
1116
  totalHostFeeRateBps: v33.union([v33.number(), v33.string()]),
1117
- poolOwnerPublicKey: v33.string(),
1118
1117
  nonce: v33.string()
1119
1118
  })
1120
1119
  });
1121
1120
 
1122
- // src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
1121
+ // src/request/types/sparkMethods/flashnetMethods/intents/createSingleSidedPool.ts
1123
1122
  import * as v34 from "valibot";
1124
- var sparkFlashnetRemoveLiquidityIntentSchema = v34.object({
1125
- type: v34.literal("removeLiquidity"),
1123
+ var sparkFlashnetCreateSingleSidedPoolIntentSchema = v34.object({
1124
+ type: v34.literal("createSingleSidedPool"),
1126
1125
  data: v34.object({
1127
- userPublicKey: v34.string(),
1128
- poolId: v34.string(),
1129
- lpTokensToRemove: v34.string(),
1126
+ assetAAddress: v34.string(),
1127
+ assetBAddress: v34.string(),
1128
+ assetAInitialReserve: v34.string(),
1129
+ virtualReserveA: v34.union([v34.number(), v34.string()]),
1130
+ virtualReserveB: v34.union([v34.number(), v34.string()]),
1131
+ threshold: v34.union([v34.number(), v34.string()]),
1132
+ lpFeeRateBps: v34.union([v34.number(), v34.string()]),
1133
+ totalHostFeeRateBps: v34.union([v34.number(), v34.string()]),
1134
+ poolOwnerPublicKey: v34.string(),
1130
1135
  nonce: v34.string()
1131
1136
  })
1132
1137
  });
1133
1138
 
1134
- // src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
1139
+ // src/request/types/sparkMethods/flashnetMethods/intents/removeLiquidity.ts
1135
1140
  import * as v35 from "valibot";
1136
- var sparkFlashnetRouteSwapIntentSchema = v35.object({
1137
- type: v35.literal("executeRouteSwap"),
1141
+ var sparkFlashnetRemoveLiquidityIntentSchema = v35.object({
1142
+ type: v35.literal("removeLiquidity"),
1138
1143
  data: v35.object({
1139
1144
  userPublicKey: v35.string(),
1140
- initialSparkTransferId: v35.string(),
1141
- hops: v35.array(
1142
- v35.object({
1143
- poolId: v35.string(),
1144
- inputAssetAddress: v35.string(),
1145
- outputAssetAddress: v35.string(),
1146
- hopIntegratorFeeRateBps: v35.optional(v35.union([v35.number(), v35.string()]))
1147
- })
1148
- ),
1149
- inputAmount: v35.string(),
1150
- maxRouteSlippageBps: v35.union([v35.number(), v35.string()]),
1151
- minAmountOut: v35.string(),
1152
- defaultIntegratorFeeRateBps: v35.optional(v35.union([v35.number(), v35.string()])),
1145
+ poolId: v35.string(),
1146
+ lpTokensToRemove: v35.string(),
1153
1147
  nonce: v35.string()
1154
1148
  })
1155
1149
  });
1156
1150
 
1157
- // src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
1151
+ // src/request/types/sparkMethods/flashnetMethods/intents/routeSwap.ts
1158
1152
  import * as v36 from "valibot";
1159
- var sparkFlashnetSwapIntentSchema = v36.object({
1160
- type: v36.literal("executeSwap"),
1153
+ var sparkFlashnetRouteSwapIntentSchema = v36.object({
1154
+ type: v36.literal("executeRouteSwap"),
1161
1155
  data: v36.object({
1162
1156
  userPublicKey: v36.string(),
1163
- poolId: v36.string(),
1164
- transferId: v36.string(),
1165
- assetInAddress: v36.string(),
1166
- assetOutAddress: v36.string(),
1167
- amountIn: v36.string(),
1168
- maxSlippageBps: v36.union([v36.number(), v36.string()]),
1157
+ initialSparkTransferId: v36.string(),
1158
+ hops: v36.array(
1159
+ v36.object({
1160
+ poolId: v36.string(),
1161
+ inputAssetAddress: v36.string(),
1162
+ outputAssetAddress: v36.string(),
1163
+ hopIntegratorFeeRateBps: v36.optional(v36.union([v36.number(), v36.string()]))
1164
+ })
1165
+ ),
1166
+ inputAmount: v36.string(),
1167
+ maxRouteSlippageBps: v36.union([v36.number(), v36.string()]),
1169
1168
  minAmountOut: v36.string(),
1170
- totalIntegratorFeeRateBps: v36.optional(v36.union([v36.number(), v36.string()])),
1169
+ defaultIntegratorFeeRateBps: v36.optional(v36.union([v36.number(), v36.string()])),
1171
1170
  nonce: v36.string()
1172
1171
  })
1173
1172
  });
1174
1173
 
1175
- // src/request/types/sparkMethods/flashnetMethods/signIntent.ts
1174
+ // src/request/types/sparkMethods/flashnetMethods/intents/swap.ts
1176
1175
  import * as v37 from "valibot";
1176
+ var sparkFlashnetSwapIntentSchema = v37.object({
1177
+ type: v37.literal("executeSwap"),
1178
+ data: v37.object({
1179
+ userPublicKey: v37.string(),
1180
+ poolId: v37.string(),
1181
+ transferId: v37.string(),
1182
+ assetInAddress: v37.string(),
1183
+ assetOutAddress: v37.string(),
1184
+ amountIn: v37.string(),
1185
+ maxSlippageBps: v37.union([v37.number(), v37.string()]),
1186
+ minAmountOut: v37.string(),
1187
+ totalIntegratorFeeRateBps: v37.optional(v37.union([v37.number(), v37.string()])),
1188
+ nonce: v37.string()
1189
+ })
1190
+ });
1191
+
1192
+ // src/request/types/sparkMethods/flashnetMethods/signIntent.ts
1193
+ import * as v38 from "valibot";
1177
1194
  var sparkFlashnetSignIntentMethodName = "spark_flashnet_signIntent";
1178
- var sparkFlashnetSignIntentParamsSchema = v37.union([
1195
+ var sparkFlashnetSignIntentParamsSchema = v38.union([
1179
1196
  sparkFlashnetSwapIntentSchema,
1180
1197
  sparkFlashnetRouteSwapIntentSchema,
1181
1198
  sparkFlashnetAddLiquidityIntentSchema,
@@ -1185,109 +1202,109 @@ var sparkFlashnetSignIntentParamsSchema = v37.union([
1185
1202
  sparkFlashnetCreateSingleSidedPoolIntentSchema,
1186
1203
  sparkFlashnetRemoveLiquidityIntentSchema
1187
1204
  ]);
1188
- var sparkFlashnetSignIntentResultSchema = v37.object({
1205
+ var sparkFlashnetSignIntentResultSchema = v38.object({
1189
1206
  /**
1190
1207
  * The signed intent as a hex string.
1191
1208
  */
1192
- signature: v37.string()
1209
+ signature: v38.string()
1193
1210
  });
1194
- var sparkFlashnetSignIntentRequestMessageSchema = v37.object({
1211
+ var sparkFlashnetSignIntentRequestMessageSchema = v38.object({
1195
1212
  ...rpcRequestMessageSchema.entries,
1196
- ...v37.object({
1197
- method: v37.literal(sparkFlashnetSignIntentMethodName),
1213
+ ...v38.object({
1214
+ method: v38.literal(sparkFlashnetSignIntentMethodName),
1198
1215
  params: sparkFlashnetSignIntentParamsSchema,
1199
- id: v37.string()
1216
+ id: v38.string()
1200
1217
  }).entries
1201
1218
  });
1202
1219
 
1203
1220
  // src/request/types/sparkMethods/flashnetMethods/signStructuredMessage.ts
1204
- import * as v38 from "valibot";
1221
+ import * as v39 from "valibot";
1205
1222
  var sparkFlashnetSignStructuredMessageMethodName = "spark_flashnet_signStructuredMessage";
1206
- var sparkFlashnetSignStructuredMessageParamsSchema = v38.object({
1207
- message: v38.string()
1223
+ var sparkFlashnetSignStructuredMessageParamsSchema = v39.object({
1224
+ message: v39.string()
1208
1225
  });
1209
- var sparkFlashnetSignStructuredMessageResultSchema = v38.object({
1210
- message: v38.string(),
1211
- signature: v38.string()
1226
+ var sparkFlashnetSignStructuredMessageResultSchema = v39.object({
1227
+ message: v39.string(),
1228
+ signature: v39.string()
1212
1229
  });
1213
- var sparkFlashnetSignStructuredMessageRequestMessageSchema = v38.object({
1230
+ var sparkFlashnetSignStructuredMessageRequestMessageSchema = v39.object({
1214
1231
  ...rpcRequestMessageSchema.entries,
1215
- ...v38.object({
1216
- method: v38.literal(sparkFlashnetSignStructuredMessageMethodName),
1232
+ ...v39.object({
1233
+ method: v39.literal(sparkFlashnetSignStructuredMessageMethodName),
1217
1234
  params: sparkFlashnetSignStructuredMessageParamsSchema,
1218
- id: v38.string()
1235
+ id: v39.string()
1219
1236
  }).entries
1220
1237
  });
1221
1238
 
1222
1239
  // src/request/types/sparkMethods/getAddresses.ts
1223
- import * as v39 from "valibot";
1240
+ import * as v40 from "valibot";
1224
1241
  var sparkGetAddressesMethodName = "spark_getAddresses";
1225
- var sparkGetAddressesParamsSchema = v39.nullish(
1226
- v39.object({
1242
+ var sparkGetAddressesParamsSchema = v40.nullish(
1243
+ v40.object({
1227
1244
  /**
1228
1245
  * A message to be displayed to the user in the request prompt.
1229
1246
  */
1230
- message: v39.optional(v39.string())
1247
+ message: v40.optional(v40.string())
1231
1248
  })
1232
1249
  );
1233
- var sparkGetAddressesResultSchema = v39.object({
1250
+ var sparkGetAddressesResultSchema = v40.object({
1234
1251
  /**
1235
1252
  * The addresses generated for the given purposes.
1236
1253
  */
1237
- addresses: v39.array(addressSchema),
1254
+ addresses: v40.array(addressSchema),
1238
1255
  network: getNetworkResultSchema
1239
1256
  });
1240
- var sparkGetAddressesRequestMessageSchema = v39.object({
1257
+ var sparkGetAddressesRequestMessageSchema = v40.object({
1241
1258
  ...rpcRequestMessageSchema.entries,
1242
- ...v39.object({
1243
- method: v39.literal(sparkGetAddressesMethodName),
1259
+ ...v40.object({
1260
+ method: v40.literal(sparkGetAddressesMethodName),
1244
1261
  params: sparkGetAddressesParamsSchema,
1245
- id: v39.string()
1262
+ id: v40.string()
1246
1263
  }).entries
1247
1264
  });
1248
1265
 
1249
1266
  // src/request/types/sparkMethods/getBalance.ts
1250
- import * as v40 from "valibot";
1267
+ import * as v41 from "valibot";
1251
1268
  var sparkGetBalanceMethodName = "spark_getBalance";
1252
- var sparkGetBalanceParamsSchema = v40.nullish(v40.null());
1253
- var sparkGetBalanceResultSchema = v40.object({
1269
+ var sparkGetBalanceParamsSchema = v41.nullish(v41.null());
1270
+ var sparkGetBalanceResultSchema = v41.object({
1254
1271
  /**
1255
1272
  * The Spark Bitcoin address balance in sats in string form.
1256
1273
  */
1257
- balance: v40.string(),
1258
- tokenBalances: v40.array(
1259
- v40.object({
1274
+ balance: v41.string(),
1275
+ tokenBalances: v41.array(
1276
+ v41.object({
1260
1277
  /* The address balance of the token in string form as it can overflow a js number */
1261
- balance: v40.string(),
1262
- tokenMetadata: v40.object({
1263
- tokenIdentifier: v40.string(),
1264
- tokenName: v40.string(),
1265
- tokenTicker: v40.string(),
1266
- decimals: v40.number(),
1267
- maxSupply: v40.string()
1278
+ balance: v41.string(),
1279
+ tokenMetadata: v41.object({
1280
+ tokenIdentifier: v41.string(),
1281
+ tokenName: v41.string(),
1282
+ tokenTicker: v41.string(),
1283
+ decimals: v41.number(),
1284
+ maxSupply: v41.string()
1268
1285
  })
1269
1286
  })
1270
1287
  )
1271
1288
  });
1272
- var sparkGetBalanceRequestMessageSchema = v40.object({
1289
+ var sparkGetBalanceRequestMessageSchema = v41.object({
1273
1290
  ...rpcRequestMessageSchema.entries,
1274
- ...v40.object({
1275
- method: v40.literal(sparkGetBalanceMethodName),
1291
+ ...v41.object({
1292
+ method: v41.literal(sparkGetBalanceMethodName),
1276
1293
  params: sparkGetBalanceParamsSchema,
1277
- id: v40.string()
1294
+ id: v41.string()
1278
1295
  }).entries
1279
1296
  });
1280
1297
 
1281
1298
  // src/request/types/sparkMethods/signMessage.ts
1282
- import * as v41 from "valibot";
1299
+ import * as v42 from "valibot";
1283
1300
  var sparkSignMessageMethodName = "spark_signMessage";
1284
- var sparkSignMessageParamsSchema = v41.object({
1301
+ var sparkSignMessageParamsSchema = v42.object({
1285
1302
  /**
1286
1303
  * The message to sign. The message should only consist of valid UTF-8 characters.
1287
1304
  */
1288
- message: v41.string()
1305
+ message: v42.string()
1289
1306
  });
1290
- var sparkSignMessageResultSchema = v41.object({
1307
+ var sparkSignMessageResultSchema = v42.object({
1291
1308
  /**
1292
1309
  * The signature, encoded in base64, of the message hash.
1293
1310
  *
@@ -1295,98 +1312,98 @@ var sparkSignMessageResultSchema = v41.object({
1295
1312
  * and the resulting byte array is hashed with SHA256 before signing
1296
1313
  * with the private key.
1297
1314
  */
1298
- signature: v41.string()
1315
+ signature: v42.string()
1299
1316
  });
1300
- var sparkSignMessageRequestMessageSchema = v41.object({
1317
+ var sparkSignMessageRequestMessageSchema = v42.object({
1301
1318
  ...rpcRequestMessageSchema.entries,
1302
- ...v41.object({
1303
- method: v41.literal(sparkSignMessageMethodName),
1319
+ ...v42.object({
1320
+ method: v42.literal(sparkSignMessageMethodName),
1304
1321
  params: sparkSignMessageParamsSchema,
1305
- id: v41.string()
1322
+ id: v42.string()
1306
1323
  }).entries
1307
1324
  });
1308
1325
 
1309
1326
  // src/request/types/sparkMethods/transfer.ts
1310
- import * as v42 from "valibot";
1327
+ import * as v43 from "valibot";
1311
1328
  var sparkTransferMethodName = "spark_transfer";
1312
- var sparkTransferParamsSchema = v42.object({
1329
+ var sparkTransferParamsSchema = v43.object({
1313
1330
  /**
1314
1331
  * Amount of SATS to transfer as a string or number.
1315
1332
  */
1316
- amountSats: v42.union([v42.number(), v42.string()]),
1333
+ amountSats: v43.union([v43.number(), v43.string()]),
1317
1334
  /**
1318
1335
  * The recipient's spark address.
1319
1336
  */
1320
- receiverSparkAddress: v42.string()
1337
+ receiverSparkAddress: v43.string()
1321
1338
  });
1322
- var sparkTransferResultSchema = v42.object({
1339
+ var sparkTransferResultSchema = v43.object({
1323
1340
  /**
1324
1341
  * The ID of the transaction.
1325
1342
  */
1326
- id: v42.string()
1343
+ id: v43.string()
1327
1344
  });
1328
- var sparkTransferRequestMessageSchema = v42.object({
1345
+ var sparkTransferRequestMessageSchema = v43.object({
1329
1346
  ...rpcRequestMessageSchema.entries,
1330
- ...v42.object({
1331
- method: v42.literal(sparkTransferMethodName),
1347
+ ...v43.object({
1348
+ method: v43.literal(sparkTransferMethodName),
1332
1349
  params: sparkTransferParamsSchema,
1333
- id: v42.string()
1350
+ id: v43.string()
1334
1351
  }).entries
1335
1352
  });
1336
1353
 
1337
1354
  // src/request/types/sparkMethods/transferToken.ts
1338
- import * as v43 from "valibot";
1355
+ import * as v44 from "valibot";
1339
1356
  var sparkTransferTokenMethodName = "spark_transferToken";
1340
- var sparkTransferTokenParamsSchema = v43.object({
1357
+ var sparkTransferTokenParamsSchema = v44.object({
1341
1358
  /**
1342
1359
  * Amount of units of the token to transfer as a string or number.
1343
1360
  */
1344
- tokenAmount: v43.union([v43.number(), v43.string()]),
1361
+ tokenAmount: v44.union([v44.number(), v44.string()]),
1345
1362
  /**
1346
1363
  * The Bech32m token identifier.
1347
1364
  */
1348
- tokenIdentifier: v43.string(),
1365
+ tokenIdentifier: v44.string(),
1349
1366
  /**
1350
1367
  * The recipient's spark address.
1351
1368
  */
1352
- receiverSparkAddress: v43.string()
1369
+ receiverSparkAddress: v44.string()
1353
1370
  });
1354
- var sparkTransferTokenResultSchema = v43.object({
1371
+ var sparkTransferTokenResultSchema = v44.object({
1355
1372
  /**
1356
1373
  * The ID of the transaction.
1357
1374
  */
1358
- id: v43.string()
1375
+ id: v44.string()
1359
1376
  });
1360
- var sparkTransferTokenRequestMessageSchema = v43.object({
1377
+ var sparkTransferTokenRequestMessageSchema = v44.object({
1361
1378
  ...rpcRequestMessageSchema.entries,
1362
- ...v43.object({
1363
- method: v43.literal(sparkTransferTokenMethodName),
1379
+ ...v44.object({
1380
+ method: v44.literal(sparkTransferTokenMethodName),
1364
1381
  params: sparkTransferTokenParamsSchema,
1365
- id: v43.string()
1382
+ id: v44.string()
1366
1383
  }).entries
1367
1384
  });
1368
1385
 
1369
1386
  // src/request/types/stxMethods/callContract.ts
1370
- import * as v44 from "valibot";
1387
+ import * as v45 from "valibot";
1371
1388
  var stxCallContractMethodName = "stx_callContract";
1372
- var stxCallContractParamsSchema = v44.object({
1389
+ var stxCallContractParamsSchema = v45.object({
1373
1390
  /**
1374
1391
  * The contract principal.
1375
1392
  *
1376
1393
  * E.g. `"SPKE...GD5C.my-contract"`
1377
1394
  */
1378
- contract: v44.string(),
1395
+ contract: v45.string(),
1379
1396
  /**
1380
1397
  * The name of the function to call.
1381
1398
  *
1382
1399
  * Note: spec changes ongoing,
1383
1400
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
1384
1401
  */
1385
- functionName: v44.string(),
1402
+ functionName: v45.string(),
1386
1403
  /**
1387
1404
  * @deprecated in favor of `functionArgs` for @stacks/connect compatibility
1388
1405
  */
1389
- arguments: v44.optional(v44.array(v44.string())),
1406
+ arguments: v45.optional(v45.array(v45.string())),
1390
1407
  /**
1391
1408
  * The function's arguments. The arguments are expected to be hex-encoded
1392
1409
  * strings of Clarity values.
@@ -1401,274 +1418,274 @@ var stxCallContractParamsSchema = v44.object({
1401
1418
  * const hexArgs = functionArgs.map(cvToHex);
1402
1419
  * ```
1403
1420
  */
1404
- functionArgs: v44.optional(v44.array(v44.string())),
1421
+ functionArgs: v45.optional(v45.array(v45.string())),
1405
1422
  /**
1406
1423
  * The post conditions to apply to the contract call.
1407
1424
  */
1408
- postConditions: v44.optional(v44.array(v44.string())),
1425
+ postConditions: v45.optional(v45.array(v45.string())),
1409
1426
  /**
1410
1427
  * The mode to apply to the post conditions.
1411
1428
  */
1412
- postConditionMode: v44.optional(v44.union([v44.literal("allow"), v44.literal("deny")]))
1429
+ postConditionMode: v45.optional(v45.union([v45.literal("allow"), v45.literal("deny")]))
1413
1430
  });
1414
- var stxCallContractResultSchema = v44.object({
1431
+ var stxCallContractResultSchema = v45.object({
1415
1432
  /**
1416
1433
  * The ID of the transaction.
1417
1434
  */
1418
- txid: v44.string(),
1435
+ txid: v45.string(),
1419
1436
  /**
1420
1437
  * A Stacks transaction as a hex-encoded string.
1421
1438
  */
1422
- transaction: v44.string()
1439
+ transaction: v45.string()
1423
1440
  });
1424
- var stxCallContractRequestMessageSchema = v44.object({
1441
+ var stxCallContractRequestMessageSchema = v45.object({
1425
1442
  ...rpcRequestMessageSchema.entries,
1426
- ...v44.object({
1427
- method: v44.literal(stxCallContractMethodName),
1443
+ ...v45.object({
1444
+ method: v45.literal(stxCallContractMethodName),
1428
1445
  params: stxCallContractParamsSchema,
1429
- id: v44.string()
1446
+ id: v45.string()
1430
1447
  }).entries
1431
1448
  });
1432
1449
 
1433
1450
  // src/request/types/stxMethods/deployContract.ts
1434
- import * as v45 from "valibot";
1451
+ import * as v46 from "valibot";
1435
1452
  var stxDeployContractMethodName = "stx_deployContract";
1436
- var stxDeployContractParamsSchema = v45.object({
1453
+ var stxDeployContractParamsSchema = v46.object({
1437
1454
  /**
1438
1455
  * Name of the contract.
1439
1456
  */
1440
- name: v45.string(),
1457
+ name: v46.string(),
1441
1458
  /**
1442
1459
  * The source code of the Clarity contract.
1443
1460
  */
1444
- clarityCode: v45.string(),
1461
+ clarityCode: v46.string(),
1445
1462
  /**
1446
1463
  * The version of the Clarity contract.
1447
1464
  */
1448
- clarityVersion: v45.optional(v45.number()),
1465
+ clarityVersion: v46.optional(v46.number()),
1449
1466
  /**
1450
1467
  * The post conditions to apply to the contract call.
1451
1468
  */
1452
- postConditions: v45.optional(v45.array(v45.string())),
1469
+ postConditions: v46.optional(v46.array(v46.string())),
1453
1470
  /**
1454
1471
  * The mode to apply to the post conditions.
1455
1472
  */
1456
- postConditionMode: v45.optional(v45.union([v45.literal("allow"), v45.literal("deny")]))
1473
+ postConditionMode: v46.optional(v46.union([v46.literal("allow"), v46.literal("deny")]))
1457
1474
  });
1458
- var stxDeployContractResultSchema = v45.object({
1475
+ var stxDeployContractResultSchema = v46.object({
1459
1476
  /**
1460
1477
  * The ID of the transaction.
1461
1478
  */
1462
- txid: v45.string(),
1479
+ txid: v46.string(),
1463
1480
  /**
1464
1481
  * A Stacks transaction as a hex-encoded string.
1465
1482
  */
1466
- transaction: v45.string()
1483
+ transaction: v46.string()
1467
1484
  });
1468
- var stxDeployContractRequestMessageSchema = v45.object({
1485
+ var stxDeployContractRequestMessageSchema = v46.object({
1469
1486
  ...rpcRequestMessageSchema.entries,
1470
- ...v45.object({
1471
- method: v45.literal(stxDeployContractMethodName),
1487
+ ...v46.object({
1488
+ method: v46.literal(stxDeployContractMethodName),
1472
1489
  params: stxDeployContractParamsSchema,
1473
- id: v45.string()
1490
+ id: v46.string()
1474
1491
  }).entries
1475
1492
  });
1476
1493
 
1477
1494
  // src/request/types/stxMethods/getAccounts.ts
1478
- import * as v46 from "valibot";
1495
+ import * as v47 from "valibot";
1479
1496
  var stxGetAccountsMethodName = "stx_getAccounts";
1480
- var stxGetAccountsParamsSchema = v46.nullish(v46.null());
1481
- var stxGetAccountsResultSchema = v46.object({
1497
+ var stxGetAccountsParamsSchema = v47.nullish(v47.null());
1498
+ var stxGetAccountsResultSchema = v47.object({
1482
1499
  /**
1483
1500
  * The addresses generated for the given purposes.
1484
1501
  */
1485
- addresses: v46.array(
1486
- v46.object({
1487
- address: v46.string(),
1488
- publicKey: v46.string(),
1489
- gaiaHubUrl: v46.string(),
1490
- gaiaAppKey: v46.string()
1502
+ addresses: v47.array(
1503
+ v47.object({
1504
+ address: v47.string(),
1505
+ publicKey: v47.string(),
1506
+ gaiaHubUrl: v47.string(),
1507
+ gaiaAppKey: v47.string()
1491
1508
  })
1492
1509
  ),
1493
1510
  network: getNetworkResultSchema
1494
1511
  });
1495
- var stxGetAccountsRequestMessageSchema = v46.object({
1512
+ var stxGetAccountsRequestMessageSchema = v47.object({
1496
1513
  ...rpcRequestMessageSchema.entries,
1497
- ...v46.object({
1498
- method: v46.literal(stxGetAccountsMethodName),
1514
+ ...v47.object({
1515
+ method: v47.literal(stxGetAccountsMethodName),
1499
1516
  params: stxGetAccountsParamsSchema,
1500
- id: v46.string()
1517
+ id: v47.string()
1501
1518
  }).entries
1502
1519
  });
1503
1520
 
1504
1521
  // src/request/types/stxMethods/getAddresses.ts
1505
- import * as v47 from "valibot";
1522
+ import * as v48 from "valibot";
1506
1523
  var stxGetAddressesMethodName = "stx_getAddresses";
1507
- var stxGetAddressesParamsSchema = v47.nullish(
1508
- v47.object({
1524
+ var stxGetAddressesParamsSchema = v48.nullish(
1525
+ v48.object({
1509
1526
  /**
1510
1527
  * A message to be displayed to the user in the request prompt.
1511
1528
  */
1512
- message: v47.optional(v47.string())
1529
+ message: v48.optional(v48.string())
1513
1530
  })
1514
1531
  );
1515
- var stxGetAddressesResultSchema = v47.object({
1532
+ var stxGetAddressesResultSchema = v48.object({
1516
1533
  /**
1517
1534
  * The addresses generated for the given purposes.
1518
1535
  */
1519
- addresses: v47.array(addressSchema),
1536
+ addresses: v48.array(addressSchema),
1520
1537
  network: getNetworkResultSchema
1521
1538
  });
1522
- var stxGetAddressesRequestMessageSchema = v47.object({
1539
+ var stxGetAddressesRequestMessageSchema = v48.object({
1523
1540
  ...rpcRequestMessageSchema.entries,
1524
- ...v47.object({
1525
- method: v47.literal(stxGetAddressesMethodName),
1541
+ ...v48.object({
1542
+ method: v48.literal(stxGetAddressesMethodName),
1526
1543
  params: stxGetAddressesParamsSchema,
1527
- id: v47.string()
1544
+ id: v48.string()
1528
1545
  }).entries
1529
1546
  });
1530
1547
 
1531
1548
  // src/request/types/stxMethods/signMessage.ts
1532
- import * as v48 from "valibot";
1549
+ import * as v49 from "valibot";
1533
1550
  var stxSignMessageMethodName = "stx_signMessage";
1534
- var stxSignMessageParamsSchema = v48.object({
1551
+ var stxSignMessageParamsSchema = v49.object({
1535
1552
  /**
1536
1553
  * The message to sign.
1537
1554
  */
1538
- message: v48.string()
1555
+ message: v49.string()
1539
1556
  });
1540
- var stxSignMessageResultSchema = v48.object({
1557
+ var stxSignMessageResultSchema = v49.object({
1541
1558
  /**
1542
1559
  * The signature of the message.
1543
1560
  */
1544
- signature: v48.string(),
1561
+ signature: v49.string(),
1545
1562
  /**
1546
1563
  * The public key used to sign the message.
1547
1564
  */
1548
- publicKey: v48.string()
1565
+ publicKey: v49.string()
1549
1566
  });
1550
- var stxSignMessageRequestMessageSchema = v48.object({
1567
+ var stxSignMessageRequestMessageSchema = v49.object({
1551
1568
  ...rpcRequestMessageSchema.entries,
1552
- ...v48.object({
1553
- method: v48.literal(stxSignMessageMethodName),
1569
+ ...v49.object({
1570
+ method: v49.literal(stxSignMessageMethodName),
1554
1571
  params: stxSignMessageParamsSchema,
1555
- id: v48.string()
1572
+ id: v49.string()
1556
1573
  }).entries
1557
1574
  });
1558
1575
 
1559
1576
  // src/request/types/stxMethods/signStructuredMessage.ts
1560
- import * as v49 from "valibot";
1577
+ import * as v50 from "valibot";
1561
1578
  var stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1562
- var stxSignStructuredMessageParamsSchema = v49.object({
1579
+ var stxSignStructuredMessageParamsSchema = v50.object({
1563
1580
  /**
1564
1581
  * The domain to be signed.
1565
1582
  */
1566
- domain: v49.string(),
1583
+ domain: v50.string(),
1567
1584
  /**
1568
1585
  * Message payload to be signed.
1569
1586
  */
1570
- message: v49.string(),
1587
+ message: v50.string(),
1571
1588
  /**
1572
1589
  * The public key to sign the message with.
1573
1590
  */
1574
- publicKey: v49.optional(v49.string())
1591
+ publicKey: v50.optional(v50.string())
1575
1592
  });
1576
- var stxSignStructuredMessageResultSchema = v49.object({
1593
+ var stxSignStructuredMessageResultSchema = v50.object({
1577
1594
  /**
1578
1595
  * Signature of the message.
1579
1596
  */
1580
- signature: v49.string(),
1597
+ signature: v50.string(),
1581
1598
  /**
1582
1599
  * Public key as hex-encoded string.
1583
1600
  */
1584
- publicKey: v49.string()
1601
+ publicKey: v50.string()
1585
1602
  });
1586
- var stxSignStructuredMessageRequestMessageSchema = v49.object({
1603
+ var stxSignStructuredMessageRequestMessageSchema = v50.object({
1587
1604
  ...rpcRequestMessageSchema.entries,
1588
- ...v49.object({
1589
- method: v49.literal(stxSignStructuredMessageMethodName),
1605
+ ...v50.object({
1606
+ method: v50.literal(stxSignStructuredMessageMethodName),
1590
1607
  params: stxSignStructuredMessageParamsSchema,
1591
- id: v49.string()
1608
+ id: v50.string()
1592
1609
  }).entries
1593
1610
  });
1594
1611
 
1595
1612
  // src/request/types/stxMethods/signTransaction.ts
1596
- import * as v50 from "valibot";
1613
+ import * as v51 from "valibot";
1597
1614
  var stxSignTransactionMethodName = "stx_signTransaction";
1598
- var stxSignTransactionParamsSchema = v50.object({
1615
+ var stxSignTransactionParamsSchema = v51.object({
1599
1616
  /**
1600
1617
  * The transaction to sign as a hex-encoded string.
1601
1618
  */
1602
- transaction: v50.string(),
1619
+ transaction: v51.string(),
1603
1620
  /**
1604
1621
  * The public key to sign the transaction with. The wallet may use any key
1605
1622
  * when not provided.
1606
1623
  */
1607
- pubkey: v50.optional(v50.string()),
1624
+ pubkey: v51.optional(v51.string()),
1608
1625
  /**
1609
1626
  * Whether to broadcast the transaction after signing. Defaults to `true`.
1610
1627
  */
1611
- broadcast: v50.optional(v50.boolean())
1628
+ broadcast: v51.optional(v51.boolean())
1612
1629
  });
1613
- var stxSignTransactionResultSchema = v50.object({
1630
+ var stxSignTransactionResultSchema = v51.object({
1614
1631
  /**
1615
1632
  * The signed transaction as a hex-encoded string.
1616
1633
  */
1617
- transaction: v50.string()
1634
+ transaction: v51.string()
1618
1635
  });
1619
- var stxSignTransactionRequestMessageSchema = v50.object({
1636
+ var stxSignTransactionRequestMessageSchema = v51.object({
1620
1637
  ...rpcRequestMessageSchema.entries,
1621
- ...v50.object({
1622
- method: v50.literal(stxSignTransactionMethodName),
1638
+ ...v51.object({
1639
+ method: v51.literal(stxSignTransactionMethodName),
1623
1640
  params: stxSignTransactionParamsSchema,
1624
- id: v50.string()
1641
+ id: v51.string()
1625
1642
  }).entries
1626
1643
  });
1627
1644
 
1628
1645
  // src/request/types/stxMethods/signTransactions.ts
1629
- import * as v51 from "valibot";
1646
+ import * as v52 from "valibot";
1630
1647
  var stxSignTransactionsMethodName = "stx_signTransactions";
1631
- var stxSignTransactionsParamsSchema = v51.object({
1648
+ var stxSignTransactionsParamsSchema = v52.object({
1632
1649
  /**
1633
1650
  * The transactions to sign as hex-encoded strings.
1634
1651
  */
1635
- transactions: v51.pipe(
1636
- v51.array(
1637
- v51.pipe(
1638
- v51.string(),
1639
- v51.check((hex) => {
1652
+ transactions: v52.pipe(
1653
+ v52.array(
1654
+ v52.pipe(
1655
+ v52.string(),
1656
+ v52.check((hex) => {
1640
1657
  return true;
1641
1658
  }, "Invalid hex-encoded Stacks transaction.")
1642
1659
  )
1643
1660
  ),
1644
- v51.minLength(1)
1661
+ v52.minLength(1)
1645
1662
  ),
1646
1663
  /**
1647
1664
  * Whether the signed transactions should be broadcast after signing. Defaults
1648
1665
  * to `true`.
1649
1666
  */
1650
- broadcast: v51.optional(v51.boolean())
1667
+ broadcast: v52.optional(v52.boolean())
1651
1668
  });
1652
- var stxSignTransactionsResultSchema = v51.object({
1669
+ var stxSignTransactionsResultSchema = v52.object({
1653
1670
  /**
1654
1671
  * The signed transactions as hex-encoded strings, in the same order as in the
1655
1672
  * sign request.
1656
1673
  */
1657
- transactions: v51.array(v51.string())
1674
+ transactions: v52.array(v52.string())
1658
1675
  });
1659
- var stxSignTransactionsRequestMessageSchema = v51.object({
1676
+ var stxSignTransactionsRequestMessageSchema = v52.object({
1660
1677
  ...rpcRequestMessageSchema.entries,
1661
- ...v51.object({
1662
- method: v51.literal(stxSignTransactionsMethodName),
1678
+ ...v52.object({
1679
+ method: v52.literal(stxSignTransactionsMethodName),
1663
1680
  params: stxSignTransactionsParamsSchema,
1664
- id: v51.string()
1681
+ id: v52.string()
1665
1682
  }).entries
1666
1683
  });
1667
1684
 
1668
1685
  // src/request/types/stxMethods/transferStx.ts
1669
- import * as v52 from "valibot";
1686
+ import * as v53 from "valibot";
1670
1687
  var stxTransferStxMethodName = "stx_transferStx";
1671
- var stxTransferStxParamsSchema = v52.object({
1688
+ var stxTransferStxParamsSchema = v53.object({
1672
1689
  /**
1673
1690
  * Amount of STX tokens to transfer in microstacks as a string. Anything
1674
1691
  * parseable by `BigInt` is acceptable.
@@ -1681,23 +1698,23 @@ var stxTransferStxParamsSchema = v52.object({
1681
1698
  * const amount3 = '1234';
1682
1699
  * ```
1683
1700
  */
1684
- amount: v52.union([v52.number(), v52.string()]),
1701
+ amount: v53.union([v53.number(), v53.string()]),
1685
1702
  /**
1686
1703
  * The recipient's principal.
1687
1704
  */
1688
- recipient: v52.string(),
1705
+ recipient: v53.string(),
1689
1706
  /**
1690
1707
  * A string representing the memo.
1691
1708
  */
1692
- memo: v52.optional(v52.string()),
1709
+ memo: v53.optional(v53.string()),
1693
1710
  /**
1694
1711
  * Version of parameter format.
1695
1712
  */
1696
- version: v52.optional(v52.string()),
1713
+ version: v53.optional(v53.string()),
1697
1714
  /**
1698
1715
  * The mode of the post conditions.
1699
1716
  */
1700
- postConditionMode: v52.optional(v52.number()),
1717
+ postConditionMode: v53.optional(v53.number()),
1701
1718
  /**
1702
1719
  * A hex-encoded string representing the post conditions.
1703
1720
  *
@@ -1710,29 +1727,29 @@ var stxTransferStxParamsSchema = v52.object({
1710
1727
  * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1711
1728
  * ```
1712
1729
  */
1713
- postConditions: v52.optional(v52.array(v52.string())),
1730
+ postConditions: v53.optional(v53.array(v53.string())),
1714
1731
  /**
1715
1732
  * The public key to sign the transaction with. The wallet may use any key
1716
1733
  * when not provided.
1717
1734
  */
1718
- pubkey: v52.optional(v52.string())
1735
+ pubkey: v53.optional(v53.string())
1719
1736
  });
1720
- var stxTransferStxResultSchema = v52.object({
1737
+ var stxTransferStxResultSchema = v53.object({
1721
1738
  /**
1722
1739
  * The ID of the transaction.
1723
1740
  */
1724
- txid: v52.string(),
1741
+ txid: v53.string(),
1725
1742
  /**
1726
1743
  * A Stacks transaction as a hex-encoded string.
1727
1744
  */
1728
- transaction: v52.string()
1745
+ transaction: v53.string()
1729
1746
  });
1730
- var stxTransferStxRequestMessageSchema = v52.object({
1747
+ var stxTransferStxRequestMessageSchema = v53.object({
1731
1748
  ...rpcRequestMessageSchema.entries,
1732
- ...v52.object({
1733
- method: v52.literal(stxTransferStxMethodName),
1749
+ ...v53.object({
1750
+ method: v53.literal(stxTransferStxMethodName),
1734
1751
  params: stxTransferStxParamsSchema,
1735
- id: v52.string()
1752
+ id: v53.string()
1736
1753
  }).entries
1737
1754
  });
1738
1755
 
@@ -1740,13 +1757,13 @@ var stxTransferStxRequestMessageSchema = v52.object({
1740
1757
  var cache = {};
1741
1758
  var requestInternal = async (provider, method, params) => {
1742
1759
  const response = await provider.request(method, params);
1743
- if (v53.is(rpcErrorResponseMessageSchema, response)) {
1760
+ if (v54.is(rpcErrorResponseMessageSchema, response)) {
1744
1761
  return {
1745
1762
  status: "error",
1746
1763
  error: response.error
1747
1764
  };
1748
1765
  }
1749
- if (v53.is(rpcSuccessResponseMessageSchema, response)) {
1766
+ if (v54.is(rpcSuccessResponseMessageSchema, response)) {
1750
1767
  return {
1751
1768
  status: "success",
1752
1769
  result: response.result
@@ -2882,6 +2899,10 @@ export {
2882
2899
  isProviderInstalled,
2883
2900
  networkChangeEventName,
2884
2901
  networkChangeSchema,
2902
+ openBridgeMethodName,
2903
+ openBridgeParamsSchema,
2904
+ openBridgeRequestMessageSchema,
2905
+ openBridgeResultSchema,
2885
2906
  openReceiveMethodName,
2886
2907
  openReceiveParamsSchema,
2887
2908
  openReceiveRequestMessageSchema,