@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.
Files changed (167) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/client.d.mts +35 -32
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +35 -32
  5. package/client.d.ts.map +1 -1
  6. package/client.js +22 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +22 -8
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/internal/utils/env.js +2 -2
  15. package/internal/utils/env.js.map +1 -1
  16. package/internal/utils/env.mjs +2 -2
  17. package/internal/utils/env.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/accounts.d.mts +128 -86
  20. package/resources/accounts.d.mts.map +1 -1
  21. package/resources/accounts.d.ts +128 -86
  22. package/resources/accounts.d.ts.map +1 -1
  23. package/resources/aggregations.d.mts +43 -43
  24. package/resources/aggregations.d.mts.map +1 -1
  25. package/resources/aggregations.d.ts +43 -43
  26. package/resources/aggregations.d.ts.map +1 -1
  27. package/resources/apps.d.mts +177 -129
  28. package/resources/apps.d.mts.map +1 -1
  29. package/resources/apps.d.ts +177 -129
  30. package/resources/apps.d.ts.map +1 -1
  31. package/resources/client-auth.d.mts +650 -648
  32. package/resources/client-auth.d.mts.map +1 -1
  33. package/resources/client-auth.d.ts +650 -648
  34. package/resources/client-auth.d.ts.map +1 -1
  35. package/resources/embedded-wallets.d.mts +84 -84
  36. package/resources/embedded-wallets.d.mts.map +1 -1
  37. package/resources/embedded-wallets.d.ts +84 -84
  38. package/resources/embedded-wallets.d.ts.map +1 -1
  39. package/resources/funding.d.mts +42 -42
  40. package/resources/funding.d.mts.map +1 -1
  41. package/resources/funding.d.ts +42 -42
  42. package/resources/funding.d.ts.map +1 -1
  43. package/resources/index.d.mts +19 -18
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +19 -18
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +2 -1
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/intents.d.mts +270 -266
  52. package/resources/intents.d.mts.map +1 -1
  53. package/resources/intents.d.ts +270 -266
  54. package/resources/intents.d.ts.map +1 -1
  55. package/resources/key-quorums.d.mts +20 -20
  56. package/resources/key-quorums.d.mts.map +1 -1
  57. package/resources/key-quorums.d.ts +20 -20
  58. package/resources/key-quorums.d.ts.map +1 -1
  59. package/resources/kraken-embed.d.mts +62 -19
  60. package/resources/kraken-embed.d.mts.map +1 -1
  61. package/resources/kraken-embed.d.ts +62 -19
  62. package/resources/kraken-embed.d.ts.map +1 -1
  63. package/resources/organizations.d.mts +65 -0
  64. package/resources/organizations.d.mts.map +1 -0
  65. package/resources/organizations.d.ts +65 -0
  66. package/resources/organizations.d.ts.map +1 -0
  67. package/resources/organizations.js +9 -0
  68. package/resources/organizations.js.map +1 -0
  69. package/resources/organizations.mjs +5 -0
  70. package/resources/organizations.mjs.map +1 -0
  71. package/resources/policies.d.mts +360 -231
  72. package/resources/policies.d.mts.map +1 -1
  73. package/resources/policies.d.ts +360 -231
  74. package/resources/policies.d.ts.map +1 -1
  75. package/resources/shared.d.mts +28 -28
  76. package/resources/shared.d.mts.map +1 -1
  77. package/resources/shared.d.ts +28 -28
  78. package/resources/shared.d.ts.map +1 -1
  79. package/resources/swaps.d.mts +8 -11
  80. package/resources/swaps.d.mts.map +1 -1
  81. package/resources/swaps.d.ts +8 -11
  82. package/resources/swaps.d.ts.map +1 -1
  83. package/resources/swaps.js.map +1 -1
  84. package/resources/swaps.mjs.map +1 -1
  85. package/resources/transactions.d.mts +56 -66
  86. package/resources/transactions.d.mts.map +1 -1
  87. package/resources/transactions.d.ts +56 -66
  88. package/resources/transactions.d.ts.map +1 -1
  89. package/resources/users.d.mts +457 -448
  90. package/resources/users.d.mts.map +1 -1
  91. package/resources/users.d.ts +457 -448
  92. package/resources/users.d.ts.map +1 -1
  93. package/resources/wallet-actions.d.mts +450 -41
  94. package/resources/wallet-actions.d.mts.map +1 -1
  95. package/resources/wallet-actions.d.ts +450 -41
  96. package/resources/wallet-actions.d.ts.map +1 -1
  97. package/resources/wallets/balance.d.mts +2 -1
  98. package/resources/wallets/balance.d.mts.map +1 -1
  99. package/resources/wallets/balance.d.ts +2 -1
  100. package/resources/wallets/balance.d.ts.map +1 -1
  101. package/resources/wallets/balance.js.map +1 -1
  102. package/resources/wallets/balance.mjs.map +1 -1
  103. package/resources/wallets/index.d.mts +1 -1
  104. package/resources/wallets/index.d.mts.map +1 -1
  105. package/resources/wallets/index.d.ts +1 -1
  106. package/resources/wallets/index.d.ts.map +1 -1
  107. package/resources/wallets/index.js.map +1 -1
  108. package/resources/wallets/index.mjs.map +1 -1
  109. package/resources/wallets/transactions.d.mts +16 -31
  110. package/resources/wallets/transactions.d.mts.map +1 -1
  111. package/resources/wallets/transactions.d.ts +16 -31
  112. package/resources/wallets/transactions.d.ts.map +1 -1
  113. package/resources/wallets/transactions.js +1 -1
  114. package/resources/wallets/transactions.js.map +1 -1
  115. package/resources/wallets/transactions.mjs +1 -1
  116. package/resources/wallets/transactions.mjs.map +1 -1
  117. package/resources/wallets/wallets.d.mts +1475 -1172
  118. package/resources/wallets/wallets.d.mts.map +1 -1
  119. package/resources/wallets/wallets.d.ts +1475 -1172
  120. package/resources/wallets/wallets.d.ts.map +1 -1
  121. package/resources/wallets/wallets.js +10 -6
  122. package/resources/wallets/wallets.js.map +1 -1
  123. package/resources/wallets/wallets.mjs +10 -6
  124. package/resources/wallets/wallets.mjs.map +1 -1
  125. package/resources/webhooks.d.mts +1345 -582
  126. package/resources/webhooks.d.mts.map +1 -1
  127. package/resources/webhooks.d.ts +1345 -582
  128. package/resources/webhooks.d.ts.map +1 -1
  129. package/resources/yield.d.mts +157 -157
  130. package/resources/yield.d.mts.map +1 -1
  131. package/resources/yield.d.ts +157 -157
  132. package/resources/yield.d.ts.map +1 -1
  133. package/src/client.ts +661 -455
  134. package/src/internal/types.ts +6 -8
  135. package/src/internal/utils/env.ts +2 -2
  136. package/src/resources/accounts.ts +157 -103
  137. package/src/resources/aggregations.ts +55 -55
  138. package/src/resources/apps.ts +232 -166
  139. package/src/resources/client-auth.ts +890 -890
  140. package/src/resources/embedded-wallets.ts +123 -123
  141. package/src/resources/funding.ts +66 -66
  142. package/src/resources/index.ts +521 -431
  143. package/src/resources/intents.ts +326 -322
  144. package/src/resources/key-quorums.ts +23 -23
  145. package/src/resources/kraken-embed.ts +116 -19
  146. package/src/resources/organizations.ts +82 -0
  147. package/src/resources/policies.ts +495 -339
  148. package/src/resources/shared.ts +34 -34
  149. package/src/resources/swaps.ts +9 -14
  150. package/src/resources/transactions.ts +88 -115
  151. package/src/resources/users.ts +664 -653
  152. package/src/resources/wallet-actions.ts +585 -56
  153. package/src/resources/wallets/balance.ts +2 -1
  154. package/src/resources/wallets/index.ts +158 -138
  155. package/src/resources/wallets/transactions.ts +20 -83
  156. package/src/resources/wallets/wallets.ts +1997 -1563
  157. package/src/resources/webhooks.ts +1652 -700
  158. package/src/resources/yield.ts +188 -188
  159. package/src/version.ts +1 -1
  160. package/version.d.mts +1 -1
  161. package/version.d.mts.map +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.d.ts.map +1 -1
  164. package/version.js +1 -1
  165. package/version.js.map +1 -1
  166. package/version.mjs +1 -1
  167. 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<'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
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 WalletAdditionalSignerItem,
19
- type WalletAdditionalSigner,
9
+ type AdditionalSignerItemInput,
20
10
  type Address,
