@privy-io/api-types 0.19.0 → 0.21.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 +48 -0
- package/client.d.mts +25 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -16
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/actions.d.mts +14 -0
- package/resources/actions.d.mts.map +1 -0
- package/resources/actions.d.ts +14 -0
- package/resources/actions.d.ts.map +1 -0
- package/resources/actions.js +9 -0
- package/resources/actions.js.map +1 -0
- package/resources/actions.mjs +5 -0
- package/resources/actions.mjs.map +1 -0
- package/resources/apps.d.mts +4 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +4 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/cards.d.mts +436 -0
- package/resources/cards.d.mts.map +1 -0
- package/resources/cards.d.ts +436 -0
- package/resources/cards.d.ts.map +1 -0
- package/resources/cards.js +9 -0
- package/resources/cards.js.map +1 -0
- package/resources/cards.mjs +5 -0
- package/resources/cards.mjs.map +1 -0
- package/resources/client-auth.d.mts +22 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +22 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/fiat.d.mts +921 -2
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts +921 -2
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.js.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/index.d.mts +11 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +1 -0
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +1 -0
- package/resources/intents.d.ts.map +1 -1
- package/resources/onramps.d.mts +39 -1
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +39 -1
- package/resources/onramps.d.ts.map +1 -1
- package/resources/onramps.js.map +1 -1
- package/resources/onramps.mjs.map +1 -1
- package/resources/organizations.d.mts +54 -1
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts +54 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.js.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +26 -3
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +26 -3
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +9 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +9 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +9 -0
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +9 -0
- package/resources/swaps.d.ts.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/users.d.mts +20 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-automations.d.mts +295 -0
- package/resources/wallet-automations.d.mts.map +1 -0
- package/resources/wallet-automations.d.ts +295 -0
- package/resources/wallet-automations.d.ts.map +1 -0
- package/resources/wallet-automations.js +9 -0
- package/resources/wallet-automations.js.map +1 -0
- package/resources/wallet-automations.mjs +5 -0
- package/resources/wallet-automations.mjs.map +1 -0
- package/resources/wallets/actions.d.mts +171 -5
- package/resources/wallets/actions.d.mts.map +1 -1
- package/resources/wallets/actions.d.ts +171 -5
- package/resources/wallets/actions.d.ts.map +1 -1
- package/resources/wallets/actions.js.map +1 -1
- package/resources/wallets/actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +3 -3
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +3 -3
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -2
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -2
- 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 +11 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +11 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +530 -41
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +530 -41
- 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 +686 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +686 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +439 -0
- package/src/resources/actions.ts +17 -0
- package/src/resources/apps.ts +5 -0
- package/src/resources/cards.ts +570 -0
- package/src/resources/client-auth.ts +29 -4
- package/src/resources/fiat.ts +1226 -3
- package/src/resources/index.ts +215 -0
- package/src/resources/intents.ts +2 -0
- package/src/resources/onramps.ts +43 -0
- package/src/resources/organizations.ts +68 -0
- package/src/resources/policies.ts +61 -0
- package/src/resources/shared.ts +12 -0
- package/src/resources/swaps.ts +11 -0
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users.ts +25 -0
- package/src/resources/wallet-automations.ts +417 -0
- package/src/resources/wallets/actions.ts +216 -4
- package/src/resources/wallets/balance.ts +32 -1
- package/src/resources/wallets/index.ts +43 -0
- package/src/resources/wallets/transactions.ts +11 -1
- package/src/resources/wallets/wallets.ts +696 -31
- package/src/resources/webhooks.ts +878 -9
- 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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as FiatAPI from '../fiat';
|
|
5
|
+
import * as SharedAPI from '../shared';
|
|
4
6
|
import * as WalletsAPI from './wallets';
|
|
5
7
|
|
|
6
8
|
export class Actions extends APIResource {}
|
|
@@ -311,6 +313,11 @@ export interface EarnDepositActionResponse {
|
|
|
311
313
|
*/
|
|
312
314
|
failure_reason?: FailureReason;
|
|
313
315
|
|
|
316
|
+
/**
|
|
317
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
318
|
+
*/
|
|
319
|
+
reference_id?: string | null;
|
|
320
|
+
|
|
314
321
|
/**
|
|
315
322
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
316
323
|
*/
|
|
@@ -333,11 +340,22 @@ export interface EarnDepositRequestBody {
|
|
|
333
340
|
*/
|
|
334
341
|
amount?: string;
|
|
335
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
345
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
346
|
+
*/
|
|
347
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
348
|
+
|
|
336
349
|
/**
|
|
337
350
|
* Amount in smallest unit to deposit (e.g. "1500000" for 1.5 USDC with 6
|
|
338
351
|
* decimals). Exactly one of `amount` or `raw_amount` must be provided.
|
|
339
352
|
*/
|
|
340
353
|
raw_amount?: string;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
357
|
+
*/
|
|
358
|
+
reference_id?: string;
|
|
341
359
|
}
|
|
342
360
|
|
|
343
361
|
/**
|
|
@@ -416,6 +434,11 @@ export interface EarnFeeCollectActionResponse {
|
|
|
416
434
|
*/
|
|
417
435
|
failure_reason?: FailureReason;
|
|
418
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
439
|
+
*/
|
|
440
|
+
reference_id?: string | null;
|
|
441
|
+
|
|
419
442
|
/**
|
|
420
443
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
421
444
|
*/
|
|
@@ -430,6 +453,17 @@ export interface EarnFeeCollectRequestBody {
|
|
|
430
453
|
* The ID of the vault to collect fees from.
|
|
431
454
|
*/
|
|
432
455
|
vault_id: string;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
459
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
460
|
+
*/
|
|
461
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
465
|
+
*/
|
|
466
|
+
reference_id?: string;
|
|
433
467
|
}
|
|
434
468
|
|
|
435
469
|
/**
|
|
@@ -473,6 +507,11 @@ export interface EarnIncentiveClaimActionResponse {
|
|
|
473
507
|
*/
|
|
474
508
|
failure_reason?: FailureReason;
|
|
475
509
|
|
|
510
|
+
/**
|
|
511
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
512
|
+
*/
|
|
513
|
+
reference_id?: string | null;
|
|
514
|
+
|
|
476
515
|
/**
|
|
477
516
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
478
517
|
*/
|
|
@@ -489,6 +528,17 @@ export interface EarnIncentiveClaimRequestBody {
|
|
|
489
528
|
* along with their respective testnets.
|
|
490
529
|
*/
|
|
491
530
|
chain: string;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
534
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
535
|
+
*/
|
|
536
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
540
|
+
*/
|
|
541
|
+
reference_id?: string;
|
|
492
542
|
}
|
|
493
543
|
|
|
494
544
|
/**
|
|
@@ -646,6 +696,11 @@ export interface EarnWithdrawActionResponse {
|
|
|
646
696
|
*/
|
|
647
697
|
failure_reason?: FailureReason;
|
|
648
698
|
|
|
699
|
+
/**
|
|
700
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
701
|
+
*/
|
|
702
|
+
reference_id?: string | null;
|
|
703
|
+
|
|
649
704
|
/**
|
|
650
705
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
651
706
|
*/
|
|
@@ -668,11 +723,22 @@ export interface EarnWithdrawRequestBody {
|
|
|
668
723
|
*/
|
|
669
724
|
amount?: string;
|
|
670
725
|
|
|
726
|
+
/**
|
|
727
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
728
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
729
|
+
*/
|
|
730
|
+
nonce?: WalletsAPI.WalletActionNonce;
|
|
731
|
+
|
|
671
732
|
/**
|
|
672
733
|
* Amount in smallest unit to withdraw (e.g. "1500000" for 1.5 USDC with 6
|
|
673
734
|
* decimals). Exactly one of `amount` or `raw_amount` must be provided.
|
|
674
735
|
*/
|
|
675
736
|
raw_amount?: string;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
740
|
+
*/
|
|
741
|
+
reference_id?: string;
|
|
676
742
|
}
|
|
677
743
|
|
|
678
744
|
/**
|
|
@@ -723,13 +789,17 @@ export interface EthereumEarnPositionResponse {
|
|
|
723
789
|
/**
|
|
724
790
|
* Supported earn provider protocols.
|
|
725
791
|
*/
|
|
726
|
-
export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda';
|
|
792
|
+
export type EthereumEarnProvider = 'morpho' | 'aave' | 'veda' | 'tempo';
|
|
727
793
|
|
|
728
794
|
/**
|
|
729
795
|
* Detailed vault information including current APY, liquidity, and asset metadata.
|
|
730
796
|
* Discriminated on provider.
|
|
731
797
|
*/
|
|
732
|
-
export type EthereumEarnVaultDetailsResponse =
|
|
798
|
+
export type EthereumEarnVaultDetailsResponse =
|
|
799
|
+
| AaveVaultDetails
|
|
800
|
+
| MorphoVaultDetails
|
|
801
|
+
| TempoVaultDetails
|
|
802
|
+
| VedaVaultDetails;
|
|
733
803
|
|
|
734
804
|
/**
|
|
735
805
|
* A wallet action step representing a cross-chain/cross-asset fill by an external
|
|
@@ -867,6 +937,69 @@ export interface MorphoVaultDetails {
|
|
|
867
937
|
vault_address: string;
|
|
868
938
|
}
|
|
869
939
|
|
|
940
|
+
/**
|
|
941
|
+
* A payout wallet action. Crypto is sent on-chain to a liquidation address that
|
|
942
|
+
* offramps to the destination bank account.
|
|
943
|
+
*/
|
|
944
|
+
export interface PayoutResponse {
|
|
945
|
+
/**
|
|
946
|
+
* The ID of the wallet action.
|
|
947
|
+
*/
|
|
948
|
+
id: string;
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
952
|
+
*/
|
|
953
|
+
created_at: string;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* The destination bank account for a payout.
|
|
957
|
+
*/
|
|
958
|
+
destination: FiatAPI.PayoutDestination;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* The Privy API environment.
|
|
962
|
+
*/
|
|
963
|
+
environment: SharedAPI.IntegrationEnvironment;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Supported fiat orchestration providers.
|
|
967
|
+
*/
|
|
968
|
+
provider: SharedAPI.OrchestrationProvider;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* The source crypto asset, chain, and amount for a payout.
|
|
972
|
+
*/
|
|
973
|
+
source: FiatAPI.PayoutSource;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Status of a wallet action.
|
|
977
|
+
*/
|
|
978
|
+
status: WalletActionStatus;
|
|
979
|
+
|
|
980
|
+
type: 'payout';
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* The ID of the wallet involved in the action.
|
|
984
|
+
*/
|
|
985
|
+
wallet_id: string;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
989
|
+
*/
|
|
990
|
+
failure_reason?: FailureReason;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
994
|
+
*/
|
|
995
|
+
reference_id?: string | null;
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
999
|
+
*/
|
|
1000
|
+
steps?: Array<WalletActionStep>;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
870
1003
|
/**
|
|
871
1004
|
* A wallet action step consisting of an SVM (Solana) transaction.
|
|
872
1005
|
*/
|
|
@@ -1009,6 +1142,11 @@ export interface SwapActionResponse {
|
|
|
1009
1142
|
*/
|
|
1010
1143
|
gas?: WalletsAPI.Gas | null;
|
|
1011
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
1147
|
+
*/
|
|
1148
|
+
reference_id?: string | null;
|
|
1149
|
+
|
|
1012
1150
|
/**
|
|
1013
1151
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
1014
1152
|
*/
|
|
@@ -1054,6 +1192,71 @@ export type TvmWalletActionStepStatus =
|
|
|
1054
1192
|
| 'reverted'
|
|
1055
1193
|
| 'failed';
|
|
1056
1194
|
|
|
1195
|
+
/**
|
|
1196
|
+
* Vault details for a Tempo earn vault.
|
|
1197
|
+
*/
|
|
1198
|
+
export interface TempoVaultDetails {
|
|
1199
|
+
/**
|
|
1200
|
+
* Vault identifier.
|
|
1201
|
+
*/
|
|
1202
|
+
id: string;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* EVM address of the vault admin wallet.
|
|
1206
|
+
*/
|
|
1207
|
+
admin_wallet_address: string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Privy wallet ID of the vault admin, or null when the Tempo vault admin is not
|
|
1211
|
+
* Privy-managed.
|
|
1212
|
+
*/
|
|
1213
|
+
admin_wallet_id: string | null;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
1217
|
+
* points.
|
|
1218
|
+
*/
|
|
1219
|
+
app_apy: number | null;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Asset metadata for an earn vault position.
|
|
1223
|
+
*/
|
|
1224
|
+
asset: EarnAsset;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* Available liquidity in USD.
|
|
1228
|
+
*/
|
|
1229
|
+
available_liquidity_usd: number | null;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:8453" for Base).
|
|
1233
|
+
*/
|
|
1234
|
+
caip2: string;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Human-readable vault name from the yield provider.
|
|
1238
|
+
*/
|
|
1239
|
+
name: string;
|
|
1240
|
+
|
|
1241
|
+
provider: 'tempo';
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Total value locked in USD.
|
|
1245
|
+
*/
|
|
1246
|
+
tvl_usd: number | null;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Annual percentage yield available to the user, after fees and excluding rewards,
|
|
1250
|
+
* in basis points (e.g. 500 for 5%). 1 basis point = 0.01%.
|
|
1251
|
+
*/
|
|
1252
|
+
user_apy: number | null;
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Onchain vault contract address.
|
|
1256
|
+
*/
|
|
1257
|
+
vault_address: string;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1057
1260
|
/**
|
|
1058
1261
|
* Response for a transfer action.
|
|
1059
1262
|
*/
|
|
@@ -1141,6 +1344,11 @@ export interface TransferActionResponse {
|
|
|
1141
1344
|
*/
|
|
1142
1345
|
gas?: WalletsAPI.Gas | null;
|
|
1143
1346
|
|
|
1347
|
+
/**
|
|
1348
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
1349
|
+
*/
|
|
1350
|
+
reference_id?: string | null;
|
|
1351
|
+
|
|
1144
1352
|
/**
|
|
1145
1353
|
* Decimal amount sent on the source chain (e.g. "1.5"). For exact_output
|
|
1146
1354
|
* cross-chain transfers, null until fill confirmation.
|
|
@@ -1249,7 +1457,8 @@ export type WalletActionResponse =
|
|
|
1249
1457
|
| EarnDepositActionResponse
|
|
1250
1458
|
| EarnWithdrawActionResponse
|
|
1251
1459
|
| EarnIncentiveClaimActionResponse
|
|
1252
|
-
| EarnFeeCollectActionResponse
|
|
1460
|
+
| EarnFeeCollectActionResponse
|
|
1461
|
+
| PayoutResponse;
|
|
1253
1462
|
|
|
1254
1463
|
/**
|
|
1255
1464
|
* Status of a wallet action.
|
|
@@ -1287,7 +1496,8 @@ export type WalletActionType =
|
|
|
1287
1496
|
| 'earn_deposit'
|
|
1288
1497
|
| 'earn_withdraw'
|
|
1289
1498
|
| 'earn_incentive_claim'
|
|
1290
|
-
| 'earn_fee_collect'
|
|
1499
|
+
| 'earn_fee_collect'
|
|
1500
|
+
| 'payout';
|
|
1291
1501
|
|
|
1292
1502
|
export declare namespace Actions {
|
|
1293
1503
|
export {
|
|
@@ -1321,11 +1531,13 @@ export declare namespace Actions {
|
|
|
1321
1531
|
type ListWalletActionsQuery as ListWalletActionsQuery,
|
|
1322
1532
|
type ListWalletActionsResponse as ListWalletActionsResponse,
|
|
1323
1533
|
type MorphoVaultDetails as MorphoVaultDetails,
|
|
1534
|
+
type PayoutResponse as PayoutResponse,
|
|
1324
1535
|
type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
|
|
1325
1536
|
type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
|
|
1326
1537
|
type SwapActionResponse as SwapActionResponse,
|
|
1327
1538
|
type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
|
|
1328
1539
|
type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
|
|
1540
|
+
type TempoVaultDetails as TempoVaultDetails,
|
|
1329
1541
|
type TransferActionResponse as TransferActionResponse,
|
|
1330
1542
|
type VedaVaultDetails as VedaVaultDetails,
|
|
1331
1543
|
type WalletActionInclude as WalletActionInclude,
|
|
@@ -45,6 +45,7 @@ export namespace BalanceGetResponse {
|
|
|
45
45
|
| 'usdt'
|
|
46
46
|
| 'eurc'
|
|
47
47
|
| 'usdb'
|
|
48
|
+
| 'ousd'
|
|
48
49
|
| 'pathusd'
|
|
49
50
|
| 'sol'
|
|
50
51
|
| 'trx'
|
|
@@ -86,6 +87,7 @@ export interface BalanceGetParams {
|
|
|
86
87
|
| 'usdt'
|
|
87
88
|
| 'eurc'
|
|
88
89
|
| 'usdb'
|
|
90
|
+
| 'ousd'
|
|
89
91
|
| 'pathusd'
|
|
90
92
|
| 'sol'
|
|
91
93
|
| 'trx'
|
|
@@ -95,7 +97,36 @@ export interface BalanceGetParams {
|
|
|
95
97
|
* Chain(s) to query named assets on (e.g. `tempo`, `base`). Use together with
|
|
96
98
|
* `asset`. Cannot be used with `token`.
|
|
97
99
|
*/
|
|
98
|
-
chain?:
|
|
100
|
+
chain?:
|
|
101
|
+
| 'ethereum'
|
|
102
|
+
| 'arbitrum'
|
|
103
|
+
| 'avalanche'
|
|
104
|
+
| 'base'
|
|
105
|
+
| 'tempo'
|
|
106
|
+
| 'linea'
|
|
107
|
+
| 'optimism'
|
|
108
|
+
| 'polygon'
|
|
109
|
+
| 'bsc'
|
|
110
|
+
| 'solana'
|
|
111
|
+
| 'tron'
|
|
112
|
+
| 'zksync_era'
|
|
113
|
+
| 'robinhood'
|
|
114
|
+
| 'tempo_testnet'
|
|
115
|
+
| 'hoodi'
|
|
116
|
+
| 'sepolia'
|
|
117
|
+
| 'arbitrum_sepolia'
|
|
118
|
+
| 'avalanche_fuji'
|
|
119
|
+
| 'base_sepolia'
|
|
120
|
+
| 'linea_testnet'
|
|
121
|
+
| 'optimism_sepolia'
|
|
122
|
+
| 'polygon_amoy'
|
|
123
|
+
| 'bsc_testnet'
|
|
124
|
+
| 'solana_devnet'
|
|
125
|
+
| 'solana_testnet'
|
|
126
|
+
| 'tron_nile'
|
|
127
|
+
| 'robinhood_testnet'
|
|
128
|
+
| string
|
|
129
|
+
| Array<WalletsAPI.WalletAssetChainNameInput>;
|
|
99
130
|
|
|
100
131
|
/**
|
|
101
132
|
* Include archived wallets in lookup. Defaults to false.
|
|
@@ -32,11 +32,13 @@ export {
|
|
|
32
32
|
type ListWalletActionsQuery,
|
|
33
33
|
type ListWalletActionsResponse,
|
|
34
34
|
type MorphoVaultDetails,
|
|
35
|
+
type PayoutResponse,
|
|
35
36
|
type SvmTransactionWalletActionStep,
|
|
36
37
|
type SvmWalletActionStepStatus,
|
|
37
38
|
type SwapActionResponse,
|
|
38
39
|
type TvmTransactionWalletActionStep,
|
|
39
40
|
type TvmWalletActionStepStatus,
|
|
41
|
+
type TempoVaultDetails,
|
|
40
42
|
type TransferActionResponse,
|
|
41
43
|
type VedaVaultDetails,
|
|
42
44
|
type WalletActionInclude,
|
|
@@ -58,9 +60,28 @@ export {
|
|
|
58
60
|
type AdvancedSwapRequestBody,
|
|
59
61
|
type AdvancedSwapResponse,
|
|
60
62
|
type AmountType,
|
|
63
|
+
type AptosBcsHex,
|
|
64
|
+
type AptosRpcInput,
|
|
65
|
+
type AptosRpcResponse,
|
|
66
|
+
type AptosSignTransactionRpcInput,
|
|
67
|
+
type AptosSignTransactionRpcInputParams,
|
|
68
|
+
type AptosSignTransactionRpcResponse,
|
|
69
|
+
type AptosSignTransactionRpcResponseData,
|
|
70
|
+
type AptosSignedTransactionBcsHex,
|
|
71
|
+
type AttachWalletAutomationRequestBody,
|
|
61
72
|
type AuthorizationKeyDashboardResponse,
|
|
62
73
|
type AuthorizationKeyResponse,
|
|
63
74
|
type AuthorizationKeyRole,
|
|
75
|
+
type CreateCryptoDepositAccountRequestBody,
|
|
76
|
+
type CreateCryptoDepositAccountResponse,
|
|
77
|
+
type CreateCryptoDepositAccountWithConfigRequestBody,
|
|
78
|
+
type CreateCryptoDepositAccountWithRouteRequestBody,
|
|
79
|
+
type CryptoDepositAddressRoute,
|
|
80
|
+
type CryptoDepositAsset,
|
|
81
|
+
type CryptoDepositAssetFilter,
|
|
82
|
+
type CryptoDepositAssetFilterAll,
|
|
83
|
+
type CryptoDepositAssetFilterExclude,
|
|
84
|
+
type CryptoDepositAssetFilterInclude,
|
|
64
85
|
type CurveSigningChainType,
|
|
65
86
|
type CurveType,
|
|
66
87
|
type CustodialWallet,
|
|
@@ -68,10 +89,12 @@ export {
|
|
|
68
89
|
type CustodialWalletCreateInput,
|
|
69
90
|
type CustodialWalletProvider,
|
|
70
91
|
type CustomTokenTransferSource,
|
|
92
|
+
type DetachWalletAutomationRequestBody,
|
|
71
93
|
type DeveloperFee,
|
|
72
94
|
type EncryptedAuthorizationKey,
|
|
73
95
|
type EncryptedBoundAuthenticateResponse,
|
|
74
96
|
type EncryptedWalletAuthenticateResponse,
|
|
97
|
+
type EntityID,
|
|
75
98
|
type EthereumPersonalSignRpcInput,
|
|
76
99
|
type EthereumPersonalSignRpcInputParams,
|
|
77
100
|
type EthereumPersonalSignRpcResponse,
|
|
@@ -129,6 +152,14 @@ export {
|
|
|
129
152
|
type Hex,
|
|
130
153
|
type IntentBinding,
|
|
131
154
|
type NamedTokenTransferSource,
|
|
155
|
+
type NearRpcRequestBody,
|
|
156
|
+
type NearRpcResponse,
|
|
157
|
+
type NearSignTransactionRpcRequestBody,
|
|
158
|
+
type NearSignTransactionRpcRequestBodyParams,
|
|
159
|
+
type NearSignTransactionRpcResponse,
|
|
160
|
+
type NearSignTransactionRpcResponseData,
|
|
161
|
+
type NearSignedTransactionBorshBase64,
|
|
162
|
+
type NearUnsignedTransactionBorshBase64,
|
|
132
163
|
type OutputWithPreviousTransactionData,
|
|
133
164
|
type PolicyInput,
|
|
134
165
|
type PrivateKeyExportInput,
|
|
@@ -266,6 +297,7 @@ export {
|
|
|
266
297
|
type UserOperationInput,
|
|
267
298
|
type UserSigningKeyBinding,
|
|
268
299
|
type Wallet,
|
|
300
|
+
type WalletActionNonce,
|
|
269
301
|
type WalletAdditionalSigner,
|
|
270
302
|
type WalletAdditionalSignerItem,
|
|
271
303
|
type WalletAPIRegisterAuthorizationKeyInput,
|
|
@@ -279,6 +311,8 @@ export {
|
|
|
279
311
|
type WalletAuthenticateRequestBody,
|
|
280
312
|
type WalletAuthenticateWithJwtResponse,
|
|
281
313
|
type WalletAuthorizationHeaders,
|
|
314
|
+
type WalletAutomationAttachmentListResponse,
|
|
315
|
+
type WalletAutomationAttachmentResponse,
|
|
282
316
|
type WalletBatchCreateInput,
|
|
283
317
|
type WalletBatchCreateResponse,
|
|
284
318
|
type WalletBatchCreateResult,
|
|
@@ -287,6 +321,9 @@ export {
|
|
|
287
321
|
type WalletCreateWalletsWithRecoveryResponse,
|
|
288
322
|
type WalletCustodian,
|
|
289
323
|
type WalletEntity,
|
|
324
|
+
type WalletEntityAssignmentRequestBody,
|
|
325
|
+
type WalletEntityAssignmentResponse,
|
|
326
|
+
type WalletEntityType,
|
|
290
327
|
type WalletEntropyType,
|
|
291
328
|
type WalletEthereumAsset,
|
|
292
329
|
type WalletExportRequestBody,
|
|
@@ -300,6 +337,12 @@ export {
|
|
|
300
337
|
type WalletSolanaAsset,
|
|
301
338
|
type WalletTronAsset,
|
|
302
339
|
type WalletUpdateRequestBody,
|
|
340
|
+
type XrplRpcInput,
|
|
341
|
+
type XrplRpcResponse,
|
|
342
|
+
type XrplSignTransactionRpcInput,
|
|
343
|
+
type XrplSignTransactionRpcInputParams,
|
|
344
|
+
type XrplSignTransactionRpcResponse,
|
|
345
|
+
type XrplSignTransactionRpcResponseData,
|
|
303
346
|
type WalletCreateParams,
|
|
304
347
|
type WalletUpdateParams,
|
|
305
348
|
type WalletListParams,
|
|
@@ -48,7 +48,11 @@ export namespace TransactionGetResponse {
|
|
|
48
48
|
*/
|
|
49
49
|
details: Transaction.Details;
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Privy's ID for the transaction, or `null` if the transaction was not broadcasted
|
|
53
|
+
* through Privy.
|
|
54
|
+
*/
|
|
55
|
+
privy_transaction_id: string | null;
|
|
52
56
|
|
|
53
57
|
/**
|
|
54
58
|
* Status of a blockchain transaction submitted by Privy.
|
|
@@ -57,6 +61,11 @@ export namespace TransactionGetResponse {
|
|
|
57
61
|
|
|
58
62
|
transaction_hash: string | null;
|
|
59
63
|
|
|
64
|
+
/**
|
|
65
|
+
* The wallet whose history this transaction belongs to. The sending wallet for
|
|
66
|
+
* outbound transactions, including every transaction Privy broadcasted, and the
|
|
67
|
+
* receiving wallet for inbound transfers.
|
|
68
|
+
*/
|
|
60
69
|
wallet_id: string;
|
|
61
70
|
|
|
62
71
|
sponsored?: boolean;
|
|
@@ -98,6 +107,7 @@ export interface TransactionGetParams {
|
|
|
98
107
|
| 'usdt'
|
|
99
108
|
| 'eurc'
|
|
100
109
|
| 'usdb'
|
|
110
|
+
| 'ousd'
|
|
101
111
|
| 'pathusd'
|
|
102
112
|
| 'sol'
|
|
103
113
|
| 'trx'
|