accounts 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cli/Provider.d.ts.map +1 -1
- package/dist/cli/Provider.js +3 -1
- package/dist/cli/Provider.js.map +1 -1
- package/dist/cli/adapter.d.ts.map +1 -1
- package/dist/cli/adapter.js +2 -26
- package/dist/cli/adapter.js.map +1 -1
- package/dist/cli/storage.js +3 -2
- package/dist/cli/storage.js.map +1 -1
- package/dist/core/Provider.d.ts.map +1 -1
- package/dist/core/Provider.js +4 -2
- package/dist/core/Provider.js.map +1 -1
- package/dist/core/adapters/internal/fromRequest.d.ts.map +1 -1
- package/dist/core/adapters/internal/fromRequest.js +2 -1
- package/dist/core/adapters/internal/fromRequest.js.map +1 -1
- package/dist/core/internal/withDedupe.d.ts +3 -2
- package/dist/core/internal/withDedupe.d.ts.map +1 -1
- package/dist/core/internal/withDedupe.js +6 -5
- package/dist/core/internal/withDedupe.js.map +1 -1
- package/dist/core/zod/rpc.d.ts +0 -603
- package/dist/core/zod/rpc.d.ts.map +1 -1
- package/dist/server/internal/handlers/auth.d.ts +0 -20
- package/dist/server/internal/handlers/auth.d.ts.map +1 -1
- package/dist/server/internal/handlers/oidcProvider.d.ts +0 -7
- package/dist/server/internal/handlers/oidcProvider.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cli/Provider.localnet.test.ts +124 -9
- package/src/cli/Provider.ts +4 -0
- package/src/cli/adapter.ts +3 -27
- package/src/cli/storage.test.ts +20 -1
- package/src/cli/storage.ts +2 -2
- package/src/core/Provider.localnet.test.ts +24 -18
- package/src/core/Provider.ts +4 -2
- package/src/core/adapters/internal/fromRequest.ts +2 -1
- package/src/core/internal/withDedupe.test.ts +17 -0
- package/src/core/internal/withDedupe.ts +7 -5
package/dist/core/zod/rpc.d.ts
CHANGED
|
@@ -529,14 +529,8 @@ export declare namespace wallet_authorizeAccessKey {
|
|
|
529
529
|
* `true` prompts after approval. Object form pre-fills deposit UI hints.
|
|
530
530
|
*/
|
|
531
531
|
const showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
532
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
533
532
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
534
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
535
533
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
536
|
-
/**
|
|
537
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
538
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
539
|
-
*/
|
|
540
534
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
541
535
|
}, z.core.$strip>]>>;
|
|
542
536
|
const parameters: z.ZodMiniObject<{
|
|
@@ -556,14 +550,8 @@ export declare namespace wallet_authorizeAccessKey {
|
|
|
556
550
|
recipients: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
557
551
|
}, z.core.$strip>>>>;
|
|
558
552
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
559
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
560
553
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
561
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
562
554
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
563
|
-
/**
|
|
564
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
565
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
566
|
-
*/
|
|
567
555
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
568
556
|
}, z.core.$strip>]>>;
|
|
569
557
|
}, z.core.$strip>;
|
|
@@ -594,14 +582,8 @@ export declare namespace wallet_authorizeAccessKey {
|
|
|
594
582
|
recipients: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
595
583
|
}, z.core.$strip>>>>;
|
|
596
584
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
597
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
598
585
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
599
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
600
586
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
601
|
-
/**
|
|
602
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
603
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
604
|
-
*/
|
|
605
587
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
606
588
|
}, z.core.$strip>]>>;
|
|
607
589
|
}, z.core.$strip>], null>>;
|
|
@@ -634,14 +616,8 @@ export declare namespace wallet_authorizeAccessKey_strict {
|
|
|
634
616
|
recipients: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
635
617
|
}, z.core.$strip>>>;
|
|
636
618
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
637
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
638
619
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
639
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
640
620
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
641
|
-
/**
|
|
642
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
643
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
644
|
-
*/
|
|
645
621
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
646
622
|
}, z.core.$strip>]>>;
|
|
647
623
|
}, z.core.$strip>;
|
|
@@ -660,13 +636,9 @@ export declare namespace wallet_revokeAccessKey {
|
|
|
660
636
|
}
|
|
661
637
|
export declare namespace wallet_updateAccessKey {
|
|
662
638
|
const parameters: z.ZodMiniObject<{
|
|
663
|
-
/** Root account address. */
|
|
664
639
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
665
|
-
/** Address of the access key to update. */
|
|
666
640
|
accessKeyAddress: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
667
|
-
/** Chain ID the access key is scoped to. Defaults to the active chain. */
|
|
668
641
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
669
|
-
/** New spending limits per token. */
|
|
670
642
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
671
643
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
672
644
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
@@ -675,13 +647,9 @@ export declare namespace wallet_updateAccessKey {
|
|
|
675
647
|
const schema: {
|
|
676
648
|
readonly method: z.ZodMiniLiteral<"wallet_updateAccessKey">;
|
|
677
649
|
readonly params: z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
678
|
-
/** Root account address. */
|
|
679
650
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
680
|
-
/** Address of the access key to update. */
|
|
681
651
|
accessKeyAddress: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
682
|
-
/** Chain ID the access key is scoped to. Defaults to the active chain. */
|
|
683
652
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
684
|
-
/** New spending limits per token. */
|
|
685
653
|
limits: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
686
654
|
token: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
687
655
|
limit: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
@@ -712,16 +680,9 @@ export declare namespace wallet_connect {
|
|
|
712
680
|
}, z.core.$strip>>;
|
|
713
681
|
/** Shows an optional funding prompt after `wallet_connect` succeeds. */
|
|
714
682
|
const showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
715
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
716
683
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
717
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
718
684
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
719
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
720
685
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
721
|
-
/**
|
|
722
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
723
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
724
|
-
*/
|
|
725
686
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
726
687
|
}, z.core.$strip>]>>;
|
|
727
688
|
/**
|
|
@@ -736,24 +697,11 @@ export declare namespace wallet_connect {
|
|
|
736
697
|
* specific.
|
|
737
698
|
*/
|
|
738
699
|
const auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
739
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
740
700
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
741
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
742
701
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
743
702
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
744
703
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
745
|
-
/**
|
|
746
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
747
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
748
|
-
* to echo them exactly before signing.
|
|
749
|
-
*/
|
|
750
704
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
751
|
-
/**
|
|
752
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
753
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
754
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
755
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
756
|
-
*/
|
|
757
705
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
758
706
|
}, z.core.$strip>]>>;
|
|
759
707
|
/**
|
|
@@ -765,7 +713,6 @@ export declare namespace wallet_connect {
|
|
|
765
713
|
* `capabilities.signature` field on the connected account.
|
|
766
714
|
*/
|
|
767
715
|
const personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
768
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
769
716
|
message: z.ZodMiniString<string>;
|
|
770
717
|
}, z.core.$strip>>;
|
|
771
718
|
/**
|
|
@@ -775,30 +722,9 @@ export declare namespace wallet_connect {
|
|
|
775
722
|
* user declines or none is available.
|
|
776
723
|
*/
|
|
777
724
|
const identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
778
|
-
/**
|
|
779
|
-
* Request the account's verified email. Returned on the connected
|
|
780
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
781
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
782
|
-
* server-side verification).
|
|
783
|
-
*
|
|
784
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
785
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
786
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
787
|
-
* the user to authenticate with the account owning it (verifying it
|
|
788
|
-
* first when needed) instead of a free-form entry.
|
|
789
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
790
|
-
* into the token (for standalone use without the `auth` capability).
|
|
791
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
792
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
793
|
-
* rejects entering an email outside them. An account's
|
|
794
|
-
* already-verified email is still shared; verify server-side.
|
|
795
|
-
*/
|
|
796
725
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
797
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
798
726
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
799
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
800
727
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
801
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
802
728
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
803
729
|
}, z.core.$strip>]>>;
|
|
804
730
|
}, z.core.$strip>>;
|
|
@@ -823,71 +749,29 @@ export declare namespace wallet_connect {
|
|
|
823
749
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
824
750
|
}, z.core.$strip>>;
|
|
825
751
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
826
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
827
752
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
828
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
829
753
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
830
754
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
831
755
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
832
|
-
/**
|
|
833
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
834
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
835
|
-
* to echo them exactly before signing.
|
|
836
|
-
*/
|
|
837
756
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
838
|
-
/**
|
|
839
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
840
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
841
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
842
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
843
|
-
*/
|
|
844
757
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
845
758
|
}, z.core.$strip>]>>;
|
|
846
759
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
847
|
-
/**
|
|
848
|
-
* Request the account's verified email. Returned on the connected
|
|
849
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
850
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
851
|
-
* server-side verification).
|
|
852
|
-
*
|
|
853
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
854
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
855
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
856
|
-
* the user to authenticate with the account owning it (verifying it
|
|
857
|
-
* first when needed) instead of a free-form entry.
|
|
858
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
859
|
-
* into the token (for standalone use without the `auth` capability).
|
|
860
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
861
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
862
|
-
* rejects entering an email outside them. An account's
|
|
863
|
-
* already-verified email is still shared; verify server-side.
|
|
864
|
-
*/
|
|
865
760
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
866
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
867
761
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
868
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
869
762
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
870
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
871
763
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
872
764
|
}, z.core.$strip>]>>;
|
|
873
765
|
}, z.core.$strip>>;
|
|
874
766
|
method: z.ZodMiniLiteral<"register">;
|
|
875
767
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
876
768
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
877
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
878
769
|
message: z.ZodMiniString<string>;
|
|
879
770
|
}, z.core.$strip>>;
|
|
880
771
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
881
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
882
772
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
883
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
884
773
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
885
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
886
774
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
887
|
-
/**
|
|
888
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
889
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
890
|
-
*/
|
|
891
775
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
892
776
|
}, z.core.$strip>]>>;
|
|
893
777
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -912,91 +796,35 @@ export declare namespace wallet_connect {
|
|
|
912
796
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
913
797
|
}, z.core.$strip>>;
|
|
914
798
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
915
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
916
799
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
917
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
918
800
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
919
801
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
920
802
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
921
|
-
/**
|
|
922
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
923
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
924
|
-
* to echo them exactly before signing.
|
|
925
|
-
*/
|
|
926
803
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
927
|
-
/**
|
|
928
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
929
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
930
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
931
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
932
|
-
*/
|
|
933
804
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
934
805
|
}, z.core.$strip>]>>;
|
|
935
806
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
936
|
-
/**
|
|
937
|
-
* Request the account's verified email. Returned on the connected
|
|
938
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
939
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
940
|
-
* server-side verification).
|
|
941
|
-
*
|
|
942
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
943
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
944
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
945
|
-
* the user to authenticate with the account owning it (verifying it
|
|
946
|
-
* first when needed) instead of a free-form entry.
|
|
947
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
948
|
-
* into the token (for standalone use without the `auth` capability).
|
|
949
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
950
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
951
|
-
* rejects entering an email outside them. An account's
|
|
952
|
-
* already-verified email is still shared; verify server-side.
|
|
953
|
-
*/
|
|
954
807
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
955
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
956
808
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
957
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
958
809
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
959
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
960
810
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
961
811
|
}, z.core.$strip>]>>;
|
|
962
812
|
}, z.core.$strip>>;
|
|
963
813
|
method: z.ZodMiniOptional<z.ZodMiniLiteral<"login">>;
|
|
964
814
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
965
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
966
815
|
message: z.ZodMiniString<string>;
|
|
967
816
|
}, z.core.$strip>>;
|
|
968
817
|
selectAccount: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
969
818
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
970
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
971
819
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
972
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
973
820
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
974
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
975
821
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
976
|
-
/**
|
|
977
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
978
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
979
|
-
*/
|
|
980
822
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
981
823
|
}, z.core.$strip>]>>;
|
|
982
824
|
}, z.core.$strip>]>>;
|
|
983
825
|
result: z.ZodMiniObject<{
|
|
984
|
-
/**
|
|
985
|
-
* Consented identity claims, populated only when the request set the
|
|
986
|
-
* matching `capabilities.identity.*` flag AND the user approved sharing.
|
|
987
|
-
* Omitted entirely when nothing was requested or approved. Present only
|
|
988
|
-
* on the account the user authenticated with during this connect.
|
|
989
|
-
*/
|
|
990
826
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
991
|
-
/** Verified email address, if requested and approved. */
|
|
992
827
|
email: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
993
|
-
/**
|
|
994
|
-
* Signed identity token (JWT) asserting the verified email, bound to
|
|
995
|
-
* the requesting app origin (`aud`) and the connected account
|
|
996
|
-
* (`sub`). Verify it server-side against the wallet's JWKS. Present
|
|
997
|
-
* only when `identity.email` was requested and a verified email is
|
|
998
|
-
* available.
|
|
999
|
-
*/
|
|
1000
828
|
idToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1001
829
|
}, z.core.$strip>>;
|
|
1002
830
|
keyAuthorization: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniType<KeyAuthorizationRpcDecoded, KeyAuthorization.Rpc & {
|
|
@@ -1004,29 +832,12 @@ export declare namespace wallet_connect {
|
|
|
1004
832
|
}, z.core.$ZodTypeInternals<KeyAuthorizationRpcDecoded, KeyAuthorization.Rpc & {
|
|
1005
833
|
address?: KeyAuthorization.Rpc["keyId"] | undefined;
|
|
1006
834
|
}>>, z.ZodMiniCustom<KeyAuthorization.Signed<bigint, number, `0x${string}`>, KeyAuthorization.Signed<bigint, number, `0x${string}`>>>>;
|
|
1007
|
-
/**
|
|
1008
|
-
* Echo of the `personalSign` request, present iff the caller set
|
|
1009
|
-
* `capabilities.personalSign` (or `capabilities.auth` folded a SIWE
|
|
1010
|
-
* message into the same slot). The signature itself lives on the
|
|
1011
|
-
* top-level `capabilities.signature` field.
|
|
1012
|
-
*
|
|
1013
|
-
* `keyAuthorization` is set only on the TIP-1053 witness path: the
|
|
1014
|
-
* RLP-serialized signed key authorization that bound the message into
|
|
1015
|
-
* its `witness`, so the verifier recovers the signer over the
|
|
1016
|
-
* authorization digest instead of `hashMessage(message)`.
|
|
1017
|
-
*/
|
|
1018
835
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1019
836
|
message: z.ZodMiniString<string>;
|
|
1020
837
|
keyAuthorization: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1021
838
|
}, z.core.$strip>>;
|
|
1022
839
|
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1023
840
|
username: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1024
|
-
/**
|
|
1025
|
-
* SIWE round-trip output, populated when the request `auth` capability was set.
|
|
1026
|
-
* `token` is present in JWT mode or when the request set `returnToken: true`.
|
|
1027
|
-
* Additional JSON fields returned by the verify endpoint are preserved.
|
|
1028
|
-
* Cookie-mode default = `{}` (the session arrived via `Set-Cookie`).
|
|
1029
|
-
*/
|
|
1030
841
|
auth: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1031
842
|
token: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1032
843
|
}, z.core.$loose>>;
|
|
@@ -1055,71 +866,29 @@ export declare namespace wallet_connect {
|
|
|
1055
866
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1056
867
|
}, z.core.$strip>>;
|
|
1057
868
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1058
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
1059
869
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1060
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
1061
870
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1062
871
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1063
872
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1064
|
-
/**
|
|
1065
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
1066
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
1067
|
-
* to echo them exactly before signing.
|
|
1068
|
-
*/
|
|
1069
873
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
1070
|
-
/**
|
|
1071
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
1072
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
1073
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
1074
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
1075
|
-
*/
|
|
1076
874
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1077
875
|
}, z.core.$strip>]>>;
|
|
1078
876
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1079
|
-
/**
|
|
1080
|
-
* Request the account's verified email. Returned on the connected
|
|
1081
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
1082
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
1083
|
-
* server-side verification).
|
|
1084
|
-
*
|
|
1085
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
1086
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
1087
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
1088
|
-
* the user to authenticate with the account owning it (verifying it
|
|
1089
|
-
* first when needed) instead of a free-form entry.
|
|
1090
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
1091
|
-
* into the token (for standalone use without the `auth` capability).
|
|
1092
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
1093
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
1094
|
-
* rejects entering an email outside them. An account's
|
|
1095
|
-
* already-verified email is still shared; verify server-side.
|
|
1096
|
-
*/
|
|
1097
877
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1098
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
1099
878
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1100
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
1101
879
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1102
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
1103
880
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1104
881
|
}, z.core.$strip>]>>;
|
|
1105
882
|
}, z.core.$strip>>;
|
|
1106
883
|
method: z.ZodMiniLiteral<"register">;
|
|
1107
884
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1108
885
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1109
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
1110
886
|
message: z.ZodMiniString<string>;
|
|
1111
887
|
}, z.core.$strip>>;
|
|
1112
888
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
1113
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
1114
889
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1115
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
1116
890
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1117
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
1118
891
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
1119
|
-
/**
|
|
1120
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1121
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
1122
|
-
*/
|
|
1123
892
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1124
893
|
}, z.core.$strip>]>>;
|
|
1125
894
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1144,71 +913,29 @@ export declare namespace wallet_connect {
|
|
|
1144
913
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1145
914
|
}, z.core.$strip>>;
|
|
1146
915
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1147
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
1148
916
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1149
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
1150
917
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1151
918
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1152
919
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1153
|
-
/**
|
|
1154
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
1155
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
1156
|
-
* to echo them exactly before signing.
|
|
1157
|
-
*/
|
|
1158
920
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
1159
|
-
/**
|
|
1160
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
1161
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
1162
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
1163
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
1164
|
-
*/
|
|
1165
921
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1166
922
|
}, z.core.$strip>]>>;
|
|
1167
923
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1168
|
-
/**
|
|
1169
|
-
* Request the account's verified email. Returned on the connected
|
|
1170
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
1171
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
1172
|
-
* server-side verification).
|
|
1173
|
-
*
|
|
1174
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
1175
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
1176
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
1177
|
-
* the user to authenticate with the account owning it (verifying it
|
|
1178
|
-
* first when needed) instead of a free-form entry.
|
|
1179
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
1180
|
-
* into the token (for standalone use without the `auth` capability).
|
|
1181
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
1182
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
1183
|
-
* rejects entering an email outside them. An account's
|
|
1184
|
-
* already-verified email is still shared; verify server-side.
|
|
1185
|
-
*/
|
|
1186
924
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1187
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
1188
925
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1189
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
1190
926
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1191
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
1192
927
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1193
928
|
}, z.core.$strip>]>>;
|
|
1194
929
|
}, z.core.$strip>>;
|
|
1195
930
|
method: z.ZodMiniOptional<z.ZodMiniLiteral<"login">>;
|
|
1196
931
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1197
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
1198
932
|
message: z.ZodMiniString<string>;
|
|
1199
933
|
}, z.core.$strip>>;
|
|
1200
934
|
selectAccount: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1201
935
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
1202
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
1203
936
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1204
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
1205
937
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1206
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
1207
938
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
1208
|
-
/**
|
|
1209
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1210
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
1211
|
-
*/
|
|
1212
939
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1213
940
|
}, z.core.$strip>]>>;
|
|
1214
941
|
}, z.core.$strip>]>>;
|
|
@@ -1219,22 +946,8 @@ export declare namespace wallet_connect {
|
|
|
1219
946
|
accounts: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1220
947
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1221
948
|
capabilities: z.ZodMiniObject<{
|
|
1222
|
-
/**
|
|
1223
|
-
* Consented identity claims, populated only when the request set the
|
|
1224
|
-
* matching `capabilities.identity.*` flag AND the user approved sharing.
|
|
1225
|
-
* Omitted entirely when nothing was requested or approved. Present only
|
|
1226
|
-
* on the account the user authenticated with during this connect.
|
|
1227
|
-
*/
|
|
1228
949
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1229
|
-
/** Verified email address, if requested and approved. */
|
|
1230
950
|
email: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1231
|
-
/**
|
|
1232
|
-
* Signed identity token (JWT) asserting the verified email, bound to
|
|
1233
|
-
* the requesting app origin (`aud`) and the connected account
|
|
1234
|
-
* (`sub`). Verify it server-side against the wallet's JWKS. Present
|
|
1235
|
-
* only when `identity.email` was requested and a verified email is
|
|
1236
|
-
* available.
|
|
1237
|
-
*/
|
|
1238
951
|
idToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1239
952
|
}, z.core.$strip>>;
|
|
1240
953
|
keyAuthorization: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniType<KeyAuthorizationRpcDecoded, KeyAuthorization.Rpc & {
|
|
@@ -1242,29 +955,12 @@ export declare namespace wallet_connect {
|
|
|
1242
955
|
}, z.core.$ZodTypeInternals<KeyAuthorizationRpcDecoded, KeyAuthorization.Rpc & {
|
|
1243
956
|
address?: KeyAuthorization.Rpc["keyId"] | undefined;
|
|
1244
957
|
}>>, z.ZodMiniCustom<KeyAuthorization.Signed<bigint, number, `0x${string}`>, KeyAuthorization.Signed<bigint, number, `0x${string}`>>>>;
|
|
1245
|
-
/**
|
|
1246
|
-
* Echo of the `personalSign` request, present iff the caller set
|
|
1247
|
-
* `capabilities.personalSign` (or `capabilities.auth` folded a SIWE
|
|
1248
|
-
* message into the same slot). The signature itself lives on the
|
|
1249
|
-
* top-level `capabilities.signature` field.
|
|
1250
|
-
*
|
|
1251
|
-
* `keyAuthorization` is set only on the TIP-1053 witness path: the
|
|
1252
|
-
* RLP-serialized signed key authorization that bound the message into
|
|
1253
|
-
* its `witness`, so the verifier recovers the signer over the
|
|
1254
|
-
* authorization digest instead of `hashMessage(message)`.
|
|
1255
|
-
*/
|
|
1256
958
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1257
959
|
message: z.ZodMiniString<string>;
|
|
1258
960
|
keyAuthorization: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1259
961
|
}, z.core.$strip>>;
|
|
1260
962
|
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1261
963
|
username: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
1262
|
-
/**
|
|
1263
|
-
* SIWE round-trip output, populated when the request `auth` capability was set.
|
|
1264
|
-
* `token` is present in JWT mode or when the request set `returnToken: true`.
|
|
1265
|
-
* Additional JSON fields returned by the verify endpoint are preserved.
|
|
1266
|
-
* Cookie-mode default = `{}` (the session arrived via `Set-Cookie`).
|
|
1267
|
-
*/
|
|
1268
964
|
auth: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1269
965
|
token: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1270
966
|
}, z.core.$loose>>;
|
|
@@ -1296,71 +992,29 @@ export declare namespace wallet_connect_strict {
|
|
|
1296
992
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1297
993
|
}, z.core.$strip>>;
|
|
1298
994
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1299
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
1300
995
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1301
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
1302
996
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1303
997
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1304
998
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1305
|
-
/**
|
|
1306
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
1307
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
1308
|
-
* to echo them exactly before signing.
|
|
1309
|
-
*/
|
|
1310
999
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
1311
|
-
/**
|
|
1312
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
1313
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
1314
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
1315
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
1316
|
-
*/
|
|
1317
1000
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1318
1001
|
}, z.core.$strip>]>>;
|
|
1319
1002
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1320
|
-
/**
|
|
1321
|
-
* Request the account's verified email. Returned on the connected
|
|
1322
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
1323
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
1324
|
-
* server-side verification).
|
|
1325
|
-
*
|
|
1326
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
1327
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
1328
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
1329
|
-
* the user to authenticate with the account owning it (verifying it
|
|
1330
|
-
* first when needed) instead of a free-form entry.
|
|
1331
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
1332
|
-
* into the token (for standalone use without the `auth` capability).
|
|
1333
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
1334
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
1335
|
-
* rejects entering an email outside them. An account's
|
|
1336
|
-
* already-verified email is still shared; verify server-side.
|
|
1337
|
-
*/
|
|
1338
1003
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1339
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
1340
1004
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1341
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
1342
1005
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1343
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
1344
1006
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1345
1007
|
}, z.core.$strip>]>>;
|
|
1346
1008
|
}, z.core.$strip>>;
|
|
1347
1009
|
method: z.ZodMiniLiteral<"register">;
|
|
1348
1010
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1349
1011
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1350
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
1351
1012
|
message: z.ZodMiniString<string>;
|
|
1352
1013
|
}, z.core.$strip>>;
|
|
1353
1014
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
1354
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
1355
1015
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1356
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
1357
1016
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1358
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
1359
1017
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
1360
|
-
/**
|
|
1361
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1362
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
1363
|
-
*/
|
|
1364
1018
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1365
1019
|
}, z.core.$strip>]>>;
|
|
1366
1020
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -1384,71 +1038,29 @@ export declare namespace wallet_connect_strict {
|
|
|
1384
1038
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
1385
1039
|
}, z.core.$strip>>;
|
|
1386
1040
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1387
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
1388
1041
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1389
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
1390
1042
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1391
1043
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1392
1044
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1393
|
-
/**
|
|
1394
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
1395
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
1396
|
-
* to echo them exactly before signing.
|
|
1397
|
-
*/
|
|
1398
1045
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
1399
|
-
/**
|
|
1400
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
1401
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
1402
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
1403
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
1404
|
-
*/
|
|
1405
1046
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1406
1047
|
}, z.core.$strip>]>>;
|
|
1407
1048
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1408
|
-
/**
|
|
1409
|
-
* Request the account's verified email. Returned on the connected
|
|
1410
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
1411
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
1412
|
-
* server-side verification).
|
|
1413
|
-
*
|
|
1414
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
1415
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
1416
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
1417
|
-
* the user to authenticate with the account owning it (verifying it
|
|
1418
|
-
* first when needed) instead of a free-form entry.
|
|
1419
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
1420
|
-
* into the token (for standalone use without the `auth` capability).
|
|
1421
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
1422
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
1423
|
-
* rejects entering an email outside them. An account's
|
|
1424
|
-
* already-verified email is still shared; verify server-side.
|
|
1425
|
-
*/
|
|
1426
1049
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
1427
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
1428
1050
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1429
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
1430
1051
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
1431
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
1432
1052
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1433
1053
|
}, z.core.$strip>]>>;
|
|
1434
1054
|
}, z.core.$strip>>;
|
|
1435
1055
|
method: z.ZodMiniOptional<z.ZodMiniLiteral<"login">>;
|
|
1436
1056
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1437
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
1438
1057
|
message: z.ZodMiniString<string>;
|
|
1439
1058
|
}, z.core.$strip>>;
|
|
1440
1059
|
selectAccount: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
1441
1060
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
1442
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
1443
1061
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1444
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
1445
1062
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1446
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
1447
1063
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
1448
|
-
/**
|
|
1449
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1450
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
1451
|
-
*/
|
|
1452
1064
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1453
1065
|
}, z.core.$strip>]>>;
|
|
1454
1066
|
}, z.core.$strip>]>>;
|
|
@@ -1529,131 +1141,45 @@ export declare namespace wallet_transfer {
|
|
|
1529
1141
|
* pre-filled; the user confirms or edits before signing.
|
|
1530
1142
|
*/
|
|
1531
1143
|
const parameters: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1532
|
-
/** Human-readable amount to transfer (e.g. `"1.5"`). */
|
|
1533
1144
|
amount: z.ZodMiniString<string>;
|
|
1534
|
-
/** Chain id. Defaults to the active chain. */
|
|
1535
1145
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1536
|
-
/** Skip the editable wallet UI (Read-only mode). @default false */
|
|
1537
1146
|
editable: z.ZodMiniOptional<z.ZodMiniLiteral<false>>;
|
|
1538
|
-
/**
|
|
1539
|
-
* Fee payer override. `false` to disable the wallet's default fee
|
|
1540
|
-
* payer, a URL string to use a custom fee payer service.
|
|
1541
|
-
*/
|
|
1542
1147
|
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
|
|
1543
|
-
/**
|
|
1544
|
-
* Address to transfer tokens from. Defaults to the active account.
|
|
1545
|
-
* When set to a different address, the call uses `transferFrom` and
|
|
1546
|
-
* requires the active account to have an allowance from `from`.
|
|
1547
|
-
*/
|
|
1548
1148
|
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1549
|
-
/**
|
|
1550
|
-
* UTF-8 memo to attach to the transfer (max 32 bytes when encoded
|
|
1551
|
-
* as UTF-8). Sent via `transferWithMemo` / `transferFromWithMemo`.
|
|
1552
|
-
*/
|
|
1553
1149
|
memo: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1554
|
-
/** Recipient address. */
|
|
1555
1150
|
to: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1556
|
-
/**
|
|
1557
|
-
* Token to transfer, accepted as either a contract address or a
|
|
1558
|
-
* curated tokenlist symbol (case-insensitive, e.g. `"pathUsd"`).
|
|
1559
|
-
* Symbols are resolved against the curated tokenlist on the active
|
|
1560
|
-
* chain.
|
|
1561
|
-
*/
|
|
1562
1151
|
token: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>;
|
|
1563
1152
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1564
|
-
/** Human-readable amount to pre-fill (e.g. `"1.5"`). */
|
|
1565
1153
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1566
|
-
/** Chain id. Defaults to the active chain. */
|
|
1567
1154
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1568
|
-
/** Show the wallet UI for the user to confirm or edit. */
|
|
1569
1155
|
editable: z.ZodMiniLiteral<true>;
|
|
1570
|
-
/**
|
|
1571
|
-
* Fee payer override. `false` to disable the wallet's default fee
|
|
1572
|
-
* payer, a URL string to use a custom fee payer service.
|
|
1573
|
-
*/
|
|
1574
1156
|
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
|
|
1575
|
-
/**
|
|
1576
|
-
* UTF-8 memo (max 32 bytes) to attach to the transfer. Wallet
|
|
1577
|
-
* rejects the request if the selected token does not support
|
|
1578
|
-
* memos (non-TIP-20).
|
|
1579
|
-
*/
|
|
1580
1157
|
memo: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1581
|
-
/** Recipient address to pre-fill. */
|
|
1582
1158
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1583
|
-
/**
|
|
1584
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1585
|
-
* curated tokenlist symbol (case-insensitive, e.g. `"pathUsd"`).
|
|
1586
|
-
* Symbols are resolved against the curated tokenlist on the active
|
|
1587
|
-
* chain. Omit to let the user choose.
|
|
1588
|
-
*/
|
|
1589
1159
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1590
1160
|
}, z.core.$strip>], "editable">;
|
|
1591
1161
|
const schema: {
|
|
1592
1162
|
readonly method: z.ZodMiniLiteral<"wallet_transfer">;
|
|
1593
1163
|
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
1594
|
-
/** Human-readable amount to transfer (e.g. `"1.5"`). */
|
|
1595
1164
|
amount: z.ZodMiniString<string>;
|
|
1596
|
-
/** Chain id. Defaults to the active chain. */
|
|
1597
1165
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1598
|
-
/** Skip the editable wallet UI (Read-only mode). @default false */
|
|
1599
1166
|
editable: z.ZodMiniOptional<z.ZodMiniLiteral<false>>;
|
|
1600
|
-
/**
|
|
1601
|
-
* Fee payer override. `false` to disable the wallet's default fee
|
|
1602
|
-
* payer, a URL string to use a custom fee payer service.
|
|
1603
|
-
*/
|
|
1604
1167
|
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
|
|
1605
|
-
/**
|
|
1606
|
-
* Address to transfer tokens from. Defaults to the active account.
|
|
1607
|
-
* When set to a different address, the call uses `transferFrom` and
|
|
1608
|
-
* requires the active account to have an allowance from `from`.
|
|
1609
|
-
*/
|
|
1610
1168
|
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1611
|
-
/**
|
|
1612
|
-
* UTF-8 memo to attach to the transfer (max 32 bytes when encoded
|
|
1613
|
-
* as UTF-8). Sent via `transferWithMemo` / `transferFromWithMemo`.
|
|
1614
|
-
*/
|
|
1615
1169
|
memo: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1616
|
-
/** Recipient address. */
|
|
1617
1170
|
to: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
1618
|
-
/**
|
|
1619
|
-
* Token to transfer, accepted as either a contract address or a
|
|
1620
|
-
* curated tokenlist symbol (case-insensitive, e.g. `"pathUsd"`).
|
|
1621
|
-
* Symbols are resolved against the curated tokenlist on the active
|
|
1622
|
-
* chain.
|
|
1623
|
-
*/
|
|
1624
1171
|
token: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>;
|
|
1625
1172
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
1626
|
-
/** Human-readable amount to pre-fill (e.g. `"1.5"`). */
|
|
1627
1173
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1628
|
-
/** Chain id. Defaults to the active chain. */
|
|
1629
1174
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1630
|
-
/** Show the wallet UI for the user to confirm or edit. */
|
|
1631
1175
|
editable: z.ZodMiniLiteral<true>;
|
|
1632
|
-
/**
|
|
1633
|
-
* Fee payer override. `false` to disable the wallet's default fee
|
|
1634
|
-
* payer, a URL string to use a custom fee payer service.
|
|
1635
|
-
*/
|
|
1636
1176
|
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
|
|
1637
|
-
/**
|
|
1638
|
-
* UTF-8 memo (max 32 bytes) to attach to the transfer. Wallet
|
|
1639
|
-
* rejects the request if the selected token does not support
|
|
1640
|
-
* memos (non-TIP-20).
|
|
1641
|
-
*/
|
|
1642
1177
|
memo: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1643
|
-
/** Recipient address to pre-fill. */
|
|
1644
1178
|
to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1645
|
-
/**
|
|
1646
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1647
|
-
* curated tokenlist symbol (case-insensitive, e.g. `"pathUsd"`).
|
|
1648
|
-
* Symbols are resolved against the curated tokenlist on the active
|
|
1649
|
-
* chain. Omit to let the user choose.
|
|
1650
|
-
*/
|
|
1651
1179
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1652
1180
|
}, z.core.$strip>], "editable">], null>>>;
|
|
1653
1181
|
readonly returns: z.ZodMiniObject<{
|
|
1654
|
-
/** Chain id the send is to. */
|
|
1655
1182
|
chainId: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>;
|
|
1656
|
-
/** Receipt of the submitted send. */
|
|
1657
1183
|
receipt: z.ZodMiniObject<{
|
|
1658
1184
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
1659
1185
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -1698,19 +1224,13 @@ export declare namespace wallet_swap {
|
|
|
1698
1224
|
const schema: {
|
|
1699
1225
|
readonly method: z.ZodMiniLiteral<"wallet_swap">;
|
|
1700
1226
|
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
1701
|
-
/** Human-readable amount to pre-fill (e.g. "1.5"). */
|
|
1702
1227
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1703
|
-
/** Other side of the swap pair. For buys, this is the token to sell. For sells, this is the token to buy. */
|
|
1704
1228
|
pairToken: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1705
|
-
/** Maximum allowed slippage as a decimal fraction (for example `0.05` for 5%). */
|
|
1706
1229
|
slippage: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
1707
|
-
/** Token to buy or sell. Omit to let the user choose. */
|
|
1708
1230
|
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1709
|
-
/** Whether the amount is an exact buy amount (`swapExactAmountOut`) or sell amount (`swapExactAmountIn`). */
|
|
1710
1231
|
type: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"buy">, z.ZodMiniLiteral<"sell">]>>;
|
|
1711
1232
|
}, z.core.$strip>], null>>>;
|
|
1712
1233
|
readonly returns: z.ZodMiniObject<{
|
|
1713
|
-
/** Receipt of the submitted swap. */
|
|
1714
1234
|
receipt: z.ZodMiniObject<{
|
|
1715
1235
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
1716
1236
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -1766,24 +1286,13 @@ export declare namespace wallet_deposit {
|
|
|
1766
1286
|
readonly method: z.ZodMiniLiteral<"wallet_deposit">;
|
|
1767
1287
|
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
1768
1288
|
address: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1769
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
1770
1289
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1771
1290
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1772
1291
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1773
|
-
/** Preferred funding path to show first. */
|
|
1774
1292
|
intent: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"applePay">, z.ZodMiniLiteral<"credits">, z.ZodMiniLiteral<"crypto">, z.ZodMiniLiteral<"faucet">, z.ZodMiniLiteral<"referralCode">, z.ZodMiniLiteral<"x">]>>;
|
|
1775
|
-
/**
|
|
1776
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1777
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
1778
|
-
*/
|
|
1779
1293
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1780
1294
|
}, z.core.$strip>], null>>>;
|
|
1781
1295
|
readonly returns: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
1782
|
-
/**
|
|
1783
|
-
* Receipts of any onchain operations performed during the
|
|
1784
|
-
* deposit (e.g. testnet faucet drops). Absent for offchain
|
|
1785
|
-
* paths like Apple Pay where funds arrive asynchronously.
|
|
1786
|
-
*/
|
|
1787
1296
|
receipts: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
1788
1297
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
1789
1298
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -1827,35 +1336,20 @@ export declare namespace wallet_deposit {
|
|
|
1827
1336
|
export declare namespace wallet_depositZone {
|
|
1828
1337
|
/** Parameters object for `wallet_depositZone`. */
|
|
1829
1338
|
const parameters: z.ZodMiniObject<{
|
|
1830
|
-
/** Human-readable amount to pre-fill (e.g. "1.5"). */
|
|
1831
1339
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1832
|
-
/**
|
|
1833
|
-
* Fee payer override. `false` to disable the wallet's default fee
|
|
1834
|
-
* payer, a URL string to use a custom fee payer service.
|
|
1835
|
-
*/
|
|
1836
1340
|
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
|
|
1837
|
-
/** Token contract address to pre-fill. Omit to let the user choose. */
|
|
1838
1341
|
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1839
|
-
/** Zone id to deposit into. */
|
|
1840
1342
|
zoneId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1841
1343
|
}, z.core.$strip>;
|
|
1842
1344
|
const schema: {
|
|
1843
1345
|
readonly method: z.ZodMiniLiteral<"wallet_depositZone">;
|
|
1844
1346
|
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
1845
|
-
/** Human-readable amount to pre-fill (e.g. "1.5"). */
|
|
1846
1347
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1847
|
-
/**
|
|
1848
|
-
* Fee payer override. `false` to disable the wallet's default fee
|
|
1849
|
-
* payer, a URL string to use a custom fee payer service.
|
|
1850
|
-
*/
|
|
1851
1348
|
feePayer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>]>>;
|
|
1852
|
-
/** Token contract address to pre-fill. Omit to let the user choose. */
|
|
1853
1349
|
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1854
|
-
/** Zone id to deposit into. */
|
|
1855
1350
|
zoneId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1856
1351
|
}, z.core.$strip>], null>>>;
|
|
1857
1352
|
readonly returns: z.ZodMiniObject<{
|
|
1858
|
-
/** Receipt of the submitted deposit. */
|
|
1859
1353
|
receipt: z.ZodMiniObject<{
|
|
1860
1354
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
1861
1355
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -1899,25 +1393,18 @@ export declare namespace wallet_depositZone {
|
|
|
1899
1393
|
export declare namespace wallet_withdrawZone {
|
|
1900
1394
|
/** Parameters object for `wallet_withdrawZone`. */
|
|
1901
1395
|
const parameters: z.ZodMiniObject<{
|
|
1902
|
-
/** Human-readable amount to pre-fill (e.g. "1.5"). */
|
|
1903
1396
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1904
|
-
/** Token contract address to pre-fill. Omit to let the user choose. */
|
|
1905
1397
|
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1906
|
-
/** Zone id to withdraw from. */
|
|
1907
1398
|
zoneId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1908
1399
|
}, z.core.$strip>;
|
|
1909
1400
|
const schema: {
|
|
1910
1401
|
readonly method: z.ZodMiniLiteral<"wallet_withdrawZone">;
|
|
1911
1402
|
readonly params: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniTuple<readonly [z.ZodMiniObject<{
|
|
1912
|
-
/** Human-readable amount to pre-fill (e.g. "1.5"). */
|
|
1913
1403
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1914
|
-
/** Token contract address to pre-fill. Omit to let the user choose. */
|
|
1915
1404
|
token: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
1916
|
-
/** Zone id to withdraw from. */
|
|
1917
1405
|
zoneId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumber<number>>>;
|
|
1918
1406
|
}, z.core.$strip>], null>>>;
|
|
1919
1407
|
readonly returns: z.ZodMiniObject<{
|
|
1920
|
-
/** Receipt of the submitted withdrawal. */
|
|
1921
1408
|
receipt: z.ZodMiniObject<{
|
|
1922
1409
|
blobGasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
1923
1410
|
blobGasUsed: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -1975,14 +1462,8 @@ export declare const strictParameters: {
|
|
|
1975
1462
|
recipients: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
1976
1463
|
}, z.core.$strip>>>;
|
|
1977
1464
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
1978
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
1979
1465
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1980
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
1981
1466
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
1982
|
-
/**
|
|
1983
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
1984
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
1985
|
-
*/
|
|
1986
1467
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
1987
1468
|
}, z.core.$strip>]>>;
|
|
1988
1469
|
}, z.core.$strip>;
|
|
@@ -2006,71 +1487,29 @@ export declare const strictParameters: {
|
|
|
2006
1487
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
2007
1488
|
}, z.core.$strip>>;
|
|
2008
1489
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
2009
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
2010
1490
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2011
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
2012
1491
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2013
1492
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2014
1493
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2015
|
-
/**
|
|
2016
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
2017
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
2018
|
-
* to echo them exactly before signing.
|
|
2019
|
-
*/
|
|
2020
1494
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
2021
|
-
/**
|
|
2022
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
2023
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
2024
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
2025
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
2026
|
-
*/
|
|
2027
1495
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2028
1496
|
}, z.core.$strip>]>>;
|
|
2029
1497
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2030
|
-
/**
|
|
2031
|
-
* Request the account's verified email. Returned on the connected
|
|
2032
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
2033
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
2034
|
-
* server-side verification).
|
|
2035
|
-
*
|
|
2036
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
2037
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
2038
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
2039
|
-
* the user to authenticate with the account owning it (verifying it
|
|
2040
|
-
* first when needed) instead of a free-form entry.
|
|
2041
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
2042
|
-
* into the token (for standalone use without the `auth` capability).
|
|
2043
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
2044
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
2045
|
-
* rejects entering an email outside them. An account's
|
|
2046
|
-
* already-verified email is still shared; verify server-side.
|
|
2047
|
-
*/
|
|
2048
1498
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
2049
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
2050
1499
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2051
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
2052
1500
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
2053
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
2054
1501
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2055
1502
|
}, z.core.$strip>]>>;
|
|
2056
1503
|
}, z.core.$strip>>;
|
|
2057
1504
|
method: z.ZodMiniLiteral<"register">;
|
|
2058
1505
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2059
1506
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2060
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
2061
1507
|
message: z.ZodMiniString<string>;
|
|
2062
1508
|
}, z.core.$strip>>;
|
|
2063
1509
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
2064
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
2065
1510
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2066
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
2067
1511
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2068
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
2069
1512
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
2070
|
-
/**
|
|
2071
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
2072
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
2073
|
-
*/
|
|
2074
1513
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
2075
1514
|
}, z.core.$strip>]>>;
|
|
2076
1515
|
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -2094,71 +1533,29 @@ export declare const strictParameters: {
|
|
|
2094
1533
|
keyType: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"secp256k1">, z.ZodMiniLiteral<"p256">, z.ZodMiniLiteral<"webAuthn">]>>;
|
|
2095
1534
|
}, z.core.$strip>>;
|
|
2096
1535
|
auth: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
2097
|
-
/** Base URL. SDK derives `${url}/challenge` and `${url}/logout`; `${url}` itself is verify. */
|
|
2098
1536
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2099
|
-
/** Override individual endpoints. Either `url` or both `challenge` + `verify` must be set. */
|
|
2100
1537
|
challenge: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2101
1538
|
verify: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2102
1539
|
logout: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2103
|
-
/**
|
|
2104
|
-
* SIWE resources to bind into the server-issued challenge. The server
|
|
2105
|
-
* decides their meaning; the SDK only requires the issued SIWE message
|
|
2106
|
-
* to echo them exactly before signing.
|
|
2107
|
-
*/
|
|
2108
1540
|
resources: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
2109
|
-
/**
|
|
2110
|
-
* Ask the verify endpoint to also return `{ token }` in the JSON body.
|
|
2111
|
-
* Default `false` — cookie mode relies on `Set-Cookie` only.
|
|
2112
|
-
* Set this for non-browser clients (RN, CLI) that can't store cookies, or
|
|
2113
|
-
* to surface the JWT alongside a cookie in dual-transport setups.
|
|
2114
|
-
*/
|
|
2115
1541
|
returnToken: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2116
1542
|
}, z.core.$strip>]>>;
|
|
2117
1543
|
identity: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2118
|
-
/**
|
|
2119
|
-
* Request the account's verified email. Returned on the connected
|
|
2120
|
-
* account as `capabilities.identity.email` (a plain string, for
|
|
2121
|
-
* client-side UX) and `capabilities.identity.idToken` (a signed JWT, for
|
|
2122
|
-
* server-side verification).
|
|
2123
|
-
*
|
|
2124
|
-
* - `true` — request the email; the wallet auto-issues the signed token,
|
|
2125
|
-
* reusing the `auth` (SIWE) challenge nonce when present.
|
|
2126
|
-
* - `'user@example.com'` — require this exact email: the wallet forces
|
|
2127
|
-
* the user to authenticate with the account owning it (verifying it
|
|
2128
|
-
* first when needed) instead of a free-form entry.
|
|
2129
|
-
* - `{ address, nonce }` — same as above, with an explicit nonce baked
|
|
2130
|
-
* into the token (for standalone use without the `auth` capability).
|
|
2131
|
-
* Both fields are optional; `{ nonce }` alone requests any email.
|
|
2132
|
-
* - `{ domains }` — restrict email entry to these domains: the wallet
|
|
2133
|
-
* rejects entering an email outside them. An account's
|
|
2134
|
-
* already-verified email is still shared; verify server-side.
|
|
2135
|
-
*/
|
|
2136
1544
|
email: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
2137
|
-
/** Exact email the user must authenticate with. Takes precedence over `domains`. */
|
|
2138
1545
|
address: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2139
|
-
/** Allowed email domains for entry (e.g. `['tempo.xyz']`), matched case-insensitively. */
|
|
2140
1546
|
domains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
2141
|
-
/** Nonce to bind into the issued identity token (replay protection). */
|
|
2142
1547
|
nonce: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2143
1548
|
}, z.core.$strip>]>>;
|
|
2144
1549
|
}, z.core.$strip>>;
|
|
2145
1550
|
method: z.ZodMiniOptional<z.ZodMiniLiteral<"login">>;
|
|
2146
1551
|
personalSign: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
2147
|
-
/** Message to sign. The wallet applies the EIP-191 prehash. */
|
|
2148
1552
|
message: z.ZodMiniString<string>;
|
|
2149
1553
|
}, z.core.$strip>>;
|
|
2150
1554
|
selectAccount: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
2151
1555
|
showDeposit: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
|
|
2152
|
-
/** Human-readable amount to pre-fill (e.g. `"50"`). */
|
|
2153
1556
|
amount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2154
|
-
/** Display name shown in the deposit UI (e.g. the app name). */
|
|
2155
1557
|
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
2156
|
-
/** Auth event that should show the deposit prompt. Defaults to any event. */
|
|
2157
1558
|
on: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"login">, z.ZodMiniLiteral<"register">]>>;
|
|
2158
|
-
/**
|
|
2159
|
-
* Token to pre-fill, accepted as either a contract address or a
|
|
2160
|
-
* supported deposit token symbol (case-insensitive, e.g. `"USDC"`).
|
|
2161
|
-
*/
|
|
2162
1559
|
token: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniString<string>]>>;
|
|
2163
1560
|
}, z.core.$strip>]>>;
|
|
2164
1561
|
}, z.core.$strip>]>>;
|