@privy-io/api-types 0.9.0 → 0.11.0

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 (180) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/client.d.mts +40 -43
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +40 -43
  5. package/client.d.ts.map +1 -1
  6. package/client.js +28 -20
  7. package/client.js.map +1 -1
  8. package/client.mjs +29 -21
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +128 -86
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +128 -86
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/aggregations.d.mts +43 -43
  20. package/resources/aggregations.d.mts.map +1 -1
  21. package/resources/aggregations.d.ts +43 -43
  22. package/resources/aggregations.d.ts.map +1 -1
  23. package/resources/apps.d.mts +169 -135
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +169 -135
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/client-auth.d.mts +931 -947
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +931 -947
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/client-auth.js.map +1 -1
  32. package/resources/client-auth.mjs.map +1 -1
  33. package/resources/embedded-wallets.d.mts +122 -122
  34. package/resources/embedded-wallets.d.mts.map +1 -1
  35. package/resources/embedded-wallets.d.ts +122 -122
  36. package/resources/embedded-wallets.d.ts.map +1 -1
  37. package/resources/fiat.d.mts +110 -0
  38. package/resources/fiat.d.mts.map +1 -0
  39. package/resources/fiat.d.ts +110 -0
  40. package/resources/fiat.d.ts.map +1 -0
  41. package/resources/fiat.js +9 -0
  42. package/resources/fiat.js.map +1 -0
  43. package/resources/fiat.mjs +5 -0
  44. package/resources/fiat.mjs.map +1 -0
  45. package/resources/funding.d.mts +86 -86
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +86 -86
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/index.d.mts +20 -18
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +20 -18
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +5 -1
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +3 -1
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/intents.d.mts +269 -265
  58. package/resources/intents.d.mts.map +1 -1
  59. package/resources/intents.d.ts +269 -265
  60. package/resources/intents.d.ts.map +1 -1
  61. package/resources/key-quorums.d.mts +15 -146
  62. package/resources/key-quorums.d.mts.map +1 -1
  63. package/resources/key-quorums.d.ts +15 -146
  64. package/resources/key-quorums.d.ts.map +1 -1
  65. package/resources/key-quorums.js +0 -92
  66. package/resources/key-quorums.js.map +1 -1
  67. package/resources/key-quorums.mjs +0 -92
  68. package/resources/key-quorums.mjs.map +1 -1
  69. package/resources/kraken-embed.d.mts +12 -20
  70. package/resources/kraken-embed.d.mts.map +1 -1
  71. package/resources/kraken-embed.d.ts +12 -20
  72. package/resources/kraken-embed.d.ts.map +1 -1
  73. package/resources/organizations.d.mts +65 -0
  74. package/resources/organizations.d.mts.map +1 -0
  75. package/resources/organizations.d.ts +65 -0
  76. package/resources/organizations.d.ts.map +1 -0
  77. package/resources/organizations.js +9 -0
  78. package/resources/organizations.js.map +1 -0
  79. package/resources/organizations.mjs +5 -0
  80. package/resources/organizations.mjs.map +1 -0
  81. package/resources/policies.d.mts +261 -553
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +261 -553
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +0 -229
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +0 -229
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +28 -28
  90. package/resources/shared.d.mts.map +1 -1
  91. package/resources/shared.d.ts +28 -28
  92. package/resources/shared.d.ts.map +1 -1
  93. package/resources/swaps.d.mts +6 -9
  94. package/resources/swaps.d.mts.map +1 -1
  95. package/resources/swaps.d.ts +6 -9
  96. package/resources/swaps.d.ts.map +1 -1
  97. package/resources/swaps.js.map +1 -1
  98. package/resources/swaps.mjs.map +1 -1
  99. package/resources/transactions.d.mts +80 -96
  100. package/resources/transactions.d.mts.map +1 -1
  101. package/resources/transactions.d.ts +80 -96
  102. package/resources/transactions.d.ts.map +1 -1
  103. package/resources/transactions.js +0 -17
  104. package/resources/transactions.js.map +1 -1
  105. package/resources/transactions.mjs +0 -17
  106. package/resources/transactions.mjs.map +1 -1
  107. package/resources/users.d.mts +480 -815
  108. package/resources/users.d.mts.map +1 -1
  109. package/resources/users.d.ts +480 -815
  110. package/resources/users.d.ts.map +1 -1
  111. package/resources/users.js +0 -272
  112. package/resources/users.js.map +1 -1
  113. package/resources/users.mjs +0 -272
  114. package/resources/users.mjs.map +1 -1
  115. package/resources/wallet-actions.d.mts +302 -145
  116. package/resources/wallet-actions.d.mts.map +1 -1
  117. package/resources/wallet-actions.d.ts +302 -145
  118. package/resources/wallet-actions.d.ts.map +1 -1
  119. package/resources/wallets/index.d.mts +1 -1
  120. package/resources/wallets/index.d.mts.map +1 -1
  121. package/resources/wallets/index.d.ts +1 -1
  122. package/resources/wallets/index.d.ts.map +1 -1
  123. package/resources/wallets/index.js.map +1 -1
  124. package/resources/wallets/index.mjs.map +1 -1
  125. package/resources/wallets/transactions.d.mts +7 -2
  126. package/resources/wallets/transactions.d.mts.map +1 -1
  127. package/resources/wallets/transactions.d.ts +7 -2
  128. package/resources/wallets/transactions.d.ts.map +1 -1
  129. package/resources/wallets/transactions.js +1 -1
  130. package/resources/wallets/transactions.mjs +1 -1
  131. package/resources/wallets/wallets.d.mts +1592 -1580
  132. package/resources/wallets/wallets.d.mts.map +1 -1
  133. package/resources/wallets/wallets.d.ts +1592 -1580
  134. package/resources/wallets/wallets.d.ts.map +1 -1
  135. package/resources/wallets/wallets.js +45 -103
  136. package/resources/wallets/wallets.js.map +1 -1
  137. package/resources/wallets/wallets.mjs +45 -103
  138. package/resources/wallets/wallets.mjs.map +1 -1
  139. package/resources/webhooks.d.mts +935 -877
  140. package/resources/webhooks.d.mts.map +1 -1
  141. package/resources/webhooks.d.ts +935 -877
  142. package/resources/webhooks.d.ts.map +1 -1
  143. package/resources/yield.d.mts +157 -157
  144. package/resources/yield.d.mts.map +1 -1
  145. package/resources/yield.d.ts +157 -157
  146. package/resources/yield.d.ts.map +1 -1
  147. package/src/client.ts +650 -618
  148. package/src/internal/types.ts +6 -8
  149. package/src/resources/accounts.ts +157 -103
  150. package/src/resources/aggregations.ts +55 -55
  151. package/src/resources/apps.ts +221 -178
  152. package/src/resources/client-auth.ts +1271 -1315
  153. package/src/resources/embedded-wallets.ts +160 -160
  154. package/src/resources/fiat.ts +177 -0
  155. package/src/resources/funding.ts +130 -130
  156. package/src/resources/index.ts +551 -542
  157. package/src/resources/intents.ts +326 -322
  158. package/src/resources/key-quorums.ts +16 -218
  159. package/src/resources/kraken-embed.ts +14 -22
  160. package/src/resources/organizations.ts +82 -0
  161. package/src/resources/policies.ts +383 -848
  162. package/src/resources/shared.ts +34 -34
  163. package/src/resources/swaps.ts +5 -10
  164. package/src/resources/transactions.ts +116 -136
  165. package/src/resources/users.ts +693 -1160
  166. package/src/resources/wallet-actions.ts +392 -185
  167. package/src/resources/wallets/index.ts +160 -156
  168. package/src/resources/wallets/transactions.ts +18 -3
  169. package/src/resources/wallets/wallets.ts +2123 -2113
  170. package/src/resources/webhooks.ts +1172 -1100
  171. package/src/resources/yield.ts +188 -188
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.mts.map +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.d.ts.map +1 -1
  177. package/version.js +1 -1
  178. package/version.js.map +1 -1
  179. package/version.mjs +1 -1
  180. package/version.mjs.map +1 -1
@@ -1,12 +1,13 @@
1
1
  import { APIResource } from "../core/resource.js";
2
2
  import * as EmbeddedWalletsAPI from "./embedded-wallets.js";
3
+ import * as FiatAPI from "./fiat.js";
3
4
  import * as UsersAPI from "./users.js";
4
5
  export declare class ClientAuth extends APIResource {
5
6
  }
6
7
  /**
7
- * The request body for authenticating with a custom JWT.
8
+ * Input for authenticating with a custom JWT.
8
9
  */
