@sats-connect/core 0.4.0-32c4027 → 0.4.0-68f1213

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -42,15 +42,15 @@ type SignMessageOptions = RequestOptions<SignMessagePayload, SignMessageResponse
42
42
 
43
43
  declare const signMessage: (options: SignMessageOptions) => Promise<void>;
44
44
 
45
- interface Recipient$2 {
45
+ interface Recipient {
46
46
  address: string;
47
47
  amountSats: bigint;
48
48
  }
49
- type SerializedRecipient = Omit<Recipient$2, 'amountSats'> & {
49
+ type SerializedRecipient = Omit<Recipient, 'amountSats'> & {
50
50
  amountSats: string;
51
51
  };
52
52
  interface SendBtcTransactionPayload extends RequestPayload {
53
- recipients: Recipient$2[];
53
+ recipients: Recipient[];
54
54
  senderAddress: string;
55
55
  message?: string;
56
56
  }
@@ -313,9 +313,9 @@ declare const addressSchema: v.ObjectSchema<{
313
313
  readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
314
314
  readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
315
315
  }, undefined>;
316
- type Address$1 = v.InferOutput<typeof addressSchema>;
316
+ type Address = v.InferOutput<typeof addressSchema>;
317
317
  interface GetAddressResponse {
318
- addresses: Address$1[];
318
+ addresses: Address[];
319
319
  }
320
320
  type GetAddressOptions = RequestOptions<GetAddressPayload, GetAddressResponse>;
321
321
 
@@ -455,61 +455,94 @@ declare const signMessageRequestMessageSchema: v.ObjectSchema<{
455
455
  }, undefined>;
456
456
  type SignMessageRequestMessage = v.InferOutput<typeof signMessageRequestMessageSchema>;
457
457
  type SignMessage = MethodParamsAndResult<v.InferOutput<typeof signMessageParamsSchema>, v.InferOutput<typeof signMessageResultSchema>>;
458
- type Recipient$1 = {
459
- /**
460
- * The recipient's address.
461
- **/
462
- address: string;
463
- /**
464
- * The amount to send to the recipient in satoshis.
465
- */
466
- amount: number;
467
- };
468
- type SendTransferParams = {
458
+ declare const sendTransferMethodName = "sendTransfer";
459
+ declare const sendTransferParamsSchema: v.ObjectSchema<{
469
460
  /**
470
461
  * Array of recipients to send to.
471
462
  * The amount to send to each recipient is in satoshis.
472
463
  */
473
- recipients: Array<Recipient$1>;
474
- };
475
- type SendTransferResult = {
464
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
465
+ readonly address: v.StringSchema<undefined>;
466
+ readonly amount: v.NumberSchema<undefined>;
467
+ }, undefined>, undefined>;
468
+ }, undefined>;
469
+ type SendTransferParams = v.InferOutput<typeof sendTransferParamsSchema>;
470
+ declare const sendTransferResultSchema: v.ObjectSchema<{
476
471
  /**
477
472
  * The transaction id as a hex-encoded string.
478
473
  */
479
- txid: string;
480
- };
474
+ readonly txid: v.StringSchema<undefined>;
475
+ }, undefined>;
476
+ type SendTransferResult = v.InferOutput<typeof sendTransferResultSchema>;
477
+ declare const sendTransferRequestMessageSchema: v.ObjectSchema<{
478
+ readonly method: v.LiteralSchema<"sendTransfer", undefined>;
479
+ readonly params: v.ObjectSchema<{
480
+ /**
481
+ * Array of recipients to send to.
482
+ * The amount to send to each recipient is in satoshis.
483
+ */
484
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
485
+ readonly address: v.StringSchema<undefined>;
486
+ readonly amount: v.NumberSchema<undefined>;
487
+ }, undefined>, undefined>;
488
+ }, undefined>;
489
+ readonly id: v.StringSchema<undefined>;
490
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
491
+ }, undefined>;
492
+ type SendTransferRequestMessage = v.InferOutput<typeof sendTransferRequestMessageSchema>;
481
493
  type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
482
- type SignPsbtParams = {
494
+ declare const signPsbtMethodName = "signPsbt";
495
+ declare const signPsbtParamsSchema: v.ObjectSchema<{
483
496
  /**
484
497
  * The base64 encoded PSBT to sign.
485
498
  */
486
- psbt: string;
499
+ readonly psbt: v.StringSchema<undefined>;
487
500
  /**
488
501
  * The inputs to sign.
489
502
  * The key is the address and the value is an array of indexes of the inputs to sign.
490
503
  */
491
- signInputs: Record<string, number[]>;
492
- /**
493
- * the sigHash type to use for signing.
494
- * will default to the sighash type of the input if not provided.
495
- **/
496
- allowedSignHash?: number;
504
+ readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
505
+ readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
497
506
  /**
498
507
  * Whether to broadcast the transaction after signing.
499
508
  **/
500
- broadcast?: boolean;
501
- };
502
- type SignPsbtResult = {
509
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
510
+ }, undefined>;
511
+ type SignPsbtParams = v.InferOutput<typeof signPsbtParamsSchema>;
512
+ declare const signPsbtResultSchema: v.ObjectSchema<{
503
513
  /**
504
514
  * The base64 encoded PSBT after signing.
505
515
  */
506
- psbt: string;
516
+ readonly psbt: v.StringSchema<undefined>;
507
517
  /**
508
518
  * The transaction id as a hex-encoded string.
509
519
  * This is only returned if the transaction was broadcast.
510
520
  **/
511
- txid?: string;
512
- };
521
+ readonly txid: v.OptionalSchema<v.StringSchema<undefined>, never>;
522
+ }, undefined>;
523
+ type SignPsbtResult = v.InferOutput<typeof signPsbtResultSchema>;
524
+ declare const signPsbtRequestMessageSchema: v.ObjectSchema<{
525
+ readonly method: v.LiteralSchema<"signPsbt", undefined>;
526
+ readonly params: v.ObjectSchema<{
527
+ /**
528
+ * The base64 encoded PSBT to sign.
529
+ */
530
+ readonly psbt: v.StringSchema<undefined>;
531
+ /**
532
+ * The inputs to sign.
533
+ * The key is the address and the value is an array of indexes of the inputs to sign.
534
+ */
535
+ readonly signInputs: v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.NumberSchema<undefined>, undefined>, undefined>;
536
+ readonly allowedSignHash: v.OptionalSchema<v.NumberSchema<undefined>, never>;
537
+ /**
538
+ * Whether to broadcast the transaction after signing.
539
+ **/
540
+ readonly broadcast: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
541
+ }, undefined>;
542
+ readonly id: v.StringSchema<undefined>;
543
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
544
+ }, undefined>;
545
+ type SignPsbtRequestMessage = v.InferOutput<typeof signPsbtRequestMessageSchema>;
513
546
  type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
514
547
  declare const getAccountsMethodName = "getAccounts";
515
548
  declare const getAccountsParamsSchema: v.ObjectSchema<{
@@ -554,6 +587,7 @@ type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageS
554
587
  type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
555
588
  declare const getBalanceMethodName = "getBalance";
556
589
  declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
590
+ type GetBalanceParams = v.InferOutput<typeof getBalanceParamsSchema>;
557
591
  declare const getBalanceResultSchema: v.ObjectSchema<{
558
592
  /**
559
593
  * The confirmed balance of the wallet in sats. Using a string due to chrome
@@ -574,13 +608,15 @@ declare const getBalanceResultSchema: v.ObjectSchema<{
574
608
  */
575
609
  readonly total: v.StringSchema<undefined>;
576
610
  }, undefined>;
611
+ type GetBalanceResult = v.InferOutput<typeof getBalanceResultSchema>;
577
612
  declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
578
613
  readonly method: v.LiteralSchema<"getBalance", undefined>;
579
614
  readonly id: v.StringSchema<undefined>;
580
615
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
581
616
  readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, never>;
582
617
  }, undefined>;
583
- type GetBalance = MethodParamsAndResult<v.InferOutput<typeof getBalanceParamsSchema>, v.InferOutput<typeof getBalanceResultSchema>>;
618
+ type GetBalanceRequestMessage = v.InferOutput<typeof getBalanceRequestMessageSchema>;
619
+ type GetBalance = MethodParamsAndResult<GetBalanceParams, GetBalanceResult>;
584
620
 
585
621
  declare const getInscriptionsMethodName = "ord_getInscriptions";
