@privy-io/api-types 0.8.0 → 0.9.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 +19 -0
- package/client.d.mts +19 -19
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -19
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +16 -2
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +16 -2
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +14 -14
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +14 -14
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +50 -50
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +50 -50
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +11 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +2 -2
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +2 -2
- package/resources/intents.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +52 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +52 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +223 -112
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +223 -112
- package/resources/policies.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -3
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -3
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +10 -20
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +10 -20
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +199 -199
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +199 -199
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +255 -3
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +255 -3
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- 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 +10 -30
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -30
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +222 -116
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +222 -116
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +6 -5
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +6 -5
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +798 -93
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +798 -93
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +163 -35
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/apps.ts +24 -1
- package/src/resources/client-auth.ts +17 -17
- package/src/resources/embedded-wallets.ts +59 -59
- package/src/resources/index.ts +92 -31
- package/src/resources/intents.ts +2 -2
- package/src/resources/kraken-embed.ts +105 -0
- package/src/resources/policies.ts +310 -181
- package/src/resources/swaps.ts +4 -4
- package/src/resources/transactions.ts +11 -38
- package/src/resources/users.ts +724 -724
- package/src/resources/wallet-actions.ts +324 -2
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +13 -2
- package/src/resources/wallets/transactions.ts +10 -88
- package/src/resources/wallets/wallets.ts +319 -136
- package/src/resources/webhooks.ts +1021 -141
- 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 UsersAPI from '../users';
|
|
7
8
|
import * as BalanceAPI from './balance';
|
|
8
9
|
import { Balance, BalanceGetParams, BalanceGetResponse } from './balance';
|
|
9
10
|
import * as TransactionsAPI from './transactions';
|
|
@@ -63,18 +64,19 @@ export class Wallets extends APIResource {
|
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```ts
|
|
66
|
-
* const
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
67
|
+
* const walletExportResponseBody =
|
|
68
|
+
* await client.wallets._export('wallet_id', {
|
|
69
|
+
* encryption_type: 'HPKE',
|
|
70
|
+
* recipient_public_key:
|
|
71
|
+
* 'BDAZLOIdTaPycEYkgG0MvCzbIKJLli/yWkAV5yCa9yOsZ4JsrLweA5MnP8YIiY4k/RRzC+APhhO+P+Hoz/rt7Go=',
|
|
72
|
+
* });
|
|
71
73
|
* ```
|
|
72
74
|
*/
|
|
73
75
|
_export(
|
|
74
76
|
walletID: string,
|
|
75
77
|
params: WalletExportParams,
|
|
76
78
|
options?: RequestOptions,
|
|
77
|
-
): APIPromise<
|
|
79
|
+
): APIPromise<WalletExportResponseBody> {
|
|
78
80
|
const {
|
|
79
81
|
'privy-authorization-signature': privyAuthorizationSignature,
|
|
80
82
|
'privy-request-expiry': privyRequestExpiry,
|
|
@@ -318,6 +320,7 @@ export type CurveSigningChainType =
|
|
|
318
320
|
| 'movement'
|
|
319
321
|
| 'tron'
|
|
320
322
|
| 'bitcoin-segwit'
|
|
323
|
+
| 'bitcoin-taproot'
|
|
321
324
|
| 'near'
|
|
322
325
|
| 'ton'
|
|
323
326
|
| 'starknet';
|
|
@@ -333,6 +336,7 @@ export type ExtendedChainType =
|
|
|
333
336
|
| 'movement'
|
|
334
337
|
| 'tron'
|
|
335
338
|
| 'bitcoin-segwit'
|
|
339
|
+
| 'bitcoin-taproot'
|
|
336
340
|
| 'near'
|
|
337
341
|
| 'ton'
|
|
338
342
|
| 'starknet'
|
|
@@ -356,6 +360,7 @@ export type WalletChainType =
|
|
|
356
360
|
| 'movement'
|
|
357
361
|
| 'tron'
|
|
358
362
|
| 'bitcoin-segwit'
|
|
363
|
+
| 'bitcoin-taproot'
|
|
359
364
|
| 'near'
|
|
360
365
|
| 'ton'
|
|
361
366
|
| 'starknet'
|
|
@@ -633,6 +638,8 @@ export interface WalletImportInitResponse {
|
|
|
633
638
|
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
634
639
|
*/
|
|
635
640
|
encryption_type: HpkeEncryption;
|
|
641
|
+
|
|
642
|
+
import_id?: string;
|
|
636
643
|
}
|
|
637
644
|
|
|
638
645
|
/**
|
|
@@ -677,7 +684,7 @@ export type HDPath = string;
|
|
|
677
684
|
/**
|
|
678
685
|
* The signing algorithm used by the wallet.
|
|
679
686
|
*/
|
|
680
|
-
export type SigningAlgorithm = 'ECDSA' | 'EdDSA';
|
|
687
|
+
export type SigningAlgorithm = 'ECDSA' | 'EdDSA' | 'Schnorr';
|
|
681
688
|
|
|
682
689
|
/**
|
|
683
690
|
* A hex-encoded string prefixed with '0x'.
|
|
@@ -2642,6 +2649,188 @@ export interface WalletAuthenticateRequestBody {
|
|
|
2642
2649
|
user_jwt: string;
|
|
2643
2650
|
}
|
|
2644
2651
|
|
|
2652
|
+
/**
|
|
2653
|
+
* The input for private key wallets.
|
|
2654
|
+
*/
|
|
2655
|
+
export interface PrivateKeyInitInput {
|
|
2656
|
+
/**
|
|
2657
|
+
* The address of the wallet to import.
|
|
2658
|
+
*/
|
|
2659
|
+
address: string;
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
2663
|
+
* `solana`.
|
|
2664
|
+
*/
|
|
2665
|
+
chain_type: WalletImportSupportedChains;
|
|
2666
|
+
|
|
2667
|
+
/**
|
|
2668
|
+
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
2669
|
+
*/
|
|
2670
|
+
encryption_type: HpkeEncryption;
|
|
2671
|
+
|
|
2672
|
+
entropy_type: 'private-key';
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* The input for HD wallets.
|
|
2677
|
+
*/
|
|
2678
|
+
export interface HDInitInput {
|
|
2679
|
+
/**
|
|
2680
|
+
* The address of the wallet to import.
|
|
2681
|
+
*/
|
|
2682
|
+
address: string;
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
2686
|
+
* `solana`.
|
|
2687
|
+
*/
|
|
2688
|
+
chain_type: WalletImportSupportedChains;
|
|
2689
|
+
|
|
2690
|
+
/**
|
|
2691
|
+
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
2692
|
+
*/
|
|
2693
|
+
encryption_type: HpkeEncryption;
|
|
2694
|
+
|
|
2695
|
+
/**
|
|
2696
|
+
* The entropy type of the wallet to import.
|
|
2697
|
+
*/
|
|
2698
|
+
entropy_type: 'hd';
|
|
2699
|
+
|
|
2700
|
+
/**
|
|
2701
|
+
* The index of the wallet to import.
|
|
2702
|
+
*/
|
|
2703
|
+
index: number;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
/**
|
|
2707
|
+
* The submission input for importing a private key wallet.
|
|
2708
|
+
*/
|
|
2709
|
+
export interface PrivateKeySubmitInput {
|
|
2710
|
+
/**
|
|
2711
|
+
* The address of the wallet to import.
|
|
2712
|
+
*/
|
|
2713
|
+
address: string;
|
|
2714
|
+
|
|
2715
|
+
/**
|
|
2716
|
+
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
2717
|
+
* `solana`.
|
|
2718
|
+
*/
|
|
2719
|
+
chain_type: WalletImportSupportedChains;
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* The encrypted entropy of the wallet to import.
|
|
2723
|
+
*/
|
|
2724
|
+
ciphertext: string;
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* The base64-encoded encapsulated key that was generated during encryption, for
|
|
2728
|
+
* use during decryption inside the TEE.
|
|
2729
|
+
*/
|
|
2730
|
+
encapsulated_key: string;
|
|
2731
|
+
|
|
2732
|
+
/**
|
|
2733
|
+
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
2734
|
+
*/
|
|
2735
|
+
encryption_type: HpkeEncryption;
|
|
2736
|
+
|
|
2737
|
+
entropy_type: 'private-key';
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
2741
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
2742
|
+
* configurations.
|
|
2743
|
+
*/
|
|
2744
|
+
hpke_config?: HpkeImportConfig;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
/**
|
|
2748
|
+
* The submission input for importing an HD wallet.
|
|
2749
|
+
*/
|
|
2750
|
+
export interface HDSubmitInput {
|
|
2751
|
+
/**
|
|
2752
|
+
* The address of the wallet to import.
|
|
2753
|
+
*/
|
|
2754
|
+
address: string;
|
|
2755
|
+
|
|
2756
|
+
/**
|
|
2757
|
+
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
2758
|
+
* `solana`.
|
|
2759
|
+
*/
|
|
2760
|
+
chain_type: WalletImportSupportedChains;
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* The encrypted entropy of the wallet to import.
|
|
2764
|
+
*/
|
|
2765
|
+
ciphertext: string;
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* The base64-encoded encapsulated key that was generated during encryption, for
|
|
2769
|
+
* use during decryption inside the TEE.
|
|
2770
|
+
*/
|
|
2771
|
+
encapsulated_key: string;
|
|
2772
|
+
|
|
2773
|
+
/**
|
|
2774
|
+
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
2775
|
+
*/
|
|
2776
|
+
encryption_type: HpkeEncryption;
|
|
2777
|
+
|
|
2778
|
+
/**
|
|
2779
|
+
* The entropy type of the wallet to import.
|
|
2780
|
+
*/
|
|
2781
|
+
entropy_type: 'hd';
|
|
2782
|
+
|
|
2783
|
+
/**
|
|
2784
|
+
* The index of the wallet to import.
|
|
2785
|
+
*/
|
|
2786
|
+
index: number;
|
|
2787
|
+
|
|
2788
|
+
/**
|
|
2789
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
2790
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
2791
|
+
* configurations.
|
|
2792
|
+
*/
|
|
2793
|
+
hpke_config?: HpkeImportConfig;
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Request body for exporting a wallet private key.
|
|
2798
|
+
*/
|
|
2799
|
+
export interface WalletExportRequestBody {
|
|
2800
|
+
/**
|
|
2801
|
+
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
2802
|
+
*/
|
|
2803
|
+
encryption_type: HpkeEncryption;
|
|
2804
|
+
|
|
2805
|
+
/**
|
|
2806
|
+
* The base64-encoded encryption public key to encrypt the wallet private key with.
|
|
2807
|
+
*/
|
|
2808
|
+
recipient_public_key: string;
|
|
2809
|
+
|
|
2810
|
+
export_seed_phrase?: boolean;
|
|
2811
|
+
}
|
|
2812
|
+
|
|
2813
|
+
/**
|
|
2814
|
+
* Response body containing the encrypted wallet private key.
|
|
2815
|
+
*/
|
|
2816
|
+
export interface WalletExportResponseBody {
|
|
2817
|
+
/**
|
|
2818
|
+
* The encrypted private key.
|
|
2819
|
+
*/
|
|
2820
|
+
ciphertext: string;
|
|
2821
|
+
|
|
2822
|
+
/**
|
|
2823
|
+
* The base64-encoded encapsulated key that was generated during encryption, for
|
|
2824
|
+
* use during decryption.
|
|
2825
|
+
*/
|
|
2826
|
+
encapsulated_key: string;
|
|
2827
|
+
|
|
2828
|
+
/**
|
|
2829
|
+
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
2830
|
+
*/
|
|
2831
|
+
encryption_type: HpkeEncryption;
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2645
2834
|
/**
|
|
2646
2835
|
* The source asset, amount, and chain for a token transfer.
|
|
2647
2836
|
*/
|
|
@@ -2680,7 +2869,7 @@ export interface TokenTransferDestination {
|
|
|
2680
2869
|
/**
|
|
2681
2870
|
* Request body for initiating a sponsored token transfer from an embedded wallet.
|
|
2682
2871
|
*/
|
|
2683
|
-
export interface
|
|
2872
|
+
export interface TransferRequestBody {
|
|
2684
2873
|
/**
|
|
2685
2874
|
* The destination address for a token transfer.
|
|
2686
2875
|
*/
|
|
@@ -2697,6 +2886,110 @@ export interface CreateTokenTransferRequest {
|
|
|
2697
2886
|
*/
|
|
2698
2887
|
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
2699
2888
|
|
|
2889
|
+
/**
|
|
2890
|
+
* A named asset on Ethereum-compatible chains.
|
|
2891
|
+
*/
|
|
2892
|
+
export type WalletEthereumAsset = 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb';
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
* A named asset on Solana.
|
|
2896
|
+
*/
|
|
2897
|
+
export type WalletSolanaAsset = 'sol' | 'usdc' | 'eurc' | 'usdb';
|
|
2898
|
+
|
|
2899
|
+
/**
|
|
2900
|
+
* A named asset supported across all chains.
|
|
2901
|
+
*/
|
|
2902
|
+
export type WalletAsset = 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
2903
|
+
|
|
2904
|
+
/**
|
|
2905
|
+
* Details for a sent transfer transaction.
|
|
2906
|
+
*/
|
|
2907
|
+
export interface TransferSentTransactionDetail {
|
|
2908
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
2909
|
+
|
|
2910
|
+
chain:
|
|
2911
|
+
| 'ethereum'
|
|
2912
|
+
| 'arbitrum'
|
|
2913
|
+
| 'base'
|
|
2914
|
+
| 'tempo'
|
|
2915
|
+
| 'linea'
|
|
2916
|
+
| 'optimism'
|
|
2917
|
+
| 'polygon'
|
|
2918
|
+
| 'solana'
|
|
2919
|
+
| 'zksync_era'
|
|
2920
|
+
| 'sepolia'
|
|
2921
|
+
| 'arbitrum_sepolia'
|
|
2922
|
+
| 'base_sepolia'
|
|
2923
|
+
| 'linea_testnet'
|
|
2924
|
+
| 'optimism_sepolia'
|
|
2925
|
+
| 'polygon_amoy'
|
|
2926
|
+
| 'solana_devnet'
|
|
2927
|
+
| 'solana_testnet';
|
|
2928
|
+
|
|
2929
|
+
display_values: { [key: string]: string };
|
|
2930
|
+
|
|
2931
|
+
raw_value: string;
|
|
2932
|
+
|
|
2933
|
+
raw_value_decimals: number;
|
|
2934
|
+
|
|
2935
|
+
recipient: string;
|
|
2936
|
+
|
|
2937
|
+
recipient_privy_user_id: string | null;
|
|
2938
|
+
|
|
2939
|
+
sender: string;
|
|
2940
|
+
|
|
2941
|
+
sender_privy_user_id: string | null;
|
|
2942
|
+
|
|
2943
|
+
type: 'transfer_sent';
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
/**
|
|
2947
|
+
* Details for a received transfer transaction.
|
|
2948
|
+
*/
|
|
2949
|
+
export interface TransferReceivedTransactionDetail {
|
|
2950
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
2951
|
+
|
|
2952
|
+
chain:
|
|
2953
|
+
| 'ethereum'
|
|
2954
|
+
| 'arbitrum'
|
|
2955
|
+
| 'base'
|
|
2956
|
+
| 'tempo'
|
|
2957
|
+
| 'linea'
|
|
2958
|
+
| 'optimism'
|
|
2959
|
+
| 'polygon'
|
|
2960
|
+
| 'solana'
|
|
2961
|
+
| 'zksync_era'
|
|
2962
|
+
| 'sepolia'
|
|
2963
|
+
| 'arbitrum_sepolia'
|
|
2964
|
+
| 'base_sepolia'
|
|
2965
|
+
| 'linea_testnet'
|
|
2966
|
+
| 'optimism_sepolia'
|
|
2967
|
+
| 'polygon_amoy'
|
|
2968
|
+
| 'solana_devnet'
|
|
2969
|
+
| 'solana_testnet';
|
|
2970
|
+
|
|
2971
|
+
display_values: { [key: string]: string };
|
|
2972
|
+
|
|
2973
|
+
raw_value: string;
|
|
2974
|
+
|
|
2975
|
+
raw_value_decimals: number;
|
|
2976
|
+
|
|
2977
|
+
recipient: string;
|
|
2978
|
+
|
|
2979
|
+
recipient_privy_user_id: string | null;
|
|
2980
|
+
|
|
2981
|
+
sender: string;
|
|
2982
|
+
|
|
2983
|
+
sender_privy_user_id: string | null;
|
|
2984
|
+
|
|
2985
|
+
type: 'transfer_received';
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* Details of a wallet transaction, varying by transaction type.
|
|
2990
|
+
*/
|
|
2991
|
+
export type TransactionDetail = TransferSentTransactionDetail | TransferReceivedTransactionDetail;
|
|
2992
|
+
|
|
2700
2993
|
/**
|
|
2701
2994
|
* Input for registering or updating an application public signing key for
|
|
2702
2995
|
* API-based wallet actions.
|
|
@@ -2775,24 +3068,6 @@ export interface WalletAuthorizationHeaders {
|
|
|
2775
3068
|
'privy-request-expiry'?: string;
|
|
2776
3069
|
}
|
|
2777
3070
|
|
|
2778
|
-
export interface WalletExportResponse {
|
|
2779
|
-
/**
|
|
2780
|
-
* The encrypted private key.
|
|
2781
|
-
*/
|
|
2782
|
-
ciphertext: string;
|
|
2783
|
-
|
|
2784
|
-
/**
|
|
2785
|
-
* The base64-encoded encapsulated key that was generated during encryption, for
|
|
2786
|
-
* use during decryption.
|
|
2787
|
-
*/
|
|
2788
|
-
encapsulated_key: string;
|
|
2789
|
-
|
|
2790
|
-
/**
|
|
2791
|
-
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
2792
|
-
*/
|
|
2793
|
-
encryption_type: HpkeEncryption;
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
3071
|
export interface WalletInitImportResponse {
|
|
2797
3072
|
/**
|
|
2798
3073
|
* The base64-encoded encryption public key to encrypt the wallet entropy with.
|
|
@@ -3995,7 +4270,10 @@ export declare namespace WalletRpcParams {
|
|
|
3995
4270
|
}
|
|
3996
4271
|
|
|
3997
4272
|
export interface WalletSubmitImportParams {
|
|
3998
|
-
|
|
4273
|
+
/**
|
|
4274
|
+
* The submission input for importing an HD wallet.
|
|
4275
|
+
*/
|
|
4276
|
+
wallet: HDSubmitInput | PrivateKeySubmitInput;
|
|
3999
4277
|
|
|
4000
4278
|
/**
|
|
4001
4279
|
* Additional signers for the wallet.
|
|
@@ -4032,92 +4310,6 @@ export interface WalletSubmitImportParams {
|
|
|
4032
4310
|
policy_ids?: PolicyInput;
|
|
4033
4311
|
}
|
|
4034
4312
|
|
|
4035
|
-
export namespace WalletSubmitImportParams {
|
|
4036
|
-
export interface HDSubmitInput {
|
|
4037
|
-
/**
|
|
4038
|
-
* The address of the wallet to import.
|
|
4039
|
-
*/
|
|
4040
|
-
address: string;
|
|
4041
|
-
|
|
4042
|
-
/**
|
|
4043
|
-
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
4044
|
-
* `solana`.
|
|
4045
|
-
*/
|
|
4046
|
-
chain_type: WalletsAPI.WalletImportSupportedChains;
|
|
4047
|
-
|
|
4048
|
-
/**
|
|
4049
|
-
* The encrypted entropy of the wallet to import.
|
|
4050
|
-
*/
|
|
4051
|
-
ciphertext: string;
|
|
4052
|
-
|
|
4053
|
-
/**
|
|
4054
|
-
* The base64-encoded encapsulated key that was generated during encryption, for
|
|
4055
|
-
* use during decryption inside the TEE.
|
|
4056
|
-
*/
|
|
4057
|
-
encapsulated_key: string;
|
|
4058
|
-
|
|
4059
|
-
/**
|
|
4060
|
-
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
4061
|
-
*/
|
|
4062
|
-
encryption_type: WalletsAPI.HpkeEncryption;
|
|
4063
|
-
|
|
4064
|
-
/**
|
|
4065
|
-
* The entropy type of the wallet to import.
|
|
4066
|
-
*/
|
|
4067
|
-
entropy_type: 'hd';
|
|
4068
|
-
|
|
4069
|
-
/**
|
|
4070
|
-
* The index of the wallet to import.
|
|
4071
|
-
*/
|
|
4072
|
-
index: number;
|
|
4073
|
-
|
|
4074
|
-
/**
|
|
4075
|
-
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
4076
|
-
* importing wallets encrypted by external providers that use different HPKE
|
|
4077
|
-
* configurations.
|
|
4078
|
-
*/
|
|
4079
|
-
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
4080
|
-
}
|
|
4081
|
-
|
|
4082
|
-
export interface PrivateKeySubmitInput {
|
|
4083
|
-
/**
|
|
4084
|
-
* The address of the wallet to import.
|
|
4085
|
-
*/
|
|
4086
|
-
address: string;
|
|
4087
|
-
|
|
4088
|
-
/**
|
|
4089
|
-
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
4090
|
-
* `solana`.
|
|
4091
|
-
*/
|
|
4092
|
-
chain_type: WalletsAPI.WalletImportSupportedChains;
|
|
4093
|
-
|
|
4094
|
-
/**
|
|
4095
|
-
* The encrypted entropy of the wallet to import.
|
|
4096
|
-
*/
|
|
4097
|
-
ciphertext: string;
|
|
4098
|
-
|
|
4099
|
-
/**
|
|
4100
|
-
* The base64-encoded encapsulated key that was generated during encryption, for
|
|
4101
|
-
* use during decryption inside the TEE.
|
|
4102
|
-
*/
|
|
4103
|
-
encapsulated_key: string;
|
|
4104
|
-
|
|
4105
|
-
/**
|
|
4106
|
-
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
4107
|
-
*/
|
|
4108
|
-
encryption_type: WalletsAPI.HpkeEncryption;
|
|
4109
|
-
|
|
4110
|
-
entropy_type: 'private-key';
|
|
4111
|
-
|
|
4112
|
-
/**
|
|
4113
|
-
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
4114
|
-
* importing wallets encrypted by external providers that use different HPKE
|
|
4115
|
-
* configurations.
|
|
4116
|
-
*/
|
|
4117
|
-
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4120
|
-
|
|
4121
4313
|
export interface WalletUpdateParams {
|
|
4122
4314
|
/**
|
|
4123
4315
|
* Body param: Additional signers for the wallet.
|
|
@@ -4196,27 +4388,7 @@ export namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
4196
4388
|
}
|
|
4197
4389
|
|
|
4198
4390
|
export interface RecoveryUser {
|
|
4199
|
-
linked_accounts: Array<
|
|
4200
|
-
}
|
|
4201
|
-
|
|
4202
|
-
export namespace RecoveryUser {
|
|
4203
|
-
export interface UnionMember0 {
|
|
4204
|
-
/**
|
|
4205
|
-
* The email address of the user.
|
|
4206
|
-
*/
|
|
4207
|
-
address: string;
|
|
4208
|
-
|
|
4209
|
-
type: 'email';
|
|
4210
|
-
}
|
|
4211
|
-
|
|
4212
|
-
export interface UnionMember1 {
|
|
4213
|
-
/**
|
|
4214
|
-
* The JWT subject ID of the user.
|
|
4215
|
-
*/
|
|
4216
|
-
custom_user_id: string;
|
|
4217
|
-
|
|
4218
|
-
type: 'custom_auth';
|
|
4219
|
-
}
|
|
4391
|
+
linked_accounts: Array<UsersAPI.LinkedAccountEmailInput | UsersAPI.LinkedAccountCustomJwtInput>;
|
|
4220
4392
|
}
|
|
4221
4393
|
|
|
4222
4394
|
export interface Wallet {
|
|
@@ -4409,16 +4581,27 @@ export declare namespace Wallets {
|
|
|
4409
4581
|
type WalletRpcRequestBody as WalletRpcRequestBody,
|
|
4410
4582
|
type WalletRpcResponse as WalletRpcResponse,
|
|
4411
4583
|
type WalletAuthenticateRequestBody as WalletAuthenticateRequestBody,
|
|
4584
|
+
type PrivateKeyInitInput as PrivateKeyInitInput,
|
|
4585
|
+
type HDInitInput as HDInitInput,
|
|
4586
|
+
type PrivateKeySubmitInput as PrivateKeySubmitInput,
|
|
4587
|
+
type HDSubmitInput as HDSubmitInput,
|
|
4588
|
+
type WalletExportRequestBody as WalletExportRequestBody,
|
|
4589
|
+
type WalletExportResponseBody as WalletExportResponseBody,
|
|
4412
4590
|
type TokenTransferSource as TokenTransferSource,
|
|
4413
4591
|
type TokenTransferDestination as TokenTransferDestination,
|
|
4414
|
-
type
|
|
4592
|
+
type TransferRequestBody as TransferRequestBody,
|
|
4415
4593
|
type SuiCommandName as SuiCommandName,
|
|
4594
|
+
type WalletEthereumAsset as WalletEthereumAsset,
|
|
4595
|
+
type WalletSolanaAsset as WalletSolanaAsset,
|
|
4596
|
+
type WalletAsset as WalletAsset,
|
|
4597
|
+
type TransferSentTransactionDetail as TransferSentTransactionDetail,
|
|
4598
|
+
type TransferReceivedTransactionDetail as TransferReceivedTransactionDetail,
|
|
4599
|
+
type TransactionDetail as TransactionDetail,
|
|
4416
4600
|
type WalletAPIRegisterAuthorizationKeyInput as WalletAPIRegisterAuthorizationKeyInput,
|
|
4417
4601
|
type WalletAPIRevokeAuthorizationKeyInput as WalletAPIRevokeAuthorizationKeyInput,
|
|
4418
4602
|
type AuthorizationKeyDashboardResponse as AuthorizationKeyDashboardResponse,
|
|
4419
4603
|
type AuthorizationKeyResponse as AuthorizationKeyResponse,
|
|
4420
4604
|
type WalletAuthorizationHeaders as WalletAuthorizationHeaders,
|
|
4421
|
-
type WalletExportResponse as WalletExportResponse,
|
|
4422
4605
|
type WalletInitImportResponse as WalletInitImportResponse,
|
|
4423
4606
|
type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
|
|
4424
4607
|
type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
|