@privy-io/node 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 (158) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/client.d.mts +23 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +23 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +30 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +30 -3
  9. package/client.mjs.map +1 -1
  10. package/index.d.mts +1 -1
  11. package/index.d.mts.map +1 -1
  12. package/index.d.ts +1 -1
  13. package/index.d.ts.map +1 -1
  14. package/internal/parse.d.mts.map +1 -1
  15. package/internal/parse.d.ts.map +1 -1
  16. package/internal/parse.js +5 -0
  17. package/internal/parse.js.map +1 -1
  18. package/internal/parse.mjs +5 -0
  19. package/internal/parse.mjs.map +1 -1
  20. package/package.json +21 -1
  21. package/public-api/services/ethereum.d.mts +4 -1
  22. package/public-api/services/ethereum.d.mts.map +1 -1
  23. package/public-api/services/ethereum.d.ts +4 -1
  24. package/public-api/services/ethereum.d.ts.map +1 -1
  25. package/public-api/services/ethereum.js +8 -0
  26. package/public-api/services/ethereum.js.map +1 -1
  27. package/public-api/services/ethereum.mjs +8 -0
  28. package/public-api/services/ethereum.mjs.map +1 -1
  29. package/public-api/services/webhooks.d.mts +3 -1
  30. package/public-api/services/webhooks.d.mts.map +1 -1
  31. package/public-api/services/webhooks.d.ts +3 -1
  32. package/public-api/services/webhooks.d.ts.map +1 -1
  33. package/public-api/services/webhooks.js +1 -0
  34. package/public-api/services/webhooks.js.map +1 -1
  35. package/public-api/services/webhooks.mjs +1 -0
  36. package/public-api/services/webhooks.mjs.map +1 -1
  37. package/resources/accounts.d.mts +72 -0
  38. package/resources/accounts.d.mts.map +1 -0
  39. package/resources/accounts.d.ts +72 -0
  40. package/resources/accounts.d.ts.map +1 -0
  41. package/resources/accounts.js +9 -0
  42. package/resources/accounts.js.map +1 -0
  43. package/resources/accounts.mjs +5 -0
  44. package/resources/accounts.mjs.map +1 -0
  45. package/resources/aggregations.d.mts +213 -2
  46. package/resources/aggregations.d.mts.map +1 -1
  47. package/resources/aggregations.d.ts +213 -2
  48. package/resources/aggregations.d.ts.map +1 -1
  49. package/resources/client-auth.d.mts +182 -2
  50. package/resources/client-auth.d.mts.map +1 -1
  51. package/resources/client-auth.d.ts +182 -2
  52. package/resources/client-auth.d.ts.map +1 -1
  53. package/resources/index.d.mts +8 -4
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +8 -4
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +9 -1
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +4 -0
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/intents.d.mts +104 -0
  62. package/resources/intents.d.mts.map +1 -0
  63. package/resources/intents.d.ts +104 -0
  64. package/resources/intents.d.ts.map +1 -0
  65. package/resources/intents.js +9 -0
  66. package/resources/intents.js.map +1 -0
  67. package/resources/intents.mjs +5 -0
  68. package/resources/intents.mjs.map +1 -0
  69. package/resources/key-quorums.d.mts +14 -0
  70. package/resources/key-quorums.d.mts.map +1 -1
  71. package/resources/key-quorums.d.ts +14 -0
  72. package/resources/key-quorums.d.ts.map +1 -1
  73. package/resources/policies.d.mts +10 -12
  74. package/resources/policies.d.mts.map +1 -1
  75. package/resources/policies.d.ts +10 -12
  76. package/resources/policies.d.ts.map +1 -1
  77. package/resources/users.d.mts +16 -6
  78. package/resources/users.d.mts.map +1 -1
  79. package/resources/users.d.ts +16 -6
  80. package/resources/users.d.ts.map +1 -1
  81. package/resources/wallets/balance.d.mts +10 -5
  82. package/resources/wallets/balance.d.mts.map +1 -1
  83. package/resources/wallets/balance.d.ts +10 -5
  84. package/resources/wallets/balance.d.ts.map +1 -1
  85. package/resources/wallets/balance.js +1 -2
  86. package/resources/wallets/balance.js.map +1 -1
  87. package/resources/wallets/balance.mjs +1 -2
  88. package/resources/wallets/balance.mjs.map +1 -1
  89. package/resources/wallets/index.d.mts +1 -1
  90. package/resources/wallets/index.d.mts.map +1 -1
  91. package/resources/wallets/index.d.ts +1 -1
  92. package/resources/wallets/index.d.ts.map +1 -1
  93. package/resources/wallets/index.js.map +1 -1
  94. package/resources/wallets/index.mjs.map +1 -1
  95. package/resources/wallets/transactions.d.mts +2 -2
  96. package/resources/wallets/transactions.d.mts.map +1 -1
  97. package/resources/wallets/transactions.d.ts +2 -2
  98. package/resources/wallets/transactions.d.ts.map +1 -1
  99. package/resources/wallets/wallets.d.mts +141 -14
  100. package/resources/wallets/wallets.d.mts.map +1 -1
  101. package/resources/wallets/wallets.d.ts +141 -14
  102. package/resources/wallets/wallets.d.ts.map +1 -1
  103. package/resources/wallets/wallets.js.map +1 -1
  104. package/resources/wallets/wallets.mjs.map +1 -1
  105. package/resources/webhooks.d.mts +977 -0
  106. package/resources/webhooks.d.mts.map +1 -0
  107. package/resources/webhooks.d.ts +977 -0
  108. package/resources/webhooks.d.ts.map +1 -0
  109. package/resources/webhooks.js +9 -0
  110. package/resources/webhooks.js.map +1 -0
  111. package/resources/webhooks.mjs +5 -0
  112. package/resources/webhooks.mjs.map +1 -0
  113. package/resources/yield.d.mts +311 -0
  114. package/resources/yield.d.mts.map +1 -0
  115. package/resources/yield.d.ts +311 -0
  116. package/resources/yield.d.ts.map +1 -0
  117. package/resources/yield.js +9 -0
  118. package/resources/yield.js.map +1 -0
  119. package/resources/yield.mjs +5 -0
  120. package/resources/yield.mjs.map +1 -0
  121. package/src/client.ts +229 -9
  122. package/src/index.ts +1 -1
  123. package/src/internal/parse.ts +6 -0
  124. package/src/public-api/services/ethereum.ts +16 -0
  125. package/src/public-api/services/webhooks.ts +49 -2
  126. package/src/resources/accounts.ts +90 -0
  127. package/src/resources/aggregations.ts +361 -5
  128. package/src/resources/client-auth.ts +310 -1
  129. package/src/resources/index.ts +95 -3
  130. package/src/resources/intents.ts +138 -0
  131. package/src/resources/key-quorums.ts +17 -0
  132. package/src/resources/policies.ts +10 -12
  133. package/src/resources/users.ts +52 -35
  134. package/src/resources/wallets/balance.ts +15 -5
  135. package/src/resources/wallets/index.ts +6 -2
  136. package/src/resources/wallets/transactions.ts +2 -2
  137. package/src/resources/wallets/wallets.ts +185 -31
  138. package/src/resources/webhooks.ts +1347 -0
  139. package/src/resources/yield.ts +389 -0
  140. package/src/types/x402.d.ts +18 -0
  141. package/src/version.ts +1 -1
  142. package/src/x402.ts +87 -0
  143. package/version.d.mts +1 -1
  144. package/version.d.mts.map +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.d.ts.map +1 -1
  147. package/version.js +1 -1
  148. package/version.js.map +1 -1
  149. package/version.mjs +1 -1
  150. package/version.mjs.map +1 -1
  151. package/x402.d.mts +54 -0
  152. package/x402.d.mts.map +1 -0
  153. package/x402.d.ts +54 -0
  154. package/x402.d.ts.map +1 -0
  155. package/x402.js +75 -0
  156. package/x402.js.map +1 -0
  157. package/x402.mjs +72 -0
  158. package/x402.mjs.map +1 -0
