@privy-io/api-types 0.14.0 → 0.15.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 +37 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +25 -19
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -19
- package/client.d.ts.map +1 -1
- package/client.js +8 -2
- package/client.js.map +1 -1
- package/client.mjs +8 -2
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/analytics.d.mts +1 -1
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +1 -1
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.mjs.map +1 -1
- package/resources/apps.d.mts +1 -17
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -17
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +156 -213
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +156 -213
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/cross-app.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +11 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +48 -1
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +48 -1
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +202 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +202 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/oauth.d.mts +77 -0
- package/resources/oauth.d.mts.map +1 -0
- package/resources/oauth.d.ts +77 -0
- package/resources/oauth.d.ts.map +1 -0
- package/resources/oauth.js +9 -0
- package/resources/oauth.js.map +1 -0
- package/resources/oauth.mjs +5 -0
- package/resources/oauth.mjs.map +1 -0
- package/resources/onramps.d.mts +456 -0
- package/resources/onramps.d.mts.map +1 -0
- package/resources/onramps.d.ts +456 -0
- package/resources/onramps.d.ts.map +1 -0
- package/resources/onramps.js +9 -0
- package/resources/onramps.js.map +1 -0
- package/resources/onramps.mjs +5 -0
- package/resources/onramps.mjs.map +1 -0
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +29 -3
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +29 -3
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +26 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +26 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/swaps.d.mts +43 -5
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +43 -5
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +86 -1
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +86 -1
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallet-actions.js.map +1 -1
- package/resources/wallet-actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts.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.map +1 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +153 -4
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +153 -4
- 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/wallets.d.mts.map +1 -1
- package/resources/wallets.d.ts.map +1 -1
- package/resources/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +74 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +74 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +239 -61
- package/src/resources/analytics.ts +1 -1
- package/src/resources/apps.ts +0 -24
- package/src/resources/client-auth.ts +193 -304
- package/src/resources/index.ts +111 -25
- package/src/resources/intents.ts +59 -0
- package/src/resources/kraken-embed.ts +255 -0
- package/src/resources/oauth.ts +96 -0
- package/src/resources/onramps.ts +637 -0
- package/src/resources/policies.ts +40 -0
- package/src/resources/shared.ts +37 -0
- package/src/resources/swaps.ts +51 -5
- package/src/resources/users.ts +3 -0
- package/src/resources/wallet-actions.ts +104 -0
- package/src/resources/wallets/index.ts +9 -0
- package/src/resources/wallets/wallets.ts +191 -3
- package/src/resources/webhooks.ts +90 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -436,6 +436,7 @@ export type PolicyCondition =
|
|
|
436
436
|
| EthereumTypedDataDomainCondition
|
|
437
437
|
| EthereumTypedDataMessageCondition
|
|
438
438
|
| Ethereum7702AuthorizationCondition
|
|
439
|
+
| TempoTransactionCondition
|
|
439
440
|
| SolanaProgramInstructionCondition
|
|
440
441
|
| SolanaSystemProgramInstructionCondition
|
|
441
442
|
| SolanaTokenProgramInstructionCondition
|
|
@@ -455,6 +456,7 @@ export type PolicyMethod =
|
|
|
455
456
|
| 'eth_signTransaction'
|
|
456
457
|
| 'eth_signUserOperation'
|
|
457
458
|
| 'eth_signTypedData_v4'
|
|
459
|
+
| 'personal_sign'
|
|
458
460
|
| 'eth_sign7702Authorization'
|
|
459
461
|
| 'wallet_sendCalls'
|
|
460
462
|
| 'signTransaction'
|
|
@@ -689,6 +691,42 @@ export interface SystemCondition {
|
|
|
689
691
|
value: ConditionValue;
|
|
690
692
|
}
|
|
691
693
|
|
|
694
|
+
/**
|
|
695
|
+
* A Tempo (type 118) transaction-level field. Evaluated once per transaction (not
|
|
696
|
+
* per call).
|
|
697
|
+
*/
|
|
698
|
+
export interface TempoTransactionCondition {
|
|
699
|
+
/**
|
|
700
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
701
|
+
* condition.
|
|
702
|
+
*/
|
|
703
|
+
field: TempoTransactionConditionField;
|
|
704
|
+
|
|
705
|
+
field_source: 'tempo_transaction';
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Operator to use for policy conditions.
|
|
709
|
+
*/
|
|
710
|
+
operator: ConditionOperator;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
714
|
+
* array of strings.
|
|
715
|
+
*/
|
|
716
|
+
value: ConditionValue;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Tempo (type 118) transaction-level fields that can be referenced in a policy
|
|
721
|
+
* condition.
|
|
722
|
+
*/
|
|
723
|
+
export type TempoTransactionConditionField =
|
|
724
|
+
| 'fee_token'
|
|
725
|
+
| 'fee_payer_signature'
|
|
726
|
+
| 'nonce_key'
|
|
727
|
+
| 'valid_before'
|
|
728
|
+
| 'valid_after';
|
|
729
|
+
|
|
692
730
|
/**
|
|
693
731
|
* Decoded calldata from a TRON TriggerSmartContract interaction.
|
|
694
732
|
*/
|
|
@@ -807,6 +845,8 @@ export declare namespace Policies {
|
|
|
807
845
|
type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
|
|
808
846
|
type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
|
|
809
847
|
type SystemCondition as SystemCondition,
|
|
848
|
+
type TempoTransactionCondition as TempoTransactionCondition,
|
|
849
|
+
type TempoTransactionConditionField as TempoTransactionConditionField,
|
|
810
850
|
type TronCalldataCondition as TronCalldataCondition,
|
|
811
851
|
type TronTransactionCondition as TronTransactionCondition,
|
|
812
852
|
type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
|
package/src/resources/shared.ts
CHANGED
|
@@ -4,6 +4,11 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
|
|
5
5
|
export class Shared extends APIResource {}
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Bitcoin address: bech32 (bc1), P2SH (3), or P2PKH (1).
|
|
9
|
+
*/
|
|
10
|
+
export type BitcoinAddress = string;
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
13
|
* A monetary value with its currency denomination.
|
|
9
14
|
*/
|
|
@@ -19,6 +24,22 @@ export interface CurrencyAmount {
|
|
|
19
24
|
value: string;
|
|
20
25
|
}
|
|
21
26
|
|
|
27
|
+
/**
|
|
28
|
+
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
29
|
+
*/
|
|
30
|
+
export type EvmAddress = string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* EVM address normalized to EIP-55 checksum case.
|
|
34
|
+
*/
|
|
35
|
+
export type EvmChecksumAddress = string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Hyperliquid L1 spot token identifier: 0x followed by 32–40 hex characters,
|
|
39
|
+
* normalized to lowercase.
|
|
40
|
+
*/
|
|
41
|
+
export type HyperliquidTokenAddress = string;
|
|
42
|
+
|
|
22
43
|
/**
|
|
23
44
|
* A unique identifier for a key quorum.
|
|
24
45
|
*/
|
|
@@ -58,6 +79,11 @@ export interface OwnerInputUser {
|
|
|
58
79
|
*/
|
|
59
80
|
export type P256PublicKey = string;
|
|
60
81
|
|
|
82
|
+
/**
|
|
83
|
+
* Solana address: base58-encoded public key (32 bytes).
|
|
84
|
+
*/
|
|
85
|
+
export type SolanaAddress = string;
|
|
86
|
+
|
|
61
87
|
/**
|
|
62
88
|
* A simple success response.
|
|
63
89
|
*/
|
|
@@ -65,15 +91,26 @@ export interface SuccessResponse {
|
|
|
65
91
|
success: boolean;
|
|
66
92
|
}
|
|
67
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Tron address: base58check-encoded, starting with T, 34 characters.
|
|
96
|
+
*/
|
|
97
|
+
export type TronAddress = string;
|
|
98
|
+
|
|
68
99
|
export declare namespace Shared {
|
|
69
100
|
export {
|
|
101
|
+
type BitcoinAddress as BitcoinAddress,
|
|
70
102
|
type CurrencyAmount as CurrencyAmount,
|
|
103
|
+
type EvmAddress as EvmAddress,
|
|
104
|
+
type EvmChecksumAddress as EvmChecksumAddress,
|
|
105
|
+
type HyperliquidTokenAddress as HyperliquidTokenAddress,
|
|
71
106
|
type KeyQuorumID as KeyQuorumID,
|
|
72
107
|
type OwnerIDInput as OwnerIDInput,
|
|
73
108
|
type OwnerInput as OwnerInput,
|
|
74
109
|
type OwnerInputPublicKey as OwnerInputPublicKey,
|
|
75
110
|
type OwnerInputUser as OwnerInputUser,
|
|
76
111
|
type P256PublicKey as P256PublicKey,
|
|
112
|
+
type SolanaAddress as SolanaAddress,
|
|
77
113
|
type SuccessResponse as SuccessResponse,
|
|
114
|
+
type TronAddress as TronAddress,
|
|
78
115
|
};
|
|
79
116
|
}
|
package/src/resources/swaps.ts
CHANGED
|
@@ -15,10 +15,16 @@ export interface SwapDestination {
|
|
|
15
15
|
asset_address: string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* CAIP-2 chain identifier for the destination.
|
|
19
|
-
*
|
|
18
|
+
* CAIP-2 chain identifier for the destination. Defaults to source chain if
|
|
19
|
+
* omitted. Specify a different chain for cross-chain swaps.
|
|
20
20
|
*/
|
|
21
21
|
caip2?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Address to receive the output tokens. Defaults to the swapping wallet address.
|
|
25
|
+
* Required when swapping between different chain types (e.g. EVM to Solana).
|
|
26
|
+
*/
|
|
27
|
+
destination_address?: string;
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
/**
|
|
@@ -31,10 +37,18 @@ export interface SwapQuoteDestination {
|
|
|
31
37
|
asset_address: string;
|
|
32
38
|
|
|
33
39
|
/**
|
|
34
|
-
* CAIP-2 chain identifier for the destination.
|
|
35
|
-
*
|
|
40
|
+
* CAIP-2 chain identifier for the destination. Defaults to source chain if
|
|
41
|
+
* omitted. Will result in a cross-chain swap if source and destination chains
|
|
42
|
+
* differ.
|
|
36
43
|
*/
|
|
37
44
|
caip2?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Address to receive the output tokens. Defaults to the swapping wallet address.
|
|
48
|
+
* Required when swapping between chains with different address types (e.g. EVM to
|
|
49
|
+
* Solana).
|
|
50
|
+
*/
|
|
51
|
+
destination_address?: string;
|
|
38
52
|
}
|
|
39
53
|
|
|
40
54
|
/**
|
|
@@ -61,6 +75,11 @@ export interface SwapQuoteRequestBody {
|
|
|
61
75
|
*/
|
|
62
76
|
amount_type?: WalletsAPI.AmountType;
|
|
63
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Total fees assessed on a transfer, in BPS
|
|
80
|
+
*/
|
|
81
|
+
fee_configuration?: WalletsAPI.FeeConfiguration;
|
|
82
|
+
|
|
64
83
|
/**
|
|
65
84
|
* Maximum slippage tolerance in basis points (e.g., 50 for 0.5%). If omitted,
|
|
66
85
|
* auto-slippage is used.
|
|
@@ -83,7 +102,8 @@ export interface SwapQuoteResponse {
|
|
|
83
102
|
est_output_amount: string;
|
|
84
103
|
|
|
85
104
|
/**
|
|
86
|
-
* Estimated gas cost in base units of the native token.
|
|
105
|
+
* Estimated gas cost in base units of the native token. @deprecated For
|
|
106
|
+
* cross-chain swaps, use estimated_gas instead.
|
|
87
107
|
*/
|
|
88
108
|
gas_estimate: string;
|
|
89
109
|
|
|
@@ -106,6 +126,27 @@ export interface SwapQuoteResponse {
|
|
|
106
126
|
* Token address being bought.
|
|
107
127
|
*/
|
|
108
128
|
output_token: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Destination chain CAIP-2 identifier for cross-chain swaps.
|
|
132
|
+
*/
|
|
133
|
+
destination_caip2?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Estimated fees for the swap. Only present for cross-chain swaps.
|
|
137
|
+
*/
|
|
138
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
142
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
143
|
+
*/
|
|
144
|
+
estimated_gas?: WalletsAPI.Gas;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Quote expiry as Unix timestamp (seconds). Present for cross-chain quotes.
|
|
148
|
+
*/
|
|
149
|
+
expires_at?: number;
|
|
109
150
|
}
|
|
110
151
|
|
|
111
152
|
/**
|
|
@@ -132,6 +173,11 @@ export interface SwapRequestBody {
|
|
|
132
173
|
*/
|
|
133
174
|
amount_type?: WalletsAPI.AmountType;
|
|
134
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Total fees assessed on a transfer, in BPS
|
|
178
|
+
*/
|
|
179
|
+
fee_configuration?: WalletsAPI.FeeConfiguration;
|
|
180
|
+
|
|
135
181
|
/**
|
|
136
182
|
* Maximum slippage tolerance in basis points (e.g., 50 for 0.5%).
|
|
137
183
|
*/
|
package/src/resources/users.ts
CHANGED
|
@@ -406,6 +406,9 @@ export interface LinkedAccountEmailInput {
|
|
|
406
406
|
type: 'email';
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
+
/**
|
|
410
|
+
* A linked embedded wallet account across all supported chain types.
|
|
411
|
+
*/
|
|
409
412
|
export type LinkedAccountEmbeddedWallet =
|
|
410
413
|
| LinkedAccountEthereumEmbeddedWallet
|
|
411
414
|
| LinkedAccountSolanaEmbeddedWallet
|
|
@@ -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 WalletsAPI from './wallets/wallets';
|
|
4
5
|
|
|
5
6
|
export class WalletActions extends APIResource {}
|
|
6
7
|
|
|
@@ -272,6 +273,57 @@ export interface EarnIncentiveClaimRequestBody {
|
|
|
272
273
|
chain: string;
|
|
273
274
|
}
|
|
274
275
|
|
|
276
|
+
/**
|
|
277
|
+
* A reward token with claimed and unclaimed amounts.
|
|
278
|
+
*/
|
|
279
|
+
export interface EarnIncentiveRewardEntry {
|
|
280
|
+
/**
|
|
281
|
+
* Total amount already claimed, in smallest unit.
|
|
282
|
+
*/
|
|
283
|
+
amount_claimed: string;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Amount available to claim on-chain but not yet claimed, in smallest unit.
|
|
287
|
+
*/
|
|
288
|
+
amount_unclaimed: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Address of the reward token.
|
|
292
|
+
*/
|
|
293
|
+
token_address: string;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Symbol of the reward token (e.g. "MORPHO").
|
|
297
|
+
*/
|
|
298
|
+
token_symbol: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Number of decimals for the reward token.
|
|
302
|
+
*/
|
|
303
|
+
token_decimals?: number;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Query parameters for fetching incentive rewards.
|
|
308
|
+
*/
|
|
309
|
+
export interface EarnIncentiveRewardsQuery {
|
|
310
|
+
/**
|
|
311
|
+
* Chain name to fetch rewards for (e.g. "base", "ethereum").
|
|
312
|
+
*/
|
|
313
|
+
chain: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* All incentive rewards for a wallet, with claimed and unclaimed amounts per
|
|
318
|
+
* token.
|
|
319
|
+
*/
|
|
320
|
+
export interface EarnIncentiveRewardsResponse {
|
|
321
|
+
/**
|
|
322
|
+
* Reward tokens with their claimed and unclaimed amounts.
|
|
323
|
+
*/
|
|
324
|
+
rewards: Array<EarnIncentiveRewardEntry>;
|
|
325
|
+
}
|
|
326
|
+
|
|
275
327
|
/**
|
|
276
328
|
* A specific reward token and amount associated with an earn incentive claim.
|
|
277
329
|
*/
|
|
@@ -642,11 +694,38 @@ export interface SwapActionResponse {
|
|
|
642
694
|
*/
|
|
643
695
|
wallet_id: string;
|
|
644
696
|
|
|
697
|
+
/**
|
|
698
|
+
* Destination chain CAIP-2 identifier. Present for cross-chain swaps.
|
|
699
|
+
*/
|
|
700
|
+
destination_caip2?: string;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Estimated fee breakdown from the provider quote.
|
|
704
|
+
*/
|
|
705
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem>;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
709
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
710
|
+
*/
|
|
711
|
+
estimated_gas?: WalletsAPI.Gas;
|
|
712
|
+
|
|
645
713
|
/**
|
|
646
714
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
647
715
|
*/
|
|
648
716
|
failure_reason?: FailureReason;
|
|
649
717
|
|
|
718
|
+
/**
|
|
719
|
+
* Actual fees paid for the swap. Populated after on-chain confirmation.
|
|
720
|
+
*/
|
|
721
|
+
fees?: Array<WalletsAPI.FeeLineItem>;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
725
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
726
|
+
*/
|
|
727
|
+
gas?: WalletsAPI.Gas;
|
|
728
|
+
|
|
650
729
|
/**
|
|
651
730
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
652
731
|
*/
|
|
@@ -705,11 +784,33 @@ export interface TransferActionResponse {
|
|
|
705
784
|
*/
|
|
706
785
|
destination_chain?: string;
|
|
707
786
|
|
|
787
|
+
/**
|
|
788
|
+
* Estimated fee breakdown from the provider quote.
|
|
789
|
+
*/
|
|
790
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem>;
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
794
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
795
|
+
*/
|
|
796
|
+
estimated_gas?: WalletsAPI.Gas;
|
|
797
|
+
|
|
708
798
|
/**
|
|
709
799
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
710
800
|
*/
|
|
711
801
|
failure_reason?: FailureReason;
|
|
712
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Actual fees paid for the transfer. Populated after on-chain confirmation.
|
|
805
|
+
*/
|
|
806
|
+
fees?: Array<WalletsAPI.FeeLineItem>;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
810
|
+
* human-readable decimal string, plus the gas token symbol.
|
|
811
|
+
*/
|
|
812
|
+
gas?: WalletsAPI.Gas;
|
|
813
|
+
|
|
713
814
|
/**
|
|
714
815
|
* Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
|
|
715
816
|
* cross-chain transfers until the source amount is determined.
|
|
@@ -793,6 +894,9 @@ export declare namespace WalletActions {
|
|
|
793
894
|
type EarnDepositRequestBody as EarnDepositRequestBody,
|
|
794
895
|
type EarnIncentiveClaimActionResponse as EarnIncentiveClaimActionResponse,
|
|
795
896
|
type EarnIncentiveClaimRequestBody as EarnIncentiveClaimRequestBody,
|
|
897
|
+
type EarnIncentiveRewardEntry as EarnIncentiveRewardEntry,
|
|
898
|
+
type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery,
|
|
899
|
+
type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse,
|
|
796
900
|
type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry,
|
|
797
901
|
type EarnWithdrawActionResponse as EarnWithdrawActionResponse,
|
|
798
902
|
type EarnWithdrawRequestBody as EarnWithdrawRequestBody,
|
|
@@ -18,6 +18,7 @@ export {
|
|
|
18
18
|
type CustodialWalletCreateInput,
|
|
19
19
|
type CustodialWalletProvider,
|
|
20
20
|
type CustomTokenTransferSource,
|
|
21
|
+
type DeveloperFee,
|
|
21
22
|
type EthereumPersonalSignRpcInput,
|
|
22
23
|
type EthereumPersonalSignRpcInputParams,
|
|
23
24
|
type EthereumPersonalSignRpcResponse,
|
|
@@ -61,7 +62,10 @@ export {
|
|
|
61
62
|
type ExportSeedPhraseRpcResponse,
|
|
62
63
|
type ExportType,
|
|
63
64
|
type ExtendedChainType,
|
|
65
|
+
type FeeConfiguration,
|
|
66
|
+
type FeeLineItem,
|
|
64
67
|
type FirstClassChainType,
|
|
68
|
+
type Gas,
|
|
65
69
|
type GetByWalletAddressRequestBody,
|
|
66
70
|
type HDInitInput,
|
|
67
71
|
type HDPath,
|
|
@@ -77,6 +81,7 @@ export {
|
|
|
77
81
|
type PrivateKeyExportResponse,
|
|
78
82
|
type PrivateKeyInitInput,
|
|
79
83
|
type PrivateKeySubmitInput,
|
|
84
|
+
type PrivyFee,
|
|
80
85
|
type Quantity,
|
|
81
86
|
type RawSignBytesEncoding,
|
|
82
87
|
type RawSignBytesHashFunction,
|
|
@@ -87,6 +92,7 @@ export {
|
|
|
87
92
|
type RawSignResponse,
|
|
88
93
|
type RawSignResponseData,
|
|
89
94
|
type RecipientPublicKey,
|
|
95
|
+
type RelayerFee,
|
|
90
96
|
type SeedPhraseExportInput,
|
|
91
97
|
type SeedPhraseExportResponse,
|
|
92
98
|
type SigningAlgorithm,
|
|
@@ -156,8 +162,11 @@ export {
|
|
|
156
162
|
type TokenOutput,
|
|
157
163
|
type TokenTransferDestination,
|
|
158
164
|
type TokenTransferSource,
|
|
165
|
+
type TotalFeeConfigurationBps,
|
|
159
166
|
type TransactionDetail,
|
|
160
167
|
type TransactionTokenAddressInput,
|
|
168
|
+
type TransferQuoteRequestBody,
|
|
169
|
+
type TransferQuoteResponse,
|
|
161
170
|
type TransferReceivedTransactionDetail,
|
|
162
171
|
type TransferRequestBody,
|
|
163
172
|
type TransferSentTransactionDetail,
|