586
622
  declare const getInscriptionsParamsSchema: v.ObjectSchema<{
@@ -798,127 +834,21 @@ declare const TransferRunesResultSchema: v.ObjectSchema<{
798
834
  type TransferRunesResult = v.InferOutput<typeof TransferRunesResultSchema>;
799
835
  type TransferRunes = MethodParamsAndResult<TransferRunesParams, TransferRunesResult>;
800
836
 
801
- interface Pubkey {
802
- /**
803
- * When sending a transfer STX request to a wallet, users can generally
804
- * choose from which accout they want to send the STX tokens from. In
805
- * cases where applications want the transfer to be made from a specific
806
- * account, they can provide the `pubkey` of the address they'd like the
807
- * transfer to be made from. It is up to wallet providers to handle this
808
- * field as they see fit.
809
- */
810
- pubkey: string;
811
- }
812
- interface Address {
813
- /**
814
- * A Crockford base-32 encoded Stacks address.
815
- */
816
- address: string;
817
- }
818
- interface PostConditions {
819
- /**
820
- * A hex-encoded string representing the post conditions.
821
- *
822
- * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
823
- *
824
- * ```js
825
- * import { serializePostCondition } from '@stacks/transactions';
826
- *
827
- * const postCondition = somePostCondition;
828
- * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
829
- * ```
830
- */
831
- postConditions: Array<string>;
832
- }
833
- interface PostConditionMode {
837
+ declare const stxCallContractMethodName = "stx_callContract";
838
+ declare const stxCallContractParamsSchema: v.ObjectSchema<{
834
839
  /**
835
- * The mode of the post conditions.
836
- */
837
- postConditionMode: number;
838
- }
839
- interface ParameterFormatVersion {
840
- /**
841
- * Version of parameter format.
842
- */
843
- version: string;
844
- }
845
- interface Recipient {
846
- /**
847
- * The recipeint's Crockford base-32 encoded Stacks address.
848
- */
849
- recipient: string;
850
- }
851
- interface Amount {
852
- /**
853
- * Amount of STX tokens to transfer in microstacks as a string. Anything
854
- * parseable by `BigInt` is acceptable.
855
- *
856
- * Example,
857
- *
858
- * ```js
859
- * const amount1 = 1234;
860
- * const amount2 = 1234n;
861
- * const amount3 = '1234';
862
- * ```
863
- */
864
- amount: number | string;
865
- }
866
- interface Memo {
867
- /**
868
- * A string representing the memo.
869
- */
870
- memo: string;
871
- }
872
- interface TxId {
873
- /**
874
- * The ID of the transaction.
875
- */
876
- txid: string;
877
- }
878
- interface Transaction {
879
- /**
880
- * A Stacks transaction as a hex-encoded string.
881
- */
882
- transaction: string;
883
- }
884
- interface Message {
885
- /**
886
- * Message payload to be signed.
887
- */
888
- message: string;
889
- }
890
- interface Signature {
891
- /**
892
- * Signature of the message.
893
- */
894
- signature: string;
895
- }
896
- interface PublicKey {
897
- /**
898
- * Public key as hex-encoded string.
899
- */
900
- publicKey: string;
901
- }
902
- interface Domain {
903
- /**
904
- * The domain to be signed.
905
- */
906
- domain: string;
907
- }
908
- interface CallContractParams {
909
- /**
910
- * The contract's Crockford base-32 encoded Stacks address and name.
840
+ * The contract principal.
911
841
  *
912
842
  * E.g. `"SPKE...GD5C.my-contract"`
913
843
  */
914
- contract: string;
844
+ readonly contract: v.StringSchema<undefined>;
915
845
  /**
916
846
  * The name of the function to call.
917
847
  *
918
848
  * Note: spec changes ongoing,
919
849
  * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
920
850
  */
921
- functionName: string;
851
+ readonly functionName: v.StringSchema<undefined>;
922
852
  /**
923
853
  * The function's arguments. The arguments are expected to be hex-encoded
924
854
  * strings of Clarity values.
@@ -933,42 +863,131 @@ interface CallContractParams {
933
863
  * const hexArgs = functionArgs.map(cvToString);
934
864
  * ```
935
865
  */
936
- arguments?: Array<string>;
937
- }
938
- type CallContractResult = TxId & Transaction;
939
- type StxCallContract = MethodParamsAndResult<CallContractParams, CallContractResult>;
940
- type TransferStxParams = Amount & Recipient & Partial<Memo> & Partial<ParameterFormatVersion> & Partial<PostConditionMode> & Partial<PostConditions> & Partial<Pubkey>;
941
- type TransferStxResult = TxId & Transaction;
942
- type StxTransferStx = MethodParamsAndResult<TransferStxParams, TransferStxResult>;
943
- type SignStxMessageParams = Message & Partial<Pubkey> & Partial<ParameterFormatVersion>;
944
- type SignStxMessageResult = Signature & PublicKey;
945
- type StxSignStxMessage = MethodParamsAndResult<SignStxMessageParams, SignStxMessageResult>;
946
- type SignStructuredMessageParams = Domain & Message & Partial<ParameterFormatVersion> & Partial<Pubkey>;
947
- type SignStructuredMessageResult = Signature & PublicKey;
948
- type StxSignStructuredMessage = MethodParamsAndResult<SignStructuredMessageParams, SignStructuredMessageResult>;
949
- interface DeployContractParams {
866
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
867
+ }, undefined>;
868
+ type StxCallContractParams = v.InferOutput<typeof stxCallContractParamsSchema>;
869
+ declare const stxCallContractResultSchema: v.ObjectSchema<{
870
+ /**
871
+ * The ID of the transaction.
872
+ */
873
+ readonly txid: v.StringSchema<undefined>;
874
+ /**
875
+ * A Stacks transaction as a hex-encoded string.
876
+ */
877
+ readonly transaction: v.StringSchema<undefined>;
878
+ }, undefined>;
879
+ type StxCallContractResult = v.InferOutput<typeof stxCallContractResultSchema>;
880
+ declare const stxCallContractRequestMessageSchema: v.ObjectSchema<{
881
+ readonly method: v.LiteralSchema<"stx_callContract", undefined>;
882
+ readonly params: v.ObjectSchema<{
883
+ /**
884
+ * The contract principal.
885
+ *
886
+ * E.g. `"SPKE...GD5C.my-contract"`
887
+ */
888
+ readonly contract: v.StringSchema<undefined>;
889
+ /**
890
+ * The name of the function to call.
891
+ *
892
+ * Note: spec changes ongoing,
893
+ * https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
894
+ */
895
+ readonly functionName: v.StringSchema<undefined>;
896
+ /**
897
+ * The function's arguments. The arguments are expected to be hex-encoded
898
+ * strings of Clarity values.
899
+ *
900
+ * To convert Clarity values to their hex representation, the `cvToString`
901
+ * helper from the `@stacks/transactions` package may be helpful.
902
+ *
903
+ * ```js
904
+ * import { cvToString } from '@stacks/transactions';
905
+ *
906
+ * const functionArgs = [someClarityValue1, someClarityValue2];
907
+ * const hexArgs = functionArgs.map(cvToString);
908
+ * ```
909
+ */
910
+ readonly arguments: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
911
+ }, undefined>;
912
+ readonly id: v.StringSchema<undefined>;
913
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
914
+ }, undefined>;
915
+ type StxCallContractRequestMessage = v.InferOutput<typeof stxCallContractRequestMessageSchema>;
916
+ type StxCallContract = MethodParamsAndResult<StxCallContractParams, StxCallContractResult>;
917
+
918
+ declare const stxDeployContractMethodName = "stx_deployContract";
919
+ declare const stxDeployContractParamsSchema: v.ObjectSchema<{
950
920
  /**
951
921
  * Name of the contract.
952
922
  */
953
- name: string;
923
+ readonly name: v.StringSchema<undefined>;
954
924
  /**
955
925
  * The code of the Clarity contract.
956
926
  */
957
- clarityCode: string;
927
+ readonly codeBody: v.StringSchema<undefined>;
958
928
  /**
959
929
  * The version of the Clarity contract.
960
930
  */
961
- clarityVersion?: string;
962
- }
963
- type DeployContractResult = TxId & Transaction;
964
- type StxDeployContract = MethodParamsAndResult<DeployContractParams, DeployContractResult>;
965
- type StxGetAccountsResult = {
966
- addresses: Array<Address & PublicKey & {
967
- gaiaHubUrl: string;
968
- gaiaAppKey: string;
969
- }>;
970
- };
971
- type StxGetAccounts = MethodParamsAndResult<{}, StxGetAccountsResult>;
931
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
932
+ }, undefined>;
933
+ type StxDeployContractParams = v.InferOutput<typeof stxDeployContractParamsSchema>;
934
+ declare const stxDeployContractResultSchema: v.ObjectSchema<{
935
+ /**
936
+ * The ID of the transaction.
937
+ */
938
+ readonly txid: v.StringSchema<undefined>;
939
+ /**
940
+ * A Stacks transaction as a hex-encoded string.
941
+ */
942
+ readonly transaction: v.StringSchema<undefined>;
943
+ }, undefined>;
944
+ type StxDeployContractResult = v.InferOutput<typeof stxDeployContractResultSchema>;
945
+ declare const stxDeployContractRequestMessageSchema: v.ObjectSchema<{
946
+ readonly method: v.LiteralSchema<"stx_deployContract", undefined>;
947
+ readonly params: v.ObjectSchema<{
948
+ /**
949
+ * Name of the contract.
950
+ */
951
+ readonly name: v.StringSchema<undefined>;
952
+ /**
953
+ * The code of the Clarity contract.
954
+ */
955
+ readonly codeBody: v.StringSchema<undefined>;
956
+ /**
957
+ * The version of the Clarity contract.
958
+ */
959
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
960
+ }, undefined>;
961
+ readonly id: v.StringSchema<undefined>;
962
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
963
+ }, undefined>;
964
+ type StxDeployContractRequestMessage = v.InferOutput<typeof stxDeployContractRequestMessageSchema>;
965
+ type StxDeployContract = MethodParamsAndResult<StxDeployContractParams, StxDeployContractResult>;
966
+
967
+ declare const stxGetAccountsMethodName = "stx_getAccounts";
968
+ declare const stxGetAccountsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
969
+ type StxGetAccountsParams = v.InferOutput<typeof stxGetAccountsParamsSchema>;
970
+ declare const stxGetAccountsResultSchema: v.ObjectSchema<{
971
+ /**
972
+ * The addresses generated for the given purposes.
973
+ */
974
+ readonly addresses: v.ArraySchema<v.ObjectSchema<{
975
+ readonly address: v.StringSchema<undefined>;
976
+ readonly publicKey: v.StringSchema<undefined>;
977
+ readonly gaiaHubUrl: v.StringSchema<undefined>;
978
+ readonly gaiaAppKey: v.StringSchema<undefined>;
979
+ }, undefined>, undefined>;
980
+ }, undefined>;
981
+ type StxGetAccountsResult = v.InferOutput<typeof stxGetAccountsResultSchema>;
982
+ declare const stxGetAccountsRequestMessageSchema: v.ObjectSchema<{
983
+ readonly method: v.LiteralSchema<"stx_getAccounts", undefined>;
984
+ readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
985
+ readonly id: v.StringSchema<undefined>;
986
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
987
+ }, undefined>;
988
+ type StxGetAccountsRequestMessage = v.InferOutput<typeof stxGetAccountsRequestMessageSchema>;
989
+ type StxGetAccounts = MethodParamsAndResult<StxGetAccountsParams, StxGetAccountsResult>;
990
+
972
991
  declare const stxGetAddressesMethodName = "stx_getAddresses";
973
992
  declare const stxGetAddressesParamsSchema: v.NullishSchema<v.ObjectSchema<{
974
993
  /**
@@ -1002,6 +1021,113 @@ declare const stxGetAddressesRequestMessageSchema: v.ObjectSchema<{
1002
1021
  }, undefined>;
1003
1022
  type StxGetAddressesRequestMessage = v.InferOutput<typeof stxGetAddressesRequestMessageSchema>;
1004
1023
  type StxGetAddresses = MethodParamsAndResult<v.InferOutput<typeof stxGetAddressesParamsSchema>, v.InferOutput<typeof stxGetAddressesResultSchema>>;
1024
+
1025
+ declare const stxSignMessageMethodName = "stx_signMessage";
1026
+ declare const stxSignMessageParamsSchema: v.ObjectSchema<{
1027
+ /**
1028
+ * The message to sign.
1029
+ */
1030
+ readonly message: v.StringSchema<undefined>;
1031
+ /**
1032
+ * The public key to sign the message with.
1033
+ */
1034
+ readonly publicKey: v.StringSchema<undefined>;
1035
+ /**
1036
+ * The format version of the parameter.
1037
+ */
1038
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1039
+ }, undefined>;
1040
+ type StxSignMessageParams = v.InferOutput<typeof stxSignMessageParamsSchema>;
1041
+ declare const stxSignMessageResultSchema: v.ObjectSchema<{
1042
+ /**
1043
+ * The signature of the message.
1044
+ */
1045
+ readonly signature: v.StringSchema<undefined>;
1046
+ /**
1047
+ * The public key used to sign the message.
1048
+ */
1049
+ readonly publicKey: v.StringSchema<undefined>;
1050
+ }, undefined>;
1051
+ type StxSignMessageResult = v.InferOutput<typeof stxSignMessageResultSchema>;
1052
+ declare const stxSignMessageRequestMessageSchema: v.ObjectSchema<{
1053
+ readonly method: v.LiteralSchema<"stx_signMessage", undefined>;
1054
+ readonly params: v.ObjectSchema<{
1055
+ /**
1056
+ * The message to sign.
1057
+ */
1058
+ readonly message: v.StringSchema<undefined>;
1059
+ /**
1060
+ * The public key to sign the message with.
1061
+ */
1062
+ readonly publicKey: v.StringSchema<undefined>;
1063
+ /**
1064
+ * The format version of the parameter.
1065
+ */
1066
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1067
+ }, undefined>;
1068
+ readonly id: v.StringSchema<undefined>;
1069
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1070
+ }, undefined>;
1071
+ type StxSignMessageRequestMessage = v.InferOutput<typeof stxSignMessageRequestMessageSchema>;
1072
+ type StxSignMessage = MethodParamsAndResult<StxSignMessageParams, StxSignMessageResult>;
1073
+
1074
+ declare const stxSignStructuredMessageMethodName = "stx_signStructuredMessage";
1075
+ declare const stxSignStructuredMessageParamsSchema: v.ObjectSchema<{
1076
+ /**
1077
+ * The domain to be signed.
1078
+ */
1079
+ readonly domain: v.StringSchema<undefined>;
1080
+ /**
1081
+ * Message payload to be signed.
1082
+ */
1083
+ readonly message: v.StringSchema<undefined>;
1084
+ /**
1085
+ * The format version of the parameter.
1086
+ */
1087
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1088
+ /**
1089
+ * The public key to sign the message with.
1090
+ */
1091
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1092
+ }, undefined>;
1093
+ type StxSignStructuredMessageParams = v.InferOutput<typeof stxSignStructuredMessageParamsSchema>;
1094
+ declare const stxSignStructuredMessageResultSchema: v.ObjectSchema<{
1095
+ /**
1096
+ * Signature of the message.
1097
+ */
1098
+ readonly signature: v.StringSchema<undefined>;
1099
+ /**
1100
+ * Public key as hex-encoded string.
1101
+ */
1102
+ readonly publicKey: v.StringSchema<undefined>;
1103
+ }, undefined>;
1104
+ type StxSignStructuredMessageResult = v.InferOutput<typeof stxSignStructuredMessageResultSchema>;
1105
+ declare const stxSignStructuredMessageRequestMessageSchema: v.ObjectSchema<{
1106
+ readonly method: v.LiteralSchema<"stx_signStructuredMessage", undefined>;
1107
+ readonly params: v.ObjectSchema<{
1108
+ /**
1109
+ * The domain to be signed.
1110
+ */
1111
+ readonly domain: v.StringSchema<undefined>;
1112
+ /**
1113
+ * Message payload to be signed.
1114
+ */
1115
+ readonly message: v.StringSchema<undefined>;
1116
+ /**
1117
+ * The format version of the parameter.
1118
+ */
1119
+ readonly parameterFormatVersion: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1120
+ /**
1121
+ * The public key to sign the message with.
1122
+ */
1123
+ readonly publicKey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1124
+ }, undefined>;
1125
+ readonly id: v.StringSchema<undefined>;
1126
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1127
+ }, undefined>;
1128
+ type StxSignStructuredMessageRequestMessage = v.InferOutput<typeof stxSignStructuredMessageRequestMessageSchema>;
1129
+ type StxSignStructuredMessage = MethodParamsAndResult<StxSignStructuredMessageParams, StxSignStructuredMessageResult>;
1130
+
1005
1131
  declare const stxSignTransactionMethodName = "stx_signTransaction";
1006
1132
  declare const stxSignTransactionParamsSchema: v.ObjectSchema<{
1007
1133
  /**
@@ -1049,370 +1175,395 @@ declare const stxSignTransactionRequestMessageSchema: v.ObjectSchema<{
1049
1175
  type StxSignTransactionRequestMessage = v.InferOutput<typeof stxSignTransactionRequestMessageSchema>;
1050
1176
  type StxSignTransaction = MethodParamsAndResult<StxSignTransactionParams, StxSignTransactionResult>;
1051
1177
 
1052
- /**
1053
- * Permissions with the clientId field omitted. Used for permission requests,
1054
- * since the wallet performs authentication based on the client's tab origin and
1055
- * should not rely on the client authenticating themselves.
1056
- */
1057
- declare const permissionsWithoutClientId: v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1058
- readonly type: v.LiteralSchema<"account", undefined>;
1059
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1060
- readonly clientId: v.StringSchema<undefined>;
1061
- readonly actions: v.ObjectSchema<{
1062
- readonly read: v.BooleanSchema<undefined>;
1178
+ declare const stxTransferStxMethodName = "stx_transferStx";
1179
+ declare const stxTransferStxParamsSchema: v.ObjectSchema<{
1180
+ /**
1181
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
1182
+ * parseable by `BigInt` is acceptable.
1183
+ *
1184
+ * Example,
1185
+ *
1186
+ * ```js
1187
+ * const amount1 = 1234;
1188
+ * const amount2 = 1234n;
1189
+ * const amount3 = '1234';
1190
+ * ```
1191
+ */
1192
+ readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1193
+ /**
1194
+ * The recipeint's principal.
1195
+ */
1196
+ readonly recipient: v.StringSchema<undefined>;
1197
+ /**
1198
+ * A string representing the memo.
1199
+ */
1200
+ readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
1201
+ /**
1202
+ * Version of parameter format.
1203
+ */
1204
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
1205
+ /**
1206
+ * The mode of the post conditions.
1207
+ */
1208
+ readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1209
+ /**
1210
+ * A hex-encoded string representing the post conditions.
1211
+ *
1212
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
1213
+ *
1214
+ * ```js
1215
+ * import { serializePostCondition } from '@stacks/transactions';
1216
+ *
1217
+ * const postCondition = somePostCondition;
1218
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1219
+ * ```
1220
+ */
1221
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1222
+ /**
1223
+ * The public key to sign the transaction with. The wallet may use any key
1224
+ * when not provided.
1225
+ */
1226
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1227
+ }, undefined>;
1228
+ type StxTransferStxParams = v.InferOutput<typeof stxTransferStxParamsSchema>;
1229
+ declare const stxTransferStxResultSchema: v.ObjectSchema<{
1230
+ /**
1231
+ * The ID of the transaction.
1232
+ */
1233
+ readonly txid: v.StringSchema<undefined>;
1234
+ /**
1235
+ * A Stacks transaction as a hex-encoded string.
1236
+ */
1237
+ readonly transaction: v.StringSchema<undefined>;
1238
+ }, undefined>;
1239
+ type StxTransferStxResult = v.InferOutput<typeof stxTransferStxResultSchema>;
1240
+ declare const stxTransferStxRequestMessageSchema: v.ObjectSchema<{
1241
+ readonly method: v.LiteralSchema<"stx_transferStx", undefined>;
1242
+ readonly params: v.ObjectSchema<{
1243
+ /**
1244
+ * Amount of STX tokens to transfer in microstacks as a string. Anything
1245
+ * parseable by `BigInt` is acceptable.
1246
+ *
1247
+ * Example,
1248
+ *
1249
+ * ```js
1250
+ * const amount1 = 1234;
1251
+ * const amount2 = 1234n;
1252
+ * const amount3 = '1234';
1253
+ * ```
1254
+ */
1255
+ readonly amount: v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>], undefined>;
1256
+ /**
1257
+ * The recipeint's principal.
1258
+ */
1259
+ readonly recipient: v.StringSchema<undefined>;
1260
+ /**
1261
+ * A string representing the memo.
1262
+ */
1263
+ readonly memo: v.OptionalSchema<v.StringSchema<undefined>, never>;
1264
+ /**
1265
+ * Version of parameter format.
1266
+ */
1267
+ readonly version: v.OptionalSchema<v.StringSchema<undefined>, never>;
1268
+ /**
1269
+ * The mode of the post conditions.
1270
+ */
1271
+ readonly postConditionMode: v.OptionalSchema<v.NumberSchema<undefined>, never>;
1272
+ /**
1273
+ * A hex-encoded string representing the post conditions.
1274
+ *
1275
+ * A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
1276
+ *
1277
+ * ```js
1278
+ * import { serializePostCondition } from '@stacks/transactions';
1279
+ *
1280
+ * const postCondition = somePostCondition;
1281
+ * const hexPostCondition = serializePostCondition(postCondition).toString('hex');
1282
+ * ```
1283
+ */
1284
+ readonly postConditions: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
1285
+ /**
1286
+ * The public key to sign the transaction with. The wallet may use any key
1287
+ * when not provided.
1288
+ */
1289
+ readonly pubkey: v.OptionalSchema<v.StringSchema<undefined>, never>;
1290
+ }, undefined>;
1291
+ readonly id: v.StringSchema<undefined>;
1292
+ readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1293
+ }, undefined>;
1294
+ type StxTransferStxRequestMessage = v.InferOutput<typeof stxTransferStxRequestMessageSchema>;
1295
+ type StxTransferStx = MethodParamsAndResult<StxTransferStxParams, StxTransferStxResult>;
1296
+
1297
+ /**
1298
+ * Permissions with the clientId field omitted and optional actions. Used for
1299
+ * permission requests, since the wallet performs authentication based on the
1300
+ * client's tab origin and should not rely on the client authenticating
1301
+ * themselves.
1302
+ */
1303
+ declare const permissionTemplate: v.VariantSchema<"type", [v.ObjectSchema<{
1304
+ readonly actions: Omit<v.ObjectSchema<{
1305
+ readonly read: v.BooleanSchema<undefined>;
1063
1306
  readonly autoSign: v.BooleanSchema<undefined>;
1064
1307
  readonly rename: v.BooleanSchema<undefined>;
1065
- }, undefined>;
1066
- }, undefined>, "_types" | "_run" | "entries"> & {
1067
- readonly entries: Omit<{
1068
- readonly type: v.LiteralSchema<"account", undefined>;
1069
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1070
- readonly clientId: v.StringSchema<undefined>;
1071
- readonly actions: v.ObjectSchema<{
1072
- readonly read: v.BooleanSchema<undefined>;
1073
- readonly autoSign: v.BooleanSchema<undefined>;
1074
- readonly rename: v.BooleanSchema<undefined>;
1075
- }, undefined>;
1076
- }, "clientId">;
1077
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1078
- type: "account";
1079
- resourceId: string & v.Brand<"AccountResourceId">;
1080
- actions: {
1081
- read: boolean;
1082
- autoSign: boolean;
1083
- rename: boolean;
1308
+ }, undefined>, "_types" | "_run" | "entries"> & {
1309
+ readonly entries: {
1310
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1311
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1312
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1084
1313
  };
1085
- }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1086
- readonly _types?: {
1087
- readonly input: {
1088
- type: "account";
1089
- resourceId: string;
1090
- actions: {
1091
- read: boolean;
1092
- autoSign: boolean;
1093
- rename: boolean;
1314
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1315
+ read?: boolean | undefined;
1316
+ autoSign?: boolean | undefined;
1317
+ rename?: boolean | undefined;
1318
+ }, v.ObjectIssue | v.BooleanIssue>;
1319
+ readonly _types?: {
1320
+ readonly input: {
1321
+ read?: boolean | undefined;
1322
+ autoSign?: boolean | undefined;
1323
+ rename?: boolean | undefined;
1094
1324
  };
1095
- };
1096
- readonly output: {
1097
- type: "account";
1098
- resourceId: string & v.Brand<"AccountResourceId">;
1099
- actions: {
1100
- read: boolean;
1101
- autoSign: boolean;
1102
- rename: boolean;
1325
+ readonly output: {
1326
+ read?: boolean | undefined;
1327
+ autoSign?: boolean | undefined;
1328
+ rename?: boolean | undefined;
1103
1329
  };
1104
- };
1105
- readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1106
- } | undefined;
1107
- }, Omit<v.ObjectSchema<{
1108
- readonly type: v.LiteralSchema<"wallet", undefined>;
1109
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1110
- readonly clientId: v.StringSchema<undefined>;
1111
- readonly actions: v.ObjectSchema<{
1330
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1331
+ } | undefined;
1332
+ };
1333
+ readonly type: v.LiteralSchema<"account", undefined>;
1334
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1335
+ }, undefined>, v.ObjectSchema<{
1336
+ readonly actions: Omit<v.ObjectSchema<{
1112
1337
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1113
1338
  readonly openPopup: v.BooleanSchema<undefined>;
1114
1339
  readonly openFullPage: v.BooleanSchema<undefined>;
1115
1340
  readonly readAllAccounts: v.BooleanSchema<undefined>;
1116
- }, undefined>;
1117
- }, undefined>, "_types" | "_run" | "entries"> & {
1118
- readonly entries: Omit<{
1119
- readonly type: v.LiteralSchema<"wallet", undefined>;
1120
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1121
- readonly clientId: v.StringSchema<undefined>;
1122
- readonly actions: v.ObjectSchema<{
1123
- readonly addPrivateKey: v.BooleanSchema<undefined>;
1124
- readonly openPopup: v.BooleanSchema<undefined>;
1125
- readonly openFullPage: v.BooleanSchema<undefined>;
1126
- readonly readAllAccounts: v.BooleanSchema<undefined>;
1127
- }, undefined>;
1128
- }, "clientId">;
1129
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1130
- type: "wallet";
1131
- resourceId: "wallet";
1132
- actions: {
1133
- addPrivateKey: boolean;
1134
- openPopup: boolean;
1135
- openFullPage: boolean;
1136
- readAllAccounts: boolean;
1341
+ }, undefined>, "_types" | "_run" | "entries"> & {
1342
+ readonly entries: {
1343
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1344
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1345
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1346
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1137
1347
  };
1138
- }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1139
- readonly _types?: {
1140
- readonly input: {
1141
- type: "wallet";
1142
- resourceId: "wallet";
1143
- actions: {
1144
- addPrivateKey: boolean;
1145
- openPopup: boolean;
1146
- openFullPage: boolean;
1147
- readAllAccounts: boolean;
1348
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1349
+ addPrivateKey?: boolean | undefined;
1350
+ openPopup?: boolean | undefined;
1351
+ openFullPage?: boolean | undefined;
1352
+ readAllAccounts?: boolean | undefined;
1353
+ }, v.ObjectIssue | v.BooleanIssue>;
1354
+ readonly _types?: {
1355
+ readonly input: {
1356
+ addPrivateKey?: boolean | undefined;
1357
+ openPopup?: boolean | undefined;
1358
+ openFullPage?: boolean | undefined;
1359
+ readAllAccounts?: boolean | undefined;
1148
1360
  };
1149
- };
1150
- readonly output: {
1151
- type: "wallet";
1152
- resourceId: "wallet";
1153
- actions: {
1154
- addPrivateKey: boolean;
1155
- openPopup: boolean;
1156
- openFullPage: boolean;
1157
- readAllAccounts: boolean;
1361
+ readonly output: {
1362
+ addPrivateKey?: boolean | undefined;
1363
+ openPopup?: boolean | undefined;
1364
+ openFullPage?: boolean | undefined;
1365
+ readAllAccounts?: boolean | undefined;
1158
1366
  };
1159
- };
1160
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1161
- } | undefined;
1162
- }], undefined>, undefined>;
1163
- type PermissionsWithoutClientId = v.InferOutput<typeof permissionsWithoutClientId>;
1367
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1368
+ } | undefined;
1369
+ };
1370
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1371
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1372
+ }, undefined>], undefined>;
1373
+ type PermissionWithoutClientId = v.InferOutput<typeof permissionTemplate>;
1164
1374
  declare const requestPermissionsMethodName = "wallet_requestPermissions";
1165
- declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1166
- readonly type: v.LiteralSchema<"account", undefined>;
1167
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1168
- readonly clientId: v.StringSchema<undefined>;
1169
- readonly actions: v.ObjectSchema<{
1375
+ declare const requestPermissionsParamsSchema: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1376
+ readonly actions: Omit<v.ObjectSchema<{
1170
1377
  readonly read: v.BooleanSchema<undefined>;
1171
1378
  readonly autoSign: v.BooleanSchema<undefined>;
1172
1379
  readonly rename: v.BooleanSchema<undefined>;
1173
- }, undefined>;
1174
- }, undefined>, "_types" | "_run" | "entries"> & {
1175
- readonly entries: Omit<{
1176
- readonly type: v.LiteralSchema<"account", undefined>;
1177
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1178
- readonly clientId: v.StringSchema<undefined>;
1179
- readonly actions: v.ObjectSchema<{
1180
- readonly read: v.BooleanSchema<undefined>;
1181
- readonly autoSign: v.BooleanSchema<undefined>;
1182
- readonly rename: v.BooleanSchema<undefined>;
1183
- }, undefined>;
1184
- }, "clientId">;
1185
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1186
- type: "account";
1187
- resourceId: string & v.Brand<"AccountResourceId">;
1188
- actions: {
1189
- read: boolean;
1190
- autoSign: boolean;
1191
- rename: boolean;
1380
+ }, undefined>, "_types" | "_run" | "entries"> & {
1381
+ readonly entries: {
1382
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1383
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1384
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1192
1385
  };
1193
- }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1194
- readonly _types?: {
1195
- readonly input: {
1196
- type: "account";
1197
- resourceId: string;
1198
- actions: {
1199
- read: boolean;
1200
- autoSign: boolean;
1201
- rename: boolean;
1386
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1387
+ read?: boolean | undefined;
1388
+ autoSign?: boolean | undefined;
1389
+ rename?: boolean | undefined;
1390
+ }, v.ObjectIssue | v.BooleanIssue>;
1391
+ readonly _types?: {
1392
+ readonly input: {
1393
+ read?: boolean | undefined;
1394
+ autoSign?: boolean | undefined;
1395
+ rename?: boolean | undefined;
1202
1396
  };
1203
- };
1204
- readonly output: {
1205
- type: "account";
1206
- resourceId: string & v.Brand<"AccountResourceId">;
1207
- actions: {
1208
- read: boolean;
1209
- autoSign: boolean;
1210
- rename: boolean;
1397
+ readonly output: {
1398
+ read?: boolean | undefined;
1399
+ autoSign?: boolean | undefined;
1400
+ rename?: boolean | undefined;
1211
1401
  };
1212
- };
1213
- readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1214
- } | undefined;
1215
- }, Omit<v.ObjectSchema<{
1216
- readonly type: v.LiteralSchema<"wallet", undefined>;
1217
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1218
- readonly clientId: v.StringSchema<undefined>;
1219
- readonly actions: v.ObjectSchema<{
1402
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1403
+ } | undefined;
1404
+ };
1405
+ readonly type: v.LiteralSchema<"account", undefined>;
1406
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1407
+ }, undefined>, v.ObjectSchema<{
1408
+ readonly actions: Omit<v.ObjectSchema<{
1220
1409
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1221
1410
  readonly openPopup: v.BooleanSchema<undefined>;
1222
1411
  readonly openFullPage: v.BooleanSchema<undefined>;
1223
1412
  readonly readAllAccounts: v.BooleanSchema<undefined>;
1224
- }, undefined>;
1225
- }, undefined>, "_types" | "_run" | "entries"> & {
1226
- readonly entries: Omit<{
1227
- readonly type: v.LiteralSchema<"wallet", undefined>;
1228
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1229
- readonly clientId: v.StringSchema<undefined>;
1230
- readonly actions: v.ObjectSchema<{
1231
- readonly addPrivateKey: v.BooleanSchema<undefined>;
1232
- readonly openPopup: v.BooleanSchema<undefined>;
1233
- readonly openFullPage: v.BooleanSchema<undefined>;
1234
- readonly readAllAccounts: v.BooleanSchema<undefined>;
1235
- }, undefined>;
1236
- }, "clientId">;
1237
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1238
- type: "wallet";
1239
- resourceId: "wallet";
1240
- actions: {
1241
- addPrivateKey: boolean;
1242
- openPopup: boolean;
1243
- openFullPage: boolean;
1244
- readAllAccounts: boolean;
1413
+ }, undefined>, "_types" | "_run" | "entries"> & {
1414
+ readonly entries: {
1415
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1416
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1417
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1418
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1245
1419
  };
1246
- }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1247
- readonly _types?: {
1248
- readonly input: {
1249
- type: "wallet";
1250
- resourceId: "wallet";
1251
- actions: {
1252
- addPrivateKey: boolean;
1253
- openPopup: boolean;
1254
- openFullPage: boolean;
1255
- readAllAccounts: boolean;
1420
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1421
+ addPrivateKey?: boolean | undefined;
1422
+ openPopup?: boolean | undefined;
1423
+ openFullPage?: boolean | undefined;
1424
+ readAllAccounts?: boolean | undefined;
1425
+ }, v.ObjectIssue | v.BooleanIssue>;
1426
+ readonly _types?: {
1427
+ readonly input: {
1428
+ addPrivateKey?: boolean | undefined;
1429
+ openPopup?: boolean | undefined;
1430
+ openFullPage?: boolean | undefined;
1431
+ readAllAccounts?: boolean | undefined;
1256
1432
  };
1257
- };
1258
- readonly output: {
1259
- type: "wallet";
1260
- resourceId: "wallet";
1261
- actions: {
1262
- addPrivateKey: boolean;
1263
- openPopup: boolean;
1264
- openFullPage: boolean;
1265
- readAllAccounts: boolean;
1433
+ readonly output: {
1434
+ addPrivateKey?: boolean | undefined;
1435
+ openPopup?: boolean | undefined;
1436
+ openFullPage?: boolean | undefined;
1437
+ readAllAccounts?: boolean | undefined;
1266
1438
  };
1267
- };
1268
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1269
- } | undefined;
1270
- }], undefined>, undefined>, never>;
1439
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1440
+ } | undefined;
1441
+ };
1442
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1443
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1444
+ }, undefined>], undefined>, undefined>, never>;
1445
+ type RequestPermissionsParams = v.InferOutput<typeof requestPermissionsParamsSchema>;
1271
1446
  declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
