@privy-io/api-types 0.6.1 → 0.7.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 +29 -0
- package/client.d.mts +31 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +31 -16
- package/client.d.ts.map +1 -1
- package/client.js +23 -7
- package/client.js.map +1 -1
- package/client.mjs +25 -9
- package/client.mjs.map +1 -1
- package/package.json +12 -1
- package/resources/accounts.d.mts +173 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +173 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/apps.d.mts +59 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +59 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +144 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +144 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +9 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +1979 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +1979 -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 +45 -2
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +45 -2
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +18 -1
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +18 -1
- 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 +7 -0
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +7 -0
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +3 -0
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +3 -0
- package/resources/policies.mjs.map +1 -1
- package/resources/transactions.d.mts +3 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -0
- 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 +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- 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/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 +9 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +9 -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 +67 -10
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +67 -10
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +11 -5
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +11 -5
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +319 -283
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +319 -283
- 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 +26 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +166 -30
- package/src/resources/accounts.ts +206 -3
- package/src/resources/apps.ts +89 -1
- package/src/resources/client-auth.ts +202 -0
- package/src/resources/index.ts +79 -17
- package/src/resources/intents.ts +3305 -37
- package/src/resources/key-quorums.ts +50 -2
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +7 -0
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users.ts +3 -0
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +3 -1
- package/src/resources/wallets/transactions.ts +10 -4
- package/src/resources/wallets/wallets.ts +99 -21
- package/src/resources/webhooks.ts +454 -438
- package/src/resources/yield.ts +39 -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/src/client.ts
CHANGED
|
@@ -20,12 +20,18 @@ import * as Uploads from './core/uploads';
|
|
|
20
20
|
import * as API from './resources/index';
|
|
21
21
|
import { APIPromise } from './core/api-promise';
|
|
22
22
|
import {
|
|
23
|
+
AccountBalanceResponse,
|
|
24
|
+
AccountDisplayName,
|
|
23
25
|
AccountResponse,
|
|
24
26
|
AccountWallet,
|
|
25
27
|
AccountWalletConfigurationItem,
|
|
28
|
+
AccountWalletsConfiguration,
|
|
26
29
|
Accounts,
|
|
30
|
+
AccountsDashboardListResponse,
|
|
27
31
|
AccountsListResponse,
|
|
32
|
+
AssetAccountWithBalance,
|
|
28
33
|
CreateAccountInput,
|
|
34
|
+
UpdateAccountInput,
|
|
29
35
|
} from './resources/accounts';
|
|
30
36
|
import {
|
|
31
37
|
Aggregation,
|
|
@@ -37,7 +43,18 @@ import {
|
|
|
37
43
|
Aggregations,
|
|
38
44
|
} from './resources/aggregations';
|
|
39
45
|
import { Analytics, AnalyticsEventInput } from './resources/analytics';
|
|
40
|
-
import {
|
|
46
|
+
import {
|
|
47
|
+
AllowlistDeletionResponse,
|
|
48
|
+
AllowlistEntry,
|
|
49
|
+
AppResponse,
|
|
50
|
+
Apps,
|
|
51
|
+
EmailInviteInput,
|
|
52
|
+
PhoneInviteInput,
|
|
53
|
+
TestAccount,
|
|
54
|
+
TestAccountsResponse,
|
|
55
|
+
UserInviteInput,
|
|
56
|
+
WalletInviteInput,
|
|
57
|
+
} from './resources/apps';
|
|
41
58
|
import {
|
|
42
59
|
BridgeBrlFiatVirtualAccountDepositInstructions,
|
|
43
60
|
BridgeDestinationAsset,
|
|
@@ -57,8 +74,10 @@ import {
|
|
|
57
74
|
BridgeSandboxFiatVirtualAccountResponse,
|
|
58
75
|
BridgeSourceAsset,
|
|
59
76
|
BridgeUsdFiatVirtualAccountDepositInstructions,
|
|
77
|
+
Caip2ChainID,
|
|
60
78
|
ClientAuth,
|
|
61
79
|
CreateOrUpdateFiatCustomerRequestInput,
|
|
80
|
+
CryptoCurrencyCode,
|
|
62
81
|
CustomJwtAuthenticateRequestBody,
|
|
63
82
|
CustomJwtLinkRequestBody,
|
|
64
83
|
CustomOAuthProviderID,
|
|
@@ -76,10 +95,24 @@ import {
|
|
|
76
95
|
FarcasterV2AuthenticateRequestBody,
|
|
77
96
|
FarcasterV2InitRequestBody,
|
|
78
97
|
FarcasterV2InitResponseBody,
|
|
98
|
+
FiatAmount,
|
|
99
|
+
FiatCurrencyCode,
|
|
79
100
|
FiatCustomerResponse,
|
|
101
|
+
FiatOnrampDestination,
|
|
102
|
+
FiatOnrampEnvironment,
|
|
103
|
+
FiatOnrampProvider,
|
|
104
|
+
FiatOnrampQuote,
|
|
105
|
+
FiatOnrampSource,
|
|
106
|
+
FiatOnrampTransactionStatus,
|
|
80
107
|
FiatVirtualAccountRequest,
|
|
81
108
|
FiatVirtualAccountResponse,
|
|
82
109
|
GetFiatCustomerRequestInput,
|
|
110
|
+
GetFiatOnrampQuotesInput,
|
|
111
|
+
GetFiatOnrampQuotesResponse,
|
|
112
|
+
GetFiatOnrampTransactionStatusInput,
|
|
113
|
+
GetFiatOnrampTransactionStatusResponse,
|
|
114
|
+
GetFiatOnrampURLInput,
|
|
115
|
+
GetFiatOnrampURLResponse,
|
|
83
116
|
GuestAuthenticateRequestBody,
|
|
84
117
|
MfaPasskeyEnrollmentRequestBody,
|
|
85
118
|
MfaPasskeyInitRequestBody,
|
|
@@ -159,7 +192,22 @@ import {
|
|
|
159
192
|
MoonpayOnRampSignInput,
|
|
160
193
|
MoonpayOnRampSignResponse,
|
|
161
194
|
} from './resources/funding';
|
|
162
|
-
import {
|
|
195
|
+
import {
|
|
196
|
+
BaseActionResult,
|
|
197
|
+
IntentAuthorization,
|
|
198
|
+
IntentAuthorizationKeyQuorumMember,
|
|
199
|
+
IntentAuthorizationMember,
|
|
200
|
+
IntentResponse,
|
|
201
|
+
IntentStatus,
|
|
202
|
+
IntentType,
|
|
203
|
+
Intents,
|
|
204
|
+
KeyQuorumIntentResponse,
|
|
205
|
+
PolicyIntentResponse,
|
|
206
|
+
RpcIntentResponse,
|
|
207
|
+
RuleIntentRequestDetails,
|
|
208
|
+
RuleIntentResponse,
|
|
209
|
+
WalletIntentResponse,
|
|
210
|
+
} from './resources/intents';
|
|
163
211
|
import {
|
|
164
212
|
KeyQuorum,
|
|
165
213
|
KeyQuorumCreateParams,
|
|
@@ -168,6 +216,12 @@ import {
|
|
|
168
216
|
KeyQuorumUpdateParams,
|
|
169
217
|
KeyQuorums,
|
|
170
218
|
} from './resources/key-quorums';
|
|
219
|
+
import {
|
|
220
|
+
KrakenEmbed,
|
|
221
|
+
KrakenEmbedCurrentDayPnl,
|
|
222
|
+
KrakenEmbedGetPortfolioSummaryQueryParams,
|
|
223
|
+
KrakenEmbedGetPortfolioSummaryResponse,
|
|
224
|
+
} from './resources/kraken-embed';
|
|
171
225
|
import {
|
|
172
226
|
Policies,
|
|
173
227
|
Policy,
|
|
@@ -286,14 +340,16 @@ import {
|
|
|
286
340
|
import {
|
|
287
341
|
FundsDepositedWebhookPayload,
|
|
288
342
|
FundsWithdrawnWebhookPayload,
|
|
343
|
+
IntentAuthorizedWebhookPayload,
|
|
344
|
+
IntentCreatedWebhookPayload,
|
|
345
|
+
IntentExecutedWebhookPayload,
|
|
346
|
+
IntentFailedWebhookPayload,
|
|
289
347
|
KrakenEmbedQuoteCancelledWebhookPayload,
|
|
290
348
|
KrakenEmbedQuoteExecutedWebhookPayload,
|
|
291
349
|
KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
|
292
350
|
KrakenEmbedUserClosedWebhookPayload,
|
|
293
351
|
KrakenEmbedUserDisabledWebhookPayload,
|
|
294
352
|
KrakenEmbedUserVerifiedWebhookPayload,
|
|
295
|
-
KrakenEmbedVerificationCompletedWebhookPayload,
|
|
296
|
-
KrakenEmbedVerificationFailedWebhookPayload,
|
|
297
353
|
MfaDisabledWebhookPayload,
|
|
298
354
|
MfaEnabledWebhookPayload,
|
|
299
355
|
PrivateKeyExportWebhookPayload,
|
|
@@ -307,13 +363,16 @@ import {
|
|
|
307
363
|
UserAuthenticatedWebhookPayload,
|
|
308
364
|
UserCreatedWebhookPayload,
|
|
309
365
|
UserLinkedAccountWebhookPayload,
|
|
366
|
+
UserOperationCompletedWebhookPayload,
|
|
310
367
|
UserTransferredAccountWebhookPayload,
|
|
311
368
|
UserUnlinkedAccountWebhookPayload,
|
|
312
369
|
UserUpdatedAccountWebhookPayload,
|
|
313
370
|
UserWalletCreatedWebhookPayload,
|
|
314
371
|
WalletRecoveredWebhookPayload,
|
|
315
372
|
WalletRecoverySetupWebhookPayload,
|
|
373
|
+
WebhookPayload,
|
|
316
374
|
Webhooks,
|
|
375
|
+
YieldClaimConfirmedWebhookPayload,
|
|
317
376
|
YieldDepositConfirmedWebhookPayload,
|
|
318
377
|
YieldWithdrawConfirmedWebhookPayload,
|
|
319
378
|
} from './resources/webhooks';
|
|
@@ -322,6 +381,7 @@ import {
|
|
|
322
381
|
EthereumVaultDetailsResponse,
|
|
323
382
|
EthereumVaultPosition,
|
|
324
383
|
EthereumVaultResponse,
|
|
384
|
+
EthereumYieldClaimIDInput,
|
|
325
385
|
EthereumYieldClaimInput,
|
|
326
386
|
EthereumYieldClaimResponse,
|
|
327
387
|
EthereumYieldClaimReward,
|
|
@@ -388,9 +448,11 @@ import {
|
|
|
388
448
|
WalletRawSignResponse,
|
|
389
449
|
WalletRevokeResponse,
|
|
390
450
|
WalletRpcParams,
|
|
451
|
+
WalletRpcRequestBody,
|
|
391
452
|
WalletRpcResponse,
|
|
392
453
|
WalletSubmitImportParams,
|
|
393
454
|
WalletUpdateParams,
|
|
455
|
+
WalletUpdateRequestBody,
|
|
394
456
|
Wallets,
|
|
395
457
|
WalletsCursor,
|
|
396
458
|
} from './resources/wallets/wallets';
|
|
@@ -678,8 +740,9 @@ export class Privy {
|
|
|
678
740
|
: new URL(baseURL + (baseURL.endsWith('/') && path.startsWith('/') ? path.slice(1) : path));
|
|
679
741
|
|
|
680
742
|
const defaultQuery = this.defaultQuery();
|
|
681
|
-
|
|
682
|
-
|
|
743
|
+
const pathQuery = Object.fromEntries(url.searchParams);
|
|
744
|
+
if (!isEmptyObj(defaultQuery) || !isEmptyObj(pathQuery)) {
|
|
745
|
+
query = { ...pathQuery, ...defaultQuery, ...query };
|
|
683
746
|
}
|
|
684
747
|
|
|
685
748
|
if (typeof query === 'object' && query && !Array.isArray(query)) {
|
|
@@ -1012,9 +1075,9 @@ export class Privy {
|
|
|
1012
1075
|
}
|
|
1013
1076
|
}
|
|
1014
1077
|
|
|
1015
|
-
// If the API asks us to wait a certain amount of time
|
|
1016
|
-
//
|
|
1017
|
-
if (
|
|
1078
|
+
// If the API asks us to wait a certain amount of time, just do what it
|
|
1079
|
+
// says, but otherwise calculate a default
|
|
1080
|
+
if (timeoutMillis === undefined) {
|
|
1018
1081
|
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
1019
1082
|
timeoutMillis = this.calculateDefaultRetryTimeoutMillis(retriesRemaining, maxRetries);
|
|
1020
1083
|
}
|
|
@@ -1179,16 +1242,29 @@ export class Privy {
|
|
|
1179
1242
|
clientAuth: API.ClientAuth = new API.ClientAuth(this);
|
|
1180
1243
|
crossApp: API.CrossApp = new API.CrossApp(this);
|
|
1181
1244
|
funding: API.Funding = new API.Funding(this);
|
|
1245
|
+
/**
|
|
1246
|
+
* Operations related to users
|
|
1247
|
+
*/
|
|
1182
1248
|
users: API.Users = new API.Users(this);
|
|
1183
1249
|
analytics: API.Analytics = new API.Analytics(this);
|
|
1250
|
+
/**
|
|
1251
|
+
* Operations related to policies
|
|
1252
|
+
*/
|
|
1184
1253
|
policies: API.Policies = new API.Policies(this);
|
|
1254
|
+
/**
|
|
1255
|
+
* Operations related to transactions
|
|
1256
|
+
*/
|
|
1185
1257
|
transactions: API.Transactions = new API.Transactions(this);
|
|
1258
|
+
/**
|
|
1259
|
+
* Operations related to key quorums
|
|
1260
|
+
*/
|
|
1186
1261
|
keyQuorums: API.KeyQuorums = new API.KeyQuorums(this);
|
|
1187
1262
|
aggregations: API.Aggregations = new API.Aggregations(this);
|
|
1263
|
+
intents: API.Intents = new API.Intents(this);
|
|
1188
1264
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
1189
1265
|
accounts: API.Accounts = new API.Accounts(this);
|
|
1190
1266
|
yield: API.Yield = new API.Yield(this);
|
|
1191
|
-
|
|
1267
|
+
krakenEmbed: API.KrakenEmbed = new API.KrakenEmbed(this);
|
|
1192
1268
|
}
|
|
1193
1269
|
|
|
1194
1270
|
Privy.Wallets = Wallets;
|
|
@@ -1203,10 +1279,11 @@ Privy.Policies = Policies;
|
|
|
1203
1279
|
Privy.Transactions = Transactions;
|
|
1204
1280
|
Privy.KeyQuorums = KeyQuorums;
|
|
1205
1281
|
Privy.Aggregations = Aggregations;
|
|
1282
|
+
Privy.Intents = Intents;
|
|
1206
1283
|
Privy.Webhooks = Webhooks;
|
|
1207
1284
|
Privy.Accounts = Accounts;
|
|
1208
1285
|
Privy.Yield = Yield;
|
|
1209
|
-
Privy.
|
|
1286
|
+
Privy.KrakenEmbed = KrakenEmbed;
|
|
1210
1287
|
|
|
1211
1288
|
export declare namespace Privy {
|
|
1212
1289
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -1229,6 +1306,7 @@ export declare namespace Privy {
|
|
|
1229
1306
|
type HpkeImportConfig as HpkeImportConfig,
|
|
1230
1307
|
type SuiCommandName as SuiCommandName,
|
|
1231
1308
|
type Wallet as Wallet,
|
|
1309
|
+
type WalletUpdateRequestBody as WalletUpdateRequestBody,
|
|
1232
1310
|
type WalletBatchItemInput as WalletBatchItemInput,
|
|
1233
1311
|
type WalletBatchCreateInput as WalletBatchCreateInput,
|
|
1234
1312
|
type WalletBatchCreateResult as WalletBatchCreateResult,
|
|
@@ -1253,10 +1331,11 @@ export declare namespace Privy {
|
|
|
1253
1331
|
type SolanaSignTransactionRpcResponse as SolanaSignTransactionRpcResponse,
|
|
1254
1332
|
type SolanaSignAndSendTransactionRpcResponse as SolanaSignAndSendTransactionRpcResponse,
|
|
1255
1333
|
type SolanaSignMessageRpcResponse as SolanaSignMessageRpcResponse,
|
|
1334
|
+
type WalletRpcRequestBody as WalletRpcRequestBody,
|
|
1335
|
+
type WalletRpcResponse as WalletRpcResponse,
|
|
1256
1336
|
type WalletExportResponse as WalletExportResponse,
|
|
1257
1337
|
type WalletInitImportResponse as WalletInitImportResponse,
|
|
1258
1338
|
type WalletRawSignResponse as WalletRawSignResponse,
|
|
1259
|
-
type WalletRpcResponse as WalletRpcResponse,
|
|
1260
1339
|
type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
|
|
1261
1340
|
type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
|
|
1262
1341
|
type WalletsCursor as WalletsCursor,
|
|
@@ -1272,7 +1351,18 @@ export declare namespace Privy {
|
|
|
1272
1351
|
type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams,
|
|
1273
1352
|
};
|
|
1274
1353
|
|
|
1275
|
-
export {
|
|
1354
|
+
export {
|
|
1355
|
+
Apps as Apps,
|
|
1356
|
+
type AppResponse as AppResponse,
|
|
1357
|
+
type EmailInviteInput as EmailInviteInput,
|
|
1358
|
+
type WalletInviteInput as WalletInviteInput,
|
|
1359
|
+
type PhoneInviteInput as PhoneInviteInput,
|
|
1360
|
+
type UserInviteInput as UserInviteInput,
|
|
1361
|
+
type AllowlistEntry as AllowlistEntry,
|
|
1362
|
+
type AllowlistDeletionResponse as AllowlistDeletionResponse,
|
|
1363
|
+
type TestAccount as TestAccount,
|
|
1364
|
+
type TestAccountsResponse as TestAccountsResponse,
|
|
1365
|
+
};
|
|
1276
1366
|
|
|
1277
1367
|
export {
|
|
1278
1368
|
EmbeddedWallets as EmbeddedWallets,
|
|
@@ -1370,6 +1460,22 @@ export declare namespace Privy {
|
|
|
1370
1460
|
type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse,
|
|
1371
1461
|
type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse,
|
|
1372
1462
|
type FiatCustomerResponse as FiatCustomerResponse,
|
|
1463
|
+
type FiatCurrencyCode as FiatCurrencyCode,
|
|
1464
|
+
type CryptoCurrencyCode as CryptoCurrencyCode,
|
|
1465
|
+
type Caip2ChainID as Caip2ChainID,
|
|
1466
|
+
type FiatAmount as FiatAmount,
|
|
1467
|
+
type FiatOnrampSource as FiatOnrampSource,
|
|
1468
|
+
type FiatOnrampDestination as FiatOnrampDestination,
|
|
1469
|
+
type FiatOnrampEnvironment as FiatOnrampEnvironment,
|
|
1470
|
+
type FiatOnrampProvider as FiatOnrampProvider,
|
|
1471
|
+
type GetFiatOnrampQuotesInput as GetFiatOnrampQuotesInput,
|
|
1472
|
+
type FiatOnrampQuote as FiatOnrampQuote,
|
|
1473
|
+
type GetFiatOnrampQuotesResponse as GetFiatOnrampQuotesResponse,
|
|
1474
|
+
type GetFiatOnrampURLInput as GetFiatOnrampURLInput,
|
|
1475
|
+
type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse,
|
|
1476
|
+
type FiatOnrampTransactionStatus as FiatOnrampTransactionStatus,
|
|
1477
|
+
type GetFiatOnrampTransactionStatusInput as GetFiatOnrampTransactionStatusInput,
|
|
1478
|
+
type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse,
|
|
1373
1479
|
type BridgeDestinationAsset as BridgeDestinationAsset,
|
|
1374
1480
|
type BridgeSourceAsset as BridgeSourceAsset,
|
|
1375
1481
|
type BridgeFiatVirtualAccountSource as BridgeFiatVirtualAccountSource,
|
|
@@ -1521,9 +1627,9 @@ export declare namespace Privy {
|
|
|
1521
1627
|
|
|
1522
1628
|
export {
|
|
1523
1629
|
KeyQuorums as KeyQuorums,
|
|
1630
|
+
type KeyQuorumCreateParams as KeyQuorumCreateParams,
|
|
1524
1631
|
type KeyQuorum as KeyQuorum,
|
|
1525
1632
|
type KeyQuorumDeleteResponse as KeyQuorumDeleteResponse,
|
|
1526
|
-
type KeyQuorumCreateParams as KeyQuorumCreateParams,
|
|
1527
1633
|
type KeyQuorumDeleteParams as KeyQuorumDeleteParams,
|
|
1528
1634
|
type KeyQuorumUpdateParams as KeyQuorumUpdateParams,
|
|
1529
1635
|
};
|
|
@@ -1538,15 +1644,31 @@ export declare namespace Privy {
|
|
|
1538
1644
|
type AggregationInput as AggregationInput,
|
|
1539
1645
|
};
|
|
1540
1646
|
|
|
1647
|
+
export {
|
|
1648
|
+
Intents as Intents,
|
|
1649
|
+
type IntentType as IntentType,
|
|
1650
|
+
type IntentStatus as IntentStatus,
|
|
1651
|
+
type RuleIntentRequestDetails as RuleIntentRequestDetails,
|
|
1652
|
+
type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
|
|
1653
|
+
type IntentAuthorizationMember as IntentAuthorizationMember,
|
|
1654
|
+
type IntentAuthorization as IntentAuthorization,
|
|
1655
|
+
type BaseActionResult as BaseActionResult,
|
|
1656
|
+
type RpcIntentResponse as RpcIntentResponse,
|
|
1657
|
+
type WalletIntentResponse as WalletIntentResponse,
|
|
1658
|
+
type PolicyIntentResponse as PolicyIntentResponse,
|
|
1659
|
+
type KeyQuorumIntentResponse as KeyQuorumIntentResponse,
|
|
1660
|
+
type RuleIntentResponse as RuleIntentResponse,
|
|
1661
|
+
type IntentResponse as IntentResponse,
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1541
1664
|
export {
|
|
1542
1665
|
Webhooks as Webhooks,
|
|
1543
|
-
type
|
|
1544
|
-
type
|
|
1545
|
-
type
|
|
1546
|
-
type
|
|
1547
|
-
type
|
|
1548
|
-
type
|
|
1549
|
-
type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
|
|
1666
|
+
type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload,
|
|
1667
|
+
type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload,
|
|
1668
|
+
type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload,
|
|
1669
|
+
type IntentFailedWebhookPayload as IntentFailedWebhookPayload,
|
|
1670
|
+
type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload,
|
|
1671
|
+
type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload,
|
|
1550
1672
|
type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload,
|
|
1551
1673
|
type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload,
|
|
1552
1674
|
type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload,
|
|
@@ -1554,23 +1676,29 @@ export declare namespace Privy {
|
|
|
1554
1676
|
type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload,
|
|
1555
1677
|
type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
|
|
1556
1678
|
type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload,
|
|
1679
|
+
type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
|
|
1680
|
+
type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
|
|
1681
|
+
type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
|
|
1682
|
+
type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
|
|
1683
|
+
type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
|
|
1684
|
+
type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
|
|
1685
|
+
type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
|
|
1686
|
+
type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
|
|
1557
1687
|
type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
|
|
1558
1688
|
type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
|
|
1559
1689
|
type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
|
|
1560
1690
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
1561
1691
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
1562
|
-
type
|
|
1563
|
-
type
|
|
1564
|
-
type
|
|
1565
|
-
type
|
|
1692
|
+
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
1693
|
+
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
1694
|
+
type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
|
|
1695
|
+
type WebhookPayload as WebhookPayload,
|
|
1566
1696
|
type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload,
|
|
1567
1697
|
type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
|
1568
1698
|
type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload,
|
|
1569
1699
|
type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload,
|
|
1570
1700
|
type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload,
|
|
1571
1701
|
type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload,
|
|
1572
|
-
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
1573
|
-
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
1574
1702
|
};
|
|
1575
1703
|
|
|
1576
1704
|
export {
|
|
@@ -1578,8 +1706,14 @@ export declare namespace Privy {
|
|
|
1578
1706
|
type AccountWallet as AccountWallet,
|
|
1579
1707
|
type AccountResponse as AccountResponse,
|
|
1580
1708
|
type AccountWalletConfigurationItem as AccountWalletConfigurationItem,
|
|
1709
|
+
type AccountDisplayName as AccountDisplayName,
|
|
1710
|
+
type AccountWalletsConfiguration as AccountWalletsConfiguration,
|
|
1581
1711
|
type CreateAccountInput as CreateAccountInput,
|
|
1712
|
+
type UpdateAccountInput as UpdateAccountInput,
|
|
1582
1713
|
type AccountsListResponse as AccountsListResponse,
|
|
1714
|
+
type AssetAccountWithBalance as AssetAccountWithBalance,
|
|
1715
|
+
type AccountsDashboardListResponse as AccountsDashboardListResponse,
|
|
1716
|
+
type AccountBalanceResponse as AccountBalanceResponse,
|
|
1583
1717
|
};
|
|
1584
1718
|
|
|
1585
1719
|
export {
|
|
@@ -1601,11 +1735,13 @@ export declare namespace Privy {
|
|
|
1601
1735
|
type EthereumYieldClaimInput as EthereumYieldClaimInput,
|
|
1602
1736
|
type EthereumYieldClaimReward as EthereumYieldClaimReward,
|
|
1603
1737
|
type EthereumYieldClaimResponse as EthereumYieldClaimResponse,
|
|
1738
|
+
type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput,
|
|
1604
1739
|
};
|
|
1605
1740
|
|
|
1606
1741
|
export {
|
|
1607
|
-
|
|
1608
|
-
type
|
|
1609
|
-
type
|
|
1742
|
+
KrakenEmbed as KrakenEmbed,
|
|
1743
|
+
type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams,
|
|
1744
|
+
type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl,
|
|
1745
|
+
type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse,
|
|
1610
1746
|
};
|
|
1611
1747
|
}
|
|
@@ -65,19 +65,44 @@ export interface AccountWalletConfigurationItem {
|
|
|
65
65
|
custody?: WalletsAPI.WalletCustodian;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* An optional display name for the account.
|
|
70
|
+
*/
|
|
71
|
+
export type AccountDisplayName = string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Configuration for the wallets on this account.
|
|
75
|
+
*/
|
|
76
|
+
export type AccountWalletsConfiguration = Array<AccountWalletConfigurationItem>;
|
|
77
|
+
|
|
68
78
|
/**
|
|
69
79
|
* Input for creating a digital asset account.
|
|
70
80
|
*/
|
|
71
81
|
export interface CreateAccountInput {
|
|
72
82
|
/**
|
|
73
|
-
* Configuration for wallets
|
|
83
|
+
* Configuration for the wallets on this account.
|
|
74
84
|
*/
|
|
75
|
-
wallets_configuration:
|
|
85
|
+
wallets_configuration: AccountWalletsConfiguration;
|
|
76
86
|
|
|
77
87
|
/**
|
|
78
88
|
* An optional display name for the account.
|
|
79
89
|
*/
|
|
80
|
-
display_name?:
|
|
90
|
+
display_name?: AccountDisplayName;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Input for updating a digital asset account.
|
|
95
|
+
*/
|
|
96
|
+
export interface UpdateAccountInput {
|
|
97
|
+
/**
|
|
98
|
+
* An optional display name for the account.
|
|
99
|
+
*/
|
|
100
|
+
display_name?: AccountDisplayName;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Configuration for the wallets on this account.
|
|
104
|
+
*/
|
|
105
|
+
wallets_configuration?: AccountWalletsConfiguration;
|
|
81
106
|
}
|
|
82
107
|
|
|
83
108
|
/**
|
|
@@ -95,12 +120,190 @@ export interface AccountsListResponse {
|
|
|
95
120
|
next_cursor: string | null;
|
|
96
121
|
}
|
|
97
122
|
|
|
123
|
+
/**
|
|
124
|
+
* A digital asset account with its aggregated balance across all wallets and
|
|
125
|
+
* chains.
|
|
126
|
+
*/
|
|
127
|
+
export interface AssetAccountWithBalance {
|
|
128
|
+
/**
|
|
129
|
+
* The account ID.
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
|
|
133
|
+
balance: AssetAccountWithBalance.Balance;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* An optional display name for the account.
|
|
137
|
+
*/
|
|
138
|
+
display_name: string | null;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The wallets belonging to this account.
|
|
142
|
+
*/
|
|
143
|
+
wallets: Array<AccountWallet>;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace AssetAccountWithBalance {
|
|
147
|
+
export interface Balance {
|
|
148
|
+
/**
|
|
149
|
+
* The individual asset balances, each computed across all supported chains.
|
|
150
|
+
*/
|
|
151
|
+
assets: Array<Balance.Asset>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The total balance across all assets.
|
|
155
|
+
*/
|
|
156
|
+
total: Balance.Total;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export namespace Balance {
|
|
160
|
+
export interface Asset {
|
|
161
|
+
/**
|
|
162
|
+
* The amount of the asset held, denominated in the unit of the asset itself, with
|
|
163
|
+
* 1 decimal of precision.
|
|
164
|
+
*/
|
|
165
|
+
amount: string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The price of the asset in the provided currency.
|
|
169
|
+
*/
|
|
170
|
+
price: Asset.Price;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The symbol of the asset (e.g. USDC, ETH).
|
|
174
|
+
*/
|
|
175
|
+
symbol: string;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export namespace Asset {
|
|
179
|
+
/**
|
|
180
|
+
* The price of the asset in the provided currency.
|
|
181
|
+
*/
|
|
182
|
+
export interface Price {
|
|
183
|
+
/**
|
|
184
|
+
* The currency code.
|
|
185
|
+
*/
|
|
186
|
+
currency: 'usd';
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The monetary value as a string.
|
|
190
|
+
*/
|
|
191
|
+
value: string;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The total balance across all assets.
|
|
197
|
+
*/
|
|
198
|
+
export interface Total {
|
|
199
|
+
/**
|
|
200
|
+
* The currency code.
|
|
201
|
+
*/
|
|
202
|
+
currency: 'usd';
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The monetary value as a string.
|
|
206
|
+
*/
|
|
207
|
+
value: string;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Paginated list of digital asset accounts for the dashboard.
|
|
214
|
+
*/
|
|
215
|
+
export interface AccountsDashboardListResponse {
|
|
216
|
+
/**
|
|
217
|
+
* The list of accounts, with balances included for dashboard display.
|
|
218
|
+
*/
|
|
219
|
+
data: Array<AssetAccountWithBalance>;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Cursor for fetching the next page of results, or null if no more results.
|
|
223
|
+
*/
|
|
224
|
+
next_cursor: string | null;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The balance of a digital asset account, aggregated across all wallets and
|
|
229
|
+
* supported chains.
|
|
230
|
+
*/
|
|
231
|
+
export interface AccountBalanceResponse {
|
|
232
|
+
/**
|
|
233
|
+
* The individual asset balances, each computed across all supported chains.
|
|
234
|
+
*/
|
|
235
|
+
assets: Array<AccountBalanceResponse.Asset>;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* The total balance across all assets.
|
|
239
|
+
*/
|
|
240
|
+
total: AccountBalanceResponse.Total;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export namespace AccountBalanceResponse {
|
|
244
|
+
export interface Asset {
|
|
245
|
+
/**
|
|
246
|
+
* The amount of the asset held, denominated in the unit of the asset itself, with
|
|
247
|
+
* 1 decimal of precision.
|
|
248
|
+
*/
|
|
249
|
+
amount: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The price of the asset in the provided currency.
|
|
253
|
+
*/
|
|
254
|
+
price: Asset.Price;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* The symbol of the asset (e.g. USDC, ETH).
|
|
258
|
+
*/
|
|
259
|
+
symbol: string;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export namespace Asset {
|
|
263
|
+
/**
|
|
264
|
+
* The price of the asset in the provided currency.
|
|
265
|
+
*/
|
|
266
|
+
export interface Price {
|
|
267
|
+
/**
|
|
268
|
+
* The currency code.
|
|
269
|
+
*/
|
|
270
|
+
currency: 'usd';
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* The monetary value as a string.
|
|
274
|
+
*/
|
|
275
|
+
value: string;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The total balance across all assets.
|
|
281
|
+
*/
|
|
282
|
+
export interface Total {
|
|
283
|
+
/**
|
|
284
|
+
* The currency code.
|
|
285
|
+
*/
|
|
286
|
+
currency: 'usd';
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The monetary value as a string.
|
|
290
|
+
*/
|
|
291
|
+
value: string;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
98
295
|
export declare namespace Accounts {
|
|
99
296
|
export {
|
|
100
297
|
type AccountWallet as AccountWallet,
|
|
101
298
|
type AccountResponse as AccountResponse,
|
|
102
299
|
type AccountWalletConfigurationItem as AccountWalletConfigurationItem,
|
|
300
|
+
type AccountDisplayName as AccountDisplayName,
|
|
301
|
+
type AccountWalletsConfiguration as AccountWalletsConfiguration,
|
|
103
302
|
type CreateAccountInput as CreateAccountInput,
|
|
303
|
+
type UpdateAccountInput as UpdateAccountInput,
|
|
104
304
|
type AccountsListResponse as AccountsListResponse,
|
|
305
|
+
type AssetAccountWithBalance as AssetAccountWithBalance,
|
|
306
|
+
type AccountsDashboardListResponse as AccountsDashboardListResponse,
|
|
307
|
+
type AccountBalanceResponse as AccountBalanceResponse,
|
|
105
308
|
};
|
|
106
309
|
}
|