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