1447
+ type RequestPermissionsResult = v.InferOutput<typeof requestPermissionsResultSchema>;
1272
1448
  declare const requestPermissionsRequestMessageSchema: v.ObjectSchema<{
1273
1449
  readonly method: v.LiteralSchema<"wallet_requestPermissions", undefined>;
1274
- readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1275
- readonly type: v.LiteralSchema<"account", undefined>;
1276
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1277
- readonly clientId: v.StringSchema<undefined>;
1278
- readonly actions: v.ObjectSchema<{
1450
+ readonly params: v.NullishSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1451
+ readonly actions: Omit<v.ObjectSchema<{
1279
1452
  readonly read: v.BooleanSchema<undefined>;
1280
1453
  readonly autoSign: v.BooleanSchema<undefined>;
1281
1454
  readonly rename: v.BooleanSchema<undefined>;
1282
- }, undefined>;
1283
- }, undefined>, "_types" | "_run" | "entries"> & {
1284
- readonly entries: Omit<{
1285
- readonly type: v.LiteralSchema<"account", undefined>;
1286
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1287
- readonly clientId: v.StringSchema<undefined>;
1288
- readonly actions: v.ObjectSchema<{
1289
- readonly read: v.BooleanSchema<undefined>;
1290
- readonly autoSign: v.BooleanSchema<undefined>;
1291
- readonly rename: v.BooleanSchema<undefined>;
1292
- }, undefined>;
1293
- }, "clientId">;
1294
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1295
- type: "account";
1296
- resourceId: string & v.Brand<"AccountResourceId">;
1297
- actions: {
1298
- read: boolean;
1299
- autoSign: boolean;
1300
- rename: boolean;
1455
+ }, undefined>, "_types" | "_run" | "entries"> & {
1456
+ readonly entries: {
1457
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1458
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1459
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1301
1460
  };
1302
- }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1303
- readonly _types?: {
1304
- readonly input: {
1305
- type: "account";
1306
- resourceId: string;
1307
- actions: {
1308
- read: boolean;
1309
- autoSign: boolean;
1310
- rename: boolean;
1461
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1462
+ read?: boolean | undefined;
1463
+ autoSign?: boolean | undefined;
1464
+ rename?: boolean | undefined;
1465
+ }, v.ObjectIssue | v.BooleanIssue>;
1466
+ readonly _types?: {
1467
+ readonly input: {
1468
+ read?: boolean | undefined;
1469
+ autoSign?: boolean | undefined;
1470
+ rename?: boolean | undefined;
1311
1471
  };
1312
- };
1313
- readonly output: {
1314
- type: "account";
1315
- resourceId: string & v.Brand<"AccountResourceId">;
1316
- actions: {
1317
- read: boolean;
1318
- autoSign: boolean;
1319
- rename: boolean;
1472
+ readonly output: {
1473
+ read?: boolean | undefined;
1474
+ autoSign?: boolean | undefined;
1475
+ rename?: boolean | undefined;
1320
1476
  };
1321
- };
1322
- readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1323
- } | undefined;
1324
- }, Omit<v.ObjectSchema<{
1325
- readonly type: v.LiteralSchema<"wallet", undefined>;
1326
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1327
- readonly clientId: v.StringSchema<undefined>;
1328
- readonly actions: v.ObjectSchema<{
1477
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1478
+ } | undefined;
1479
+ };
1480
+ readonly type: v.LiteralSchema<"account", undefined>;
1481
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1482
+ }, undefined>, v.ObjectSchema<{
1483
+ readonly actions: Omit<v.ObjectSchema<{
1329
1484
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1330
1485
  readonly openPopup: v.BooleanSchema<undefined>;
1331
1486
  readonly openFullPage: v.BooleanSchema<undefined>;
1332
1487
  readonly readAllAccounts: v.BooleanSchema<undefined>;
1333
- }, undefined>;
1334
- }, undefined>, "_types" | "_run" | "entries"> & {
1335
- readonly entries: Omit<{
1336
- readonly type: v.LiteralSchema<"wallet", undefined>;
1337
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1338
- readonly clientId: v.StringSchema<undefined>;
1339
- readonly actions: v.ObjectSchema<{
1340
- readonly addPrivateKey: v.BooleanSchema<undefined>;
1341
- readonly openPopup: v.BooleanSchema<undefined>;
1342
- readonly openFullPage: v.BooleanSchema<undefined>;
1343
- readonly readAllAccounts: v.BooleanSchema<undefined>;
1344
- }, undefined>;
1345
- }, "clientId">;
1346
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1347
- type: "wallet";
1348
- resourceId: "wallet";
1349
- actions: {
1350
- addPrivateKey: boolean;
1351
- openPopup: boolean;
1352
- openFullPage: boolean;
1353
- readAllAccounts: boolean;
1488
+ }, undefined>, "_types" | "_run" | "entries"> & {
1489
+ readonly entries: {
1490
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1491
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1492
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1493
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1354
1494
  };
1355
- }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1356
- readonly _types?: {
1357
- readonly input: {
1358
- type: "wallet";
1359
- resourceId: "wallet";
1360
- actions: {
1361
- addPrivateKey: boolean;
1362
- openPopup: boolean;
1363
- openFullPage: boolean;
1364
- readAllAccounts: boolean;
1495
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1496
+ addPrivateKey?: boolean | undefined;
1497
+ openPopup?: boolean | undefined;
1498
+ openFullPage?: boolean | undefined;
1499
+ readAllAccounts?: boolean | undefined;
1500
+ }, v.ObjectIssue | v.BooleanIssue>;
1501
+ readonly _types?: {
1502
+ readonly input: {
1503
+ addPrivateKey?: boolean | undefined;
1504
+ openPopup?: boolean | undefined;
1505
+ openFullPage?: boolean | undefined;
1506
+ readAllAccounts?: boolean | undefined;
1365
1507
  };
1366
- };
1367
- readonly output: {
1368
- type: "wallet";
1369
- resourceId: "wallet";
1370
- actions: {
1371
- addPrivateKey: boolean;
1372
- openPopup: boolean;
1373
- openFullPage: boolean;
1374
- readAllAccounts: boolean;
1508
+ readonly output: {
1509
+ addPrivateKey?: boolean | undefined;
1510
+ openPopup?: boolean | undefined;
1511
+ openFullPage?: boolean | undefined;
1512
+ readAllAccounts?: boolean | undefined;
1375
1513
  };
1376
- };
1377
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1378
- } | undefined;
1379
- }], undefined>, undefined>, never>;
1514
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1515
+ } | undefined;
1516
+ };
1517
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1518
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1519
+ }, undefined>], undefined>, undefined>, never>;
1380
1520
  readonly id: v.StringSchema<undefined>;
