@privy-io/api-types 0.17.0 → 0.18.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 +15 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +1 -1
- package/resources/accounts.d.ts +1 -1
- package/resources/apps.d.mts +3 -3
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +3 -3
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +31 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +31 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/onramps.d.mts +4 -4
- package/resources/onramps.d.ts +4 -4
- package/resources/swaps.d.mts +2 -1
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +2 -1
- package/resources/swaps.d.ts.map +1 -1
- package/resources/users.d.mts +9 -2
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +9 -2
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/actions.d.mts +8 -8
- package/resources/wallets/actions.d.ts +8 -8
- package/resources/wallets/balance.d.mts +4 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +4 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/transactions.d.mts +1 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +1 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +67 -55
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +67 -55
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +22 -15
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +22 -15
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +7 -4
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +7 -4
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +12 -0
- package/src/resources/accounts.ts +1 -1
- package/src/resources/apps.ts +3 -3
- package/src/resources/client-auth.ts +42 -0
- package/src/resources/index.ts +6 -0
- package/src/resources/onramps.ts +4 -4
- package/src/resources/swaps.ts +2 -1
- package/src/resources/users.ts +11 -1
- package/src/resources/wallets/actions.ts +8 -8
- package/src/resources/wallets/balance.ts +4 -2
- package/src/resources/wallets/transactions.ts +1 -0
- package/src/resources/wallets/wallets.ts +70 -51
- package/src/resources/webhooks.ts +22 -15
- package/src/resources/yield.ts +7 -4
- 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/src/resources/apps.ts
CHANGED
|
@@ -206,7 +206,7 @@ export interface AppResponse {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
209
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
210
210
|
*/
|
|
211
211
|
export type Caip2 = string;
|
|
212
212
|
|
|
@@ -220,7 +220,7 @@ export type CaptchaProvider = 'turnstile' | 'hcaptcha';
|
|
|
220
220
|
*/
|
|
221
221
|
export interface Currency {
|
|
222
222
|
/**
|
|
223
|
-
* A valid CAIP-2 chain ID (e.g. 'eip155:1').
|
|
223
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
224
224
|
*/
|
|
225
225
|
chain: Caip2;
|
|
226
226
|
|
|
@@ -399,7 +399,7 @@ export interface GasSpendResponseBody {
|
|
|
399
399
|
/**
|
|
400
400
|
* A multi-factor authentication method supported by the app.
|
|
401
401
|
*/
|
|
402
|
-
export type MfaMethod = 'sms' | 'totp' | 'passkey';
|
|
402
|
+
export type MfaMethod = 'sms' | 'totp' | 'passkey' | 'email';
|
|
403
403
|
|
|
404
404
|
/**
|
|
405
405
|
* Allowlist invite input for a phone number.
|
|
@@ -703,6 +703,43 @@ export interface LinkJwtInput {
|
|
|
703
703
|
token?: string;
|
|
704
704
|
}
|
|
705
705
|
|
|
706
|
+
/**
|
|
707
|
+
* The request body for enrolling an email MFA code.
|
|
708
|
+
*/
|
|
709
|
+
export interface MfaEmailEnrollRequestBody {
|
|
710
|
+
code: string;
|
|
711
|
+
|
|
712
|
+
email_address: string;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Input for enrolling email MFA.
|
|
717
|
+
*/
|
|
718
|
+
export interface MfaEmailInitEnrollInput {
|
|
719
|
+
action: 'enroll';
|
|
720
|
+
|
|
721
|
+
email_address: string;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* The request body for initiating an email MFA flow.
|
|
726
|
+
*/
|
|
727
|
+
export type MfaEmailInitRequestBody = MfaEmailInitVerifyInput | MfaEmailInitEnrollInput;
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Input for verifying email MFA.
|
|
731
|
+
*/
|
|
732
|
+
export interface MfaEmailInitVerifyInput {
|
|
733
|
+
action: 'verify';
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* The request body for verifying an email MFA code.
|
|
738
|
+
*/
|
|
739
|
+
export interface MfaEmailVerifyRequestBody {
|
|
740
|
+
code: string;
|
|
741
|
+
}
|
|
742
|
+
|
|
706
743
|
/**
|
|
707
744
|
* The request body for enrolling a passkey MFA flow.
|
|
708
745
|
*/
|
|
@@ -2058,6 +2095,11 @@ export declare namespace ClientAuth {
|
|
|
2058
2095
|
type FiatVirtualAccountResponse as FiatVirtualAccountResponse,
|
|
2059
2096
|
type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody,
|
|
2060
2097
|
type LinkJwtInput as LinkJwtInput,
|
|
2098
|
+
type MfaEmailEnrollRequestBody as MfaEmailEnrollRequestBody,
|
|
2099
|
+
type MfaEmailInitEnrollInput as MfaEmailInitEnrollInput,
|
|
2100
|
+
type MfaEmailInitRequestBody as MfaEmailInitRequestBody,
|
|
2101
|
+
type MfaEmailInitVerifyInput as MfaEmailInitVerifyInput,
|
|
2102
|
+
type MfaEmailVerifyRequestBody as MfaEmailVerifyRequestBody,
|
|
2061
2103
|
type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody,
|
|
2062
2104
|
type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody,
|
|
2063
2105
|
type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody,
|
package/src/resources/index.ts
CHANGED
|
@@ -130,6 +130,11 @@ export {
|
|
|
130
130
|
type FiatVirtualAccountResponse,
|
|
131
131
|
type GuestAuthenticateRequestBody,
|
|
132
132
|
type LinkJwtInput,
|
|
133
|
+
type MfaEmailEnrollRequestBody,
|
|
134
|
+
type MfaEmailInitEnrollInput,
|
|
135
|
+
type MfaEmailInitRequestBody,
|
|
136
|
+
type MfaEmailInitVerifyInput,
|
|
137
|
+
type MfaEmailVerifyRequestBody,
|
|
133
138
|
type MfaPasskeyEnrollmentRequestBody,
|
|
134
139
|
type MfaPasskeyInitRequestBody,
|
|
135
140
|
type MfaPasskeyInitResponseBody,
|
|
@@ -599,6 +604,7 @@ export {
|
|
|
599
604
|
type CrossAppEmbeddedWallet,
|
|
600
605
|
type CrossAppSmartWallet,
|
|
601
606
|
type CustomMetadata,
|
|
607
|
+
type EmailMfaMethod,
|
|
602
608
|
type EmbeddedWalletRecoveryMethod,
|
|
603
609
|
type LinkedAccount,
|
|
604
610
|
type LinkedAccountAppleInput,
|
package/src/resources/onramps.ts
CHANGED
|
@@ -51,8 +51,8 @@ export interface BridgeSandboxFiatCustomerResponse {
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:
|
|
55
|
-
*
|
|
54
|
+
* A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:4217" for
|
|
55
|
+
* Tempo or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
|
|
56
56
|
*/
|
|
57
57
|
export type Caip2ChainID = string;
|
|
58
58
|
|
|
@@ -173,8 +173,8 @@ export interface FiatOnrampDestination {
|
|
|
173
173
|
asset: SharedAPI.TokenIdentifier;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:
|
|
177
|
-
*
|
|
176
|
+
* A CAIP-2 chain identifier in namespace:reference format (e.g. "eip155:4217" for
|
|
177
|
+
* Tempo or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet).
|
|
178
178
|
*/
|
|
179
179
|
chain: Caip2ChainID;
|
|
180
180
|
}
|
package/src/resources/swaps.ts
CHANGED
package/src/resources/users.ts
CHANGED
|
@@ -62,6 +62,15 @@ export interface CrossAppSmartWallet {
|
|
|
62
62
|
*/
|
|
63
63
|
export type CustomMetadata = { [key: string]: string | number | boolean };
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* An Email MFA method.
|
|
67
|
+
*/
|
|
68
|
+
export interface EmailMfaMethod {
|
|
69
|
+
type: 'email';
|
|
70
|
+
|
|
71
|
+
verified_at: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
65
74
|
/**
|
|
66
75
|
* The method used to recover an embedded wallet account.
|
|
67
76
|
*/
|
|
@@ -1175,7 +1184,7 @@ export interface LinkedAccountWalletInput {
|
|
|
1175
1184
|
/**
|
|
1176
1185
|
* A multi-factor authentication method linked to the user.
|
|
1177
1186
|
*/
|
|
1178
|
-
export type LinkedMfaMethod = SMSMfaMethod | TotpMfaMethod | PasskeyMfaMethod;
|
|
1187
|
+
export type LinkedMfaMethod = SMSMfaMethod | TotpMfaMethod | PasskeyMfaMethod | EmailMfaMethod;
|
|
1179
1188
|
|
|
1180
1189
|
/**
|
|
1181
1190
|
* OAuth tokens associated with the user.
|
|
@@ -1316,6 +1325,7 @@ export declare namespace Users {
|
|
|
1316
1325
|
type CrossAppEmbeddedWallet as CrossAppEmbeddedWallet,
|
|
1317
1326
|
type CrossAppSmartWallet as CrossAppSmartWallet,
|
|
1318
1327
|
type CustomMetadata as CustomMetadata,
|
|
1328
|
+
type EmailMfaMethod as EmailMfaMethod,
|
|
1319
1329
|
type EmbeddedWalletRecoveryMethod as EmbeddedWalletRecoveryMethod,
|
|
1320
1330
|
type LinkedAccount as LinkedAccount,
|
|
1321
1331
|
type LinkedAccountAppleInput as LinkedAccountAppleInput,
|
|
@@ -46,7 +46,7 @@ export interface AaveVaultDetails {
|
|
|
46
46
|
available_liquidity_usd: number | null;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
49
|
+
* CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
50
50
|
*/
|
|
51
51
|
caip2: string;
|
|
52
52
|
|
|
@@ -442,7 +442,7 @@ export interface EarnIncentiveClaimActionResponse {
|
|
|
442
442
|
id: string;
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
|
-
* EVM chain name (e.g. "
|
|
445
|
+
* EVM chain name (e.g. "tempo", "base").
|
|
446
446
|
*/
|
|
447
447
|
chain: string;
|
|
448
448
|
|
|
@@ -485,8 +485,8 @@ export interface EarnIncentiveClaimActionResponse {
|
|
|
485
485
|
export interface EarnIncentiveClaimRequestBody {
|
|
486
486
|
/**
|
|
487
487
|
* The blockchain network on which to perform the incentive claim. Supported chains
|
|
488
|
-
* include: 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and more,
|
|
489
|
-
* with their respective testnets.
|
|
488
|
+
* include: 'tempo', 'ethereum', 'base', 'arbitrum', 'polygon', 'solana', and more,
|
|
489
|
+
* along with their respective testnets.
|
|
490
490
|
*/
|
|
491
491
|
chain: string;
|
|
492
492
|
}
|
|
@@ -526,7 +526,7 @@ export interface EarnIncentiveRewardEntry {
|
|
|
526
526
|
*/
|
|
527
527
|
export interface EarnIncentiveRewardsQuery {
|
|
528
528
|
/**
|
|
529
|
-
* Chain name to fetch rewards for (e.g. "
|
|
529
|
+
* Chain name to fetch rewards for (e.g. "tempo", "base").
|
|
530
530
|
*/
|
|
531
531
|
chain: string;
|
|
532
532
|
}
|
|
@@ -834,7 +834,7 @@ export interface MorphoVaultDetails {
|
|
|
834
834
|
available_liquidity_usd: number | null;
|
|
835
835
|
|
|
836
836
|
/**
|
|
837
|
-
* CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
837
|
+
* CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
838
838
|
*/
|
|
839
839
|
caip2: string;
|
|
840
840
|
|
|
@@ -1081,7 +1081,7 @@ export interface TransferActionResponse {
|
|
|
1081
1081
|
destination_amount: string | null;
|
|
1082
1082
|
|
|
1083
1083
|
/**
|
|
1084
|
-
* Chain name (e.g. "
|
|
1084
|
+
* Chain name (e.g. "tempo", "base").
|
|
1085
1085
|
*/
|
|
1086
1086
|
source_chain: string;
|
|
1087
1087
|
|
|
@@ -1207,7 +1207,7 @@ export interface VedaVaultDetails {
|
|
|
1207
1207
|
available_liquidity_usd: number | null;
|
|
1208
1208
|
|
|
1209
1209
|
/**
|
|
1210
|
-
* CAIP-2 chain identifier (e.g. "eip155:8453").
|
|
1210
|
+
* CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
1211
1211
|
*/
|
|
1212
1212
|
caip2: string;
|
|
1213
1213
|
|
|
@@ -45,6 +45,7 @@ export namespace BalanceGetResponse {
|
|
|
45
45
|
| 'usdt'
|
|
46
46
|
| 'eurc'
|
|
47
47
|
| 'usdb'
|
|
48
|
+
| 'pathusd'
|
|
48
49
|
| 'sol'
|
|
49
50
|
| 'trx'
|
|
50
51
|
| (string & {});
|
|
@@ -65,7 +66,7 @@ export namespace BalanceGetResponse {
|
|
|
65
66
|
export interface BalanceGetParams {
|
|
66
67
|
/**
|
|
67
68
|
* The token contract address(es) to query in format "chain:address" (e.g.,
|
|
68
|
-
* "
|
|
69
|
+
* "tempo:0x20c000000000000000000000b9537d11c60e8b50" or
|
|
69
70
|
* "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"). Cannot be used together
|
|
70
71
|
* with `asset`/`chain` or with `include_currency`.
|
|
71
72
|
*/
|
|
@@ -85,12 +86,13 @@ export interface BalanceGetParams {
|
|
|
85
86
|
| 'usdt'
|
|
86
87
|
| 'eurc'
|
|
87
88
|
| 'usdb'
|
|
89
|
+
| 'pathusd'
|
|
88
90
|
| 'sol'
|
|
89
91
|
| 'trx'
|
|
90
92
|
| Array<WalletsAPI.WalletAsset>;
|
|
91
93
|
|
|
92
94
|
/**
|
|
93
|
-
* Chain(s) to query named assets on (e.g. `
|
|
95
|
+
* Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with
|
|
94
96
|
* `asset`. Cannot be used with `token`.
|
|
95
97
|
*/
|
|
96
98
|
chain?: WalletsAPI.WalletAssetChainNameInput | Array<WalletsAPI.WalletAssetChainNameInput>;
|