9
- export interface CustomJwtAuthenticateRequestBody {
10
+ export interface AuthenticateJwtInput {
10
11
  token?: string;
11
12
  /**
12
13
  * Whether to allow sign-up during authentication.
@@ -14,606 +15,870 @@ export interface CustomJwtAuthenticateRequestBody {
14
15
  mode?: AuthenticateModeOption;
15
16
  }
16
17
  /**
17
- * The request body for linking a custom JWT account.
18
+ * The authentication mode settings for the ceremony.
18
19
  */
19
- export interface CustomJwtLinkRequestBody {
20
- token?: string;
20
+ export interface AuthenticateMode {
21
+ /**
22
+ * Whether to allow sign-up during authentication.
23
+ */
24
+ mode?: AuthenticateModeOption;
21
25
  }
22
26
  /**
23
- * The request body for authenticating with Farcaster.
27
+ * Whether to allow sign-up during authentication.
24
28
  */
25
- export interface FarcasterAuthenticateRequestBody {
26
- channel_token: string;
27
- fid: number;
29
+ export type AuthenticateModeOption = 'no-signup' | 'login-or-sign-up';
30
+ /**
31
+ * Input for authenticating a SIWE ceremony.
32
+ */
33
+ export interface AuthenticateSiweInput {
28
34
  message: string;
29
35
  signature: string;
36
+ chainId?: string | null;
37
+ connectorType?: string | null;
30
38
  /**
31
39
  * Whether to allow sign-up during authentication.
32
40
  */
33
41
  mode?: AuthenticateModeOption;
42
+ walletClientType?: string | null;
34
43
  }
35
44
  /**
36
- * The response body for initiating a Farcaster connection.
37
- */
38
- export interface FarcasterConnectInitResponseBody {
39
- channel_token: string;
40
- connect_uri: string;
41
- }
42
- /**
43
- * The response body for completing a Farcaster connection.
45
+ * Input for authenticating a SIWS ceremony.
44
46
  */
45
- export interface FarcasterConnectStatusCompletedResponseBody {
46
- bio: string;
47
- display_name: string;
48
- fid: number;
47
+ export interface AuthenticateSiwsInput {
49
48
  message: string;
50
- nonce: string;
51
- pfp_url: string;
52
49
  signature: string;
53
- state: 'completed';
54
- username: string;
50
+ connectorType?: string | null;
51
+ message_type?: 'transaction' | 'plain';
52
+ /**
53
+ * Whether to allow sign-up during authentication.
54
+ */
55
+ mode?: AuthenticateModeOption;
56
+ walletClientType?: string | null;
55
57
  }
56
58
  /**
57
- * The response body for pending a Farcaster connection.
59
+ * The deposit instructions for a virtual account.
58
60
  */
59
- export interface FarcasterConnectStatusPendingResponseBody {
60
- nonce: string;
61
- state: 'pending';
61
+ export interface BridgeBrlFiatVirtualAccountDepositInstructions {
62
+ account_holder_name: string;
63
+ asset: 'brl';
64
+ bank_address: string;
65
+ bank_name: string;
66
+ br_code: string;
67
+ payment_rails: Array<'pix'>;
62
68
  }
69
+ export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc';
63
70
  /**
64
- * The request body for initiating a Farcaster connection.
71
+ * The deposit instructions for a virtual account.
65
72
  */
66
- export interface FarcasterInitRequestBody {
67
- token?: string;
68
- redirect_url?: string;
69
- relying_party?: string;
73
+ export interface BridgeEurFiatVirtualAccountDepositInstructions {
74
+ account_holder_name: string;
75
+ asset: 'eur';
76
+ bank_address: string;
77
+ bank_name: string;
78
+ bic: string;
79
+ iban: string;
80
+ payment_rails: Array<'sepa'>;
70
81
  }
71
82
  /**
72
- * The request body for linking a Farcaster account.
83
+ * The response for getting a native onramp provider customer.
73
84
  */
74
- export interface FarcasterLinkRequestBody {
75
- channel_token: string;
76
- fid: number;
77
- message: string;
78
- signature: string;
85
+ export interface BridgeFiatCustomerResponse {
86
+ has_accepted_terms: boolean;
87
+ provider: 'bridge';
88
+ /**
89
+ * Status of the KYC verification process.
90
+ */
91
+ status: FiatAPI.OnrampKYCStatus;
92
+ kyc_url?: string;
93
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
79
94
  }
80
95
  /**
81
- * The request body for initiating a Farcaster signer connection.
96
+ * A rejection reason for a customer KYC verification.
82
97
  */
83
- export interface FarcasterSignerInitRequestBody {
84
- ed25519_public_key: string;
85
- deadline?: string;
98
+ export interface BridgeFiatRejectionReason {
99
+ reason: string;
86
100
  }
87
101
  /**
88
- * The response body from initiating a Farcaster signer connection.
89
- */
90
- export type FarcasterSignerInitResponseBody = FarcasterSignerInitPendingApproval | FarcasterSignerApproved | FarcasterSignerRevoked;
91
- /**
92
- * The response body from checking the status of a Farcaster signer connection.
102
+ * The deposit instructions for a virtual account.
93
103
  */
94
- export type FarcasterSignerStatusResponseBody = FarcasterSignerStatusPendingApproval | FarcasterSignerApproved | FarcasterSignerRevoked;
104
+ export type BridgeFiatVirtualAccountDepositInstructions = BridgeUsdFiatVirtualAccountDepositInstructions | BridgeEurFiatVirtualAccountDepositInstructions | BridgeMxnFiatVirtualAccountDepositInstructions | BridgeBrlFiatVirtualAccountDepositInstructions | BridgeGbpFiatVirtualAccountDepositInstructions;
105
+ export interface BridgeFiatVirtualAccountDestination {
106
+ address: string;
107
+ asset: BridgeDestinationAsset;
108
+ chain: string;
109
+ }
95
110
  /**
96
- * The request body for unlinking a Farcaster account.
111
+ * The request input for creating virtual account.
97
112
  */
98
- export interface FarcasterUnlinkRequestBody {
99
- fid: number;
113
+ export interface BridgeFiatVirtualAccountRequest {
114
+ destination: BridgeFiatVirtualAccountDestination;
115
+ provider: 'bridge';
116
+ source: BridgeFiatVirtualAccountSource;
100
117
  }
101
118
  /**
102
- * The request body for authenticating a Farcaster V2 account.
119
+ * The response for creating virtual account.
103
120
  */
104
- export interface FarcasterV2AuthenticateRequestBody {
105
- fid: number;
106
- message: string;
107
- signature: string;
121
+ export interface BridgeFiatVirtualAccountResponse {
108
122
  /**
109
- * Whether to allow sign-up during authentication.
123
+ * The deposit instructions for a virtual account.
110
124
  */
111
- mode?: AuthenticateModeOption;
125
+ deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
126
+ destination: BridgeFiatVirtualAccountDestination;
127
+ provider: 'bridge';
128
+ status: string;
112
129
  }
113
- /**
114
- * The response body for initiating a Farcaster V2 connection.
115
- */
116
- export interface FarcasterV2InitResponseBody {
117
- expires_at: string;
118
- nonce: string;
130
+ export interface BridgeFiatVirtualAccountSource {
131
+ asset: BridgeSourceAsset;
119
132
  }
120
133
  /**
121
- * The request body for authenticating a guest.
134
+ * The deposit instructions for a virtual account.
122
135
  */
123
- export interface GuestAuthenticateRequestBody {
124
- guest_credential: string;
136
+ export interface BridgeGbpFiatVirtualAccountDepositInstructions {
137
+ account_holder_name: string;
138
+ account_number: string;
139
+ asset: 'gbp';
140
+ bank_address: string;
141
+ bank_name: string;
142
+ payment_rails: Array<'faster_payments'>;
143
+ sort_code: string;
125
144
  }
126
145
  /**
127
- * The request body for enrolling a passkey MFA flow.
146
+ * The deposit instructions for a virtual account.
128
147
  */
129
- export interface MfaPasskeyEnrollmentRequestBody {
130
- credential_ids: Array<string>;
131
- remove_for_login?: boolean;
148
+ export interface BridgeMxnFiatVirtualAccountDepositInstructions {
149
+ account_holder_name: string;
150
+ asset: 'mxn';
151
+ bank_address: string;
152
+ bank_name: string;
153
+ clabe: string;
154
+ payment_rails: Array<'spei'>;
132
155
  }
133
156
  /**
134
- * The request body for initiating a passkey MFA flow.
157
+ * Bridge provider variant — production or sandbox.
135
158
  */
136
- export interface MfaPasskeyInitRequestBody {
137
- relying_party?: string;
138
- }
159
+ export type BridgeOnrampProvider = 'bridge' | 'bridge-sandbox';
139
160
  /**
140
- * The response body for initializing a passkey MFA flow.
161
+ * The response for getting a native onramp provider customer.
141
162
  */
142
- export interface MfaPasskeyInitResponseBody {
163
+ export interface BridgeSandboxFiatCustomerResponse {
164
+ has_accepted_terms: boolean;
165
+ provider: 'bridge-sandbox';
143
166
  /**
144
- * WebAuthn authentication options as defined by the Web Authentication
145
- * specification.
167
+ * Status of the KYC verification process.
146
168
  */
147
- options: PasskeyAuthenticatorVerifyOptions;
148
- relying_party?: string;
169
+ status: FiatAPI.OnrampKYCStatus;
170
+ kyc_url?: string;
171
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
149
172
  }
150
173
  /**
151
- * The request body for verifying a passkey MFA flow.
174
+ * The request input for creating virtual account.
152
175
  */
153
- export interface MfaPasskeyVerifyRequestBody {
176
+ export interface BridgeSandboxFiatVirtualAccountRequest {
177
+ destination: BridgeFiatVirtualAccountDestination;
178
+ provider: 'bridge-sandbox';
179
+ source: BridgeFiatVirtualAccountSource;
180
+ }
181
+ /**
182
+ * The response for creating virtual account.
183
+ */
184
+ export interface BridgeSandboxFiatVirtualAccountResponse {
154
185
  /**
155
- * WebAuthn authentication response as defined by the Web Authentication
156
- * specification.
186
+ * The deposit instructions for a virtual account.
157
187
  */
158
- authenticator_response: PasskeyAuthenticatorVerifyResponse;
159
- relying_party?: string;
188
+ deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
189
+ destination: BridgeFiatVirtualAccountDestination;
190
+ provider: 'bridge-sandbox';
191
+ status: string;
160
192
  }
193
+ export type BridgeSourceAsset = 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
161
194
  /**
162
- * The request body for enrolling a SMS MFA code.
195
+ * The deposit instructions for a virtual account.
163
196
  */
164
- export interface MfaSMSEnrollRequestBody {
165
- code: string;
166
- phoneNumber: string;
197
+ export interface BridgeUsdFiatVirtualAccountDepositInstructions {
198
+ asset: 'usd';
199
+ bank_account_number: string;
200
+ bank_address: string;
201
+ bank_beneficiary_address: string;
202
+ bank_beneficiary_name: string;
203
+ bank_name: string;
204
+ bank_routing_number: string;
205
+ payment_rails: Array<'ach_push' | 'wire'>;
167
206
  }
168
207
  /**
169
- * The request body for initiating a SMS MFA flow.
208
+ * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
209
+ * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
170
210
  */
171
- export type MfaSMSInitRequestBody = MfaSMSInitVerifyInput | MfaSMSInitEnrollInput;
211
+ export type Caip2ChainID = string;
172
212
  /**
173
- * The request body for verifying a SMS MFA code.
213
+ * The request input for creating (or updating) a native onramp provider customer.
174
214
  */
175
- export interface MfaSMSVerifyRequestBody {
176
- code: string;
215
+ export interface CreateOrUpdateFiatCustomerRequestInput {
216
+ has_accepted_terms: boolean;
217
+ /**
218
+ * Valid set of onramp providers
219
+ */
220
+ provider: OnrampProvider;
221
+ kyc_redirect_url?: string;
177
222
  }
178
223
  /**
179
- * The response body for initializing a TOTP MFA code.
224
+ * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
180
225
  */
181
- export interface MfaTotpInitResponseBody {
182
- totpAuthUrl: string;
183
- totpSecret: string;
184
- }
226
+ export type CryptoCurrencyCode = string;
185
227
  /**
186
- * The input for verifying a TOTP MFA code.
228
+ * The request body for authenticating with a custom JWT.
187
229
  */
188
- export interface MfaTotpInput {
189
- code: string;
230
+ export interface CustomJwtAuthenticateRequestBody {
231
+ token?: string;
232
+ /**
233
+ * Whether to allow sign-up during authentication.
234
+ */
235
+ mode?: AuthenticateModeOption;
190
236
  }
191
237
  /**
192
- * The response body for verifying a MFA code.
238
+ * The request body for linking a custom JWT account.
193
239
  */
194
- export interface MfaVerifyResponseBody {
195
- token: string;
240
+ export interface CustomJwtLinkRequestBody {
241
+ token?: string;
196
242
  }
197
243
  /**
198
- * The request body for authenticating an OAuth account.
244
+ * The ID of a custom OAuth provider, set up for this app. Must start with
245
+ * "custom:".
199
246
  */
200
- export interface OAuthAuthenticateRequestBody {
201
- authorization_code: string;
202
- state_code: string;
247
+ export type CustomOAuthProviderID = `custom:${string}`;
248
+ /**
249
+ * The ID of an external OAuth provider.
250
+ */
251
+ export type ExternalOAuthProviderID = 'google' | 'discord' | 'twitter' | 'github' | 'spotify' | 'instagram' | 'tiktok' | 'linkedin' | 'apple' | 'line' | 'twitch';
252
+ /**
253
+ * Input for authenticating with Farcaster.
254
+ */
255
+ export interface FarcasterAuthenticateInput {
256
+ channel_token: string;
257
+ fid: number;
258
+ message: string;
259
+ signature: string;
203
260
  /**
204
- * The type of OAuth authorization code.
261
+ * Whether to allow sign-up during authentication.
205
262
  */
206
- code_type?: OAuthCodeType;
207
- code_verifier?: string;
263
+ mode?: AuthenticateModeOption;
264
+ }
265
+ /**
266
+ * The request body for authenticating with Farcaster.
267
+ */
268
+ export interface FarcasterAuthenticateRequestBody {
269
+ channel_token: string;
270
+ fid: number;
271
+ message: string;
272
+ signature: string;
208
273
  /**
209
274
  * Whether to allow sign-up during authentication.
210
275
  */
211
276
  mode?: AuthenticateModeOption;
212
277
  }
213
278
  /**
214
- * The request body for getting an OAuth authorization code.
279
+ * Proxy for the Farcaster Connect init response as defined in FIP-11.
215
280
  */
216
- export interface OAuthAuthorizationCodeRequestBody {
217
- code_challenge: string;
218
- redirect_to: string;
219
- state: string;
281
+ export interface FarcasterConnectInitResponse {
282
+ channel_token: string;
283
+ connect_uri: string;
220
284
  }
221
285
  /**
222
- * The request body for initiating an OAuth ceremony.
286
+ * The response body for initiating a Farcaster connection.
223
287
  */
224
- export interface OAuthInitRequestBody {
225
- /**
226
- * The ID of an OAuth provider.
227
- */
228
- provider: OAuthProviderID;
229
- redirect_to: string;
230
- token?: string;
231
- code_challenge?: string;
232
- state_code?: string;
288
+ export interface FarcasterConnectInitResponseBody {
289
+ channel_token: string;
290
+ connect_uri: string;
233
291
  }
234
292
  /**
235
- * The response for initiating an OAuth ceremony.
293
+ * Proxy for the Farcaster Connect completed status response as defined in FIP-11.
236
294
  */
237
- export interface OAuthInitResponseBody {
238
- url: string;
295
+ export interface FarcasterConnectStatusCompletedResponse {
296
+ bio: string;
297
+ display_name: string;
298
+ fid: number;
299
+ message: string;
300
+ nonce: string;
301
+ pfp_url: string;
302
+ signature: string;
303
+ state: 'completed';
304
+ username: string;
239
305
  }
240
306
  /**
241
- * The request body for linking an OAuth account.
307
+ * The response body for completing a Farcaster connection.
242
308
  */
243
- export interface OAuthLinkRequestBody {
244
- authorization_code: string;
245
- state_code: string;
246
- /**
247
- * The type of OAuth authorization code.
248
- */
249
- code_type?: OAuthCodeType;
250
- code_verifier?: string;
309
+ export interface FarcasterConnectStatusCompletedResponseBody {
310
+ bio: string;
311
+ display_name: string;
312
+ fid: number;
313
+ message: string;
314
+ nonce: string;
315
+ pfp_url: string;
316
+ signature: string;
317
+ state: 'completed';
318
+ username: string;
251
319
  }
252
320
  /**
253
- * The response for linking an OAuth account.
321
+ * Proxy for the Farcaster Connect pending status response as defined in FIP-11.
254
322
  */
255
- export interface OAuthLinkResponseBody extends UsersAPI.User {
256
- /**
257
- * OAuth tokens associated with the user.
258
- */
259
- oauth_tokens?: UsersAPI.OAuthTokens;
323
+ export interface FarcasterConnectStatusPendingResponse {
324
+ nonce: string;
325
+ state: 'pending';
260
326
  }
261
327
  /**
262
- * The request body for unlinking an OAuth account.
328
+ * The response body for pending a Farcaster connection.
263
329
  */
264
- export interface OAuthUnlinkRequestBody {
265
- /**
266
- * The ID of an OAuth provider.
267
- */
268
- provider: OAuthProviderID;
269
- subject: string;
330
+ export interface FarcasterConnectStatusPendingResponseBody {
331
+ nonce: string;
332
+ state: 'pending';
270
333
  }
271
334
  /**
272
- * The request body for verifying a PRAT.
335
+ * Input for initiating a Farcaster connection.
273
336
  */
274
- export interface OAuthVerifyRequestBody {
275
- prat: string;
337
+ export interface FarcasterInitInput {
338
+ token?: string;
339
+ redirect_url?: string;
340
+ relying_party?: string;
276
341
  }
277
342
  /**
278
- * The response body when verifying a PRAT.
343
+ * The request body for initiating a Farcaster connection.
279
344
  */
280
- export interface OAuthVerifyResponseBody {
281
- verified: boolean;
345
+ export interface FarcasterInitRequestBody {
346
+ token?: string;
347
+ redirect_url?: string;
348
+ relying_party?: string;
282
349
  }
283
350
  /**
284
- * The input for refreshing a session or logging out.
351
+ * Input for linking a Farcaster account.
285
352
  */
286
- export interface OptionalRefreshTokenInput {
287
- refresh_token?: string;
353
+ export interface FarcasterLinkInput {
354
+ channel_token: string;
355
+ fid: number;
356
+ message: string;
357
+ signature: string;
288
358
  }
289
359
  /**
290
- * The request body for authenticating a passwordless account.
360
+ * The request body for linking a Farcaster account.
291
361
  */
292
- export interface PasswordlessAuthenticateRequestBody {
293
- code: string;
294
- email: string;
295
- /**
296
- * Whether to allow sign-up during authentication.
297
- */
298
- mode?: AuthenticateModeOption;
362
+ export interface FarcasterLinkRequestBody {
363
+ channel_token: string;
364
+ fid: number;
365
+ message: string;
366
+ signature: string;
299
367
  }
300
368
  /**
301
- * The request body for initiating a passwordless ceremony.
369
+ * A Farcaster signer response when the signer has been approved.
302
370
  */
303
- export interface PasswordlessInitRequestBody {
304
- email: string;
305
- token?: string;
371
+ export interface FarcasterSignerApproved {
372
+ fid: string;
373
+ public_key: string;
374
+ status: 'approved';
306
375
  }
307
376
  /**
308
- * The request body for linking a passwordless account.
377
+ * A Farcaster signer init response when the signer is pending approval.
309
378
  */
310
- export interface PasswordlessLinkRequestBody {
311
- code: string;
312
- email: string;
379
+ export interface FarcasterSignerInitPendingApproval {
380
+ public_key: string;
381
+ signer_approval_url: string;
382
+ status: 'pending_approval';
313
383
  }
314
384
  /**
315
- * The request body for authenticating a passwordless sms account.
385
+ * The request body for initiating a Farcaster signer connection.
316
386
  */
317
- export interface PasswordlessSMSAuthenticateRequestBody {
318
- code: string;
319
- phoneNumber: string;
320
- /**
321
- * Whether to allow sign-up during authentication.
322
- */
323
- mode?: AuthenticateModeOption;
387
+ export interface FarcasterSignerInitRequestBody {
388
+ ed25519_public_key: string;
389
+ deadline?: string;
324
390
  }
325
391
  /**
326
- * The request body for initiating a passwordless sms ceremony.
392
+ * The response body from initiating a Farcaster signer connection.
327
393
  */
328
- export interface PasswordlessSMSInitRequestBody {
329
- phoneNumber: string;
330
- token?: string;
331
- }
394
+ export type FarcasterSignerInitResponseBody = FarcasterSignerInitPendingApproval | FarcasterSignerApproved | FarcasterSignerRevoked;
332
395
  /**
333
- * The request body for linking a passwordless sms account.
396
+ * A Farcaster signer response when the signer has been revoked.
334
397
  */
335
- export interface PasswordlessSMSLinkRequestBody {
336
- code: string;
337
- phoneNumber: string;
398
+ export interface FarcasterSignerRevoked {
399
+ fid: string;
400
+ public_key: string;
401
+ status: 'revoked';
338
402
  }
339
403
  /**
340
- * The request body for unlinking a passwordless sms account.
404
+ * A Farcaster signer status response when the signer is pending approval.
341
405
  */
342
- export interface PasswordlessSMSUnlinkRequestBody {
343
- phoneNumber: string;
406
+ export interface FarcasterSignerStatusPendingApproval {
407
+ public_key: string;
408
+ status: 'pending_approval';
344
409
  }
345
410
  /**
346
- * The request body for updating a passwordless sms account.
411
+ * The response body from checking the status of a Farcaster signer connection.
347
412
  */
348
- export interface PasswordlessSMSUpdateRequestBody {
349
- code: string;
350
- new_phone_number: string;
351
- old_phone_number: string;
352
- }
413
+ export type FarcasterSignerStatusResponseBody = FarcasterSignerStatusPendingApproval | FarcasterSignerApproved | FarcasterSignerRevoked;
353
414
  /**
354
- * The request body for unlinking a passwordless account.
415
+ * Input for unlinking a Farcaster account.
355
416
  */
356
- export interface PasswordlessUnlinkRequestBody {
357
- address: string;
417
+ export interface FarcasterUnlinkInput {
418
+ fid: number;
358
419
  }
359
420
  /**
360
- * The request body for updating a passwordless account.
421
+ * The request body for unlinking a Farcaster account.
361
422
  */
362
- export interface PasswordlessUpdateRequestBody {
363
- code: string;
364
- newAddress: string;
365
- oldAddress: string;
423
+ export interface FarcasterUnlinkRequestBody {
424
+ fid: number;
366
425
  }
367
426
  /**
368
- * The request body for authenticating a SIWE ceremony.
427
+ * Input for authenticating a Farcaster V2 account.
369
428
  */
370
- export interface SiweAuthenticateRequestBody {
429
+ export interface FarcasterV2AuthenticateInput {
430
+ fid: number;
371
431
  message: string;
372
432
  signature: string;
373
- chainId?: string | null;
374
- connectorType?: string | null;
375
433
  /**
376
434
  * Whether to allow sign-up during authentication.
377
435
  */
378
436
  mode?: AuthenticateModeOption;
379
- walletClientType?: string | null;
380
437
  }
381
438
  /**
382
- * The request body for initiating a SIWE ceremony.
439
+ * The request body for authenticating a Farcaster V2 account.
383
440
  */
384
- export interface SiweInitRequestBody {
385
- address: string;
441
+ export interface FarcasterV2AuthenticateRequestBody {
442
+ fid: number;
443
+ message: string;
444
+ signature: string;
445
+ /**
446
+ * Whether to allow sign-up during authentication.
447
+ */
448
+ mode?: AuthenticateModeOption;
386
449
  }
387
450
  /**
388
- * The response body for initiating a SIWE ceremony.
451
+ * Input for initiating a Farcaster V2 connection.
389
452
  */
390
- export interface SiweInitResponseBody {
391
- address: string;
392
- expires_at: string;
393
- nonce: string;
453
+ export interface FarcasterV2InitInput {
394
454
  }
395
455
  /**
396
- * The request body for linking a SIWE ceremony.
456
+ * The request body for initiating a Farcaster V2 connection.
397
457
  */
398
- export interface SiweLinkRequestBody {
399
- message: string;
400
- signature: string;
401
- chainId?: string | null;
402
- connectorType?: string | null;
403
- walletClientType?: string | null;
458
+ export interface FarcasterV2InitRequestBody {
404
459
  }
405
460
  /**
406
- * The request body for linking a SIWE ceremony to a smart wallet.
461
+ * Response for initiating a Farcaster V2 connection.
407
462
  */
408
- export interface SiweLinkSmartWalletRequestBody {
409
- message: string;
410
- signature: string;
411
- /**
412
- * The supported smart wallet providers.
413
- */
414
- smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
415
- smart_wallet_version?: string;
463
+ export interface FarcasterV2InitResponse {
464
+ expires_at: string;
465
+ nonce: string;
416
466
  }
417
467
  /**
418
- * The request body for unlinking a SIWE ceremony.
468
+ * The response body for initiating a Farcaster V2 connection.
419
469
  */
420
- export interface SiweUnlinkRequestBody {
421
- address: string;
470
+ export interface FarcasterV2InitResponseBody {
471
+ expires_at: string;
472
+ nonce: string;
422
473
  }
423
474
  /**
424
- * The request body for authenticating a SIWS ceremony.
475
+ * A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
425
476
  */
426
- export interface SiwsAuthenticateRequestBody {
427
- message: string;
428
- signature: string;
429
- connectorType?: string | null;
430
- message_type?: 'transaction' | 'plain';
477
+ export type FiatAmount = string;
478
+ /**
479
+ * ISO 4217 fiat currency code. Three uppercase ASCII letters.
480
+ */
481
+ export type FiatCurrencyCode = string;
482
+ /**
483
+ * The response for getting a native onramp provider customer.
484
+ */
485
+ export type FiatCustomerResponse = BridgeFiatCustomerResponse | BridgeSandboxFiatCustomerResponse;
486
+ /**
487
+ * Destination cryptocurrency details for a fiat onramp quote request.
488
+ */
489
+ export interface FiatOnrampDestination {
490
+ address: string;
431
491
  /**
432
- * Whether to allow sign-up during authentication.
492
+ * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
433
493
  */
434
- mode?: AuthenticateModeOption;
435
- walletClientType?: string | null;
494
+ asset: CryptoCurrencyCode;
495
+ /**
496
+ * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
497
+ * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
498
+ */
499
+ chain: Caip2ChainID;
436
500
  }
437
501
  /**
438
- * The request body for initiating a SIWS ceremony.
502
+ * Whether to use the sandbox or production environment for fiat onramp.
439
503
  */
440
- export interface SiwsInitRequestBody {
441
- address: string;
442
- }
504
+ export type FiatOnrampEnvironment = 'sandbox' | 'production';
443
505
  /**
444
- * The response body for initiating a SIWS ceremony.
506
+ * The fiat onramp provider to use.
445
507
  */
446
- export interface SiwsInitResponseBody {
447
- address: string;
448
- expires_at: string;
449
- nonce: string;
450
- }
508
+ export type FiatOnrampProvider = 'meld' | 'meld-sandbox' | 'moonpay' | 'moonpay-sandbox' | 'coinbase' | 'coinbase-sandbox';
451
509
  /**
452
- * The request body for linking a SIWS ceremony.
510
+ * An error from a specific fiat onramp provider when fetching quotes.
453
511
  */
454
- export interface SiwsLinkRequestBody {
455
- message: string;
456
- signature: string;
457
- connectorType?: string | null;
458
- message_type?: 'transaction' | 'plain';
459
- walletClientType?: string | null;
512
+ export interface FiatOnrampProviderError {
513
+ error: string;
514
+ /**
515
+ * The fiat onramp provider to use.
516
+ */
517
+ provider: FiatOnrampProvider;
460
518
  }
461
519
  /**
462
- * The request body for unlinking a SIWS ceremony.
520
+ * A single fiat onramp quote from a provider.
463
521
  */
464
- export interface SiwsUnlinkRequestBody {
465
- address: string;
522
+ export interface FiatOnrampQuote {
523
+ payment_method: string;
524
+ /**
525
+ * The fiat onramp provider to use.
526
+ */
527
+ provider: FiatOnrampProvider;
528
+ destination_currency_code?: string | null;
529
+ source_amount?: number | null;
530
+ source_currency_code?: string | null;
531
+ sub_provider?: string | null;
466
532
  }
467
533
  /**
468
- * The request body for authenticating with Telegram.
534
+ * Source currency details for a fiat onramp quote request.
469
535
  */
470
- export interface TelegramAuthenticateRequestBody {
471
- captcha_token?: string;
536
+ export interface FiatOnrampSource {
472
537
  /**
473
- * Whether to allow sign-up during authentication.
538
+ * A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
474
539
  */
475
- mode?: AuthenticateModeOption;
540
+ amount: FiatAmount;
476
541
  /**
477
- * Auth result object returned by Telegram when a user authenticates using the
478
- * login widget.
542
+ * ISO 4217 fiat currency code. Three uppercase ASCII letters.
479
543
  */
480
- telegram_auth_result?: TelegramAuthResult;
544
+ asset: FiatCurrencyCode;
545
+ }
546
+ /**
547
+ * Normalized fiat onramp transaction status.
548
+ */
549
+ export type FiatOnrampTransactionStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'cancelled' | 'refunded' | 'unknown';
550
+ /**
551
+ * The request input for creating virtual account.
552
+ */
553
+ export type FiatVirtualAccountRequest = BridgeFiatVirtualAccountRequest | BridgeSandboxFiatVirtualAccountRequest;
554
+ /**
555
+ * The response for creating virtual account.
556
+ */
557
+ export type FiatVirtualAccountResponse = BridgeFiatVirtualAccountResponse | BridgeSandboxFiatVirtualAccountResponse;
558
+ /**
559
+ * The request input for getting a native onramp provider customer.
560
+ */
561
+ export interface GetFiatCustomerRequestInput {
481
562
  /**
482
- * Auth result object returned by Telegram when a user authenticates using a mini
483
- * app.
563
+ * Valid set of onramp providers
484
564
  */
485
- telegram_web_app_data?: TelegramWebAppData;
565
+ provider: OnrampProvider;
566
+ kyc_redirect_url?: string;
486
567
  }
487
568
  /**
488
- * The request body for linking a Telegram account.
569
+ * The request input for getting fiat onramp quotes.
489
570
  */
490
- export interface TelegramLinkRequestBody {
491
- captcha_token?: string;
571
+ export interface GetFiatOnrampQuotesInput {
492
572
  /**
493
- * Whether to allow sign-up during authentication.
573
+ * Destination cryptocurrency details for a fiat onramp quote request.
494
574
  */
495
- mode?: AuthenticateModeOption;
575
+ destination: FiatOnrampDestination;
496
576
  /**
497
- * Auth result object returned by Telegram when a user authenticates using the
498
- * login widget.
577
+ * Whether to use the sandbox or production environment for fiat onramp.
499
578
  */
500
- telegram_auth_result?: TelegramAuthResult;
579
+ environment: FiatOnrampEnvironment;
501
580
  /**
502
- * Auth result object returned by Telegram when a user authenticates using a mini
503
- * app.
581
+ * Source currency details for a fiat onramp quote request.
504
582
  */
505
- telegram_web_app_data?: TelegramWebAppData;
583
+ source: FiatOnrampSource;
506
584
  }
507
585
  /**
508
- * The request body for unlinking a Telegram account.
586
+ * The response containing fiat onramp quotes.
509
587
  */
510
- export interface TelegramUnlinkRequestBody {
511
- telegram_user_id: string;
588
+ export interface GetFiatOnrampQuotesResponse {
589
+ quotes: Array<FiatOnrampQuote>;
590
+ provider_errors?: Array<FiatOnrampProviderError>;
512
591
  }
513
592
  /**
514
- * Whether to allow sign-up during authentication.
515
- */
516
- export type AuthenticateModeOption = 'no-signup' | 'login-or-sign-up';
517
- /**
518
- * The authentication mode settings for the ceremony.
593
+ * The request input for checking a fiat onramp session status.
519
594
  */
520
- export interface AuthenticateMode {
595
+ export interface GetFiatOnrampTransactionStatusInput {
521
596
  /**
522
- * Whether to allow sign-up during authentication.
597
+ * The fiat onramp provider to use.
523
598
  */
524
- mode?: AuthenticateModeOption;
599
+ provider: FiatOnrampProvider;
600
+ session_id: string;
525
601
  }
526
602
  /**
527
- * The ID of an external OAuth provider.
603
+ * The response containing the fiat onramp session status.
528
604
  */
529
- export type ExternalOAuthProviderID = 'google' | 'discord' | 'twitter' | 'github' | 'spotify' | 'instagram' | 'tiktok' | 'linkedin' | 'apple' | 'line' | 'twitch';
605
+ export interface GetFiatOnrampTransactionStatusResponse {
606
+ raw_status: string;
607
+ session_id: string;
608
+ /**
609
+ * Normalized fiat onramp transaction status.
610
+ */
611
+ status: FiatOnrampTransactionStatus;
612
+ transaction_id?: string;
613
+ }
530
614
  /**
531
- * The ID of a Privy app as an OAuth provider. Must start with "privy:".
615
+ * The request input for getting a fiat onramp provider session URL.
532
616
  */
533
- export type PrivyOAuthProviderID = `privy:${string}`;
617
+ export interface GetFiatOnrampURLInput {
618
+ /**
619
+ * Destination cryptocurrency details for a fiat onramp quote request.
620
+ */
621
+ destination: FiatOnrampDestination;
622
+ payment_method: string;
623
+ /**
624
+ * The fiat onramp provider to use.
625
+ */
626
+ provider: FiatOnrampProvider;
627
+ /**
628
+ * Source currency details for a fiat onramp quote request.
629
+ */
630
+ source: FiatOnrampSource;
631
+ redirect_url?: string;
632
+ sub_provider?: string;
633
+ }
534
634
  /**
535
- * The ID of a custom OAuth provider, set up for this app. Must start with
536
- * "custom:".
635
+ * The response containing a fiat onramp provider session URL.
537
636
  */
538
- export type CustomOAuthProviderID = `custom:${string}`;
637
+ export interface GetFiatOnrampURLResponse {
638
+ session_id: string;
639
+ url: string;
640
+ }
539
641
  /**
540
- * The ID of an OAuth provider.
642
+ * The request body for authenticating a guest.
541
643
  */
542
- export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID | CustomOAuthProviderID;
644
+ export interface GuestAuthenticateRequestBody {
645
+ guest_credential: string;
646
+ }
543
647
  /**
544
- * Bridge provider variant — production or sandbox.
648
+ * Input for linking a custom JWT account.
545
649
  */
546
- export type BridgeOnrampProvider = 'bridge' | 'bridge-sandbox';
650
+ export interface LinkJwtInput {
651
+ token?: string;
652
+ }
547
653
  /**
548
- * Valid set of onramp providers
654
+ * The request body for enrolling a passkey MFA flow.
549
655
  */
550
- export type OnrampProvider = 'bridge' | 'bridge-sandbox';
656
+ export interface MfaPasskeyEnrollmentRequestBody {
657
+ credential_ids: Array<string>;
658
+ remove_for_login?: boolean;
659
+ }
551
660
  /**
552
- * The result of the WebAuthn credProps extension.
661
+ * The request body for initiating a passkey MFA flow.
553
662
  */
554
- export interface PasskeyCredPropsResult {
555
- rk?: boolean;
663
+ export interface MfaPasskeyInitRequestBody {
664
+ relying_party?: string;
556
665
  }
557
666
  /**
558
- * Client extension results returned by the WebAuthn authenticator.
667
+ * The response body for initializing a passkey MFA flow.
559
668
  */
560
- export interface PasskeyClientExtensionResults {
561
- app_id?: boolean;
669
+ export interface MfaPasskeyInitResponseBody {
562
670
  /**
563
- * The result of the WebAuthn credProps extension.
671
+ * WebAuthn authentication options as defined by the Web Authentication
672
+ * specification.
564
673
  */
565
- cred_props?: PasskeyCredPropsResult;
566
- hmac_create_secret?: boolean;
674
+ options: PasskeyAuthenticatorVerifyOptions;
675
+ relying_party?: string;
567
676
  }
568
677
  /**
569
- * A WebAuthn credential descriptor identifying a specific public key credential.
678
+ * The request body for verifying a passkey MFA flow.
570
679
  */
571
- export interface PasskeyCredentialDescriptor {
572
- id: string;
573
- type: string;
574
- transports?: Array<string>;
680
+ export interface MfaPasskeyVerifyRequestBody {
681
+ /**
682
+ * WebAuthn authentication response as defined by the Web Authentication
683
+ * specification.
684
+ */
685
+ authenticator_response: PasskeyAuthenticatorVerifyResponse;
686
+ relying_party?: string;
575
687
  }
576
688
  /**
577
- * Relying party information for a WebAuthn ceremony.
689
+ * The request body for enrolling a SMS MFA code.
578
690
  */
579
- export interface PasskeyRelyingParty {
580
- name: string;
581
- id?: string;
691
+ export interface MfaSMSEnrollRequestBody {
692
+ code: string;
693
+ phoneNumber: string;
582
694
  }
583
695
  /**
584
- * User entity for a WebAuthn registration ceremony.
696
+ * Input for enrolling SMS MFA.
585
697
  */
586
- export interface PasskeyUser {
587
- id: string;
588
- display_name: string;
589
- name: string;
698
+ export interface MfaSMSInitEnrollInput {
699
+ action: 'enroll';
700
+ phoneNumber: string;
590
701
  }
591
702
  /**
592
- * A public key credential parameter specifying the algorithm and credential type.
703
+ * The request body for initiating a SMS MFA flow.
593
704
  */
594
- export interface PasskeyPubKeyCredParam {
595
- alg: number;
596
- type: 'public-key';
705
+ export type MfaSMSInitRequestBody = MfaSMSInitVerifyInput | MfaSMSInitEnrollInput;
706
+ /**
707
+ * Input for verifying SMS MFA.
708
+ */
709
+ export interface MfaSMSInitVerifyInput {
710
+ action: 'verify';
597
711
  }
598
712
  /**
599
- * Authenticator selection criteria for a WebAuthn registration ceremony.
713
+ * The request body for verifying a SMS MFA code.
600
714
  */
601
- export interface PasskeyAuthenticatorSelection {
602
- authenticator_attachment?: string;
603
- require_resident_key?: boolean;
604
- resident_key?: string;
605
- user_verification?: string;
715
+ export interface MfaSMSVerifyRequestBody {
716
+ code: string;
606
717
  }
607
718
  /**
608
- * Extensions for a WebAuthn registration ceremony.
719
+ * The response body for initializing a TOTP MFA code.
609
720
  */
610
- export interface PasskeyEnrollmentExtensions {
611
- app_id?: string;
721
+ export interface MfaTotpInitResponseBody {
722
+ totpAuthUrl: string;
723
+ totpSecret: string;
724
+ }
725
+ /**
726
+ * The input for verifying a TOTP MFA code.
727
+ */
728
+ export interface MfaTotpInput {
729
+ code: string;
730
+ }
731
+ /**
732
+ * The response body for verifying a MFA code.
733
+ */
734
+ export interface MfaVerifyResponseBody {
735
+ token: string;
736
+ }
737
+ /**
738
+ * The request body for authenticating an OAuth account.
739
+ */
740
+ export interface OAuthAuthenticateRequestBody {
741
+ authorization_code: string;
742
+ state_code: string;
612
743
  /**
613
- * The result of the WebAuthn credProps extension.
744
+ * The type of OAuth authorization code.
614
745
  */
615
- cred_props?: PasskeyCredPropsResult;
616
- hmac_create_secret?: boolean;
746
+ code_type?: OAuthCodeType;
747
+ code_verifier?: string;
748
+ /**
749
+ * Whether to allow sign-up during authentication.
750
+ */
751
+ mode?: AuthenticateModeOption;
752
+ }
753
+ /**
754
+ * The request body for getting an OAuth authorization code.
755
+ */
756
+ export interface OAuthAuthorizationCodeRequestBody {
757
+ code_challenge: string;
758
+ redirect_to: string;
759
+ state: string;
760
+ }
761
+ /**
762
+ * The type of OAuth authorization code.
763
+ */
764
+ export type OAuthCodeType = 'raw';
765
+ /**
766
+ * The request body for initiating an OAuth ceremony.
767
+ */
768
+ export interface OAuthInitRequestBody {
769
+ /**
770
+ * The ID of an OAuth provider.
771
+ */
772
+ provider: OAuthProviderID;
773
+ redirect_to: string;
774
+ token?: string;
775
+ code_challenge?: string;
776
+ state_code?: string;
777
+ }
778
+ /**
779
+ * The response for initiating an OAuth ceremony.
780
+ */
781
+ export interface OAuthInitResponseBody {
782
+ url: string;
783
+ }
784
+ /**
785
+ * The request body for linking an OAuth account.
786
+ */
787
+ export interface OAuthLinkRequestBody {
788
+ authorization_code: string;
789
+ state_code: string;
790
+ /**
791
+ * The type of OAuth authorization code.
792
+ */
793
+ code_type?: OAuthCodeType;
794
+ code_verifier?: string;
795
+ }
796
+ /**
797
+ * The response for linking an OAuth account.
798
+ */
799
+ export interface OAuthLinkResponseBody extends UsersAPI.User {
800
+ /**
801
+ * OAuth tokens associated with the user.
802
+ */
803
+ oauth_tokens?: UsersAPI.OAuthTokens;
804
+ }
805
+ /**
806
+ * The ID of an OAuth provider.
807
+ */
808
+ export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID | CustomOAuthProviderID;
809
+ /**
810
+ * The request body for transferring an OAuth account.
811
+ */
812
+ export interface OAuthTransferRequestBody {
813
+ nonce: string;
814
+ /**
815
+ * User info for an OAuth transfer.
816
+ */
817
+ userInfo: OAuthTransferUserInfo;
818
+ }
819
+ /**
820
+ * User info for an OAuth transfer.
821
+ */
822
+ export interface OAuthTransferUserInfo {
823
+ subject: string;
824
+ email?: string | null;
825
+ embeddedWalletAddresses?: Array<string>;
826
+ /**
827
+ * Metadata for an OAuth transfer user info.
828
+ */
829
+ meta?: OAuthTransferUserInfoMeta;
830
+ name?: string;
831
+ profilePictureUrl?: string;
832
+ smartWalletAddresses?: Array<string>;
833
+ username?: string;
834
+ vanityName?: string;
835
+ }
836
+ /**
837
+ * Metadata for an OAuth transfer user info.
838
+ */
839
+ export interface OAuthTransferUserInfoMeta {
840
+ providerAppId?: string;
841
+ }
842
+ /**
843
+ * The request body for unlinking an OAuth account.
844
+ */
845
+ export interface OAuthUnlinkRequestBody {
846
+ /**
847
+ * The ID of an OAuth provider.
848
+ */
849
+ provider: OAuthProviderID;
850
+ subject: string;
851
+ }
852
+ /**
853
+ * The request body for verifying a PRAT.
854
+ */
855
+ export interface OAuthVerifyRequestBody {
856
+ prat: string;
857
+ }
858
+ /**
859
+ * The response body when verifying a PRAT.
860
+ */
861
+ export interface OAuthVerifyResponseBody {
862
+ verified: boolean;
863
+ }
864
+ /**
865
+ * Valid set of onramp providers
866
+ */
867
+ export type OnrampProvider = 'bridge' | 'bridge-sandbox';
868
+ /**
869
+ * The input for refreshing a session or logging out.
870
+ */
871
+ export interface OptionalRefreshTokenInput {
872
+ refresh_token?: string;
873
+ }
874
+ /**
875
+ * The authenticator assertion response from a WebAuthn authentication ceremony.
876
+ */
877
+ export interface PasskeyAssertionResponse {
878
+ authenticator_data: string;
879
+ client_data_json: string;
880
+ signature: string;
881
+ user_handle?: string;
617
882
  }
618
883
  /**
619
884
  * The authenticator attestation response from a WebAuthn registration ceremony.
@@ -624,7 +889,19 @@ export interface PasskeyAttestationResponse {
624
889
  authenticator_data?: string;
625
890
  public_key?: string;
626
891
  public_key_algorithm?: number;
627
- transports?: Array<unknown>;
892
+ transports?: Array<string>;
893
+ }
894
+ /**
895
+ * Input for authenticating with a passkey.
896
+ */
897
+ export interface PasskeyAuthenticateInput {
898
+ /**
899
+ * WebAuthn authentication response as defined by the Web Authentication
900
+ * specification.
901
+ */
902
+ authenticator_response: PasskeyAuthenticatorVerifyResponse;
903
+ challenge: string;
904
+ relying_party?: string;
628
905
  }
629
906
  /**
630
907
  * WebAuthn registration options as defined by the Web Authentication
@@ -672,89 +949,23 @@ export interface PasskeyAuthenticatorEnrollmentResponse {
672
949
  authenticator_attachment?: string;
673
950
  }
674
951
  /**
675
- * Response for initiating a passkey link ceremony.
952
+ * Authenticator selection criteria for a WebAuthn registration ceremony.
676
953
  */
677
- export interface ResponsePasskeyInitLink {
678
- /**
679
- * WebAuthn registration options as defined by the Web Authentication
680
- * specification.
681
- */
682
- options: PasskeyAuthenticatorEnrollmentOptions;
683
- relying_party?: string;
954
+ export interface PasskeyAuthenticatorSelection {
955
+ authenticator_attachment?: string;
956
+ require_resident_key?: boolean;
957
+ resident_key?: string;
958
+ user_verification?: string;
684
959
  }
685
960
  /**
686
- * Response for initiating a passkey registration ceremony.
961
+ * WebAuthn authentication options as defined by the Web Authentication
962
+ * specification.
687
963
  */
688
- export interface ResponsePasskeyInitRegister {
964
+ export interface PasskeyAuthenticatorVerifyOptions {
965
+ challenge: string;
966
+ allow_credentials?: Array<PasskeyCredentialDescriptor>;
689
967
  /**
690
- * WebAuthn registration options as defined by the Web Authentication
691
- * specification.
692
- */
693
- options: PasskeyAuthenticatorEnrollmentOptions;
694
- relying_party?: string;
695
- }
696
- /**
697
- * Input for linking a passkey credential.
698
- */
699
- export interface PasskeyLinkInput {
700
- /**
701
- * WebAuthn registration response as defined by the Web Authentication
702
- * specification.
703
- */
704
- authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
705
- relying_party?: string;
706
- }
707
- /**
708
- * Input for registering a passkey credential.
709
- */
710
- export interface PasskeyRegisterInput {
711
- /**
712
- * WebAuthn registration response as defined by the Web Authentication
713
- * specification.
714
- */
715
- authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
716
- relying_party?: string;
717
- }
718
- /**
719
- * Input for initiating a passkey ceremony.
720
- */
721
- export interface PasskeyInitInput {
722
- token?: string;
723
- relying_party?: string;
724
- }
725
- /**
726
- * Input for unlinking a passkey credential.
727
- */
728
- export interface UnlinkPasskeyInput {
729
- credential_id: string;
730
- remove_as_mfa?: boolean;
731
- }
732
- /**
733
- * Extensions for a WebAuthn authentication ceremony.
734
- */
735
- export interface PasskeyVerifyExtensions {
736
- app_id?: string;
737
- cred_props?: boolean;
738
- hmac_create_secret?: boolean;
739
- }
740
- /**
741
- * The authenticator assertion response from a WebAuthn authentication ceremony.
742
- */
743
- export interface PasskeyAssertionResponse {
744
- authenticator_data: string;
745
- client_data_json: string;
746
- signature: string;
747
- user_handle?: string;
748
- }
749
- /**
750
- * WebAuthn authentication options as defined by the Web Authentication
751
- * specification.
752
- */
753
- export interface PasskeyAuthenticatorVerifyOptions {
754
- challenge: string;
755
- allow_credentials?: Array<PasskeyCredentialDescriptor>;
756
- /**
757
- * Extensions for a WebAuthn authentication ceremony.
968
+ * Extensions for a WebAuthn authentication ceremony.
758
969
  */
759
970
  extensions?: PasskeyVerifyExtensions;
760
971
  rp_id?: string;
@@ -780,426 +991,269 @@ export interface PasskeyAuthenticatorVerifyResponse {
780
991
  authenticator_attachment?: string;
781
992
  }
782
993
  /**
783
- * Response for initiating a passkey authentication ceremony.
784
- */
785
- export interface ResponsePasskeyInitAuthenticate {
786
- /**
787
- * WebAuthn authentication options as defined by the Web Authentication
788
- * specification.
789
- */
790
- options: PasskeyAuthenticatorVerifyOptions;
791
- relying_party?: string;
792
- }
793
- /**
794
- * Input for authenticating with a passkey.
994
+ * Client extension results returned by the WebAuthn authenticator.
795
995
  */
796
- export interface PasskeyAuthenticateInput {
996
+ export interface PasskeyClientExtensionResults {
997
+ app_id?: boolean;
797
998
  /**
798
- * WebAuthn authentication response as defined by the Web Authentication
799
- * specification.
999
+ * The result of the WebAuthn credProps extension.
800
1000
  */
801
- authenticator_response: PasskeyAuthenticatorVerifyResponse;
802
- challenge: string;
803
- relying_party?: string;
1001
+ cred_props?: PasskeyCredPropsResult;
1002
+ hmac_create_secret?: boolean;
804
1003
  }
805
1004
  /**
806
- * The request body for transferring a passwordless account.
1005
+ * The result of the WebAuthn credProps extension.
807
1006
  */
808
- export interface PasswordlessTransferRequestBody {
809
- email: string;
810
- nonce: string;
1007
+ export interface PasskeyCredPropsResult {
1008
+ rk?: boolean;
811
1009
  }
812
1010
  /**
813
- * The request body for transferring a passwordless sms account.
1011
+ * A WebAuthn credential descriptor identifying a specific public key credential.
814
1012
  */
815
- export interface PasswordlessSMSTransferRequestBody {
816
- nonce: string;
817
- phoneNumber: string;
1013
+ export interface PasskeyCredentialDescriptor {
1014
+ id: string;
1015
+ type: string;
1016
+ transports?: Array<string>;
818
1017
  }
819
1018
  /**
820
- * Input for authenticating with a custom JWT.
1019
+ * Extensions for a WebAuthn registration ceremony.
821
1020
  */
822
- export interface AuthenticateJwtInput {
823
- token?: string;
1021
+ export interface PasskeyEnrollmentExtensions {
1022
+ app_id?: string;
824
1023
  /**
825
- * Whether to allow sign-up during authentication.
1024
+ * The result of the WebAuthn credProps extension.
826
1025
  */
827
- mode?: AuthenticateModeOption;
1026
+ cred_props?: PasskeyCredPropsResult;
1027
+ hmac_create_secret?: boolean;
828
1028
  }
829
1029
  /**
830
- * Input for linking a custom JWT account.
1030
+ * Input for initiating a passkey ceremony.
831
1031
  */
832
- export interface LinkJwtInput {
1032
+ export interface PasskeyInitInput {
833
1033
  token?: string;
1034
+ relying_party?: string;
834
1035
  }
835
1036
  /**
836
- * The request input for getting a native onramp provider customer.
837
- */
838
- export interface GetFiatCustomerRequestInput {
839
- /**
840
- * Valid set of onramp providers
841
- */
842
- provider: OnrampProvider;
843
- kyc_redirect_url?: string;
844
- }
845
- /**
846
- * The request input for creating (or updating) a native onramp provider customer.
847
- */
848
- export interface CreateOrUpdateFiatCustomerRequestInput {
849
- has_accepted_terms: boolean;
850
- /**
851
- * Valid set of onramp providers
852
- */
853
- provider: OnrampProvider;
854
- kyc_redirect_url?: string;
855
- }
856
- /**
857
- * A rejection reason for a customer KYC verification.
858
- */
859
- export interface BridgeFiatRejectionReason {
860
- reason: string;
861
- }
862
- /**
863
- * The response for getting a native onramp provider customer.
864
- */
865
- export interface BridgeFiatCustomerResponse {
866
- has_accepted_terms: boolean;
867
- provider: 'bridge';
868
- /**
869
- * Status of the KYC verification process.
870
- */
871
- status: 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
872
- kyc_url?: string;
873
- rejection_reasons?: Array<BridgeFiatRejectionReason>;
874
- }
875
- /**
876
- * The response for getting a native onramp provider customer.
877
- */
878
- export interface BridgeSandboxFiatCustomerResponse {
879
- has_accepted_terms: boolean;
880
- provider: 'bridge-sandbox';
881
- /**
882
- * Status of the KYC verification process.
883
- */
884
- status: 'not_found' | 'active' | 'awaiting_questionnaire' | 'awaiting_ubo' | 'incomplete' | 'not_started' | 'offboarded' | 'paused' | 'rejected' | 'under_review';
885
- kyc_url?: string;
886
- rejection_reasons?: Array<BridgeFiatRejectionReason>;
887
- }
888
- /**
889
- * The response for getting a native onramp provider customer.
890
- */
891
- export type FiatCustomerResponse = BridgeFiatCustomerResponse | BridgeSandboxFiatCustomerResponse;
892
- /**
893
- * ISO 4217 fiat currency code. Three uppercase ASCII letters.
894
- */
895
- export type FiatCurrencyCode = string;
896
- /**
897
- * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
898
- */
899
- export type CryptoCurrencyCode = string;
900
- /**
901
- * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
902
- * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
903
- */
904
- export type Caip2ChainID = string;
905
- /**
906
- * A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
907
- */
908
- export type FiatAmount = string;
909
- /**
910
- * Source currency details for a fiat onramp quote request.
1037
+ * Input for linking a passkey credential.
911
1038
  */
912
- export interface FiatOnrampSource {
913
- /**
914
- * A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
915
- */
916
- amount: FiatAmount;
1039
+ export interface PasskeyLinkInput {
917
1040
  /**
918
- * ISO 4217 fiat currency code. Three uppercase ASCII letters.
1041
+ * WebAuthn registration response as defined by the Web Authentication
1042
+ * specification.
919
1043
  */
920
- asset: FiatCurrencyCode;
1044
+ authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
1045
+ relying_party?: string;
921
1046
  }
922
1047
  /**
923
- * Destination cryptocurrency details for a fiat onramp quote request.
1048
+ * A public key credential parameter specifying the algorithm and credential type.
924
1049
  */
925
- export interface FiatOnrampDestination {
926
- address: string;
927
- /**
928
- * Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
929
- */
930
- asset: CryptoCurrencyCode;
931
- /**
932
- * A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:1" for
933
- * Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
934
- */
935
- chain: Caip2ChainID;
1050
+ export interface PasskeyPubKeyCredParam {
1051
+ alg: number;
1052
+ type: 'public-key';
936
1053
  }
937
1054
  /**
938
- * Whether to use the sandbox or production environment for fiat onramp.
939
- */
940
- export type FiatOnrampEnvironment = 'sandbox' | 'production';
941
- /**
942
- * The fiat onramp provider to use.
943
- */
944
- export type FiatOnrampProvider = 'meld' | 'meld-sandbox' | 'moonpay' | 'moonpay-sandbox' | 'coinbase' | 'coinbase-sandbox';
945
- /**
946
- * The request input for getting fiat onramp quotes.
1055
+ * Input for registering a passkey credential.
947
1056
  */
948
- export interface GetFiatOnrampQuotesInput {
949
- /**
950
- * Destination cryptocurrency details for a fiat onramp quote request.
951
- */
952
- destination: FiatOnrampDestination;
953
- /**
954
- * Whether to use the sandbox or production environment for fiat onramp.
955
- */
956
- environment: FiatOnrampEnvironment;
1057
+ export interface PasskeyRegisterInput {
957
1058
  /**
958
- * Source currency details for a fiat onramp quote request.
1059
+ * WebAuthn registration response as defined by the Web Authentication
1060
+ * specification.
959
1061
  */
960
- source: FiatOnrampSource;
1062
+ authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
1063
+ relying_party?: string;
961
1064
  }
962
1065
  /**
963
- * A single fiat onramp quote from a provider.
1066
+ * Relying party information for a WebAuthn ceremony.
964
1067
  */
965
- export interface FiatOnrampQuote {
966
- payment_method: string;
967
- /**
968
- * The fiat onramp provider to use.
969
- */
970
- provider: FiatOnrampProvider;
971
- destination_currency_code?: string | null;
972
- source_amount?: number | null;
973
- source_currency_code?: string | null;
974
- sub_provider?: string | null;
1068
+ export interface PasskeyRelyingParty {
1069
+ name: string;
1070
+ id?: string;
975
1071
  }
976
1072
  /**
977
- * An error from a specific fiat onramp provider when fetching quotes.
1073
+ * User entity for a WebAuthn registration ceremony.
978
1074
  */
979
- export interface FiatOnrampProviderError {
980
- error: string;
981
- /**
982
- * The fiat onramp provider to use.
983
- */
984
- provider: FiatOnrampProvider;
1075
+ export interface PasskeyUser {
1076
+ id: string;
1077
+ display_name: string;
1078
+ name: string;
985
1079
  }
986
1080
  /**
987
- * The response containing fiat onramp quotes.
1081
+ * Extensions for a WebAuthn authentication ceremony.
988
1082
  */
989
- export interface GetFiatOnrampQuotesResponse {
990
- quotes: Array<FiatOnrampQuote>;
991
- provider_errors?: Array<FiatOnrampProviderError>;
1083
+ export interface PasskeyVerifyExtensions {
1084
+ app_id?: string;
1085
+ cred_props?: boolean;
1086
+ hmac_create_secret?: boolean;
992
1087
  }
993
1088
  /**
994
- * The request input for getting a fiat onramp provider session URL.
1089
+ * The request body for authenticating a passwordless account.
995
1090
  */
996
- export interface GetFiatOnrampURLInput {
997
- /**
998
- * Destination cryptocurrency details for a fiat onramp quote request.
999
- */
1000
- destination: FiatOnrampDestination;
1001
- payment_method: string;
1002
- /**
1003
- * The fiat onramp provider to use.
1004
- */
1005
- provider: FiatOnrampProvider;
1091
+ export interface PasswordlessAuthenticateRequestBody {
1092
+ code: string;
1093
+ email: string;
1006
1094
  /**
1007
- * Source currency details for a fiat onramp quote request.
1095
+ * Whether to allow sign-up during authentication.
1008
1096
  */
1009
- source: FiatOnrampSource;
1010
- redirect_url?: string;
1011
- sub_provider?: string;
1097
+ mode?: AuthenticateModeOption;
1012
1098
  }
1013
1099
  /**
1014
- * The response containing a fiat onramp provider session URL.
1100
+ * The request body for initiating a passwordless ceremony.
1015
1101
  */
1016
- export interface GetFiatOnrampURLResponse {
1017
- session_id: string;
1018
- url: string;
1102
+ export interface PasswordlessInitRequestBody {
1103
+ email: string;
1104
+ token?: string;
1019
1105
  }
1020
1106
  /**
1021
- * Normalized fiat onramp transaction status.
1022
- */
1023
- export type FiatOnrampTransactionStatus = 'pending' | 'processing' | 'completed' | 'failed' | 'cancelled' | 'refunded' | 'unknown';
1024
- /**
1025
- * The request input for checking a fiat onramp session status.
1107
+ * The request body for linking a passwordless account.
1026
1108
  */
1027
- export interface GetFiatOnrampTransactionStatusInput {
1028
- /**
1029
- * The fiat onramp provider to use.
1030
- */
1031
- provider: FiatOnrampProvider;
1032
- session_id: string;
1109
+ export interface PasswordlessLinkRequestBody {
1110
+ code: string;
1111
+ email: string;
1033
1112
  }
1034
1113
  /**
1035
- * The response containing the fiat onramp session status.
1114
+ * The request body for authenticating a passwordless sms account.
1036
1115
  */
1037
- export interface GetFiatOnrampTransactionStatusResponse {
1038
- raw_status: string;
1039
- session_id: string;
1116
+ export interface PasswordlessSMSAuthenticateRequestBody {
1117
+ code: string;
1118
+ phoneNumber: string;
1040
1119
  /**
1041
- * Normalized fiat onramp transaction status.
1120
+ * Whether to allow sign-up during authentication.
1042
1121
  */
1043
- status: FiatOnrampTransactionStatus;
1044
- transaction_id?: string;
1045
- }
1046
- export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc';
1047
- export type BridgeSourceAsset = 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
1048
- export interface BridgeFiatVirtualAccountSource {
1049
- asset: BridgeSourceAsset;
1050
- }
1051
- export interface BridgeFiatVirtualAccountDestination {
1052
- address: string;
1053
- asset: BridgeDestinationAsset;
1054
- chain: string;
1122
+ mode?: AuthenticateModeOption;
1055
1123
  }
1056
1124
  /**
1057
- * The request input for creating virtual account.
1125
+ * The request body for initiating a passwordless sms ceremony.
1058
1126
  */
1059
- export interface BridgeFiatVirtualAccountRequest {
1060
- destination: BridgeFiatVirtualAccountDestination;
1061
- provider: 'bridge';
1062
- source: BridgeFiatVirtualAccountSource;
1127
+ export interface PasswordlessSMSInitRequestBody {
1128
+ phoneNumber: string;
1129
+ token?: string;
1063
1130
  }
1064
1131
  /**
1065
- * The request input for creating virtual account.
1132
+ * The request body for linking a passwordless sms account.
1066
1133
  */
1067
- export interface BridgeSandboxFiatVirtualAccountRequest {
1068
- destination: BridgeFiatVirtualAccountDestination;
1069
- provider: 'bridge-sandbox';
1070
- source: BridgeFiatVirtualAccountSource;
1134
+ export interface PasswordlessSMSLinkRequestBody {
1135
+ code: string;
1136
+ phoneNumber: string;
1071
1137
  }
1072
1138
  /**
1073
- * The request input for creating virtual account.
1139
+ * The request body for transferring a passwordless sms account.
1074
1140
  */
1075
- export type FiatVirtualAccountRequest = BridgeFiatVirtualAccountRequest | BridgeSandboxFiatVirtualAccountRequest;
1141
+ export interface PasswordlessSMSTransferRequestBody {
1142
+ nonce: string;
1143
+ phoneNumber: string;
1144
+ }
1076
1145
  /**
1077
- * The deposit instructions for a virtual account.
1146
+ * The request body for unlinking a passwordless sms account.
1078
1147
  */
1079
- export interface BridgeUsdFiatVirtualAccountDepositInstructions {
1080
- asset: 'usd';
1081
- bank_account_number: string;
1082
- bank_address: string;
1083
- bank_beneficiary_address: string;
1084
- bank_beneficiary_name: string;
1085
- bank_name: string;
1086
- bank_routing_number: string;
1087
- payment_rails: Array<'ach_push' | 'wire'>;
1148
+ export interface PasswordlessSMSUnlinkRequestBody {
1149
+ phoneNumber: string;
1088
1150
  }
1089
1151
  /**
1090
- * The deposit instructions for a virtual account.
1152
+ * The request body for updating a passwordless sms account.
1091
1153
  */
1092
- export interface BridgeEurFiatVirtualAccountDepositInstructions {
1093
- account_holder_name: string;
1094
- asset: 'eur';
1095
- bank_address: string;
1096
- bank_name: string;
1097
- bic: string;
1098
- iban: string;
1099
- payment_rails: Array<'sepa'>;
1154
+ export interface PasswordlessSMSUpdateRequestBody {
1155
+ code: string;
1156
+ new_phone_number: string;
1157
+ old_phone_number: string;
1100
1158
  }
1101
1159
  /**
1102
- * The deposit instructions for a virtual account.
1160
+ * The request body for transferring a passwordless account.
1103
1161
  */
1104
- export interface BridgeMxnFiatVirtualAccountDepositInstructions {
1105
- account_holder_name: string;
1106
- asset: 'mxn';
1107
- bank_address: string;
1108
- bank_name: string;
1109
- clabe: string;
1110
- payment_rails: Array<'spei'>;
1162
+ export interface PasswordlessTransferRequestBody {
1163
+ email: string;
1164
+ nonce: string;
1111
1165
  }
1112
1166
  /**
1113
- * The deposit instructions for a virtual account.
1167
+ * The request body for unlinking a passwordless account.
1114
1168
  */
1115
- export interface BridgeBrlFiatVirtualAccountDepositInstructions {
1116
- account_holder_name: string;
1117
- asset: 'brl';
1118
- bank_address: string;
1119
- bank_name: string;
1120
- br_code: string;
1121
- payment_rails: Array<'pix'>;
1169
+ export interface PasswordlessUnlinkRequestBody {
1170
+ address: string;
1122
1171
  }
1123
1172
  /**
1124
- * The deposit instructions for a virtual account.
1173
+ * The request body for updating a passwordless account.
1125
1174
  */
1126
- export interface BridgeGbpFiatVirtualAccountDepositInstructions {
1127
- account_holder_name: string;
1128
- account_number: string;
1129
- asset: 'gbp';
1130
- bank_address: string;
1131
- bank_name: string;
1132
- payment_rails: Array<'faster_payments'>;
1133
- sort_code: string;
1175
+ export interface PasswordlessUpdateRequestBody {
1176
+ code: string;
1177
+ newAddress: string;
1178
+ oldAddress: string;
1134
1179
  }
1135
1180
  /**
1136
- * The deposit instructions for a virtual account.
1181
+ * The ID of a Privy app as an OAuth provider. Must start with "privy:".
1137
1182
  */
1138
- export type BridgeFiatVirtualAccountDepositInstructions = BridgeUsdFiatVirtualAccountDepositInstructions | BridgeEurFiatVirtualAccountDepositInstructions | BridgeMxnFiatVirtualAccountDepositInstructions | BridgeBrlFiatVirtualAccountDepositInstructions | BridgeGbpFiatVirtualAccountDepositInstructions;
1183
+ export type PrivyOAuthProviderID = `privy:${string}`;
1139
1184
  /**
1140
- * The response for creating virtual account.
1185
+ * Response for initiating a passkey authentication ceremony.
1141
1186
  */
1142
- export interface BridgeFiatVirtualAccountResponse {
1187
+ export interface ResponsePasskeyInitAuthenticate {
1143
1188
  /**
1144
- * The deposit instructions for a virtual account.
1189
+ * WebAuthn authentication options as defined by the Web Authentication
1190
+ * specification.
1145
1191
  */
1146
- deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
1147
- destination: BridgeFiatVirtualAccountDestination;
1148
- provider: 'bridge';
1149
- status: string;
1192
+ options: PasskeyAuthenticatorVerifyOptions;
1193
+ relying_party?: string;
1150
1194
  }
1151
1195
  /**
1152
- * The response for creating virtual account.
1196
+ * Response for initiating a passkey link ceremony.
1153
1197
  */
1154
- export interface BridgeSandboxFiatVirtualAccountResponse {
1198
+ export interface ResponsePasskeyInitLink {
1155
1199
  /**
1156
- * The deposit instructions for a virtual account.
1200
+ * WebAuthn registration options as defined by the Web Authentication
1201
+ * specification.
1157
1202
  */
1158
- deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
1159
- destination: BridgeFiatVirtualAccountDestination;
1160
- provider: 'bridge-sandbox';
1161
- status: string;
1203
+ options: PasskeyAuthenticatorEnrollmentOptions;
1204
+ relying_party?: string;
1162
1205
  }
1163
1206
  /**
1164
- * The response for creating virtual account.
1165
- */
1166
- export type FiatVirtualAccountResponse = BridgeFiatVirtualAccountResponse | BridgeSandboxFiatVirtualAccountResponse;
1167
- /**
1168
- * The type of OAuth authorization code.
1207
+ * Response for initiating a passkey registration ceremony.
1169
1208
  */
1170
- export type OAuthCodeType = 'raw';
1209
+ export interface ResponsePasskeyInitRegister {
1210
+ /**
1211
+ * WebAuthn registration options as defined by the Web Authentication
1212
+ * specification.
1213
+ */
1214
+ options: PasskeyAuthenticatorEnrollmentOptions;
1215
+ relying_party?: string;
1216
+ }
1171
1217
  /**
1172
- * Metadata for an OAuth transfer user info.
1218
+ * Input containing a SIWE wallet address.
1173
1219
  */
1174
- export interface OAuthTransferUserInfoMeta {
1175
- providerAppId?: string;
1220
+ export interface SiweAddressInput {
1221
+ address: string;
1176
1222
  }
1177
1223
  /**
1178
- * User info for an OAuth transfer.
1224
+ * The request body for authenticating a SIWE ceremony.
1179
1225
  */
1180
- export interface OAuthTransferUserInfo {
1181
- subject: string;
1182
- email?: string | null;
1183
- embeddedWalletAddresses?: Array<string>;
1226
+ export interface SiweAuthenticateRequestBody {
1227
+ message: string;
1228
+ signature: string;
1229
+ chainId?: string | null;
1230
+ connectorType?: string | null;
1184
1231
  /**
1185
- * Metadata for an OAuth transfer user info.
1232
+ * Whether to allow sign-up during authentication.
1186
1233
  */
1187
- meta?: OAuthTransferUserInfoMeta;
1188
- name?: string;
1189
- profilePictureUrl?: string;
1190
- smartWalletAddresses?: Array<string>;
1191
- username?: string;
1192
- vanityName?: string;
1234
+ mode?: AuthenticateModeOption;
1235
+ walletClientType?: string | null;
1193
1236
  }
1194
1237
  /**
1195
- * The request body for transferring an OAuth account.
1238
+ * Input for initiating a SIWE ceremony.
1196
1239
  */
1197
- export interface OAuthTransferRequestBody {
1240
+ export interface SiweInitInput {
1241
+ token?: string;
1242
+ address?: string;
1243
+ }
1244
+ /**
1245
+ * The request body for initiating a SIWE ceremony.
1246
+ */
1247
+ export interface SiweInitRequestBody {
1248
+ address: string;
1249
+ }
1250
+ /**
1251
+ * The response body for initiating a SIWE ceremony.
1252
+ */
1253
+ export interface SiweInitResponseBody {
1254
+ address: string;
1255
+ expires_at: string;
1198
1256
  nonce: string;
1199
- /**
1200
- * User info for an OAuth transfer.
1201
- */
1202
- userInfo: OAuthTransferUserInfo;
1203
1257
  }
1204
1258
  /**
1205
1259
  * Input for a SIWE signing ceremony.
@@ -1212,9 +1266,19 @@ export interface SiweInput {
1212
1266
  walletClientType?: string | null;
1213
1267
  }
1214
1268
  /**
1215
- * Input for a smart wallet SIWE signing ceremony.
1269
+ * The request body for linking a SIWE ceremony.
1216
1270
  */
1217
- export interface SmartWalletSiweInput {
1271
+ export interface SiweLinkRequestBody {
1272
+ message: string;
1273
+ signature: string;
1274
+ chainId?: string | null;
1275
+ connectorType?: string | null;
1276
+ walletClientType?: string | null;
1277
+ }
1278
+ /**
1279
+ * The request body for linking a SIWE ceremony to a smart wallet.
1280
+ */
1281
+ export interface SiweLinkSmartWalletRequestBody {
1218
1282
  message: string;
1219
1283
  signature: string;
1220
1284
  /**
@@ -1224,13 +1288,33 @@ export interface SmartWalletSiweInput {
1224
1288
  smart_wallet_version?: string;
1225
1289
  }
1226
1290
  /**
1227
- * Input for authenticating a SIWE ceremony.
1291
+ * A SIWE nonce response.
1228
1292
  */
1229
- export interface AuthenticateSiweInput {
1293
+ export interface SiweNonce {
1294
+ address: string;
1295
+ expires_at: string;
1296
+ nonce: string;
1297
+ }
1298
+ /**
1299
+ * The request body for unlinking a SIWE ceremony.
1300
+ */
1301
+ export interface SiweUnlinkRequestBody {
1302
+ address: string;
1303
+ }
1304
+ /**
1305
+ * Input containing a SIWS wallet address.
1306
+ */
1307
+ export interface SiwsAddressInput {
1308
+ address: string;
1309
+ }
1310
+ /**
1311
+ * The request body for authenticating a SIWS ceremony.
1312
+ */
1313
+ export interface SiwsAuthenticateRequestBody {
1230
1314
  message: string;
1231
1315
  signature: string;
1232
- chainId?: string | null;
1233
1316
  connectorType?: string | null;
1317
+ message_type?: 'transaction' | 'plain';
1234
1318
  /**
1235
1319
  * Whether to allow sign-up during authentication.
1236
1320
  */
@@ -1238,35 +1322,25 @@ export interface AuthenticateSiweInput {
1238
1322
  walletClientType?: string | null;
1239
1323
  }
1240
1324
  /**
1241
- * Input containing a SIWE wallet address.
1325
+ * Input for initiating a SIWS ceremony.
1242
1326
  */
1243
- export interface SiweAddressInput {
1327
+ export interface SiwsInitInput {
1244
1328
  address: string;
1245
- }
1246
- /**
1247
- * Input for initiating a SIWE ceremony.
1248
- */
1249
- export interface SiweInitInput {
1250
1329
  token?: string;
1251
- address?: string;
1252
1330
  }
1253
1331
  /**
1254
- * A SIWE nonce response.
1332
+ * The request body for initiating a SIWS ceremony.
1255
1333
  */
1256
- export interface SiweNonce {
1334
+ export interface SiwsInitRequestBody {
1257
1335
  address: string;
1258
- expires_at: string;
1259
- nonce: string;
1260
1336
  }
1261
1337
  /**
1262
- * Input for transferring a SIWE account.
1338
+ * The response body for initiating a SIWS ceremony.
1263
1339
  */
1264
- export interface TransferSiweInput {
1340
+ export interface SiwsInitResponseBody {
1265
1341
  address: string;
1342
+ expires_at: string;
1266
1343
  nonce: string;
1267
- chainId?: string | null;
1268
- connectorType?: string | null;
1269
- walletClientType?: string | null;
1270
1344
  }
1271
1345
  /**
1272
1346
  * Input for a SIWS signing ceremony.
@@ -1279,32 +1353,15 @@ export interface SiwsInput {
1279
1353
  walletClientType?: string | null;
1280
1354
  }
1281
1355
  /**
1282
- * Input for authenticating a SIWS ceremony.
1356
+ * The request body for linking a SIWS ceremony.
1283
1357
  */
1284
- export interface AuthenticateSiwsInput {
1358
+ export interface SiwsLinkRequestBody {
1285
1359
  message: string;
1286
1360
  signature: string;
1287
1361
  connectorType?: string | null;
1288
1362
  message_type?: 'transaction' | 'plain';
1289
- /**
1290
- * Whether to allow sign-up during authentication.
1291
- */
1292
- mode?: AuthenticateModeOption;
1293
1363
  walletClientType?: string | null;
1294
1364
  }
1295
- /**
1296
- * Input containing a SIWS wallet address.
1297
- */
1298
- export interface SiwsAddressInput {
1299
- address: string;
1300
- }
1301
- /**
1302
- * Input for initiating a SIWS ceremony.
1303
- */
1304
- export interface SiwsInitInput {
1305
- address: string;
1306
- token?: string;
1307
- }
1308
1365
  /**
1309
1366
  * A SIWS nonce response.
1310
1367
  */
@@ -1314,13 +1371,22 @@ export interface SiwsNonce {
1314
1371
  nonce: string;
1315
1372
  }
1316
1373
  /**
1317
- * Input for transferring a SIWS account.
1374
+ * The request body for unlinking a SIWS ceremony.
1318
1375
  */
1319
- export interface TransferSiwsInput {
1376
+ export interface SiwsUnlinkRequestBody {
1320
1377
  address: string;
1321
- nonce: string;
1322
- connectorType?: string | null;
1323
- walletClientType?: string | null;
1378
+ }
1379
+ /**
1380
+ * Input for a smart wallet SIWE signing ceremony.
1381
+ */
1382
+ export interface SmartWalletSiweInput {
1383
+ message: string;
1384
+ signature: string;
1385
+ /**
1386
+ * The supported smart wallet providers.
1387
+ */
1388
+ smart_wallet_type: EmbeddedWalletsAPI.SmartWalletType;
1389
+ smart_wallet_version?: string;
1324
1390
  }
1325
1391
  /**
1326
1392
  * Auth result object returned by Telegram when a user authenticates using the
@@ -1335,20 +1401,6 @@ export interface TelegramAuthResult {
1335
1401
  photo_url?: string;
1336
1402
  username?: string;
1337
1403
  }
1338
- /**
1339
- * Auth result object returned by Telegram when a user authenticates using a mini
1340
- * app.
1341
- */
1342
- export interface TelegramWebAppData {
1343
- auth_date: number | null;
1344
- hash: string;
1345
- user: string;
1346
- chat_instance?: string;
1347
- chat_type?: string;
1348
- query_id?: string;
1349
- signature?: string;
1350
- start_param?: string;
1351
- }
1352
1404
  /**
1353
1405
  * Input for authenticating with Telegram.
1354
1406
  */
@@ -1370,16 +1422,14 @@ export interface TelegramAuthenticateInput {
1370
1422
  telegram_web_app_data?: TelegramWebAppData;
1371
1423
  }
1372
1424
  /**
1373
- * Input for unlinking a Telegram account.
1374
- */
1375
- export interface TelegramUnlinkInput {
1376
- telegram_user_id: string;
1377
- }
1378
- /**
1379
- * Input for transferring a Telegram account.
1425
+ * The request body for authenticating with Telegram.
1380
1426
  */
1381
- export interface TransferTelegramInput {
1382
- nonce: string;
1427
+ export interface TelegramAuthenticateRequestBody {
1428
+ captcha_token?: string;
1429
+ /**
1430
+ * Whether to allow sign-up during authentication.
1431
+ */
1432
+ mode?: AuthenticateModeOption;
1383
1433
  /**
1384
1434
  * Auth result object returned by Telegram when a user authenticates using the
1385
1435
  * login widget.
@@ -1392,68 +1442,50 @@ export interface TransferTelegramInput {
1392
1442
  telegram_web_app_data?: TelegramWebAppData;
1393
1443
  }
1394
1444
  /**
1395
- * Proxy for the Farcaster Connect init response as defined in FIP-11.
1396
- */
1397
- export interface FarcasterConnectInitResponse {
1398
- channel_token: string;
1399
- connect_uri: string;
1400
- }
1401
- /**
1402
- * Proxy for the Farcaster Connect completed status response as defined in FIP-11.
1403
- */
1404
- export interface FarcasterConnectStatusCompletedResponse {
1405
- bio: string;
1406
- display_name: string;
1407
- fid: number;
1408
- message: string;
1409
- nonce: string;
1410
- pfp_url: string;
1411
- signature: string;
1412
- state: 'completed';
1413
- username: string;
1414
- }
1415
- /**
1416
- * Proxy for the Farcaster Connect pending status response as defined in FIP-11.
1417
- */
1418
- export interface FarcasterConnectStatusPendingResponse {
1419
- nonce: string;
1420
- state: 'pending';
1421
- }
1422
- /**
1423
- * Input for authenticating with Farcaster.
1445
+ * The request body for linking a Telegram account.
1424
1446
  */
1425
- export interface FarcasterAuthenticateInput {
1426
- channel_token: string;
1427
- fid: number;
1428
- message: string;
1429
- signature: string;
1447
+ export interface TelegramLinkRequestBody {
1448
+ captcha_token?: string;
1430
1449
  /**
1431
1450
  * Whether to allow sign-up during authentication.
1432
1451
  */
1433
1452
  mode?: AuthenticateModeOption;
1453
+ /**
1454
+ * Auth result object returned by Telegram when a user authenticates using the
1455
+ * login widget.
1456
+ */
1457
+ telegram_auth_result?: TelegramAuthResult;
1458
+ /**
1459
+ * Auth result object returned by Telegram when a user authenticates using a mini
1460
+ * app.
1461
+ */
1462
+ telegram_web_app_data?: TelegramWebAppData;
1434
1463
  }
1435
1464
  /**
1436
- * Input for linking a Farcaster account.
1465
+ * Input for unlinking a Telegram account.
1437
1466
  */
1438
- export interface FarcasterLinkInput {
1439
- channel_token: string;
1440
- fid: number;
1441
- message: string;
1442
- signature: string;
1467
+ export interface TelegramUnlinkInput {
1468
+ telegram_user_id: string;
1443
1469
  }
1444
1470
  /**
1445
- * Input for initiating a Farcaster connection.
1471
+ * The request body for unlinking a Telegram account.
1446
1472
  */
1447
- export interface FarcasterInitInput {
1448
- token?: string;
1449
- redirect_url?: string;
1450
- relying_party?: string;
1473
+ export interface TelegramUnlinkRequestBody {
1474
+ telegram_user_id: string;
1451
1475
  }
1452
1476
  /**
1453
- * Input for unlinking a Farcaster account.
1477
+ * Auth result object returned by Telegram when a user authenticates using a mini
1478
+ * app.
1454
1479
  */
1455
- export interface FarcasterUnlinkInput {
1456
- fid: number;
1480
+ export interface TelegramWebAppData {
1481
+ auth_date: number | null;
1482
+ hash: string;
1483
+ user: string;
1484
+ chat_instance?: string;
1485
+ chat_type?: string;
1486
+ query_id?: string;
1487
+ signature?: string;
1488
+ start_param?: string;
1457
1489
  }
1458
1490
  /**
1459
1491
  * Input for transferring a Farcaster account.
@@ -1464,96 +1496,48 @@ export interface TransferFarcasterInput {
1464
1496
  nonce: string;
1465
1497
  }
1466
1498
  /**
1467
- * Input for initiating a Farcaster V2 connection.
1468
- */
1469
- export type FarcasterV2InitInput = unknown;
1470
- /**
1471
- * Response for initiating a Farcaster V2 connection.
1499
+ * Input for transferring a SIWE account.
1472
1500
  */
1473
- export interface FarcasterV2InitResponse {
1474
- expires_at: string;
1501
+ export interface TransferSiweInput {
1502
+ address: string;
1475
1503
  nonce: string;
1504
+ chainId?: string | null;
1505
+ connectorType?: string | null;
1506
+ walletClientType?: string | null;
1476
1507
  }
1477
1508
  /**
1478
- * Input for authenticating a Farcaster V2 account.
1479
- */
1480
- export interface FarcasterV2AuthenticateInput {
1481
- fid: number;
1482
- message: string;
1483
- signature: string;
1484
- /**
1485
- * Whether to allow sign-up during authentication.
1486
- */
1487
- mode?: AuthenticateModeOption;
1488
- }
1489
- /**
1490
- * The request body for initiating a Farcaster V2 connection.
1491
- */
1492
- export type FarcasterV2InitRequestBody = unknown;
1493
- /**
1494
- * The response body for initiating a Farcaster V2 connection.
1509
+ * Input for transferring a SIWS account.
1495
1510
  */
1496
- export interface FarcasterV2InitResponseBody {
1497
- expires_at: string;
1511
+ export interface TransferSiwsInput {
1512
+ address: string;
1498
1513
  nonce: string;
1514
+ connectorType?: string | null;
1515
+ walletClientType?: string | null;
1499
1516
  }
1500
1517
  /**
1501
- * The request body for authenticating a Farcaster V2 account.
1518
+ * Input for transferring a Telegram account.
1502
1519
  */
1503
- export interface FarcasterV2AuthenticateRequestBody {
1504
- fid: number;
1505
- message: string;
1506
- signature: string;
1520
+ export interface TransferTelegramInput {
1521
+ nonce: string;
1507
1522
  /**
1508
- * Whether to allow sign-up during authentication.
1523
+ * Auth result object returned by Telegram when a user authenticates using the
1524
+ * login widget.
1509
1525
  */
1510
- mode?: AuthenticateModeOption;
1511
- }
1512
- /**
1513
- * A Farcaster signer init response when the signer is pending approval.
1514
- */
1515
- export interface FarcasterSignerInitPendingApproval {
1516
- public_key: string;
1517
- signer_approval_url: string;
1518
- status: 'pending_approval';
1519
- }
1520
- /**
1521
- * A Farcaster signer response when the signer has been approved.
1522
- */
1523
- export interface FarcasterSignerApproved {
1524
- fid: string;
1525
- public_key: string;
1526
- status: 'approved';
1527
- }
1528
- /**
1529
- * A Farcaster signer response when the signer has been revoked.
1530
- */
1531
- export interface FarcasterSignerRevoked {
1532
- fid: string;
1533
- public_key: string;
1534
- status: 'revoked';
1535
- }
1536
- /**
1537
- * A Farcaster signer status response when the signer is pending approval.
1538
- */
1539
- export interface FarcasterSignerStatusPendingApproval {
1540
- public_key: string;
1541
- status: 'pending_approval';
1542
- }
1543
- /**
1544
- * Input for verifying SMS MFA.
1545
- */
1546
- export interface MfaSMSInitVerifyInput {
1547
- action: 'verify';
1526
+ telegram_auth_result?: TelegramAuthResult;
1527
+ /**
1528
+ * Auth result object returned by Telegram when a user authenticates using a mini
1529
+ * app.
1530
+ */
1531
+ telegram_web_app_data?: TelegramWebAppData;
1548
1532
  }
1549
1533
  /**
1550
- * Input for enrolling SMS MFA.
1534
+ * Input for unlinking a passkey credential.
1551
1535
  */
1552
- export interface MfaSMSInitEnrollInput {
1553
- action: 'enroll';
1554
- phoneNumber: string;
1536
+ export interface UnlinkPasskeyInput {
1537
+ credential_id: string;
1538
+ remove_as_mfa?: boolean;
1555
1539
  }
1556
1540
  export declare namespace ClientAuth {
1557
- export { type CustomJwtAuthenticateRequestBody as CustomJwtAuthenticateRequestBody, type CustomJwtLinkRequestBody as CustomJwtLinkRequestBody, type FarcasterAuthenticateRequestBody as FarcasterAuthenticateRequestBody, type FarcasterConnectInitResponseBody as FarcasterConnectInitResponseBody, type FarcasterConnectStatusCompletedResponseBody as FarcasterConnectStatusCompletedResponseBody, type FarcasterConnectStatusPendingResponseBody as FarcasterConnectStatusPendingResponseBody, type FarcasterInitRequestBody as FarcasterInitRequestBody, type FarcasterLinkRequestBody as FarcasterLinkRequestBody, type FarcasterSignerInitRequestBody as FarcasterSignerInitRequestBody, type FarcasterSignerInitResponseBody as FarcasterSignerInitResponseBody, type FarcasterSignerStatusResponseBody as FarcasterSignerStatusResponseBody, type FarcasterUnlinkRequestBody as FarcasterUnlinkRequestBody, type FarcasterV2AuthenticateRequestBody as FarcasterV2AuthenticateRequestBody, type FarcasterV2InitResponseBody as FarcasterV2InitResponseBody, type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody, type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody, type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody, type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody, type MfaPasskeyVerifyRequestBody as MfaPasskeyVerifyRequestBody, type MfaSMSEnrollRequestBody as MfaSMSEnrollRequestBody, type MfaSMSInitRequestBody as MfaSMSInitRequestBody, type MfaSMSVerifyRequestBody as MfaSMSVerifyRequestBody, type MfaTotpInitResponseBody as MfaTotpInitResponseBody, type MfaTotpInput as MfaTotpInput, type MfaVerifyResponseBody as MfaVerifyResponseBody, type OAuthAuthenticateRequestBody as OAuthAuthenticateRequestBody, type OAuthAuthorizationCodeRequestBody as OAuthAuthorizationCodeRequestBody, type OAuthInitRequestBody as OAuthInitRequestBody, type OAuthInitResponseBody as OAuthInitResponseBody, type OAuthLinkRequestBody as OAuthLinkRequestBody, type OAuthLinkResponseBody as OAuthLinkResponseBody, type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody, type OAuthVerifyRequestBody as OAuthVerifyRequestBody, type OAuthVerifyResponseBody as OAuthVerifyResponseBody, type OptionalRefreshTokenInput as OptionalRefreshTokenInput, type PasswordlessAuthenticateRequestBody as PasswordlessAuthenticateRequestBody, type PasswordlessInitRequestBody as PasswordlessInitRequestBody, type PasswordlessLinkRequestBody as PasswordlessLinkRequestBody, type PasswordlessSMSAuthenticateRequestBody as PasswordlessSMSAuthenticateRequestBody, type PasswordlessSMSInitRequestBody as PasswordlessSMSInitRequestBody, type PasswordlessSMSLinkRequestBody as PasswordlessSMSLinkRequestBody, type PasswordlessSMSUnlinkRequestBody as PasswordlessSMSUnlinkRequestBody, type PasswordlessSMSUpdateRequestBody as PasswordlessSMSUpdateRequestBody, type PasswordlessUnlinkRequestBody as PasswordlessUnlinkRequestBody, type PasswordlessUpdateRequestBody as PasswordlessUpdateRequestBody, type SiweAuthenticateRequestBody as SiweAuthenticateRequestBody, type SiweInitRequestBody as SiweInitRequestBody, type SiweInitResponseBody as SiweInitResponseBody, type SiweLinkRequestBody as SiweLinkRequestBody, type SiweLinkSmartWalletRequestBody as SiweLinkSmartWalletRequestBody, type SiweUnlinkRequestBody as SiweUnlinkRequestBody, type SiwsAuthenticateRequestBody as SiwsAuthenticateRequestBody, type SiwsInitRequestBody as SiwsInitRequestBody, type SiwsInitResponseBody as SiwsInitResponseBody, type SiwsLinkRequestBody as SiwsLinkRequestBody, type SiwsUnlinkRequestBody as SiwsUnlinkRequestBody, type TelegramAuthenticateRequestBody as TelegramAuthenticateRequestBody, type TelegramLinkRequestBody as TelegramLinkRequestBody, type TelegramUnlinkRequestBody as TelegramUnlinkRequestBody, type AuthenticateModeOption as AuthenticateModeOption, type AuthenticateMode as AuthenticateMode, type ExternalOAuthProviderID as ExternalOAuthProviderID, type PrivyOAuthProviderID as PrivyOAuthProviderID, type CustomOAuthProviderID as CustomOAuthProviderID, type OAuthProviderID as OAuthProviderID, type BridgeOnrampProvider as BridgeOnrampProvider, type OnrampProvider as OnrampProvider, type PasskeyCredPropsResult as PasskeyCredPropsResult, type PasskeyClientExtensionResults as PasskeyClientExtensionResults, type PasskeyCredentialDescriptor as PasskeyCredentialDescriptor, type PasskeyRelyingParty as PasskeyRelyingParty, type PasskeyUser as PasskeyUser, type PasskeyPubKeyCredParam as PasskeyPubKeyCredParam, type PasskeyAuthenticatorSelection as PasskeyAuthenticatorSelection, type PasskeyEnrollmentExtensions as PasskeyEnrollmentExtensions, type PasskeyAttestationResponse as PasskeyAttestationResponse, type PasskeyAuthenticatorEnrollmentOptions as PasskeyAuthenticatorEnrollmentOptions, type PasskeyAuthenticatorEnrollmentResponse as PasskeyAuthenticatorEnrollmentResponse, type ResponsePasskeyInitLink as ResponsePasskeyInitLink, type ResponsePasskeyInitRegister as ResponsePasskeyInitRegister, type PasskeyLinkInput as PasskeyLinkInput, type PasskeyRegisterInput as PasskeyRegisterInput, type PasskeyInitInput as PasskeyInitInput, type UnlinkPasskeyInput as UnlinkPasskeyInput, type PasskeyVerifyExtensions as PasskeyVerifyExtensions, type PasskeyAssertionResponse as PasskeyAssertionResponse, type PasskeyAuthenticatorVerifyOptions as PasskeyAuthenticatorVerifyOptions, type PasskeyAuthenticatorVerifyResponse as PasskeyAuthenticatorVerifyResponse, type ResponsePasskeyInitAuthenticate as ResponsePasskeyInitAuthenticate, type PasskeyAuthenticateInput as PasskeyAuthenticateInput, type PasswordlessTransferRequestBody as PasswordlessTransferRequestBody, type PasswordlessSMSTransferRequestBody as PasswordlessSMSTransferRequestBody, type AuthenticateJwtInput as AuthenticateJwtInput, type LinkJwtInput as LinkJwtInput, type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type FiatCustomerResponse as FiatCustomerResponse, type FiatCurrencyCode as FiatCurrencyCode, type CryptoCurrencyCode as CryptoCurrencyCode, type Caip2ChainID as Caip2ChainID, type FiatAmount as FiatAmount, type FiatOnrampSource as FiatOnrampSource, type FiatOnrampDestination as FiatOnrampDestination, type FiatOnrampEnvironment as FiatOnrampEnvironment, type FiatOnrampProvider as FiatOnrampProvider, type GetFiatOnrampQuotesInput as GetFiatOnrampQuotesInput, type FiatOnrampQuote as FiatOnrampQuote, type FiatOnrampProviderError as FiatOnrampProviderError, type GetFiatOnrampQuotesResponse as GetFiatOnrampQuotesResponse, type GetFiatOnrampURLInput as GetFiatOnrampURLInput, type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse, type FiatOnrampTransactionStatus as FiatOnrampTransactionStatus, type GetFiatOnrampTransactionStatusInput as GetFiatOnrampTransactionStatusInput, type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse, type BridgeDestinationAsset as BridgeDestinationAsset, type BridgeSourceAsset as BridgeSourceAsset, type BridgeFiatVirtualAccountSource as BridgeFiatVirtualAccountSource, type BridgeFiatVirtualAccountDestination as BridgeFiatVirtualAccountDestination, type BridgeFiatVirtualAccountRequest as BridgeFiatVirtualAccountRequest, type BridgeSandboxFiatVirtualAccountRequest as BridgeSandboxFiatVirtualAccountRequest, type FiatVirtualAccountRequest as FiatVirtualAccountRequest, type BridgeUsdFiatVirtualAccountDepositInstructions as BridgeUsdFiatVirtualAccountDepositInstructions, type BridgeEurFiatVirtualAccountDepositInstructions as BridgeEurFiatVirtualAccountDepositInstructions, type BridgeMxnFiatVirtualAccountDepositInstructions as BridgeMxnFiatVirtualAccountDepositInstructions, type BridgeBrlFiatVirtualAccountDepositInstructions as BridgeBrlFiatVirtualAccountDepositInstructions, type BridgeGbpFiatVirtualAccountDepositInstructions as BridgeGbpFiatVirtualAccountDepositInstructions, type BridgeFiatVirtualAccountDepositInstructions as BridgeFiatVirtualAccountDepositInstructions, type BridgeFiatVirtualAccountResponse as BridgeFiatVirtualAccountResponse, type BridgeSandboxFiatVirtualAccountResponse as BridgeSandboxFiatVirtualAccountResponse, type FiatVirtualAccountResponse as FiatVirtualAccountResponse, type OAuthCodeType as OAuthCodeType, type OAuthTransferUserInfoMeta as OAuthTransferUserInfoMeta, type OAuthTransferUserInfo as OAuthTransferUserInfo, type OAuthTransferRequestBody as OAuthTransferRequestBody, type SiweInput as SiweInput, type SmartWalletSiweInput as SmartWalletSiweInput, type AuthenticateSiweInput as AuthenticateSiweInput, type SiweAddressInput as SiweAddressInput, type SiweInitInput as SiweInitInput, type SiweNonce as SiweNonce, type TransferSiweInput as TransferSiweInput, type SiwsInput as SiwsInput, type AuthenticateSiwsInput as AuthenticateSiwsInput, type SiwsAddressInput as SiwsAddressInput, type SiwsInitInput as SiwsInitInput, type SiwsNonce as SiwsNonce, type TransferSiwsInput as TransferSiwsInput, type TelegramAuthResult as TelegramAuthResult, type TelegramWebAppData as TelegramWebAppData, type TelegramAuthenticateInput as TelegramAuthenticateInput, type TelegramUnlinkInput as TelegramUnlinkInput, type TransferTelegramInput as TransferTelegramInput, type FarcasterConnectInitResponse as FarcasterConnectInitResponse, type FarcasterConnectStatusCompletedResponse as FarcasterConnectStatusCompletedResponse, type FarcasterConnectStatusPendingResponse as FarcasterConnectStatusPendingResponse, type FarcasterAuthenticateInput as FarcasterAuthenticateInput, type FarcasterLinkInput as FarcasterLinkInput, type FarcasterInitInput as FarcasterInitInput, type FarcasterUnlinkInput as FarcasterUnlinkInput, type TransferFarcasterInput as TransferFarcasterInput, type FarcasterV2InitInput as FarcasterV2InitInput, type FarcasterV2InitResponse as FarcasterV2InitResponse, type FarcasterV2AuthenticateInput as FarcasterV2AuthenticateInput, type FarcasterV2InitRequestBody as FarcasterV2InitRequestBody, type FarcasterSignerInitPendingApproval as FarcasterSignerInitPendingApproval, type FarcasterSignerApproved as FarcasterSignerApproved, type FarcasterSignerRevoked as FarcasterSignerRevoked, type FarcasterSignerStatusPendingApproval as FarcasterSignerStatusPendingApproval, type MfaSMSInitVerifyInput as MfaSMSInitVerifyInput, type MfaSMSInitEnrollInput as MfaSMSInitEnrollInput, };
1541
+ export { type AuthenticateJwtInput as AuthenticateJwtInput, type AuthenticateMode as AuthenticateMode, type AuthenticateModeOption as AuthenticateModeOption, type AuthenticateSiweInput as AuthenticateSiweInput, type AuthenticateSiwsInput as AuthenticateSiwsInput, type BridgeBrlFiatVirtualAccountDepositInstructions as BridgeBrlFiatVirtualAccountDepositInstructions, type BridgeDestinationAsset as BridgeDestinationAsset, type BridgeEurFiatVirtualAccountDepositInstructions as BridgeEurFiatVirtualAccountDepositInstructions, type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse, type BridgeFiatRejectionReason as BridgeFiatRejectionReason, type BridgeFiatVirtualAccountDepositInstructions as BridgeFiatVirtualAccountDepositInstructions, type BridgeFiatVirtualAccountDestination as BridgeFiatVirtualAccountDestination, type BridgeFiatVirtualAccountRequest as BridgeFiatVirtualAccountRequest, type BridgeFiatVirtualAccountResponse as BridgeFiatVirtualAccountResponse, type BridgeFiatVirtualAccountSource as BridgeFiatVirtualAccountSource, type BridgeGbpFiatVirtualAccountDepositInstructions as BridgeGbpFiatVirtualAccountDepositInstructions, type BridgeMxnFiatVirtualAccountDepositInstructions as BridgeMxnFiatVirtualAccountDepositInstructions, type BridgeOnrampProvider as BridgeOnrampProvider, type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse, type BridgeSandboxFiatVirtualAccountRequest as BridgeSandboxFiatVirtualAccountRequest, type BridgeSandboxFiatVirtualAccountResponse as BridgeSandboxFiatVirtualAccountResponse, type BridgeSourceAsset as BridgeSourceAsset, type BridgeUsdFiatVirtualAccountDepositInstructions as BridgeUsdFiatVirtualAccountDepositInstructions, type Caip2ChainID as Caip2ChainID, type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput, type CryptoCurrencyCode as CryptoCurrencyCode, type CustomJwtAuthenticateRequestBody as CustomJwtAuthenticateRequestBody, type CustomJwtLinkRequestBody as CustomJwtLinkRequestBody, type CustomOAuthProviderID as CustomOAuthProviderID, type ExternalOAuthProviderID as ExternalOAuthProviderID, type FarcasterAuthenticateInput as FarcasterAuthenticateInput, type FarcasterAuthenticateRequestBody as FarcasterAuthenticateRequestBody, type FarcasterConnectInitResponse as FarcasterConnectInitResponse, type FarcasterConnectInitResponseBody as FarcasterConnectInitResponseBody, type FarcasterConnectStatusCompletedResponse as FarcasterConnectStatusCompletedResponse, type FarcasterConnectStatusCompletedResponseBody as FarcasterConnectStatusCompletedResponseBody, type FarcasterConnectStatusPendingResponse as FarcasterConnectStatusPendingResponse, type FarcasterConnectStatusPendingResponseBody as FarcasterConnectStatusPendingResponseBody, type FarcasterInitInput as FarcasterInitInput, type FarcasterInitRequestBody as FarcasterInitRequestBody, type FarcasterLinkInput as FarcasterLinkInput, type FarcasterLinkRequestBody as FarcasterLinkRequestBody, type FarcasterSignerApproved as FarcasterSignerApproved, type FarcasterSignerInitPendingApproval as FarcasterSignerInitPendingApproval, type FarcasterSignerInitRequestBody as FarcasterSignerInitRequestBody, type FarcasterSignerInitResponseBody as FarcasterSignerInitResponseBody, type FarcasterSignerRevoked as FarcasterSignerRevoked, type FarcasterSignerStatusPendingApproval as FarcasterSignerStatusPendingApproval, type FarcasterSignerStatusResponseBody as FarcasterSignerStatusResponseBody, type FarcasterUnlinkInput as FarcasterUnlinkInput, type FarcasterUnlinkRequestBody as FarcasterUnlinkRequestBody, type FarcasterV2AuthenticateInput as FarcasterV2AuthenticateInput, type FarcasterV2AuthenticateRequestBody as FarcasterV2AuthenticateRequestBody, type FarcasterV2InitInput as FarcasterV2InitInput, type FarcasterV2InitRequestBody as FarcasterV2InitRequestBody, type FarcasterV2InitResponse as FarcasterV2InitResponse, type FarcasterV2InitResponseBody as FarcasterV2InitResponseBody, type FiatAmount as FiatAmount, type FiatCurrencyCode as FiatCurrencyCode, type FiatCustomerResponse as FiatCustomerResponse, type FiatOnrampDestination as FiatOnrampDestination, type FiatOnrampEnvironment as FiatOnrampEnvironment, type FiatOnrampProvider as FiatOnrampProvider, type FiatOnrampProviderError as FiatOnrampProviderError, type FiatOnrampQuote as FiatOnrampQuote, type FiatOnrampSource as FiatOnrampSource, type FiatOnrampTransactionStatus as FiatOnrampTransactionStatus, type FiatVirtualAccountRequest as FiatVirtualAccountRequest, type FiatVirtualAccountResponse as FiatVirtualAccountResponse, type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput, type GetFiatOnrampQuotesInput as GetFiatOnrampQuotesInput, type GetFiatOnrampQuotesResponse as GetFiatOnrampQuotesResponse, type GetFiatOnrampTransactionStatusInput as GetFiatOnrampTransactionStatusInput, type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse, type GetFiatOnrampURLInput as GetFiatOnrampURLInput, type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse, type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody, type LinkJwtInput as LinkJwtInput, type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody, type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody, type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody, type MfaPasskeyVerifyRequestBody as MfaPasskeyVerifyRequestBody, type MfaSMSEnrollRequestBody as MfaSMSEnrollRequestBody, type MfaSMSInitEnrollInput as MfaSMSInitEnrollInput, type MfaSMSInitRequestBody as MfaSMSInitRequestBody, type MfaSMSInitVerifyInput as MfaSMSInitVerifyInput, type MfaSMSVerifyRequestBody as MfaSMSVerifyRequestBody, type MfaTotpInitResponseBody as MfaTotpInitResponseBody, type MfaTotpInput as MfaTotpInput, type MfaVerifyResponseBody as MfaVerifyResponseBody, type OAuthAuthenticateRequestBody as OAuthAuthenticateRequestBody, type OAuthAuthorizationCodeRequestBody as OAuthAuthorizationCodeRequestBody, type OAuthCodeType as OAuthCodeType, type OAuthInitRequestBody as OAuthInitRequestBody, type OAuthInitResponseBody as OAuthInitResponseBody, type OAuthLinkRequestBody as OAuthLinkRequestBody, type OAuthLinkResponseBody as OAuthLinkResponseBody, type OAuthProviderID as OAuthProviderID, type OAuthTransferRequestBody as OAuthTransferRequestBody, type OAuthTransferUserInfo as OAuthTransferUserInfo, type OAuthTransferUserInfoMeta as OAuthTransferUserInfoMeta, type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody, type OAuthVerifyRequestBody as OAuthVerifyRequestBody, type OAuthVerifyResponseBody as OAuthVerifyResponseBody, type OnrampProvider as OnrampProvider, type OptionalRefreshTokenInput as OptionalRefreshTokenInput, type PasskeyAssertionResponse as PasskeyAssertionResponse, type PasskeyAttestationResponse as PasskeyAttestationResponse, type PasskeyAuthenticateInput as PasskeyAuthenticateInput, type PasskeyAuthenticatorEnrollmentOptions as PasskeyAuthenticatorEnrollmentOptions, type PasskeyAuthenticatorEnrollmentResponse as PasskeyAuthenticatorEnrollmentResponse, type PasskeyAuthenticatorSelection as PasskeyAuthenticatorSelection, type PasskeyAuthenticatorVerifyOptions as PasskeyAuthenticatorVerifyOptions, type PasskeyAuthenticatorVerifyResponse as PasskeyAuthenticatorVerifyResponse, type PasskeyClientExtensionResults as PasskeyClientExtensionResults, type PasskeyCredPropsResult as PasskeyCredPropsResult, type PasskeyCredentialDescriptor as PasskeyCredentialDescriptor, type PasskeyEnrollmentExtensions as PasskeyEnrollmentExtensions, type PasskeyInitInput as PasskeyInitInput, type PasskeyLinkInput as PasskeyLinkInput, type PasskeyPubKeyCredParam as PasskeyPubKeyCredParam, type PasskeyRegisterInput as PasskeyRegisterInput, type PasskeyRelyingParty as PasskeyRelyingParty, type PasskeyUser as PasskeyUser, type PasskeyVerifyExtensions as PasskeyVerifyExtensions, type PasswordlessAuthenticateRequestBody as PasswordlessAuthenticateRequestBody, type PasswordlessInitRequestBody as PasswordlessInitRequestBody, type PasswordlessLinkRequestBody as PasswordlessLinkRequestBody, type PasswordlessSMSAuthenticateRequestBody as PasswordlessSMSAuthenticateRequestBody, type PasswordlessSMSInitRequestBody as PasswordlessSMSInitRequestBody, type PasswordlessSMSLinkRequestBody as PasswordlessSMSLinkRequestBody, type PasswordlessSMSTransferRequestBody as PasswordlessSMSTransferRequestBody, type PasswordlessSMSUnlinkRequestBody as PasswordlessSMSUnlinkRequestBody, type PasswordlessSMSUpdateRequestBody as PasswordlessSMSUpdateRequestBody, type PasswordlessTransferRequestBody as PasswordlessTransferRequestBody, type PasswordlessUnlinkRequestBody as PasswordlessUnlinkRequestBody, type PasswordlessUpdateRequestBody as PasswordlessUpdateRequestBody, type PrivyOAuthProviderID as PrivyOAuthProviderID, type ResponsePasskeyInitAuthenticate as ResponsePasskeyInitAuthenticate, type ResponsePasskeyInitLink as ResponsePasskeyInitLink, type ResponsePasskeyInitRegister as ResponsePasskeyInitRegister, type SiweAddressInput as SiweAddressInput, type SiweAuthenticateRequestBody as SiweAuthenticateRequestBody, type SiweInitInput as SiweInitInput, type SiweInitRequestBody as SiweInitRequestBody, type SiweInitResponseBody as SiweInitResponseBody, type SiweInput as SiweInput, type SiweLinkRequestBody as SiweLinkRequestBody, type SiweLinkSmartWalletRequestBody as SiweLinkSmartWalletRequestBody, type SiweNonce as SiweNonce, type SiweUnlinkRequestBody as SiweUnlinkRequestBody, type SiwsAddressInput as SiwsAddressInput, type SiwsAuthenticateRequestBody as SiwsAuthenticateRequestBody, type SiwsInitInput as SiwsInitInput, type SiwsInitRequestBody as SiwsInitRequestBody, type SiwsInitResponseBody as SiwsInitResponseBody, type SiwsInput as SiwsInput, type SiwsLinkRequestBody as SiwsLinkRequestBody, type SiwsNonce as SiwsNonce, type SiwsUnlinkRequestBody as SiwsUnlinkRequestBody, type SmartWalletSiweInput as SmartWalletSiweInput, type TelegramAuthResult as TelegramAuthResult, type TelegramAuthenticateInput as TelegramAuthenticateInput, type TelegramAuthenticateRequestBody as TelegramAuthenticateRequestBody, type TelegramLinkRequestBody as TelegramLinkRequestBody, type TelegramUnlinkInput as TelegramUnlinkInput, type TelegramUnlinkRequestBody as TelegramUnlinkRequestBody, type TelegramWebAppData as TelegramWebAppData, type TransferFarcasterInput as TransferFarcasterInput, type TransferSiweInput as TransferSiweInput, type TransferSiwsInput as TransferSiwsInput, type TransferTelegramInput as TransferTelegramInput, type UnlinkPasskeyInput as UnlinkPasskeyInput, };
1558
1542
  }
1559
1543
  //# sourceMappingURL=client-auth.d.ts.map