1381
1521
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1382
1522
  }, undefined>;
1383
- type RequestPermissions = MethodParamsAndResult<v.InferOutput<typeof requestPermissionsParamsSchema>, v.InferOutput<typeof requestPermissionsResultSchema>>;
1523
+ type RequestPermissionsRequestMessage = v.InferOutput<typeof requestPermissionsRequestMessageSchema>;
1524
+ type RequestPermissions = MethodParamsAndResult<RequestPermissionsParams, RequestPermissionsResult>;
1384
1525
  declare const renouncePermissionsMethodName = "wallet_renouncePermissions";
1385
1526
  declare const renouncePermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1527
+ type RenouncePermissionsParams = v.InferOutput<typeof renouncePermissionsParamsSchema>;
1386
1528
  declare const renouncePermissionsResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1529
+ type RenouncePermissionsResult = v.InferOutput<typeof renouncePermissionsResultSchema>;
1387
1530
  declare const renouncePermissionsRequestMessageSchema: v.ObjectSchema<{
1388
1531
  readonly method: v.LiteralSchema<"wallet_renouncePermissions", undefined>;
1389
1532
  readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1390
1533
  readonly id: v.StringSchema<undefined>;
1391
1534
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1392
1535
  }, undefined>;
1393
- type RenouncePermissions = MethodParamsAndResult<v.InferOutput<typeof renouncePermissionsParamsSchema>, v.InferOutput<typeof renouncePermissionsResultSchema>>;
1536
+ type RenouncePermissionsRequestMessage = v.InferOutput<typeof renouncePermissionsRequestMessageSchema>;
1537
+ type RenouncePermissions = MethodParamsAndResult<RenouncePermissionsParams, RenouncePermissionsResult>;
1394
1538
  declare const disconnectMethodName = "wallet_disconnect";
