@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
|
@@ -4,6 +4,7 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import * as WalletsAPI from './wallets';
|
|
5
5
|
import * as AppsAPI from '../apps';
|
|
6
6
|
import * as SharedAPI from '../shared';
|
|
7
|
+
import * as WalletAutomationsAPI from '../wallet-automations';
|
|
7
8
|
import * as ActionsAPI from './actions';
|
|
8
9
|
import {
|
|
9
10
|
AaveVaultDetails,
|
|
@@ -37,9 +38,11 @@ import {
|
|
|
37
38
|
ListWalletActionsQuery,
|
|
38
39
|
ListWalletActionsResponse,
|
|
39
40
|
MorphoVaultDetails,
|
|
41
|
+
PayoutResponse,
|
|
40
42
|
SvmTransactionWalletActionStep,
|
|
41
43
|
SvmWalletActionStepStatus,
|
|
42
44
|
SwapActionResponse,
|
|
45
|
+
TempoVaultDetails,
|
|
43
46
|
TransferActionResponse,
|
|
44
47
|
TvmTransactionWalletActionStep,
|
|
45
48
|
TvmWalletActionStepStatus,
|
|
@@ -473,6 +476,101 @@ export interface AdvancedSwapResponse {
|
|
|
473
476
|
*/
|
|
474
477
|
export type AmountType = 'exact_input' | 'exact_output';
|
|
475
478
|
|
|
479
|
+
/**
|
|
480
|
+
* A non-empty, 0x-prefixed, even-length BCS hex string.
|
|
481
|
+
*/
|
|
482
|
+
export type AptosBcsHex = string;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Executes the Aptos `aptos_signTransaction` RPC to sign a legacy single-signer
|
|
486
|
+
* Ed25519 RawTransaction. The caller is responsible for broadcasting.
|
|
487
|
+
*/
|
|
488
|
+
export interface AptosRpcInput {
|
|
489
|
+
method: 'aptos_signTransaction';
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Parameters for the Aptos `aptos_signTransaction` RPC.
|
|
493
|
+
*/
|
|
494
|
+
params: AptosSignTransactionRpcInputParams;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Response to the Aptos `aptos_signTransaction` RPC.
|
|
499
|
+
*/
|
|
500
|
+
export interface AptosRpcResponse {
|
|
501
|
+
/**
|
|
502
|
+
* Data returned by the Aptos `aptos_signTransaction` RPC.
|
|
503
|
+
*/
|
|
504
|
+
data: AptosSignTransactionRpcResponseData;
|
|
505
|
+
|
|
506
|
+
method: 'aptos_signTransaction';
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Executes the Aptos `aptos_signTransaction` RPC to sign a legacy single-signer
|
|
511
|
+
* Ed25519 RawTransaction. The caller is responsible for broadcasting.
|
|
512
|
+
*/
|
|
513
|
+
export interface AptosSignTransactionRpcInput {
|
|
514
|
+
method: 'aptos_signTransaction';
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Parameters for the Aptos `aptos_signTransaction` RPC.
|
|
518
|
+
*/
|
|
519
|
+
params: AptosSignTransactionRpcInputParams;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Parameters for the Aptos `aptos_signTransaction` RPC.
|
|
524
|
+
*/
|
|
525
|
+
export interface AptosSignTransactionRpcInputParams {
|
|
526
|
+
/**
|
|
527
|
+
* A non-empty, 0x-prefixed, even-length BCS hex string.
|
|
528
|
+
*/
|
|
529
|
+
transaction: AptosBcsHex;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Response to the Aptos `aptos_signTransaction` RPC.
|
|
534
|
+
*/
|
|
535
|
+
export interface AptosSignTransactionRpcResponse {
|
|
536
|
+
/**
|
|
537
|
+
* Data returned by the Aptos `aptos_signTransaction` RPC.
|
|
538
|
+
*/
|
|
539
|
+
data: AptosSignTransactionRpcResponseData;
|
|
540
|
+
|
|
541
|
+
method: 'aptos_signTransaction';
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Data returned by the Aptos `aptos_signTransaction` RPC.
|
|
546
|
+
*/
|
|
547
|
+
export interface AptosSignTransactionRpcResponseData {
|
|
548
|
+
encoding: 'hex';
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* A non-empty, 0x-prefixed, even-length BCS legacy Ed25519 SignedTransaction.
|
|
552
|
+
*/
|
|
553
|
+
signed_transaction: AptosSignedTransactionBcsHex;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* A non-empty, 0x-prefixed, even-length BCS legacy Ed25519 SignedTransaction.
|
|
558
|
+
*/
|
|
559
|
+
export type AptosSignedTransactionBcsHex = string;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Request body for attaching automations to a wallet (wallet ID comes from the
|
|
563
|
+
* URL).
|
|
564
|
+
*/
|
|
565
|
+
export interface AttachWalletAutomationRequestBody {
|
|
566
|
+
automation_ids: Array<string>;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Per-attachment parameters for swap automations.
|
|
570
|
+
*/
|
|
571
|
+
params?: WalletAutomationsAPI.SwapAttachmentParams;
|
|
572
|
+
}
|
|
573
|
+
|
|
476
574
|
/**
|
|
477
575
|
* Dashboard response for a wallet authorization key (includes role, which is an
|
|
478
576
|
* internal-only concept).
|
|
@@ -512,6 +610,121 @@ export interface AuthorizationKeyResponse {
|
|
|
512
610
|
*/
|
|
513
611
|
export type AuthorizationKeyRole = 'root' | 'manager' | 'delegated-actions' | null;
|
|
514
612
|
|
|
613
|
+
/**
|
|
614
|
+
* Request body for creating a crypto deposit account.
|
|
615
|
+
*/
|
|
616
|
+
export type CreateCryptoDepositAccountRequestBody =
|
|
617
|
+
| CreateCryptoDepositAccountWithConfigRequestBody
|
|
618
|
+
| CreateCryptoDepositAccountWithRouteRequestBody;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Response returned after creating a crypto deposit account.
|
|
622
|
+
*/
|
|
623
|
+
export interface CreateCryptoDepositAccountResponse {
|
|
624
|
+
deposit_accounts: Array<CryptoDepositAddressRoute>;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Creates a crypto deposit account from an existing deposit configuration.
|
|
629
|
+
*/
|
|
630
|
+
export interface CreateCryptoDepositAccountWithConfigRequestBody {
|
|
631
|
+
deposit_config_id: string;
|
|
632
|
+
|
|
633
|
+
type: 'deposit_config';
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Creates a crypto deposit account from an inline source and destination.
|
|
638
|
+
*/
|
|
639
|
+
export interface CreateCryptoDepositAccountWithRouteRequestBody {
|
|
640
|
+
/**
|
|
641
|
+
* An asset on a chain. Uses a human-readable alias (usdc, base) when one is on
|
|
642
|
+
* file, otherwise the raw asset address and CAIP-2.
|
|
643
|
+
*/
|
|
644
|
+
destination: CryptoDepositAsset;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Which assets a deposit address accepts. Asset and chain use human-readable
|
|
648
|
+
* aliases when known.
|
|
649
|
+
*/
|
|
650
|
+
source: CryptoDepositAssetFilter;
|
|
651
|
+
|
|
652
|
+
type: 'inline_route';
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* One deposit address and the source/destination route it accepts.
|
|
657
|
+
*/
|
|
658
|
+
export interface CryptoDepositAddressRoute {
|
|
659
|
+
deposit_address: string;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* An asset on a chain. Uses a human-readable alias (usdc, base) when one is on
|
|
663
|
+
* file, otherwise the raw asset address and CAIP-2.
|
|
664
|
+
*/
|
|
665
|
+
destination: CryptoDepositAsset;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Which assets a deposit address accepts. Asset and chain use human-readable
|
|
669
|
+
* aliases when known.
|
|
670
|
+
*/
|
|
671
|
+
source: CryptoDepositAssetFilter;
|
|
672
|
+
|
|
673
|
+
wallet_id: string;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* An asset on a chain. Uses a human-readable alias (usdc, base) when one is on
|
|
678
|
+
* file, otherwise the raw asset address and CAIP-2.
|
|
679
|
+
*/
|
|
680
|
+
export interface CryptoDepositAsset {
|
|
681
|
+
/**
|
|
682
|
+
* Known alias (usdc) or raw asset address.
|
|
683
|
+
*/
|
|
684
|
+
asset: string;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Known alias (base) or CAIP-2. Omit on a source value to match every supported
|
|
688
|
+
* chain for that asset.
|
|
689
|
+
*/
|
|
690
|
+
chain?: string;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Which assets a deposit address accepts. Asset and chain use human-readable
|
|
695
|
+
* aliases when known.
|
|
696
|
+
*/
|
|
697
|
+
export type CryptoDepositAssetFilter =
|
|
698
|
+
| CryptoDepositAssetFilterAll
|
|
699
|
+
| CryptoDepositAssetFilterInclude
|
|
700
|
+
| CryptoDepositAssetFilterExclude;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Match all assets.
|
|
704
|
+
*/
|
|
705
|
+
export interface CryptoDepositAssetFilterAll {
|
|
706
|
+
mode: 'all';
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Match all assets except the specified ones, using human-readable aliases when
|
|
711
|
+
* known.
|
|
712
|
+
*/
|
|
713
|
+
export interface CryptoDepositAssetFilterExclude {
|
|
714
|
+
mode: 'exclude';
|
|
715
|
+
|
|
716
|
+
values: Array<CryptoDepositAsset>;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Match only the specified assets, using human-readable aliases when known.
|
|
721
|
+
*/
|
|
722
|
+
export interface CryptoDepositAssetFilterInclude {
|
|
723
|
+
mode: 'include';
|
|
724
|
+
|
|
725
|
+
values: Array<CryptoDepositAsset>;
|
|
726
|
+
}
|
|
727
|
+
|
|
515
728
|
/**
|
|
516
729
|
* The wallet chain types that support curve-based signing.
|
|
517
730
|
*/
|
|
@@ -527,7 +740,8 @@ export type CurveSigningChainType =
|
|
|
527
740
|
| 'pearl'
|
|
528
741
|
| 'near'
|
|
529
742
|
| 'ton'
|
|
530
|
-
| 'starknet'
|
|
743
|
+
| 'starknet'
|
|
744
|
+
| 'xrpl';
|
|
531
745
|
|
|
532
746
|
/**
|
|
533
747
|
* The cryptographic curve type used by the wallet.
|
|
@@ -639,6 +853,14 @@ export interface CustomTokenTransferSource {
|
|
|
639
853
|
amount?: string;
|
|
640
854
|
}
|
|
641
855
|
|
|
856
|
+
/**
|
|
857
|
+
* Request body for detaching automations from a wallet (wallet ID comes from the
|
|
858
|
+
* URL).
|
|
859
|
+
*/
|
|
860
|
+
export interface DetachWalletAutomationRequestBody {
|
|
861
|
+
automation_ids: Array<string>;
|
|
862
|
+
}
|
|
863
|
+
|
|
642
864
|
/**
|
|
643
865
|
* Estimated fee paid to the developer.
|
|
644
866
|
*/
|
|
@@ -709,6 +931,11 @@ export interface EncryptedWalletAuthenticateResponse {
|
|
|
709
931
|
wallets: Array<Wallet>;
|
|
710
932
|
}
|
|
711
933
|
|
|
934
|
+
/**
|
|
935
|
+
* A Privy entity ID.
|
|
936
|
+
*/
|
|
937
|
+
export type EntityID = string;
|
|
938
|
+
|
|
712
939
|
/**
|
|
713
940
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
714
941
|
*/
|
|
@@ -962,6 +1189,9 @@ export interface EthereumSendTransactionRpcInput {
|
|
|
962
1189
|
*/
|
|
963
1190
|
experimental_data_suffix?: Hex;
|
|
964
1191
|
|
|
1192
|
+
/**
|
|
1193
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
1194
|
+
*/
|
|
965
1195
|
reference_id?: string;
|
|
966
1196
|
|
|
967
1197
|
sponsor?: boolean;
|
|
@@ -1009,6 +1239,9 @@ export interface EthereumSendTransactionRpcResponseData {
|
|
|
1009
1239
|
|
|
1010
1240
|
hash: string;
|
|
1011
1241
|
|
|
1242
|
+
/**
|
|
1243
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
1244
|
+
*/
|
|
1012
1245
|
reference_id?: string | null;
|
|
1013
1246
|
|
|
1014
1247
|
transaction_id?: string;
|
|
@@ -1379,6 +1612,7 @@ export type ExtendedChainType =
|
|
|
1379
1612
|
| 'near'
|
|
1380
1613
|
| 'ton'
|
|
1381
1614
|
| 'starknet'
|
|
1615
|
+
| 'xrpl'
|
|
1382
1616
|
| 'spark';
|
|
1383
1617
|
|
|
1384
1618
|
/**
|
|
@@ -1456,7 +1690,7 @@ export interface HDInitInput {
|
|
|
1456
1690
|
|
|
1457
1691
|
/**
|
|
1458
1692
|
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1459
|
-
* `stellar`, `tron`, `sui`, and `
|
|
1693
|
+
* `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
|
|
1460
1694
|
*/
|
|
1461
1695
|
chain_type: WalletImportSupportedChains;
|
|
1462
1696
|
|
|
@@ -1492,7 +1726,7 @@ export interface HDSubmitInput {
|
|
|
1492
1726
|
|
|
1493
1727
|
/**
|
|
1494
1728
|
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1495
|
-
* `stellar`, `tron`, `sui`, and `
|
|
1729
|
+
* `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
|
|
1496
1730
|
*/
|
|
1497
1731
|
chain_type: WalletImportSupportedChains;
|
|
1498
1732
|
|
|
@@ -1585,8 +1819,8 @@ export interface IntentBinding {
|
|
|
1585
1819
|
*/
|
|
1586
1820
|
export interface NamedTokenTransferSource {
|
|
1587
1821
|
/**
|
|
1588
|
-
* The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', '
|
|
1589
|
-
* (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
|
|
1822
|
+
* The asset to transfer. Supported: 'usdc', 'usdb', 'usdt', 'eurc', 'ousd',
|
|
1823
|
+
* 'pathusd' (stablecoins), 'eth' (native Ethereum), 'sol' (native Solana).
|
|
1590
1824
|
*/
|
|
1591
1825
|
asset: string;
|
|
1592
1826
|
|
|
@@ -1606,6 +1840,88 @@ export interface NamedTokenTransferSource {
|
|
|
1606
1840
|
amount?: string;
|
|
1607
1841
|
}
|
|
1608
1842
|
|
|
1843
|
+
/**
|
|
1844
|
+
* Executes the NEAR `near_signTransaction` RPC to sign a transaction. The caller
|
|
1845
|
+
* is responsible for broadcasting.
|
|
1846
|
+
*/
|
|
1847
|
+
export interface NearRpcRequestBody {
|
|
1848
|
+
method: 'near_signTransaction';
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Parameters for the NEAR `near_signTransaction` RPC.
|
|
1852
|
+
*/
|
|
1853
|
+
params: NearSignTransactionRpcRequestBodyParams;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
/**
|
|
1857
|
+
* Response to the NEAR `near_signTransaction` RPC.
|
|
1858
|
+
*/
|
|
1859
|
+
export interface NearRpcResponse {
|
|
1860
|
+
/**
|
|
1861
|
+
* Data returned by the NEAR `near_signTransaction` RPC.
|
|
1862
|
+
*/
|
|
1863
|
+
data: NearSignTransactionRpcResponseData;
|
|
1864
|
+
|
|
1865
|
+
method: 'near_signTransaction';
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Executes the NEAR `near_signTransaction` RPC to sign a transaction. The caller
|
|
1870
|
+
* is responsible for broadcasting.
|
|
1871
|
+
*/
|
|
1872
|
+
export interface NearSignTransactionRpcRequestBody {
|
|
1873
|
+
method: 'near_signTransaction';
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Parameters for the NEAR `near_signTransaction` RPC.
|
|
1877
|
+
*/
|
|
1878
|
+
params: NearSignTransactionRpcRequestBodyParams;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Parameters for the NEAR `near_signTransaction` RPC.
|
|
1883
|
+
*/
|
|
1884
|
+
export interface NearSignTransactionRpcRequestBodyParams {
|
|
1885
|
+
/**
|
|
1886
|
+
* A non-empty, base64-encoded Borsh NEAR Transaction.
|
|
1887
|
+
*/
|
|
1888
|
+
transaction: NearUnsignedTransactionBorshBase64;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* Response to the NEAR `near_signTransaction` RPC.
|
|
1893
|
+
*/
|
|
1894
|
+
export interface NearSignTransactionRpcResponse {
|
|
1895
|
+
/**
|
|
1896
|
+
* Data returned by the NEAR `near_signTransaction` RPC.
|
|
1897
|
+
*/
|
|
1898
|
+
data: NearSignTransactionRpcResponseData;
|
|
1899
|
+
|
|
1900
|
+
method: 'near_signTransaction';
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Data returned by the NEAR `near_signTransaction` RPC.
|
|
1905
|
+
*/
|
|
1906
|
+
export interface NearSignTransactionRpcResponseData {
|
|
1907
|
+
encoding: 'base64';
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* A non-empty, base64-encoded NEAR Ed25519 SignedTransaction.
|
|
1911
|
+
*/
|
|
1912
|
+
signed_transaction: NearSignedTransactionBorshBase64;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* A non-empty, base64-encoded NEAR Ed25519 SignedTransaction.
|
|
1917
|
+
*/
|
|
1918
|
+
export type NearSignedTransactionBorshBase64 = string;
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* A non-empty, base64-encoded Borsh NEAR Transaction.
|
|
1922
|
+
*/
|
|
1923
|
+
export type NearUnsignedTransactionBorshBase64 = string;
|
|
1924
|
+
|
|
1609
1925
|
/**
|
|
1610
1926
|
* A Spark token output with its previous transaction data.
|
|
1611
1927
|
*/
|
|
@@ -1674,7 +1990,7 @@ export interface PrivateKeyInitInput {
|
|
|
1674
1990
|
|
|
1675
1991
|
/**
|
|
1676
1992
|
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1677
|
-
* `stellar`, `tron`, `sui`, and `
|
|
1993
|
+
* `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
|
|
1678
1994
|
*/
|
|
1679
1995
|
chain_type: WalletImportSupportedChains;
|
|
1680
1996
|
|
|
@@ -1697,7 +2013,7 @@ export interface PrivateKeySubmitInput {
|
|
|
1697
2013
|
|
|
1698
2014
|
/**
|
|
1699
2015
|
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
1700
|
-
* `stellar`, `tron`, `sui`, and `
|
|
2016
|
+
* `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
|
|
1701
2017
|
*/
|
|
1702
2018
|
chain_type: WalletImportSupportedChains;
|
|
1703
2019
|
|
|
@@ -2000,6 +2316,9 @@ export interface SolanaSignAndSendTransactionRpcInput {
|
|
|
2000
2316
|
|
|
2001
2317
|
optimistic_broadcast?: boolean;
|
|
2002
2318
|
|
|
2319
|
+
/**
|
|
2320
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
2321
|
+
*/
|
|
2003
2322
|
reference_id?: string;
|
|
2004
2323
|
|
|
2005
2324
|
sponsor?: boolean;
|
|
@@ -2045,6 +2364,9 @@ export interface SolanaSignAndSendTransactionRpcResponseData {
|
|
|
2045
2364
|
|
|
2046
2365
|
hash: string;
|
|
2047
2366
|
|
|
2367
|
+
/**
|
|
2368
|
+
* Developer-provided reference ID, if one was included in the request.
|
|
2369
|
+
*/
|
|
2048
2370
|
reference_id?: string | null;
|
|
2049
2371
|
|
|
2050
2372
|
signed_transaction?: string;
|
|
@@ -3113,7 +3435,8 @@ export type TransactionChainNameInput =
|
|
|
3113
3435
|
| 'optimism'
|
|
3114
3436
|
| 'polygon'
|
|
3115
3437
|
| 'solana'
|
|
3116
|
-
| 'sepolia'
|
|
3438
|
+
| 'sepolia'
|
|
3439
|
+
| (string & {});
|
|
3117
3440
|
|
|
3118
3441
|
/**
|
|
3119
3442
|
* Details of a wallet transaction, varying by transaction type.
|
|
@@ -3232,6 +3555,7 @@ export interface TransferReceivedTransactionDetail {
|
|
|
3232
3555
|
| 'usdt'
|
|
3233
3556
|
| 'eurc'
|
|
3234
3557
|
| 'usdb'
|
|
3558
|
+
| 'ousd'
|
|
3235
3559
|
| 'pathusd'
|
|
3236
3560
|
| 'sol'
|
|
3237
3561
|
| 'trx'
|
|
@@ -3292,6 +3616,17 @@ export interface TransferRequestBody {
|
|
|
3292
3616
|
*/
|
|
3293
3617
|
fee_configuration?: FeeConfiguration;
|
|
3294
3618
|
|
|
3619
|
+
/**
|
|
3620
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
3621
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
3622
|
+
*/
|
|
3623
|
+
nonce?: WalletActionNonce;
|
|
3624
|
+
|
|
3625
|
+
/**
|
|
3626
|
+
* Developer-provided identifier for this request. Must be unique per app.
|
|
3627
|
+
*/
|
|
3628
|
+
reference_id?: string;
|
|
3629
|
+
|
|
3295
3630
|
/**
|
|
3296
3631
|
* Maximum allowed slippage in basis points (1 bps = 0.01%). Only applicable for
|
|
3297
3632
|
* cross-chain or cross-asset transfers; omit to use the provider default.
|
|
@@ -3313,6 +3648,7 @@ export interface TransferSentTransactionDetail {
|
|
|
3313
3648
|
| 'usdt'
|
|
3314
3649
|
| 'eurc'
|
|
3315
3650
|
| 'usdb'
|
|
3651
|
+
| 'ousd'
|
|
3316
3652
|
| 'pathusd'
|
|
3317
3653
|
| 'sol'
|
|
3318
3654
|
| 'trx'
|
|
@@ -3870,8 +4206,9 @@ export interface Wallet {
|
|
|
3870
4206
|
entity?: WalletEntity | null;
|
|
3871
4207
|
|
|
3872
4208
|
/**
|
|
3873
|
-
* A customer-provided identifier for mapping to external systems.
|
|
3874
|
-
* only
|
|
4209
|
+
* A customer-provided identifier for mapping to external systems. URL-safe
|
|
4210
|
+
* characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
|
|
4211
|
+
* once set.
|
|
3875
4212
|
*/
|
|
3876
4213
|
external_id?: string;
|
|
3877
4214
|
|
|
@@ -3882,6 +4219,12 @@ export interface Wallet {
|
|
|
3882
4219
|
public_key?: string;
|
|
3883
4220
|
}
|
|
3884
4221
|
|
|
4222
|
+
/**
|
|
4223
|
+
* Unique caller-generated nonce used to prevent replaying a signed wallet action
|
|
4224
|
+
* request. Must be at least 24 characters (e.g. a cuid2 or UUID).
|
|
4225
|
+
*/
|
|
4226
|
+
export type WalletActionNonce = string;
|
|
4227
|
+
|
|
3885
4228
|
/**
|
|
3886
4229
|
* Additional signers for the wallet.
|
|
3887
4230
|
*/
|
|
@@ -3938,6 +4281,7 @@ export type WalletAsset =
|
|
|
3938
4281
|
| 'usdt'
|
|
3939
4282
|
| 'eurc'
|
|
3940
4283
|
| 'usdb'
|
|
4284
|
+
| 'ousd'
|
|
3941
4285
|
| 'pathusd'
|
|
3942
4286
|
| 'sol'
|
|
3943
4287
|
| 'trx';
|
|
@@ -3958,6 +4302,8 @@ export type WalletAssetChainNameInput =
|
|
|
3958
4302
|
| 'solana'
|
|
3959
4303
|
| 'tron'
|
|
3960
4304
|
| 'zksync_era'
|
|
4305
|
+
| 'robinhood'
|
|
4306
|
+
| 'tempo_testnet'
|
|
3961
4307
|
| 'hoodi'
|
|
3962
4308
|
| 'sepolia'
|
|
3963
4309
|
| 'arbitrum_sepolia'
|
|
@@ -3966,9 +4312,12 @@ export type WalletAssetChainNameInput =
|
|
|
3966
4312
|
| 'linea_testnet'
|
|
3967
4313
|
| 'optimism_sepolia'
|
|
3968
4314
|
| 'polygon_amoy'
|
|
4315
|
+
| 'bsc_testnet'
|
|
3969
4316
|
| 'solana_devnet'
|
|
3970
4317
|
| 'solana_testnet'
|
|
3971
|
-
| 'tron_nile'
|
|
4318
|
+
| 'tron_nile'
|
|
4319
|
+
| 'robinhood_testnet'
|
|
4320
|
+
| (string & {});
|
|
3972
4321
|
|
|
3973
4322
|
/**
|
|
3974
4323
|
* Request body for creating an encrypted, bound user signing key.
|
|
@@ -4067,6 +4416,38 @@ export interface WalletAuthorizationHeaders {
|
|
|
4067
4416
|
'privy-request-expiry'?: string;
|
|
4068
4417
|
}
|
|
4069
4418
|
|
|
4419
|
+
/**
|
|
4420
|
+
* List of wallet automation attachments.
|
|
4421
|
+
*/
|
|
4422
|
+
export interface WalletAutomationAttachmentListResponse {
|
|
4423
|
+
data: Array<WalletAutomationAttachmentResponse>;
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
/**
|
|
4427
|
+
* A wallet automation attachment linking an automation to a specific wallet.
|
|
4428
|
+
*/
|
|
4429
|
+
export interface WalletAutomationAttachmentResponse {
|
|
4430
|
+
id: string;
|
|
4431
|
+
|
|
4432
|
+
automation_id: string;
|
|
4433
|
+
|
|
4434
|
+
created_at: string;
|
|
4435
|
+
|
|
4436
|
+
/**
|
|
4437
|
+
* Per-attachment parameters for swap automations.
|
|
4438
|
+
*/
|
|
4439
|
+
params: WalletAutomationsAPI.SwapAttachmentParams | null;
|
|
4440
|
+
|
|
4441
|
+
/**
|
|
4442
|
+
* Automation lifecycle state: 'enabled' = running, 'disabled' = not running.
|
|
4443
|
+
*/
|
|
4444
|
+
status: WalletAutomationsAPI.WalletAutomationStatus;
|
|
4445
|
+
|
|
4446
|
+
updated_at: string;
|
|
4447
|
+
|
|
4448
|
+
wallet_id: string;
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4070
4451
|
/**
|
|
4071
4452
|
* Request body for batch wallet creation.
|
|
4072
4453
|
*/
|
|
@@ -4155,6 +4536,11 @@ export interface WalletBatchItemInput {
|
|
|
4155
4536
|
*/
|
|
4156
4537
|
display_name?: string;
|
|
4157
4538
|
|
|
4539
|
+
/**
|
|
4540
|
+
* Request body for assigning an entity to a wallet.
|
|
4541
|
+
*/
|
|
4542
|
+
entity?: WalletEntityAssignmentRequestBody;
|
|
4543
|
+
|
|
4158
4544
|
/**
|
|
4159
4545
|
* A customer-provided identifier for mapping to external systems. URL-safe
|
|
4160
4546
|
* characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
|
|
@@ -4199,6 +4585,7 @@ export type WalletChainType =
|
|
|
4199
4585
|
| 'near'
|
|
4200
4586
|
| 'ton'
|
|
4201
4587
|
| 'starknet'
|
|
4588
|
+
| 'xrpl'
|
|
4202
4589
|
| 'spark';
|
|
4203
4590
|
|
|
4204
4591
|
/**
|
|
@@ -4236,13 +4623,66 @@ export interface WalletCustodian {
|
|
|
4236
4623
|
*/
|
|
4237
4624
|
export interface WalletEntity {
|
|
4238
4625
|
/**
|
|
4239
|
-
*
|
|
4626
|
+
* A Privy entity ID.
|
|
4627
|
+
*/
|
|
4628
|
+
id: EntityID;
|
|
4629
|
+
|
|
4630
|
+
/**
|
|
4631
|
+
* The type of entity a wallet is attributed to.
|
|
4632
|
+
*/
|
|
4633
|
+
type: WalletEntityType;
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4636
|
+
/**
|
|
4637
|
+
* Request body for assigning an entity to a wallet.
|
|
4638
|
+
*/
|
|
4639
|
+
export interface WalletEntityAssignmentRequestBody {
|
|
4640
|
+
/**
|
|
4641
|
+
* A Privy entity ID.
|
|
4642
|
+
*/
|
|
4643
|
+
id: EntityID;
|
|
4644
|
+
|
|
4645
|
+
/**
|
|
4646
|
+
* The type of entity a wallet is attributed to.
|
|
4647
|
+
*/
|
|
4648
|
+
type: WalletEntityType;
|
|
4649
|
+
}
|
|
4650
|
+
|
|
4651
|
+
/**
|
|
4652
|
+
* The entity assignment for a wallet.
|
|
4653
|
+
*/
|
|
4654
|
+
export interface WalletEntityAssignmentResponse {
|
|
4655
|
+
/**
|
|
4656
|
+
* Unique wallet entity assignment identifier.
|
|
4240
4657
|
*/
|
|
4241
4658
|
id: string;
|
|
4242
4659
|
|
|
4243
|
-
|
|
4660
|
+
/**
|
|
4661
|
+
* Unix timestamp when the assignment was created.
|
|
4662
|
+
*/
|
|
4663
|
+
created_at: number;
|
|
4664
|
+
|
|
4665
|
+
/**
|
|
4666
|
+
* The entity a wallet is attributed to.
|
|
4667
|
+
*/
|
|
4668
|
+
entity: WalletEntity;
|
|
4669
|
+
|
|
4670
|
+
/**
|
|
4671
|
+
* Unix timestamp when the assignment was last updated.
|
|
4672
|
+
*/
|
|
4673
|
+
updated_at: number;
|
|
4674
|
+
|
|
4675
|
+
/**
|
|
4676
|
+
* ID of the assigned wallet.
|
|
4677
|
+
*/
|
|
4678
|
+
wallet_id: string;
|
|
4244
4679
|
}
|
|
4245
4680
|
|
|
4681
|
+
/**
|
|
4682
|
+
* The type of entity a wallet is attributed to.
|
|
4683
|
+
*/
|
|
4684
|
+
export type WalletEntityType = 'user' | 'organization';
|
|
4685
|
+
|
|
4246
4686
|
/**
|
|
4247
4687
|
* The entropy type of the wallet.
|
|
4248
4688
|
*/
|
|
@@ -4261,6 +4701,7 @@ export type WalletEthereumAsset =
|
|
|
4261
4701
|
| 'usdt'
|
|
4262
4702
|
| 'eurc'
|
|
4263
4703
|
| 'usdb'
|
|
4704
|
+
| 'ousd'
|
|
4264
4705
|
| 'pathusd';
|
|
4265
4706
|
|
|
4266
4707
|
/**
|
|
@@ -4318,9 +4759,16 @@ export interface WalletImportInitResponse {
|
|
|
4318
4759
|
|
|
4319
4760
|
/**
|
|
4320
4761
|
* The chain type of the wallet to import. Supports `ethereum`, `solana`,
|
|
4321
|
-
* `stellar`, `tron`, `sui`, and `
|
|
4762
|
+
* `stellar`, `tron`, `sui`, `aptos`, and `xrpl`.
|
|
4322
4763
|
*/
|
|
4323
|
-
export type WalletImportSupportedChains =
|
|
4764
|
+
export type WalletImportSupportedChains =
|
|
4765
|
+
| 'ethereum'
|
|
4766
|
+
| 'solana'
|
|
4767
|
+
| 'stellar'
|
|
4768
|
+
| 'tron'
|
|
4769
|
+
| 'sui'
|
|
4770
|
+
| 'aptos'
|
|
4771
|
+
| 'xrpl';
|
|
4324
4772
|
|
|
4325
4773
|
/**
|
|
4326
4774
|
* The entropy type of the wallet to import. Supports `private-key` for raw private
|
|
@@ -4347,6 +4795,7 @@ export type WalletRpcRequestBody =
|
|
|
4347
4795
|
| EthereumSign7702AuthorizationRpcInput
|
|
4348
4796
|
| EthereumSignUserOperationRpcInput
|
|
4349
4797
|
| EthereumSendCallsRpcInput
|
|
4798
|
+
| AptosSignTransactionRpcInput
|
|
4350
4799
|
| SolanaSignTransactionRpcInput
|
|
4351
4800
|
| SolanaSignAndSendTransactionRpcInput
|
|
4352
4801
|
| SolanaSignMessageRpcInput
|
|
@@ -4363,6 +4812,8 @@ export type WalletRpcRequestBody =
|
|
|
4363
4812
|
| SparkGetWithdrawalFeeQuoteRpcInput
|
|
4364
4813
|
| TronSignTransactionRpcInput
|
|
4365
4814
|
| TronSendTransactionRpcInput
|
|
4815
|
+
| XrplSignTransactionRpcInput
|
|
4816
|
+
| NearSignTransactionRpcRequestBody
|
|
4366
4817
|
| ExportPrivateKeyRpcInput
|
|
4367
4818
|
| ExportSeedPhraseRpcInput;
|
|
4368
4819
|
|
|
@@ -4378,6 +4829,7 @@ export type WalletRpcResponse =
|
|
|
4378
4829
|
| EthereumSign7702AuthorizationRpcResponse
|
|
4379
4830
|
| EthereumSecp256k1SignRpcResponse
|
|
4380
4831
|
| EthereumSendCallsRpcResponse
|
|
4832
|
+
| AptosSignTransactionRpcResponse
|
|
4381
4833
|
| SolanaSignMessageRpcResponse
|
|
4382
4834
|
| SolanaSignTransactionRpcResponse
|
|
4383
4835
|
| SolanaSignAndSendTransactionRpcResponse
|
|
@@ -4394,13 +4846,15 @@ export type WalletRpcResponse =
|
|
|
4394
4846
|
| SparkGetWithdrawalFeeQuoteRpcResponse
|
|
4395
4847
|
| TronSignTransactionRpcResponse
|
|
4396
4848
|
| TronSendTransactionRpcResponse
|
|
4849
|
+
| XrplSignTransactionRpcResponse
|
|
4850
|
+
| NearSignTransactionRpcResponse
|
|
4397
4851
|
| ExportPrivateKeyRpcResponse
|
|
4398
4852
|
| ExportSeedPhraseRpcResponse;
|
|
4399
4853
|
|
|
4400
4854
|
/**
|
|
4401
4855
|
* A named asset on Solana.
|
|
4402
4856
|
*/
|
|
4403
|
-
export type WalletSolanaAsset = 'sol' | 'usdc' | 'eurc' | 'usdb';
|
|
4857
|
+
export type WalletSolanaAsset = 'sol' | 'usdc' | 'eurc' | 'usdb' | 'ousd';
|
|
4404
4858
|
|
|
4405
4859
|
/**
|
|
4406
4860
|
* A named asset on Tron.
|
|
@@ -4422,6 +4876,13 @@ export interface WalletUpdateRequestBody {
|
|
|
4422
4876
|
*/
|
|
4423
4877
|
display_name?: string | null;
|
|
4424
4878
|
|
|
4879
|
+
/**
|
|
4880
|
+
* A customer-provided identifier for mapping to external systems. URL-safe
|
|
4881
|
+
* characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
|
|
4882
|
+
* once set.
|
|
4883
|
+
*/
|
|
4884
|
+
external_id?: string;
|
|
4885
|
+
|
|
4425
4886
|
/**
|
|
4426
4887
|
* The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
4427
4888
|
* null to remove the current owner.
|
|
@@ -4441,6 +4902,76 @@ export interface WalletUpdateRequestBody {
|
|
|
4441
4902
|
policy_ids?: Array<string>;
|
|
4442
4903
|
}
|
|
4443
4904
|
|
|
4905
|
+
/**
|
|
4906
|
+
* Executes the XRPL `xrpl_signTransaction` RPC to sign a transaction. The caller
|
|
4907
|
+
* is responsible for broadcasting.
|
|
4908
|
+
*/
|
|
4909
|
+
export interface XrplRpcInput {
|
|
4910
|
+
method: 'xrpl_signTransaction';
|
|
4911
|
+
|
|
4912
|
+
/**
|
|
4913
|
+
* Parameters for the XRPL `xrpl_signTransaction` RPC.
|
|
4914
|
+
*/
|
|
4915
|
+
params: XrplSignTransactionRpcInputParams;
|
|
4916
|
+
}
|
|
4917
|
+
|
|
4918
|
+
/**
|
|
4919
|
+
* Response to the XRPL `xrpl_signTransaction` RPC.
|
|
4920
|
+
*/
|
|
4921
|
+
export interface XrplRpcResponse {
|
|
4922
|
+
/**
|
|
4923
|
+
* Data returned by the XRPL `xrpl_signTransaction` RPC.
|
|
4924
|
+
*/
|
|
4925
|
+
data: XrplSignTransactionRpcResponseData;
|
|
4926
|
+
|
|
4927
|
+
method: 'xrpl_signTransaction';
|
|
4928
|
+
}
|
|
4929
|
+
|
|
4930
|
+
/**
|
|
4931
|
+
* Executes the XRPL `xrpl_signTransaction` RPC to sign a transaction. The caller
|
|
4932
|
+
* is responsible for broadcasting.
|
|
4933
|
+
*/
|
|
4934
|
+
export interface XrplSignTransactionRpcInput {
|
|
4935
|
+
method: 'xrpl_signTransaction';
|
|
4936
|
+
|
|
4937
|
+
/**
|
|
4938
|
+
* Parameters for the XRPL `xrpl_signTransaction` RPC.
|
|
4939
|
+
*/
|
|
4940
|
+
params: XrplSignTransactionRpcInputParams;
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4943
|
+
/**
|
|
4944
|
+
* Parameters for the XRPL `xrpl_signTransaction` RPC.
|
|
4945
|
+
*/
|
|
4946
|
+
export interface XrplSignTransactionRpcInputParams {
|
|
4947
|
+
encoding: 'hex';
|
|
4948
|
+
|
|
4949
|
+
transaction: string;
|
|
4950
|
+
}
|
|
4951
|
+
|
|
4952
|
+
/**
|
|
4953
|
+
* Response to the XRPL `xrpl_signTransaction` RPC.
|
|
4954
|
+
*/
|
|
4955
|
+
export interface XrplSignTransactionRpcResponse {
|
|
4956
|
+
/**
|
|
4957
|
+
* Data returned by the XRPL `xrpl_signTransaction` RPC.
|
|
4958
|
+
*/
|
|
4959
|
+
data: XrplSignTransactionRpcResponseData;
|
|
4960
|
+
|
|
4961
|
+
method: 'xrpl_signTransaction';
|
|
4962
|
+
}
|
|
4963
|
+
|
|
4964
|
+
/**
|
|
4965
|
+
* Data returned by the XRPL `xrpl_signTransaction` RPC.
|
|
4966
|
+
*/
|
|
4967
|
+
export interface XrplSignTransactionRpcResponseData {
|
|
4968
|
+
encoding: 'hex';
|
|
4969
|
+
|
|
4970
|
+
signed_transaction: string;
|
|
4971
|
+
|
|
4972
|
+
txn_signature: string;
|
|
4973
|
+
}
|
|
4974
|
+
|
|
4444
4975
|
export interface WalletCreateParams {
|
|
4445
4976
|
/**
|
|
4446
4977
|
* Body param: The wallet chain types.
|
|
@@ -4458,9 +4989,9 @@ export interface WalletCreateParams {
|
|
|
4458
4989
|
display_name?: string;
|
|
4459
4990
|
|
|
4460
4991
|
/**
|
|
4461
|
-
* Body param:
|
|
4992
|
+
* Body param: Request body for assigning an entity to a wallet.
|
|
4462
4993
|
*/
|
|
4463
|
-
entity?:
|
|
4994
|
+
entity?: WalletEntityAssignmentRequestBody;
|
|
4464
4995
|
|
|
4465
4996
|
/**
|
|
4466
4997
|
* Body param: A customer-provided identifier for mapping to external systems.
|
|
@@ -4493,17 +5024,6 @@ export interface WalletCreateParams {
|
|
|
4493
5024
|
'privy-idempotency-key'?: string;
|
|
4494
5025
|
}
|
|
4495
5026
|
|
|
4496
|
-
export namespace WalletCreateParams {
|
|
4497
|
-
/**
|
|
4498
|
-
* The entity the wallet is attributed to.
|
|
4499
|
-
*/
|
|
4500
|
-
export interface Entity {
|
|
4501
|
-
id: string;
|
|
4502
|
-
|
|
4503
|
-
type: 'user';
|
|
4504
|
-
}
|
|
4505
|
-
}
|
|
4506
|
-
|
|
4507
5027
|
export interface WalletUpdateParams {
|
|
4508
5028
|
/**
|
|
4509
5029
|
* Body param: Additional signers for the wallet.
|
|
@@ -4515,6 +5035,13 @@ export interface WalletUpdateParams {
|
|
|
4515
5035
|
*/
|
|
4516
5036
|
display_name?: string | null;
|
|
4517
5037
|
|
|
5038
|
+
/**
|
|
5039
|
+
* Body param: A customer-provided identifier for mapping to external systems.
|
|
5040
|
+
* URL-safe characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be
|
|
5041
|
+
* changed once set.
|
|
5042
|
+
*/
|
|
5043
|
+
external_id?: string;
|
|
5044
|
+
|
|
4518
5045
|
/**
|
|
4519
5046
|
* Body param: The owner of the resource, specified as a Privy user ID, a P-256
|
|
4520
5047
|
* public key, or null to remove the current owner.
|
|
@@ -4659,6 +5186,7 @@ export type WalletRpcParams =
|
|
|
4659
5186
|
| WalletRpcParams.EthereumSign7702AuthorizationRpcInput
|
|
4660
5187
|
| WalletRpcParams.EthereumSignUserOperationRpcInput
|
|
4661
5188
|
| WalletRpcParams.EthereumSendCallsRpcInput
|
|
5189
|
+
| WalletRpcParams.AptosSignTransactionRpcInput
|
|
4662
5190
|
| WalletRpcParams.SolanaSignTransactionRpcInput
|
|
4663
5191
|
| WalletRpcParams.SolanaSignAndSendTransactionRpcInput
|
|
4664
5192
|
| WalletRpcParams.SolanaSignMessageRpcInput
|
|
@@ -4675,6 +5203,8 @@ export type WalletRpcParams =
|
|
|
4675
5203
|
| WalletRpcParams.SparkGetWithdrawalFeeQuoteRpcInput
|
|
4676
5204
|
| WalletRpcParams.TronSignTransactionRpcInput
|
|
4677
5205
|
| WalletRpcParams.TronSendTransactionRpcInput
|
|
5206
|
+
| WalletRpcParams.XrplSignTransactionRpcInput
|
|
5207
|
+
| WalletRpcParams.NearSignTransactionRpcRequestBody
|
|
4678
5208
|
| WalletRpcParams.ExportPrivateKeyRpcInput
|
|
4679
5209
|
| WalletRpcParams.ExportSeedPhraseRpcInput;
|
|
4680
5210
|
|
|
@@ -4758,7 +5288,8 @@ export declare namespace WalletRpcParams {
|
|
|
4758
5288
|
experimental_data_suffix?: Hex;
|
|
4759
5289
|
|
|
4760
5290
|
/**
|
|
4761
|
-
* Body param
|
|
5291
|
+
* Body param: Developer-provided identifier for this request. Must be unique per
|
|
5292
|
+
* app.
|
|
4762
5293
|
*/
|
|
4763
5294
|
reference_id?: string;
|
|
4764
5295
|
|
|
@@ -5116,6 +5647,36 @@ export declare namespace WalletRpcParams {
|
|
|
5116
5647
|
'privy-request-expiry'?: string;
|
|
5117
5648
|
}
|
|
5118
5649
|
|
|
5650
|
+
export interface AptosSignTransactionRpcInput {
|
|
5651
|
+
/**
|
|
5652
|
+
* Body param
|
|
5653
|
+
*/
|
|
5654
|
+
method: 'aptos_signTransaction';
|
|
5655
|
+
|
|
5656
|
+
/**
|
|
5657
|
+
* Body param: Parameters for the Aptos `aptos_signTransaction` RPC.
|
|
5658
|
+
*/
|
|
5659
|
+
params: AptosSignTransactionRpcInputParams;
|
|
5660
|
+
|
|
5661
|
+
/**
|
|
5662
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
5663
|
+
* required, they should be comma separated.
|
|
5664
|
+
*/
|
|
5665
|
+
'privy-authorization-signature'?: string;
|
|
5666
|
+
|
|
5667
|
+
/**
|
|
5668
|
+
* Header param: Idempotency keys ensure API requests are executed only once within
|
|
5669
|
+
* a 24-hour window.
|
|
5670
|
+
*/
|
|
5671
|
+
'privy-idempotency-key'?: string;
|
|
5672
|
+
|
|
5673
|
+
/**
|
|
5674
|
+
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
5675
|
+
* representing the deadline by which the request must be processed.
|
|
5676
|
+
*/
|
|
5677
|
+
'privy-request-expiry'?: string;
|
|
5678
|
+
}
|
|
5679
|
+
|
|
5119
5680
|
export interface SolanaSignTransactionRpcInput {
|
|
5120
5681
|
/**
|
|
5121
5682
|
* Body param
|
|
@@ -5194,7 +5755,8 @@ export declare namespace WalletRpcParams {
|
|
|
5194
5755
|
optimistic_broadcast?: boolean;
|
|
5195
5756
|
|
|
5196
5757
|
/**
|
|
5197
|
-
* Body param
|
|
5758
|
+
* Body param: Developer-provided identifier for this request. Must be unique per
|
|
5759
|
+
* app.
|
|
5198
5760
|
*/
|
|
5199
5761
|
reference_id?: string;
|
|
5200
5762
|
|
|
@@ -5720,6 +6282,66 @@ export declare namespace WalletRpcParams {
|
|
|
5720
6282
|
'privy-request-expiry'?: string;
|
|
5721
6283
|
}
|
|
5722
6284
|
|
|
6285
|
+
export interface XrplSignTransactionRpcInput {
|
|
6286
|
+
/**
|
|
6287
|
+
* Body param
|
|
6288
|
+
*/
|
|
6289
|
+
method: 'xrpl_signTransaction';
|
|
6290
|
+
|
|
6291
|
+
/**
|
|
6292
|
+
* Body param: Parameters for the XRPL `xrpl_signTransaction` RPC.
|
|
6293
|
+
*/
|
|
6294
|
+
params: XrplSignTransactionRpcInputParams;
|
|
6295
|
+
|
|
6296
|
+
/**
|
|
6297
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
6298
|
+
* required, they should be comma separated.
|
|
6299
|
+
*/
|
|
6300
|
+
'privy-authorization-signature'?: string;
|
|
6301
|
+
|
|
6302
|
+
/**
|
|
6303
|
+
* Header param: Idempotency keys ensure API requests are executed only once within
|
|
6304
|
+
* a 24-hour window.
|
|
6305
|
+
*/
|
|
6306
|
+
'privy-idempotency-key'?: string;
|
|
6307
|
+
|
|
6308
|
+
/**
|
|
6309
|
+
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
6310
|
+
* representing the deadline by which the request must be processed.
|
|
6311
|
+
*/
|
|
6312
|
+
'privy-request-expiry'?: string;
|
|
6313
|
+
}
|
|
6314
|
+
|
|
6315
|
+
export interface NearSignTransactionRpcRequestBody {
|
|
6316
|
+
/**
|
|
6317
|
+
* Body param
|
|
6318
|
+
*/
|
|
6319
|
+
method: 'near_signTransaction';
|
|
6320
|
+
|
|
6321
|
+
/**
|
|
6322
|
+
* Body param: Parameters for the NEAR `near_signTransaction` RPC.
|
|
6323
|
+
*/
|
|
6324
|
+
params: NearSignTransactionRpcRequestBodyParams;
|
|
6325
|
+
|
|
6326
|
+
/**
|
|
6327
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
6328
|
+
* required, they should be comma separated.
|
|
6329
|
+
*/
|
|
6330
|
+
'privy-authorization-signature'?: string;
|
|
6331
|
+
|
|
6332
|
+
/**
|
|
6333
|
+
* Header param: Idempotency keys ensure API requests are executed only once within
|
|
6334
|
+
* a 24-hour window.
|
|
6335
|
+
*/
|
|
6336
|
+
'privy-idempotency-key'?: string;
|
|
6337
|
+
|
|
6338
|
+
/**
|
|
6339
|
+
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
6340
|
+
* representing the deadline by which the request must be processed.
|
|
6341
|
+
*/
|
|
6342
|
+
'privy-request-expiry'?: string;
|
|
6343
|
+
}
|
|
6344
|
+
|
|
5723
6345
|
export interface ExportPrivateKeyRpcInput {
|
|
5724
6346
|
/**
|
|
5725
6347
|
* Body param
|
|
@@ -5807,9 +6429,28 @@ export declare namespace Wallets {
|
|
|
5807
6429
|
type AdvancedSwapRequestBody as AdvancedSwapRequestBody,
|
|
5808
6430
|
type AdvancedSwapResponse as AdvancedSwapResponse,
|
|
5809
6431
|
type AmountType as AmountType,
|
|
6432
|
+
type AptosBcsHex as AptosBcsHex,
|
|
6433
|
+
type AptosRpcInput as AptosRpcInput,
|
|
6434
|
+
type AptosRpcResponse as AptosRpcResponse,
|
|
6435
|
+
type AptosSignTransactionRpcInput as AptosSignTransactionRpcInput,
|
|
6436
|
+
type AptosSignTransactionRpcInputParams as AptosSignTransactionRpcInputParams,
|
|
6437
|
+
type AptosSignTransactionRpcResponse as AptosSignTransactionRpcResponse,
|
|
6438
|
+
type AptosSignTransactionRpcResponseData as AptosSignTransactionRpcResponseData,
|
|
6439
|
+
type AptosSignedTransactionBcsHex as AptosSignedTransactionBcsHex,
|
|
6440
|
+
type AttachWalletAutomationRequestBody as AttachWalletAutomationRequestBody,
|
|
5810
6441
|
type AuthorizationKeyDashboardResponse as AuthorizationKeyDashboardResponse,
|
|
5811
6442
|
type AuthorizationKeyResponse as AuthorizationKeyResponse,
|
|
5812
6443
|
type AuthorizationKeyRole as AuthorizationKeyRole,
|
|
6444
|
+
type CreateCryptoDepositAccountRequestBody as CreateCryptoDepositAccountRequestBody,
|
|
6445
|
+
type CreateCryptoDepositAccountResponse as CreateCryptoDepositAccountResponse,
|
|
6446
|
+
type CreateCryptoDepositAccountWithConfigRequestBody as CreateCryptoDepositAccountWithConfigRequestBody,
|
|
6447
|
+
type CreateCryptoDepositAccountWithRouteRequestBody as CreateCryptoDepositAccountWithRouteRequestBody,
|
|
6448
|
+
type CryptoDepositAddressRoute as CryptoDepositAddressRoute,
|
|
6449
|
+
type CryptoDepositAsset as CryptoDepositAsset,
|
|
6450
|
+
type CryptoDepositAssetFilter as CryptoDepositAssetFilter,
|
|
6451
|
+
type CryptoDepositAssetFilterAll as CryptoDepositAssetFilterAll,
|
|
6452
|
+
type CryptoDepositAssetFilterExclude as CryptoDepositAssetFilterExclude,
|
|
6453
|
+
type CryptoDepositAssetFilterInclude as CryptoDepositAssetFilterInclude,
|
|
5813
6454
|
type CurveSigningChainType as CurveSigningChainType,
|
|
5814
6455
|
type CurveType as CurveType,
|
|
5815
6456
|
type CustodialWallet as CustodialWallet,
|
|
@@ -5817,10 +6458,12 @@ export declare namespace Wallets {
|
|
|
5817
6458
|
type CustodialWalletCreateInput as CustodialWalletCreateInput,
|
|
5818
6459
|
type CustodialWalletProvider as CustodialWalletProvider,
|
|
5819
6460
|
type CustomTokenTransferSource as CustomTokenTransferSource,
|
|
6461
|
+
type DetachWalletAutomationRequestBody as DetachWalletAutomationRequestBody,
|
|
5820
6462
|
type DeveloperFee as DeveloperFee,
|
|
5821
6463
|
type EncryptedAuthorizationKey as EncryptedAuthorizationKey,
|
|
5822
6464
|
type EncryptedBoundAuthenticateResponse as EncryptedBoundAuthenticateResponse,
|
|
5823
6465
|
type EncryptedWalletAuthenticateResponse as EncryptedWalletAuthenticateResponse,
|
|
6466
|
+
type EntityID as EntityID,
|
|
5824
6467
|
type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
|
|
5825
6468
|
type EthereumPersonalSignRpcInputParams as EthereumPersonalSignRpcInputParams,
|
|
5826
6469
|
type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse,
|
|
@@ -5878,6 +6521,14 @@ export declare namespace Wallets {
|
|
|
5878
6521
|
type Hex as Hex,
|
|
5879
6522
|
type IntentBinding as IntentBinding,
|
|
5880
6523
|
type NamedTokenTransferSource as NamedTokenTransferSource,
|
|
6524
|
+
type NearRpcRequestBody as NearRpcRequestBody,
|
|
6525
|
+
type NearRpcResponse as NearRpcResponse,
|
|
6526
|
+
type NearSignTransactionRpcRequestBody as NearSignTransactionRpcRequestBody,
|
|
6527
|
+
type NearSignTransactionRpcRequestBodyParams as NearSignTransactionRpcRequestBodyParams,
|
|
6528
|
+
type NearSignTransactionRpcResponse as NearSignTransactionRpcResponse,
|
|
6529
|
+
type NearSignTransactionRpcResponseData as NearSignTransactionRpcResponseData,
|
|
6530
|
+
type NearSignedTransactionBorshBase64 as NearSignedTransactionBorshBase64,
|
|
6531
|
+
type NearUnsignedTransactionBorshBase64 as NearUnsignedTransactionBorshBase64,
|
|
5881
6532
|
type OutputWithPreviousTransactionData as OutputWithPreviousTransactionData,
|
|
5882
6533
|
type PolicyInput as PolicyInput,
|
|
5883
6534
|
type PrivateKeyExportInput as PrivateKeyExportInput,
|
|
@@ -6015,6 +6666,7 @@ export declare namespace Wallets {
|
|
|
6015
6666
|
type UserOperationInput as UserOperationInput,
|
|
6016
6667
|
type UserSigningKeyBinding as UserSigningKeyBinding,
|
|
6017
6668
|
type Wallet as Wallet,
|
|
6669
|
+
type WalletActionNonce as WalletActionNonce,
|
|
6018
6670
|
type WalletAdditionalSigner as WalletAdditionalSigner,
|
|
6019
6671
|
type WalletAdditionalSignerItem as WalletAdditionalSignerItem,
|
|
6020
6672
|
type WalletAPIRegisterAuthorizationKeyInput as WalletAPIRegisterAuthorizationKeyInput,
|
|
@@ -6028,6 +6680,8 @@ export declare namespace Wallets {
|
|
|
6028
6680
|
type WalletAuthenticateRequestBody as WalletAuthenticateRequestBody,
|
|
6029
6681
|
type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
|
|
6030
6682
|
type WalletAuthorizationHeaders as WalletAuthorizationHeaders,
|
|
6683
|
+
type WalletAutomationAttachmentListResponse as WalletAutomationAttachmentListResponse,
|
|
6684
|
+
type WalletAutomationAttachmentResponse as WalletAutomationAttachmentResponse,
|
|
6031
6685
|
type WalletBatchCreateInput as WalletBatchCreateInput,
|
|
6032
6686
|
type WalletBatchCreateResponse as WalletBatchCreateResponse,
|
|
6033
6687
|
type WalletBatchCreateResult as WalletBatchCreateResult,
|
|
@@ -6036,6 +6690,9 @@ export declare namespace Wallets {
|
|
|
6036
6690
|
type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
|
|
6037
6691
|
type WalletCustodian as WalletCustodian,
|
|
6038
6692
|
type WalletEntity as WalletEntity,
|
|
6693
|
+
type WalletEntityAssignmentRequestBody as WalletEntityAssignmentRequestBody,
|
|
6694
|
+
type WalletEntityAssignmentResponse as WalletEntityAssignmentResponse,
|
|
6695
|
+
type WalletEntityType as WalletEntityType,
|
|
6039
6696
|
type WalletEntropyType as WalletEntropyType,
|
|
6040
6697
|
type WalletEthereumAsset as WalletEthereumAsset,
|
|
6041
6698
|
type WalletExportRequestBody as WalletExportRequestBody,
|
|
@@ -6049,6 +6706,12 @@ export declare namespace Wallets {
|
|
|
6049
6706
|
type WalletSolanaAsset as WalletSolanaAsset,
|
|
6050
6707
|
type WalletTronAsset as WalletTronAsset,
|
|
6051
6708
|
type WalletUpdateRequestBody as WalletUpdateRequestBody,
|
|
6709
|
+
type XrplRpcInput as XrplRpcInput,
|
|
6710
|
+
type XrplRpcResponse as XrplRpcResponse,
|
|
6711
|
+
type XrplSignTransactionRpcInput as XrplSignTransactionRpcInput,
|
|
6712
|
+
type XrplSignTransactionRpcInputParams as XrplSignTransactionRpcInputParams,
|
|
6713
|
+
type XrplSignTransactionRpcResponse as XrplSignTransactionRpcResponse,
|
|
6714
|
+
type XrplSignTransactionRpcResponseData as XrplSignTransactionRpcResponseData,
|
|
6052
6715
|
type WalletsCursor as WalletsCursor,
|
|
6053
6716
|
type WalletCreateParams as WalletCreateParams,
|
|
6054
6717
|
type WalletUpdateParams as WalletUpdateParams,
|
|
@@ -6103,11 +6766,13 @@ export declare namespace Wallets {
|
|
|
6103
6766
|
type ListWalletActionsQuery as ListWalletActionsQuery,
|
|
6104
6767
|
type ListWalletActionsResponse as ListWalletActionsResponse,
|
|
6105
6768
|
type MorphoVaultDetails as MorphoVaultDetails,
|
|
6769
|
+
type PayoutResponse as PayoutResponse,
|
|
6106
6770
|
type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
|
|
6107
6771
|
type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
|
|
6108
6772
|
type SwapActionResponse as SwapActionResponse,
|
|
6109
6773
|
type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
|
|
6110
6774
|
type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
|
|
6775
|
+
type TempoVaultDetails as TempoVaultDetails,
|
|
6111
6776
|
type TransferActionResponse as TransferActionResponse,
|
|
6112
6777
|
type VedaVaultDetails as VedaVaultDetails,
|
|
6113
6778
|
type WalletActionInclude as WalletActionInclude,
|