@privy-io/api-types 0.16.0 → 0.17.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 +59 -0
- package/client.d.mts +14 -17
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -17
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/client-auth.d.mts +12 -4
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +12 -4
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +6 -0
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +6 -0
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +7 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +110 -17
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +110 -17
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +48 -8
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +48 -8
- package/resources/policies.d.ts.map +1 -1
- package/resources/transactions.d.mts +9 -2
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +9 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +33 -7
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +33 -7
- package/resources/users.d.ts.map +1 -1
- package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +257 -55
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +257 -55
- package/resources/wallets/actions.d.ts.map +1 -0
- package/resources/wallets/actions.js +9 -0
- package/resources/wallets/actions.js.map +1 -0
- package/resources/wallets/actions.mjs +5 -0
- package/resources/wallets/actions.mjs.map +1 -0
- 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/index.d.mts +2 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js +3 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs +1 -0
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +10 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +261 -28
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +261 -28
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +4 -0
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +4 -0
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +357 -56
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +357 -56
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +4 -3
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +4 -3
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.js.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/src/client.ts +84 -83
- package/src/resources/client-auth.ts +19 -3
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +42 -40
- package/src/resources/kraken-embed.ts +439 -848
- package/src/resources/policies.ts +96 -36
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +38 -6
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +318 -62
- package/src/resources/wallets/balance.ts +20 -62
- package/src/resources/wallets/index.ts +59 -0
- package/src/resources/wallets/transactions.ts +11 -10
- package/src/resources/wallets/wallets.ts +513 -66
- package/src/resources/webhooks.ts +436 -61
- package/src/resources/yield.ts +4 -11
- 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
- package/resources/wallet-actions.d.mts.map +0 -1
- package/resources/wallet-actions.d.ts.map +0 -1
- package/resources/wallet-actions.js +0 -9
- package/resources/wallet-actions.js.map +0 -1
- package/resources/wallet-actions.mjs +0 -5
- package/resources/wallet-actions.mjs.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as TransactionsAPI from '../transactions';
|
|
4
5
|
import * as WalletsAPI from './wallets';
|
|
5
6
|
import { APIPromise } from '../../core/api-promise';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -49,15 +50,10 @@ export namespace TransactionGetResponse {
|
|
|
49
50
|
|
|
50
51
|
privy_transaction_id: string;
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
| 'failed'
|
|
57
|
-
| 'replaced'
|
|
58
|
-
| 'finalized'
|
|
59
|
-
| 'provider_error'
|
|
60
|
-
| 'pending';
|
|
53
|
+
/**
|
|
54
|
+
* Status of a blockchain transaction submitted by Privy.
|
|
55
|
+
*/
|
|
56
|
+
status: TransactionsAPI.BlockchainTransactionStatus;
|
|
61
57
|
|
|
62
58
|
transaction_hash: string | null;
|
|
63
59
|
|
|
@@ -77,7 +73,10 @@ export namespace TransactionGetResponse {
|
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
export interface TransactionGetParams {
|
|
80
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Chains supported for transaction history queries.
|
|
78
|
+
*/
|
|
79
|
+
chain: WalletsAPI.TransactionChainNameInput;
|
|
81
80
|
|
|
82
81
|
/**
|
|
83
82
|
* Exactly one of `token` or `asset` is required. Cannot be used together with
|
|
@@ -95,10 +94,12 @@ export interface TransactionGetParams {
|
|
|
95
94
|
| 'eth'
|
|
96
95
|
| 'avax'
|
|
97
96
|
| 'pol'
|
|
97
|
+
| 'bnb'
|
|
98
98
|
| 'usdt'
|
|
99
99
|
| 'eurc'
|
|
100
100
|
| 'usdb'
|
|
101
101
|
| 'sol'
|
|
102
|
+
| 'trx'
|
|
102
103
|
| Array<WalletsAPI.WalletAsset>;
|
|
103
104
|
|
|
104
105
|
cursor?: string;
|