1395
1539
  declare const disconnectParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1540
+ type DisconnectParams = v.InferOutput<typeof disconnectParamsSchema>;
1396
1541
  declare const disconnectResultSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1542
+ type DisconnectResult = v.InferOutput<typeof disconnectResultSchema>;
1397
1543
  declare const disconnectRequestMessageSchema: v.ObjectSchema<{
1398
1544
  readonly method: v.LiteralSchema<"wallet_disconnect", undefined>;
1399
1545
  readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1400
1546
  readonly id: v.StringSchema<undefined>;
1401
1547
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1402
1548
  }, undefined>;
1403
- type Disconnect = MethodParamsAndResult<v.InferOutput<typeof disconnectParamsSchema>, v.InferOutput<typeof disconnectResultSchema>>;
1549
+ type DisconnectRequestMessage = v.InferOutput<typeof disconnectRequestMessageSchema>;
1550
+ type Disconnect = MethodParamsAndResult<DisconnectParams, DisconnectResult>;
1404
1551
  declare const getWalletTypeMethodName = "wallet_getWalletType";
1405
1552
  declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1553
+ type GetWalletTypeParams = v.InferOutput<typeof getWalletTypeParamsSchema>;
1406
1554
  declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1555
+ type GetWalletTypeResult = v.InferOutput<typeof getWalletTypeResultSchema>;
1407
1556
  declare const getWalletTypeRequestMessageSchema: v.ObjectSchema<{
1408
1557
  readonly method: v.LiteralSchema<"wallet_getWalletType", undefined>;
1409
1558
  readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1410
1559
  readonly id: v.StringSchema<undefined>;
1411
1560
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1412
1561
  }, undefined>;
