@privy-io/api-types 0.6.1 → 0.8.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 +72 -0
- package/client.d.mts +53 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -29
- package/client.d.ts.map +1 -1
- package/client.js +32 -7
- package/client.js.map +1 -1
- package/client.mjs +34 -9
- package/client.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/accounts.d.mts +146 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +146 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +197 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +197 -70
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +975 -463
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +975 -463
- 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/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +165 -81
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +165 -81
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +18 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +18 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +446 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +446 -31
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +108 -17
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +108 -17
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +26 -9
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +26 -9
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +62 -0
- package/resources/kraken-embed.d.mts.map +1 -0
- package/resources/kraken-embed.d.ts +62 -0
- package/resources/kraken-embed.d.ts.map +1 -0
- package/resources/kraken-embed.js +9 -0
- package/resources/kraken-embed.js.map +1 -0
- package/resources/kraken-embed.mjs +5 -0
- package/resources/kraken-embed.mjs.map +1 -0
- package/resources/policies.d.mts +342 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +342 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +51 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +51 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +158 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +158 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -0
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +64 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +64 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +187 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +187 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +3 -0
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +3 -0
- package/resources/wallets/balance.mjs.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 +10 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -6
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +3 -0
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +3 -0
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +2399 -936
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2399 -936
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +28 -10
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +28 -10
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +780 -339
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +780 -339
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +50 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +50 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +884 -99
- package/src/resources/accounts.ts +179 -3
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +250 -85
- package/src/resources/client-auth.ts +1453 -786
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +444 -61
- package/src/resources/intents.ts +575 -37
- package/src/resources/key-quorums.ts +137 -21
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +582 -1550
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +188 -91
- package/src/resources/users.ts +82 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +146 -16
- package/src/resources/wallets/transactions.ts +12 -4
- package/src/resources/wallets/wallets.ts +2922 -974
- package/src/resources/webhooks.ts +970 -454
- package/src/resources/yield.ts +68 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/apps.d.mts
CHANGED
|
@@ -1,7 +1,113 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import * as ClientAuthAPI from "./client-auth.mjs";
|
|
3
|
+
import * as EmbeddedWalletsAPI from "./embedded-wallets.mjs";
|
|
3
4
|
export declare class Apps extends APIResource {
|
|
4
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
8
|
+
*/
|
|
9
|
+
export type Caip2 = string;
|
|
10
|
+
/**
|
|
11
|
+
* A currency asset type.
|
|
12
|
+
*/
|
|
13
|
+
export type CurrencyAsset = 'native-currency' | 'USDC';
|
|
14
|
+
/**
|
|
15
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
16
|
+
*/
|
|
17
|
+
export interface Currency {
|
|
18
|
+
/**
|
|
19
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
20
|
+
*/
|
|
21
|
+
chain: Caip2;
|
|
22
|
+
/**
|
|
23
|
+
* A currency asset type.
|
|
24
|
+
*/
|
|
25
|
+
asset?: CurrencyAsset;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Whether to create embedded wallets on login.
|
|
29
|
+
*/
|
|
30
|
+
export type EmbeddedWalletCreateOnLogin = 'users-without-wallets' | 'all-users' | 'off';
|
|
31
|
+
/**
|
|
32
|
+
* Chain-specific configuration for embedded wallets.
|
|
33
|
+
*/
|
|
34
|
+
export interface EmbeddedWalletChainConfig {
|
|
35
|
+
/**
|
|
36
|
+
* Whether to create embedded wallets on login.
|
|
37
|
+
*/
|
|
38
|
+
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A user-owned recovery option for embedded wallets.
|
|
42
|
+
*/
|
|
43
|
+
export type UserOwnedRecoveryOption = 'user-passcode' | 'google-drive' | 'icloud';
|
|
44
|
+
/**
|
|
45
|
+
* Input configuration for embedded wallets.
|
|
46
|
+
*/
|
|
47
|
+
export interface EmbeddedWalletInputSchema {
|
|
48
|
+
/**
|
|
49
|
+
* Whether to create embedded wallets on login.
|
|
50
|
+
*/
|
|
51
|
+
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
52
|
+
/**
|
|
53
|
+
* Chain-specific configuration for embedded wallets.
|
|
54
|
+
*/
|
|
55
|
+
ethereum: EmbeddedWalletChainConfig;
|
|
56
|
+
/**
|
|
57
|
+
* Chain-specific configuration for embedded wallets.
|
|
58
|
+
*/
|
|
59
|
+
solana: EmbeddedWalletChainConfig;
|
|
60
|
+
user_owned_recovery_options: Array<UserOwnedRecoveryOption>;
|
|
61
|
+
require_user_owned_recovery_on_create?: boolean;
|
|
62
|
+
require_user_password_on_create?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The mode for embedded wallets.
|
|
66
|
+
*/
|
|
67
|
+
export type EmbeddedWalletMode = 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
|
|
68
|
+
/**
|
|
69
|
+
* Configuration for embedded wallets including the mode.
|
|
70
|
+
*/
|
|
71
|
+
export interface EmbeddedWalletConfigSchema extends EmbeddedWalletInputSchema {
|
|
72
|
+
/**
|
|
73
|
+
* The mode for embedded wallets.
|
|
74
|
+
*/
|
|
75
|
+
mode: EmbeddedWalletMode;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Configuration for Telegram authentication.
|
|
79
|
+
*/
|
|
80
|
+
export interface TelegramAuthConfigSchema {
|
|
81
|
+
bot_id: string;
|
|
82
|
+
bot_name: string;
|
|
83
|
+
link_enabled: boolean;
|
|
84
|
+
seamless_auth_enabled: boolean;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A funding method for on-ramp.
|
|
88
|
+
*/
|
|
89
|
+
export type FundingMethodEnum = 'moonpay' | 'coinbase-onramp' | 'external';
|
|
90
|
+
/**
|
|
91
|
+
* A funding option with method and provider.
|
|
92
|
+
*/
|
|
93
|
+
export interface FundingOption {
|
|
94
|
+
method: string;
|
|
95
|
+
provider: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Configuration for funding and on-ramp options.
|
|
99
|
+
*/
|
|
100
|
+
export interface FundingConfigResponseSchema {
|
|
101
|
+
cross_chain_bridging_enabled: boolean;
|
|
102
|
+
default_recommended_amount: string;
|
|
103
|
+
/**
|
|
104
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
105
|
+
*/
|
|
106
|
+
default_recommended_currency: Currency;
|
|
107
|
+
methods: Array<FundingMethodEnum>;
|
|
108
|
+
options: Array<FundingOption>;
|
|
109
|
+
prompt_funding_on_wallet_creation: boolean;
|
|
110
|
+
}
|
|
5
111
|
/**
|
|
6
112
|
* The response for getting an app.
|
|
7
113
|
*/
|
|
@@ -21,7 +127,10 @@ export interface AppResponse {
|
|
|
21
127
|
disable_plus_emails: boolean;
|
|
22
128
|
discord_oauth: boolean;
|
|
23
129
|
email_auth: boolean;
|
|
24
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Configuration for embedded wallets including the mode.
|
|
132
|
+
*/
|
|
133
|
+
embedded_wallet_config: EmbeddedWalletConfigSchema;
|
|
25
134
|
enabled_captcha_provider: 'turnstile' | 'hcaptcha' | null;
|
|
26
135
|
enforce_wallet_uis: boolean;
|
|
27
136
|
farcaster_auth: boolean;
|
|
@@ -44,7 +153,10 @@ export interface AppResponse {
|
|
|
44
153
|
privacy_policy_url: string | null;
|
|
45
154
|
require_users_accept_terms: boolean | null;
|
|
46
155
|
show_wallet_login_first: boolean;
|
|
47
|
-
|
|
156
|
+
/**
|
|
157
|
+
* The configuration object for smart wallets.
|
|
158
|
+
*/
|
|
159
|
+
smart_wallet_config: EmbeddedWalletsAPI.SmartWalletConfiguration;
|
|
48
160
|
sms_auth: boolean;
|
|
49
161
|
solana_wallet_auth: boolean;
|
|
50
162
|
spotify_oauth: boolean;
|
|
@@ -60,8 +172,14 @@ export interface AppResponse {
|
|
|
60
172
|
wallet_connect_cloud_project_id: string | null;
|
|
61
173
|
whatsapp_enabled: boolean;
|
|
62
174
|
captcha_site_key?: string;
|
|
63
|
-
|
|
64
|
-
|
|
175
|
+
/**
|
|
176
|
+
* Configuration for funding and on-ramp options.
|
|
177
|
+
*/
|
|
178
|
+
funding_config?: FundingConfigResponseSchema;
|
|
179
|
+
/**
|
|
180
|
+
* Configuration for Telegram authentication.
|
|
181
|
+
*/
|
|
182
|
+
telegram_auth_config?: TelegramAuthConfigSchema;
|
|
65
183
|
}
|
|
66
184
|
export declare namespace AppResponse {
|
|
67
185
|
interface AllowlistConfig {
|
|
@@ -80,73 +198,82 @@ export declare namespace AppResponse {
|
|
|
80
198
|
provider_display_name: string;
|
|
81
199
|
provider_icon_url: string;
|
|
82
200
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Allowlist invite input for an email address.
|
|
204
|
+
*/
|
|
205
|
+
export interface EmailInviteInput {
|
|
206
|
+
type: 'email';
|
|
207
|
+
value: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Allowlist invite input for a wallet address.
|
|
211
|
+
*/
|
|
212
|
+
export interface WalletInviteInput {
|
|
213
|
+
type: 'wallet';
|
|
214
|
+
value: string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Allowlist invite input for a phone number.
|
|
218
|
+
*/
|
|
219
|
+
export interface PhoneInviteInput {
|
|
220
|
+
type: 'phone';
|
|
221
|
+
value: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Input for adding or removing an allowlist entry. Discriminated by type.
|
|
225
|
+
*/
|
|
226
|
+
export type UserInviteInput = EmailInviteInput | WalletInviteInput | PhoneInviteInput;
|
|
227
|
+
/**
|
|
228
|
+
* An allowlist entry for an app.
|
|
229
|
+
*/
|
|
230
|
+
export interface AllowlistEntry {
|
|
231
|
+
id: string;
|
|
232
|
+
acceptedAt: number | null;
|
|
233
|
+
appId: string;
|
|
234
|
+
type: string;
|
|
235
|
+
value: string;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Confirmation response for deleting an allowlist entry.
|
|
239
|
+
*/
|
|
240
|
+
export interface AllowlistDeletionResponse {
|
|
241
|
+
message: string;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* A test account for an app.
|
|
245
|
+
*/
|
|
246
|
+
export interface TestAccount {
|
|
247
|
+
id: string;
|
|
248
|
+
created_at: string;
|
|
249
|
+
email: string;
|
|
250
|
+
otp_code: string;
|
|
251
|
+
phone_number: string;
|
|
252
|
+
updated_at: string;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Response for listing test accounts for an app.
|
|
256
|
+
*/
|
|
257
|
+
export interface TestAccountsResponse {
|
|
258
|
+
data: Array<TestAccount>;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Input for configuring gas sponsorship settings for an app.
|
|
262
|
+
*/
|
|
263
|
+
export interface GasSponsorshipConfigurationInput {
|
|
264
|
+
configured_networks?: Array<Caip2>;
|
|
265
|
+
require_app_secret?: boolean;
|
|
266
|
+
sponsorship_enabled?: boolean;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Gas sponsorship configuration for an app.
|
|
270
|
+
*/
|
|
271
|
+
export interface GasSponsorshipConfiguration {
|
|
272
|
+
configured_networks: Array<Caip2>;
|
|
273
|
+
require_app_secret: boolean;
|
|
274
|
+
sponsorship_enabled: boolean;
|
|
148
275
|
}
|
|
149
276
|
export declare namespace Apps {
|
|
150
|
-
export { type AppResponse as AppResponse };
|
|
277
|
+
export { type Caip2 as Caip2, type CurrencyAsset as CurrencyAsset, type Currency as Currency, type EmbeddedWalletCreateOnLogin as EmbeddedWalletCreateOnLogin, type EmbeddedWalletChainConfig as EmbeddedWalletChainConfig, type UserOwnedRecoveryOption as UserOwnedRecoveryOption, type EmbeddedWalletInputSchema as EmbeddedWalletInputSchema, type EmbeddedWalletMode as EmbeddedWalletMode, type EmbeddedWalletConfigSchema as EmbeddedWalletConfigSchema, type TelegramAuthConfigSchema as TelegramAuthConfigSchema, type FundingMethodEnum as FundingMethodEnum, type FundingOption as FundingOption, type FundingConfigResponseSchema as FundingConfigResponseSchema, type AppResponse as AppResponse, type EmailInviteInput as EmailInviteInput, type WalletInviteInput as WalletInviteInput, type PhoneInviteInput as PhoneInviteInput, type UserInviteInput as UserInviteInput, type AllowlistEntry as AllowlistEntry, type AllowlistDeletionResponse as AllowlistDeletionResponse, type TestAccount as TestAccount, type TestAccountsResponse as TestAccountsResponse, type GasSponsorshipConfigurationInput as GasSponsorshipConfigurationInput, type GasSponsorshipConfiguration as GasSponsorshipConfiguration, };
|
|
151
278
|
}
|
|
152
279
|
//# sourceMappingURL=apps.d.mts.map
|
package/resources/apps.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.mts","sourceRoot":"","sources":["../src/resources/apps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;
|
|
1
|
+
{"version":3,"file":"apps.d.mts","sourceRoot":"","sources":["../src/resources/apps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,KAAK,kBAAkB;AAE9B,qBAAa,IAAK,SAAQ,WAAW;CAAG;AAExC;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,MAAM,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,GAAG,WAAW,GAAG,KAAK,CAAC;AAExF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,eAAe,EAAE,2BAA2B,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG,cAAc,GAAG,QAAQ,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,eAAe,EAAE,2BAA2B,CAAC;IAE7C;;OAEG;IACH,QAAQ,EAAE,yBAAyB,CAAC;IAEpC;;OAEG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAElC,2BAA2B,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAE5D,qCAAqC,CAAC,EAAE,OA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EACnB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/apps.d.ts
CHANGED
|
@@ -1,7 +1,113 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as ClientAuthAPI from "./client-auth.js";
|
|
3
|
+
import * as EmbeddedWalletsAPI from "./embedded-wallets.js";
|
|
3
4
|
export declare class Apps extends APIResource {
|
|
4
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
8
|
+
*/
|
|
9
|
+
export type Caip2 = string;
|
|
10
|
+
/**
|
|
11
|
+
* A currency asset type.
|
|
12
|
+
*/
|
|
13
|
+
export type CurrencyAsset = 'native-currency' | 'USDC';
|
|
14
|
+
/**
|
|
15
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
16
|
+
*/
|
|
17
|
+
export interface Currency {
|
|
18
|
+
/**
|
|
19
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
20
|
+
*/
|
|
21
|
+
chain: Caip2;
|
|
22
|
+
/**
|
|
23
|
+
* A currency asset type.
|
|
24
|
+
*/
|
|
25
|
+
asset?: CurrencyAsset;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Whether to create embedded wallets on login.
|
|
29
|
+
*/
|
|
30
|
+
export type EmbeddedWalletCreateOnLogin = 'users-without-wallets' | 'all-users' | 'off';
|
|
31
|
+
/**
|
|
32
|
+
* Chain-specific configuration for embedded wallets.
|
|
33
|
+
*/
|
|
34
|
+
export interface EmbeddedWalletChainConfig {
|
|
35
|
+
/**
|
|
36
|
+
* Whether to create embedded wallets on login.
|
|
37
|
+
*/
|
|
38
|
+
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A user-owned recovery option for embedded wallets.
|
|
42
|
+
*/
|
|
43
|
+
export type UserOwnedRecoveryOption = 'user-passcode' | 'google-drive' | 'icloud';
|
|
44
|
+
/**
|
|
45
|
+
* Input configuration for embedded wallets.
|
|
46
|
+
*/
|
|
47
|
+
export interface EmbeddedWalletInputSchema {
|
|
48
|
+
/**
|
|
49
|
+
* Whether to create embedded wallets on login.
|
|
50
|
+
*/
|
|
51
|
+
create_on_login: EmbeddedWalletCreateOnLogin;
|
|
52
|
+
/**
|
|
53
|
+
* Chain-specific configuration for embedded wallets.
|
|
54
|
+
*/
|
|
55
|
+
ethereum: EmbeddedWalletChainConfig;
|
|
56
|
+
/**
|
|
57
|
+
* Chain-specific configuration for embedded wallets.
|
|
58
|
+
*/
|
|
59
|
+
solana: EmbeddedWalletChainConfig;
|
|
60
|
+
user_owned_recovery_options: Array<UserOwnedRecoveryOption>;
|
|
61
|
+
require_user_owned_recovery_on_create?: boolean;
|
|
62
|
+
require_user_password_on_create?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The mode for embedded wallets.
|
|
66
|
+
*/
|
|
67
|
+
export type EmbeddedWalletMode = 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
|
|
68
|
+
/**
|
|
69
|
+
* Configuration for embedded wallets including the mode.
|
|
70
|
+
*/
|
|
71
|
+
export interface EmbeddedWalletConfigSchema extends EmbeddedWalletInputSchema {
|
|
72
|
+
/**
|
|
73
|
+
* The mode for embedded wallets.
|
|
74
|
+
*/
|
|
75
|
+
mode: EmbeddedWalletMode;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Configuration for Telegram authentication.
|
|
79
|
+
*/
|
|
80
|
+
export interface TelegramAuthConfigSchema {
|
|
81
|
+
bot_id: string;
|
|
82
|
+
bot_name: string;
|
|
83
|
+
link_enabled: boolean;
|
|
84
|
+
seamless_auth_enabled: boolean;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A funding method for on-ramp.
|
|
88
|
+
*/
|
|
89
|
+
export type FundingMethodEnum = 'moonpay' | 'coinbase-onramp' | 'external';
|
|
90
|
+
/**
|
|
91
|
+
* A funding option with method and provider.
|
|
92
|
+
*/
|
|
93
|
+
export interface FundingOption {
|
|
94
|
+
method: string;
|
|
95
|
+
provider: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Configuration for funding and on-ramp options.
|
|
99
|
+
*/
|
|
100
|
+
export interface FundingConfigResponseSchema {
|
|
101
|
+
cross_chain_bridging_enabled: boolean;
|
|
102
|
+
default_recommended_amount: string;
|
|
103
|
+
/**
|
|
104
|
+
* A crypto currency identified by a CAIP-2 chain ID and optional asset.
|
|
105
|
+
*/
|
|
106
|
+
default_recommended_currency: Currency;
|
|
107
|
+
methods: Array<FundingMethodEnum>;
|
|
108
|
+
options: Array<FundingOption>;
|
|
109
|
+
prompt_funding_on_wallet_creation: boolean;
|
|
110
|
+
}
|
|
5
111
|
/**
|
|
6
112
|
* The response for getting an app.
|
|
7
113
|
*/
|
|
@@ -21,7 +127,10 @@ export interface AppResponse {
|
|
|
21
127
|
disable_plus_emails: boolean;
|
|
22
128
|
discord_oauth: boolean;
|
|
23
129
|
email_auth: boolean;
|
|
24
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Configuration for embedded wallets including the mode.
|
|
132
|
+
*/
|
|
133
|
+
embedded_wallet_config: EmbeddedWalletConfigSchema;
|
|
25
134
|
enabled_captcha_provider: 'turnstile' | 'hcaptcha' | null;
|
|
26
135
|
enforce_wallet_uis: boolean;
|
|
27
136
|
farcaster_auth: boolean;
|
|
@@ -44,7 +153,10 @@ export interface AppResponse {
|
|
|
44
153
|
privacy_policy_url: string | null;
|
|
45
154
|
require_users_accept_terms: boolean | null;
|
|
46
155
|
show_wallet_login_first: boolean;
|
|
47
|
-
|
|
156
|
+
/**
|
|
157
|
+
* The configuration object for smart wallets.
|
|
158
|
+
*/
|
|
159
|
+
smart_wallet_config: EmbeddedWalletsAPI.SmartWalletConfiguration;
|
|
48
160
|
sms_auth: boolean;
|
|
49
161
|
solana_wallet_auth: boolean;
|
|
50
162
|
spotify_oauth: boolean;
|
|
@@ -60,8 +172,14 @@ export interface AppResponse {
|
|
|
60
172
|
wallet_connect_cloud_project_id: string | null;
|
|
61
173
|
whatsapp_enabled: boolean;
|
|
62
174
|
captcha_site_key?: string;
|
|
63
|
-
|
|
64
|
-
|
|
175
|
+
/**
|
|
176
|
+
* Configuration for funding and on-ramp options.
|
|
177
|
+
*/
|
|
178
|
+
funding_config?: FundingConfigResponseSchema;
|
|
179
|
+
/**
|
|
180
|
+
* Configuration for Telegram authentication.
|
|
181
|
+
*/
|
|
182
|
+
telegram_auth_config?: TelegramAuthConfigSchema;
|
|
65
183
|
}
|
|
66
184
|
export declare namespace AppResponse {
|
|
67
185
|
interface AllowlistConfig {
|
|
@@ -80,73 +198,82 @@ export declare namespace AppResponse {
|
|
|
80
198
|
provider_display_name: string;
|
|
81
199
|
provider_icon_url: string;
|
|
82
200
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Allowlist invite input for an email address.
|
|
204
|
+
*/
|
|
205
|
+
export interface EmailInviteInput {
|
|
206
|
+
type: 'email';
|
|
207
|
+
value: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Allowlist invite input for a wallet address.
|
|
211
|
+
*/
|
|
212
|
+
export interface WalletInviteInput {
|
|
213
|
+
type: 'wallet';
|
|
214
|
+
value: string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Allowlist invite input for a phone number.
|
|
218
|
+
*/
|
|
219
|
+
export interface PhoneInviteInput {
|
|
220
|
+
type: 'phone';
|
|
221
|
+
value: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Input for adding or removing an allowlist entry. Discriminated by type.
|
|
225
|
+
*/
|
|
226
|
+
export type UserInviteInput = EmailInviteInput | WalletInviteInput | PhoneInviteInput;
|
|
227
|
+
/**
|
|
228
|
+
* An allowlist entry for an app.
|
|
229
|
+
*/
|
|
230
|
+
export interface AllowlistEntry {
|
|
231
|
+
id: string;
|
|
232
|
+
acceptedAt: number | null;
|
|
233
|
+
appId: string;
|
|
234
|
+
type: string;
|
|
235
|
+
value: string;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Confirmation response for deleting an allowlist entry.
|
|
239
|
+
*/
|
|
240
|
+
export interface AllowlistDeletionResponse {
|
|
241
|
+
message: string;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* A test account for an app.
|
|
245
|
+
*/
|
|
246
|
+
export interface TestAccount {
|
|
247
|
+
id: string;
|
|
248
|
+
created_at: string;
|
|
249
|
+
email: string;
|
|
250
|
+
otp_code: string;
|
|
251
|
+
phone_number: string;
|
|
252
|
+
updated_at: string;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Response for listing test accounts for an app.
|
|
256
|
+
*/
|
|
257
|
+
export interface TestAccountsResponse {
|
|
258
|
+
data: Array<TestAccount>;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Input for configuring gas sponsorship settings for an app.
|
|
262
|
+
*/
|
|
263
|
+
export interface GasSponsorshipConfigurationInput {
|
|
264
|
+
configured_networks?: Array<Caip2>;
|
|
265
|
+
require_app_secret?: boolean;
|
|
266
|
+
sponsorship_enabled?: boolean;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Gas sponsorship configuration for an app.
|
|
270
|
+
*/
|
|
271
|
+
export interface GasSponsorshipConfiguration {
|
|
272
|
+
configured_networks: Array<Caip2>;
|
|
273
|
+
require_app_secret: boolean;
|
|
274
|
+
sponsorship_enabled: boolean;
|
|
148
275
|
}
|
|
149
276
|
export declare namespace Apps {
|
|
150
|
-
export { type AppResponse as AppResponse };
|
|
277
|
+
export { type Caip2 as Caip2, type CurrencyAsset as CurrencyAsset, type Currency as Currency, type EmbeddedWalletCreateOnLogin as EmbeddedWalletCreateOnLogin, type EmbeddedWalletChainConfig as EmbeddedWalletChainConfig, type UserOwnedRecoveryOption as UserOwnedRecoveryOption, type EmbeddedWalletInputSchema as EmbeddedWalletInputSchema, type EmbeddedWalletMode as EmbeddedWalletMode, type EmbeddedWalletConfigSchema as EmbeddedWalletConfigSchema, type TelegramAuthConfigSchema as TelegramAuthConfigSchema, type FundingMethodEnum as FundingMethodEnum, type FundingOption as FundingOption, type FundingConfigResponseSchema as FundingConfigResponseSchema, type AppResponse as AppResponse, type EmailInviteInput as EmailInviteInput, type WalletInviteInput as WalletInviteInput, type PhoneInviteInput as PhoneInviteInput, type UserInviteInput as UserInviteInput, type AllowlistEntry as AllowlistEntry, type AllowlistDeletionResponse as AllowlistDeletionResponse, type TestAccount as TestAccount, type TestAccountsResponse as TestAccountsResponse, type GasSponsorshipConfigurationInput as GasSponsorshipConfigurationInput, type GasSponsorshipConfiguration as GasSponsorshipConfiguration, };
|
|
151
278
|
}
|
|
152
279
|
//# sourceMappingURL=apps.d.ts.map
|