@@ -1,5 +1,12 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Accounts,
5
+ type AccountWallet,
6
+ type AccountResponse,
7
+ type AccountWalletConfigurationItem,
8
+ type CreateAccountInput,
9
+ } from './accounts';
3
10
  export {
4
11
  Aggregations,
5
12
  type AggregationMethod,
@@ -7,6 +14,7 @@ export {
7
14
  type AggregationWindow,
8
15
  type AggregationGroupBy,
9
16
  type Aggregation,
17
+ type AggregationInput,
10
18
  } from './aggregations';
11
19
  export { Analytics, type AnalyticsEventInput } from './analytics';
12
20
  export { Apps, type AppResponse } from './apps';
@@ -16,7 +24,32 @@ export {
16
24
  type PrivyOAuthProviderID,
17
25
  type CustomOAuthProviderID,
18
26
  type OAuthProviderID,
27
+ type BridgeOnrampProvider,
28
+ type OnrampProvider,
29
+ type GetFiatCustomerRequestInput,
30
+ type CreateOrUpdateFiatCustomerRequestInput,
31
+ type BridgeFiatRejectionReason,
32
+ type BridgeFiatCustomerResponse,
33
+ type BridgeSandboxFiatCustomerResponse,
34
+ type FiatCustomerResponse,
35
+ type BridgeDestinationAsset,
36
+ type BridgeSourceAsset,
37
+ type BridgeFiatVirtualAccountSource,
38
+ type BridgeFiatVirtualAccountDestination,
39
+ type BridgeFiatVirtualAccountRequest,
40
+ type BridgeSandboxFiatVirtualAccountRequest,
41
+ type FiatVirtualAccountRequest,
42
+ type BridgeUsdFiatVirtualAccountDepositInstructions,
43
+ type BridgeEurFiatVirtualAccountDepositInstructions,
44
+ type BridgeMxnFiatVirtualAccountDepositInstructions,
45
+ type BridgeBrlFiatVirtualAccountDepositInstructions,
46
+ type BridgeGbpFiatVirtualAccountDepositInstructions,
47
+ type BridgeFiatVirtualAccountDepositInstructions,
48
+ type BridgeFiatVirtualAccountResponse,
49
+ type BridgeSandboxFiatVirtualAccountResponse,
50
+ type FiatVirtualAccountResponse,
19
51
  } from './client-auth';
52
+ export { Intents, type IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember } from './intents';
20
53
  export {
21
54
  KeyQuorums,
22
55
  type KeyQuorum,
@@ -50,7 +83,6 @@ export { Transactions, type TransactionGetResponse } from './transactions';
50
83
  export {
51
84
  Users,
52
85
  type AuthenticatedUser,
53
- type LinkedAccount,
54
86
  type User,
55
87
  type LinkedAccountEmail,
56
88
  type LinkedAccountPhone,
@@ -87,6 +119,7 @@ export {
87
119
  type CrossAppSmartWallet,
88
120
  type LinkedAccountCrossApp,
89
121
  type LinkedAccountAuthorizationKey,
122
+ type LinkedAccount,
90
123
  type LinkedAccountType,
91
124
  type CustomMetadata,
92
125
  type LinkedAccountWalletInput,
@@ -106,6 +139,7 @@ export {
106
139
  type LinkedAccountFarcasterInput,
107
140
  type LinkedAccountTelegramInput,
108
141
  type LinkedAccountCustomJwtInput,
142
+ type LinkedAccountPasskeyInput,
109
143
  type LinkedAccountInput,
110
144
  type UserBatchCreateInput,
111
145
  type SMSMfaMethod,
@@ -136,11 +170,11 @@ export {
136
170
  } from './users';
137
171
  export {
138
172
  Wallets,
173
+ type Wallet,
139
174
  type CurveSigningChainType,
175
+ type ExtendedChainType,
140
176
  type FirstClassChainType,
141
- type Wallet,
142
177
  type WalletChainType,
143
- type ExtendedChainType,
144
178
  type WalletCustodian,
145
179
  type CustodialWalletProvider,
146
180
  type CustodialWalletChainType,
@@ -148,6 +182,10 @@ export {
148
182
  type CustodialWallet,
149
183
  type HpkeImportConfig,
150
184
  type SuiCommandName,
185
+ type WalletBatchItemInput,
186
+ type WalletBatchCreateInput,
187
+ type WalletBatchCreateResult,
188
+ type WalletBatchCreateResponse,
151
189
  type EthereumPersonalSignRpcInput,
152
190
  type EthereumSignTransactionRpcInput,
153
191
  type EthereumSendTransactionRpcInput,
@@ -186,3 +224,57 @@ export {
186
224
  type WalletCreateWalletsWithRecoveryParams,
187
225
  type WalletsCursor,
188
226
  } from './wallets/wallets';
227
+ export {
228
+ Webhooks,
229
+ type UserCreatedWebhookPayload,
230
+ type UserAuthenticatedWebhookPayload,
231
+ type UserLinkedAccountWebhookPayload,
232
+ type UserUnlinkedAccountWebhookPayload,
233
+ type UserUpdatedAccountWebhookPayload,
234
+ type UserTransferredAccountWebhookPayload,
235
+ type UserWalletCreatedWebhookPayload,
236
+ type TransactionBroadcastedWebhookPayload,
237
+ type TransactionConfirmedWebhookPayload,
238
+ type TransactionExecutionRevertedWebhookPayload,
239
+ type TransactionStillPendingWebhookPayload,
240
+ type TransactionFailedWebhookPayload,
241
+ type TransactionReplacedWebhookPayload,
242
+ type TransactionProviderErrorWebhookPayload,
243
+ type FundsDepositedWebhookPayload,
244
+ type FundsWithdrawnWebhookPayload,
245
+ type PrivateKeyExportWebhookPayload,
246
+ type WalletRecoverySetupWebhookPayload,
247
+ type WalletRecoveredWebhookPayload,
248
+ type MfaEnabledWebhookPayload,
249
+ type MfaDisabledWebhookPayload,
250
+ type KrakenEmbedVerificationCompletedWebhookPayload,
251
+ type KrakenEmbedVerificationFailedWebhookPayload,
252
+ type KrakenEmbedQuoteExecutedWebhookPayload,
253
+ type KrakenEmbedQuoteExecutionFailedWebhookPayload,
254
+ type KrakenEmbedQuoteCancelledWebhookPayload,
255
+ type KrakenEmbedUserVerifiedWebhookPayload,
256
+ type KrakenEmbedUserDisabledWebhookPayload,
257
+ type KrakenEmbedUserClosedWebhookPayload,
258
+ type YieldDepositConfirmedWebhookPayload,
259
+ type YieldWithdrawConfirmedWebhookPayload,
260
+ } from './webhooks';
261
+ export {
262
+ Yield,
263
+ type EvmCaip2ChainID,
264
+ type EthereumYieldProvider,
265
+ type EthereumYieldSweepType,
266
+ type EthereumYieldSweepStatus,
267
+ type EthereumYieldDepositInput,
268
+ type EthereumYieldWithdrawInput,
269
+ type EthereumYieldSweepResponse,
270
+ type EthereumVaultDetailsInput,
271
+ type EthereumYieldSweepIDInput,
272
+ type EthereumVaultResponse,
273
+ type EthereumVaultDetailsResponse,
274
+ type EthereumYieldPositionsInput,
275
+ type EthereumVaultPosition,
276
+ type EthereumYieldPositionResponse,
277
+ type EthereumYieldClaimInput,
278
+ type EthereumYieldClaimReward,
279
+ type EthereumYieldClaimResponse,
280
+ } from './yield';
@@ -0,0 +1,138 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as IntentsAPI from './intents';
5
+
6
+ export class Intents extends APIResource {}
7
+
8
+ /**
9
+ * A leaf member (user or key) of a nested key quorum in an intent authorization.
10
+ */
11
+ export type IntentAuthorizationKeyQuorumMember =
12
+ | IntentAuthorizationKeyQuorumMember.UserMember
13
+ | IntentAuthorizationKeyQuorumMember.KeyMember;
14
+
15
+ export namespace IntentAuthorizationKeyQuorumMember {
16
+ export interface UserMember {
17
+ /**
18
+ * Whether this member has signed the intent
19
+ */
20
+ has_signed: boolean;
21
+
22
+ type: 'user';
23
+
24
+ /**
25
+ * User ID of the key quorum member
26
+ */
27
+ user_id: string;
28
+
29
+ /**
30
+ * Display name for the user (email, etc)
31
+ */
32
+ display_name?: string;
33
+ }
34
+
35
+ export interface KeyMember {
36
+ /**
37
+ * Whether this key has signed the intent
38
+ */
39
+ has_signed: boolean;
40
+
41
+ /**
42
+ * Public key of the key quorum member
43
+ */
44
+ public_key: string;
45
+
46
+ type: 'key';
47
+
48
+ /**
49
+ * Display name for the key (if any)
50
+ */
51
+ display_name?: string;
52
+ }
53
+ }
54
+
55
+ /**
56
+ * A member of an intent authorization quorum. Can be a user, key, or nested key
57
+ * quorum.
58
+ */
59
+ export type IntentAuthorizationMember =
60
+ | IntentAuthorizationMember.UserMember
61
+ | IntentAuthorizationMember.KeyMember
62
+ | IntentAuthorizationMember.KeyQuorumMember;
63
+
64
+ export namespace IntentAuthorizationMember {
65
+ export interface UserMember {
66
+ /**
67
+ * Whether this member has signed the intent
68
+ */
69
+ has_signed: boolean;
70
+
71
+ type: 'user';
72
+
73
+ /**
74
+ * User ID of the key quorum member
75
+ */
76
+ user_id: string;
77
+
78
+ /**
79
+ * Display name for the user (email, etc)
80
+ */
81
+ display_name?: string;
82
+ }
83
+
84
+ export interface KeyMember {
85
+ /**
86
+ * Whether this key has signed the intent
87
+ */
88
+ has_signed: boolean;
89
+
90
+ /**
91
+ * Public key of the key quorum member
92
+ */
93
+ public_key: string;
94
+
95
+ type: 'key';
96
+
97
+ /**
98
+ * Display name for the key (if any)
99
+ */
100
+ display_name?: string;
101
+ }
102
+
103
+ export interface KeyQuorumMember {
104
+ /**
105
+ * Whether this child key quorum has fulfilled its threshold
106
+ */
107
+ has_signed: boolean;
108
+
109
+ /**
110
+ * ID of the child key quorum member
111
+ */
112
+ key_quorum_id: string;
113
+
114
+ /**
115
+ * Members of this child quorum
116
+ */
117
+ members: Array<IntentsAPI.IntentAuthorizationKeyQuorumMember>;
118
+
119
+ /**
120
+ * Number of signatures required from this child quorum
121
+ */
122
+ threshold: number;
123
+
124
+ type: 'key_quorum';
125
+
126
+ /**
127
+ * Display name for the child key quorum (if any)
128
+ */
129
+ display_name?: string;
130
+ }
131
+ }
132
+
133
+ export declare namespace Intents {
134
+ export {
135
+ type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
136
+ type IntentAuthorizationMember as IntentAuthorizationMember,
137
+ };
138
+ }
@@ -105,6 +105,11 @@ export interface KeyQuorum {
105
105
 
106
106
  display_name?: string;
107
107
 
108
+ /**
109
+ * List of nested key quorum IDs that are members of this key quorum.
110
+ */
111
+ key_quorum_ids?: Array<string>;
112
+
108
113
  user_ids?: Array<string>;
109
114
  }
110
115
 
@@ -132,6 +137,12 @@ export interface KeyQuorumCreateParams {
132
137
 
133
138
  display_name?: string;
134
139
 
140
+ /**
141
+ * List of key quorum IDs that should be members of this key quorum. Key quorums
142
+ * can only be nested 1 level deep.
143
+ */
144
+ key_quorum_ids?: Array<string>;
145
+
135
146
  /**
136
147
  * List of P-256 public keys of the keys that should be authorized to sign on the
137
148
  * key quorum, in base64-encoded DER format.
@@ -165,6 +176,12 @@ export interface KeyQuorumUpdateParams {
165
176
  */
166
177
  display_name?: string;
167
178
 
179
+ /**
180
+ * Body param: List of key quorum IDs that should be members of this key quorum.
181
+ * Key quorums can only be nested 1 level deep.
182
+ */
183
+ key_quorum_ids?: Array<string>;
184
+
168
185
  /**
169
186
  * Body param: List of P-256 public keys of the keys that should be authorized to
170
187
  * sign on the key quorum, in base64-encoded DER format.
@@ -417,7 +417,7 @@ export namespace Policy {
417
417
  }
418
418
 
419
419
  /**
420
- * Allowed contract addresses for eth_signAuthorization requests.
420
+ * Allowed contract addresses for eth_sign7702Authorization requests.
421
421
  */
422
422
  export interface Ethereum7702AuthorizationCondition {
423
423
  field: 'contract';
@@ -689,7 +689,7 @@ export namespace PolicyCreateRuleResponse {
689
689
  }
690
690
 
691
691
  /**
692
- * Allowed contract addresses for eth_signAuthorization requests.
692
+ * Allowed contract addresses for eth_sign7702Authorization requests.
693
693
  */
694
694
  export interface Ethereum7702AuthorizationCondition {
695
695
  field: 'contract';
@@ -895,7 +895,7 @@ export namespace PolicyUpdateRuleResponse {
895
895
  }
896
896
 
897
897
  /**
898
- * Allowed contract addresses for eth_signAuthorization requests.
898
+ * Allowed contract addresses for eth_sign7702Authorization requests.
899
899
  */
900
900
  export interface Ethereum7702AuthorizationCondition {
901
901
  field: 'contract';
@@ -1091,7 +1091,7 @@ export namespace PolicyGetRuleResponse {
1091
1091
  }
1092
1092
 
1093
1093
  /**
1094
- * Allowed contract addresses for eth_signAuthorization requests.
1094
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1095
1095
  */
1096
1096
  export interface Ethereum7702AuthorizationCondition {
1097
1097
  field: 'contract';
@@ -1193,8 +1193,7 @@ export interface PolicyCreateParams {
1193
1193
  owner?: PolicyCreateParams.PublicKeyOwner | PolicyCreateParams.UserOwner | null;
1194
1194
 
1195
1195
  /**
1196
- * Body param: The key quorum ID to set as the owner of the resource. If you
1197
- * provide this, do not specify an owner.
1196
+ * Body param
1198
1197
  */
1199
1198
  owner_id?: string | null;
1200
1199
 
@@ -1326,7 +1325,7 @@ export namespace PolicyCreateParams {
1326
1325
  }
1327
1326
 
1328
1327
  /**
1329
- * Allowed contract addresses for eth_signAuthorization requests.
1328
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1330
1329
  */
1331
1330
  export interface Ethereum7702AuthorizationCondition {
1332
1331
  field: 'contract';
@@ -1547,7 +1546,7 @@ export namespace PolicyCreateRuleParams {
1547
1546
  }
1548
1547
 
1549
1548
  /**
1550
- * Allowed contract addresses for eth_signAuthorization requests.
1549
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1551
1550
  */
1552
1551
  export interface Ethereum7702AuthorizationCondition {
1553
1552
  field: 'contract';
@@ -1655,8 +1654,7 @@ export interface PolicyUpdateParams {
1655
1654
  owner?: PolicyUpdateParams.PublicKeyOwner | PolicyUpdateParams.UserOwner | null;
1656
1655
 
1657
1656
  /**
1658
- * Body param: The key quorum ID to set as the owner of the resource. If you
1659
- * provide this, do not specify an owner.
1657
+ * Body param
1660
1658
  */
1661
1659
  owner_id?: string | null;
1662
1660
 
@@ -1811,7 +1809,7 @@ export namespace PolicyUpdateParams {
1811
1809
  }
1812
1810
 
1813
1811
  /**
1814
- * Allowed contract addresses for eth_signAuthorization requests.
1812
+ * Allowed contract addresses for eth_sign7702Authorization requests.
1815
1813
  */
1816
1814
  export interface Ethereum7702AuthorizationCondition {
1817
1815
  field: 'contract';
@@ -2019,7 +2017,7 @@ export namespace PolicyUpdateRuleParams {
2019
2017
  }
2020
2018
 
2021
2019
  /**
2022
- * Allowed contract addresses for eth_signAuthorization requests.
2020
+ * Allowed contract addresses for eth_sign7702Authorization requests.
2023
2021
  */
2024
2022
  export interface Ethereum7702AuthorizationCondition {
2025
2023
  field: 'contract';
@@ -348,39 +348,6 @@ export interface AuthenticatedUser {
348
348
  oauth_tokens?: OAuthTokens;
349
349
  }
350
350
 
351
- /**
352
- * A linked account for the user.
353
- */
354
- export type LinkedAccount =
355
- | LinkedAccountEmail
356
- | LinkedAccountPhone
357
- | LinkedAccountEthereum
358
- | LinkedAccountSolana
359
- | LinkedAccountSmartWallet
360
- | LinkedAccountEthereumEmbeddedWallet
361
- | LinkedAccountSolanaEmbeddedWallet
362
- | LinkedAccountBitcoinSegwitEmbeddedWallet
363
- | LinkedAccountBitcoinTaprootEmbeddedWallet
364
- | LinkedAccountCurveSigningEmbeddedWallet
365
- | LinkedAccountGoogleOAuth
366
- | LinkedAccountTwitterOAuth
367
- | LinkedAccountDiscordOAuth
368
- | LinkedAccountGitHubOAuth
369
- | LinkedAccountSpotifyOAuth
370
- | LinkedAccountInstagramOAuth
371
- | LinkedAccountTiktokOAuth
372
- | LinkedAccountLineOAuth
373
- | LinkedAccountTwitchOAuth
374
- | LinkedAccountLinkedInOAuth
375
- | LinkedAccountAppleOAuth
376
- | LinkedAccountCustomOAuth
377
- | LinkedAccountCustomJwt
378
- | LinkedAccountFarcaster
379
- | LinkedAccountPasskey
380
- | LinkedAccountTelegram
381
- | LinkedAccountCrossApp
382
- | LinkedAccountAuthorizationKey;
383
-
384
351
  /**
385
352
  * A Privy user object.
386
353
  */
@@ -1201,6 +1168,39 @@ export interface LinkedAccountAuthorizationKey {
1201
1168
  verified_at: number;
1202
1169
  }
1203
1170
 
1171
+ /**
1172
+ * A linked account for the user.
1173
+ */
1174
+ export type LinkedAccount =
1175
+ | LinkedAccountEmail
1176
+ | LinkedAccountPhone
1177
+ | LinkedAccountEthereum
1178
+ | LinkedAccountSolana
1179
+ | LinkedAccountSmartWallet
1180
+ | LinkedAccountEthereumEmbeddedWallet
1181
+ | LinkedAccountSolanaEmbeddedWallet
1182
+ | LinkedAccountBitcoinSegwitEmbeddedWallet
1183
+ | LinkedAccountBitcoinTaprootEmbeddedWallet
1184
+ | LinkedAccountCurveSigningEmbeddedWallet
1185
+ | LinkedAccountGoogleOAuth
1186
+ | LinkedAccountTwitterOAuth
1187
+ | LinkedAccountDiscordOAuth
1188
+ | LinkedAccountGitHubOAuth
1189
+ | LinkedAccountSpotifyOAuth
1190
+ | LinkedAccountInstagramOAuth
1191
+ | LinkedAccountTiktokOAuth
1192
+ | LinkedAccountLineOAuth
1193
+ | LinkedAccountTwitchOAuth
1194
+ | LinkedAccountLinkedInOAuth
1195
+ | LinkedAccountAppleOAuth
1196
+ | LinkedAccountCustomOAuth
1197
+ | LinkedAccountCustomJwt
1198
+ | LinkedAccountFarcaster
1199
+ | LinkedAccountPasskey
1200
+ | LinkedAccountTelegram
1201
+ | LinkedAccountCrossApp
1202
+ | LinkedAccountAuthorizationKey;
1203
+
1204
1204
  /**
1205
1205
  * The possible types of linked accounts.
1206
1206
  */
@@ -1454,6 +1454,21 @@ export interface LinkedAccountCustomJwtInput {
1454
1454
  type: 'custom_auth';
1455
1455
  }
1456
1456
 
1457
+ /**
1458
+ * The payload for importing a passkey account.
1459
+ */
1460
+ export interface LinkedAccountPasskeyInput {
1461
+ credential_device_type: 'singleDevice' | 'multiDevice';
1462
+
1463
+ credential_id: string;
1464
+
1465
+ credential_public_key: string;
1466
+
1467
+ credential_username: string;
1468
+
1469
+ type: 'passkey';
1470
+ }
1471
+
1457
1472
  /**
1458
1473
  * The input for adding a linked account to a user.
1459
1474
  */
@@ -1474,7 +1489,8 @@ export type LinkedAccountInput =
1474
1489
  | LinkedAccountLinkedInInput
1475
1490
  | LinkedAccountFarcasterInput
1476
1491
  | LinkedAccountTelegramInput
1477
- | LinkedAccountCustomJwtInput;
1492
+ | LinkedAccountCustomJwtInput
1493
+ | LinkedAccountPasskeyInput;
1478
1494
 
1479
1495
  /**
1480
1496
  * The payload for batch creating users.
@@ -1762,7 +1778,6 @@ export interface UserUnlinkLinkedAccountParams {
1762
1778
  export declare namespace Users {
1763
1779
  export {
1764
1780
  type AuthenticatedUser as AuthenticatedUser,
1765
- type LinkedAccount as LinkedAccount,
1766
1781
  type User as User,
1767
1782
  type LinkedAccountEmail as LinkedAccountEmail,
1768
1783
  type LinkedAccountPhone as LinkedAccountPhone,
@@ -1799,6 +1814,7 @@ export declare namespace Users {
1799
1814
  type CrossAppSmartWallet as CrossAppSmartWallet,
1800
1815
  type LinkedAccountCrossApp as LinkedAccountCrossApp,
1801
1816
  type LinkedAccountAuthorizationKey as LinkedAccountAuthorizationKey,
1817
+ type LinkedAccount as LinkedAccount,
1802
1818
  type LinkedAccountType as LinkedAccountType,
1803
1819
  type CustomMetadata as CustomMetadata,
1804
1820
  type LinkedAccountWalletInput as LinkedAccountWalletInput,
@@ -1818,6 +1834,7 @@ export declare namespace Users {
1818
1834
  type LinkedAccountFarcasterInput as LinkedAccountFarcasterInput,
1819
1835
  type LinkedAccountTelegramInput as LinkedAccountTelegramInput,
1820
1836
  type LinkedAccountCustomJwtInput as LinkedAccountCustomJwtInput,
1837
+ type LinkedAccountPasskeyInput as LinkedAccountPasskeyInput,
1821
1838
  type LinkedAccountInput as LinkedAccountInput,
1822
1839
  type UserBatchCreateInput as UserBatchCreateInput,
1823
1840
  type SMSMfaMethod as SMSMfaMethod,
@@ -13,11 +13,14 @@ export class Balance extends APIResource {
13
13
  * ```ts
14
14
  * const balance = await client.wallets.balance.get(
15
15
  * 'wallet_id',
16
- * { asset: 'usdc', chain: 'ethereum' },
17
16
  * );
18
17
  * ```
19
18
  */
20
- get(walletID: string, query: BalanceGetParams, options?: RequestOptions): APIPromise<BalanceGetResponse> {
19
+ get(
20
+ walletID: string,
21
+ query: BalanceGetParams | null | undefined = {},
22
+ options?: RequestOptions,
23
+ ): APIPromise<BalanceGetResponse> {
21
24
  return this._client.get(path`/v1/wallets/${walletID}/balance`, { query, ...options });
22
25
  }
23
26
  }
@@ -28,7 +31,7 @@ export interface BalanceGetResponse {
28
31
 
29
32
  export namespace BalanceGetResponse {
30
33
  export interface Balance {
31
- asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
34
+ asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
32
35
 
33
36
  chain:
34
37
  | 'ethereum'
@@ -57,7 +60,14 @@ export namespace BalanceGetResponse {
57
60
  }
58
61
 
59
62
  export interface BalanceGetParams {
60
- asset:
63
+ /**
64
+ * The token contract address(es) to query in format "chain:address" (e.g.,
65
+ * "base:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" or
66
+ * "solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v").
67
+ */
68
+ token?: string | Array<string>;
69
+
70
+ asset?:
61
71
  | 'usdc'
62
72
  | 'eth'
63
73
  | 'pol'
@@ -67,7 +77,7 @@ export interface BalanceGetParams {
67
77
  | 'sol'
68
78
  | Array<'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol'>;
69
79
 
70
- chain:
80
+ chain?:
71
81
  | 'ethereum'
72
82
  | 'arbitrum'
73
83
  | 'base'
@@ -4,11 +4,11 @@ export { Balance, type BalanceGetResponse, type BalanceGetParams } from './balan
4
4
  export { Transactions, type TransactionGetResponse, type TransactionGetParams } from './transactions';
5
5
  export {
6
6
  Wallets,
7
+ type Wallet,
7
8
  type CurveSigningChainType,
9
+ type ExtendedChainType,
8
10
  type FirstClassChainType,
9
- type Wallet,
10
11
  type WalletChainType,
11
- type ExtendedChainType,
12
12
  type WalletCustodian,
13
13
  type CustodialWalletProvider,
14
14
  type CustodialWalletChainType,
@@ -16,6 +16,10 @@ export {
16
16
  type CustodialWallet,
17
17
  type HpkeImportConfig,
18
18
  type SuiCommandName,
19
+ type WalletBatchItemInput,
20
+ type WalletBatchCreateInput,
21
+ type WalletBatchCreateResult,
22
+ type WalletBatchCreateResponse,
19
23
  type EthereumPersonalSignRpcInput,
20
24
  type EthereumSignTransactionRpcInput,
21
25
  type EthereumSendTransactionRpcInput,
@@ -61,7 +61,7 @@ export namespace TransactionGetResponse {
61
61
 
62
62
  export namespace Transaction {
63
63
  export interface UnionMember0 {
64
- asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
64
+ asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
65
65
 
66
66
  chain:
67
67
  | 'ethereum'
@@ -99,7 +99,7 @@ export namespace TransactionGetResponse {
99
99
  }
100
100
 
101
101
  export interface UnionMember1 {
102
- asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol';
102
+ asset: 'usdc' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
103
103
 
104
104
  chain:
105
105
  | 'ethereum'