21
- type WalletCustodian,
22
- type CustodialWalletProvider,
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 CustodialWallet,
26
- type HpkeEncryption,
27
- type RecipientPublicKey,
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 PrivateKeyExportInput,
30
- type PrivateKeyExportResponse,
31
- type SeedPhraseExportInput,
32
- type SeedPhraseExportResponse,
33
- type WalletImportSupportedChains,
34
- type WalletImportSupportedEntropyTypes,
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 RawSignInputParams,
85
+ type RawSignHashParams,
52
86
  type RawSignInput,
53
- type RawSignResponseData,
87
+ type RawSignInputParams,
54
88
  type RawSignResponse,
55
- type EthereumSign7702Authorization,
56
- type UnsignedEthereumTransaction,
57
- type UserOperationInput,
58
- type TypedDataDomainInputParams,
59
- type TypedDataTypeFieldInput,
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 SolanaSignTransactionRpcResponseData,
105
- type SolanaSignTransactionRpcResponse,
106
- type SolanaSignAndSendTransactionRpcResponseData,
95
+ type SolanaRpcResponse,
96
+ type SolanaSignAndSendTransactionRpcInput,
97
+ type SolanaSignAndSendTransactionRpcInputParams,
107
98
  type SolanaSignAndSendTransactionRpcResponse,