1413
- type GetWalletType = MethodParamsAndResult<v.InferOutput<typeof getWalletTypeParamsSchema>, v.InferOutput<typeof getWalletTypeResultSchema>>;
1562
+ type GetWalletTypeRequestMessage = v.InferOutput<typeof getWalletTypeRequestMessageSchema>;
1563
+ type GetWalletType = MethodParamsAndResult<GetWalletTypeParams, GetWalletTypeResult>;
1414
1564
  declare const getCurrentPermissionsMethodName = "wallet_getCurrentPermissions";
1415
1565
  declare const getCurrentPermissionsParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1566
+ type GetCurrentPermissionsParams = v.InferOutput<typeof getCurrentPermissionsParamsSchema>;
1416
1567
  declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1417
1568
  readonly type: v.LiteralSchema<"account", undefined>;
1418
1569
  readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
@@ -1433,15 +1584,18 @@ declare const getCurrentPermissionsResultSchema: v.ArraySchema<v.VariantSchema<"
1433
1584
  readonly readAllAccounts: v.BooleanSchema<undefined>;
1434
1585
  }, undefined>;
1435
1586
  }, undefined>], undefined>, undefined>;
1587
+ type GetCurrentPermissionsResult = v.InferOutput<typeof getCurrentPermissionsResultSchema>;
1436
1588
  declare const getCurrentPermissionsRequestMessageSchema: v.ObjectSchema<{
1437
1589
  readonly method: v.LiteralSchema<"wallet_getCurrentPermissions", undefined>;
1438
1590
  readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1439
1591
  readonly id: v.StringSchema<undefined>;
1440
1592
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1441
1593
  }, undefined>;
1442
- type GetCurrentPermissions = MethodParamsAndResult<v.InferOutput<typeof getCurrentPermissionsParamsSchema>, v.InferOutput<typeof getCurrentPermissionsResultSchema>>;
1594
+ type GetCurrentPermissionsRequestMessage = v.InferOutput<typeof getCurrentPermissionsRequestMessageSchema>;
1595
+ type GetCurrentPermissions = MethodParamsAndResult<GetCurrentPermissionsParams, GetCurrentPermissionsResult>;
1443
1596
  declare const getAccountMethodName = "wallet_getAccount";
1444
1597
  declare const getAccountParamsSchema: v.NullishSchema<v.NullSchema<undefined>, never>;
1598
+ type GetAccountParams = v.InferOutput<typeof getAccountParamsSchema>;
1445
1599
  declare const getAccountResultSchema: v.ObjectSchema<{
1446
1600
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1447
1601
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
@@ -1452,144 +1606,89 @@ declare const getAccountResultSchema: v.ObjectSchema<{
1452
1606
  }, undefined>, undefined>;
1453
1607
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1454
1608
  }, undefined>;
1609
+ type GetAccountResult = v.InferOutput<typeof getAccountResultSchema>;
1455
1610
  declare const getAccountRequestMessageSchema: v.ObjectSchema<{
1456
1611
  readonly method: v.LiteralSchema<"wallet_getAccount", undefined>;
1457
1612
  readonly params: v.NullishSchema<v.NullSchema<undefined>, never>;
1458
1613
  readonly id: v.StringSchema<undefined>;
1459
1614
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1460
1615
  }, undefined>;
1461
- type GetAccount = MethodParamsAndResult<v.InferOutput<typeof getAccountParamsSchema>, v.InferOutput<typeof getAccountResultSchema>>;
1462
- declare const registerClientMethodName = "wallet_registerClient";
1463
- declare const registerClientParamsSchema: v.ObjectSchema<{
1464
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1465
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1466
- }, undefined>;
1467
- declare const registerClientResultSchema: v.ObjectSchema<{
1468
- readonly id: v.StringSchema<undefined>;
1469
- }, undefined>;
1470
- declare const registerClientRequestMessageSchema: v.ObjectSchema<{
1471
- readonly method: v.LiteralSchema<"wallet_registerClient", undefined>;
1472
- readonly params: v.ObjectSchema<{
1473
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1474
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1475
- }, undefined>;
1476
- readonly id: v.StringSchema<undefined>;
1477
- readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1478
- }, undefined>;
1479
- type RegisterClient = MethodParamsAndResult<v.InferOutput<typeof registerClientParamsSchema>, v.InferOutput<typeof registerClientResultSchema>>;
1616
+ type GetAccountRequestMessage = v.InferOutput<typeof getAccountRequestMessageSchema>;
1617
+ type GetAccount = MethodParamsAndResult<GetAccountParams, GetAccountResult>;
1480
1618
  declare const connectMethodName = "wallet_connect";
1481
1619
  declare const connectParamsSchema: v.NullishSchema<v.ObjectSchema<{
1482
- readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1483
- readonly type: v.LiteralSchema<"account", undefined>;
1484
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1485
- readonly clientId: v.StringSchema<undefined>;
1486
- readonly actions: v.ObjectSchema<{
1620
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1621
+ readonly actions: Omit<v.ObjectSchema<{
1487
1622
  readonly read: v.BooleanSchema<undefined>;
1488
1623
  readonly autoSign: v.BooleanSchema<undefined>;
1489
1624
  readonly rename: v.BooleanSchema<undefined>;
1490
- }, undefined>;
1491
- }, undefined>, "_types" | "_run" | "entries"> & {
1492
- readonly entries: Omit<{
1493
- readonly type: v.LiteralSchema<"account", undefined>;
1494
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1495
- readonly clientId: v.StringSchema<undefined>;
1496
- readonly actions: v.ObjectSchema<{
1497
- readonly read: v.BooleanSchema<undefined>;
1498
- readonly autoSign: v.BooleanSchema<undefined>;
1499
- readonly rename: v.BooleanSchema<undefined>;
1500
- }, undefined>;
1501
- }, "clientId">;
1502
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1503
- type: "account";
1504
- resourceId: string & v.Brand<"AccountResourceId">;
1505
- actions: {
1506
- read: boolean;
1507
- autoSign: boolean;
1508
- rename: boolean;
1625
+ }, undefined>, "_types" | "_run" | "entries"> & {
1626
+ readonly entries: {
1627
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1628
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1629
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1509
1630
  };
1510
- }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1511
- readonly _types?: {
1512
- readonly input: {
1513
- type: "account";
1514
- resourceId: string;
1515
- actions: {
1516
- read: boolean;
1517
- autoSign: boolean;
1518
- rename: boolean;
1631
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1632
+ read?: boolean | undefined;
1633
+ autoSign?: boolean | undefined;
1634
+ rename?: boolean | undefined;
1635
+ }, v.ObjectIssue | v.BooleanIssue>;
1636
+ readonly _types?: {
1637
+ readonly input: {
1638
+ read?: boolean | undefined;
1639
+ autoSign?: boolean | undefined;
1640
+ rename?: boolean | undefined;
1519
1641
  };
1520
- };
1521
- readonly output: {
1522
- type: "account";
1523
- resourceId: string & v.Brand<"AccountResourceId">;
1524
- actions: {
1525
- read: boolean;
1526
- autoSign: boolean;
1527
- rename: boolean;
1642
+ readonly output: {
1643
+ read?: boolean | undefined;
1644
+ autoSign?: boolean | undefined;
1645
+ rename?: boolean | undefined;
1528
1646
  };
1529
- };
1530
- readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1531
- } | undefined;
1532
- }, Omit<v.ObjectSchema<{
1533
- readonly type: v.LiteralSchema<"wallet", undefined>;
1534
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1535
- readonly clientId: v.StringSchema<undefined>;
1536
- readonly actions: v.ObjectSchema<{
1647
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1648
+ } | undefined;
1649
+ };
1650
+ readonly type: v.LiteralSchema<"account", undefined>;
1651
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1652
+ }, undefined>, v.ObjectSchema<{
1653
+ readonly actions: Omit<v.ObjectSchema<{
1537
1654
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1538
1655
  readonly openPopup: v.BooleanSchema<undefined>;
1539
1656
  readonly openFullPage: v.BooleanSchema<undefined>;
1540
1657
  readonly readAllAccounts: v.BooleanSchema<undefined>;
1541
- }, undefined>;
1542
- }, undefined>, "_types" | "_run" | "entries"> & {
1543
- readonly entries: Omit<{
1544
- readonly type: v.LiteralSchema<"wallet", undefined>;
1545
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1546
- readonly clientId: v.StringSchema<undefined>;
1547
- readonly actions: v.ObjectSchema<{
1548
- readonly addPrivateKey: v.BooleanSchema<undefined>;
1549
- readonly openPopup: v.BooleanSchema<undefined>;
1550
- readonly openFullPage: v.BooleanSchema<undefined>;
1551
- readonly readAllAccounts: v.BooleanSchema<undefined>;
1552
- }, undefined>;
1553
- }, "clientId">;
1554
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1555
- type: "wallet";
1556
- resourceId: "wallet";
1557
- actions: {
1558
- addPrivateKey: boolean;
1559
- openPopup: boolean;
1560
- openFullPage: boolean;
1561
- readAllAccounts: boolean;
1658
+ }, undefined>, "_types" | "_run" | "entries"> & {
1659
+ readonly entries: {
1660
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1661
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1662
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1663
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1562
1664
  };
1563
- }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1564
- readonly _types?: {
1565
- readonly input: {
1566
- type: "wallet";
1567
- resourceId: "wallet";
1568
- actions: {
1569
- addPrivateKey: boolean;
1570
- openPopup: boolean;
1571
- openFullPage: boolean;
1572
- readAllAccounts: boolean;
1665
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1666
+ addPrivateKey?: boolean | undefined;
1667
+ openPopup?: boolean | undefined;
1668
+ openFullPage?: boolean | undefined;
1669
+ readAllAccounts?: boolean | undefined;
1670
+ }, v.ObjectIssue | v.BooleanIssue>;
1671
+ readonly _types?: {
1672
+ readonly input: {
1673
+ addPrivateKey?: boolean | undefined;
1674
+ openPopup?: boolean | undefined;
1675
+ openFullPage?: boolean | undefined;
1676
+ readAllAccounts?: boolean | undefined;
1573
1677
  };
1574
- };
1575
- readonly output: {
1576
- type: "wallet";
1577
- resourceId: "wallet";
1578
- actions: {
1579
- addPrivateKey: boolean;
1580
- openPopup: boolean;
1581
- openFullPage: boolean;
1582
- readAllAccounts: boolean;
1678
+ readonly output: {
1679
+ addPrivateKey?: boolean | undefined;
1680
+ openPopup?: boolean | undefined;
1681
+ openFullPage?: boolean | undefined;
1682
+ readAllAccounts?: boolean | undefined;
1583
1683
  };
1584
- };
1585
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1586
- } | undefined;
1587
- }], undefined>, undefined>, never>;
1588
- readonly clientInfo: v.ObjectSchema<{
1589
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1590
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1591
- }, undefined>;
1684
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1685
+ } | undefined;
1686
+ };
1687
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1688
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1689
+ }, undefined>], undefined>, undefined>, never>;
1592
1690
  }, undefined>, never>;
