@privy-io/api-types 0.8.0 → 0.10.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 +57 -0
- package/client.d.mts +35 -32
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -32
- package/client.d.ts.map +1 -1
- package/client.js +22 -8
- package/client.js.map +1 -1
- package/client.mjs +22 -8
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.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/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +177 -129
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +177 -129
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +650 -648
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +650 -648
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +84 -84
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +84 -84
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/funding.d.mts +42 -42
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +42 -42
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +19 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +19 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +270 -266
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +270 -266
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +20 -20
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +20 -20
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +62 -19
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +62 -19
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +360 -231
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +360 -231
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +8 -11
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +8 -11
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +56 -66
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +56 -66
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +457 -448
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +457 -448
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +450 -41
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +450 -41
- 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 +16 -31
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +16 -31
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +1475 -1172
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1475 -1172
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +10 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +10 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1345 -582
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1345 -582
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +661 -455
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +232 -166
- package/src/resources/client-auth.ts +890 -890
- package/src/resources/embedded-wallets.ts +123 -123
- package/src/resources/funding.ts +66 -66
- package/src/resources/index.ts +521 -431
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +23 -23
- package/src/resources/kraken-embed.ts +116 -19
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +495 -339
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +9 -14
- package/src/resources/transactions.ts +88 -115
- package/src/resources/users.ts +664 -653
- package/src/resources/wallet-actions.ts +585 -56
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +158 -138
- package/src/resources/wallets/transactions.ts +20 -83
- package/src/resources/wallets/wallets.ts +1997 -1563
- package/src/resources/webhooks.ts +1652 -700
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -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 WalletsAPI from './wallets';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
7
|
import { path } from '../../internal/utils/path';
|
|
@@ -80,7 +81,7 @@ export interface BalanceGetParams {
|
|
|
80
81
|
| 'eurc'
|
|
81
82
|
| 'usdb'
|
|
82
83
|
| 'sol'
|
|
83
|
-
| Array<
|
|
84
|
+
| Array<WalletsAPI.WalletAsset>;
|
|
84
85
|
|
|
85
86
|
chain?:
|
|
86
87
|
| 'ethereum'
|
|
@@ -5,175 +5,195 @@ export { Transactions, type TransactionGetResponse, type TransactionGetParams }
|
|
|
5
5
|
export {
|
|
6
6
|
Wallets,
|
|
7
7
|
type WalletRevokeResponse,
|
|
8
|
-
type CurveSigningChainType,
|
|
9
|
-
type ExtendedChainType,
|
|
10
|
-
type FirstClassChainType,
|
|
11
|
-
type WalletChainType,
|
|
12
|
-
type AuthorizationKeyRole,
|
|
13
|
-
type WalletEntropyType,
|
|
14
|
-
type SolanaWalletDerivationStrategy,
|
|
15
|
-
type PolicyInput,
|
|
16
|
-
type AdditionalSignerItemInput,
|
|
17
8
|
type AdditionalSignerInput,
|
|
18
|
-
type
|
|
19
|
-
type WalletAdditionalSigner,
|
|
9
|
+
type AdditionalSignerItemInput,
|
|
20
10
|
type Address,
|
|
21
|
-
type
|
|
22
|
-
type
|
|
11
|
+
type AmountType,
|
|
12
|
+
type AuthorizationKeyDashboardResponse,
|
|
13
|
+
type AuthorizationKeyResponse,
|
|
14
|
+
type AuthorizationKeyRole,
|
|
15
|
+
type CurveSigningChainType,
|
|
16
|
+
type CurveType,
|
|
17
|
+
type CustodialWallet,
|
|
23
18
|
type CustodialWalletChainType,
|
|
24
19
|
type CustodialWalletCreateInput,
|
|
25
|
-
type
|
|
26
|
-
type
|
|
27
|
-
type
|
|
20
|
+
type CustodialWalletProvider,
|
|
21
|
+
type CustomTokenTransferSource,
|
|
22
|
+
type EthereumPersonalSignRpcInput,
|
|
23
|
+
type EthereumPersonalSignRpcInputParams,
|
|
24
|
+
type EthereumPersonalSignRpcResponse,
|
|
25
|
+
type EthereumPersonalSignRpcResponseData,
|
|
26
|
+
type EthereumRpcInput,
|
|
27
|
+
type EthereumRpcResponse,
|
|
28
|
+
type EthereumSecp256k1SignRpcInput,
|
|
29
|
+
type EthereumSecp256k1SignRpcInputParams,
|
|
30
|
+
type EthereumSecp256k1SignRpcResponse,
|
|
31
|
+
type EthereumSecp256k1SignRpcResponseData,
|
|
32
|
+
type EthereumSendCallsCall,
|
|
33
|
+
type EthereumSendCallsRpcInput,
|
|
34
|
+
type EthereumSendCallsRpcInputParams,
|
|
35
|
+
type EthereumSendCallsRpcResponse,
|
|
36
|
+
type EthereumSendCallsRpcResponseData,
|
|
37
|
+
type EthereumSendTransactionRpcInput,
|
|
38
|
+
type EthereumSendTransactionRpcInputParams,
|
|
39
|
+
type EthereumSendTransactionRpcResponse,
|
|
40
|
+
type EthereumSendTransactionRpcResponseData,
|
|
41
|
+
type EthereumSign7702Authorization,
|
|
42
|
+
type EthereumSign7702AuthorizationRpcInput,
|
|
43
|
+
type EthereumSign7702AuthorizationRpcInputParams,
|
|
44
|
+
type EthereumSign7702AuthorizationRpcResponse,
|
|
45
|
+
type EthereumSign7702AuthorizationRpcResponseData,
|
|
46
|
+
type EthereumSignTransactionRpcInput,
|
|
47
|
+
type EthereumSignTransactionRpcInputParams,
|
|
48
|
+
type EthereumSignTransactionRpcResponse,
|
|
49
|
+
type EthereumSignTransactionRpcResponseData,
|
|
50
|
+
type EthereumSignTypedDataRpcInput,
|
|
51
|
+
type EthereumSignTypedDataRpcInputParams,
|
|
52
|
+
type EthereumSignTypedDataRpcResponse,
|
|
53
|
+
type EthereumSignTypedDataRpcResponseData,
|
|
54
|
+
type EthereumSignUserOperationRpcInput,
|
|
55
|
+
type EthereumSignUserOperationRpcInputParams,
|
|
56
|
+
type EthereumSignUserOperationRpcResponse,
|
|
57
|
+
type EthereumSignUserOperationRpcResponseData,
|
|
58
|
+
type EthereumTypedDataInput,
|
|
59
|
+
type ExportPrivateKeyRpcInput,
|
|
60
|
+
type ExportPrivateKeyRpcResponse,
|
|
61
|
+
type ExportSeedPhraseRpcInput,
|
|
62
|
+
type ExportSeedPhraseRpcResponse,
|
|
28
63
|
type ExportType,
|
|
29
|
-
type
|
|
30
|
-
type
|
|
31
|
-
type
|
|
32
|
-
type
|
|
33
|
-
type
|
|
34
|
-
type
|
|
35
|
-
type WalletImportInitResponse,
|
|
64
|
+
type ExtendedChainType,
|
|
65
|
+
type FirstClassChainType,
|
|
66
|
+
type GetByWalletAddressRequestBody,
|
|
67
|
+
type HDInitInput,
|
|
68
|
+
type HDPath,
|
|
69
|
+
type HDSubmitInput,
|
|
36
70
|
type HpkeAeadAlgorithm,
|
|
71
|
+
type HpkeEncryption,
|
|
37
72
|
type HpkeImportConfig,
|
|
38
|
-
type CurveType,
|
|
39
|
-
type HDPath,
|
|
40
|
-
type SigningAlgorithm,
|
|
41
73
|
type Hex,
|
|
74
|
+
type NamedTokenTransferSource,
|
|
75
|
+
type OutputWithPreviousTransactionData,
|
|
76
|
+
type PolicyInput,
|
|
77
|
+
type PrivateKeyExportInput,
|
|
78
|
+
type PrivateKeyExportResponse,
|
|
79
|
+
type PrivateKeyInitInput,
|
|
80
|
+
type PrivateKeySubmitInput,
|
|
42
81
|
type Quantity,
|
|
43
|
-
type ExportPrivateKeyRpcInput,
|
|
44
|
-
type ExportPrivateKeyRpcResponse,
|
|
45
|
-
type ExportSeedPhraseRpcInput,
|
|
46
|
-
type ExportSeedPhraseRpcResponse,
|
|
47
|
-
type RawSignHashParams,
|
|
48
82
|
type RawSignBytesEncoding,
|
|
49
83
|
type RawSignBytesHashFunction,
|
|
50
84
|
type RawSignBytesParams,
|
|
51
|
-
type
|
|
85
|
+
type RawSignHashParams,
|
|
52
86
|
type RawSignInput,
|
|
53
|
-
type
|
|
87
|
+
type RawSignInputParams,
|
|
54
88
|
type RawSignResponse,
|
|
55
|
-
type
|
|
56
|
-
type
|
|
57
|
-
type
|
|
58
|
-
type
|
|
59
|
-
type
|
|
60
|
-
type TypedDataTypesInputParams,
|
|
61
|
-
type EthereumPersonalSignRpcInputParams,
|
|
62
|
-
type EthereumPersonalSignRpcInput,
|
|
63
|
-
type EthereumSignTransactionRpcInputParams,
|
|
64
|
-
type EthereumSignTransactionRpcInput,
|
|
65
|
-
type EthereumSendTransactionRpcInputParams,
|
|
66
|
-
type EthereumSendTransactionRpcInput,
|
|
67
|
-
type EthereumTypedDataInput,
|
|
68
|
-
type EthereumSignTypedDataRpcInputParams,
|
|
69
|
-
type EthereumSignTypedDataRpcInput,
|
|
70
|
-
type EthereumSecp256k1SignRpcInputParams,
|
|
71
|
-
type EthereumSecp256k1SignRpcInput,
|
|
72
|
-
type EthereumSign7702AuthorizationRpcInputParams,
|
|
73
|
-
type EthereumSign7702AuthorizationRpcInput,
|
|
74
|
-
type EthereumSignUserOperationRpcInputParams,
|
|
75
|
-
type EthereumSignUserOperationRpcInput,
|
|
76
|
-
type EthereumSendCallsCall,
|
|
77
|
-
type EthereumSendCallsRpcInputParams,
|
|
78
|
-
type EthereumSendCallsRpcInput,
|
|
79
|
-
type EthereumRpcInput,
|
|
80
|
-
type EthereumPersonalSignRpcResponseData,
|
|
81
|
-
type EthereumPersonalSignRpcResponse,
|
|
82
|
-
type EthereumSignTransactionRpcResponseData,
|
|
83
|
-
type EthereumSignTransactionRpcResponse,
|
|
84
|
-
type EthereumSendTransactionRpcResponseData,
|
|
85
|
-
type EthereumSendTransactionRpcResponse,
|
|
86
|
-
type EthereumSignTypedDataRpcResponseData,
|
|
87
|
-
type EthereumSignTypedDataRpcResponse,
|
|
88
|
-
type EthereumSecp256k1SignRpcResponseData,
|
|
89
|
-
type EthereumSecp256k1SignRpcResponse,
|
|
90
|
-
type EthereumSign7702AuthorizationRpcResponseData,
|
|
91
|
-
type EthereumSign7702AuthorizationRpcResponse,
|
|
92
|
-
type EthereumSignUserOperationRpcResponseData,
|
|
93
|
-
type EthereumSignUserOperationRpcResponse,
|
|
94
|
-
type EthereumSendCallsRpcResponseData,
|
|
95
|
-
type EthereumSendCallsRpcResponse,
|
|
96
|
-
type EthereumRpcResponse,
|
|
97
|
-
type SolanaSignTransactionRpcInputParams,
|
|
98
|
-
type SolanaSignTransactionRpcInput,
|
|
99
|
-
type SolanaSignAndSendTransactionRpcInputParams,
|
|
100
|
-
type SolanaSignAndSendTransactionRpcInput,
|
|
101
|
-
type SolanaSignMessageRpcInputParams,
|
|
102
|
-
type SolanaSignMessageRpcInput,
|
|
89
|
+
type RawSignResponseData,
|
|
90
|
+
type RecipientPublicKey,
|
|
91
|
+
type SeedPhraseExportInput,
|
|
92
|
+
type SeedPhraseExportResponse,
|
|
93
|
+
type SigningAlgorithm,
|
|
103
94
|
type SolanaRpcInput,
|
|
104
|
-
type
|
|
105
|
-
type
|
|
106
|
-
type
|
|
95
|
+
type SolanaRpcResponse,
|
|
96
|
+
type SolanaSignAndSendTransactionRpcInput,
|
|
97
|
+
type SolanaSignAndSendTransactionRpcInputParams,
|
|
107
98
|
type SolanaSignAndSendTransactionRpcResponse,
|
|
108
|
-
type
|
|
99
|
+
type SolanaSignAndSendTransactionRpcResponseData,
|
|
100
|
+
type SolanaSignMessageRpcInput,
|
|
101
|
+
type SolanaSignMessageRpcInputParams,
|
|
109
102
|
type SolanaSignMessageRpcResponse,
|
|
110
|
-
type
|
|
111
|
-
type
|
|
112
|
-
type
|
|
113
|
-
type
|
|
114
|
-
type
|
|
115
|
-
type
|
|
116
|
-
type SparkUserTokenMetadata,
|
|
117
|
-
type SparkTokenBalance,
|
|
103
|
+
type SolanaSignMessageRpcResponseData,
|
|
104
|
+
type SolanaSignTransactionRpcInput,
|
|
105
|
+
type SolanaSignTransactionRpcInputParams,
|
|
106
|
+
type SolanaSignTransactionRpcResponse,
|
|
107
|
+
type SolanaSignTransactionRpcResponseData,
|
|
108
|
+
type SolanaWalletDerivationStrategy,
|
|
118
109
|
type SparkBalance,
|
|
119
|
-
type
|
|
120
|
-
type
|
|
110
|
+
type SparkClaimStaticDepositRpcInput,
|
|
111
|
+
type SparkClaimStaticDepositRpcInputParams,
|
|
112
|
+
type SparkClaimStaticDepositRpcResponse,
|
|
113
|
+
type SparkClaimStaticDepositRpcResponseData,
|
|
114
|
+
type SparkCreateLightningInvoiceRpcInput,
|
|
115
|
+
type SparkCreateLightningInvoiceRpcInputParams,
|
|
116
|
+
type SparkCreateLightningInvoiceRpcResponse,
|
|
117
|
+
type SparkGetBalanceRpcInput,
|
|
118
|
+
type SparkGetBalanceRpcResponse,
|
|
119
|
+
type SparkGetClaimStaticDepositQuoteRpcInput,
|
|
120
|
+
type SparkGetClaimStaticDepositQuoteRpcInputParams,
|
|
121
|
+
type SparkGetClaimStaticDepositQuoteRpcResponse,
|
|
122
|
+
type SparkGetClaimStaticDepositQuoteRpcResponseData,
|
|
123
|
+
type SparkGetStaticDepositAddressRpcInput,
|
|
124
|
+
type SparkGetStaticDepositAddressRpcResponse,
|
|
125
|
+
type SparkGetStaticDepositAddressRpcResponseData,
|
|
121
126
|
type SparkLightningFee,
|
|
122
127
|
type SparkLightningReceiveRequest,
|
|
123
128
|
type SparkLightningSendRequest,
|
|
124
|
-
type
|
|
125
|
-
type SparkTransferRpcInput,
|
|
126
|
-
type SparkGetBalanceRpcInput,
|
|
129
|
+
type SparkNetwork,
|
|
127
130
|
type SparkOutputSelectionStrategy,
|
|
128
|
-
type SparkTransferTokensRpcInputParams,
|
|
129
|
-
type SparkTransferTokensRpcInput,
|
|
130
|
-
type SparkGetStaticDepositAddressRpcInput,
|
|
131
|
-
type SparkGetClaimStaticDepositQuoteRpcInputParams,
|
|
132
|
-
type SparkGetClaimStaticDepositQuoteRpcInput,
|
|
133
|
-
type SparkClaimStaticDepositRpcInputParams,
|
|
134
|
-
type SparkClaimStaticDepositRpcInput,
|
|
135
|
-
type SparkCreateLightningInvoiceRpcInputParams,
|
|
136
|
-
type SparkCreateLightningInvoiceRpcInput,
|
|
137
|
-
type SparkPayLightningInvoiceRpcInputParams,
|
|
138
131
|
type SparkPayLightningInvoiceRpcInput,
|
|
139
|
-
type
|
|
140
|
-
type
|
|
132
|
+
type SparkPayLightningInvoiceRpcInputParams,
|
|
133
|
+
type SparkPayLightningInvoiceRpcResponse,
|
|
141
134
|
type SparkRpcInput,
|
|
135
|
+
type SparkRpcResponse,
|
|
136
|
+
type SparkSignMessageWithIdentityKeyRpcInput,
|
|
137
|
+
type SparkSignMessageWithIdentityKeyRpcInputParams,
|
|
138
|
+
type SparkSignMessageWithIdentityKeyRpcResponse,
|
|
139
|
+
type SparkSignMessageWithIdentityKeyRpcResponseData,
|
|
140
|
+
type SparkSigningKeyshare,
|
|
141
|
+
type SparkTokenBalance,
|
|
142
|
+
type SparkTransfer,
|
|
143
|
+
type SparkTransferLeaf,
|
|
144
|
+
type SparkTransferRpcInput,
|
|
145
|
+
type SparkTransferRpcInputParams,
|
|
142
146
|
type SparkTransferRpcResponse,
|
|
143
|
-
type
|
|
144
|
-
type
|
|
147
|
+
type SparkTransferTokensRpcInput,
|
|
148
|
+
type SparkTransferTokensRpcInputParams,
|
|
145
149
|
type SparkTransferTokensRpcResponse,
|
|
146
|
-
type
|
|
147
|
-
type
|
|
148
|
-
type
|
|
149
|
-
type
|
|
150
|
-
type
|
|
151
|
-
type
|
|
152
|
-
type
|
|
153
|
-
type
|
|
154
|
-
type
|
|
155
|
-
type
|
|
156
|
-
type
|
|
150
|
+
type SparkTransferTokensRpcResponseData,
|
|
151
|
+
type SparkUserTokenMetadata,
|
|
152
|
+
type SparkWalletLeaf,
|
|
153
|
+
type SuiCommandName,
|
|
154
|
+
type TempoAaAuthorization,
|
|
155
|
+
type TempoCall,
|
|
156
|
+
type TempoFeePayerSignature,
|
|
157
|
+
type TokenOutput,
|
|
158
|
+
type TokenTransferDestination,
|
|
159
|
+
type TokenTransferSource,
|
|
160
|
+
type TransactionDetail,
|
|
161
|
+
type TransactionTokenAddressInput,
|
|
162
|
+
type TransferReceivedTransactionDetail,
|
|
163
|
+
type TransferRequestBody,
|
|
164
|
+
type TransferSentTransactionDetail,
|
|
165
|
+
type TypedDataDomainInputParams,
|
|
166
|
+
type TypedDataTypeFieldInput,
|
|
167
|
+
type TypedDataTypesInputParams,
|
|
168
|
+
type UnsignedEthereumTransaction,
|
|
169
|
+
type UnsignedStandardEthereumTransaction,
|
|
170
|
+
type UnsignedTempoTransaction,
|
|
171
|
+
type UserOperationInput,
|
|
157
172
|
type Wallet,
|
|
158
|
-
type
|
|
159
|
-
type
|
|
160
|
-
type
|
|
173
|
+
type WalletAdditionalSigner,
|
|
174
|
+
type WalletAdditionalSignerItem,
|
|
175
|
+
type WalletAPIRegisterAuthorizationKeyInput,
|
|
176
|
+
type WalletAPIRevokeAuthorizationKeyInput,
|
|
177
|
+
type WalletAsset,
|
|
178
|
+
type WalletAuthenticateRequestBody,
|
|
179
|
+
type WalletAuthorizationHeaders,
|
|
161
180
|
type WalletBatchCreateInput,
|
|
162
|
-
type WalletBatchCreateResult,
|
|
163
181
|
type WalletBatchCreateResponse,
|
|
182
|
+
type WalletBatchCreateResult,
|
|
183
|
+
type WalletBatchItemInput,
|
|
184
|
+
type WalletChainType,
|
|
185
|
+
type WalletCustodian,
|
|
186
|
+
type WalletEntropyType,
|
|
187
|
+
type WalletEthereumAsset,
|
|
188
|
+
type WalletExportRequestBody,
|
|
189
|
+
type WalletExportResponseBody,
|
|
190
|
+
type WalletImportInitResponse,
|
|
191
|
+
type WalletImportSupportedChains,
|
|
192
|
+
type WalletImportSupportedEntropyTypes,
|
|
164
193
|
type WalletRpcRequestBody,
|
|
165
194
|
type WalletRpcResponse,
|
|
166
|
-
type
|
|
167
|
-
type
|
|
168
|
-
type TokenTransferDestination,
|
|
169
|
-
type CreateTokenTransferRequest,
|
|
170
|
-
type SuiCommandName,
|
|
171
|
-
type WalletAPIRegisterAuthorizationKeyInput,
|
|
172
|
-
type WalletAPIRevokeAuthorizationKeyInput,
|
|
173
|
-
type AuthorizationKeyDashboardResponse,
|
|
174
|
-
type AuthorizationKeyResponse,
|
|
175
|
-
type WalletAuthorizationHeaders,
|
|
176
|
-
type WalletExportResponse,
|
|
195
|
+
type WalletSolanaAsset,
|
|
196
|
+
type WalletUpdateRequestBody,
|
|
177
197
|
type WalletInitImportResponse,
|
|
178
198
|
type WalletAuthenticateWithJwtResponse,
|
|
179
199
|
type WalletCreateWalletsWithRecoveryResponse,
|
|
@@ -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';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
7
|
import { path } from '../../internal/utils/path';
|
|
@@ -16,7 +17,7 @@ export class Transactions extends APIResource {
|
|
|
16
17
|
* ```ts
|
|
17
18
|
* const transaction = await client.wallets.transactions.get(
|
|
18
19
|
* 'wallet_id',
|
|
19
|
-
* {
|
|
20
|
+
* { chain: 'ethereum' },
|
|
20
21
|
* );
|
|
21
22
|
* ```
|
|
22
23
|
*/
|
|
@@ -41,7 +42,10 @@ export namespace TransactionGetResponse {
|
|
|
41
42
|
|
|
42
43
|
created_at: number;
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Details of a wallet transaction, varying by transaction type.
|
|
47
|
+
*/
|
|
48
|
+
details: Transaction.Details;
|
|
45
49
|
|
|
46
50
|
privy_transaction_id: string;
|
|
47
51
|
|
|
@@ -65,88 +69,23 @@ export namespace TransactionGetResponse {
|
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
export namespace Transaction {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
| 'ethereum'
|
|
73
|
-
| 'arbitrum'
|
|
74
|
-
| 'base'
|
|
75
|
-
| 'tempo'
|
|
76
|
-
| 'linea'
|
|
77
|
-
| 'optimism'
|
|
78
|
-
| 'polygon'
|
|
79
|
-
| 'solana'
|
|
80
|
-
| 'zksync_era'
|
|
81
|
-
| 'sepolia'
|
|
82
|
-
| 'arbitrum_sepolia'
|
|
83
|
-
| 'base_sepolia'
|
|
84
|
-
| 'linea_testnet'
|
|
85
|
-
| 'optimism_sepolia'
|
|
86
|
-
| 'polygon_amoy'
|
|
87
|
-
| 'solana_devnet'
|
|
88
|
-
| 'solana_testnet';
|
|
89
|
-
|
|
90
|
-
display_values: { [key: string]: string };
|
|
91
|
-
|
|
92
|
-
raw_value: string;
|
|
93
|
-
|
|
94
|
-
raw_value_decimals: number;
|
|
95
|
-
|
|
96
|
-
recipient: string;
|
|
97
|
-
|
|
98
|
-
recipient_privy_user_id: string | null;
|
|
99
|
-
|
|
100
|
-
sender: string;
|
|
101
|
-
|
|
102
|
-
sender_privy_user_id: string | null;
|
|
103
|
-
|
|
104
|
-
type: 'transfer_sent';
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface UnionMember1 {
|
|
108
|
-
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
109
|
-
|
|
110
|
-
chain:
|
|
111
|
-
| 'ethereum'
|
|
112
|
-
| 'arbitrum'
|
|
113
|
-
| 'base'
|
|
114
|
-
| 'tempo'
|
|
115
|
-
| 'linea'
|
|
116
|
-
| 'optimism'
|
|
117
|
-
| 'polygon'
|
|
118
|
-
| 'solana'
|
|
119
|
-
| 'zksync_era'
|
|
120
|
-
| 'sepolia'
|
|
121
|
-
| 'arbitrum_sepolia'
|
|
122
|
-
| 'base_sepolia'
|
|
123
|
-
| 'linea_testnet'
|
|
124
|
-
| 'optimism_sepolia'
|
|
125
|
-
| 'polygon_amoy'
|
|
126
|
-
| 'solana_devnet'
|
|
127
|
-
| 'solana_testnet';
|
|
128
|
-
|
|
129
|
-
display_values: { [key: string]: string };
|
|
130
|
-
|
|
131
|
-
raw_value: string;
|
|
132
|
-
|
|
133
|
-
raw_value_decimals: number;
|
|
134
|
-
|
|
135
|
-
recipient: string;
|
|
136
|
-
|
|
137
|
-
recipient_privy_user_id: string | null;
|
|
138
|
-
|
|
139
|
-
sender: string;
|
|
140
|
-
|
|
141
|
-
sender_privy_user_id: string | null;
|
|
142
|
-
|
|
143
|
-
type: 'transfer_received';
|
|
144
|
-
}
|
|
72
|
+
/**
|
|
73
|
+
* Details of a wallet transaction, varying by transaction type.
|
|
74
|
+
*/
|
|
75
|
+
export type Details = WalletsAPI.TransactionDetail & {};
|
|
145
76
|
}
|
|
146
77
|
}
|
|
147
78
|
|
|
148
79
|
export interface TransactionGetParams {
|
|
149
|
-
|
|
80
|
+
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Token contract address (EVM: 0x-prefixed hex) or mint address (Solana: base58),
|
|
84
|
+
* used to filter wallet transactions.
|
|
85
|
+
*/
|
|
86
|
+
token?: WalletsAPI.TransactionTokenAddressInput | Array<WalletsAPI.TransactionTokenAddressInput>;
|
|
87
|
+
|
|
88
|
+
asset?:
|
|
150
89
|
| 'usdc'
|
|
151
90
|
| 'usdc.e'
|
|
152
91
|
| 'eth'
|
|
@@ -155,9 +94,7 @@ export interface TransactionGetParams {
|
|
|
155
94
|
| 'eurc'
|
|
156
95
|
| 'usdb'
|
|
157
96
|
| 'sol'
|
|
158
|
-
| Array<
|
|
159
|
-
|
|
160
|
-
chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
|
|
97
|
+
| Array<WalletsAPI.WalletAsset>;
|
|
161
98
|
|
|
162
99
|
cursor?: string;
|
|
163
100
|
|