@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.
- package/CHANGELOG.md +46 -0
- package/client.d.mts +40 -43
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -43
- package/client.d.ts.map +1 -1
- package/client.js +28 -20
- package/client.js.map +1 -1
- package/client.mjs +29 -21
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +931 -947
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +931 -947
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts +122 -122
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +122 -122
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +86 -86
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +86 -86
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +20 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +20 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +15 -146
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +15 -146
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +261 -553
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +261 -553
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +80 -96
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +80 -96
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +480 -815
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +480 -815
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1592 -1580
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1592 -1580
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +45 -103
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +45 -103
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +650 -618
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +1271 -1315
- package/src/resources/embedded-wallets.ts +160 -160
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +130 -130
- package/src/resources/index.ts +551 -542
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +16 -218
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +383 -848
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +116 -136
- package/src/resources/users.ts +693 -1160
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +160 -156
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +2123 -2113
- package/src/resources/webhooks.ts +1172 -1100
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- 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
|
-
*
|
|
8
|
+
* Input for authenticating with a custom JWT.
|
|
8
9
|
*/
|
|
9
|
-
export interface
|
|
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
|
|
18
|
+
* The authentication mode settings for the ceremony.
|
|
18
19
|
*/
|
|
19
|
-
export interface
|
|
20
|
-
|
|
20
|
+
export interface AuthenticateMode {
|
|
21
|
+
/**
|
|
22
|
+
* Whether to allow sign-up during authentication.
|
|
23
|
+
*/
|
|
24
|
+
mode?: AuthenticateModeOption;
|
|
21
25
|
}
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
27
|
+
* Whether to allow sign-up during authentication.
|
|
24
28
|
*/
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
|
|
54
|
-
|
|
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
|
|
59
|
+
* The deposit instructions for a virtual account.
|
|
58
60
|
*/
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
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
|
|
71
|
+
* The deposit instructions for a virtual account.
|
|
65
72
|
*/
|
|
66
|
-
export interface
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
|
83
|
+
* The response for getting a native onramp provider customer.
|
|
73
84
|
*/
|
|
74
|
-
export interface
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
*
|
|
96
|
+
* A rejection reason for a customer KYC verification.
|
|
82
97
|
*/
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
deadline?: string;
|
|
98
|
+
export interface BridgeFiatRejectionReason {
|
|
99
|
+
reason: string;
|
|
86
100
|
}
|
|
87
101
|
/**
|
|
88
|
-
* The
|
|
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
|
|
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
|
|
111
|
+
* The request input for creating virtual account.
|
|
97
112
|
*/
|
|
98
|
-
export interface
|
|
99
|
-
|
|
113
|
+
export interface BridgeFiatVirtualAccountRequest {
|
|
114
|
+
destination: BridgeFiatVirtualAccountDestination;
|
|
115
|
+
provider: 'bridge';
|
|
116
|
+
source: BridgeFiatVirtualAccountSource;
|
|
100
117
|
}
|
|
101
118
|
/**
|
|
102
|
-
* The
|
|
119
|
+
* The response for creating virtual account.
|
|
103
120
|
*/
|
|
104
|
-
export interface
|
|
105
|
-
fid: number;
|
|
106
|
-
message: string;
|
|
107
|
-
signature: string;
|
|
121
|
+
export interface BridgeFiatVirtualAccountResponse {
|
|
108
122
|
/**
|
|
109
|
-
*
|
|
123
|
+
* The deposit instructions for a virtual account.
|
|
110
124
|
*/
|
|
111
|
-
|
|
125
|
+
deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
|
|
126
|
+
destination: BridgeFiatVirtualAccountDestination;
|
|
127
|
+
provider: 'bridge';
|
|
128
|
+
status: string;
|
|
112
129
|
}
|
|
113
|
-
|
|
114
|
-
|
|
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
|
|
134
|
+
* The deposit instructions for a virtual account.
|
|
122
135
|
*/
|
|
123
|
-
export interface
|
|
124
|
-
|
|
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
|
|
146
|
+
* The deposit instructions for a virtual account.
|
|
128
147
|
*/
|
|
129
|
-
export interface
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
*
|
|
157
|
+
* Bridge provider variant — production or sandbox.
|
|
135
158
|
*/
|
|
136
|
-
export
|
|
137
|
-
relying_party?: string;
|
|
138
|
-
}
|
|
159
|
+
export type BridgeOnrampProvider = 'bridge' | 'bridge-sandbox';
|
|
139
160
|
/**
|
|
140
|
-
* The response
|
|
161
|
+
* The response for getting a native onramp provider customer.
|
|
141
162
|
*/
|
|
142
|
-
export interface
|
|
163
|
+
export interface BridgeSandboxFiatCustomerResponse {
|
|
164
|
+
has_accepted_terms: boolean;
|
|
165
|
+
provider: 'bridge-sandbox';
|
|
143
166
|
/**
|
|
144
|
-
*
|
|
145
|
-
* specification.
|
|
167
|
+
* Status of the KYC verification process.
|
|
146
168
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
169
|
+
status: FiatAPI.OnrampKYCStatus;
|
|
170
|
+
kyc_url?: string;
|
|
171
|
+
rejection_reasons?: Array<BridgeFiatRejectionReason>;
|
|
149
172
|
}
|
|
150
173
|
/**
|
|
151
|
-
* The request
|
|
174
|
+
* The request input for creating virtual account.
|
|
152
175
|
*/
|
|
153
|
-
export interface
|
|
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
|
-
*
|
|
156
|
-
* specification.
|
|
186
|
+
* The deposit instructions for a virtual account.
|
|
157
187
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
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
|
|
195
|
+
* The deposit instructions for a virtual account.
|
|
163
196
|
*/
|
|
164
|
-
export interface
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
*
|
|
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
|
|
211
|
+
export type Caip2ChainID = string;
|
|
172
212
|
/**
|
|
173
|
-
* The request
|
|
213
|
+
* The request input for creating (or updating) a native onramp provider customer.
|
|
174
214
|
*/
|
|
175
|
-
export interface
|
|
176
|
-
|
|
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
|
-
*
|
|
224
|
+
* Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
|
|
180
225
|
*/
|
|
181
|
-
export
|
|
182
|
-
totpAuthUrl: string;
|
|
183
|
-
totpSecret: string;
|
|
184
|
-
}
|
|
226
|
+
export type CryptoCurrencyCode = string;
|
|
185
227
|
/**
|
|
186
|
-
* The
|
|
228
|
+
* The request body for authenticating with a custom JWT.
|
|
187
229
|
*/
|
|
188
|
-
export interface
|
|
189
|
-
|
|
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
|
|
238
|
+
* The request body for linking a custom JWT account.
|
|
193
239
|
*/
|
|
194
|
-
export interface
|
|
195
|
-
token
|
|
240
|
+
export interface CustomJwtLinkRequestBody {
|
|
241
|
+
token?: string;
|
|
196
242
|
}
|
|
197
243
|
/**
|
|
198
|
-
* The
|
|
244
|
+
* The ID of a custom OAuth provider, set up for this app. Must start with
|
|
245
|
+
* "custom:".
|
|
199
246
|
*/
|
|
200
|
-
export
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
*
|
|
261
|
+
* Whether to allow sign-up during authentication.
|
|
205
262
|
*/
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
*
|
|
279
|
+
* Proxy for the Farcaster Connect init response as defined in FIP-11.
|
|
215
280
|
*/
|
|
216
|
-
export interface
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
state: string;
|
|
281
|
+
export interface FarcasterConnectInitResponse {
|
|
282
|
+
channel_token: string;
|
|
283
|
+
connect_uri: string;
|
|
220
284
|
}
|
|
221
285
|
/**
|
|
222
|
-
* The
|
|
286
|
+
* The response body for initiating a Farcaster connection.
|
|
223
287
|
*/
|
|
224
|
-
export interface
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
*
|
|
293
|
+
* Proxy for the Farcaster Connect completed status response as defined in FIP-11.
|
|
236
294
|
*/
|
|
237
|
-
export interface
|
|
238
|
-
|
|
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
|
|
307
|
+
* The response body for completing a Farcaster connection.
|
|
242
308
|
*/
|
|
243
|
-
export interface
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
*
|
|
321
|
+
* Proxy for the Farcaster Connect pending status response as defined in FIP-11.
|
|
254
322
|
*/
|
|
255
|
-
export interface
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
*/
|
|
259
|
-
oauth_tokens?: UsersAPI.OAuthTokens;
|
|
323
|
+
export interface FarcasterConnectStatusPendingResponse {
|
|
324
|
+
nonce: string;
|
|
325
|
+
state: 'pending';
|
|
260
326
|
}
|
|
261
327
|
/**
|
|
262
|
-
* The
|
|
328
|
+
* The response body for pending a Farcaster connection.
|
|
263
329
|
*/
|
|
264
|
-
export interface
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
*/
|
|
268
|
-
provider: OAuthProviderID;
|
|
269
|
-
subject: string;
|
|
330
|
+
export interface FarcasterConnectStatusPendingResponseBody {
|
|
331
|
+
nonce: string;
|
|
332
|
+
state: 'pending';
|
|
270
333
|
}
|
|
271
334
|
/**
|
|
272
|
-
*
|
|
335
|
+
* Input for initiating a Farcaster connection.
|
|
273
336
|
*/
|
|
274
|
-
export interface
|
|
275
|
-
|
|
337
|
+
export interface FarcasterInitInput {
|
|
338
|
+
token?: string;
|
|
339
|
+
redirect_url?: string;
|
|
340
|
+
relying_party?: string;
|
|
276
341
|
}
|
|
277
342
|
/**
|
|
278
|
-
* The
|
|
343
|
+
* The request body for initiating a Farcaster connection.
|
|
279
344
|
*/
|
|
280
|
-
export interface
|
|
281
|
-
|
|
345
|
+
export interface FarcasterInitRequestBody {
|
|
346
|
+
token?: string;
|
|
347
|
+
redirect_url?: string;
|
|
348
|
+
relying_party?: string;
|
|
282
349
|
}
|
|
283
350
|
/**
|
|
284
|
-
*
|
|
351
|
+
* Input for linking a Farcaster account.
|
|
285
352
|
*/
|
|
286
|
-
export interface
|
|
287
|
-
|
|
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
|
|
360
|
+
* The request body for linking a Farcaster account.
|
|
291
361
|
*/
|
|
292
|
-
export interface
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
*
|
|
369
|
+
* A Farcaster signer response when the signer has been approved.
|
|
302
370
|
*/
|
|
303
|
-
export interface
|
|
304
|
-
|
|
305
|
-
|
|
371
|
+
export interface FarcasterSignerApproved {
|
|
372
|
+
fid: string;
|
|
373
|
+
public_key: string;
|
|
374
|
+
status: 'approved';
|
|
306
375
|
}
|
|
307
376
|
/**
|
|
308
|
-
*
|
|
377
|
+
* A Farcaster signer init response when the signer is pending approval.
|
|
309
378
|
*/
|
|
310
|
-
export interface
|
|
311
|
-
|
|
312
|
-
|
|
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
|
|
385
|
+
* The request body for initiating a Farcaster signer connection.
|
|
316
386
|
*/
|
|
317
|
-
export interface
|
|
318
|
-
|
|
319
|
-
|
|
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
|
|
392
|
+
* The response body from initiating a Farcaster signer connection.
|
|
327
393
|
*/
|
|
328
|
-
export
|
|
329
|
-
phoneNumber: string;
|
|
330
|
-
token?: string;
|
|
331
|
-
}
|
|
394
|
+
export type FarcasterSignerInitResponseBody = FarcasterSignerInitPendingApproval | FarcasterSignerApproved | FarcasterSignerRevoked;
|
|
332
395
|
/**
|
|
333
|
-
*
|
|
396
|
+
* A Farcaster signer response when the signer has been revoked.
|
|
334
397
|
*/
|
|
335
|
-
export interface
|
|
336
|
-
|
|
337
|
-
|
|
398
|
+
export interface FarcasterSignerRevoked {
|
|
399
|
+
fid: string;
|
|
400
|
+
public_key: string;
|
|
401
|
+
status: 'revoked';
|
|
338
402
|
}
|
|
339
403
|
/**
|
|
340
|
-
*
|
|
404
|
+
* A Farcaster signer status response when the signer is pending approval.
|
|
341
405
|
*/
|
|
342
|
-
export interface
|
|
343
|
-
|
|
406
|
+
export interface FarcasterSignerStatusPendingApproval {
|
|
407
|
+
public_key: string;
|
|
408
|
+
status: 'pending_approval';
|
|
344
409
|
}
|
|
345
410
|
/**
|
|
346
|
-
* The
|
|
411
|
+
* The response body from checking the status of a Farcaster signer connection.
|
|
347
412
|
*/
|
|
348
|
-
export
|
|
349
|
-
code: string;
|
|
350
|
-
new_phone_number: string;
|
|
351
|
-
old_phone_number: string;
|
|
352
|
-
}
|
|
413
|
+
export type FarcasterSignerStatusResponseBody = FarcasterSignerStatusPendingApproval | FarcasterSignerApproved | FarcasterSignerRevoked;
|
|
353
414
|
/**
|
|
354
|
-
*
|
|
415
|
+
* Input for unlinking a Farcaster account.
|
|
355
416
|
*/
|
|
356
|
-
export interface
|
|
357
|
-
|
|
417
|
+
export interface FarcasterUnlinkInput {
|
|
418
|
+
fid: number;
|
|
358
419
|
}
|
|
359
420
|
/**
|
|
360
|
-
* The request body for
|
|
421
|
+
* The request body for unlinking a Farcaster account.
|
|
361
422
|
*/
|
|
362
|
-
export interface
|
|
363
|
-
|
|
364
|
-
newAddress: string;
|
|
365
|
-
oldAddress: string;
|
|
423
|
+
export interface FarcasterUnlinkRequestBody {
|
|
424
|
+
fid: number;
|
|
366
425
|
}
|
|
367
426
|
/**
|
|
368
|
-
*
|
|
427
|
+
* Input for authenticating a Farcaster V2 account.
|
|
369
428
|
*/
|
|
370
|
-
export interface
|
|
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
|
|
439
|
+
* The request body for authenticating a Farcaster V2 account.
|
|
383
440
|
*/
|
|
384
|
-
export interface
|
|
385
|
-
|
|
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
|
-
*
|
|
451
|
+
* Input for initiating a Farcaster V2 connection.
|
|
389
452
|
*/
|
|
390
|
-
export interface
|
|
391
|
-
address: string;
|
|
392
|
-
expires_at: string;
|
|
393
|
-
nonce: string;
|
|
453
|
+
export interface FarcasterV2InitInput {
|
|
394
454
|
}
|
|
395
455
|
/**
|
|
396
|
-
* The request body for
|
|
456
|
+
* The request body for initiating a Farcaster V2 connection.
|
|
397
457
|
*/
|
|
398
|
-
export interface
|
|
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
|
-
*
|
|
461
|
+
* Response for initiating a Farcaster V2 connection.
|
|
407
462
|
*/
|
|
408
|
-
export interface
|
|
409
|
-
|
|
410
|
-
|
|
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
|
|
468
|
+
* The response body for initiating a Farcaster V2 connection.
|
|
419
469
|
*/
|
|
420
|
-
export interface
|
|
421
|
-
|
|
470
|
+
export interface FarcasterV2InitResponseBody {
|
|
471
|
+
expires_at: string;
|
|
472
|
+
nonce: string;
|
|
422
473
|
}
|
|
423
474
|
/**
|
|
424
|
-
*
|
|
475
|
+
* A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
|
|
425
476
|
*/
|
|
426
|
-
export
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
*
|
|
492
|
+
* Cryptocurrency symbol. Uppercase alphanumeric, 2-10 characters.
|
|
433
493
|
*/
|
|
434
|
-
|
|
435
|
-
|
|
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
|
-
*
|
|
502
|
+
* Whether to use the sandbox or production environment for fiat onramp.
|
|
439
503
|
*/
|
|
440
|
-
export
|
|
441
|
-
address: string;
|
|
442
|
-
}
|
|
504
|
+
export type FiatOnrampEnvironment = 'sandbox' | 'production';
|
|
443
505
|
/**
|
|
444
|
-
* The
|
|
506
|
+
* The fiat onramp provider to use.
|
|
445
507
|
*/
|
|
446
|
-
export
|
|
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
|
-
*
|
|
510
|
+
* An error from a specific fiat onramp provider when fetching quotes.
|
|
453
511
|
*/
|
|
454
|
-
export interface
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
512
|
+
export interface FiatOnrampProviderError {
|
|
513
|
+
error: string;
|
|
514
|
+
/**
|
|
515
|
+
* The fiat onramp provider to use.
|
|
516
|
+
*/
|
|
517
|
+
provider: FiatOnrampProvider;
|
|
460
518
|
}
|
|
461
519
|
/**
|
|
462
|
-
*
|
|
520
|
+
* A single fiat onramp quote from a provider.
|
|
463
521
|
*/
|
|
464
|
-
export interface
|
|
465
|
-
|
|
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
|
-
*
|
|
534
|
+
* Source currency details for a fiat onramp quote request.
|
|
469
535
|
*/
|
|
470
|
-
export interface
|
|
471
|
-
captcha_token?: string;
|
|
536
|
+
export interface FiatOnrampSource {
|
|
472
537
|
/**
|
|
473
|
-
*
|
|
538
|
+
* A positive decimal amount as a string (e.g. "100", "50.25", "0.001").
|
|
474
539
|
*/
|
|
475
|
-
|
|
540
|
+
amount: FiatAmount;
|
|
476
541
|
/**
|
|
477
|
-
*
|
|
478
|
-
* login widget.
|
|
542
|
+
* ISO 4217 fiat currency code. Three uppercase ASCII letters.
|
|
479
543
|
*/
|
|
480
|
-
|
|
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
|
-
*
|
|
483
|
-
* app.
|
|
563
|
+
* Valid set of onramp providers
|
|
484
564
|
*/
|
|
485
|
-
|
|
565
|
+
provider: OnrampProvider;
|
|
566
|
+
kyc_redirect_url?: string;
|
|
486
567
|
}
|
|
487
568
|
/**
|
|
488
|
-
* The request
|
|
569
|
+
* The request input for getting fiat onramp quotes.
|
|
489
570
|
*/
|
|
490
|
-
export interface
|
|
491
|
-
captcha_token?: string;
|
|
571
|
+
export interface GetFiatOnrampQuotesInput {
|
|
492
572
|
/**
|
|
493
|
-
*
|
|
573
|
+
* Destination cryptocurrency details for a fiat onramp quote request.
|
|
494
574
|
*/
|
|
495
|
-
|
|
575
|
+
destination: FiatOnrampDestination;
|
|
496
576
|
/**
|
|
497
|
-
*
|
|
498
|
-
* login widget.
|
|
577
|
+
* Whether to use the sandbox or production environment for fiat onramp.
|
|
499
578
|
*/
|
|
500
|
-
|
|
579
|
+
environment: FiatOnrampEnvironment;
|
|
501
580
|
/**
|
|
502
|
-
*
|
|
503
|
-
* app.
|
|
581
|
+
* Source currency details for a fiat onramp quote request.
|
|
504
582
|
*/
|
|
505
|
-
|
|
583
|
+
source: FiatOnrampSource;
|
|
506
584
|
}
|
|
507
585
|
/**
|
|
508
|
-
* The
|
|
586
|
+
* The response containing fiat onramp quotes.
|
|
509
587
|
*/
|
|
510
|
-
export interface
|
|
511
|
-
|
|
588
|
+
export interface GetFiatOnrampQuotesResponse {
|
|
589
|
+
quotes: Array<FiatOnrampQuote>;
|
|
590
|
+
provider_errors?: Array<FiatOnrampProviderError>;
|
|
512
591
|
}
|
|
513
592
|
/**
|
|
514
|
-
*
|
|
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
|
|
595
|
+
export interface GetFiatOnrampTransactionStatusInput {
|
|
521
596
|
/**
|
|
522
|
-
*
|
|
597
|
+
* The fiat onramp provider to use.
|
|
523
598
|
*/
|
|
524
|
-
|
|
599
|
+
provider: FiatOnrampProvider;
|
|
600
|
+
session_id: string;
|
|
525
601
|
}
|
|
526
602
|
/**
|
|
527
|
-
* The
|
|
603
|
+
* The response containing the fiat onramp session status.
|
|
528
604
|
*/
|
|
529
|
-
export
|
|
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
|
|
615
|
+
* The request input for getting a fiat onramp provider session URL.
|
|
532
616
|
*/
|
|
533
|
-
export
|
|
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
|
|
536
|
-
* "custom:".
|
|
635
|
+
* The response containing a fiat onramp provider session URL.
|
|
537
636
|
*/
|
|
538
|
-
export
|
|
637
|
+
export interface GetFiatOnrampURLResponse {
|
|
638
|
+
session_id: string;
|
|
639
|
+
url: string;
|
|
640
|
+
}
|
|
539
641
|
/**
|
|
540
|
-
* The
|
|
642
|
+
* The request body for authenticating a guest.
|
|
541
643
|
*/
|
|
542
|
-
export
|
|
644
|
+
export interface GuestAuthenticateRequestBody {
|
|
645
|
+
guest_credential: string;
|
|
646
|
+
}
|
|
543
647
|
/**
|
|
544
|
-
*
|
|
648
|
+
* Input for linking a custom JWT account.
|
|
545
649
|
*/
|
|
546
|
-
export
|
|
650
|
+
export interface LinkJwtInput {
|
|
651
|
+
token?: string;
|
|
652
|
+
}
|
|
547
653
|
/**
|
|
548
|
-
*
|
|
654
|
+
* The request body for enrolling a passkey MFA flow.
|
|
549
655
|
*/
|
|
550
|
-
export
|
|
656
|
+
export interface MfaPasskeyEnrollmentRequestBody {
|
|
657
|
+
credential_ids: Array<string>;
|
|
658
|
+
remove_for_login?: boolean;
|
|
659
|
+
}
|
|
551
660
|
/**
|
|
552
|
-
* The
|
|
661
|
+
* The request body for initiating a passkey MFA flow.
|
|
553
662
|
*/
|
|
554
|
-
export interface
|
|
555
|
-
|
|
663
|
+
export interface MfaPasskeyInitRequestBody {
|
|
664
|
+
relying_party?: string;
|
|
556
665
|
}
|
|
557
666
|
/**
|
|
558
|
-
*
|
|
667
|
+
* The response body for initializing a passkey MFA flow.
|
|
559
668
|
*/
|
|
560
|
-
export interface
|
|
561
|
-
app_id?: boolean;
|
|
669
|
+
export interface MfaPasskeyInitResponseBody {
|
|
562
670
|
/**
|
|
563
|
-
*
|
|
671
|
+
* WebAuthn authentication options as defined by the Web Authentication
|
|
672
|
+
* specification.
|
|
564
673
|
*/
|
|
565
|
-
|
|
566
|
-
|
|
674
|
+
options: PasskeyAuthenticatorVerifyOptions;
|
|
675
|
+
relying_party?: string;
|
|
567
676
|
}
|
|
568
677
|
/**
|
|
569
|
-
*
|
|
678
|
+
* The request body for verifying a passkey MFA flow.
|
|
570
679
|
*/
|
|
571
|
-
export interface
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
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
|
-
*
|
|
689
|
+
* The request body for enrolling a SMS MFA code.
|
|
578
690
|
*/
|
|
579
|
-
export interface
|
|
580
|
-
|
|
581
|
-
|
|
691
|
+
export interface MfaSMSEnrollRequestBody {
|
|
692
|
+
code: string;
|
|
693
|
+
phoneNumber: string;
|
|
582
694
|
}
|
|
583
695
|
/**
|
|
584
|
-
*
|
|
696
|
+
* Input for enrolling SMS MFA.
|
|
585
697
|
*/
|
|
586
|
-
export interface
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
name: string;
|
|
698
|
+
export interface MfaSMSInitEnrollInput {
|
|
699
|
+
action: 'enroll';
|
|
700
|
+
phoneNumber: string;
|
|
590
701
|
}
|
|
591
702
|
/**
|
|
592
|
-
*
|
|
703
|
+
* The request body for initiating a SMS MFA flow.
|
|
593
704
|
*/
|
|
594
|
-
export
|
|
595
|
-
|
|
596
|
-
|
|
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
|
-
*
|
|
713
|
+
* The request body for verifying a SMS MFA code.
|
|
600
714
|
*/
|
|
601
|
-
export interface
|
|
602
|
-
|
|
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
|
-
*
|
|
719
|
+
* The response body for initializing a TOTP MFA code.
|
|
609
720
|
*/
|
|
610
|
-
export interface
|
|
611
|
-
|
|
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
|
|
744
|
+
* The type of OAuth authorization code.
|
|
614
745
|
*/
|
|
615
|
-
|
|
616
|
-
|
|
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<
|
|
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
|
-
*
|
|
952
|
+
* Authenticator selection criteria for a WebAuthn registration ceremony.
|
|
676
953
|
*/
|
|
677
|
-
export interface
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
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
|
-
*
|
|
961
|
+
* WebAuthn authentication options as defined by the Web Authentication
|
|
962
|
+
* specification.
|
|
687
963
|
*/
|
|
688
|
-
export interface
|
|
964
|
+
export interface PasskeyAuthenticatorVerifyOptions {
|
|
965
|
+
challenge: string;
|
|
966
|
+
allow_credentials?: Array<PasskeyCredentialDescriptor>;
|
|
689
967
|
/**
|
|
690
|
-
*
|
|
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
|
-
*
|
|
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
|
|
996
|
+
export interface PasskeyClientExtensionResults {
|
|
997
|
+
app_id?: boolean;
|
|
797
998
|
/**
|
|
798
|
-
*
|
|
799
|
-
* specification.
|
|
999
|
+
* The result of the WebAuthn credProps extension.
|
|
800
1000
|
*/
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
relying_party?: string;
|
|
1001
|
+
cred_props?: PasskeyCredPropsResult;
|
|
1002
|
+
hmac_create_secret?: boolean;
|
|
804
1003
|
}
|
|
805
1004
|
/**
|
|
806
|
-
* The
|
|
1005
|
+
* The result of the WebAuthn credProps extension.
|
|
807
1006
|
*/
|
|
808
|
-
export interface
|
|
809
|
-
|
|
810
|
-
nonce: string;
|
|
1007
|
+
export interface PasskeyCredPropsResult {
|
|
1008
|
+
rk?: boolean;
|
|
811
1009
|
}
|
|
812
1010
|
/**
|
|
813
|
-
*
|
|
1011
|
+
* A WebAuthn credential descriptor identifying a specific public key credential.
|
|
814
1012
|
*/
|
|
815
|
-
export interface
|
|
816
|
-
|
|
817
|
-
|
|
1013
|
+
export interface PasskeyCredentialDescriptor {
|
|
1014
|
+
id: string;
|
|
1015
|
+
type: string;
|
|
1016
|
+
transports?: Array<string>;
|
|
818
1017
|
}
|
|
819
1018
|
/**
|
|
820
|
-
*
|
|
1019
|
+
* Extensions for a WebAuthn registration ceremony.
|
|
821
1020
|
*/
|
|
822
|
-
export interface
|
|
823
|
-
|
|
1021
|
+
export interface PasskeyEnrollmentExtensions {
|
|
1022
|
+
app_id?: string;
|
|
824
1023
|
/**
|
|
825
|
-
*
|
|
1024
|
+
* The result of the WebAuthn credProps extension.
|
|
826
1025
|
*/
|
|
827
|
-
|
|
1026
|
+
cred_props?: PasskeyCredPropsResult;
|
|
1027
|
+
hmac_create_secret?: boolean;
|
|
828
1028
|
}
|
|
829
1029
|
/**
|
|
830
|
-
* Input for
|
|
1030
|
+
* Input for initiating a passkey ceremony.
|
|
831
1031
|
*/
|
|
832
|
-
export interface
|
|
1032
|
+
export interface PasskeyInitInput {
|
|
833
1033
|
token?: string;
|
|
1034
|
+
relying_party?: string;
|
|
834
1035
|
}
|
|
835
1036
|
/**
|
|
836
|
-
*
|
|
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
|
|
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
|
-
*
|
|
1041
|
+
* WebAuthn registration response as defined by the Web Authentication
|
|
1042
|
+
* specification.
|
|
919
1043
|
*/
|
|
920
|
-
|
|
1044
|
+
authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
|
|
1045
|
+
relying_party?: string;
|
|
921
1046
|
}
|
|
922
1047
|
/**
|
|
923
|
-
*
|
|
1048
|
+
* A public key credential parameter specifying the algorithm and credential type.
|
|
924
1049
|
*/
|
|
925
|
-
export interface
|
|
926
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
1059
|
+
* WebAuthn registration response as defined by the Web Authentication
|
|
1060
|
+
* specification.
|
|
959
1061
|
*/
|
|
960
|
-
|
|
1062
|
+
authenticator_response: PasskeyAuthenticatorEnrollmentResponse;
|
|
1063
|
+
relying_party?: string;
|
|
961
1064
|
}
|
|
962
1065
|
/**
|
|
963
|
-
*
|
|
1066
|
+
* Relying party information for a WebAuthn ceremony.
|
|
964
1067
|
*/
|
|
965
|
-
export interface
|
|
966
|
-
|
|
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
|
-
*
|
|
1073
|
+
* User entity for a WebAuthn registration ceremony.
|
|
978
1074
|
*/
|
|
979
|
-
export interface
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
*/
|
|
984
|
-
provider: FiatOnrampProvider;
|
|
1075
|
+
export interface PasskeyUser {
|
|
1076
|
+
id: string;
|
|
1077
|
+
display_name: string;
|
|
1078
|
+
name: string;
|
|
985
1079
|
}
|
|
986
1080
|
/**
|
|
987
|
-
*
|
|
1081
|
+
* Extensions for a WebAuthn authentication ceremony.
|
|
988
1082
|
*/
|
|
989
|
-
export interface
|
|
990
|
-
|
|
991
|
-
|
|
1083
|
+
export interface PasskeyVerifyExtensions {
|
|
1084
|
+
app_id?: string;
|
|
1085
|
+
cred_props?: boolean;
|
|
1086
|
+
hmac_create_secret?: boolean;
|
|
992
1087
|
}
|
|
993
1088
|
/**
|
|
994
|
-
* The request
|
|
1089
|
+
* The request body for authenticating a passwordless account.
|
|
995
1090
|
*/
|
|
996
|
-
export interface
|
|
997
|
-
|
|
998
|
-
|
|
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
|
-
*
|
|
1095
|
+
* Whether to allow sign-up during authentication.
|
|
1008
1096
|
*/
|
|
1009
|
-
|
|
1010
|
-
redirect_url?: string;
|
|
1011
|
-
sub_provider?: string;
|
|
1097
|
+
mode?: AuthenticateModeOption;
|
|
1012
1098
|
}
|
|
1013
1099
|
/**
|
|
1014
|
-
* The
|
|
1100
|
+
* The request body for initiating a passwordless ceremony.
|
|
1015
1101
|
*/
|
|
1016
|
-
export interface
|
|
1017
|
-
|
|
1018
|
-
|
|
1102
|
+
export interface PasswordlessInitRequestBody {
|
|
1103
|
+
email: string;
|
|
1104
|
+
token?: string;
|
|
1019
1105
|
}
|
|
1020
1106
|
/**
|
|
1021
|
-
*
|
|
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
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
*/
|
|
1031
|
-
provider: FiatOnrampProvider;
|
|
1032
|
-
session_id: string;
|
|
1109
|
+
export interface PasswordlessLinkRequestBody {
|
|
1110
|
+
code: string;
|
|
1111
|
+
email: string;
|
|
1033
1112
|
}
|
|
1034
1113
|
/**
|
|
1035
|
-
* The
|
|
1114
|
+
* The request body for authenticating a passwordless sms account.
|
|
1036
1115
|
*/
|
|
1037
|
-
export interface
|
|
1038
|
-
|
|
1039
|
-
|
|
1116
|
+
export interface PasswordlessSMSAuthenticateRequestBody {
|
|
1117
|
+
code: string;
|
|
1118
|
+
phoneNumber: string;
|
|
1040
1119
|
/**
|
|
1041
|
-
*
|
|
1120
|
+
* Whether to allow sign-up during authentication.
|
|
1042
1121
|
*/
|
|
1043
|
-
|
|
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
|
|
1125
|
+
* The request body for initiating a passwordless sms ceremony.
|
|
1058
1126
|
*/
|
|
1059
|
-
export interface
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
source: BridgeFiatVirtualAccountSource;
|
|
1127
|
+
export interface PasswordlessSMSInitRequestBody {
|
|
1128
|
+
phoneNumber: string;
|
|
1129
|
+
token?: string;
|
|
1063
1130
|
}
|
|
1064
1131
|
/**
|
|
1065
|
-
* The request
|
|
1132
|
+
* The request body for linking a passwordless sms account.
|
|
1066
1133
|
*/
|
|
1067
|
-
export interface
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
source: BridgeFiatVirtualAccountSource;
|
|
1134
|
+
export interface PasswordlessSMSLinkRequestBody {
|
|
1135
|
+
code: string;
|
|
1136
|
+
phoneNumber: string;
|
|
1071
1137
|
}
|
|
1072
1138
|
/**
|
|
1073
|
-
* The request
|
|
1139
|
+
* The request body for transferring a passwordless sms account.
|
|
1074
1140
|
*/
|
|
1075
|
-
export
|
|
1141
|
+
export interface PasswordlessSMSTransferRequestBody {
|
|
1142
|
+
nonce: string;
|
|
1143
|
+
phoneNumber: string;
|
|
1144
|
+
}
|
|
1076
1145
|
/**
|
|
1077
|
-
* The
|
|
1146
|
+
* The request body for unlinking a passwordless sms account.
|
|
1078
1147
|
*/
|
|
1079
|
-
export interface
|
|
1080
|
-
|
|
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
|
|
1152
|
+
* The request body for updating a passwordless sms account.
|
|
1091
1153
|
*/
|
|
1092
|
-
export interface
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
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
|
|
1160
|
+
* The request body for transferring a passwordless account.
|
|
1103
1161
|
*/
|
|
1104
|
-
export interface
|
|
1105
|
-
|
|
1106
|
-
|
|
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
|
|
1167
|
+
* The request body for unlinking a passwordless account.
|
|
1114
1168
|
*/
|
|
1115
|
-
export interface
|
|
1116
|
-
|
|
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
|
|
1173
|
+
* The request body for updating a passwordless account.
|
|
1125
1174
|
*/
|
|
1126
|
-
export interface
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
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
|
|
1181
|
+
* The ID of a Privy app as an OAuth provider. Must start with "privy:".
|
|
1137
1182
|
*/
|
|
1138
|
-
export type
|
|
1183
|
+
export type PrivyOAuthProviderID = `privy:${string}`;
|
|
1139
1184
|
/**
|
|
1140
|
-
*
|
|
1185
|
+
* Response for initiating a passkey authentication ceremony.
|
|
1141
1186
|
*/
|
|
1142
|
-
export interface
|
|
1187
|
+
export interface ResponsePasskeyInitAuthenticate {
|
|
1143
1188
|
/**
|
|
1144
|
-
*
|
|
1189
|
+
* WebAuthn authentication options as defined by the Web Authentication
|
|
1190
|
+
* specification.
|
|
1145
1191
|
*/
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
provider: 'bridge';
|
|
1149
|
-
status: string;
|
|
1192
|
+
options: PasskeyAuthenticatorVerifyOptions;
|
|
1193
|
+
relying_party?: string;
|
|
1150
1194
|
}
|
|
1151
1195
|
/**
|
|
1152
|
-
*
|
|
1196
|
+
* Response for initiating a passkey link ceremony.
|
|
1153
1197
|
*/
|
|
1154
|
-
export interface
|
|
1198
|
+
export interface ResponsePasskeyInitLink {
|
|
1155
1199
|
/**
|
|
1156
|
-
*
|
|
1200
|
+
* WebAuthn registration options as defined by the Web Authentication
|
|
1201
|
+
* specification.
|
|
1157
1202
|
*/
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
provider: 'bridge-sandbox';
|
|
1161
|
-
status: string;
|
|
1203
|
+
options: PasskeyAuthenticatorEnrollmentOptions;
|
|
1204
|
+
relying_party?: string;
|
|
1162
1205
|
}
|
|
1163
1206
|
/**
|
|
1164
|
-
*
|
|
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
|
|
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
|
-
*
|
|
1218
|
+
* Input containing a SIWE wallet address.
|
|
1173
1219
|
*/
|
|
1174
|
-
export interface
|
|
1175
|
-
|
|
1220
|
+
export interface SiweAddressInput {
|
|
1221
|
+
address: string;
|
|
1176
1222
|
}
|
|
1177
1223
|
/**
|
|
1178
|
-
*
|
|
1224
|
+
* The request body for authenticating a SIWE ceremony.
|
|
1179
1225
|
*/
|
|
1180
|
-
export interface
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1226
|
+
export interface SiweAuthenticateRequestBody {
|
|
1227
|
+
message: string;
|
|
1228
|
+
signature: string;
|
|
1229
|
+
chainId?: string | null;
|
|
1230
|
+
connectorType?: string | null;
|
|
1184
1231
|
/**
|
|
1185
|
-
*
|
|
1232
|
+
* Whether to allow sign-up during authentication.
|
|
1186
1233
|
*/
|
|
1187
|
-
|
|
1188
|
-
|
|
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
|
-
*
|
|
1238
|
+
* Input for initiating a SIWE ceremony.
|
|
1196
1239
|
*/
|
|
1197
|
-
export interface
|
|
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
|
-
*
|
|
1269
|
+
* The request body for linking a SIWE ceremony.
|
|
1216
1270
|
*/
|
|
1217
|
-
export interface
|
|
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
|
-
*
|
|
1291
|
+
* A SIWE nonce response.
|
|
1228
1292
|
*/
|
|
1229
|
-
export interface
|
|
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
|
|
1325
|
+
* Input for initiating a SIWS ceremony.
|
|
1242
1326
|
*/
|
|
1243
|
-
export interface
|
|
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
|
-
*
|
|
1332
|
+
* The request body for initiating a SIWS ceremony.
|
|
1255
1333
|
*/
|
|
1256
|
-
export interface
|
|
1334
|
+
export interface SiwsInitRequestBody {
|
|
1257
1335
|
address: string;
|
|
1258
|
-
expires_at: string;
|
|
1259
|
-
nonce: string;
|
|
1260
1336
|
}
|
|
1261
1337
|
/**
|
|
1262
|
-
*
|
|
1338
|
+
* The response body for initiating a SIWS ceremony.
|
|
1263
1339
|
*/
|
|
1264
|
-
export interface
|
|
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
|
-
*
|
|
1356
|
+
* The request body for linking a SIWS ceremony.
|
|
1283
1357
|
*/
|
|
1284
|
-
export interface
|
|
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
|
-
*
|
|
1374
|
+
* The request body for unlinking a SIWS ceremony.
|
|
1318
1375
|
*/
|
|
1319
|
-
export interface
|
|
1376
|
+
export interface SiwsUnlinkRequestBody {
|
|
1320
1377
|
address: string;
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
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
|
-
*
|
|
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
|
|
1382
|
-
|
|
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
|
-
*
|
|
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
|
|
1426
|
-
|
|
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
|
|
1465
|
+
* Input for unlinking a Telegram account.
|
|
1437
1466
|
*/
|
|
1438
|
-
export interface
|
|
1439
|
-
|
|
1440
|
-
fid: number;
|
|
1441
|
-
message: string;
|
|
1442
|
-
signature: string;
|
|
1467
|
+
export interface TelegramUnlinkInput {
|
|
1468
|
+
telegram_user_id: string;
|
|
1443
1469
|
}
|
|
1444
1470
|
/**
|
|
1445
|
-
*
|
|
1471
|
+
* The request body for unlinking a Telegram account.
|
|
1446
1472
|
*/
|
|
1447
|
-
export interface
|
|
1448
|
-
|
|
1449
|
-
redirect_url?: string;
|
|
1450
|
-
relying_party?: string;
|
|
1473
|
+
export interface TelegramUnlinkRequestBody {
|
|
1474
|
+
telegram_user_id: string;
|
|
1451
1475
|
}
|
|
1452
1476
|
/**
|
|
1453
|
-
*
|
|
1477
|
+
* Auth result object returned by Telegram when a user authenticates using a mini
|
|
1478
|
+
* app.
|
|
1454
1479
|
*/
|
|
1455
|
-
export interface
|
|
1456
|
-
|
|
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
|
|
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
|
|
1474
|
-
|
|
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
|
|
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
|
|
1497
|
-
|
|
1511
|
+
export interface TransferSiwsInput {
|
|
1512
|
+
address: string;
|
|
1498
1513
|
nonce: string;
|
|
1514
|
+
connectorType?: string | null;
|
|
1515
|
+
walletClientType?: string | null;
|
|
1499
1516
|
}
|
|
1500
1517
|
/**
|
|
1501
|
-
*
|
|
1518
|
+
* Input for transferring a Telegram account.
|
|
1502
1519
|
*/
|
|
1503
|
-
export interface
|
|
1504
|
-
|
|
1505
|
-
message: string;
|
|
1506
|
-
signature: string;
|
|
1520
|
+
export interface TransferTelegramInput {
|
|
1521
|
+
nonce: string;
|
|
1507
1522
|
/**
|
|
1508
|
-
*
|
|
1523
|
+
* Auth result object returned by Telegram when a user authenticates using the
|
|
1524
|
+
* login widget.
|
|
1509
1525
|
*/
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
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
|
|
1534
|
+
* Input for unlinking a passkey credential.
|
|
1551
1535
|
*/
|
|
1552
|
-
export interface
|
|
1553
|
-
|
|
1554
|
-
|
|
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
|