@privy-io/node 0.10.1 → 0.11.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 +50 -0
- package/client.d.mts +37 -19
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -19
- package/client.d.ts.map +1 -1
- package/client.js +29 -10
- package/client.js.map +1 -1
- package/client.mjs +30 -11
- package/client.mjs.map +1 -1
- package/index.d.mts +2 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +12 -1
- package/public-api/PrivyClient.d.mts +3 -0
- package/public-api/PrivyClient.d.mts.map +1 -1
- package/public-api/PrivyClient.d.ts +3 -0
- package/public-api/PrivyClient.d.ts.map +1 -1
- package/public-api/PrivyClient.js +5 -0
- package/public-api/PrivyClient.js.map +1 -1
- package/public-api/PrivyClient.mjs +5 -0
- package/public-api/PrivyClient.mjs.map +1 -1
- package/public-api/services/apps.d.mts +25 -0
- package/public-api/services/apps.d.mts.map +1 -0
- package/public-api/services/apps.d.ts +25 -0
- package/public-api/services/apps.d.ts.map +1 -0
- package/public-api/services/apps.js +56 -0
- package/public-api/services/apps.js.map +1 -0
- package/public-api/services/apps.mjs +52 -0
- package/public-api/services/apps.mjs.map +1 -0
- package/public-api/services/policies.d.mts +6 -2
- package/public-api/services/policies.d.mts.map +1 -1
- package/public-api/services/policies.d.ts +6 -2
- package/public-api/services/policies.d.ts.map +1 -1
- package/public-api/services/policies.js +6 -0
- package/public-api/services/policies.js.map +1 -1
- package/public-api/services/policies.mjs +6 -0
- package/public-api/services/policies.mjs.map +1 -1
- package/public-api/services/wallets.d.mts +5 -1
- package/public-api/services/wallets.d.mts.map +1 -1
- package/public-api/services/wallets.d.ts +5 -1
- package/public-api/services/wallets.d.ts.map +1 -1
- package/public-api/services/wallets.js +6 -0
- package/public-api/services/wallets.js.map +1 -1
- package/public-api/services/wallets.mjs +6 -0
- package/public-api/services/wallets.mjs.map +1 -1
- package/resources/accounts.d.mts +182 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +182 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/apps/allowlist.d.mts +81 -0
- package/resources/apps/allowlist.d.mts.map +1 -0
- package/resources/apps/allowlist.d.ts +81 -0
- package/resources/apps/allowlist.d.ts.map +1 -0
- package/resources/apps/allowlist.js +56 -0
- package/resources/apps/allowlist.js.map +1 -0
- package/resources/apps/allowlist.mjs +52 -0
- package/resources/apps/allowlist.mjs.map +1 -0
- package/resources/apps/apps.d.mts +238 -0
- package/resources/apps/apps.d.mts.map +1 -0
- package/resources/apps/apps.d.ts +238 -0
- package/resources/apps/apps.d.ts.map +1 -0
- package/resources/apps/apps.js +44 -0
- package/resources/apps/apps.js.map +1 -0
- package/resources/apps/apps.mjs +39 -0
- package/resources/apps/apps.mjs.map +1 -0
- package/resources/apps/index.d.mts +3 -0
- package/resources/apps/index.d.mts.map +1 -0
- package/resources/apps/index.d.ts +3 -0
- package/resources/apps/index.d.ts.map +1 -0
- package/resources/apps/index.js +9 -0
- package/resources/apps/index.js.map +1 -0
- package/resources/apps/index.mjs +4 -0
- package/resources/apps/index.mjs.map +1 -0
- package/resources/apps.d.mts +1 -151
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -151
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +2 -5
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +1 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +144 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +144 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +11 -10
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -10
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +2815 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +2815 -31
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js +156 -0
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs +156 -0
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +45 -2
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +45 -2
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +18 -1
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +18 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +62 -0
- package/resources/kraken-embed.d.mts.map +1 -0
- package/resources/kraken-embed.d.ts +62 -0
- package/resources/kraken-embed.d.ts.map +1 -0
- package/resources/kraken-embed.js +9 -0
- package/resources/kraken-embed.js.map +1 -0
- package/resources/kraken-embed.mjs +5 -0
- package/resources/kraken-embed.mjs.map +1 -0
- package/resources/policies.d.mts +63 -56
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +63 -56
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +3 -0
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +3 -0
- package/resources/policies.mjs.map +1 -1
- package/resources/transactions.d.mts +3 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -0
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +50 -47
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +50 -47
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +3 -0
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +3 -0
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +9 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +9 -6
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +3 -0
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +3 -0
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +126 -69
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +126 -69
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +11 -5
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +11 -5
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +319 -283
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +319 -283
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +26 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +196 -37
- package/src/index.ts +10 -0
- package/src/public-api/PrivyClient.ts +7 -0
- package/src/public-api/services/apps.ts +85 -0
- package/src/public-api/services/policies.ts +15 -1
- package/src/public-api/services/wallets.ts +14 -0
- package/src/resources/accounts.ts +217 -3
- package/src/resources/apps/allowlist.ts +126 -0
- package/src/resources/apps/apps.ts +391 -0
- package/src/resources/apps/index.ts +20 -0
- package/src/resources/apps.ts +1 -257
- package/src/resources/client-auth.ts +202 -0
- package/src/resources/index.ts +93 -21
- package/src/resources/intents.ts +4579 -40
- package/src/resources/key-quorums.ts +50 -2
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +83 -76
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users.ts +66 -63
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +4 -2
- package/src/resources/wallets/transactions.ts +10 -4
- package/src/resources/wallets/wallets.ts +171 -93
- package/src/resources/webhooks.ts +454 -438
- package/src/resources/yield.ts +39 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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;;;;;;;;;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;
|
|
1
|
+
{"version":3,"file":"balance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L,KAAK,CAAC,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC;IAEhF,KAAK,CAAC,EACF,UAAU,GACV,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,KAAK,CACD,UAAU,GACV,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,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"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to wallets
|
|
6
|
+
*/
|
|
4
7
|
export declare class Balance extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get the balance of a wallet by wallet ID.
|
|
@@ -19,8 +22,8 @@ export interface BalanceGetResponse {
|
|
|
19
22
|
}
|
|
20
23
|
export declare namespace BalanceGetResponse {
|
|
21
24
|
interface Balance {
|
|
22
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
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
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
26
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
24
27
|
display_values: {
|
|
25
28
|
[key: string]: string;
|
|
26
29
|
};
|
|
@@ -35,8 +38,8 @@ export interface BalanceGetParams {
|
|
|
35
38
|
* "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").
|
|
36
39
|
*/
|
|
37
40
|
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'>;
|
|
41
|
+
asset?: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array<'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
42
|
+
chain?: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | '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' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet'>;
|
|
40
43
|
include_currency?: 'usd' | 'eur';
|
|
41
44
|
}
|
|
42
45
|
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;;;;;;;;;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;
|
|
1
|
+
{"version":3,"file":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,GACL,KAAK,CAAC,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC;IAEhF,KAAK,CAAC,EACF,UAAU,GACV,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,KAAK,CACD,UAAU,GACV,UAAU,GACV,MAAM,GACN,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,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"}
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Balance = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Operations related to wallets
|
|
9
|
+
*/
|
|
7
10
|
class Balance extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Get the balance of a wallet by wallet ID.
|
|
@@ -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;;;;;;;;;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"}
|
|
1
|
+
{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../src/resources/wallets/balance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,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"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to wallets
|
|
6
|
+
*/
|
|
4
7
|
export class Balance extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get the balance of a wallet by wallet ID.
|
|
@@ -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;;;;;;;;;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
|
+
{"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;;GAEG;AACH,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 CurveSigningChainType, type ExtendedChainType, type FirstClassChainType, type WalletChainType, type WalletCustodian, type CustodialWalletProvider, type CustodialWalletChainType, type CustodialWalletCreateInput, type CustodialWallet, type HpkeImportConfig, type SuiCommandName, type Wallet, type WalletUpdateRequestBody, 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 WalletRpcRequestBody, type WalletRpcResponse, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, 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,
|
|
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,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,uBAAuB,EAC5B,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,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,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,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 CurveSigningChainType, type ExtendedChainType, type FirstClassChainType, type WalletChainType, type WalletCustodian, type CustodialWalletProvider, type CustodialWalletChainType, type CustodialWalletCreateInput, type CustodialWallet, type HpkeImportConfig, type SuiCommandName, type Wallet, type WalletUpdateRequestBody, 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 WalletRpcRequestBody, type WalletRpcResponse, type WalletExportResponse, type WalletInitImportResponse, type WalletRawSignResponse, 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/wallets/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kB,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,wCAyDmB;AAxDjB,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,GAwDR"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to wallets
|
|
6
|
+
*/
|
|
4
7
|
export declare class Transactions extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get incoming and outgoing transactions of a wallet by wallet ID.
|
|
@@ -32,8 +35,8 @@ export declare namespace TransactionGetResponse {
|
|
|
32
35
|
}
|
|
33
36
|
namespace Transaction {
|
|
34
37
|
interface UnionMember0 {
|
|
35
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
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';
|
|
38
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
39
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
37
40
|
display_values: {
|
|
38
41
|
[key: string]: string;
|
|
39
42
|
};
|
|
@@ -46,8 +49,8 @@ export declare namespace TransactionGetResponse {
|
|
|
46
49
|
type: 'transfer_sent';
|
|
47
50
|
}
|
|
48
51
|
interface UnionMember1 {
|
|
49
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
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';
|
|
52
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
53
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
51
54
|
display_values: {
|
|
52
55
|
[key: string]: string;
|
|
53
56
|
};
|
|
@@ -62,8 +65,8 @@ export declare namespace TransactionGetResponse {
|
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
export interface TransactionGetParams {
|
|
65
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
66
|
-
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
|
|
68
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array<'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
69
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
|
|
67
70
|
cursor?: string;
|
|
68
71
|
limit?: number | null;
|
|
69
72
|
tx_hash?: 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,oBAAoB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAGtC;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,YAAY,EAAE,KAAK,CAAC,sBAAsB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K,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../../core/api-promise.js";
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to wallets
|
|
6
|
+
*/
|
|
4
7
|
export declare class Transactions extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get incoming and outgoing transactions of a wallet by wallet ID.
|
|
@@ -32,8 +35,8 @@ export declare namespace TransactionGetResponse {
|
|
|
32
35
|
}
|
|
33
36
|
namespace Transaction {
|
|
34
37
|
interface UnionMember0 {
|
|
35
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
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';
|
|
38
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
39
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
37
40
|
display_values: {
|
|
38
41
|
[key: string]: string;
|
|
39
42
|
};
|
|
@@ -46,8 +49,8 @@ export declare namespace TransactionGetResponse {
|
|
|
46
49
|
type: 'transfer_sent';
|
|
47
50
|
}
|
|
48
51
|
interface UnionMember1 {
|
|
49
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
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';
|
|
52
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
53
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'zksync_era' | 'sepolia' | 'arbitrum_sepolia' | 'base_sepolia' | 'linea_testnet' | 'optimism_sepolia' | 'polygon_amoy' | 'solana_devnet' | 'solana_testnet';
|
|
51
54
|
display_values: {
|
|
52
55
|
[key: string]: string;
|
|
53
56
|
};
|
|
@@ -62,8 +65,8 @@ export declare namespace TransactionGetResponse {
|
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
export interface TransactionGetParams {
|
|
65
|
-
asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
66
|
-
chain: 'ethereum' | 'arbitrum' | 'base' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
|
|
68
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | Array<'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
|
|
69
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
|
|
67
70
|
cursor?: string;
|
|
68
71
|
limit?: number | null;
|
|
69
72
|
tx_hash?: 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,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,oBAAoB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAGtC;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,YAAY,EAAE,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;CACzD;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,WAAW;QAC1B,KAAK,EAAE,MAAM,CAAC;QAEd,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,WAAW,CAAC,YAAY,GAAG,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC;QAEpE,oBAAoB,EAAE,MAAM,CAAC;QAE7B,MAAM,EACF,aAAa,GACb,WAAW,GACX,oBAAoB,GACpB,QAAQ,GACR,UAAU,GACV,WAAW,GACX,gBAAgB,GAChB,SAAS,CAAC;QAEd,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC,SAAS,EAAE,MAAM,CAAC;QAElB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB;IAED,UAAiB,WAAW,CAAC;QAC3B,UAAiB,YAAY;YAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;
|
|
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,cAAc,EAAE;A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,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC;IAEhF,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IAE5G,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,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"}
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Transactions = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Operations related to wallets
|
|
9
|
+
*/
|
|
7
10
|
class Transactions extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* Get incoming and outgoing transactions of a wallet by wallet ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/resources/wallets/transactions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,QAAgB,EAChB,KAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAnBD,oCAmBC"}
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/resources/wallets/transactions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,QAAgB,EAChB,KAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAnBD,oCAmBC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations related to wallets
|
|
6
|
+
*/
|
|
4
7
|
export class Transactions extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* Get incoming and outgoing transactions of a wallet by wallet ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../../src/resources/wallets/transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,QAAgB,EAChB,KAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"transactions.mjs","sourceRoot":"","sources":["../../src/resources/wallets/transactions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,GAAG,CACD,QAAgB,EAChB,KAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -82,10 +82,14 @@ export declare class Wallets extends APIResource {
|
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* ```ts
|
|
85
|
-
* const
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
85
|
+
* const walletRpcResponse = await client.wallets._rpc(
|
|
86
|
+
* 'wallet_id',
|
|
87
|
+
* {
|
|
88
|
+
* method: 'eth_sendTransaction',
|
|
89
|
+
* params: {},
|
|
90
|
+
* chain_type: 'ethereum',
|
|
91
|
+
* },
|
|
92
|
+
* );
|
|
89
93
|
* ```
|
|
90
94
|
*/
|
|
91
95
|
_rpc(walletID: string, params: WalletRpcParams, options?: RequestOptions): APIPromise<WalletRpcResponse>;
|
|
@@ -114,7 +118,9 @@ export declare class Wallets extends APIResource {
|
|
|
114
118
|
*
|
|
115
119
|
* @example
|
|
116
120
|
* ```ts
|
|
117
|
-
* const wallet = await client.wallets._update('wallet_id'
|
|
121
|
+
* const wallet = await client.wallets._update('wallet_id', {
|
|
122
|
+
* policy_ids: ['tb54eps4z44ed0jepousxi4n'],
|
|
123
|
+
* });
|
|
118
124
|
* ```
|
|
119
125
|
*/
|
|
120
126
|
_update(walletID: string, params: WalletUpdateParams, options?: RequestOptions): APIPromise<Wallet>;
|
|
@@ -147,65 +153,6 @@ export declare class Wallets extends APIResource {
|
|
|
147
153
|
get(walletID: string, options?: RequestOptions): APIPromise<Wallet>;
|
|
148
154
|
}
|
|
149
155
|
export type WalletsCursor = Cursor<Wallet>;
|
|
150
|
-
/**
|
|
151
|
-
* A wallet managed by Privy's wallet infrastructure.
|
|
152
|
-
*/
|
|
153
|
-
export interface Wallet {
|
|
154
|
-
/**
|
|
155
|
-
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
156
|
-
* wallet in the future.
|
|
157
|
-
*/
|
|
158
|
-
id: string;
|
|
159
|
-
/**
|
|
160
|
-
* Additional signers for the wallet.
|
|
161
|
-
*/
|
|
162
|
-
additional_signers: Array<Wallet.AdditionalSigner>;
|
|
163
|
-
/**
|
|
164
|
-
* Address of the wallet.
|
|
165
|
-
*/
|
|
166
|
-
address: string;
|
|
167
|
-
/**
|
|
168
|
-
* The wallet chain types.
|
|
169
|
-
*/
|
|
170
|
-
chain_type: WalletChainType;
|
|
171
|
-
/**
|
|
172
|
-
* Unix timestamp of when the wallet was created in milliseconds.
|
|
173
|
-
*/
|
|
174
|
-
created_at: number;
|
|
175
|
-
/**
|
|
176
|
-
* Unix timestamp of when the wallet was exported in milliseconds, if the wallet
|
|
177
|
-
* was exported.
|
|
178
|
-
*/
|
|
179
|
-
exported_at: number | null;
|
|
180
|
-
/**
|
|
181
|
-
* Unix timestamp of when the wallet was imported in milliseconds, if the wallet
|
|
182
|
-
* was imported.
|
|
183
|
-
*/
|
|
184
|
-
imported_at: number | null;
|
|
185
|
-
/**
|
|
186
|
-
* The key quorum ID of the owner of the wallet.
|
|
187
|
-
*/
|
|
188
|
-
owner_id: string | null;
|
|
189
|
-
/**
|
|
190
|
-
* List of policy IDs for policies that are enforced on the wallet.
|
|
191
|
-
*/
|
|
192
|
-
policy_ids: Array<string>;
|
|
193
|
-
/**
|
|
194
|
-
* The compressed, raw public key for the wallet along the chain cryptographic
|
|
195
|
-
* curve.
|
|
196
|
-
*/
|
|
197
|
-
public_key?: string;
|
|
198
|
-
}
|
|
199
|
-
export declare namespace Wallet {
|
|
200
|
-
interface AdditionalSigner {
|
|
201
|
-
signer_id: string;
|
|
202
|
-
/**
|
|
203
|
-
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
204
|
-
* this will override the base policy IDs set on the wallet.
|
|
205
|
-
*/
|
|
206
|
-
override_policy_ids?: Array<string>;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
156
|
/**
|
|
210
157
|
* The wallet chain types that support curve-based signing.
|
|
211
158
|
*/
|
|
@@ -326,6 +273,112 @@ export interface HpkeImportConfig {
|
|
|
326
273
|
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
327
274
|
*/
|
|
328
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
|
+
* Request body for updating a wallet.
|
|
337
|
+
*/
|
|
338
|
+
export interface WalletUpdateRequestBody {
|
|
339
|
+
/**
|
|
340
|
+
* Additional signers for the wallet.
|
|
341
|
+
*/
|
|
342
|
+
additional_signers?: Array<WalletUpdateRequestBody.AdditionalSigner>;
|
|
343
|
+
/**
|
|
344
|
+
* The owner of the resource. If you provide this, do not specify an owner_id as it
|
|
345
|
+
* will be generated automatically. When updating a wallet, you can set the owner
|
|
346
|
+
* to null to remove the owner.
|
|
347
|
+
*/
|
|
348
|
+
owner?: WalletUpdateRequestBody.PublicKeyOwner | WalletUpdateRequestBody.UserOwner | null;
|
|
349
|
+
owner_id?: string | null;
|
|
350
|
+
/**
|
|
351
|
+
* New policy IDs to enforce on the wallet. Currently, only one policy is supported
|
|
352
|
+
* per wallet.
|
|
353
|
+
*/
|
|
354
|
+
policy_ids?: Array<string>;
|
|
355
|
+
}
|
|
356
|
+
export declare namespace WalletUpdateRequestBody {
|
|
357
|
+
interface AdditionalSigner {
|
|
358
|
+
signer_id: string;
|
|
359
|
+
/**
|
|
360
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
361
|
+
* this will override the base policy IDs set on the wallet.
|
|
362
|
+
*/
|
|
363
|
+
override_policy_ids?: Array<string>;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* The P-256 public key of the owner of the resource, in base64-encoded DER format.
|
|
367
|
+
* If you provide this, do not specify an owner_id as it will be generated
|
|
368
|
+
* automatically.
|
|
369
|
+
*/
|
|
370
|
+
interface PublicKeyOwner {
|
|
371
|
+
public_key: string;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* The user ID of the owner of the resource. The user must already exist, and this
|
|
375
|
+
* value must start with "did:privy:". If you provide this, do not specify an
|
|
376
|
+
* owner_id as it will be generated automatically.
|
|
377
|
+
*/
|
|
378
|
+
interface UserOwner {
|
|
379
|
+
user_id: string;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
329
382
|
/**
|
|
330
383
|
* Input for a single wallet in a batch creation request.
|
|
331
384
|
*/
|
|
@@ -849,6 +902,14 @@ export declare namespace SolanaSignMessageRpcResponse {
|
|
|
849
902
|
signature: string;
|
|
850
903
|
}
|
|
851
904
|
}
|
|
905
|
+
/**
|
|
906
|
+
* Request body for wallet RPC operations, discriminated by method.
|
|
907
|
+
*/
|
|
908
|
+
export type WalletRpcRequestBody = EthereumPersonalSignRpcInput | EthereumSignTypedDataRpcInput | EthereumSignTransactionRpcInput | EthereumSignUserOperationRpcInput | EthereumSendTransactionRpcInput | EthereumSign7702AuthorizationRpcInput | EthereumSecp256k1SignRpcInput | SolanaSignMessageRpcInput | SolanaSignTransactionRpcInput | SolanaSignAndSendTransactionRpcInput;
|
|
909
|
+
/**
|
|
910
|
+
* Response body for wallet RPC operations, discriminated by method.
|
|
911
|
+
*/
|
|
912
|
+
export type WalletRpcResponse = EthereumPersonalSignRpcResponse | EthereumSignTypedDataRpcResponse | EthereumSignTransactionRpcResponse | EthereumSendTransactionRpcResponse | EthereumSignUserOperationRpcResponse | EthereumSign7702AuthorizationRpcResponse | EthereumSecp256k1SignRpcResponse | SolanaSignMessageRpcResponse | SolanaSignTransactionRpcResponse | SolanaSignAndSendTransactionRpcResponse;
|
|
852
913
|
export interface WalletExportResponse {
|
|
853
914
|
/**
|
|
854
915
|
* The encrypted private key.
|
|
@@ -884,10 +945,6 @@ export declare namespace WalletRawSignResponse {
|
|
|
884
945
|
signature: string;
|
|
885
946
|
}
|
|
886
947
|
}
|
|
887
|
-
/**
|
|
888
|
-
* Response to the EVM `personal_sign` RPC.
|
|
889
|
-
*/
|
|
890
|
-
export type WalletRpcResponse = EthereumPersonalSignRpcResponse | EthereumSignTypedDataRpcResponse | EthereumSignTransactionRpcResponse | EthereumSendTransactionRpcResponse | EthereumSignUserOperationRpcResponse | EthereumSign7702AuthorizationRpcResponse | EthereumSecp256k1SignRpcResponse | SolanaSignMessageRpcResponse | SolanaSignTransactionRpcResponse | SolanaSignAndSendTransactionRpcResponse;
|
|
891
948
|
export type WalletAuthenticateWithJwtResponse = WalletAuthenticateWithJwtResponse.WithEncryption | WalletAuthenticateWithJwtResponse.WithoutEncryption;
|
|
892
949
|
export declare namespace WalletAuthenticateWithJwtResponse {
|
|
893
950
|
interface WithEncryption {
|
|
@@ -1765,7 +1822,7 @@ export declare namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
1765
1822
|
}
|
|
1766
1823
|
}
|
|
1767
1824
|
export declare namespace Wallets {
|
|
1768
|
-
export { type
|
|
1825
|
+
export { 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 WalletUpdateRequestBody as WalletUpdateRequestBody, 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 WalletRpcRequestBody as WalletRpcRequestBody, type WalletRpcResponse as WalletRpcResponse, type WalletExportResponse as WalletExportResponse, type WalletInitImportResponse as WalletInitImportResponse, type WalletRawSignResponse as WalletRawSignResponse, 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, };
|
|
1769
1826
|
export { Transactions as Transactions, type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, };
|
|
1770
1827
|
export { Balance as Balance, type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams, };
|
|
1771
1828
|
}
|