1691
+ type ConnectParams = v.InferOutput<typeof connectParamsSchema>;
1593
1692
  declare const connectResultSchema: v.ObjectSchema<{
1594
1693
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.BrandAction<string, "AccountId">]>;
1595
1694
  readonly addresses: v.ArraySchema<v.ObjectSchema<{
@@ -1600,124 +1699,86 @@ declare const connectResultSchema: v.ObjectSchema<{
1600
1699
  }, undefined>, undefined>;
1601
1700
  readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
1602
1701
  }, undefined>;
1702
+ type ConnectResult = v.InferOutput<typeof connectResultSchema>;
1603
1703
  declare const connectRequestMessageSchema: v.ObjectSchema<{
1604
1704
  readonly method: v.LiteralSchema<"wallet_connect", undefined>;
1605
1705
  readonly params: v.NullishSchema<v.ObjectSchema<{
1606
- readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [Omit<v.ObjectSchema<{
1607
- readonly type: v.LiteralSchema<"account", undefined>;
1608
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1609
- readonly clientId: v.StringSchema<undefined>;
1610
- readonly actions: v.ObjectSchema<{
1706
+ readonly permissions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1707
+ readonly actions: Omit<v.ObjectSchema<{
1611
1708
  readonly read: v.BooleanSchema<undefined>;
1612
1709
  readonly autoSign: v.BooleanSchema<undefined>;
1613
1710
  readonly rename: v.BooleanSchema<undefined>;
1614
- }, undefined>;
1615
- }, undefined>, "_types" | "_run" | "entries"> & {
1616
- readonly entries: Omit<{
1617
- readonly type: v.LiteralSchema<"account", undefined>;
1618
- readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1619
- readonly clientId: v.StringSchema<undefined>;
1620
- readonly actions: v.ObjectSchema<{
1621
- readonly read: v.BooleanSchema<undefined>;
1622
- readonly autoSign: v.BooleanSchema<undefined>;
1623
- readonly rename: v.BooleanSchema<undefined>;
1624
- }, undefined>;
1625
- }, "clientId">;
1626
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1627
- type: "account";
1628
- resourceId: string & v.Brand<"AccountResourceId">;
1629
- actions: {
1630
- read: boolean;
1631
- autoSign: boolean;
1632
- rename: boolean;
1711
+ }, undefined>, "_types" | "_run" | "entries"> & {
1712
+ readonly entries: {
1713
+ readonly read: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1714
+ readonly autoSign: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1715
+ readonly rename: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1633
1716
  };
1634
- }, v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>>;
1635
- readonly _types?: {
1636
- readonly input: {
1637
- type: "account";
1638
- resourceId: string;
1639
- actions: {
1640
- read: boolean;
1641
- autoSign: boolean;
1642
- rename: boolean;
1717
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1718
+ read?: boolean | undefined;
1719
+ autoSign?: boolean | undefined;
1720
+ rename?: boolean | undefined;
1721
+ }, v.ObjectIssue | v.BooleanIssue>;
1722
+ readonly _types?: {
1723
+ readonly input: {
1724
+ read?: boolean | undefined;
1725
+ autoSign?: boolean | undefined;
1726
+ rename?: boolean | undefined;
1643
1727
  };
1644
- };
1645
- readonly output: {
1646
- type: "account";
1647
- resourceId: string & v.Brand<"AccountResourceId">;
1648
- actions: {
1649
- read: boolean;
1650
- autoSign: boolean;
1651
- rename: boolean;
1728
+ readonly output: {
1729
+ read?: boolean | undefined;
1730
+ autoSign?: boolean | undefined;
1731
+ rename?: boolean | undefined;
1652
1732
  };
1653
- };
1654
- readonly issue: v.StringIssue | v.LiteralIssue | v.ObjectIssue | v.BooleanIssue | v.CheckIssue<string>;
1655
- } | undefined;
1656
- }, Omit<v.ObjectSchema<{
1657
- readonly type: v.LiteralSchema<"wallet", undefined>;
1658
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1659
- readonly clientId: v.StringSchema<undefined>;
1660
- readonly actions: v.ObjectSchema<{
1733
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1734
+ } | undefined;
1735
+ };
1736
+ readonly type: v.LiteralSchema<"account", undefined>;
1737
+ readonly resourceId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string, undefined>, v.BrandAction<string, "AccountResourceId">]>;
1738
+ }, undefined>, v.ObjectSchema<{
1739
+ readonly actions: Omit<v.ObjectSchema<{
1661
1740
  readonly addPrivateKey: v.BooleanSchema<undefined>;
1662
1741
  readonly openPopup: v.BooleanSchema<undefined>;
1663
1742
  readonly openFullPage: v.BooleanSchema<undefined>;
1664
1743
  readonly readAllAccounts: v.BooleanSchema<undefined>;
1665
- }, undefined>;
1666
- }, undefined>, "_types" | "_run" | "entries"> & {
1667
- readonly entries: Omit<{
1668
- readonly type: v.LiteralSchema<"wallet", undefined>;
1669
- readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1670
- readonly clientId: v.StringSchema<undefined>;
1671
- readonly actions: v.ObjectSchema<{
1672
- readonly addPrivateKey: v.BooleanSchema<undefined>;
1673
- readonly openPopup: v.BooleanSchema<undefined>;
1674
- readonly openFullPage: v.BooleanSchema<undefined>;
1675
- readonly readAllAccounts: v.BooleanSchema<undefined>;
1676
- }, undefined>;
1677
- }, "clientId">;
1678
- readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1679
- type: "wallet";
1680
- resourceId: "wallet";
1681
- actions: {
1682
- addPrivateKey: boolean;
1683
- openPopup: boolean;
1684
- openFullPage: boolean;
1685
- readAllAccounts: boolean;
1744
+ }, undefined>, "_types" | "_run" | "entries"> & {
1745
+ readonly entries: {
1746
+ readonly addPrivateKey: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1747
+ readonly openPopup: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1748
+ readonly openFullPage: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1749
+ readonly readAllAccounts: v.OptionalSchema<v.BooleanSchema<undefined>, never>;
1686
1750
  };
1687
- }, v.LiteralIssue | v.ObjectIssue | v.BooleanIssue>;
1688
- readonly _types?: {
1689
- readonly input: {
1690
- type: "wallet";
1691
- resourceId: "wallet";
1692
- actions: {
1693
- addPrivateKey: boolean;
1694
- openPopup: boolean;
1695
- openFullPage: boolean;
1696
- readAllAccounts: boolean;
1751
+ readonly _run: (dataset: v.Dataset<unknown, never>, config: v.Config<v.BaseIssue<unknown>>) => v.Dataset<{
1752
+ addPrivateKey?: boolean | undefined;
1753
+ openPopup?: boolean | undefined;
1754
+ openFullPage?: boolean | undefined;
1755
+ readAllAccounts?: boolean | undefined;
1756
+ }, v.ObjectIssue | v.BooleanIssue>;
1757
+ readonly _types?: {
1758
+ readonly input: {
1759
+ addPrivateKey?: boolean | undefined;
1760
+ openPopup?: boolean | undefined;
1761
+ openFullPage?: boolean | undefined;
1762
+ readAllAccounts?: boolean | undefined;
1697
1763
  };
1698
- };
1699
- readonly output: {
1700
- type: "wallet";
1701
- resourceId: "wallet";
1702
- actions: {
1703
- addPrivateKey: boolean;
1704
- openPopup: boolean;
1705
- openFullPage: boolean;
1706
- readAllAccounts: boolean;
1764
+ readonly output: {
1765
+ addPrivateKey?: boolean | undefined;
1766
+ openPopup?: boolean | undefined;
1767
+ openFullPage?: boolean | undefined;
1768
+ readAllAccounts?: boolean | undefined;
1707
1769
  };
1708
- };
1709
- readonly issue: v.LiteralIssue | v.ObjectIssue | v.BooleanIssue;
1710
- } | undefined;
1711
- }], undefined>, undefined>, never>;
1712
- readonly clientInfo: v.ObjectSchema<{
1713
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, never>;
1714
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, never>;
1715
- }, undefined>;
1770
+ readonly issue: v.ObjectIssue | v.BooleanIssue;
1771
+ } | undefined;
1772
+ };
1773
+ readonly type: v.LiteralSchema<"wallet", undefined>;
1774
+ readonly resourceId: v.LiteralSchema<"wallet", undefined>;
1775
+ }, undefined>], undefined>, undefined>, never>;
1716
1776
  }, undefined>, never>;
1717
1777
  readonly id: v.StringSchema<undefined>;
1718
1778
  readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
1719
1779
  }, undefined>;
