@privy-io/node 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +71 -0
- package/client.d.mts +18 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -8
- package/client.d.ts.map +1 -1
- package/client.js +20 -3
- package/client.js.map +1 -1
- package/client.mjs +20 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +21 -1
- package/resources/aggregations.d.mts +507 -0
- package/resources/aggregations.d.mts.map +1 -0
- package/resources/aggregations.d.ts +507 -0
- package/resources/aggregations.d.ts.map +1 -0
- package/resources/aggregations.js +9 -0
- package/resources/aggregations.js.map +1 -0
- package/resources/aggregations.mjs +5 -0
- package/resources/aggregations.mjs.map +1 -0
- package/resources/client-auth.d.mts +168 -2
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +168 -2
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/key-quorums.d.mts +4 -1
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +4 -1
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +21 -20
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +21 -20
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +21 -11
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +21 -11
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +11 -6
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -6
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +1 -2
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +1 -2
- 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 +3 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +3 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +249 -61
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +249 -61
- 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/webhooks.d.mts +940 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +940 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +9 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +5 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/yield.d.mts +264 -0
- package/resources/yield.d.mts.map +1 -0
- package/resources/yield.d.ts +264 -0
- package/resources/yield.d.ts.map +1 -0
- package/resources/yield.js +9 -0
- package/resources/yield.js.map +1 -0
- package/resources/yield.mjs +5 -0
- package/resources/yield.mjs.map +1 -0
- package/src/client.ts +198 -9
- package/src/internal/parse.ts +6 -0
- package/src/resources/aggregations.ts +853 -0
- package/src/resources/client-auth.ts +288 -1
- package/src/resources/index.ts +87 -3
- package/src/resources/key-quorums.ts +4 -1
- package/src/resources/policies.ts +21 -20
- package/src/resources/users.ts +58 -41
- package/src/resources/wallets/balance.ts +24 -6
- package/src/resources/wallets/index.ts +6 -2
- package/src/resources/wallets/transactions.ts +11 -3
- package/src/resources/wallets/wallets.ts +333 -78
- package/src/resources/webhooks.ts +1287 -0
- package/src/resources/yield.ts +330 -0
- package/src/types/x402.d.ts +18 -0
- package/src/version.ts +1 -1
- package/src/x402.ts +87 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/x402.d.mts +54 -0
- package/x402.d.mts.map +1 -0
- package/x402.d.ts +54 -0
- package/x402.d.ts.map +1 -0
- package/x402.js +75 -0
- package/x402.js.map +1 -0
- package/x402.mjs +72 -0
- package/x402.mjs.map +1 -0
|
@@ -34,7 +34,272 @@ export type CustomOAuthProviderID = `custom:${string}`;
|
|
|
34
34
|
/**
|
|
35
35
|
* The ID of an OAuth provider.
|
|
36
36
|
*/
|
|
37
|
-
export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID
|
|
37
|
+
export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Valid set of onramp providers
|
|
41
|
+
*/
|
|
42
|
+
export type OnrampProvider = 'bridge' | 'bridge-sandbox';
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The request input for getting a native onramp provider customer.
|
|
46
|
+
*/
|
|
47
|
+
export interface GetFiatCustomerRequestInput {
|
|
48
|
+
/**
|
|
49
|
+
* Valid set of onramp providers
|
|
50
|
+
*/
|
|
51
|
+
provider: OnrampProvider;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The request input for creating (or updating) a native onramp provider customer.
|
|
56
|
+
*/
|
|
57
|
+
export interface CreateOrUpdateFiatCustomerRequestInput {
|
|
58
|
+
has_accepted_terms: boolean;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Valid set of onramp providers
|
|
62
|
+
*/
|
|
63
|
+
provider: OnrampProvider;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The response for getting a native onramp provider customer.
|
|
68
|
+
*/
|
|
69
|
+
export interface BridgeFiatCustomerResponse {
|
|
70
|
+
has_accepted_terms: boolean;
|
|
71
|
+
|
|
72
|
+
provider: 'bridge';
|
|
73
|
+
|
|
74
|
+
status:
|
|
75
|
+
| 'not_found'
|
|
76
|
+
| 'active'
|
|
77
|
+
| 'awaiting_questionnaire'
|
|
78
|
+
| 'awaiting_ubo'
|
|
79
|
+
| 'incomplete'
|
|
80
|
+
| 'not_started'
|
|
81
|
+
| 'offboarded'
|
|
82
|
+
| 'paused'
|
|
83
|
+
| 'rejected'
|
|
84
|
+
| 'under_review';
|
|
85
|
+
|
|
86
|
+
kyc_url?: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The response for getting a native onramp provider customer.
|
|
91
|
+
*/
|
|
92
|
+
export interface BridgeSandboxFiatCustomerResponse {
|
|
93
|
+
has_accepted_terms: boolean;
|
|
94
|
+
|
|
95
|
+
provider: 'bridge-sandbox';
|
|
96
|
+
|
|
97
|
+
status:
|
|
98
|
+
| 'not_found'
|
|
99
|
+
| 'active'
|
|
100
|
+
| 'awaiting_questionnaire'
|
|
101
|
+
| 'awaiting_ubo'
|
|
102
|
+
| 'incomplete'
|
|
103
|
+
| 'not_started'
|
|
104
|
+
| 'offboarded'
|
|
105
|
+
| 'paused'
|
|
106
|
+
| 'rejected'
|
|
107
|
+
| 'under_review';
|
|
108
|
+
|
|
109
|
+
kyc_url?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The response for getting a native onramp provider customer.
|
|
114
|
+
*/
|
|
115
|
+
export type FiatCustomerResponse = BridgeFiatCustomerResponse | BridgeSandboxFiatCustomerResponse;
|
|
116
|
+
|
|
117
|
+
export type BridgeDestinationAsset = 'usdb' | 'usdc' | 'usdt' | 'dai' | 'pyusd' | 'eurc';
|
|
118
|
+
|
|
119
|
+
export type BridgeSourceAsset = 'usd' | 'eur' | 'mxn' | 'brl' | 'gbp';
|
|
120
|
+
|
|
121
|
+
export interface BridgeFiatVirtualAccountSource {
|
|
122
|
+
asset: BridgeSourceAsset;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface BridgeFiatVirtualAccountDestination {
|
|
126
|
+
address: string;
|
|
127
|
+
|
|
128
|
+
asset: BridgeDestinationAsset;
|
|
129
|
+
|
|
130
|
+
chain: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The request input for creating virtual account.
|
|
135
|
+
*/
|
|
136
|
+
export interface BridgeFiatVirtualAccountRequest {
|
|
137
|
+
destination: BridgeFiatVirtualAccountDestination;
|
|
138
|
+
|
|
139
|
+
provider: 'bridge';
|
|
140
|
+
|
|
141
|
+
source: BridgeFiatVirtualAccountSource;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The request input for creating virtual account.
|
|
146
|
+
*/
|
|
147
|
+
export interface BridgeSandboxFiatVirtualAccountRequest {
|
|
148
|
+
destination: BridgeFiatVirtualAccountDestination;
|
|
149
|
+
|
|
150
|
+
provider: 'bridge-sandbox';
|
|
151
|
+
|
|
152
|
+
source: BridgeFiatVirtualAccountSource;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The request input for creating virtual account.
|
|
157
|
+
*/
|
|
158
|
+
export type FiatVirtualAccountRequest =
|
|
159
|
+
| BridgeFiatVirtualAccountRequest
|
|
160
|
+
| BridgeSandboxFiatVirtualAccountRequest;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The deposit instructions for a virtual account.
|
|
164
|
+
*/
|
|
165
|
+
export interface BridgeUsdFiatVirtualAccountDepositInstructions {
|
|
166
|
+
asset: 'usd';
|
|
167
|
+
|
|
168
|
+
bank_account_number: string;
|
|
169
|
+
|
|
170
|
+
bank_address: string;
|
|
171
|
+
|
|
172
|
+
bank_beneficiary_address: string;
|
|
173
|
+
|
|
174
|
+
bank_beneficiary_name: string;
|
|
175
|
+
|
|
176
|
+
bank_name: string;
|
|
177
|
+
|
|
178
|
+
bank_routing_number: string;
|
|
179
|
+
|
|
180
|
+
payment_rails: Array<'ach_push' | 'wire'>;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The deposit instructions for a virtual account.
|
|
185
|
+
*/
|
|
186
|
+
export interface BridgeEurFiatVirtualAccountDepositInstructions {
|
|
187
|
+
account_holder_name: string;
|
|
188
|
+
|
|
189
|
+
asset: 'eur';
|
|
190
|
+
|
|
191
|
+
bank_address: string;
|
|
192
|
+
|
|
193
|
+
bank_name: string;
|
|
194
|
+
|
|
195
|
+
bic: string;
|
|
196
|
+
|
|
197
|
+
iban: string;
|
|
198
|
+
|
|
199
|
+
payment_rails: Array<'sepa'>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The deposit instructions for a virtual account.
|
|
204
|
+
*/
|
|
205
|
+
export interface BridgeMxnFiatVirtualAccountDepositInstructions {
|
|
206
|
+
account_holder_name: string;
|
|
207
|
+
|
|
208
|
+
asset: 'mxn';
|
|
209
|
+
|
|
210
|
+
bank_address: string;
|
|
211
|
+
|
|
212
|
+
bank_name: string;
|
|
213
|
+
|
|
214
|
+
clabe: string;
|
|
215
|
+
|
|
216
|
+
payment_rails: Array<'spei'>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* The deposit instructions for a virtual account.
|
|
221
|
+
*/
|
|
222
|
+
export interface BridgeBrlFiatVirtualAccountDepositInstructions {
|
|
223
|
+
account_holder_name: string;
|
|
224
|
+
|
|
225
|
+
asset: 'brl';
|
|
226
|
+
|
|
227
|
+
bank_address: string;
|
|
228
|
+
|
|
229
|
+
bank_name: string;
|
|
230
|
+
|
|
231
|
+
br_code: string;
|
|
232
|
+
|
|
233
|
+
payment_rails: Array<'pix'>;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The deposit instructions for a virtual account.
|
|
238
|
+
*/
|
|
239
|
+
export interface BridgeGbpFiatVirtualAccountDepositInstructions {
|
|
240
|
+
account_holder_name: string;
|
|
241
|
+
|
|
242
|
+
account_number: string;
|
|
243
|
+
|
|
244
|
+
asset: 'gbp';
|
|
245
|
+
|
|
246
|
+
bank_address: string;
|
|
247
|
+
|
|
248
|
+
bank_name: string;
|
|
249
|
+
|
|
250
|
+
payment_rails: Array<'faster_payments'>;
|
|
251
|
+
|
|
252
|
+
sort_code: string;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* The deposit instructions for a virtual account.
|
|
257
|
+
*/
|
|
258
|
+
export type BridgeFiatVirtualAccountDepositInstructions =
|
|
259
|
+
| BridgeUsdFiatVirtualAccountDepositInstructions
|
|
260
|
+
| BridgeEurFiatVirtualAccountDepositInstructions
|
|
261
|
+
| BridgeMxnFiatVirtualAccountDepositInstructions
|
|
262
|
+
| BridgeBrlFiatVirtualAccountDepositInstructions
|
|
263
|
+
| BridgeGbpFiatVirtualAccountDepositInstructions;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The response for creating virtual account.
|
|
267
|
+
*/
|
|
268
|
+
export interface BridgeFiatVirtualAccountResponse {
|
|
269
|
+
/**
|
|
270
|
+
* The deposit instructions for a virtual account.
|
|
271
|
+
*/
|
|
272
|
+
deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
|
|
273
|
+
|
|
274
|
+
destination: BridgeFiatVirtualAccountDestination;
|
|
275
|
+
|
|
276
|
+
provider: 'bridge';
|
|
277
|
+
|
|
278
|
+
status: string;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The response for creating virtual account.
|
|
283
|
+
*/
|
|
284
|
+
export interface BridgeSandboxFiatVirtualAccountResponse {
|
|
285
|
+
/**
|
|
286
|
+
* The deposit instructions for a virtual account.
|
|
287
|
+
*/
|
|
288
|
+
deposit_instructions: BridgeFiatVirtualAccountDepositInstructions;
|
|
289
|
+
|
|
290
|
+
destination: BridgeFiatVirtualAccountDestination;
|
|
291
|
+
|
|
292
|
+
provider: 'bridge-sandbox';
|
|
293
|
+
|
|
294
|
+
status: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The response for creating virtual account.
|
|
299
|
+
*/
|
|
300
|
+
export type FiatVirtualAccountResponse =
|
|
301
|
+
| BridgeFiatVirtualAccountResponse
|
|
302
|
+
| BridgeSandboxFiatVirtualAccountResponse;
|
|
38
303
|
|
|
39
304
|
export declare namespace ClientAuth {
|
|
40
305
|
export {
|
|
@@ -42,5 +307,27 @@ export declare namespace ClientAuth {
|
|
|
42
307
|
type PrivyOAuthProviderID as PrivyOAuthProviderID,
|
|
43
308
|
type CustomOAuthProviderID as CustomOAuthProviderID,
|
|
44
309
|
type OAuthProviderID as OAuthProviderID,
|
|
310
|
+
type OnrampProvider as OnrampProvider,
|
|
311
|
+
type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput,
|
|
312
|
+
type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput,
|
|
313
|
+
type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse,
|
|
314
|
+
type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse,
|
|
315
|
+
type FiatCustomerResponse as FiatCustomerResponse,
|
|
316
|
+
type BridgeDestinationAsset as BridgeDestinationAsset,
|
|
317
|
+
type BridgeSourceAsset as BridgeSourceAsset,
|
|
318
|
+
type BridgeFiatVirtualAccountSource as BridgeFiatVirtualAccountSource,
|
|
319
|
+
type BridgeFiatVirtualAccountDestination as BridgeFiatVirtualAccountDestination,
|
|
320
|
+
type BridgeFiatVirtualAccountRequest as BridgeFiatVirtualAccountRequest,
|
|
321
|
+
type BridgeSandboxFiatVirtualAccountRequest as BridgeSandboxFiatVirtualAccountRequest,
|
|
322
|
+
type FiatVirtualAccountRequest as FiatVirtualAccountRequest,
|
|
323
|
+
type BridgeUsdFiatVirtualAccountDepositInstructions as BridgeUsdFiatVirtualAccountDepositInstructions,
|
|
324
|
+
type BridgeEurFiatVirtualAccountDepositInstructions as BridgeEurFiatVirtualAccountDepositInstructions,
|
|
325
|
+
type BridgeMxnFiatVirtualAccountDepositInstructions as BridgeMxnFiatVirtualAccountDepositInstructions,
|
|
326
|
+
type BridgeBrlFiatVirtualAccountDepositInstructions as BridgeBrlFiatVirtualAccountDepositInstructions,
|
|
327
|
+
type BridgeGbpFiatVirtualAccountDepositInstructions as BridgeGbpFiatVirtualAccountDepositInstructions,
|
|
328
|
+
type BridgeFiatVirtualAccountDepositInstructions as BridgeFiatVirtualAccountDepositInstructions,
|
|
329
|
+
type BridgeFiatVirtualAccountResponse as BridgeFiatVirtualAccountResponse,
|
|
330
|
+
type BridgeSandboxFiatVirtualAccountResponse as BridgeSandboxFiatVirtualAccountResponse,
|
|
331
|
+
type FiatVirtualAccountResponse as FiatVirtualAccountResponse,
|
|
45
332
|
};
|
|
46
333
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Aggregations,
|
|
5
|
+
type AggregationMethod,
|
|
6
|
+
type AggregationMetric,
|
|
7
|
+
type AggregationWindow,
|
|
8
|
+
type AggregationGroupBy,
|
|
9
|
+
type Aggregation,
|
|
10
|
+
type AggregationInput,
|
|
11
|
+
} from './aggregations';
|
|
3
12
|
export { Analytics, type AnalyticsEventInput } from './analytics';
|
|
4
13
|
export { Apps, type AppResponse } from './apps';
|
|
5
14
|
export {
|
|
@@ -8,6 +17,28 @@ export {
|
|
|
8
17
|
type PrivyOAuthProviderID,
|
|
9
18
|
type CustomOAuthProviderID,
|
|
10
19
|
type OAuthProviderID,
|
|
20
|
+
type OnrampProvider,
|
|
21
|
+
type GetFiatCustomerRequestInput,
|
|
22
|
+
type CreateOrUpdateFiatCustomerRequestInput,
|
|
23
|
+
type BridgeFiatCustomerResponse,
|
|
24
|
+
type BridgeSandboxFiatCustomerResponse,
|
|
25
|
+
type FiatCustomerResponse,
|
|
26
|
+
type BridgeDestinationAsset,
|
|
27
|
+
type BridgeSourceAsset,
|
|
28
|
+
type BridgeFiatVirtualAccountSource,
|
|
29
|
+
type BridgeFiatVirtualAccountDestination,
|
|
30
|
+
type BridgeFiatVirtualAccountRequest,
|
|
31
|
+
type BridgeSandboxFiatVirtualAccountRequest,
|
|
32
|
+
type FiatVirtualAccountRequest,
|
|
33
|
+
type BridgeUsdFiatVirtualAccountDepositInstructions,
|
|
34
|
+
type BridgeEurFiatVirtualAccountDepositInstructions,
|
|
35
|
+
type BridgeMxnFiatVirtualAccountDepositInstructions,
|
|
36
|
+
type BridgeBrlFiatVirtualAccountDepositInstructions,
|
|
37
|
+
type BridgeGbpFiatVirtualAccountDepositInstructions,
|
|
38
|
+
type BridgeFiatVirtualAccountDepositInstructions,
|
|
39
|
+
type BridgeFiatVirtualAccountResponse,
|
|
40
|
+
type BridgeSandboxFiatVirtualAccountResponse,
|
|
41
|
+
type FiatVirtualAccountResponse,
|
|
11
42
|
} from './client-auth';
|
|
12
43
|
export {
|
|
13
44
|
KeyQuorums,
|
|
@@ -42,7 +73,6 @@ export { Transactions, type TransactionGetResponse } from './transactions';
|
|
|
42
73
|
export {
|
|
43
74
|
Users,
|
|
44
75
|
type AuthenticatedUser,
|
|
45
|
-
type LinkedAccount,
|
|
46
76
|
type User,
|
|
47
77
|
type LinkedAccountEmail,
|
|
48
78
|
type LinkedAccountPhone,
|
|
@@ -79,6 +109,7 @@ export {
|
|
|
79
109
|
type CrossAppSmartWallet,
|
|
80
110
|
type LinkedAccountCrossApp,
|
|
81
111
|
type LinkedAccountAuthorizationKey,
|
|
112
|
+
type LinkedAccount,
|
|
82
113
|
type LinkedAccountType,
|
|
83
114
|
type CustomMetadata,
|
|
84
115
|
type LinkedAccountWalletInput,
|
|
@@ -98,6 +129,7 @@ export {
|
|
|
98
129
|
type LinkedAccountFarcasterInput,
|
|
99
130
|
type LinkedAccountTelegramInput,
|
|
100
131
|
type LinkedAccountCustomJwtInput,
|
|
132
|
+
type LinkedAccountPasskeyInput,
|
|
101
133
|
type LinkedAccountInput,
|
|
102
134
|
type UserBatchCreateInput,
|
|
103
135
|
type SMSMfaMethod,
|
|
@@ -128,11 +160,11 @@ export {
|
|
|
128
160
|
} from './users';
|
|
129
161
|
export {
|
|
130
162
|
Wallets,
|
|
163
|
+
type Wallet,
|
|
131
164
|
type CurveSigningChainType,
|
|
165
|
+
type ExtendedChainType,
|
|
132
166
|
type FirstClassChainType,
|
|
133
|
-
type Wallet,
|
|
134
167
|
type WalletChainType,
|
|
135
|
-
type ExtendedChainType,
|
|
136
168
|
type WalletCustodian,
|
|
137
169
|
type CustodialWalletProvider,
|
|
138
170
|
type CustodialWalletChainType,
|
|
@@ -140,6 +172,10 @@ export {
|
|
|
140
172
|
type CustodialWallet,
|
|
141
173
|
type HpkeImportConfig,
|
|
142
174
|
type SuiCommandName,
|
|
175
|
+
type WalletBatchItemInput,
|
|
176
|
+
type WalletBatchCreateInput,
|
|
177
|
+
type WalletBatchCreateResult,
|
|
178
|
+
type WalletBatchCreateResponse,
|
|
143
179
|
type EthereumPersonalSignRpcInput,
|
|
144
180
|
type EthereumSignTransactionRpcInput,
|
|
145
181
|
type EthereumSendTransactionRpcInput,
|
|
@@ -178,3 +214,51 @@ export {
|
|
|
178
214
|
type WalletCreateWalletsWithRecoveryParams,
|
|
179
215
|
type WalletsCursor,
|
|
180
216
|
} from './wallets/wallets';
|
|
217
|
+
export {
|
|
218
|
+
Webhooks,
|
|
219
|
+
type UserCreatedWebhookPayload,
|
|
220
|
+
type UserAuthenticatedWebhookPayload,
|
|
221
|
+
type UserLinkedAccountWebhookPayload,
|
|
222
|
+
type UserUnlinkedAccountWebhookPayload,
|
|
223
|
+
type UserUpdatedAccountWebhookPayload,
|
|
224
|
+
type UserTransferredAccountWebhookPayload,
|
|
225
|
+
type UserWalletCreatedWebhookPayload,
|
|
226
|
+
type TransactionBroadcastedWebhookPayload,
|
|
227
|
+
type TransactionConfirmedWebhookPayload,
|
|
228
|
+
type TransactionExecutionRevertedWebhookPayload,
|
|
229
|
+
type TransactionStillPendingWebhookPayload,
|
|
230
|
+
type TransactionFailedWebhookPayload,
|
|
231
|
+
type TransactionReplacedWebhookPayload,
|
|
232
|
+
type TransactionProviderErrorWebhookPayload,
|
|
233
|
+
type FundsDepositedWebhookPayload,
|
|
234
|
+
type FundsWithdrawnWebhookPayload,
|
|
235
|
+
type PrivateKeyExportWebhookPayload,
|
|
236
|
+
type WalletRecoverySetupWebhookPayload,
|
|
237
|
+
type WalletRecoveredWebhookPayload,
|
|
238
|
+
type MfaEnabledWebhookPayload,
|
|
239
|
+
type MfaDisabledWebhookPayload,
|
|
240
|
+
type KrakenEmbedVerificationCompletedWebhookPayload,
|
|
241
|
+
type KrakenEmbedVerificationFailedWebhookPayload,
|
|
242
|
+
type KrakenEmbedQuoteExecutedWebhookPayload,
|
|
243
|
+
type KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
|
244
|
+
type KrakenEmbedQuoteCancelledWebhookPayload,
|
|
245
|
+
type KrakenEmbedUserVerifiedWebhookPayload,
|
|
246
|
+
type KrakenEmbedUserDisabledWebhookPayload,
|
|
247
|
+
type KrakenEmbedUserClosedWebhookPayload,
|
|
248
|
+
} from './webhooks';
|
|
249
|
+
export {
|
|
250
|
+
Yield,
|
|
251
|
+
type EthereumYieldProvider,
|
|
252
|
+
type EthereumYieldSweepType,
|
|
253
|
+
type EthereumYieldSweepStatus,
|
|
254
|
+
type EthereumYieldDepositInput,
|
|
255
|
+
type EthereumYieldWithdrawInput,
|
|
256
|
+
type EthereumYieldSweepResponse,
|
|
257
|
+
type EthereumVaultDetailsInput,
|
|
258
|
+
type EthereumYieldSweepIDInput,
|
|
259
|
+
type EthereumVaultResponse,
|
|
260
|
+
type EthereumVaultDetailsResponse,
|
|
261
|
+
type EthereumYieldPositionsInput,
|
|
262
|
+
type EthereumVaultPosition,
|
|
263
|
+
type EthereumYieldPositionResponse,
|
|
264
|
+
} from './yield';
|
|
@@ -93,6 +93,9 @@ export class KeyQuorums extends APIResource {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* A key quorum for authorizing wallet operations.
|
|
98
|
+
*/
|
|
96
99
|
export interface KeyQuorum {
|
|
97
100
|
id: string;
|
|
98
101
|
|
|
@@ -158,7 +161,7 @@ export interface KeyQuorumUpdateParams {
|
|
|
158
161
|
authorization_threshold?: number;
|
|
159
162
|
|
|
160
163
|
/**
|
|
161
|
-
* Body param
|
|
164
|
+
* Body param
|
|
162
165
|
*/
|
|
163
166
|
display_name?: string;
|
|
164
167
|
|
|
@@ -255,6 +255,9 @@ export class Policies extends APIResource {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
/**
|
|
259
|
+
* A policy for controlling wallet operations.
|
|
260
|
+
*/
|
|
258
261
|
export interface Policy {
|
|
259
262
|
/**
|
|
260
263
|
* Unique ID of the created policy. This will be the primary identifier when using
|
|
@@ -342,7 +345,7 @@ export namespace Policy {
|
|
|
342
345
|
* eth_sendTransaction request.
|
|
343
346
|
*/
|
|
344
347
|
export interface EthereumTransactionCondition {
|
|
345
|
-
field: 'to' | 'value';
|
|
348
|
+
field: 'to' | 'value' | 'chain_id';
|
|
346
349
|
|
|
347
350
|
field_source: 'ethereum_transaction';
|
|
348
351
|
|
|
@@ -614,7 +617,7 @@ export namespace PolicyCreateRuleResponse {
|
|
|
614
617
|
* eth_sendTransaction request.
|
|
615
618
|
*/
|
|
616
619
|
export interface EthereumTransactionCondition {
|
|
617
|
-
field: 'to' | 'value';
|
|
620
|
+
field: 'to' | 'value' | 'chain_id';
|
|
618
621
|
|
|
619
622
|
field_source: 'ethereum_transaction';
|
|
620
623
|
|
|
@@ -820,7 +823,7 @@ export namespace PolicyUpdateRuleResponse {
|
|
|
820
823
|
* eth_sendTransaction request.
|
|
821
824
|
*/
|
|
822
825
|
export interface EthereumTransactionCondition {
|
|
823
|
-
field: 'to' | 'value';
|
|
826
|
+
field: 'to' | 'value' | 'chain_id';
|
|
824
827
|
|
|
825
828
|
field_source: 'ethereum_transaction';
|
|
826
829
|
|
|
@@ -1016,7 +1019,7 @@ export namespace PolicyGetRuleResponse {
|
|
|
1016
1019
|
* eth_sendTransaction request.
|
|
1017
1020
|
*/
|
|
1018
1021
|
export interface EthereumTransactionCondition {
|
|
1019
|
-
field: 'to' | 'value';
|
|
1022
|
+
field: 'to' | 'value' | 'chain_id';
|
|
1020
1023
|
|
|
1021
1024
|
field_source: 'ethereum_transaction';
|
|
1022
1025
|
|
|
@@ -1173,7 +1176,7 @@ export interface PolicyCreateParams {
|
|
|
1173
1176
|
name: string;
|
|
1174
1177
|
|
|
1175
1178
|
/**
|
|
1176
|
-
* Body param
|
|
1179
|
+
* Body param
|
|
1177
1180
|
*/
|
|
1178
1181
|
rules: Array<PolicyCreateParams.Rule>;
|
|
1179
1182
|
|
|
@@ -1190,8 +1193,7 @@ export interface PolicyCreateParams {
|
|
|
1190
1193
|
owner?: PolicyCreateParams.PublicKeyOwner | PolicyCreateParams.UserOwner | null;
|
|
1191
1194
|
|
|
1192
1195
|
/**
|
|
1193
|
-
* Body param
|
|
1194
|
-
* provide this, do not specify an owner.
|
|
1196
|
+
* Body param
|
|
1195
1197
|
*/
|
|
1196
1198
|
owner_id?: string | null;
|
|
1197
1199
|
|
|
@@ -1251,7 +1253,7 @@ export namespace PolicyCreateParams {
|
|
|
1251
1253
|
* eth_sendTransaction request.
|
|
1252
1254
|
*/
|
|
1253
1255
|
export interface EthereumTransactionCondition {
|
|
1254
|
-
field: 'to' | 'value';
|
|
1256
|
+
field: 'to' | 'value' | 'chain_id';
|
|
1255
1257
|
|
|
1256
1258
|
field_source: 'ethereum_transaction';
|
|
1257
1259
|
|
|
@@ -1422,7 +1424,7 @@ export interface PolicyCreateRuleParams {
|
|
|
1422
1424
|
action: 'ALLOW' | 'DENY';
|
|
1423
1425
|
|
|
1424
1426
|
/**
|
|
1425
|
-
* Body param
|
|
1427
|
+
* Body param
|
|
1426
1428
|
*/
|
|
1427
1429
|
conditions: Array<
|
|
1428
1430
|
| PolicyCreateRuleParams.EthereumTransactionCondition
|
|
@@ -1455,7 +1457,7 @@ export interface PolicyCreateRuleParams {
|
|
|
1455
1457
|
| '*';
|
|
1456
1458
|
|
|
1457
1459
|
/**
|
|
1458
|
-
* Body param
|
|
1460
|
+
* Body param
|
|
1459
1461
|
*/
|
|
1460
1462
|
name: string;
|
|
1461
1463
|
|
|
@@ -1472,7 +1474,7 @@ export namespace PolicyCreateRuleParams {
|
|
|
1472
1474
|
* eth_sendTransaction request.
|
|
1473
1475
|
*/
|
|
1474
1476
|
export interface EthereumTransactionCondition {
|
|
1475
|
-
field: 'to' | 'value';
|
|
1477
|
+
field: 'to' | 'value' | 'chain_id';
|
|
1476
1478
|
|
|
1477
1479
|
field_source: 'ethereum_transaction';
|
|
1478
1480
|
|
|
@@ -1627,7 +1629,7 @@ export interface PolicyDeleteParams {
|
|
|
1627
1629
|
|
|
1628
1630
|
export interface PolicyDeleteRuleParams {
|
|
1629
1631
|
/**
|
|
1630
|
-
* Path param
|
|
1632
|
+
* Path param
|
|
1631
1633
|
*/
|
|
1632
1634
|
policy_id: string;
|
|
1633
1635
|
|
|
@@ -1652,13 +1654,12 @@ export interface PolicyUpdateParams {
|
|
|
1652
1654
|
owner?: PolicyUpdateParams.PublicKeyOwner | PolicyUpdateParams.UserOwner | null;
|
|
1653
1655
|
|
|
1654
1656
|
/**
|
|
1655
|
-
* Body param
|
|
1656
|
-
* provide this, do not specify an owner.
|
|
1657
|
+
* Body param
|
|
1657
1658
|
*/
|
|
1658
1659
|
owner_id?: string | null;
|
|
1659
1660
|
|
|
1660
1661
|
/**
|
|
1661
|
-
* Body param
|
|
1662
|
+
* Body param
|
|
1662
1663
|
*/
|
|
1663
1664
|
rules?: Array<PolicyUpdateParams.Rule>;
|
|
1664
1665
|
|
|
@@ -1736,7 +1737,7 @@ export namespace PolicyUpdateParams {
|
|
|
1736
1737
|
* eth_sendTransaction request.
|
|
1737
1738
|
*/
|
|
1738
1739
|
export interface EthereumTransactionCondition {
|
|
1739
|
-
field: 'to' | 'value';
|
|
1740
|
+
field: 'to' | 'value' | 'chain_id';
|
|
1740
1741
|
|
|
1741
1742
|
field_source: 'ethereum_transaction';
|
|
1742
1743
|
|
|
@@ -1884,7 +1885,7 @@ export namespace PolicyUpdateParams {
|
|
|
1884
1885
|
|
|
1885
1886
|
export interface PolicyUpdateRuleParams {
|
|
1886
1887
|
/**
|
|
1887
|
-
* Path param
|
|
1888
|
+
* Path param
|
|
1888
1889
|
*/
|
|
1889
1890
|
policy_id: string;
|
|
1890
1891
|
|
|
@@ -1894,7 +1895,7 @@ export interface PolicyUpdateRuleParams {
|
|
|
1894
1895
|
action: 'ALLOW' | 'DENY';
|
|
1895
1896
|
|
|
1896
1897
|
/**
|
|
1897
|
-
* Body param
|
|
1898
|
+
* Body param
|
|
1898
1899
|
*/
|
|
1899
1900
|
conditions: Array<
|
|
1900
1901
|
| PolicyUpdateRuleParams.EthereumTransactionCondition
|
|
@@ -1927,7 +1928,7 @@ export interface PolicyUpdateRuleParams {
|
|
|
1927
1928
|
| '*';
|
|
1928
1929
|
|
|
1929
1930
|
/**
|
|
1930
|
-
* Body param
|
|
1931
|
+
* Body param
|
|
1931
1932
|
*/
|
|
1932
1933
|
name: string;
|
|
1933
1934
|
|
|
@@ -1944,7 +1945,7 @@ export namespace PolicyUpdateRuleParams {
|
|
|
1944
1945
|
* eth_sendTransaction request.
|
|
1945
1946
|
*/
|
|
1946
1947
|
export interface EthereumTransactionCondition {
|
|
1947
|
-
field: 'to' | 'value';
|
|
1948
|
+
field: 'to' | 'value' | 'chain_id';
|
|
1948
1949
|
|
|
1949
1950
|
field_source: 'ethereum_transaction';
|
|
1950
1951
|
|