@privy-io/node 0.10.1 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/client.d.mts +37 -19
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +37 -19
  5. package/client.d.ts.map +1 -1
  6. package/client.js +29 -10
  7. package/client.js.map +1 -1
  8. package/client.mjs +30 -11
  9. package/client.mjs.map +1 -1
  10. package/index.d.mts +2 -0
  11. package/index.d.mts.map +1 -1
  12. package/index.d.ts +2 -0
  13. package/index.d.ts.map +1 -1
  14. package/index.js.map +1 -1
  15. package/index.mjs.map +1 -1
  16. package/package.json +12 -1
  17. package/public-api/PrivyClient.d.mts +3 -0
  18. package/public-api/PrivyClient.d.mts.map +1 -1
  19. package/public-api/PrivyClient.d.ts +3 -0
  20. package/public-api/PrivyClient.d.ts.map +1 -1
  21. package/public-api/PrivyClient.js +5 -0
  22. package/public-api/PrivyClient.js.map +1 -1
  23. package/public-api/PrivyClient.mjs +5 -0
  24. package/public-api/PrivyClient.mjs.map +1 -1
  25. package/public-api/services/apps.d.mts +25 -0
  26. package/public-api/services/apps.d.mts.map +1 -0
  27. package/public-api/services/apps.d.ts +25 -0
  28. package/public-api/services/apps.d.ts.map +1 -0
  29. package/public-api/services/apps.js +56 -0
  30. package/public-api/services/apps.js.map +1 -0
  31. package/public-api/services/apps.mjs +52 -0
  32. package/public-api/services/apps.mjs.map +1 -0
  33. package/public-api/services/policies.d.mts +6 -2
  34. package/public-api/services/policies.d.mts.map +1 -1
  35. package/public-api/services/policies.d.ts +6 -2
  36. package/public-api/services/policies.d.ts.map +1 -1
  37. package/public-api/services/policies.js +6 -0
  38. package/public-api/services/policies.js.map +1 -1
  39. package/public-api/services/policies.mjs +6 -0
  40. package/public-api/services/policies.mjs.map +1 -1
  41. package/public-api/services/wallets.d.mts +5 -1
  42. package/public-api/services/wallets.d.mts.map +1 -1
  43. package/public-api/services/wallets.d.ts +5 -1
  44. package/public-api/services/wallets.d.ts.map +1 -1
  45. package/public-api/services/wallets.js +6 -0
  46. package/public-api/services/wallets.js.map +1 -1
  47. package/public-api/services/wallets.mjs +6 -0
  48. package/public-api/services/wallets.mjs.map +1 -1
  49. package/resources/accounts.d.mts +182 -4
  50. package/resources/accounts.d.mts.map +1 -1
  51. package/resources/accounts.d.ts +182 -4
  52. package/resources/accounts.d.ts.map +1 -1
  53. package/resources/apps/allowlist.d.mts +81 -0
  54. package/resources/apps/allowlist.d.mts.map +1 -0
  55. package/resources/apps/allowlist.d.ts +81 -0
  56. package/resources/apps/allowlist.d.ts.map +1 -0
  57. package/resources/apps/allowlist.js +56 -0
  58. package/resources/apps/allowlist.js.map +1 -0
  59. package/resources/apps/allowlist.mjs +52 -0
  60. package/resources/apps/allowlist.mjs.map +1 -0
  61. package/resources/apps/apps.d.mts +238 -0
  62. package/resources/apps/apps.d.mts.map +1 -0
  63. package/resources/apps/apps.d.ts +238 -0
  64. package/resources/apps/apps.d.ts.map +1 -0
  65. package/resources/apps/apps.js +44 -0
  66. package/resources/apps/apps.js.map +1 -0
  67. package/resources/apps/apps.mjs +39 -0
  68. package/resources/apps/apps.mjs.map +1 -0
  69. package/resources/apps/index.d.mts +3 -0
  70. package/resources/apps/index.d.mts.map +1 -0
  71. package/resources/apps/index.d.ts +3 -0
  72. package/resources/apps/index.d.ts.map +1 -0
  73. package/resources/apps/index.js +9 -0
  74. package/resources/apps/index.js.map +1 -0
  75. package/resources/apps/index.mjs +4 -0
  76. package/resources/apps/index.mjs.map +1 -0
  77. package/resources/apps.d.mts +1 -151
  78. package/resources/apps.d.mts.map +1 -1
  79. package/resources/apps.d.ts +1 -151
  80. package/resources/apps.d.ts.map +1 -1
  81. package/resources/apps.js +2 -5
  82. package/resources/apps.js.map +1 -1
  83. package/resources/apps.mjs +1 -3
  84. package/resources/apps.mjs.map +1 -1
  85. package/resources/client-auth.d.mts +144 -1
  86. package/resources/client-auth.d.mts.map +1 -1
  87. package/resources/client-auth.d.ts +144 -1
  88. package/resources/client-auth.d.ts.map +1 -1
  89. package/resources/index.d.mts +11 -10
  90. package/resources/index.d.mts.map +1 -1
  91. package/resources/index.d.ts +11 -10
  92. package/resources/index.d.ts.map +1 -1
  93. package/resources/index.js +4 -2
  94. package/resources/index.js.map +1 -1
  95. package/resources/index.mjs +3 -2
  96. package/resources/index.mjs.map +1 -1
  97. package/resources/intents.d.mts +2815 -31
  98. package/resources/intents.d.mts.map +1 -1
  99. package/resources/intents.d.ts +2815 -31
  100. package/resources/intents.d.ts.map +1 -1
  101. package/resources/intents.js +156 -0
  102. package/resources/intents.js.map +1 -1
  103. package/resources/intents.mjs +156 -0
  104. package/resources/intents.mjs.map +1 -1
  105. package/resources/key-quorums.d.mts +45 -2
  106. package/resources/key-quorums.d.mts.map +1 -1
  107. package/resources/key-quorums.d.ts +45 -2
  108. package/resources/key-quorums.d.ts.map +1 -1
  109. package/resources/key-quorums.js +18 -1
  110. package/resources/key-quorums.js.map +1 -1
  111. package/resources/key-quorums.mjs +18 -1
  112. package/resources/key-quorums.mjs.map +1 -1
  113. package/resources/kraken-embed.d.mts +62 -0
  114. package/resources/kraken-embed.d.mts.map +1 -0
  115. package/resources/kraken-embed.d.ts +62 -0
  116. package/resources/kraken-embed.d.ts.map +1 -0
  117. package/resources/kraken-embed.js +9 -0
  118. package/resources/kraken-embed.js.map +1 -0
  119. package/resources/kraken-embed.mjs +5 -0
  120. package/resources/kraken-embed.mjs.map +1 -0
  121. package/resources/policies.d.mts +63 -56
  122. package/resources/policies.d.mts.map +1 -1
  123. package/resources/policies.d.ts +63 -56
  124. package/resources/policies.d.ts.map +1 -1
  125. package/resources/policies.js +3 -0
  126. package/resources/policies.js.map +1 -1
  127. package/resources/policies.mjs +3 -0
  128. package/resources/policies.mjs.map +1 -1
  129. package/resources/transactions.d.mts +3 -0
  130. package/resources/transactions.d.mts.map +1 -1
  131. package/resources/transactions.d.ts +3 -0
  132. package/resources/transactions.d.ts.map +1 -1
  133. package/resources/transactions.js +3 -0
  134. package/resources/transactions.js.map +1 -1
  135. package/resources/transactions.mjs +3 -0
  136. package/resources/transactions.mjs.map +1 -1
  137. package/resources/users.d.mts +50 -47
  138. package/resources/users.d.mts.map +1 -1
  139. package/resources/users.d.ts +50 -47
  140. package/resources/users.d.ts.map +1 -1
  141. package/resources/users.js +3 -0
  142. package/resources/users.js.map +1 -1
  143. package/resources/users.mjs +3 -0
  144. package/resources/users.mjs.map +1 -1
  145. package/resources/wallets/balance.d.mts +7 -4
  146. package/resources/wallets/balance.d.mts.map +1 -1
  147. package/resources/wallets/balance.d.ts +7 -4
  148. package/resources/wallets/balance.d.ts.map +1 -1
  149. package/resources/wallets/balance.js +3 -0
  150. package/resources/wallets/balance.js.map +1 -1
  151. package/resources/wallets/balance.mjs +3 -0
  152. package/resources/wallets/balance.mjs.map +1 -1
  153. package/resources/wallets/index.d.mts +1 -1
  154. package/resources/wallets/index.d.mts.map +1 -1
  155. package/resources/wallets/index.d.ts +1 -1
  156. package/resources/wallets/index.d.ts.map +1 -1
  157. package/resources/wallets/index.js.map +1 -1
  158. package/resources/wallets/index.mjs.map +1 -1
  159. package/resources/wallets/transactions.d.mts +9 -6
  160. package/resources/wallets/transactions.d.mts.map +1 -1
  161. package/resources/wallets/transactions.d.ts +9 -6
  162. package/resources/wallets/transactions.d.ts.map +1 -1
  163. package/resources/wallets/transactions.js +3 -0
  164. package/resources/wallets/transactions.js.map +1 -1
  165. package/resources/wallets/transactions.mjs +3 -0
  166. package/resources/wallets/transactions.mjs.map +1 -1
  167. package/resources/wallets/wallets.d.mts +126 -69
  168. package/resources/wallets/wallets.d.mts.map +1 -1
  169. package/resources/wallets/wallets.d.ts +126 -69
  170. package/resources/wallets/wallets.d.ts.map +1 -1
  171. package/resources/wallets/wallets.js +11 -5
  172. package/resources/wallets/wallets.js.map +1 -1
  173. package/resources/wallets/wallets.mjs +11 -5
  174. package/resources/wallets/wallets.mjs.map +1 -1
  175. package/resources/webhooks.d.mts +319 -283
  176. package/resources/webhooks.d.mts.map +1 -1
  177. package/resources/webhooks.d.ts +319 -283
  178. package/resources/webhooks.d.ts.map +1 -1
  179. package/resources/webhooks.js.map +1 -1
  180. package/resources/webhooks.mjs.map +1 -1
  181. package/resources/yield.d.mts +26 -9
  182. package/resources/yield.d.mts.map +1 -1
  183. package/resources/yield.d.ts +26 -9
  184. package/resources/yield.d.ts.map +1 -1
  185. package/src/client.ts +196 -37
  186. package/src/index.ts +10 -0
  187. package/src/public-api/PrivyClient.ts +7 -0
  188. package/src/public-api/services/apps.ts +85 -0
  189. package/src/public-api/services/policies.ts +15 -1
  190. package/src/public-api/services/wallets.ts +14 -0
  191. package/src/resources/accounts.ts +217 -3
  192. package/src/resources/apps/allowlist.ts +126 -0
  193. package/src/resources/apps/apps.ts +391 -0
  194. package/src/resources/apps/index.ts +20 -0
  195. package/src/resources/apps.ts +1 -257
  196. package/src/resources/client-auth.ts +202 -0
  197. package/src/resources/index.ts +93 -21
  198. package/src/resources/intents.ts +4579 -40
  199. package/src/resources/key-quorums.ts +50 -2
  200. package/src/resources/kraken-embed.ts +85 -0
  201. package/src/resources/policies.ts +83 -76
  202. package/src/resources/transactions.ts +3 -0
  203. package/src/resources/users.ts +66 -63
  204. package/src/resources/wallets/balance.ts +9 -2
  205. package/src/resources/wallets/index.ts +4 -2
  206. package/src/resources/wallets/transactions.ts +10 -4
  207. package/src/resources/wallets/wallets.ts +171 -93
  208. package/src/resources/webhooks.ts +454 -438
  209. package/src/resources/yield.ts +39 -10
  210. package/src/version.ts +1 -1
  211. package/version.d.mts +1 -1
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/version.mjs +1 -1
@@ -0,0 +1,391 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as ClientAuthAPI from '../client-auth';
5
+ import * as AllowlistAPI from './allowlist';
6
+ import { Allowlist, AllowlistCreateParams, AllowlistDeleteParams, AllowlistListResponse } from './allowlist';
7
+ import { APIPromise } from '../../core/api-promise';
8
+ import { RequestOptions } from '../../internal/request-options';
9
+ import { path } from '../../internal/utils/path';
10
+
11
+ /**
12
+ * Operations related to app settings and allowlist management
13
+ */
14
+ export class Apps extends APIResource {
15
+ allowlist: AllowlistAPI.Allowlist = new AllowlistAPI.Allowlist(this._client);
16
+
17
+ /**
18
+ * Get the settings and configuration for an app.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const appResponse = await client.apps.get('app_id');
23
+ * ```
24
+ */
25
+ get(appID: string, options?: RequestOptions): APIPromise<AppResponse> {
26
+ return this._client.get(path`/v1/apps/${appID}`, options);
27
+ }
28
+
29
+ /**
30
+ * Get the test accounts and credentials for an app.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const testAccountsResponse =
35
+ * await client.apps.getTestCredentials('app_id');
36
+ * ```
37
+ */
38
+ getTestCredentials(appID: string, options?: RequestOptions): APIPromise<TestAccountsResponse> {
39
+ return this._client.get(path`/v1/apps/${appID}/test_credentials`, options);
40
+ }
41
+ }
42
+
43
+ /**
44
+ * The response for getting an app.
45
+ */
46
+ export interface AppResponse {
47
+ id: string;
48
+
49
+ accent_color: string | null;
50
+
51
+ allowed_domains: Array<string>;
52
+
53
+ allowed_native_app_ids: Array<string>;
54
+
55
+ allowed_native_app_url_schemes: Array<string>;
56
+
57
+ allowlist_config: AppResponse.AllowlistConfig;
58
+
59
+ allowlist_enabled: boolean;
60
+
61
+ apple_oauth: boolean;
62
+
63
+ captcha_enabled: boolean;
64
+
65
+ custom_api_url: string | null;
66
+
67
+ custom_jwt_auth: boolean;
68
+
69
+ custom_oauth_providers: Array<AppResponse.CustomOAuthProvider>;
70
+
71
+ disable_plus_emails: boolean;
72
+
73
+ discord_oauth: boolean;
74
+
75
+ email_auth: boolean;
76
+
77
+ embedded_wallet_config: AppResponse.EmbeddedWalletConfig;
78
+
79
+ enabled_captcha_provider: 'turnstile' | 'hcaptcha' | null;
80
+
81
+ enforce_wallet_uis: boolean;
82
+
83
+ farcaster_auth: boolean;
84
+
85
+ farcaster_link_wallets_enabled: boolean;
86
+
87
+ fiat_on_ramp_enabled: boolean;
88
+
89
+ github_oauth: boolean;
90
+
91
+ google_oauth: boolean;
92
+
93
+ guest_auth: boolean;
94
+
95
+ icon_url: string | null;
96
+
97
+ instagram_oauth: boolean;
98
+
99
+ legacy_wallet_ui_config: boolean;
100
+
101
+ line_oauth: boolean;
102
+
103
+ linkedin_oauth: boolean;
104
+
105
+ logo_url: string | null;
106
+
107
+ max_linked_wallets_per_user: number | null;
108
+
109
+ mfa_methods: Array<'sms' | 'totp' | 'passkey'>;
110
+
111
+ name: string;
112
+
113
+ passkey_auth: boolean;
114
+
115
+ passkeys_for_signup_enabled: boolean;
116
+
117
+ privacy_policy_url: string | null;
118
+
119
+ require_users_accept_terms: boolean | null;
120
+
121
+ show_wallet_login_first: boolean;
122
+
123
+ smart_wallet_config: AppResponse.Enabled | AppResponse.UnionMember1;
124
+
125
+ sms_auth: boolean;
126
+
127
+ solana_wallet_auth: boolean;
128
+
129
+ spotify_oauth: boolean;
130
+
131
+ telegram_auth: boolean;
132
+
133
+ terms_and_conditions_url: string | null;
134
+
135
+ theme: string;
136
+
137
+ tiktok_oauth: boolean;
138
+
139
+ twitch_oauth: boolean;
140
+
141
+ twitter_oauth: boolean;
142
+
143
+ twitter_oauth_on_mobile_enabled: boolean;
144
+
145
+ verification_key: string;
146
+
147
+ wallet_auth: boolean;
148
+
149
+ wallet_connect_cloud_project_id: string | null;
150
+
151
+ whatsapp_enabled: boolean;
152
+
153
+ captcha_site_key?: string;
154
+
155
+ funding_config?: AppResponse.FundingConfig;
156
+
157
+ telegram_auth_config?: AppResponse.TelegramAuthConfig;
158
+ }
159
+
160
+ export namespace AppResponse {
161
+ export interface AllowlistConfig {
162
+ cta_link: string | null;
163
+
164
+ cta_text: string | null;
165
+
166
+ error_detail: string | null;
167
+
168
+ error_title: string | null;
169
+ }
170
+
171
+ export interface CustomOAuthProvider {
172
+ enabled: boolean;
173
+
174
+ /**
175
+ * The ID of a custom OAuth provider, set up for this app. Must start with
176
+ * "custom:".
177
+ */
178
+ provider: ClientAuthAPI.CustomOAuthProviderID;
179
+
180
+ provider_display_name: string;
181
+
182
+ provider_icon_url: string;
183
+ }
184
+
185
+ export interface EmbeddedWalletConfig {
186
+ create_on_login: 'users-without-wallets' | 'all-users' | 'off';
187
+
188
+ ethereum: EmbeddedWalletConfig.Ethereum;
189
+
190
+ mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
191
+
192
+ solana: EmbeddedWalletConfig.Solana;
193
+
194
+ user_owned_recovery_options: Array<'user-passcode' | 'google-drive' | 'icloud'>;
195
+
196
+ require_user_owned_recovery_on_create?: boolean;
197
+
198
+ require_user_password_on_create?: boolean;
199
+ }
200
+
201
+ export namespace EmbeddedWalletConfig {
202
+ export interface Ethereum {
203
+ create_on_login: 'users-without-wallets' | 'all-users' | 'off';
204
+ }
205
+
206
+ export interface Solana {
207
+ create_on_login: 'users-without-wallets' | 'all-users' | 'off';
208
+ }
209
+ }
210
+
211
+ export interface Enabled {
212
+ enabled: false;
213
+ }
214
+
215
+ export interface UnionMember1 {
216
+ configured_networks: Array<UnionMember1.ConfiguredNetwork>;
217
+
218
+ enabled: true;
219
+
220
+ smart_wallet_type:
221
+ | 'safe'
222
+ | 'kernel'
223
+ | 'light_account'
224
+ | 'biconomy'
225
+ | 'coinbase_smart_wallet'
226
+ | 'thirdweb';
227
+
228
+ smart_wallet_version?: string;
229
+ }
230
+
231
+ export namespace UnionMember1 {
232
+ export interface ConfiguredNetwork {
233
+ bundler_url: string;
234
+
235
+ chain_id: string;
236
+
237
+ chain_name?: string;
238
+
239
+ paymaster_context?: ConfiguredNetwork.PaymasterContext;
240
+
241
+ paymaster_url?: string;
242
+
243
+ rpc_url?: string;
244
+ }
245
+
246
+ export namespace ConfiguredNetwork {
247
+ export interface PaymasterContext {
248
+ policy_id: string;
249
+ }
250
+ }
251
+ }
252
+
253
+ export interface FundingConfig {
254
+ cross_chain_bridging_enabled: boolean;
255
+
256
+ default_recommended_amount: string;
257
+
258
+ default_recommended_currency: FundingConfig.DefaultRecommendedCurrency;
259
+
260
+ methods: Array<'moonpay' | 'coinbase-onramp' | 'external'>;
261
+
262
+ options: Array<FundingConfig.Option>;
263
+
264
+ prompt_funding_on_wallet_creation: boolean;
265
+ }
266
+
267
+ export namespace FundingConfig {
268
+ export interface DefaultRecommendedCurrency {
269
+ chain: string;
270
+
271
+ asset?: 'native-currency' | 'USDC';
272
+ }
273
+
274
+ export interface Option {
275
+ method: string;
276
+
277
+ provider: string;
278
+ }
279
+ }
280
+
281
+ export interface TelegramAuthConfig {
282
+ bot_id: string;
283
+
284
+ bot_name: string;
285
+
286
+ link_enabled: boolean;
287
+
288
+ seamless_auth_enabled: boolean;
289
+ }
290
+ }
291
+
292
+ /**
293
+ * Allowlist invite input for an email address.
294
+ */
295
+ export interface EmailInviteInput {
296
+ type: 'email';
297
+
298
+ value: string;
299
+ }
300
+
301
+ /**
302
+ * Allowlist invite input for a wallet address.
303
+ */
304
+ export interface WalletInviteInput {
305
+ type: 'wallet';
306
+
307
+ value: string;
308
+ }
309
+
310
+ /**
311
+ * Allowlist invite input for a phone number.
312
+ */
313
+ export interface PhoneInviteInput {
314
+ type: 'phone';
315
+
316
+ value: string;
317
+ }
318
+
319
+ /**
320
+ * Input for adding or removing an allowlist entry. Discriminated by type.
321
+ */
322
+ export type UserInviteInput = EmailInviteInput | WalletInviteInput | PhoneInviteInput;
323
+
324
+ /**
325
+ * An allowlist entry for an app.
326
+ */
327
+ export interface AllowlistEntry {
328
+ id: string;
329
+
330
+ acceptedAt: number | null;
331
+
332
+ appId: string;
333
+
334
+ type: string;
335
+
336
+ value: string;
337
+ }
338
+
339
+ /**
340
+ * Confirmation response for deleting an allowlist entry.
341
+ */
342
+ export interface AllowlistDeletionResponse {
343
+ message: string;
344
+ }
345
+
346
+ /**
347
+ * A test account for an app.
348
+ */
349
+ export interface TestAccount {
350
+ id: string;
351
+
352
+ created_at: string;
353
+
354
+ email: string;
355
+
356
+ otp_code: string;
357
+
358
+ phone_number: string;
359
+
360
+ updated_at: string;
361
+ }
362
+
363
+ /**
364
+ * Response for listing test accounts for an app.
365
+ */
366
+ export interface TestAccountsResponse {
367
+ data: Array<TestAccount>;
368
+ }
369
+
370
+ Apps.Allowlist = Allowlist;
371
+
372
+ export declare namespace Apps {
373
+ export {
374
+ type AppResponse as AppResponse,
375
+ type EmailInviteInput as EmailInviteInput,
376
+ type WalletInviteInput as WalletInviteInput,
377
+ type PhoneInviteInput as PhoneInviteInput,
378
+ type UserInviteInput as UserInviteInput,
379
+ type AllowlistEntry as AllowlistEntry,
380
+ type AllowlistDeletionResponse as AllowlistDeletionResponse,
381
+ type TestAccount as TestAccount,
382
+ type TestAccountsResponse as TestAccountsResponse,
383
+ };
384
+
385
+ export {
386
+ Allowlist as Allowlist,
387
+ type AllowlistListResponse as AllowlistListResponse,
388
+ type AllowlistCreateParams as AllowlistCreateParams,
389
+ type AllowlistDeleteParams as AllowlistDeleteParams,
390
+ };
391
+ }
@@ -0,0 +1,20 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Allowlist,
5
+ type AllowlistListResponse,
6
+ type AllowlistCreateParams,
7
+ type AllowlistDeleteParams,
8
+ } from './allowlist';
9
+ export {
10
+ Apps,
11
+ type AppResponse,
12
+ type EmailInviteInput,
13
+ type WalletInviteInput,
14
+ type PhoneInviteInput,
15
+ type UserInviteInput,
16
+ type AllowlistEntry,
17
+ type AllowlistDeletionResponse,
18
+ type TestAccount,
19
+ type TestAccountsResponse,
20
+ } from './apps';
@@ -1,259 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../core/resource';
4
- import * as ClientAuthAPI from './client-auth';
5
-
6
- export class Apps extends APIResource {}
7
-
8
- /**
9
- * The response for getting an app.
10
- */
11
- export interface AppResponse {
12
- id: string;
13
-
14
- accent_color: string | null;
15
-
16
- allowed_domains: Array<string>;
17
-
18
- allowed_native_app_ids: Array<string>;
19
-
20
- allowed_native_app_url_schemes: Array<string>;
21
-
22
- allowlist_config: AppResponse.AllowlistConfig;
23
-
24
- allowlist_enabled: boolean;
25
-
26
- apple_oauth: boolean;
27
-
28
- captcha_enabled: boolean;
29
-
30
- custom_api_url: string | null;
31
-
32
- custom_jwt_auth: boolean;
33
-
34
- custom_oauth_providers: Array<AppResponse.CustomOAuthProvider>;
35
-
36
- disable_plus_emails: boolean;
37
-
38
- discord_oauth: boolean;
39
-
40
- email_auth: boolean;
41
-
42
- embedded_wallet_config: AppResponse.EmbeddedWalletConfig;
43
-
44
- enabled_captcha_provider: 'turnstile' | 'hcaptcha' | null;
45
-
46
- enforce_wallet_uis: boolean;
47
-
48
- farcaster_auth: boolean;
49
-
50
- farcaster_link_wallets_enabled: boolean;
51
-
52
- fiat_on_ramp_enabled: boolean;
53
-
54
- github_oauth: boolean;
55
-
56
- google_oauth: boolean;
57
-
58
- guest_auth: boolean;
59
-
60
- icon_url: string | null;
61
-
62
- instagram_oauth: boolean;
63
-
64
- legacy_wallet_ui_config: boolean;
65
-
66
- line_oauth: boolean;
67
-
68
- linkedin_oauth: boolean;
69
-
70
- logo_url: string | null;
71
-
72
- max_linked_wallets_per_user: number | null;
73
-
74
- mfa_methods: Array<'sms' | 'totp' | 'passkey'>;
75
-
76
- name: string;
77
-
78
- passkey_auth: boolean;
79
-
80
- passkeys_for_signup_enabled: boolean;
81
-
82
- privacy_policy_url: string | null;
83
-
84
- require_users_accept_terms: boolean | null;
85
-
86
- show_wallet_login_first: boolean;
87
-
88
- smart_wallet_config: AppResponse.Enabled | AppResponse.UnionMember1;
89
-
90
- sms_auth: boolean;
91
-
92
- solana_wallet_auth: boolean;
93
-
94
- spotify_oauth: boolean;
95
-
96
- telegram_auth: boolean;
97
-
98
- terms_and_conditions_url: string | null;
99
-
100
- theme: string;
101
-
102
- tiktok_oauth: boolean;
103
-
104
- twitch_oauth: boolean;
105
-
106
- twitter_oauth: boolean;
107
-
108
- twitter_oauth_on_mobile_enabled: boolean;
109
-
110
- verification_key: string;
111
-
112
- wallet_auth: boolean;
113
-
114
- wallet_connect_cloud_project_id: string | null;
115
-
116
- whatsapp_enabled: boolean;
117
-
118
- captcha_site_key?: string;
119
-
120
- funding_config?: AppResponse.FundingConfig;
121
-
122
- telegram_auth_config?: AppResponse.TelegramAuthConfig;
123
- }
124
-
125
- export namespace AppResponse {
126
- export interface AllowlistConfig {
127
- cta_link: string | null;
128
-
129
- cta_text: string | null;
130
-
131
- error_detail: string | null;
132
-
133
- error_title: string | null;
134
- }
135
-
136
- export interface CustomOAuthProvider {
137
- enabled: boolean;
138
-
139
- /**
140
- * The ID of a custom OAuth provider, set up for this app. Must start with
141
- * "custom:".
142
- */
143
- provider: ClientAuthAPI.CustomOAuthProviderID;
144
-
145
- provider_display_name: string;
146
-
147
- provider_icon_url: string;
148
- }
149
-
150
- export interface EmbeddedWalletConfig {
151
- create_on_login: 'users-without-wallets' | 'all-users' | 'off';
152
-
153
- ethereum: EmbeddedWalletConfig.Ethereum;
154
-
155
- mode: 'legacy-embedded-wallets-only' | 'user-controlled-server-wallets-only';
156
-
157
- solana: EmbeddedWalletConfig.Solana;
158
-
159
- user_owned_recovery_options: Array<'user-passcode' | 'google-drive' | 'icloud'>;
160
-
161
- require_user_owned_recovery_on_create?: boolean;
162
-
163
- require_user_password_on_create?: boolean;
164
- }
165
-
166
- export namespace EmbeddedWalletConfig {
167
- export interface Ethereum {
168
- create_on_login: 'users-without-wallets' | 'all-users' | 'off';
169
- }
170
-
171
- export interface Solana {
172
- create_on_login: 'users-without-wallets' | 'all-users' | 'off';
173
- }
174
- }
175
-
176
- export interface Enabled {
177
- enabled: false;
178
- }
179
-
180
- export interface UnionMember1 {
181
- configured_networks: Array<UnionMember1.ConfiguredNetwork>;
182
-
183
- enabled: true;
184
-
185
- smart_wallet_type:
186
- | 'safe'
187
- | 'kernel'
188
- | 'light_account'
189
- | 'biconomy'
190
- | 'coinbase_smart_wallet'
191
- | 'thirdweb';
192
-
193
- smart_wallet_version?: string;
194
- }
195
-
196
- export namespace UnionMember1 {
197
- export interface ConfiguredNetwork {
198
- bundler_url: string;
199
-
200
- chain_id: string;
201
-
202
- chain_name?: string;
203
-
204
- paymaster_context?: ConfiguredNetwork.PaymasterContext;
205
-
206
- paymaster_url?: string;
207
-
208
- rpc_url?: string;
209
- }
210
-
211
- export namespace ConfiguredNetwork {
212
- export interface PaymasterContext {
213
- policy_id: string;
214
- }
215
- }
216
- }
217
-
218
- export interface FundingConfig {
219
- cross_chain_bridging_enabled: boolean;
220
-
221
- default_recommended_amount: string;
222
-
223
- default_recommended_currency: FundingConfig.DefaultRecommendedCurrency;
224
-
225
- methods: Array<'moonpay' | 'coinbase-onramp' | 'external'>;
226
-
227
- options: Array<FundingConfig.Option>;
228
-
229
- prompt_funding_on_wallet_creation: boolean;
230
- }
231
-
232
- export namespace FundingConfig {
233
- export interface DefaultRecommendedCurrency {
234
- chain: string;
235
-
236
- asset?: 'native-currency' | 'USDC';
237
- }
238
-
239
- export interface Option {
240
- method: string;
241
-
242
- provider: string;
243
- }
244
- }
245
-
246
- export interface TelegramAuthConfig {
247
- bot_id: string;
248
-
249
- bot_name: string;
250
-
251
- link_enabled: boolean;
252
-
253
- seamless_auth_enabled: boolean;
254
- }
255
- }
256
-
257
- export declare namespace Apps {
258
- export { type AppResponse as AppResponse };
259
- }
3
+ export * from './apps/index';