108
- type SolanaSignMessageRpcResponseData,
99
+ type SolanaSignAndSendTransactionRpcResponseData,
100
+ type SolanaSignMessageRpcInput,
101
+ type SolanaSignMessageRpcInputParams,
109
102
  type SolanaSignMessageRpcResponse,
110
- type SolanaRpcResponse,
111
- type SparkNetwork,
112
- type SparkSigningKeyshare,
113
- type SparkWalletLeaf,
114
- type SparkTransferLeaf,
115
- type SparkTransfer,
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 TokenOutput,
120
- type OutputWithPreviousTransactionData,
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 SparkTransferRpcInputParams,
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 SparkSignMessageWithIdentityKeyRpcInputParams,
140
- type SparkSignMessageWithIdentityKeyRpcInput,
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 SparkGetBalanceRpcResponse,
144
- type SparkTransferTokensRpcResponseData,
147
+ type SparkTransferTokensRpcInput,
148
+ type SparkTransferTokensRpcInputParams,
145
149
  type SparkTransferTokensRpcResponse,
146
- type SparkGetStaticDepositAddressRpcResponseData,
147
- type SparkGetStaticDepositAddressRpcResponse,
148
- type SparkGetClaimStaticDepositQuoteRpcResponseData,
149
- type SparkGetClaimStaticDepositQuoteRpcResponse,
150
- type SparkClaimStaticDepositRpcResponseData,
151
- type SparkClaimStaticDepositRpcResponse,
152
- type SparkCreateLightningInvoiceRpcResponse,
153
- type SparkPayLightningInvoiceRpcResponse,
154
- type SparkSignMessageWithIdentityKeyRpcResponseData,
155
- type SparkSignMessageWithIdentityKeyRpcResponse,
156
- type SparkRpcResponse,
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 GetByWalletAddressRequestBody,
159
- type WalletUpdateRequestBody,
160
- type WalletBatchItemInput,
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 WalletAuthenticateRequestBody,
167
- type TokenTransferSource,
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
- * { asset: 'usdc', chain: 'ethereum' },
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
- details: Transaction.UnionMember0 | Transaction.UnionMember1 | null;
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
- export interface UnionMember0 {
69
- asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
70
-
71
- chain:
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
- asset:
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<'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
159
-
160
- chain: 'ethereum' | 'arbitrum' | 'base' | 'tempo' | 'linea' | 'optimism' | 'polygon' | 'solana' | 'sepolia';
97
+ | Array<WalletsAPI.WalletAsset>;
161
98
 
162
99
  cursor?: string;
163
100