@privy-io/api-types 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/client.d.mts +19 -19
- package/client.d.mts.map +1 -1
- package/client.d.ts +19 -19
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +16 -2
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +16 -2
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +14 -14
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +14 -14
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +50 -50
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +50 -50
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +11 -11
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -11
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +2 -2
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +2 -2
- package/resources/intents.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +52 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +52 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +223 -112
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +223 -112
- package/resources/policies.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -3
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -3
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +10 -20
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +10 -20
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +199 -199
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +199 -199
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +255 -3
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +255 -3
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +10 -30
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +10 -30
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +222 -116
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +222 -116
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +6 -5
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +6 -5
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +798 -93
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +798 -93
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +163 -35
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/apps.ts +24 -1
- package/src/resources/client-auth.ts +17 -17
- package/src/resources/embedded-wallets.ts +59 -59
- package/src/resources/index.ts +92 -31
- package/src/resources/intents.ts +2 -2
- package/src/resources/kraken-embed.ts +105 -0
- package/src/resources/policies.ts +310 -181
- package/src/resources/swaps.ts +4 -4
- package/src/resources/transactions.ts +11 -38
- package/src/resources/users.ts +724 -724
- package/src/resources/wallet-actions.ts +324 -2
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +13 -2
- package/src/resources/wallets/transactions.ts +10 -88
- package/src/resources/wallets/wallets.ts +319 -136
- package/src/resources/webhooks.ts +1021 -141
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -19,7 +19,7 @@ export class Transactions extends APIResource {
|
|
|
19
19
|
* );
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
get(transactionID: string, options?: RequestOptions): APIPromise<
|
|
22
|
+
get(transactionID: string, options?: RequestOptions): APIPromise<Transaction> {
|
|
23
23
|
return this._client.get(path`/v1/transactions/${transactionID}`, options);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -217,43 +217,9 @@ export type TransactionScanningSimulationResult =
|
|
|
217
217
|
| TransactionScanningSimulationSuccessResult;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* A
|
|
220
|
+
* A transaction from a Privy wallet.
|
|
221
221
|
*/
|
|
222
|
-
export interface
|
|
223
|
-
transactions: Array<TransactionList.Transaction>;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export namespace TransactionList {
|
|
227
|
-
export interface Transaction {
|
|
228
|
-
id: string;
|
|
229
|
-
|
|
230
|
-
caip2: string;
|
|
231
|
-
|
|
232
|
-
created_at: number;
|
|
233
|
-
|
|
234
|
-
status:
|
|
235
|
-
| 'broadcasted'
|
|
236
|
-
| 'confirmed'
|
|
237
|
-
| 'execution_reverted'
|
|
238
|
-
| 'failed'
|
|
239
|
-
| 'replaced'
|
|
240
|
-
| 'finalized'
|
|
241
|
-
| 'provider_error'
|
|
242
|
-
| 'pending';
|
|
243
|
-
|
|
244
|
-
transaction_hash: string | null;
|
|
245
|
-
|
|
246
|
-
wallet_id: string;
|
|
247
|
-
|
|
248
|
-
reference_id?: string | null;
|
|
249
|
-
|
|
250
|
-
sponsored?: boolean;
|
|
251
|
-
|
|
252
|
-
user_operation_hash?: string;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export interface TransactionGetResponse {
|
|
222
|
+
export interface Transaction {
|
|
257
223
|
id: string;
|
|
258
224
|
|
|
259
225
|
caip2: string;
|
|
@@ -281,6 +247,13 @@ export interface TransactionGetResponse {
|
|
|
281
247
|
user_operation_hash?: string;
|
|
282
248
|
}
|
|
283
249
|
|
|
250
|
+
/**
|
|
251
|
+
* A list of transactions.
|
|
252
|
+
*/
|
|
253
|
+
export interface TransactionList {
|
|
254
|
+
transactions: Array<Transaction>;
|
|
255
|
+
}
|
|
256
|
+
|
|
284
257
|
export declare namespace Transactions {
|
|
285
258
|
export {
|
|
286
259
|
type TransactionScanningRequestBody as TransactionScanningRequestBody,
|
|
@@ -299,7 +272,7 @@ export declare namespace Transactions {
|
|
|
299
272
|
type TransactionScanningSimulationErrorResult as TransactionScanningSimulationErrorResult,
|
|
300
273
|
type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult,
|
|
301
274
|
type TransactionScanningSimulationResult as TransactionScanningSimulationResult,
|
|
275
|
+
type Transaction as Transaction,
|
|
302
276
|
type TransactionList as TransactionList,
|
|
303
|
-
type TransactionGetResponse as TransactionGetResponse,
|
|
304
277
|
};
|
|
305
278
|
}
|