@privy-io/api-types 0.4.0 → 0.6.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 +66 -0
- package/client.d.mts +25 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -12
- package/client.d.ts.map +1 -1
- package/client.js +32 -5
- package/client.js.map +1 -1
- package/client.mjs +32 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/accounts.d.mts +85 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +85 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +9 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +5 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/aggregations.d.mts +213 -2
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +213 -2
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/client-auth.d.mts +181 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +181 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/funding.d.mts +4 -4
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +4 -4
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +9 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +104 -0
- package/resources/intents.d.mts.map +1 -0
- package/resources/intents.d.ts +104 -0
- package/resources/intents.d.ts.map +1 -0
- package/resources/intents.js +9 -0
- package/resources/intents.js.map +1 -0
- package/resources/intents.mjs +5 -0
- package/resources/intents.mjs.map +1 -0
- package/resources/key-quorums.d.mts +14 -0
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +14 -0
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +66 -68
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +66 -68
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +72 -62
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +72 -62
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +10 -5
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +10 -5
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +1 -2
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +1 -2
- 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 +2 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +2 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +203 -76
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +203 -76
- 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 +977 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +977 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +9 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +5 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/yield.d.mts +311 -0
- package/resources/yield.d.mts.map +1 -0
- package/resources/yield.d.ts +311 -0
- package/resources/yield.d.ts.map +1 -0
- package/resources/yield.js +9 -0
- package/resources/yield.js.map +1 -0
- package/resources/yield.mjs +5 -0
- package/resources/yield.mjs.map +1 -0
- package/src/client.ts +240 -18
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/accounts.ts +106 -0
- package/src/resources/aggregations.ts +361 -5
- package/src/resources/client-auth.ts +309 -0
- package/src/resources/funding.ts +4 -1
- package/src/resources/index.ts +101 -8
- package/src/resources/intents.ts +138 -0
- package/src/resources/key-quorums.ts +17 -0
- package/src/resources/policies.ts +86 -88
- package/src/resources/users.ts +128 -111
- package/src/resources/wallets/balance.ts +15 -5
- package/src/resources/wallets/index.ts +7 -3
- package/src/resources/wallets/transactions.ts +2 -2
- package/src/resources/wallets/wallets.ts +250 -96
- package/src/resources/webhooks.ts +1347 -0
- package/src/resources/yield.ts +389 -0
- 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
|
@@ -9,18 +9,17 @@ export declare class Balance extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const balance = await client.wallets.balance.get(
|
|
11
11
|
* 'wallet_id',
|
|
12
|
-
* { asset: 'usdc', chain: 'ethereum' },
|
|
13
12
|
* );
|
|
14
13
|
* ```
|
|
15
14
|
*/
|
|
16
|
-
get(walletID: string, query
|
|
15
|
+
get(walletID: string, query?: BalanceGetParams | null | undefined, options?: RequestOptions): APIPromise<BalanceGetResponse>;
|
|
17
16
|
}
|
|
18
17
|
export interface BalanceGetResponse {
|
|
19
18
|
balances: Array<BalanceGetResponse.Balance>;
|
|
20
19
|
}
|
|
21
20
|
export declare namespace BalanceGetResponse {
|
|
22
21
|
interface Balance {
|
|
23
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
22
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
24
23
|
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
25
24
|
display_values: {
|
|
26
25
|
[key: string]: string;
|
|
@@ -30,8 +29,14 @@ export declare namespace BalanceGetResponse {
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
export interface BalanceGetParams {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
/**
|
|
33
|
+
* The token contract address(es) to query in format "chain:address" (e.g.,
|
|
34
|
+
* "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" or
|
|
35
|
+
* "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").
|
|
36
|
+
*/
|
|
37
|
+
token?: string | Array<string>;
|
|
38
|
+
asset?: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
39
|
+
chain?: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet' | Array<'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet'>;
|
|
35
40
|
include_currency?: 'usd' | 'eur';
|
|
36
41
|
}
|
|
37
42
|
export declare namespace Balance {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balance.d.mts","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"balance.d.mts","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAGlC;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC7C;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,OAAO;QACtB,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;QAE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K,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
|
@@ -9,18 +9,17 @@ export declare class Balance extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const balance = await client.wallets.balance.get(
|
|
11
11
|
* 'wallet_id',
|
|
12
|
-
* { asset: 'usdc', chain: 'ethereum' },
|
|
13
12
|
* );
|
|
14
13
|
* ```
|
|
15
14
|
*/
|
|
16
|
-
get(walletID: string, query
|
|
15
|
+
get(walletID: string, query?: BalanceGetParams | null | undefined, options?: RequestOptions): APIPromise<BalanceGetResponse>;
|
|
17
16
|
}
|
|
18
17
|
export interface BalanceGetResponse {
|
|
19
18
|
balances: Array<BalanceGetResponse.Balance>;
|
|
20
19
|
}
|
|
21
20
|
export declare namespace BalanceGetResponse {
|
|
22
21
|
interface Balance {
|
|
23
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
22
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
24
23
|
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
25
24
|
display_values: {
|
|
26
25
|
[key: string]: string;
|
|
@@ -30,8 +29,14 @@ export declare namespace BalanceGetResponse {
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
export interface BalanceGetParams {
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
/**
|
|
33
|
+
* The token contract address(es) to query in format "chain:address" (e.g.,
|
|
34
|
+
* "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" or
|
|
35
|
+
* "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").
|
|
36
|
+
*/
|
|
37
|
+
token?: string | Array<string>;
|
|
38
|
+
asset?: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
39
|
+
chain?: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet' | Array<'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet'>;
|
|
35
40
|
include_currency?: 'usd' | 'eur';
|
|
36
41
|
}
|
|
37
42
|
export declare namespace Balance {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAGlC;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,OA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kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,gBAAgB,CACnB,CAAC;IAEN,gBAAgB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
|
|
@@ -12,11 +12,10 @@ class Balance extends resource_1.APIResource {
|
|
|
12
12
|
* ```ts
|
|
13
13
|
* const balance = await client.wallets.balance.get(
|
|
14
14
|
* 'wallet_id',
|
|
15
|
-
* { asset: 'usdc', chain: 'ethereum' },
|
|
16
15
|
* );
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
19
|
-
get(walletID, query, options) {
|
|
18
|
+
get(walletID, query = {}, options) {
|
|
20
19
|
return this._client.get((0, path_1.path) `/v1/wallets/${walletID}/balance`, { query, ...options });
|
|
21
20
|
}
|
|
22
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CACD,QAAgB,EAChB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF;AAlBD,0BAkBC"}
|
|
@@ -9,11 +9,10 @@ export class Balance extends APIResource {
|
|
|
9
9
|
* ```ts
|
|
10
10
|
* const balance = await client.wallets.balance.get(
|
|
11
11
|
* 'wallet_id',
|
|
12
|
-
* { asset: 'usdc', chain: 'ethereum' },
|
|
13
12
|
* );
|
|
14
13
|
* ```
|
|
15
14
|
*/
|
|
16
|
-
get(walletID, query, options) {
|
|
15
|
+
get(walletID, query = {}, options) {
|
|
17
16
|
return this._client.get(path `/v1/wallets/${walletID}/balance`, { query, ...options });
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balance.mjs","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"balance.mjs","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,GAAG,CACD,QAAgB,EAChB,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Balance, type BalanceGetResponse, type BalanceGetParams } from "./balance.mjs";
|
|
2
2
|
export { Transactions, type TransactionGetResponse, type TransactionGetParams } from "./transactions.mjs";
|
|
3
|
-
export { Wallets, type
|
|
3
|
+
export { Wallets, type WalletRevokeResponse, type CurveSigningChainType, type ExtendedChainType, type FirstClassChainType, type WalletChainType, type WalletCustodian, type CustodialWalletProvider, type CustodialWalletChainType, type CustodialWalletCreateInput, type CustodialWallet, type HpkeImportConfig, type SuiCommandName, type Wallet, type WalletBatchItemInput, type WalletBatchCreateInput, type WalletBatchCreateResult, type WalletBatchCreateResponse, type EthereumPersonalSignRpcInput, type EthereumSignTransactionRpcInput, type EthereumSendTransactionRpcInput, type EthereumSignTypedDataRpcInput, type EthereumSignUserOperationRpcInput, type EthereumSign7702AuthorizationRpcInput, type EthereumSecp256k1SignRpcInput, type SolanaSignTransactionRpcInput, type SolanaSignAndSendTransactionRpcInput, type SolanaSignMessageRpcInput, type EthereumSignTransactionRpcResponse, type EthereumSendTransactionRpcResponse, type EthereumPersonalSignRpcResponse, type EthereumSignTypedDataRpcResponse, type EthereumSignUserOperationRpcResponse, type EthereumSign7702AuthorizationRpcResponse, type EthereumSecp256k1SignRpcResponse, type SolanaSignTransactionRpcResponse, type SolanaSignAndSendTransactionRpcResponse, type SolanaSignMessageRpcResponse, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, type WalletRpcResponse, type WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse, type WalletCreateParams, type WalletListParams, type WalletExportParams, type WalletInitImportParams, type WalletRawSignParams, type WalletRpcParams, type WalletSubmitImportParams, type WalletUpdateParams, type WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams, type WalletsCursor, } from "./wallets.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/wallets/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OAC3D,EAAE,YAAY,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE;OACxE,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"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,EACvB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,GACnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Balance, type BalanceGetResponse, type BalanceGetParams } from "./balance.js";
|
|
2
2
|
export { Transactions, type TransactionGetResponse, type TransactionGetParams } from "./transactions.js";
|
|
3
|
-
export { Wallets, type
|
|
3
|
+
export { Wallets, type WalletRevokeResponse, type CurveSigningChainType, type ExtendedChainType, type FirstClassChainType, type WalletChainType, type WalletCustodian, type CustodialWalletProvider, type CustodialWalletChainType, type CustodialWalletCreateInput, type CustodialWallet, type HpkeImportConfig, type SuiCommandName, type Wallet, type WalletBatchItemInput, type WalletBatchCreateInput, type WalletBatchCreateResult, type WalletBatchCreateResponse, type EthereumPersonalSignRpcInput, type EthereumSignTransactionRpcInput, type EthereumSendTransactionRpcInput, type EthereumSignTypedDataRpcInput, type EthereumSignUserOperationRpcInput, type EthereumSign7702AuthorizationRpcInput, type EthereumSecp256k1SignRpcInput, type SolanaSignTransactionRpcInput, type SolanaSignAndSendTransactionRpcInput, type SolanaSignMessageRpcInput, type EthereumSignTransactionRpcResponse, type EthereumSendTransactionRpcResponse, type EthereumPersonalSignRpcResponse, type EthereumSignTypedDataRpcResponse, type EthereumSignUserOperationRpcResponse, type EthereumSign7702AuthorizationRpcResponse, type EthereumSecp256k1SignRpcResponse, type SolanaSignTransactionRpcResponse, type SolanaSignAndSendTransactionRpcResponse, type SolanaSignMessageRpcResponse, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, type WalletRpcResponse, type WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse, type WalletCreateParams, type WalletListParams, type WalletExportParams, type WalletInitImportParams, type WalletRawSignParams, type WalletRpcParams, type WalletSubmitImportParams, type WalletUpdateParams, type WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams, type WalletsCursor, } from "./wallets.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/wallets/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OAC3D,EAAE,YAAY,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE;OACxE,EACL,OAAO,EACP,KAAK,qBAAqB,EAC1B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/wallets/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OAC3D,EAAE,YAAY,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE;OACxE,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAC7C,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,EAC5C,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,uCAAuC,EAC5C,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,GACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/wallets/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoF;AAA3E,kGAAA,OAAO,OAAA;AAChB,kDAAsG;AAA7F,4GAAA,YAAY,OAAA;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/wallets/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoF;AAA3E,kGAAA,OAAO,OAAA;AAChB,kDAAsG;AAA7F,4GAAA,YAAY,OAAA;AACrB,wCAwDmB;AAvDjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/wallets/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAkD;OAC3D,EAAE,YAAY,EAA0D;OACxE,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/wallets/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAkD;OAC3D,EAAE,YAAY,EAA0D;OACxE,EACL,OAAO,GAuDR"}
|
|
@@ -32,7 +32,7 @@ export declare namespace TransactionGetResponse {
|
|
|
32
32
|
}
|
|
33
33
|
namespace Transaction {
|
|
34
34
|
interface UnionMember0 {
|
|
35
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
35
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
36
36
|
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
37
37
|
display_values: {
|
|
38
38
|
[key: string]: string;
|
|
@@ -46,7 +46,7 @@ export declare namespace TransactionGetResponse {
|
|
|
46
46
|
type: 'transfer_sent';
|
|
47
47
|
}
|
|
48
48
|
interface UnionMember1 {
|
|
49
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
49
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
50
50
|
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
51
51
|
display_values: {
|
|
52
52
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.mts","sourceRoot":"","sources":["../../src/resources/wallets/transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,oBAAo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EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -32,7 +32,7 @@ export declare namespace TransactionGetResponse {
|
|
|
32
32
|
}
|
|
33
33
|
namespace Transaction {
|
|
34
34
|
interface UnionMember0 {
|
|
35
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
35
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
36
36
|
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
37
37
|
display_values: {
|
|
38
38
|
[key: string]: string;
|
|
@@ -46,7 +46,7 @@ export declare namespace TransactionGetResponse {
|
|
|
46
46
|
type: 'transfer_sent';
|
|
47
47
|
}
|
|
48
48
|
interface UnionMember1 {
|
|
49
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
|
|
49
|
+
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
50
50
|
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
51
51
|
display_values: {
|
|
52
52
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../src/resources/wallets/transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,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C,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -147,92 +147,40 @@ export declare class Wallets extends APIResource {
|
|
|
147
147
|
get(walletID: string, options?: RequestOptions): APIPromise<Wallet>;
|
|
148
148
|
}
|
|
149
149
|
export type WalletsCursor = Cursor<Wallet>;
|
|
150
|
+
/**
|
|
151
|
+
* The response body from revoking a wallet delegation.
|
|
152
|
+
*/
|
|
153
|
+
export interface WalletRevokeResponse {
|
|
154
|
+
message: string;
|
|
155
|
+
}
|
|
150
156
|
/**
|
|
151
157
|
* The wallet chain types that support curve-based signing.
|
|
152
158
|
*/
|
|
153
159
|
export type CurveSigningChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet';
|
|
154
160
|
/**
|
|
155
|
-
* The wallet chain types that
|
|
161
|
+
* The wallet chain types that are not first class chains.
|
|
156
162
|
*/
|
|
157
|
-
export type
|
|
163
|
+
export type ExtendedChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
158
164
|
/**
|
|
159
|
-
*
|
|
165
|
+
* The wallet chain types that offer first class support.
|
|
160
166
|
*/
|
|
161
|
-
export
|
|
162
|
-
/**
|
|
163
|
-
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
164
|
-
* wallet in the future.
|
|
165
|
-
*/
|
|
166
|
-
id: string;
|
|
167
|
-
/**
|
|
168
|
-
* Additional signers for the wallet.
|
|
169
|
-
*/
|
|
170
|
-
additional_signers: Array<Wallet.AdditionalSigner>;
|
|
171
|
-
/**
|
|
172
|
-
* Address of the wallet.
|
|
173
|
-
*/
|
|
174
|
-
address: string;
|
|
175
|
-
/**
|
|
176
|
-
* The wallet chain types.
|
|
177
|
-
*/
|
|
178
|
-
chain_type: WalletChainType;
|
|
179
|
-
/**
|
|
180
|
-
* Unix timestamp of when the wallet was created in milliseconds.
|
|
181
|
-
*/
|
|
182
|
-
created_at: number;
|
|
183
|
-
/**
|
|
184
|
-
* Unix timestamp of when the wallet was exported in milliseconds, if the wallet
|
|
185
|
-
* was exported.
|
|
186
|
-
*/
|
|
187
|
-
exported_at: number | null;
|
|
188
|
-
/**
|
|
189
|
-
* Unix timestamp of when the wallet was imported in milliseconds, if the wallet
|
|
190
|
-
* was imported.
|
|
191
|
-
*/
|
|
192
|
-
imported_at: number | null;
|
|
193
|
-
/**
|
|
194
|
-
* The key quorum ID of the owner of the wallet.
|
|
195
|
-
*/
|
|
196
|
-
owner_id: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* List of policy IDs for policies that are enforced on the wallet.
|
|
199
|
-
*/
|
|
200
|
-
policy_ids: Array<string>;
|
|
201
|
-
/**
|
|
202
|
-
* The compressed, raw public key for the wallet along the chain cryptographic
|
|
203
|
-
* curve.
|
|
204
|
-
*/
|
|
205
|
-
public_key?: string;
|
|
206
|
-
}
|
|
207
|
-
export declare namespace Wallet {
|
|
208
|
-
interface AdditionalSigner {
|
|
209
|
-
signer_id: string;
|
|
210
|
-
/**
|
|
211
|
-
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
212
|
-
* this will override the base policy IDs set on the wallet.
|
|
213
|
-
*/
|
|
214
|
-
override_policy_ids?: Array<string>;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
167
|
+
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
217
168
|
/**
|
|
218
169
|
* The wallet chain types.
|
|
219
170
|
*/
|
|
220
171
|
export type WalletChainType = 'ethereum' | 'solana' | 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
221
|
-
/**
|
|
222
|
-
* The response body from revoking a wallet delegation.
|
|
223
|
-
*/
|
|
224
|
-
export interface WalletRevokeResponse {
|
|
225
|
-
message: string;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* The wallet chain types that are not first class chains.
|
|
229
|
-
*/
|
|
230
|
-
export type ExtendedChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
231
172
|
/**
|
|
232
173
|
* Information about the custodian managing this wallet.
|
|
233
174
|
*/
|
|
234
175
|
export interface WalletCustodian {
|
|
235
|
-
|
|
176
|
+
/**
|
|
177
|
+
* The custodian responsible for the wallet.
|
|
178
|
+
*/
|
|
179
|
+
provider: string;
|
|
180
|
+
/**
|
|
181
|
+
* The resource ID of the beneficiary of the custodial wallet.
|
|
182
|
+
*/
|
|
183
|
+
provider_user_id: string;
|
|
236
184
|
}
|
|
237
185
|
/**
|
|
238
186
|
* The provider of the custodial wallet.
|
|
@@ -285,11 +233,11 @@ export interface CustodialWallet {
|
|
|
285
233
|
* The chain type of the custodial wallet.
|
|
286
234
|
*/
|
|
287
235
|
chain_type: CustodialWalletChainType;
|
|
288
|
-
owner_id: string | null;
|
|
289
236
|
/**
|
|
290
|
-
*
|
|
237
|
+
* Information about the custodian managing this wallet.
|
|
291
238
|
*/
|
|
292
|
-
|
|
239
|
+
custody: WalletCustodian;
|
|
240
|
+
owner_id: string | null;
|
|
293
241
|
additional_signers?: Array<CustodialWallet.AdditionalSigner>;
|
|
294
242
|
policy_ids?: Array<string>;
|
|
295
243
|
}
|
|
@@ -325,6 +273,177 @@ export interface HpkeImportConfig {
|
|
|
325
273
|
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
326
274
|
*/
|
|
327
275
|
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
276
|
+
/**
|
|
277
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
278
|
+
*/
|
|
279
|
+
export interface Wallet {
|
|
280
|
+
/**
|
|
281
|
+
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
282
|
+
* wallet in the future.
|
|
283
|
+
*/
|
|
284
|
+
id: string;
|
|
285
|
+
/**
|
|
286
|
+
* Additional signers for the wallet.
|
|
287
|
+
*/
|
|
288
|
+
additional_signers: Array<Wallet.AdditionalSigner>;
|
|
289
|
+
/**
|
|
290
|
+
* Address of the wallet.
|
|
291
|
+
*/
|
|
292
|
+
address: string;
|
|
293
|
+
/**
|
|
294
|
+
* The wallet chain types.
|
|
295
|
+
*/
|
|
296
|
+
chain_type: WalletChainType;
|
|
297
|
+
/**
|
|
298
|
+
* Unix timestamp of when the wallet was created in milliseconds.
|
|
299
|
+
*/
|
|
300
|
+
created_at: number;
|
|
301
|
+
/**
|
|
302
|
+
* Unix timestamp of when the wallet was exported in milliseconds, if the wallet
|
|
303
|
+
* was exported.
|
|
304
|
+
*/
|
|
305
|
+
exported_at: number | null;
|
|
306
|
+
/**
|
|
307
|
+
* Unix timestamp of when the wallet was imported in milliseconds, if the wallet
|
|
308
|
+
* was imported.
|
|
309
|
+
*/
|
|
310
|
+
imported_at: number | null;
|
|
311
|
+
/**
|
|
312
|
+
* The key quorum ID of the owner of the wallet.
|
|
313
|
+
*/
|
|
314
|
+
owner_id: string | null;
|
|
315
|
+
/**
|
|
316
|
+
* List of policy IDs for policies that are enforced on the wallet.
|
|
317
|
+
*/
|
|
318
|
+
policy_ids: Array<string>;
|
|
319
|
+
/**
|
|
320
|
+
* The compressed, raw public key for the wallet along the chain cryptographic
|
|
321
|
+
* curve.
|
|
322
|
+
*/
|
|
323
|
+
public_key?: string;
|
|
324
|
+
}
|
|
325
|
+
export declare namespace Wallet {
|
|
326
|
+
interface AdditionalSigner {
|
|
327
|
+
signer_id: string;
|
|
328
|
+
/**
|
|
329
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
330
|
+
* this will override the base policy IDs set on the wallet.
|
|
331
|
+
*/
|
|
332
|
+
override_policy_ids?: Array<string>;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Input for a single wallet in a batch creation request.
|
|
337
|
+
*/
|
|
338
|
+
export interface WalletBatchItemInput {
|
|
339
|
+
/**
|
|
340
|
+
* The wallet chain types.
|
|
341
|
+
*/
|
|
342
|
+
chain_type: WalletChainType;
|
|
343
|
+
/**
|
|
344
|
+
* Additional signers for the wallet.
|
|
345
|
+
*/
|
|
346
|
+
additional_signers?: Array<WalletBatchItemInput.AdditionalSigner>;
|
|
347
|
+
/**
|
|
348
|
+
* The owner of the resource. If you provide this, do not specify an owner_id as it
|
|
349
|
+
* will be generated automatically. When updating a wallet, you can set the owner
|
|
350
|
+
* to null to remove the owner.
|
|
351
|
+
*/
|
|
352
|
+
owner?: WalletBatchItemInput.PublicKeyOwner | WalletBatchItemInput.UserOwner | null;
|
|
353
|
+
/**
|
|
354
|
+
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
355
|
+
* not specify an owner.
|
|
356
|
+
*/
|
|
357
|
+
owner_id?: string;
|
|
358
|
+
/**
|
|
359
|
+
* List of policy IDs for policies that should be enforced on the wallet.
|
|
360
|
+
* Currently, only one policy is supported per wallet.
|
|
361
|
+
*/
|
|
362
|
+
policy_ids?: Array<string>;
|
|
363
|
+
}
|
|
364
|
+
export declare namespace WalletBatchItemInput {
|
|
365
|
+
interface AdditionalSigner {
|
|
366
|
+
signer_id: string;
|
|
367
|
+
/**
|
|
368
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
369
|
+
* this will override the base policy IDs set on the wallet.
|
|
370
|
+
*/
|
|
371
|
+
override_policy_ids?: Array<string>;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* The P-256 public key of the owner of the resource, in base64-encoded DER format.
|
|
375
|
+
* If you provide this, do not specify an owner_id as it will be generated
|
|
376
|
+
* automatically.
|
|
377
|
+
*/
|
|
378
|
+
interface PublicKeyOwner {
|
|
379
|
+
public_key: string;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* The user ID of the owner of the resource. The user must already exist, and this
|
|
383
|
+
* value must start with "did:privy:". If you provide this, do not specify an
|
|
384
|
+
* owner_id as it will be generated automatically.
|
|
385
|
+
*/
|
|
386
|
+
interface UserOwner {
|
|
387
|
+
user_id: string;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Request body for batch wallet creation.
|
|
392
|
+
*/
|
|
393
|
+
export interface WalletBatchCreateInput {
|
|
394
|
+
/**
|
|
395
|
+
* Array of wallet creation requests. Minimum 1, maximum 100.
|
|
396
|
+
*/
|
|
397
|
+
wallets: Array<WalletBatchItemInput>;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* A single result from a batch wallet creation operation.
|
|
401
|
+
*/
|
|
402
|
+
export type WalletBatchCreateResult = WalletBatchCreateResult.WalletBatchCreateSuccess | WalletBatchCreateResult.WalletBatchCreateFailure;
|
|
403
|
+
export declare namespace WalletBatchCreateResult {
|
|
404
|
+
/**
|
|
405
|
+
* A successful wallet creation result within a batch operation.
|
|
406
|
+
*/
|
|
407
|
+
interface WalletBatchCreateSuccess {
|
|
408
|
+
/**
|
|
409
|
+
* The index of the wallet in the original request array.
|
|
410
|
+
*/
|
|
411
|
+
index: number;
|
|
412
|
+
success: true;
|
|
413
|
+
/**
|
|
414
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
415
|
+
*/
|
|
416
|
+
wallet: WalletsAPI.Wallet;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* A failed wallet creation result within a batch operation.
|
|
420
|
+
*/
|
|
421
|
+
interface WalletBatchCreateFailure {
|
|
422
|
+
/**
|
|
423
|
+
* A PrivyErrorCode string identifying the error type (e.g., "invalid_data",
|
|
424
|
+
* "resource_conflict").
|
|
425
|
+
*/
|
|
426
|
+
code: string;
|
|
427
|
+
/**
|
|
428
|
+
* A human-readable error message with details about what went wrong.
|
|
429
|
+
*/
|
|
430
|
+
error: string;
|
|
431
|
+
/**
|
|
432
|
+
* The index of the wallet in the original request array.
|
|
433
|
+
*/
|
|
434
|
+
index: number;
|
|
435
|
+
success: false;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Response for a batch wallet creation request.
|
|
440
|
+
*/
|
|
441
|
+
export interface WalletBatchCreateResponse {
|
|
442
|
+
/**
|
|
443
|
+
* Array of results for each wallet creation request, in the same order as input.
|
|
444
|
+
*/
|
|
445
|
+
results: Array<WalletBatchCreateResult>;
|
|
446
|
+
}
|
|
328
447
|
/**
|
|
329
448
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
330
449
|
*/
|
|
@@ -889,10 +1008,19 @@ export declare namespace WalletCreateParams {
|
|
|
889
1008
|
}
|
|
890
1009
|
}
|
|
891
1010
|
export interface WalletListParams extends CursorParams {
|
|
1011
|
+
/**
|
|
1012
|
+
* Filter wallets by authorization public key. Returns wallets owned by key quorums
|
|
1013
|
+
* that include the specified P-256 public key (base64-encoded DER format). Cannot
|
|
1014
|
+
* be used together with user_id.
|
|
1015
|
+
*/
|
|
1016
|
+
authorization_key?: string;
|
|
892
1017
|
/**
|
|
893
1018
|
* The wallet chain types.
|
|
894
1019
|
*/
|
|
895
1020
|
chain_type?: WalletChainType;
|
|
1021
|
+
/**
|
|
1022
|
+
* Filter wallets by user ID. Cannot be used together with authorization_key.
|
|
1023
|
+
*/
|
|
896
1024
|
user_id?: string;
|
|
897
1025
|
}
|
|
898
1026
|
export interface WalletExportParams {
|
|
@@ -1543,8 +1671,7 @@ export interface WalletUpdateParams {
|
|
|
1543
1671
|
*/
|
|
1544
1672
|
owner?: WalletUpdateParams.PublicKeyOwner | WalletUpdateParams.UserOwner | null;
|
|
1545
1673
|
/**
|
|
1546
|
-
* Body param
|
|
1547
|
-
* provide this, do not specify an owner.
|
|
1674
|
+
* Body param
|
|
1548
1675
|
*/
|
|
1549
1676
|
owner_id?: string | null;
|
|
1550
1677
|
/**
|
|
@@ -1644,7 +1771,7 @@ export declare namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
1644
1771
|
}
|
|
1645
1772
|
}
|
|
1646
1773
|
export declare namespace Wallets {
|
|
1647
|
-
export { type
|
|
1774
|
+
export { type WalletRevokeResponse as WalletRevokeResponse, type CurveSigningChainType as CurveSigningChainType, type ExtendedChainType as ExtendedChainType, type FirstClassChainType as FirstClassChainType, type WalletChainType as WalletChainType, type WalletCustodian as WalletCustodian, type CustodialWalletProvider as CustodialWalletProvider, type CustodialWalletChainType as CustodialWalletChainType, type CustodialWalletCreateInput as CustodialWalletCreateInput, type CustodialWallet as CustodialWallet, type HpkeImportConfig as HpkeImportConfig, type SuiCommandName as SuiCommandName, type Wallet as Wallet, type WalletBatchItemInput as WalletBatchItemInput, type WalletBatchCreateInput as WalletBatchCreateInput, type WalletBatchCreateResult as WalletBatchCreateResult, type WalletBatchCreateResponse as WalletBatchCreateResponse, type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput, type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput, type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput, type EthereumSignTypedDataRpcInput as EthereumSignTypedDataRpcInput, type EthereumSignUserOperationRpcInput as EthereumSignUserOperationRpcInput, type EthereumSign7702AuthorizationRpcInput as EthereumSign7702AuthorizationRpcInput, type EthereumSecp256k1SignRpcInput as EthereumSecp256k1SignRpcInput, type SolanaSignTransactionRpcInput as SolanaSignTransactionRpcInput, type SolanaSignAndSendTransactionRpcInput as SolanaSignAndSendTransactionRpcInput, type SolanaSignMessageRpcInput as SolanaSignMessageRpcInput, type EthereumSignTransactionRpcResponse as EthereumSignTransactionRpcResponse, type EthereumSendTransactionRpcResponse as EthereumSendTransactionRpcResponse, type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse, type EthereumSignTypedDataRpcResponse as EthereumSignTypedDataRpcResponse, type EthereumSignUserOperationRpcResponse as EthereumSignUserOperationRpcResponse, type EthereumSign7702AuthorizationRpcResponse as EthereumSign7702AuthorizationRpcResponse, type EthereumSecp256k1SignRpcResponse as EthereumSecp256k1SignRpcResponse, type SolanaSignTransactionRpcResponse as SolanaSignTransactionRpcResponse, type SolanaSignAndSendTransactionRpcResponse as SolanaSignAndSendTransactionRpcResponse, type SolanaSignMessageRpcResponse as SolanaSignMessageRpcResponse, type WalletExportResponse as WalletExportResponse, type WalletInitImportResponse as WalletInitImportResponse, type WalletRawSignResponse as WalletRawSignResponse, type WalletRpcResponse as WalletRpcResponse, type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse, type WalletsCursor as WalletsCursor, type WalletCreateParams as WalletCreateParams, type WalletListParams as WalletListParams, type WalletExportParams as WalletExportParams, type WalletInitImportParams as WalletInitImportParams, type WalletRawSignParams as WalletRawSignParams, type WalletRpcParams as WalletRpcParams, type WalletSubmitImportParams as WalletSubmitImportParams, type WalletUpdateParams as WalletUpdateParams, type WalletAuthenticateWithJwtParams as WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams, };
|
|
1648
1775
|
export { Transactions as Transactions, type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, };
|
|
1649
1776
|
export { Balance as Balance, type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams, };
|
|
1650
1777
|
}
|