1720
- type Connect = MethodParamsAndResult<v.InferOutput<typeof connectParamsSchema>, v.InferOutput<typeof connectResultSchema>>;
1780
+ type ConnectRequestMessage = v.InferOutput<typeof connectRequestMessageSchema>;
1781
+ type Connect = MethodParamsAndResult<ConnectParams, ConnectResult>;
1721
1782
 
1722
1783
  declare const walletTypes: readonly ["software", "ledger"];
1723
1784
  declare const walletTypeSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
@@ -1728,7 +1789,7 @@ interface StxRequests {
1728
1789
  stx_deployContract: StxDeployContract;
1729
1790
  stx_getAccounts: StxGetAccounts;
1730
1791
  stx_getAddresses: StxGetAddresses;
1731
- stx_signMessage: StxSignStxMessage;
1792
+ stx_signMessage: StxSignMessage;
1732
1793
  stx_signStructuredMessage: StxSignStructuredMessage;
1733
1794
  stx_signTransaction: StxSignTransaction;
1734
1795
  stx_transferStx: StxTransferStx;
@@ -1798,4 +1859,4 @@ declare class BaseAdapter extends SatsConnectAdapter {
1798
1859
  declare const DefaultAdaptersInfo: Record<string, Provider>;
1799
1860
  declare const defaultAdapters: Record<string, new () => SatsConnectAdapter>;
1800
1861
 
1801
- export { type AccountChangeEvent, type AddListener, type Address$1 as Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type CallContractParams, type CallContractResult, type Capability, type Connect, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type DeployContractParams, type DeployContractResult, type Disconnect, type DisconnectEvent, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionsWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient$2 as Recipient, type RegisterClient, type RenouncePermissions, type RequestOptions, type RequestPayload, type RequestPermissions, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtResult, type SignStructuredMessageResult, type SignStxMessageParams, type SignStxMessageResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxDeployContract, type StxGetAccounts, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignStructuredMessage, type StxSignStxMessage, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type TransferStxParams, type TransferStxResult, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionsWithoutClientId, registerClientMethodName, registerClientParamsSchema, registerClientRequestMessageSchema, registerClientResultSchema, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signTransaction, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };
1862
+ export { type AccountChangeEvent, type AddListener, type Address, AddressPurpose, AddressType, BaseAdapter, type BitcoinNetwork, BitcoinNetworkType, type BitcoinProvider, type BtcRequestMethod, type BtcRequests, type Capability, type Connect, type ConnectParams, type ConnectRequestMessage, type ConnectResult, type CreateInscriptionOptions, type CreateInscriptionPayload, type CreateInscriptionResponse, type CreateRepeatInscriptionsOptions, type CreateRepeatInscriptionsPayload, type CreateRepeatInscriptionsResponse, DefaultAdaptersInfo, type Disconnect, type DisconnectEvent, type DisconnectParams, type DisconnectRequestMessage, type DisconnectResult, type EstimateRbfOrder, type EstimateRunesEtch, type EstimateRunesEtchParams, type EstimateRunesEtchResult, type EstimateRunesMint, type EstimateRunesMintParams, type EstimateRunesMintResult, type EtchRunes, type EtchRunesParams, type EtchRunesResult, type GetAccount, type GetAccountParams, type GetAccountRequestMessage, type GetAccountResult, type GetAccounts, type GetAccountsParams, type GetAccountsRequestMessage, type GetAccountsResult, type GetAddressOptions, type GetAddressPayload, type GetAddressResponse, type GetAddresses, type GetAddressesParams, type GetAddressesRequestMessage, type GetAddressesResult, type GetBalance, type GetBalanceParams, type GetBalanceRequestMessage, type GetBalanceResult, type GetCapabilitiesOptions, type GetCapabilitiesPayload, type GetCapabilitiesResponse, type GetCurrentPermissions, type GetCurrentPermissionsParams, type GetCurrentPermissionsRequestMessage, type GetCurrentPermissionsResult, type GetInfo, type GetInfoParams, type GetInfoRequestMessage, type GetInfoResult, type GetInscriptions, type GetOrder, type GetRunesBalance, type GetRunesBalanceParams, type GetRunesBalanceRequestMessage, type GetRunesBalanceResult, type GetWalletType, type GetWalletTypeParams, type GetWalletTypeRequestMessage, type GetWalletTypeResult, type InputToSign, MessageSigningProtocols, type MethodParamsAndResult, type MintRunes, type MintRunesParams, type MintRunesResult, type NetworkChangeEvent, type OrdinalsRequestMethod, type OrdinalsRequests, type Params, type PermissionWithoutClientId, type Provider, type PsbtPayload, type RbfOrder, type Recipient, type RenouncePermissions, type RenouncePermissionsParams, type RenouncePermissionsRequestMessage, type RenouncePermissionsResult, type RequestOptions, type RequestPayload, type RequestPermissions, type RequestPermissionsParams, type RequestPermissionsRequestMessage, type RequestPermissionsResult, type Requests, type Return, type RpcBase, type RpcError, RpcErrorCode, type RpcErrorResponse, type RpcErrorResponseMessage, type RpcId, RpcIdSchema, type RpcRequest, type RpcRequestMessage, type RpcResponse, type RpcResponseMessage, type RpcResult, type RpcSuccessResponse, type RpcSuccessResponseMessage, type RunesRequestMethod, type RunesRequests, SatsConnectAdapter, type SendBtcTransactionOptions, type SendBtcTransactionPayload, type SendBtcTransactionResponse, type SendInscriptions, type SendTransfer, type SendTransferParams, type SendTransferRequestMessage, type SendTransferResult, type SerializedRecipient, type SerializedSendBtcTransactionPayload, type SignMessage, type SignMessageOptions, type SignMessageParams, type SignMessagePayload, type SignMessageRequestMessage, type SignMessageResponse, type SignMessageResult, type SignMultiplePsbtPayload, type SignMultipleTransactionOptions, type SignMultipleTransactionsPayload, type SignMultipleTransactionsResponse, type SignPsbt, type SignPsbtParams, type SignPsbtRequestMessage, type SignPsbtResult, type SignTransactionOptions, type SignTransactionPayload, type SignTransactionResponse, type StxCallContract, type StxCallContractParams, type StxCallContractRequestMessage, type StxCallContractResult, type StxDeployContract, type StxDeployContractParams, type StxDeployContractRequestMessage, type StxDeployContractResult, type StxGetAccounts, type StxGetAccountsParams, type StxGetAccountsRequestMessage, type StxGetAccountsResult, type StxGetAddresses, type StxGetAddressesParams, type StxGetAddressesRequestMessage, type StxGetAddressesResult, type StxRequestMethod, type StxRequests, type StxSignMessage, type StxSignMessageParams, type StxSignMessageRequestMessage, type StxSignMessageResult, type StxSignStructuredMessage, type StxSignStructuredMessageParams, type StxSignStructuredMessageRequestMessage, type StxSignStructuredMessageResult, type StxSignTransaction, type StxSignTransactionParams, type StxSignTransactionRequestMessage, type StxSignTransactionResult, type StxTransferStx, type StxTransferStxParams, type StxTransferStxRequestMessage, type StxTransferStxResult, type SupportedWallet, type TransferRunes, type TransferRunesParams, type TransferRunesRequest, type TransferRunesResult, TransferRunesResultSchema, type WalletEvent, type WalletRequests, type WalletType, accountChangeEventName, accountChangeSchema, addListener, addressSchema, connectMethodName, connectParamsSchema, connectRequestMessageSchema, connectResultSchema, createInscription, createRepeatInscriptions, defaultAdapters, disconnectEventName, disconnectMethodName, disconnectParamsSchema, disconnectRequestMessageSchema, disconnectResultSchema, disconnectSchema, getAccountMethodName, getAccountParamsSchema, getAccountRequestMessageSchema, getAccountResultSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddress, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getCapabilities, getCurrentPermissionsMethodName, getCurrentPermissionsParamsSchema, getCurrentPermissionsRequestMessageSchema, getCurrentPermissionsResultSchema, getDefaultProvider, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, getInscriptionsMethodName, getInscriptionsParamsSchema, getInscriptionsResultSchema, getInscriptionsSchema, getProviderById, getProviderOrThrow, getProviders, getRunesBalanceMethodName, getRunesBalanceParamsSchema, getRunesBalanceRequestMessageSchema, getRunesBalanceResultSchema, getSupportedWallets, getWalletTypeMethodName, getWalletTypeParamsSchema, getWalletTypeRequestMessageSchema, getWalletTypeResultSchema, isProviderInstalled, networkChangeEventName, networkChangeSchema, permissionTemplate, removeDefaultProvider, renouncePermissionsMethodName, renouncePermissionsParamsSchema, renouncePermissionsRequestMessageSchema, renouncePermissionsResultSchema, request, requestPermissionsMethodName, requestPermissionsParamsSchema, requestPermissionsRequestMessageSchema, requestPermissionsResultSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, sendBtcTransaction, sendInscriptionsMethodName, sendInscriptionsParamsSchema, sendInscriptionsResultSchema, sendInscriptionsSchema, sendTransferMethodName, sendTransferParamsSchema, sendTransferRequestMessageSchema, sendTransferResultSchema, setDefaultProvider, signMessage, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, signMultipleTransactions, signPsbtMethodName, signPsbtParamsSchema, signPsbtRequestMessageSchema, signPsbtResultSchema, signTransaction, stxCallContractMethodName, stxCallContractParamsSchema, stxCallContractRequestMessageSchema, stxCallContractResultSchema, stxDeployContractMethodName, stxDeployContractParamsSchema, stxDeployContractRequestMessageSchema, stxDeployContractResultSchema, stxGetAccountsMethodName, stxGetAccountsParamsSchema, stxGetAccountsRequestMessageSchema, stxGetAccountsResultSchema, stxGetAddressesMethodName, stxGetAddressesParamsSchema, stxGetAddressesRequestMessageSchema, stxGetAddressesResultSchema, stxSignMessageMethodName, stxSignMessageParamsSchema, stxSignMessageRequestMessageSchema, stxSignMessageResultSchema, stxSignStructuredMessageMethodName, stxSignStructuredMessageParamsSchema, stxSignStructuredMessageRequestMessageSchema, stxSignStructuredMessageResultSchema, stxSignTransactionMethodName, stxSignTransactionParamsSchema, stxSignTransactionRequestMessageSchema, stxSignTransactionResultSchema, stxTransferStxMethodName, stxTransferStxParamsSchema, stxTransferStxRequestMessageSchema, stxTransferStxResultSchema, transferRunesMethodName, transferRunesParamsSchema, transferRunesRequestSchema, walletEventSchema, walletTypeSchema, walletTypes };