@privy-io/api-types 0.10.0 → 0.12.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 +27 -0
- package/client.d.mts +22 -28
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -28
- package/client.d.ts.map +1 -1
- package/client.js +6 -12
- package/client.js.map +1 -1
- package/client.mjs +7 -13
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +5 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +496 -514
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +496 -514
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +5 -0
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +5 -0
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +10 -10
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +10 -10
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/fiat.d.mts +110 -0
- package/resources/fiat.d.mts.map +1 -0
- package/resources/fiat.d.ts +110 -0
- package/resources/fiat.d.ts.map +1 -0
- package/resources/fiat.js +9 -0
- package/resources/fiat.js.map +1 -0
- package/resources/fiat.mjs +5 -0
- package/resources/fiat.mjs.map +1 -0
- package/resources/funding.d.mts +46 -46
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +46 -46
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +11 -10
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -10
- 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/key-quorums.d.mts +1 -132
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +1 -132
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +0 -92
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +0 -92
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/policies.d.mts +2 -312
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +2 -312
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +0 -229
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +0 -229
- package/resources/policies.mjs.map +1 -1
- package/resources/swaps.d.mts +54 -26
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +54 -26
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +28 -44
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +28 -44
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +0 -17
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +0 -17
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +1 -345
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +1 -345
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +0 -272
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +0 -272
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +22 -3
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +22 -3
- package/resources/wallet-actions.d.ts.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 +6 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +6 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +184 -342
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +184 -342
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +41 -102
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +41 -102
- package/resources/wallets/wallets.mjs.map +1 -1
- package/src/client.ts +122 -153
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/apps.ts +6 -0
- package/src/resources/client-auth.ts +743 -787
- package/src/resources/cross-app.ts +6 -0
- package/src/resources/embedded-wallets.ts +16 -15
- package/src/resources/fiat.ts +177 -0
- package/src/resources/funding.ts +65 -65
- package/src/resources/index.ts +97 -107
- package/src/resources/key-quorums.ts +1 -203
- package/src/resources/policies.ts +1 -495
- package/src/resources/swaps.ts +59 -25
- package/src/resources/transactions.ts +35 -55
- package/src/resources/users.ts +1 -479
- package/src/resources/wallet-actions.ts +38 -2
- package/src/resources/wallets/index.ts +4 -9
- package/src/resources/wallets/transactions.ts +6 -2
- package/src/resources/wallets/wallets.ts +236 -450
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -4,7 +4,6 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import * as WalletsAPI from './wallets';
|
|
5
5
|
import * as AppsAPI from '../apps';
|
|
6
6
|
import * as SharedAPI from '../shared';
|
|
7
|
-
import * as UsersAPI from '../users';
|
|
8
7
|
import * as BalanceAPI from './balance';
|
|
9
8
|
import { Balance, BalanceGetParams, BalanceGetResponse } from './balance';
|
|
10
9
|
import * as TransactionsAPI from './transactions';
|
|
@@ -15,9 +14,12 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
15
14
|
import { RequestOptions } from '../../internal/request-options';
|
|
16
15
|
import { path } from '../../internal/utils/path';
|
|
17
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Operations related to wallets
|
|
19
|
+
*/
|
|
18
20
|
export class Wallets extends APIResource {
|
|
19
|
-
transactions: TransactionsAPI.Transactions = new TransactionsAPI.Transactions(this._client);
|
|
20
21
|
balance: BalanceAPI.Balance = new BalanceAPI.Balance(this._client);
|
|
22
|
+
transactions: TransactionsAPI.Transactions = new TransactionsAPI.Transactions(this._client);
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* Creates a new wallet on the requested chain and for the requested owner.
|
|
@@ -41,6 +43,37 @@ export class Wallets extends APIResource {
|
|
|
41
43
|
});
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Update a wallet's policies or authorization key configuration.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const wallet = await client.wallets.update('wallet_id', {
|
|
52
|
+
* policy_ids: ['tb54eps4z44ed0jepousxi4n'],
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
update(walletID: string, params: WalletUpdateParams, options?: RequestOptions): APIPromise<Wallet> {
|
|
57
|
+
const {
|
|
58
|
+
'privy-authorization-signature': privyAuthorizationSignature,
|
|
59
|
+
'privy-request-expiry': privyRequestExpiry,
|
|
60
|
+
...body
|
|
61
|
+
} = params;
|
|
62
|
+
return this._client.patch(path`/v1/wallets/${walletID}`, {
|
|
63
|
+
body,
|
|
64
|
+
...options,
|
|
65
|
+
headers: buildHeaders([
|
|
66
|
+
{
|
|
67
|
+
...(privyAuthorizationSignature != null ?
|
|
68
|
+
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
69
|
+
: undefined),
|
|
70
|
+
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
71
|
+
},
|
|
72
|
+
options?.headers,
|
|
73
|
+
]),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
44
77
|
/**
|
|
45
78
|
* Get all wallets in your app.
|
|
46
79
|
*
|
|
@@ -65,14 +98,14 @@ export class Wallets extends APIResource {
|
|
|
65
98
|
* @example
|
|
66
99
|
* ```ts
|
|
67
100
|
* const walletExportResponseBody =
|
|
68
|
-
* await client.wallets.
|
|
101
|
+
* await client.wallets.export('wallet_id', {
|
|
69
102
|
* encryption_type: 'HPKE',
|
|
70
103
|
* recipient_public_key:
|
|
71
104
|
* 'BDAZLOIdTaPycEYkgG0MvCzbIKJLli/yWkAV5yCa9yOsZ4JsrLweA5MnP8YIiY4k/RRzC+APhhO+P+Hoz/rt7Go=',
|
|
72
105
|
* });
|
|
73
106
|
* ```
|
|
74
107
|
*/
|
|
75
|
-
|
|
108
|
+
export(
|
|
76
109
|
walletID: string,
|
|
77
110
|
params: WalletExportParams,
|
|
78
111
|
options?: RequestOptions,
|
|
@@ -98,21 +131,15 @@ export class Wallets extends APIResource {
|
|
|
98
131
|
}
|
|
99
132
|
|
|
100
133
|
/**
|
|
101
|
-
*
|
|
134
|
+
* Get a wallet by wallet ID.
|
|
102
135
|
*
|
|
103
136
|
* @example
|
|
104
137
|
* ```ts
|
|
105
|
-
* const
|
|
106
|
-
* address: 'address',
|
|
107
|
-
* chain_type: 'ethereum',
|
|
108
|
-
* encryption_type: 'HPKE',
|
|
109
|
-
* entropy_type: 'hd',
|
|
110
|
-
* index: 0,
|
|
111
|
-
* });
|
|
138
|
+
* const wallet = await client.wallets.get('wallet_id');
|
|
112
139
|
* ```
|
|
113
140
|
*/
|
|
114
|
-
|
|
115
|
-
return this._client.
|
|
141
|
+
get(walletID: string, options?: RequestOptions): APIPromise<Wallet> {
|
|
142
|
+
return this._client.get(path`/v1/wallets/${walletID}`, options);
|
|
116
143
|
}
|
|
117
144
|
|
|
118
145
|
/**
|
|
@@ -120,7 +147,7 @@ export class Wallets extends APIResource {
|
|
|
120
147
|
*
|
|
121
148
|
* @example
|
|
122
149
|
* ```ts
|
|
123
|
-
* const rawSignResponse = await client.wallets.
|
|
150
|
+
* const rawSignResponse = await client.wallets.rawSign(
|
|
124
151
|
* 'wallet_id',
|
|
125
152
|
* {
|
|
126
153
|
* params: {
|
|
@@ -133,7 +160,7 @@ export class Wallets extends APIResource {
|
|
|
133
160
|
* );
|
|
134
161
|
* ```
|
|
135
162
|
*/
|
|
136
|
-
|
|
163
|
+
rawSign(
|
|
137
164
|
walletID: string,
|
|
138
165
|
params: WalletRawSignParams,
|
|
139
166
|
options?: RequestOptions,
|
|
@@ -165,7 +192,7 @@ export class Wallets extends APIResource {
|
|
|
165
192
|
*
|
|
166
193
|
* @example
|
|
167
194
|
* ```ts
|
|
168
|
-
* const walletRpcResponse = await client.wallets.
|
|
195
|
+
* const walletRpcResponse = await client.wallets.rpc(
|
|
169
196
|
* 'wallet_id',
|
|
170
197
|
* {
|
|
171
198
|
* method: 'eth_sendTransaction',
|
|
@@ -180,7 +207,7 @@ export class Wallets extends APIResource {
|
|
|
180
207
|
* );
|
|
181
208
|
* ```
|
|
182
209
|
*/
|
|
183
|
-
|
|
210
|
+
rpc(walletID: string, params: WalletRpcParams, options?: RequestOptions): APIPromise<WalletRpcResponse> {
|
|
184
211
|
const {
|
|
185
212
|
'privy-authorization-signature': privyAuthorizationSignature,
|
|
186
213
|
'privy-idempotency-key': privyIdempotencyKey,
|
|
@@ -202,116 +229,10 @@ export class Wallets extends APIResource {
|
|
|
202
229
|
]),
|
|
203
230
|
});
|
|
204
231
|
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Submit a wallet import request.
|
|
208
|
-
*
|
|
209
|
-
* @example
|
|
210
|
-
* ```ts
|
|
211
|
-
* const wallet = await client.wallets._submitImport({
|
|
212
|
-
* wallet: {
|
|
213
|
-
* address: '0xF1DBff66C993EE895C8cb176c30b07A559d76496',
|
|
214
|
-
* chain_type: 'ethereum',
|
|
215
|
-
* ciphertext:
|
|
216
|
-
* 'PRoRXygG+YYSDBXjCopNYZmx8Z6nvdl1D0lpePTYZdZI2VGfK+LkFt+GlEJqdoi9',
|
|
217
|
-
* encapsulated_key:
|
|
218
|
-
* 'BOhR6xITDt5THJawHHJKrKdI9CBr2M/SDWzZZAaOW4gCMsSpC65U007WyKiwuuOVAo1BNm4YgcBBROuMmyIZXZk=',
|
|
219
|
-
* encryption_type: 'HPKE',
|
|
220
|
-
* entropy_type: 'private-key',
|
|
221
|
-
* },
|
|
222
|
-
* });
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
_submitImport(body: WalletSubmitImportParams, options?: RequestOptions): APIPromise<Wallet> {
|
|
226
|
-
return this._client.post('/v1/wallets/import/submit', { body, ...options });
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Update a wallet's policies or authorization key configuration.
|
|
231
|
-
*
|
|
232
|
-
* @example
|
|
233
|
-
* ```ts
|
|
234
|
-
* const wallet = await client.wallets._update('wallet_id', {
|
|
235
|
-
* policy_ids: ['tb54eps4z44ed0jepousxi4n'],
|
|
236
|
-
* });
|
|
237
|
-
* ```
|
|
238
|
-
*/
|
|
239
|
-
_update(walletID: string, params: WalletUpdateParams, options?: RequestOptions): APIPromise<Wallet> {
|
|
240
|
-
const {
|
|
241
|
-
'privy-authorization-signature': privyAuthorizationSignature,
|
|
242
|
-
'privy-request-expiry': privyRequestExpiry,
|
|
243
|
-
...body
|
|
244
|
-
} = params;
|
|
245
|
-
return this._client.patch(path`/v1/wallets/${walletID}`, {
|
|
246
|
-
body,
|
|
247
|
-
...options,
|
|
248
|
-
headers: buildHeaders([
|
|
249
|
-
{
|
|
250
|
-
...(privyAuthorizationSignature != null ?
|
|
251
|
-
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
252
|
-
: undefined),
|
|
253
|
-
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
254
|
-
},
|
|
255
|
-
options?.headers,
|
|
256
|
-
]),
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Obtain a session key to enable wallet access.
|
|
262
|
-
*
|
|
263
|
-
* @example
|
|
264
|
-
* ```ts
|
|
265
|
-
* const response = await client.wallets.authenticateWithJwt({
|
|
266
|
-
* encryption_type: 'HPKE',
|
|
267
|
-
* recipient_public_key:
|
|
268
|
-
* 'DAQcDQgAEx4aoeD72yykviK+fckqE2CItVIGn1rCnvCXZ1HgpOcMEMialRmTrqIK4oZlYd1',
|
|
269
|
-
* user_jwt:
|
|
270
|
-
* 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30',
|
|
271
|
-
* });
|
|
272
|
-
* ```
|
|
273
|
-
*/
|
|
274
|
-
authenticateWithJwt(
|
|
275
|
-
body: WalletAuthenticateWithJwtParams,
|
|
276
|
-
options?: RequestOptions,
|
|
277
|
-
): APIPromise<WalletAuthenticateWithJwtResponse> {
|
|
278
|
-
return this._client.post('/v1/wallets/authenticate', { body, ...options });
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Create wallets with an associated recovery user.
|
|
283
|
-
*
|
|
284
|
-
* @deprecated
|
|
285
|
-
*/
|
|
286
|
-
createWalletsWithRecovery(
|
|
287
|
-
body: WalletCreateWalletsWithRecoveryParams,
|
|
288
|
-
options?: RequestOptions,
|
|
289
|
-
): APIPromise<WalletCreateWalletsWithRecoveryResponse> {
|
|
290
|
-
return this._client.post('/v1/wallets_with_recovery', { body, ...options });
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Get a wallet by wallet ID.
|
|
295
|
-
*
|
|
296
|
-
* @example
|
|
297
|
-
* ```ts
|
|
298
|
-
* const wallet = await client.wallets.get('wallet_id');
|
|
299
|
-
* ```
|
|
300
|
-
*/
|
|
301
|
-
get(walletID: string, options?: RequestOptions): APIPromise<Wallet> {
|
|
302
|
-
return this._client.get(path`/v1/wallets/${walletID}`, options);
|
|
303
|
-
}
|
|
304
232
|
}
|
|
305
233
|
|
|
306
234
|
export type WalletsCursor = Cursor<Wallet>;
|
|
307
235
|
|
|
308
|
-
/**
|
|
309
|
-
* The response body from revoking a wallet delegation.
|
|
310
|
-
*/
|
|
311
|
-
export interface WalletRevokeResponse {
|
|
312
|
-
message: string;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
236
|
/**
|
|
316
237
|
* Additional signers for the wallet.
|
|
317
238
|
*/
|
|
@@ -601,7 +522,8 @@ export interface EthereumSecp256k1SignRpcInput {
|
|
|
601
522
|
*/
|
|
602
523
|
export interface EthereumSecp256k1SignRpcInputParams {
|
|
603
524
|
/**
|
|
604
|
-
* A hex-encoded string prefixed with '0x'
|
|
525
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
526
|
+
* bytes).
|
|
605
527
|
*/
|
|
606
528
|
hash: Hex;
|
|
607
529
|
}
|
|
@@ -625,7 +547,8 @@ export interface EthereumSecp256k1SignRpcResponseData {
|
|
|
625
547
|
encoding: 'hex';
|
|
626
548
|
|
|
627
549
|
/**
|
|
628
|
-
* A hex-encoded string prefixed with '0x'
|
|
550
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
551
|
+
* bytes).
|
|
629
552
|
*/
|
|
630
553
|
signature: Hex;
|
|
631
554
|
}
|
|
@@ -637,7 +560,8 @@ export interface EthereumSendCallsCall {
|
|
|
637
560
|
to: string;
|
|
638
561
|
|
|
639
562
|
/**
|
|
640
|
-
* A hex-encoded string prefixed with '0x'
|
|
563
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
564
|
+
* bytes).
|
|
641
565
|
*/
|
|
642
566
|
data?: Hex;
|
|
643
567
|
|
|
@@ -670,7 +594,8 @@ export interface EthereumSendCallsRpcInput {
|
|
|
670
594
|
chain_type?: 'ethereum';
|
|
671
595
|
|
|
672
596
|
/**
|
|
673
|
-
* A hex-encoded string prefixed with '0x'
|
|
597
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
598
|
+
* bytes).
|
|
674
599
|
*/
|
|
675
600
|
experimental_data_suffix?: Hex;
|
|
676
601
|
|
|
@@ -731,7 +656,8 @@ export interface EthereumSendTransactionRpcInput {
|
|
|
731
656
|
chain_type?: 'ethereum';
|
|
732
657
|
|
|
733
658
|
/**
|
|
734
|
-
* A hex-encoded string prefixed with '0x'
|
|
659
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
660
|
+
* bytes).
|
|
735
661
|
*/
|
|
736
662
|
experimental_data_suffix?: Hex;
|
|
737
663
|
|
|
@@ -809,12 +735,14 @@ export interface EthereumSign7702Authorization {
|
|
|
809
735
|
nonce: Quantity;
|
|
810
736
|
|
|
811
737
|
/**
|
|
812
|
-
* A hex-encoded string prefixed with '0x'
|
|
738
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
739
|
+
* bytes).
|
|
813
740
|
*/
|
|
814
741
|
r: Hex;
|
|
815
742
|
|
|
816
743
|
/**
|
|
817
|
-
* A hex-encoded string prefixed with '0x'
|
|
744
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
745
|
+
* bytes).
|
|
818
746
|
*/
|
|
819
747
|
s: Hex;
|
|
820
748
|
|
|
@@ -1270,7 +1198,8 @@ export interface HpkeImportConfig {
|
|
|
1270
1198
|
}
|
|
1271
1199
|
|
|
1272
1200
|
/**
|
|
1273
|
-
* A hex-encoded string prefixed with '0x'
|
|
1201
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
1202
|
+
* bytes).
|
|
1274
1203
|
*/
|
|
1275
1204
|
export type Hex = string;
|
|
1276
1205
|
|
|
@@ -1462,7 +1391,8 @@ export interface RawSignBytesParams {
|
|
|
1462
1391
|
*/
|
|
1463
1392
|
export interface RawSignHashParams {
|
|
1464
1393
|
/**
|
|
1465
|
-
* A hex-encoded string prefixed with '0x'
|
|
1394
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
1395
|
+
* bytes).
|
|
1466
1396
|
*/
|
|
1467
1397
|
hash: Hex;
|
|
1468
1398
|
}
|
|
@@ -1502,7 +1432,8 @@ export interface RawSignResponseData {
|
|
|
1502
1432
|
encoding: 'hex';
|
|
1503
1433
|
|
|
1504
1434
|
/**
|
|
1505
|
-
* A hex-encoded string prefixed with '0x'
|
|
1435
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
1436
|
+
* bytes).
|
|
1506
1437
|
*/
|
|
1507
1438
|
signature: Hex;
|
|
1508
1439
|
}
|
|
@@ -2377,7 +2308,8 @@ export interface TempoAaAuthorization {
|
|
|
2377
2308
|
nonce: Quantity;
|
|
2378
2309
|
|
|
2379
2310
|
/**
|
|
2380
|
-
* A hex-encoded string prefixed with '0x'
|
|
2311
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2312
|
+
* bytes).
|
|
2381
2313
|
*/
|
|
2382
2314
|
signature: Hex;
|
|
2383
2315
|
}
|
|
@@ -2389,7 +2321,8 @@ export interface TempoCall {
|
|
|
2389
2321
|
to: string;
|
|
2390
2322
|
|
|
2391
2323
|
/**
|
|
2392
|
-
* A hex-encoded string prefixed with '0x'
|
|
2324
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2325
|
+
* bytes).
|
|
2393
2326
|
*/
|
|
2394
2327
|
data?: Hex;
|
|
2395
2328
|
|
|
@@ -2405,12 +2338,14 @@ export interface TempoCall {
|
|
|
2405
2338
|
*/
|
|
2406
2339
|
export interface TempoFeePayerSignature {
|
|
2407
2340
|
/**
|
|
2408
|
-
* A hex-encoded string prefixed with '0x'
|
|
2341
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2342
|
+
* bytes).
|
|
2409
2343
|
*/
|
|
2410
2344
|
r: Hex;
|
|
2411
2345
|
|
|
2412
2346
|
/**
|
|
2413
|
-
* A hex-encoded string prefixed with '0x'
|
|
2347
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2348
|
+
* bytes).
|
|
2414
2349
|
*/
|
|
2415
2350
|
s: Hex;
|
|
2416
2351
|
|
|
@@ -2628,7 +2563,8 @@ export interface UnsignedStandardEthereumTransaction {
|
|
|
2628
2563
|
chain_id?: Quantity;
|
|
2629
2564
|
|
|
2630
2565
|
/**
|
|
2631
|
-
* A hex-encoded string prefixed with '0x'
|
|
2566
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2567
|
+
* bytes).
|
|
2632
2568
|
*/
|
|
2633
2569
|
data?: Hex;
|
|
2634
2570
|
|
|
@@ -2758,56 +2694,66 @@ export namespace UnsignedTempoTransaction {
|
|
|
2758
2694
|
*/
|
|
2759
2695
|
export interface UserOperationInput {
|
|
2760
2696
|
/**
|
|
2761
|
-
* A hex-encoded string prefixed with '0x'
|
|
2697
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2698
|
+
* bytes).
|
|
2762
2699
|
*/
|
|
2763
2700
|
call_data: Hex;
|
|
2764
2701
|
|
|
2765
2702
|
/**
|
|
2766
|
-
* A hex-encoded string prefixed with '0x'
|
|
2703
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2704
|
+
* bytes).
|
|
2767
2705
|
*/
|
|
2768
2706
|
call_gas_limit: Hex;
|
|
2769
2707
|
|
|
2770
2708
|
/**
|
|
2771
|
-
* A hex-encoded string prefixed with '0x'
|
|
2709
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2710
|
+
* bytes).
|
|
2772
2711
|
*/
|
|
2773
2712
|
max_fee_per_gas: Hex;
|
|
2774
2713
|
|
|
2775
2714
|
/**
|
|
2776
|
-
* A hex-encoded string prefixed with '0x'
|
|
2715
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2716
|
+
* bytes).
|
|
2777
2717
|
*/
|
|
2778
2718
|
max_priority_fee_per_gas: Hex;
|
|
2779
2719
|
|
|
2780
2720
|
/**
|
|
2781
|
-
* A hex-encoded string prefixed with '0x'
|
|
2721
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2722
|
+
* bytes).
|
|
2782
2723
|
*/
|
|
2783
2724
|
nonce: Hex;
|
|
2784
2725
|
|
|
2785
2726
|
/**
|
|
2786
|
-
* A hex-encoded string prefixed with '0x'
|
|
2727
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2728
|
+
* bytes).
|
|
2787
2729
|
*/
|
|
2788
2730
|
pre_verification_gas: Hex;
|
|
2789
2731
|
|
|
2790
2732
|
sender: string;
|
|
2791
2733
|
|
|
2792
2734
|
/**
|
|
2793
|
-
* A hex-encoded string prefixed with '0x'
|
|
2735
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2736
|
+
* bytes).
|
|
2794
2737
|
*/
|
|
2795
2738
|
verification_gas_limit: Hex;
|
|
2796
2739
|
|
|
2797
2740
|
paymaster?: string;
|
|
2798
2741
|
|
|
2799
2742
|
/**
|
|
2800
|
-
* A hex-encoded string prefixed with '0x'
|
|
2743
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2744
|
+
* bytes).
|
|
2801
2745
|
*/
|
|
2802
2746
|
paymaster_data?: Hex;
|
|
2803
2747
|
|
|
2804
2748
|
/**
|
|
2805
|
-
* A hex-encoded string prefixed with '0x'
|
|
2749
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2750
|
+
* bytes).
|
|
2806
2751
|
*/
|
|
2807
2752
|
paymaster_post_op_gas_limit?: Hex;
|
|
2808
2753
|
|
|
2809
2754
|
/**
|
|
2810
|
-
* A hex-encoded string prefixed with '0x'
|
|
2755
|
+
* A hex-encoded string prefixed with '0x', capped at 100002 characters (50,000
|
|
2756
|
+
* bytes).
|
|
2811
2757
|
*/
|
|
2812
2758
|
paymaster_verification_gas_limit?: Hex;
|
|
2813
2759
|
}
|
|
@@ -2962,6 +2908,68 @@ export interface WalletAuthenticateRequestBody {
|
|
|
2962
2908
|
user_jwt: string;
|
|
2963
2909
|
}
|
|
2964
2910
|
|
|
2911
|
+
/**
|
|
2912
|
+
* The response from authenticating a wallet, containing an authorization key and
|
|
2913
|
+
* wallet data.
|
|
2914
|
+
*/
|
|
2915
|
+
export type WalletAuthenticateWithJwtResponse =
|
|
2916
|
+
| WalletAuthenticateWithJwtResponse.WithEncryption
|
|
2917
|
+
| WalletAuthenticateWithJwtResponse.WithoutEncryption;
|
|
2918
|
+
|
|
2919
|
+
export namespace WalletAuthenticateWithJwtResponse {
|
|
2920
|
+
export interface WithEncryption {
|
|
2921
|
+
/**
|
|
2922
|
+
* The encrypted authorization key data.
|
|
2923
|
+
*/
|
|
2924
|
+
encrypted_authorization_key: WithEncryption.EncryptedAuthorizationKey;
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
2928
|
+
*/
|
|
2929
|
+
expires_at: number;
|
|
2930
|
+
|
|
2931
|
+
wallets: Array<WalletsAPI.Wallet>;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
export namespace WithEncryption {
|
|
2935
|
+
/**
|
|
2936
|
+
* The encrypted authorization key data.
|
|
2937
|
+
*/
|
|
2938
|
+
export interface EncryptedAuthorizationKey {
|
|
2939
|
+
/**
|
|
2940
|
+
* The encrypted authorization key corresponding to the user's current
|
|
2941
|
+
* authentication session.
|
|
2942
|
+
*/
|
|
2943
|
+
ciphertext: string;
|
|
2944
|
+
|
|
2945
|
+
/**
|
|
2946
|
+
* Base64-encoded ephemeral public key used in the HPKE encryption process.
|
|
2947
|
+
* Required for decryption.
|
|
2948
|
+
*/
|
|
2949
|
+
encapsulated_key: string;
|
|
2950
|
+
|
|
2951
|
+
/**
|
|
2952
|
+
* The encryption type used. Currently only supports HPKE.
|
|
2953
|
+
*/
|
|
2954
|
+
encryption_type: 'HPKE';
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
export interface WithoutEncryption {
|
|
2959
|
+
/**
|
|
2960
|
+
* The raw authorization key data.
|
|
2961
|
+
*/
|
|
2962
|
+
authorization_key: string;
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
2966
|
+
*/
|
|
2967
|
+
expires_at: number;
|
|
2968
|
+
|
|
2969
|
+
wallets: Array<WalletsAPI.Wallet>;
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2965
2973
|
/**
|
|
2966
2974
|
* Headers required to authorize wallet operations.
|
|
2967
2975
|
*/
|
|
@@ -3118,6 +3126,21 @@ export type WalletChainType =
|
|
|
3118
3126
|
| 'starknet'
|
|
3119
3127
|
| 'spark';
|
|
3120
3128
|
|
|
3129
|
+
/**
|
|
3130
|
+
* The response from creating wallets with an associated recovery user.
|
|
3131
|
+
*/
|
|
3132
|
+
export interface WalletCreateWalletsWithRecoveryResponse {
|
|
3133
|
+
/**
|
|
3134
|
+
* The ID of the created user.
|
|
3135
|
+
*/
|
|
3136
|
+
recovery_user_id: string;
|
|
3137
|
+
|
|
3138
|
+
/**
|
|
3139
|
+
* The wallets that were created.
|
|
3140
|
+
*/
|
|
3141
|
+
wallets: Array<Wallet>;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3121
3144
|
/**
|
|
3122
3145
|
* Information about the custodian managing this wallet.
|
|
3123
3146
|
*/
|
|
@@ -3208,6 +3231,13 @@ export type WalletImportSupportedChains = 'ethereum' | 'solana';
|
|
|
3208
3231
|
*/
|
|
3209
3232
|
export type WalletImportSupportedEntropyTypes = 'private-key' | 'hd';
|
|
3210
3233
|
|
|
3234
|
+
/**
|
|
3235
|
+
* The response body from revoking a wallet delegation.
|
|
3236
|
+
*/
|
|
3237
|
+
export interface WalletRevokeResponse {
|
|
3238
|
+
message: string;
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3211
3241
|
/**
|
|
3212
3242
|
* Request body for wallet RPC operations, discriminated by method.
|
|
3213
3243
|
*/
|
|
@@ -3300,88 +3330,6 @@ export interface WalletUpdateRequestBody {
|
|
|
3300
3330
|
policy_ids?: Array<string>;
|
|
3301
3331
|
}
|
|
3302
3332
|
|
|
3303
|
-
export interface WalletInitImportResponse {
|
|
3304
|
-
/**
|
|
3305
|
-
* The base64-encoded encryption public key to encrypt the wallet entropy with.
|
|
3306
|
-
*/
|
|
3307
|
-
encryption_public_key: string;
|
|
3308
|
-
|
|
3309
|
-
/**
|
|
3310
|
-
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
3311
|
-
*/
|
|
3312
|
-
encryption_type: HpkeEncryption;
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
export type WalletAuthenticateWithJwtResponse =
|
|
3316
|
-
| WalletAuthenticateWithJwtResponse.WithEncryption
|
|
3317
|
-
| WalletAuthenticateWithJwtResponse.WithoutEncryption;
|
|
3318
|
-
|
|
3319
|
-
export namespace WalletAuthenticateWithJwtResponse {
|
|
3320
|
-
export interface WithEncryption {
|
|
3321
|
-
/**
|
|
3322
|
-
* The encrypted authorization key data.
|
|
3323
|
-
*/
|
|
3324
|
-
encrypted_authorization_key: WithEncryption.EncryptedAuthorizationKey;
|
|
3325
|
-
|
|
3326
|
-
/**
|
|
3327
|
-
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
3328
|
-
*/
|
|
3329
|
-
expires_at: number;
|
|
3330
|
-
|
|
3331
|
-
wallets: Array<WalletsAPI.Wallet>;
|
|
3332
|
-
}
|
|
3333
|
-
|
|
3334
|
-
export namespace WithEncryption {
|
|
3335
|
-
/**
|
|
3336
|
-
* The encrypted authorization key data.
|
|
3337
|
-
*/
|
|
3338
|
-
export interface EncryptedAuthorizationKey {
|
|
3339
|
-
/**
|
|
3340
|
-
* The encrypted authorization key corresponding to the user's current
|
|
3341
|
-
* authentication session.
|
|
3342
|
-
*/
|
|
3343
|
-
ciphertext: string;
|
|
3344
|
-
|
|
3345
|
-
/**
|
|
3346
|
-
* Base64-encoded ephemeral public key used in the HPKE encryption process.
|
|
3347
|
-
* Required for decryption.
|
|
3348
|
-
*/
|
|
3349
|
-
encapsulated_key: string;
|
|
3350
|
-
|
|
3351
|
-
/**
|
|
3352
|
-
* The encryption type used. Currently only supports HPKE.
|
|
3353
|
-
*/
|
|
3354
|
-
encryption_type: 'HPKE';
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
|
|
3358
|
-
export interface WithoutEncryption {
|
|
3359
|
-
/**
|
|
3360
|
-
* The raw authorization key data.
|
|
3361
|
-
*/
|
|
3362
|
-
authorization_key: string;
|
|
3363
|
-
|
|
3364
|
-
/**
|
|
3365
|
-
* The expiration time of the authorization key in milliseconds since the epoch.
|
|
3366
|
-
*/
|
|
3367
|
-
expires_at: number;
|
|
3368
|
-
|
|
3369
|
-
wallets: Array<WalletsAPI.Wallet>;
|
|
3370
|
-
}
|
|
3371
|
-
}
|
|
3372
|
-
|
|
3373
|
-
export interface WalletCreateWalletsWithRecoveryResponse {
|
|
3374
|
-
/**
|
|
3375
|
-
* The ID of the created user.
|
|
3376
|
-
*/
|
|
3377
|
-
recovery_user_id: string;
|
|
3378
|
-
|
|
3379
|
-
/**
|
|
3380
|
-
* The wallets that were created.
|
|
3381
|
-
*/
|
|
3382
|
-
wallets: Array<Wallet>;
|
|
3383
|
-
}
|
|
3384
|
-
|
|
3385
3333
|
export interface WalletCreateParams {
|
|
3386
3334
|
/**
|
|
3387
3335
|
* Body param: The wallet chain types.
|
|
@@ -3429,6 +3377,48 @@ export interface WalletCreateParams {
|
|
|
3429
3377
|
'privy-idempotency-key'?: string;
|
|
3430
3378
|
}
|
|
3431
3379
|
|
|
3380
|
+
export interface WalletUpdateParams {
|
|
3381
|
+
/**
|
|
3382
|
+
* Body param: Additional signers for the wallet.
|
|
3383
|
+
*/
|
|
3384
|
+
additional_signers?: AdditionalSignerInput;
|
|
3385
|
+
|
|
3386
|
+
/**
|
|
3387
|
+
* Body param: A human-readable label for the wallet. Set to null to clear.
|
|
3388
|
+
*/
|
|
3389
|
+
display_name?: string | null;
|
|
3390
|
+
|
|
3391
|
+
/**
|
|
3392
|
+
* Body param: The owner of the resource, specified as a Privy user ID, a P-256
|
|
3393
|
+
* public key, or null to remove the current owner.
|
|
3394
|
+
*/
|
|
3395
|
+
owner?: SharedAPI.OwnerInput | null;
|
|
3396
|
+
|
|
3397
|
+
/**
|
|
3398
|
+
* Body param: The key quorum ID to set as the owner of the resource. If you
|
|
3399
|
+
* provide this, do not specify an owner.
|
|
3400
|
+
*/
|
|
3401
|
+
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
3402
|
+
|
|
3403
|
+
/**
|
|
3404
|
+
* Body param: New policy IDs to enforce on the wallet. Currently, only one policy
|
|
3405
|
+
* is supported per wallet.
|
|
3406
|
+
*/
|
|
3407
|
+
policy_ids?: Array<string>;
|
|
3408
|
+
|
|
3409
|
+
/**
|
|
3410
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
3411
|
+
* required, they should be comma separated.
|
|
3412
|
+
*/
|
|
3413
|
+
'privy-authorization-signature'?: string;
|
|
3414
|
+
|
|
3415
|
+
/**
|
|
3416
|
+
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
3417
|
+
* representing the deadline by which the request must be processed.
|
|
3418
|
+
*/
|
|
3419
|
+
'privy-request-expiry'?: string;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3432
3422
|
export interface WalletListParams extends CursorParams {
|
|
3433
3423
|
/**
|
|
3434
3424
|
* Filter wallets by authorization public key. Returns wallets owned by key quorums
|
|
@@ -3484,60 +3474,6 @@ export interface WalletExportParams {
|
|
|
3484
3474
|
'privy-request-expiry'?: string;
|
|
3485
3475
|
}
|
|
3486
3476
|
|
|
3487
|
-
export type WalletInitImportParams =
|
|
3488
|
-
| WalletInitImportParams.HDInitInput
|
|
3489
|
-
| WalletInitImportParams.PrivateKeyInitInput;
|
|
3490
|
-
|
|
3491
|
-
export declare namespace WalletInitImportParams {
|
|
3492
|
-
export interface HDInitInput {
|
|
3493
|
-
/**
|
|
3494
|
-
* The address of the wallet to import.
|
|
3495
|
-
*/
|
|
3496
|
-
address: string;
|
|
3497
|
-
|
|
3498
|
-
/**
|
|
3499
|
-
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
3500
|
-
* `solana`.
|
|
3501
|
-
*/
|
|
3502
|
-
chain_type: WalletImportSupportedChains;
|
|
3503
|
-
|
|
3504
|
-
/**
|
|
3505
|
-
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
3506
|
-
*/
|
|
3507
|
-
encryption_type: HpkeEncryption;
|
|
3508
|
-
|
|
3509
|
-
/**
|
|
3510
|
-
* The entropy type of the wallet to import.
|
|
3511
|
-
*/
|
|
3512
|
-
entropy_type: 'hd';
|
|
3513
|
-
|
|
3514
|
-
/**
|
|
3515
|
-
* The index of the wallet to import.
|
|
3516
|
-
*/
|
|
3517
|
-
index: number;
|
|
3518
|
-
}
|
|
3519
|
-
|
|
3520
|
-
export interface PrivateKeyInitInput {
|
|
3521
|
-
/**
|
|
3522
|
-
* The address of the wallet to import.
|
|
3523
|
-
*/
|
|
3524
|
-
address: string;
|
|
3525
|
-
|
|
3526
|
-
/**
|
|
3527
|
-
* The chain type of the wallet to import. Currently supports `ethereum` and
|
|
3528
|
-
* `solana`.
|
|
3529
|
-
*/
|
|
3530
|
-
chain_type: WalletImportSupportedChains;
|
|
3531
|
-
|
|
3532
|
-
/**
|
|
3533
|
-
* The encryption type of the wallet to import. Currently only supports `HPKE`.
|
|
3534
|
-
*/
|
|
3535
|
-
encryption_type: HpkeEncryption;
|
|
3536
|
-
|
|
3537
|
-
entropy_type: 'private-key';
|
|
3538
|
-
}
|
|
3539
|
-
}
|
|
3540
|
-
|
|
3541
3477
|
export interface WalletRawSignParams {
|
|
3542
3478
|
/**
|
|
3543
3479
|
* Body param: Parameters for the `raw_sign` RPC.
|
|
@@ -3660,7 +3596,8 @@ export declare namespace WalletRpcParams {
|
|
|
3660
3596
|
chain_type?: 'ethereum';
|
|
3661
3597
|
|
|
3662
3598
|
/**
|
|
3663
|
-
* Body param: A hex-encoded string prefixed with '0x'
|
|
3599
|
+
* Body param: A hex-encoded string prefixed with '0x', capped at 100002 characters
|
|
3600
|
+
* (50,000 bytes).
|
|
3664
3601
|
*/
|
|
3665
3602
|
experimental_data_suffix?: Hex;
|
|
3666
3603
|
|
|
@@ -3950,7 +3887,8 @@ export declare namespace WalletRpcParams {
|
|
|
3950
3887
|
chain_type?: 'ethereum';
|
|
3951
3888
|
|
|
3952
3889
|
/**
|
|
3953
|
-
* Body param: A hex-encoded string prefixed with '0x'
|
|
3890
|
+
* Body param: A hex-encoded string prefixed with '0x', capped at 100002 characters
|
|
3891
|
+
* (50,000 bytes).
|
|
3954
3892
|
*/
|
|
3955
3893
|
experimental_data_suffix?: Hex;
|
|
3956
3894
|
|
|
@@ -4511,159 +4449,11 @@ export declare namespace WalletRpcParams {
|
|
|
4511
4449
|
}
|
|
4512
4450
|
}
|
|
4513
4451
|
|
|
4514
|
-
export interface WalletSubmitImportParams {
|
|
4515
|
-
/**
|
|
4516
|
-
* The submission input for importing an HD wallet.
|
|
4517
|
-
*/
|
|
4518
|
-
wallet: HDSubmitInput | PrivateKeySubmitInput;
|
|
4519
|
-
|
|
4520
|
-
/**
|
|
4521
|
-
* Additional signers for the wallet.
|
|
4522
|
-
*/
|
|
4523
|
-
additional_signers?: AdditionalSignerInput;
|
|
4524
|
-
|
|
4525
|
-
/**
|
|
4526
|
-
* A human-readable label for the wallet.
|
|
4527
|
-
*/
|
|
4528
|
-
display_name?: string;
|
|
4529
|
-
|
|
4530
|
-
/**
|
|
4531
|
-
* A customer-provided identifier for mapping to external systems. URL-safe
|
|
4532
|
-
* characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
|
|
4533
|
-
* after creation.
|
|
4534
|
-
*/
|
|
4535
|
-
external_id?: string;
|
|
4536
|
-
|
|
4537
|
-
/**
|
|
4538
|
-
* The owner of the resource, specified as a Privy user ID, a P-256 public key, or
|
|
4539
|
-
* null to remove the current owner.
|
|
4540
|
-
*/
|
|
4541
|
-
owner?: SharedAPI.OwnerInput | null;
|
|
4542
|
-
|
|
4543
|
-
/**
|
|
4544
|
-
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
4545
|
-
* not specify an owner.
|
|
4546
|
-
*/
|
|
4547
|
-
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
4548
|
-
|
|
4549
|
-
/**
|
|
4550
|
-
* An optional list of up to one policy ID to enforce on the wallet.
|
|
4551
|
-
*/
|
|
4552
|
-
policy_ids?: PolicyInput;
|
|
4553
|
-
}
|
|
4554
|
-
|
|
4555
|
-
export interface WalletUpdateParams {
|
|
4556
|
-
/**
|
|
4557
|
-
* Body param: Additional signers for the wallet.
|
|
4558
|
-
*/
|
|
4559
|
-
additional_signers?: AdditionalSignerInput;
|
|
4560
|
-
|
|
4561
|
-
/**
|
|
4562
|
-
* Body param: A human-readable label for the wallet. Set to null to clear.
|
|
4563
|
-
*/
|
|
4564
|
-
display_name?: string | null;
|
|
4565
|
-
|
|
4566
|
-
/**
|
|
4567
|
-
* Body param: The owner of the resource, specified as a Privy user ID, a P-256
|
|
4568
|
-
* public key, or null to remove the current owner.
|
|
4569
|
-
*/
|
|
4570
|
-
owner?: SharedAPI.OwnerInput | null;
|
|
4571
|
-
|
|
4572
|
-
/**
|
|
4573
|
-
* Body param: The key quorum ID to set as the owner of the resource. If you
|
|
4574
|
-
* provide this, do not specify an owner.
|
|
4575
|
-
*/
|
|
4576
|
-
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
4577
|
-
|
|
4578
|
-
/**
|
|
4579
|
-
* Body param: New policy IDs to enforce on the wallet. Currently, only one policy
|
|
4580
|
-
* is supported per wallet.
|
|
4581
|
-
*/
|
|
4582
|
-
policy_ids?: Array<string>;
|
|
4583
|
-
|
|
4584
|
-
/**
|
|
4585
|
-
* Header param: Request authorization signature. If multiple signatures are
|
|
4586
|
-
* required, they should be comma separated.
|
|
4587
|
-
*/
|
|
4588
|
-
'privy-authorization-signature'?: string;
|
|
4589
|
-
|
|
4590
|
-
/**
|
|
4591
|
-
* Header param: Request expiry. Value is a Unix timestamp in milliseconds
|
|
4592
|
-
* representing the deadline by which the request must be processed.
|
|
4593
|
-
*/
|
|
4594
|
-
'privy-request-expiry'?: string;
|
|
4595
|
-
}
|
|
4596
|
-
|
|
4597
|
-
export interface WalletAuthenticateWithJwtParams {
|
|
4598
|
-
/**
|
|
4599
|
-
* The encryption type for the authentication response. Currently only supports
|
|
4600
|
-
* HPKE.
|
|
4601
|
-
*/
|
|
4602
|
-
encryption_type: 'HPKE';
|
|
4603
|
-
|
|
4604
|
-
/**
|
|
4605
|
-
* The public key of your ECDH keypair, in base64-encoded, SPKI-format, whose
|
|
4606
|
-
* private key will be able to decrypt the session key.
|
|
4607
|
-
*/
|
|
4608
|
-
recipient_public_key: string;
|
|
4609
|
-
|
|
4610
|
-
/**
|
|
4611
|
-
* The user's JWT, to be used to authenticate the user.
|
|
4612
|
-
*/
|
|
4613
|
-
user_jwt: string;
|
|
4614
|
-
}
|
|
4615
|
-
|
|
4616
|
-
export interface WalletCreateWalletsWithRecoveryParams {
|
|
4617
|
-
primary_signer: WalletCreateWalletsWithRecoveryParams.PrimarySigner;
|
|
4618
|
-
|
|
4619
|
-
recovery_user: WalletCreateWalletsWithRecoveryParams.RecoveryUser;
|
|
4620
|
-
|
|
4621
|
-
wallets: Array<WalletCreateWalletsWithRecoveryParams.Wallet>;
|
|
4622
|
-
}
|
|
4623
|
-
|
|
4624
|
-
export namespace WalletCreateWalletsWithRecoveryParams {
|
|
4625
|
-
export interface PrimarySigner {
|
|
4626
|
-
/**
|
|
4627
|
-
* The JWT subject ID of the user.
|
|
4628
|
-
*/
|
|
4629
|
-
subject_id: string;
|
|
4630
|
-
}
|
|
4631
|
-
|
|
4632
|
-
export interface RecoveryUser {
|
|
4633
|
-
linked_accounts: Array<UsersAPI.LinkedAccountEmailInput | UsersAPI.LinkedAccountCustomJwtInput>;
|
|
4634
|
-
}
|
|
4635
|
-
|
|
4636
|
-
export interface Wallet {
|
|
4637
|
-
/**
|
|
4638
|
-
* The wallet chain types.
|
|
4639
|
-
*/
|
|
4640
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
4641
|
-
|
|
4642
|
-
/**
|
|
4643
|
-
* A human-readable label for the wallet.
|
|
4644
|
-
*/
|
|
4645
|
-
display_name?: string;
|
|
4646
|
-
|
|
4647
|
-
/**
|
|
4648
|
-
* A customer-provided identifier for mapping to external systems. URL-safe
|
|
4649
|
-
* characters only ([a-zA-Z0-9_-]), max 64 chars. Write-once: cannot be changed
|
|
4650
|
-
* after creation.
|
|
4651
|
-
*/
|
|
4652
|
-
external_id?: string;
|
|
4653
|
-
|
|
4654
|
-
/**
|
|
4655
|
-
* An optional list of up to one policy ID to enforce on the wallet.
|
|
4656
|
-
*/
|
|
4657
|
-
policy_ids?: WalletsAPI.PolicyInput;
|
|
4658
|
-
}
|
|
4659
|
-
}
|
|
4660
|
-
|
|
4661
|
-
Wallets.Transactions = Transactions;
|
|
4662
4452
|
Wallets.Balance = Balance;
|
|
4453
|
+
Wallets.Transactions = Transactions;
|
|
4663
4454
|
|
|
4664
4455
|
export declare namespace Wallets {
|
|
4665
4456
|
export {
|
|
4666
|
-
type WalletRevokeResponse as WalletRevokeResponse,
|
|
4667
4457
|
type AdditionalSignerInput as AdditionalSignerInput,
|
|
4668
4458
|
type AdditionalSignerItemInput as AdditionalSignerItemInput,
|
|
4669
4459
|
type Address as Address,
|
|
@@ -4835,12 +4625,14 @@ export declare namespace Wallets {
|
|
|
4835
4625
|
type WalletAPIRevokeAuthorizationKeyInput as WalletAPIRevokeAuthorizationKeyInput,
|
|
4836
4626
|
type WalletAsset as WalletAsset,
|
|
4837
4627
|
type WalletAuthenticateRequestBody as WalletAuthenticateRequestBody,
|
|
4628
|
+
type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
|
|
4838
4629
|
type WalletAuthorizationHeaders as WalletAuthorizationHeaders,
|
|
4839
4630
|
type WalletBatchCreateInput as WalletBatchCreateInput,
|
|
4840
4631
|
type WalletBatchCreateResponse as WalletBatchCreateResponse,
|
|
4841
4632
|
type WalletBatchCreateResult as WalletBatchCreateResult,
|
|
4842
4633
|
type WalletBatchItemInput as WalletBatchItemInput,
|
|
4843
4634
|
type WalletChainType as WalletChainType,
|
|
4635
|
+
type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
|
|
4844
4636
|
type WalletCustodian as WalletCustodian,
|
|
4845
4637
|
type WalletEntropyType as WalletEntropyType,
|
|
4846
4638
|
type WalletEthereumAsset as WalletEthereumAsset,
|
|
@@ -4849,30 +4641,18 @@ export declare namespace Wallets {
|
|
|
4849
4641
|
type WalletImportInitResponse as WalletImportInitResponse,
|
|
4850
4642
|
type WalletImportSupportedChains as WalletImportSupportedChains,
|
|
4851
4643
|
type WalletImportSupportedEntropyTypes as WalletImportSupportedEntropyTypes,
|
|
4644
|
+
type WalletRevokeResponse as WalletRevokeResponse,
|
|
4852
4645
|
type WalletRpcRequestBody as WalletRpcRequestBody,
|
|
4853
4646
|
type WalletRpcResponse as WalletRpcResponse,
|
|
4854
4647
|
type WalletSolanaAsset as WalletSolanaAsset,
|
|
4855
4648
|
type WalletUpdateRequestBody as WalletUpdateRequestBody,
|
|
4856
|
-
type WalletInitImportResponse as WalletInitImportResponse,
|
|
4857
|
-
type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
|
|
4858
|
-
type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
|
|
4859
4649
|
type WalletsCursor as WalletsCursor,
|
|
4860
4650
|
type WalletCreateParams as WalletCreateParams,
|
|
4651
|
+
type WalletUpdateParams as WalletUpdateParams,
|
|
4861
4652
|
type WalletListParams as WalletListParams,
|
|
4862
4653
|
type WalletExportParams as WalletExportParams,
|
|
4863
|
-
type WalletInitImportParams as WalletInitImportParams,
|
|
4864
4654
|
type WalletRawSignParams as WalletRawSignParams,
|
|
4865
4655
|
type WalletRpcParams as WalletRpcParams,
|
|
4866
|
-
type WalletSubmitImportParams as WalletSubmitImportParams,
|
|
4867
|
-
type WalletUpdateParams as WalletUpdateParams,
|
|
4868
|
-
type WalletAuthenticateWithJwtParams as WalletAuthenticateWithJwtParams,
|
|
4869
|
-
type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams,
|
|
4870
|
-
};
|
|
4871
|
-
|
|
4872
|
-
export {
|
|
4873
|
-
Transactions as Transactions,
|
|
4874
|
-
type TransactionGetResponse as TransactionGetResponse,
|
|
4875
|
-
type TransactionGetParams as TransactionGetParams,
|
|
4876
4656
|
};
|
|
4877
4657
|
|
|
4878
4658
|
export {
|
|
@@ -4880,4 +4660,10 @@ export declare namespace Wallets {
|
|
|
4880
4660
|
type BalanceGetResponse as BalanceGetResponse,
|
|
4881
4661
|
type BalanceGetParams as BalanceGetParams,
|
|
4882
4662
|
};
|
|
4663
|
+
|
|
4664
|
+
export {
|
|
4665
|
+
Transactions as Transactions,
|
|
4666
|
+
type TransactionGetResponse as TransactionGetResponse,
|
|
4667
|
+
type TransactionGetParams as TransactionGetParams,
|
|
4668
|
+
};
|
|
4883
4669
|
}
|