@privy-io/api-types 0.1.1 → 0.3.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 +33 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/client-auth.d.mts +1 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +1 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +2 -2
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +2 -2
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/key-quorums.d.mts +18 -3
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +18 -3
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +128 -22
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +128 -22
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +7 -4
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +7 -4
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +1 -1
- package/resources/users.mjs +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 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +3 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +559 -214
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +559 -214
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +7 -3
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +7 -3
- package/resources/wallets/wallets.mjs.map +1 -1
- package/src/client.ts +42 -0
- package/src/resources/client-auth.ts +1 -1
- package/src/resources/embedded-wallets.ts +2 -2
- package/src/resources/index.ts +21 -0
- package/src/resources/key-quorums.ts +18 -3
- package/src/resources/policies.ts +216 -6
- package/src/resources/users.ts +7 -17
- package/src/resources/wallets/index.ts +21 -0
- package/src/resources/wallets/transactions.ts +4 -2
- package/src/resources/wallets/wallets.ts +736 -245
- 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
|
@@ -68,7 +68,11 @@ export declare class Wallets extends APIResource {
|
|
|
68
68
|
* ```ts
|
|
69
69
|
* const response = await client.wallets._rawSign(
|
|
70
70
|
* 'wallet_id',
|
|
71
|
-
* {
|
|
71
|
+
* {
|
|
72
|
+
* params: {
|
|
73
|
+
* hash: '0x0775aeed9c9ce6e0fbc4db25c5e4e6368029651c905c286f813126a09025a21e',
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
72
76
|
* );
|
|
73
77
|
* ```
|
|
74
78
|
*/
|
|
@@ -79,8 +83,8 @@ export declare class Wallets extends APIResource {
|
|
|
79
83
|
* @example
|
|
80
84
|
* ```ts
|
|
81
85
|
* const response = await client.wallets._rpc('wallet_id', {
|
|
82
|
-
* method: '
|
|
83
|
-
* params: {
|
|
86
|
+
* method: 'personal_sign',
|
|
87
|
+
* params: { encoding: 'utf-8', message: 'message' },
|
|
84
88
|
* });
|
|
85
89
|
* ```
|
|
86
90
|
*/
|
|
@@ -150,7 +154,7 @@ export type CurveSigningChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'mo
|
|
|
150
154
|
/**
|
|
151
155
|
* The wallet chain types that offer first class support.
|
|
152
156
|
*/
|
|
153
|
-
export type FirstClassChainType = '
|
|
157
|
+
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
154
158
|
export interface Wallet {
|
|
155
159
|
/**
|
|
156
160
|
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
@@ -210,13 +214,394 @@ export declare namespace Wallet {
|
|
|
210
214
|
/**
|
|
211
215
|
* The wallet chain types.
|
|
212
216
|
*/
|
|
213
|
-
export type WalletChainType = '
|
|
217
|
+
export type WalletChainType = 'ethereum' | 'solana' | 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
214
218
|
/**
|
|
215
219
|
* The response body from revoking a wallet delegation.
|
|
216
220
|
*/
|
|
217
221
|
export interface WalletRevokeResponse {
|
|
218
222
|
message: string;
|
|
219
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* The wallet chain types that are not first class chains.
|
|
226
|
+
*/
|
|
227
|
+
export type ExtendedChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
228
|
+
/**
|
|
229
|
+
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
230
|
+
*/
|
|
231
|
+
export interface EthereumPersonalSignRpcInput {
|
|
232
|
+
method: 'personal_sign';
|
|
233
|
+
params: EthereumPersonalSignRpcInput.Params;
|
|
234
|
+
address?: string;
|
|
235
|
+
chain_type?: 'ethereum';
|
|
236
|
+
}
|
|
237
|
+
export declare namespace EthereumPersonalSignRpcInput {
|
|
238
|
+
interface Params {
|
|
239
|
+
encoding: 'utf-8' | 'hex';
|
|
240
|
+
message: string;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Executes the EVM `eth_signTransaction` RPC to sign a transaction.
|
|
245
|
+
*/
|
|
246
|
+
export interface EthereumSignTransactionRpcInput {
|
|
247
|
+
method: 'eth_signTransaction';
|
|
248
|
+
params: EthereumSignTransactionRpcInput.Params;
|
|
249
|
+
address?: string;
|
|
250
|
+
chain_type?: 'ethereum';
|
|
251
|
+
}
|
|
252
|
+
export declare namespace EthereumSignTransactionRpcInput {
|
|
253
|
+
interface Params {
|
|
254
|
+
transaction: Params.Transaction;
|
|
255
|
+
}
|
|
256
|
+
namespace Params {
|
|
257
|
+
interface Transaction {
|
|
258
|
+
chain_id?: string | number;
|
|
259
|
+
data?: string;
|
|
260
|
+
from?: string;
|
|
261
|
+
gas_limit?: string | number;
|
|
262
|
+
gas_price?: string | number;
|
|
263
|
+
max_fee_per_gas?: string | number;
|
|
264
|
+
max_priority_fee_per_gas?: string | number;
|
|
265
|
+
nonce?: string | number;
|
|
266
|
+
to?: string;
|
|
267
|
+
type?: 0 | 1 | 2;
|
|
268
|
+
value?: string | number;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Executes the EVM `eth_sendTransaction` RPC to sign and broadcast a transaction.
|
|
274
|
+
*/
|
|
275
|
+
export interface EthereumSendTransactionRpcInput {
|
|
276
|
+
caip2: string;
|
|
277
|
+
method: 'eth_sendTransaction';
|
|
278
|
+
params: EthereumSendTransactionRpcInput.Params;
|
|
279
|
+
address?: string;
|
|
280
|
+
chain_type?: 'ethereum';
|
|
281
|
+
sponsor?: boolean;
|
|
282
|
+
}
|
|
283
|
+
export declare namespace EthereumSendTransactionRpcInput {
|
|
284
|
+
interface Params {
|
|
285
|
+
transaction: Params.Transaction;
|
|
286
|
+
}
|
|
287
|
+
namespace Params {
|
|
288
|
+
interface Transaction {
|
|
289
|
+
chain_id?: string | number;
|
|
290
|
+
data?: string;
|
|
291
|
+
from?: string;
|
|
292
|
+
gas_limit?: string | number;
|
|
293
|
+
gas_price?: string | number;
|
|
294
|
+
max_fee_per_gas?: string | number;
|
|
295
|
+
max_priority_fee_per_gas?: string | number;
|
|
296
|
+
nonce?: string | number;
|
|
297
|
+
to?: string;
|
|
298
|
+
type?: 0 | 1 | 2;
|
|
299
|
+
value?: string | number;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Executes the EVM `eth_signTypedData_v4` RPC (EIP-712) to sign a typed data
|
|
305
|
+
* object.
|
|
306
|
+
*/
|
|
307
|
+
export interface EthereumSignTypedDataRpcInput {
|
|
308
|
+
method: 'eth_signTypedData_v4';
|
|
309
|
+
params: EthereumSignTypedDataRpcInput.Params;
|
|
310
|
+
address?: string;
|
|
311
|
+
chain_type?: 'ethereum';
|
|
312
|
+
}
|
|
313
|
+
export declare namespace EthereumSignTypedDataRpcInput {
|
|
314
|
+
interface Params {
|
|
315
|
+
typed_data: Params.TypedData;
|
|
316
|
+
}
|
|
317
|
+
namespace Params {
|
|
318
|
+
interface TypedData {
|
|
319
|
+
domain: {
|
|
320
|
+
[key: string]: unknown;
|
|
321
|
+
};
|
|
322
|
+
message: {
|
|
323
|
+
[key: string]: unknown;
|
|
324
|
+
};
|
|
325
|
+
primary_type: string;
|
|
326
|
+
types: {
|
|
327
|
+
[key: string]: Array<TypedData.Type>;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
namespace TypedData {
|
|
331
|
+
interface Type {
|
|
332
|
+
name: string;
|
|
333
|
+
type: string;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Executes an RPC method to hash and sign a UserOperation.
|
|
340
|
+
*/
|
|
341
|
+
export interface EthereumSignUserOperationRpcInput {
|
|
342
|
+
method: 'eth_signUserOperation';
|
|
343
|
+
params: EthereumSignUserOperationRpcInput.Params;
|
|
344
|
+
address?: string;
|
|
345
|
+
chain_type?: 'ethereum';
|
|
346
|
+
}
|
|
347
|
+
export declare namespace EthereumSignUserOperationRpcInput {
|
|
348
|
+
interface Params {
|
|
349
|
+
chain_id: string | number;
|
|
350
|
+
contract: string;
|
|
351
|
+
user_operation: Params.UserOperation;
|
|
352
|
+
}
|
|
353
|
+
namespace Params {
|
|
354
|
+
interface UserOperation {
|
|
355
|
+
call_data: string;
|
|
356
|
+
call_gas_limit: string;
|
|
357
|
+
max_fee_per_gas: string;
|
|
358
|
+
max_priority_fee_per_gas: string;
|
|
359
|
+
nonce: string;
|
|
360
|
+
paymaster: string;
|
|
361
|
+
paymaster_data: string;
|
|
362
|
+
paymaster_post_op_gas_limit: string;
|
|
363
|
+
paymaster_verification_gas_limit: string;
|
|
364
|
+
pre_verification_gas: string;
|
|
365
|
+
sender: string;
|
|
366
|
+
verification_gas_limit: string;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Signs an EIP-7702 authorization.
|
|
372
|
+
*/
|
|
373
|
+
export interface EthereumSign7702AuthorizationRpcInput {
|
|
374
|
+
method: 'eth_sign7702Authorization';
|
|
375
|
+
params: EthereumSign7702AuthorizationRpcInput.Params;
|
|
376
|
+
address?: string;
|
|
377
|
+
chain_type?: 'ethereum';
|
|
378
|
+
}
|
|
379
|
+
export declare namespace EthereumSign7702AuthorizationRpcInput {
|
|
380
|
+
interface Params {
|
|
381
|
+
chain_id: string | number;
|
|
382
|
+
contract: string;
|
|
383
|
+
nonce?: string | number;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Signs a raw hash on the secp256k1 curve.
|
|
388
|
+
*/
|
|
389
|
+
export interface EthereumSecp256k1SignRpcInput {
|
|
390
|
+
method: 'secp256k1_sign';
|
|
391
|
+
params: EthereumSecp256k1SignRpcInput.Params;
|
|
392
|
+
address?: string;
|
|
393
|
+
chain_type?: 'ethereum';
|
|
394
|
+
}
|
|
395
|
+
export declare namespace EthereumSecp256k1SignRpcInput {
|
|
396
|
+
interface Params {
|
|
397
|
+
hash: string;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Executes the SVM `signTransaction` RPC to sign a transaction.
|
|
402
|
+
*/
|
|
403
|
+
export interface SolanaSignTransactionRpcInput {
|
|
404
|
+
method: 'signTransaction';
|
|
405
|
+
params: SolanaSignTransactionRpcInput.Params;
|
|
406
|
+
address?: string;
|
|
407
|
+
chain_type?: 'solana';
|
|
408
|
+
}
|
|
409
|
+
export declare namespace SolanaSignTransactionRpcInput {
|
|
410
|
+
interface Params {
|
|
411
|
+
encoding: 'base64';
|
|
412
|
+
transaction: string;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Executes the SVM `signAndSendTransaction` RPC to sign and broadcast a
|
|
417
|
+
* transaction.
|
|
418
|
+
*/
|
|
419
|
+
export interface SolanaSignAndSendTransactionRpcInput {
|
|
420
|
+
caip2: string;
|
|
421
|
+
method: 'signAndSendTransaction';
|
|
422
|
+
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
423
|
+
address?: string;
|
|
424
|
+
chain_type?: 'solana';
|
|
425
|
+
sponsor?: boolean;
|
|
426
|
+
}
|
|
427
|
+
export declare namespace SolanaSignAndSendTransactionRpcInput {
|
|
428
|
+
interface Params {
|
|
429
|
+
encoding: 'base64';
|
|
430
|
+
transaction: string;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Executes the SVM `signMessage` RPC to sign a message.
|
|
435
|
+
*/
|
|
436
|
+
export interface SolanaSignMessageRpcInput {
|
|
437
|
+
method: 'signMessage';
|
|
438
|
+
params: SolanaSignMessageRpcInput.Params;
|
|
439
|
+
address?: string;
|
|
440
|
+
chain_type?: 'solana';
|
|
441
|
+
}
|
|
442
|
+
export declare namespace SolanaSignMessageRpcInput {
|
|
443
|
+
interface Params {
|
|
444
|
+
encoding: 'base64';
|
|
445
|
+
message: string;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Response to the EVM `eth_signTransaction` RPC.
|
|
450
|
+
*/
|
|
451
|
+
export interface EthereumSignTransactionRpcResponse {
|
|
452
|
+
data: EthereumSignTransactionRpcResponse.Data;
|
|
453
|
+
method: 'eth_signTransaction';
|
|
454
|
+
}
|
|
455
|
+
export declare namespace EthereumSignTransactionRpcResponse {
|
|
456
|
+
interface Data {
|
|
457
|
+
encoding: 'rlp';
|
|
458
|
+
signed_transaction: string;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Response to the EVM `eth_sendTransaction` RPC.
|
|
463
|
+
*/
|
|
464
|
+
export interface EthereumSendTransactionRpcResponse {
|
|
465
|
+
data: EthereumSendTransactionRpcResponse.Data;
|
|
466
|
+
method: 'eth_sendTransaction';
|
|
467
|
+
}
|
|
468
|
+
export declare namespace EthereumSendTransactionRpcResponse {
|
|
469
|
+
interface Data {
|
|
470
|
+
caip2: string;
|
|
471
|
+
hash: string;
|
|
472
|
+
transaction_id?: string;
|
|
473
|
+
transaction_request?: Data.TransactionRequest;
|
|
474
|
+
}
|
|
475
|
+
namespace Data {
|
|
476
|
+
interface TransactionRequest {
|
|
477
|
+
chain_id?: string | number;
|
|
478
|
+
data?: string;
|
|
479
|
+
from?: string;
|
|
480
|
+
gas_limit?: string | number;
|
|
481
|
+
gas_price?: string | number;
|
|
482
|
+
max_fee_per_gas?: string | number;
|
|
483
|
+
max_priority_fee_per_gas?: string | number;
|
|
484
|
+
nonce?: string | number;
|
|
485
|
+
to?: string;
|
|
486
|
+
type?: 0 | 1 | 2;
|
|
487
|
+
value?: string | number;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Response to the EVM `personal_sign` RPC.
|
|
493
|
+
*/
|
|
494
|
+
export interface EthereumPersonalSignRpcResponse {
|
|
495
|
+
data: EthereumPersonalSignRpcResponse.Data;
|
|
496
|
+
method: 'personal_sign';
|
|
497
|
+
}
|
|
498
|
+
export declare namespace EthereumPersonalSignRpcResponse {
|
|
499
|
+
interface Data {
|
|
500
|
+
encoding: 'hex';
|
|
501
|
+
signature: string;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Response to the EVM `eth_signTypedData_v4` RPC.
|
|
506
|
+
*/
|
|
507
|
+
export interface EthereumSignTypedDataRpcResponse {
|
|
508
|
+
data: EthereumSignTypedDataRpcResponse.Data;
|
|
509
|
+
method: 'eth_signTypedData_v4';
|
|
510
|
+
}
|
|
511
|
+
export declare namespace EthereumSignTypedDataRpcResponse {
|
|
512
|
+
interface Data {
|
|
513
|
+
encoding: 'hex';
|
|
514
|
+
signature: string;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Response to the EVM `eth_signUserOperation` RPC.
|
|
519
|
+
*/
|
|
520
|
+
export interface EthereumSignUserOperationRpcResponse {
|
|
521
|
+
data: EthereumSignUserOperationRpcResponse.Data;
|
|
522
|
+
method: 'eth_signUserOperation';
|
|
523
|
+
}
|
|
524
|
+
export declare namespace EthereumSignUserOperationRpcResponse {
|
|
525
|
+
interface Data {
|
|
526
|
+
encoding: 'hex';
|
|
527
|
+
signature: string;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Response to the EVM `eth_sign7702Authorization` RPC.
|
|
532
|
+
*/
|
|
533
|
+
export interface EthereumSign7702AuthorizationRpcResponse {
|
|
534
|
+
data: EthereumSign7702AuthorizationRpcResponse.Data;
|
|
535
|
+
method: 'eth_sign7702Authorization';
|
|
536
|
+
}
|
|
537
|
+
export declare namespace EthereumSign7702AuthorizationRpcResponse {
|
|
538
|
+
interface Data {
|
|
539
|
+
authorization: Data.Authorization;
|
|
540
|
+
}
|
|
541
|
+
namespace Data {
|
|
542
|
+
interface Authorization {
|
|
543
|
+
chain_id: string | number;
|
|
544
|
+
contract: string;
|
|
545
|
+
nonce: string | number;
|
|
546
|
+
r: string;
|
|
547
|
+
s: string;
|
|
548
|
+
y_parity: number;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Response to the EVM `secp256k1_sign` RPC.
|
|
554
|
+
*/
|
|
555
|
+
export interface EthereumSecp256k1SignRpcResponse {
|
|
556
|
+
data: EthereumSecp256k1SignRpcResponse.Data;
|
|
557
|
+
method: 'secp256k1_sign';
|
|
558
|
+
}
|
|
559
|
+
export declare namespace EthereumSecp256k1SignRpcResponse {
|
|
560
|
+
interface Data {
|
|
561
|
+
encoding: 'hex';
|
|
562
|
+
signature: string;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Response to the SVM `signTransaction` RPC.
|
|
567
|
+
*/
|
|
568
|
+
export interface SolanaSignTransactionRpcResponse {
|
|
569
|
+
data: SolanaSignTransactionRpcResponse.Data;
|
|
570
|
+
method: 'signTransaction';
|
|
571
|
+
}
|
|
572
|
+
export declare namespace SolanaSignTransactionRpcResponse {
|
|
573
|
+
interface Data {
|
|
574
|
+
encoding: 'base64';
|
|
575
|
+
signed_transaction: string;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Response to the SVM `signAndSendTransaction` RPC.
|
|
580
|
+
*/
|
|
581
|
+
export interface SolanaSignAndSendTransactionRpcResponse {
|
|
582
|
+
data: SolanaSignAndSendTransactionRpcResponse.Data;
|
|
583
|
+
method: 'signAndSendTransaction';
|
|
584
|
+
}
|
|
585
|
+
export declare namespace SolanaSignAndSendTransactionRpcResponse {
|
|
586
|
+
interface Data {
|
|
587
|
+
caip2: string;
|
|
588
|
+
hash: string;
|
|
589
|
+
transaction_id?: string;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Response to the SVM `signMessage` RPC.
|
|
594
|
+
*/
|
|
595
|
+
export interface SolanaSignMessageRpcResponse {
|
|
596
|
+
data: SolanaSignMessageRpcResponse.Data;
|
|
597
|
+
method: 'signMessage';
|
|
598
|
+
}
|
|
599
|
+
export declare namespace SolanaSignMessageRpcResponse {
|
|
600
|
+
interface Data {
|
|
601
|
+
encoding: 'base64';
|
|
602
|
+
signature: string;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
220
605
|
export interface WalletExportResponse {
|
|
221
606
|
/**
|
|
222
607
|
* The encrypted private key.
|
|
@@ -251,126 +636,10 @@ export declare namespace WalletRawSignResponse {
|
|
|
251
636
|
signature: string;
|
|
252
637
|
}
|
|
253
638
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
method: 'signTransaction';
|
|
259
|
-
}
|
|
260
|
-
namespace SolanaSignTransactionRpcResponse {
|
|
261
|
-
interface Data {
|
|
262
|
-
encoding: 'base64';
|
|
263
|
-
signed_transaction: string;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
interface SolanaSignAndSendTransactionRpcResponse {
|
|
267
|
-
data: SolanaSignAndSendTransactionRpcResponse.Data;
|
|
268
|
-
method: 'signAndSendTransaction';
|
|
269
|
-
}
|
|
270
|
-
namespace SolanaSignAndSendTransactionRpcResponse {
|
|
271
|
-
interface Data {
|
|
272
|
-
caip2: string;
|
|
273
|
-
hash: string;
|
|
274
|
-
transaction_id?: string;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
interface SolanaSignMessageRpcResponse {
|
|
278
|
-
data: SolanaSignMessageRpcResponse.Data;
|
|
279
|
-
method: 'signMessage';
|
|
280
|
-
}
|
|
281
|
-
namespace SolanaSignMessageRpcResponse {
|
|
282
|
-
interface Data {
|
|
283
|
-
encoding: 'base64';
|
|
284
|
-
signature: string;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
interface EthereumSignTransactionRpcResponse {
|
|
288
|
-
data: EthereumSignTransactionRpcResponse.Data;
|
|
289
|
-
method: 'eth_signTransaction';
|
|
290
|
-
}
|
|
291
|
-
namespace EthereumSignTransactionRpcResponse {
|
|
292
|
-
interface Data {
|
|
293
|
-
encoding: 'rlp';
|
|
294
|
-
signed_transaction: string;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
interface EthereumSendTransactionRpcResponse {
|
|
298
|
-
data: EthereumSendTransactionRpcResponse.Data;
|
|
299
|
-
method: 'eth_sendTransaction';
|
|
300
|
-
}
|
|
301
|
-
namespace EthereumSendTransactionRpcResponse {
|
|
302
|
-
interface Data {
|
|
303
|
-
caip2: string;
|
|
304
|
-
hash: string;
|
|
305
|
-
transaction_id?: string;
|
|
306
|
-
transaction_request?: Data.TransactionRequest;
|
|
307
|
-
}
|
|
308
|
-
namespace Data {
|
|
309
|
-
interface TransactionRequest {
|
|
310
|
-
chain_id?: string | number;
|
|
311
|
-
data?: string;
|
|
312
|
-
from?: string;
|
|
313
|
-
gas_limit?: string | number;
|
|
314
|
-
gas_price?: string | number;
|
|
315
|
-
max_fee_per_gas?: string | number;
|
|
316
|
-
max_priority_fee_per_gas?: string | number;
|
|
317
|
-
nonce?: string | number;
|
|
318
|
-
to?: string;
|
|
319
|
-
type?: 0 | 1 | 2;
|
|
320
|
-
value?: string | number;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
interface EthereumPersonalSignRpcResponse {
|
|
325
|
-
data: EthereumPersonalSignRpcResponse.Data;
|
|
326
|
-
method: 'personal_sign';
|
|
327
|
-
}
|
|
328
|
-
namespace EthereumPersonalSignRpcResponse {
|
|
329
|
-
interface Data {
|
|
330
|
-
encoding: 'hex';
|
|
331
|
-
signature: string;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
interface EthereumSignTypedDataRpcResponse {
|
|
335
|
-
data: EthereumSignTypedDataRpcResponse.Data;
|
|
336
|
-
method: 'eth_signTypedData_v4';
|
|
337
|
-
}
|
|
338
|
-
namespace EthereumSignTypedDataRpcResponse {
|
|
339
|
-
interface Data {
|
|
340
|
-
encoding: 'hex';
|
|
341
|
-
signature: string;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
interface EthereumSign7702AuthorizationRpcResponse {
|
|
345
|
-
data: EthereumSign7702AuthorizationRpcResponse.Data;
|
|
346
|
-
method: 'eth_sign7702Authorization';
|
|
347
|
-
}
|
|
348
|
-
namespace EthereumSign7702AuthorizationRpcResponse {
|
|
349
|
-
interface Data {
|
|
350
|
-
authorization: Data.Authorization;
|
|
351
|
-
}
|
|
352
|
-
namespace Data {
|
|
353
|
-
interface Authorization {
|
|
354
|
-
chain_id: string | number;
|
|
355
|
-
contract: string;
|
|
356
|
-
nonce: string | number;
|
|
357
|
-
r: string;
|
|
358
|
-
s: string;
|
|
359
|
-
y_parity: number;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
interface EthereumSecp256k1SignRpcResponse {
|
|
364
|
-
data: EthereumSecp256k1SignRpcResponse.Data;
|
|
365
|
-
method: 'secp256k1_sign';
|
|
366
|
-
}
|
|
367
|
-
namespace EthereumSecp256k1SignRpcResponse {
|
|
368
|
-
interface Data {
|
|
369
|
-
encoding: 'hex';
|
|
370
|
-
signature: string;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
639
|
+
/**
|
|
640
|
+
* Response to the EVM `personal_sign` RPC.
|
|
641
|
+
*/
|
|
642
|
+
export type WalletRpcResponse = EthereumPersonalSignRpcResponse | EthereumSignTypedDataRpcResponse | EthereumSignTransactionRpcResponse | EthereumSendTransactionRpcResponse | EthereumSignUserOperationRpcResponse | EthereumSign7702AuthorizationRpcResponse | EthereumSecp256k1SignRpcResponse | SolanaSignMessageRpcResponse | SolanaSignTransactionRpcResponse | SolanaSignAndSendTransactionRpcResponse;
|
|
374
643
|
export type WalletAuthenticateWithJwtResponse = WalletAuthenticateWithJwtResponse.WithEncryption | WalletAuthenticateWithJwtResponse.WithoutEncryption;
|
|
375
644
|
export declare namespace WalletAuthenticateWithJwtResponse {
|
|
376
645
|
interface WithEncryption {
|
|
@@ -468,8 +737,9 @@ export declare namespace WalletCreateParams {
|
|
|
468
737
|
override_policy_ids?: Array<string>;
|
|
469
738
|
}
|
|
470
739
|
/**
|
|
471
|
-
* The P-256 public key of the owner of the resource
|
|
472
|
-
* specify an owner_id as it will be generated
|
|
740
|
+
* The P-256 public key of the owner of the resource, in base64-encoded DER format.
|
|
741
|
+
* If you provide this, do not specify an owner_id as it will be generated
|
|
742
|
+
* automatically.
|
|
473
743
|
*/
|
|
474
744
|
interface PublicKeyOwner {
|
|
475
745
|
public_key: string;
|
|
@@ -484,7 +754,10 @@ export declare namespace WalletCreateParams {
|
|
|
484
754
|
}
|
|
485
755
|
}
|
|
486
756
|
export interface WalletListParams extends CursorParams {
|
|
487
|
-
|
|
757
|
+
/**
|
|
758
|
+
* The wallet chain types.
|
|
759
|
+
*/
|
|
760
|
+
chain_type?: WalletChainType;
|
|
488
761
|
user_id?: string;
|
|
489
762
|
}
|
|
490
763
|
export interface WalletExportParams {
|
|
@@ -548,9 +821,9 @@ export declare namespace WalletInitImportParams {
|
|
|
548
821
|
}
|
|
549
822
|
export interface WalletRawSignParams {
|
|
550
823
|
/**
|
|
551
|
-
* Body param:
|
|
824
|
+
* Body param: Sign a pre-computed hash
|
|
552
825
|
*/
|
|
553
|
-
params: WalletRawSignParams.
|
|
826
|
+
params: WalletRawSignParams.Hash | WalletRawSignParams.UnionMember1;
|
|
554
827
|
/**
|
|
555
828
|
* Header param: Request authorization signature. If multiple signatures are
|
|
556
829
|
* required, they should be comma separated.
|
|
@@ -563,24 +836,44 @@ export interface WalletRawSignParams {
|
|
|
563
836
|
'privy-idempotency-key'?: string;
|
|
564
837
|
}
|
|
565
838
|
export declare namespace WalletRawSignParams {
|
|
566
|
-
|
|
839
|
+
/**
|
|
840
|
+
* Sign a pre-computed hash
|
|
841
|
+
*/
|
|
842
|
+
interface Hash {
|
|
567
843
|
/**
|
|
568
844
|
* The hash to sign. Must start with `0x`.
|
|
569
845
|
*/
|
|
570
|
-
hash
|
|
846
|
+
hash: string;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Hash and sign bytes
|
|
850
|
+
*/
|
|
851
|
+
interface UnionMember1 {
|
|
852
|
+
/**
|
|
853
|
+
* The bytes to hash and sign.
|
|
854
|
+
*/
|
|
855
|
+
bytes: string;
|
|
856
|
+
/**
|
|
857
|
+
* Encoding scheme for the bytes.
|
|
858
|
+
*/
|
|
859
|
+
encoding: 'utf-8' | 'hex';
|
|
860
|
+
/**
|
|
861
|
+
* Hash function to use for the bytes.
|
|
862
|
+
*/
|
|
863
|
+
hash_function: 'keccak256' | 'sha256';
|
|
571
864
|
}
|
|
572
865
|
}
|
|
573
|
-
export type WalletRpcParams = WalletRpcParams.
|
|
866
|
+
export type WalletRpcParams = WalletRpcParams.EthereumPersonalSignRpcInput | WalletRpcParams.EthereumSignTypedDataRpcInput | WalletRpcParams.EthereumSignTransactionRpcInput | WalletRpcParams.EthereumSignUserOperationRpcInput | WalletRpcParams.EthereumSendTransactionRpcInput | WalletRpcParams.EthereumSign7702AuthorizationRpcInput | WalletRpcParams.EthereumSecp256k1SignRpcInput | WalletRpcParams.SolanaSignMessageRpcInput | WalletRpcParams.SolanaSignTransactionRpcInput | WalletRpcParams.SolanaSignAndSendTransactionRpcInput;
|
|
574
867
|
export declare namespace WalletRpcParams {
|
|
575
|
-
interface
|
|
868
|
+
interface EthereumPersonalSignRpcInput {
|
|
576
869
|
/**
|
|
577
870
|
* Body param:
|
|
578
871
|
*/
|
|
579
|
-
method: '
|
|
872
|
+
method: 'personal_sign';
|
|
580
873
|
/**
|
|
581
874
|
* Body param:
|
|
582
875
|
*/
|
|
583
|
-
params:
|
|
876
|
+
params: EthereumPersonalSignRpcInput.Params;
|
|
584
877
|
/**
|
|
585
878
|
* Body param:
|
|
586
879
|
*/
|
|
@@ -600,51 +893,82 @@ export declare namespace WalletRpcParams {
|
|
|
600
893
|
*/
|
|
601
894
|
'privy-idempotency-key'?: string;
|
|
602
895
|
}
|
|
603
|
-
namespace
|
|
896
|
+
namespace EthereumPersonalSignRpcInput {
|
|
604
897
|
interface Params {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
namespace Params {
|
|
608
|
-
interface Transaction {
|
|
609
|
-
chain_id?: string | number;
|
|
610
|
-
data?: string;
|
|
611
|
-
from?: string;
|
|
612
|
-
gas_limit?: string | number;
|
|
613
|
-
gas_price?: string | number;
|
|
614
|
-
max_fee_per_gas?: string | number;
|
|
615
|
-
max_priority_fee_per_gas?: string | number;
|
|
616
|
-
nonce?: string | number;
|
|
617
|
-
to?: string;
|
|
618
|
-
type?: 0 | 1 | 2;
|
|
619
|
-
value?: string | number;
|
|
620
|
-
}
|
|
898
|
+
encoding: 'utf-8' | 'hex';
|
|
899
|
+
message: string;
|
|
621
900
|
}
|
|
622
901
|
}
|
|
623
|
-
interface
|
|
902
|
+
interface EthereumSignTypedDataRpcInput {
|
|
624
903
|
/**
|
|
625
904
|
* Body param:
|
|
626
905
|
*/
|
|
627
|
-
|
|
906
|
+
method: 'eth_signTypedData_v4';
|
|
628
907
|
/**
|
|
629
908
|
* Body param:
|
|
630
909
|
*/
|
|
631
|
-
|
|
910
|
+
params: EthereumSignTypedDataRpcInput.Params;
|
|
632
911
|
/**
|
|
633
912
|
* Body param:
|
|
634
913
|
*/
|
|
635
|
-
|
|
914
|
+
address?: string;
|
|
636
915
|
/**
|
|
637
916
|
* Body param:
|
|
638
917
|
*/
|
|
639
|
-
|
|
918
|
+
chain_type?: 'ethereum';
|
|
919
|
+
/**
|
|
920
|
+
* Header param: Request authorization signature. If multiple signatures are
|
|
921
|
+
* required, they should be comma separated.
|
|
922
|
+
*/
|
|
923
|
+
'privy-authorization-signature'?: string;
|
|
924
|
+
/**
|
|
925
|
+
* Header param: Idempotency keys ensure API requests are executed only once within
|
|
926
|
+
* a 24-hour window.
|
|
927
|
+
*/
|
|
928
|
+
'privy-idempotency-key'?: string;
|
|
929
|
+
}
|
|
930
|
+
namespace EthereumSignTypedDataRpcInput {
|
|
931
|
+
interface Params {
|
|
932
|
+
typed_data: Params.TypedData;
|
|
933
|
+
}
|
|
934
|
+
namespace Params {
|
|
935
|
+
interface TypedData {
|
|
936
|
+
domain: {
|
|
937
|
+
[key: string]: unknown;
|
|
938
|
+
};
|
|
939
|
+
message: {
|
|
940
|
+
[key: string]: unknown;
|
|
941
|
+
};
|
|
942
|
+
primary_type: string;
|
|
943
|
+
types: {
|
|
944
|
+
[key: string]: Array<TypedData.Type>;
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
namespace TypedData {
|
|
948
|
+
interface Type {
|
|
949
|
+
name: string;
|
|
950
|
+
type: string;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
interface EthereumSignTransactionRpcInput {
|
|
640
956
|
/**
|
|
641
957
|
* Body param:
|
|
642
958
|
*/
|
|
643
|
-
|
|
959
|
+
method: 'eth_signTransaction';
|
|
644
960
|
/**
|
|
645
961
|
* Body param:
|
|
646
962
|
*/
|
|
647
|
-
|
|
963
|
+
params: EthereumSignTransactionRpcInput.Params;
|
|
964
|
+
/**
|
|
965
|
+
* Body param:
|
|
966
|
+
*/
|
|
967
|
+
address?: string;
|
|
968
|
+
/**
|
|
969
|
+
* Body param:
|
|
970
|
+
*/
|
|
971
|
+
chain_type?: 'ethereum';
|
|
648
972
|
/**
|
|
649
973
|
* Header param: Request authorization signature. If multiple signatures are
|
|
650
974
|
* required, they should be comma separated.
|
|
@@ -656,7 +980,7 @@ export declare namespace WalletRpcParams {
|
|
|
656
980
|
*/
|
|
657
981
|
'privy-idempotency-key'?: string;
|
|
658
982
|
}
|
|
659
|
-
namespace
|
|
983
|
+
namespace EthereumSignTransactionRpcInput {
|
|
660
984
|
interface Params {
|
|
661
985
|
transaction: Params.Transaction;
|
|
662
986
|
}
|
|
@@ -676,15 +1000,15 @@ export declare namespace WalletRpcParams {
|
|
|
676
1000
|
}
|
|
677
1001
|
}
|
|
678
1002
|
}
|
|
679
|
-
interface
|
|
1003
|
+
interface EthereumSignUserOperationRpcInput {
|
|
680
1004
|
/**
|
|
681
1005
|
* Body param:
|
|
682
1006
|
*/
|
|
683
|
-
method: '
|
|
1007
|
+
method: 'eth_signUserOperation';
|
|
684
1008
|
/**
|
|
685
1009
|
* Body param:
|
|
686
1010
|
*/
|
|
687
|
-
params:
|
|
1011
|
+
params: EthereumSignUserOperationRpcInput.Params;
|
|
688
1012
|
/**
|
|
689
1013
|
* Body param:
|
|
690
1014
|
*/
|
|
@@ -704,21 +1028,42 @@ export declare namespace WalletRpcParams {
|
|
|
704
1028
|
*/
|
|
705
1029
|
'privy-idempotency-key'?: string;
|
|
706
1030
|
}
|
|
707
|
-
namespace
|
|
1031
|
+
namespace EthereumSignUserOperationRpcInput {
|
|
708
1032
|
interface Params {
|
|
709
|
-
|
|
710
|
-
|
|
1033
|
+
chain_id: string | number;
|
|
1034
|
+
contract: string;
|
|
1035
|
+
user_operation: Params.UserOperation;
|
|
1036
|
+
}
|
|
1037
|
+
namespace Params {
|
|
1038
|
+
interface UserOperation {
|
|
1039
|
+
call_data: string;
|
|
1040
|
+
call_gas_limit: string;
|
|
1041
|
+
max_fee_per_gas: string;
|
|
1042
|
+
max_priority_fee_per_gas: string;
|
|
1043
|
+
nonce: string;
|
|
1044
|
+
paymaster: string;
|
|
1045
|
+
paymaster_data: string;
|
|
1046
|
+
paymaster_post_op_gas_limit: string;
|
|
1047
|
+
paymaster_verification_gas_limit: string;
|
|
1048
|
+
pre_verification_gas: string;
|
|
1049
|
+
sender: string;
|
|
1050
|
+
verification_gas_limit: string;
|
|
1051
|
+
}
|
|
711
1052
|
}
|
|
712
1053
|
}
|
|
713
|
-
interface
|
|
1054
|
+
interface EthereumSendTransactionRpcInput {
|
|
714
1055
|
/**
|
|
715
1056
|
* Body param:
|
|
716
1057
|
*/
|
|
717
|
-
|
|
1058
|
+
caip2: string;
|
|
718
1059
|
/**
|
|
719
1060
|
* Body param:
|
|
720
1061
|
*/
|
|
721
|
-
|
|
1062
|
+
method: 'eth_sendTransaction';
|
|
1063
|
+
/**
|
|
1064
|
+
* Body param:
|
|
1065
|
+
*/
|
|
1066
|
+
params: EthereumSendTransactionRpcInput.Params;
|
|
722
1067
|
/**
|
|
723
1068
|
* Body param:
|
|
724
1069
|
*/
|
|
@@ -727,6 +1072,10 @@ export declare namespace WalletRpcParams {
|
|
|
727
1072
|
* Body param:
|
|
728
1073
|
*/
|
|
729
1074
|
chain_type?: 'ethereum';
|
|
1075
|
+
/**
|
|
1076
|
+
* Body param:
|
|
1077
|
+
*/
|
|
1078
|
+
sponsor?: boolean;
|
|
730
1079
|
/**
|
|
731
1080
|
* Header param: Request authorization signature. If multiple signatures are
|
|
732
1081
|
* required, they should be comma separated.
|
|
@@ -738,28 +1087,23 @@ export declare namespace WalletRpcParams {
|
|
|
738
1087
|
*/
|
|
739
1088
|
'privy-idempotency-key'?: string;
|
|
740
1089
|
}
|
|
741
|
-
namespace
|
|
1090
|
+
namespace EthereumSendTransactionRpcInput {
|
|
742
1091
|
interface Params {
|
|
743
|
-
|
|
1092
|
+
transaction: Params.Transaction;
|
|
744
1093
|
}
|
|
745
1094
|
namespace Params {
|
|
746
|
-
interface
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
namespace TypedData {
|
|
759
|
-
interface Type {
|
|
760
|
-
name: string;
|
|
761
|
-
type: string;
|
|
762
|
-
}
|
|
1095
|
+
interface Transaction {
|
|
1096
|
+
chain_id?: string | number;
|
|
1097
|
+
data?: string;
|
|
1098
|
+
from?: string;
|
|
1099
|
+
gas_limit?: string | number;
|
|
1100
|
+
gas_price?: string | number;
|
|
1101
|
+
max_fee_per_gas?: string | number;
|
|
1102
|
+
max_priority_fee_per_gas?: string | number;
|
|
1103
|
+
nonce?: string | number;
|
|
1104
|
+
to?: string;
|
|
1105
|
+
type?: 0 | 1 | 2;
|
|
1106
|
+
value?: string | number;
|
|
763
1107
|
}
|
|
764
1108
|
}
|
|
765
1109
|
}
|
|
@@ -831,15 +1175,15 @@ export declare namespace WalletRpcParams {
|
|
|
831
1175
|
hash: string;
|
|
832
1176
|
}
|
|
833
1177
|
}
|
|
834
|
-
interface
|
|
1178
|
+
interface SolanaSignMessageRpcInput {
|
|
835
1179
|
/**
|
|
836
1180
|
* Body param:
|
|
837
1181
|
*/
|
|
838
|
-
method: '
|
|
1182
|
+
method: 'signMessage';
|
|
839
1183
|
/**
|
|
840
1184
|
* Body param:
|
|
841
1185
|
*/
|
|
842
|
-
params:
|
|
1186
|
+
params: SolanaSignMessageRpcInput.Params;
|
|
843
1187
|
/**
|
|
844
1188
|
* Body param:
|
|
845
1189
|
*/
|
|
@@ -859,25 +1203,21 @@ export declare namespace WalletRpcParams {
|
|
|
859
1203
|
*/
|
|
860
1204
|
'privy-idempotency-key'?: string;
|
|
861
1205
|
}
|
|
862
|
-
namespace
|
|
1206
|
+
namespace SolanaSignMessageRpcInput {
|
|
863
1207
|
interface Params {
|
|
864
1208
|
encoding: 'base64';
|
|
865
|
-
|
|
1209
|
+
message: string;
|
|
866
1210
|
}
|
|
867
1211
|
}
|
|
868
|
-
interface
|
|
869
|
-
/**
|
|
870
|
-
* Body param:
|
|
871
|
-
*/
|
|
872
|
-
caip2: string;
|
|
1212
|
+
interface SolanaSignTransactionRpcInput {
|
|
873
1213
|
/**
|
|
874
1214
|
* Body param:
|
|
875
1215
|
*/
|
|
876
|
-
method: '
|
|
1216
|
+
method: 'signTransaction';
|
|
877
1217
|
/**
|
|
878
1218
|
* Body param:
|
|
879
1219
|
*/
|
|
880
|
-
params:
|
|
1220
|
+
params: SolanaSignTransactionRpcInput.Params;
|
|
881
1221
|
/**
|
|
882
1222
|
* Body param:
|
|
883
1223
|
*/
|
|
@@ -886,10 +1226,6 @@ export declare namespace WalletRpcParams {
|
|
|
886
1226
|
* Body param:
|
|
887
1227
|
*/
|
|
888
1228
|
chain_type?: 'solana';
|
|
889
|
-
/**
|
|
890
|
-
* Body param:
|
|
891
|
-
*/
|
|
892
|
-
sponsor?: boolean;
|
|
893
1229
|
/**
|
|
894
1230
|
* Header param: Request authorization signature. If multiple signatures are
|
|
895
1231
|
* required, they should be comma separated.
|
|
@@ -901,21 +1237,25 @@ export declare namespace WalletRpcParams {
|
|
|
901
1237
|
*/
|
|
902
1238
|
'privy-idempotency-key'?: string;
|
|
903
1239
|
}
|
|
904
|
-
namespace
|
|
1240
|
+
namespace SolanaSignTransactionRpcInput {
|
|
905
1241
|
interface Params {
|
|
906
1242
|
encoding: 'base64';
|
|
907
1243
|
transaction: string;
|
|
908
1244
|
}
|
|
909
1245
|
}
|
|
910
|
-
interface
|
|
1246
|
+
interface SolanaSignAndSendTransactionRpcInput {
|
|
911
1247
|
/**
|
|
912
1248
|
* Body param:
|
|
913
1249
|
*/
|
|
914
|
-
|
|
1250
|
+
caip2: string;
|
|
915
1251
|
/**
|
|
916
1252
|
* Body param:
|
|
917
1253
|
*/
|
|
918
|
-
|
|
1254
|
+
method: 'signAndSendTransaction';
|
|
1255
|
+
/**
|
|
1256
|
+
* Body param:
|
|
1257
|
+
*/
|
|
1258
|
+
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
919
1259
|
/**
|
|
920
1260
|
* Body param:
|
|
921
1261
|
*/
|
|
@@ -924,6 +1264,10 @@ export declare namespace WalletRpcParams {
|
|
|
924
1264
|
* Body param:
|
|
925
1265
|
*/
|
|
926
1266
|
chain_type?: 'solana';
|
|
1267
|
+
/**
|
|
1268
|
+
* Body param:
|
|
1269
|
+
*/
|
|
1270
|
+
sponsor?: boolean;
|
|
927
1271
|
/**
|
|
928
1272
|
* Header param: Request authorization signature. If multiple signatures are
|
|
929
1273
|
* required, they should be comma separated.
|
|
@@ -935,10 +1279,10 @@ export declare namespace WalletRpcParams {
|
|
|
935
1279
|
*/
|
|
936
1280
|
'privy-idempotency-key'?: string;
|
|
937
1281
|
}
|
|
938
|
-
namespace
|
|
1282
|
+
namespace SolanaSignAndSendTransactionRpcInput {
|
|
939
1283
|
interface Params {
|
|
940
1284
|
encoding: 'base64';
|
|
941
|
-
|
|
1285
|
+
transaction: string;
|
|
942
1286
|
}
|
|
943
1287
|
}
|
|
944
1288
|
}
|
|
@@ -1055,8 +1399,9 @@ export declare namespace WalletUpdateParams {
|
|
|
1055
1399
|
override_policy_ids?: Array<string>;
|
|
1056
1400
|
}
|
|
1057
1401
|
/**
|
|
1058
|
-
* The P-256 public key of the owner of the resource
|
|
1059
|
-
* specify an owner_id as it will be generated
|
|
1402
|
+
* The P-256 public key of the owner of the resource, in base64-encoded DER format.
|
|
1403
|
+
* If you provide this, do not specify an owner_id as it will be generated
|
|
1404
|
+
* automatically.
|
|
1060
1405
|
*/
|
|
1061
1406
|
interface PublicKeyOwner {
|
|
1062
1407
|
public_key: string;
|
|
@@ -1130,7 +1475,7 @@ export declare namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
1130
1475
|
}
|
|
1131
1476
|
}
|
|
1132
1477
|
export declare namespace Wallets {
|
|
1133
|
-
export { type CurveSigningChainType as CurveSigningChainType, type FirstClassChainType as FirstClassChainType, type Wallet as Wallet, type WalletChainType as WalletChainType, type WalletRevokeResponse as WalletRevokeResponse, type WalletExportResponse as WalletExportResponse, type WalletInitImportResponse as WalletInitImportResponse, type WalletRawSignResponse as WalletRawSignResponse, type WalletRpcResponse as WalletRpcResponse, type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse, type WalletsCursor as WalletsCursor, type WalletCreateParams as WalletCreateParams, type WalletListParams as WalletListParams, type WalletExportParams as WalletExportParams, type WalletInitImportParams as WalletInitImportParams, type WalletRawSignParams as WalletRawSignParams, type WalletRpcParams as WalletRpcParams, type WalletSubmitImportParams as WalletSubmitImportParams, type WalletUpdateParams as WalletUpdateParams, type WalletAuthenticateWithJwtParams as WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams, };
|
|
1478
|
+
export { type CurveSigningChainType as CurveSigningChainType, type FirstClassChainType as FirstClassChainType, type Wallet as Wallet, type WalletChainType as WalletChainType, type WalletRevokeResponse as WalletRevokeResponse, type ExtendedChainType as ExtendedChainType, type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput, type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput, type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput, type EthereumSignTypedDataRpcInput as EthereumSignTypedDataRpcInput, type EthereumSignUserOperationRpcInput as EthereumSignUserOperationRpcInput, type EthereumSign7702AuthorizationRpcInput as EthereumSign7702AuthorizationRpcInput, type EthereumSecp256k1SignRpcInput as EthereumSecp256k1SignRpcInput, type SolanaSignTransactionRpcInput as SolanaSignTransactionRpcInput, type SolanaSignAndSendTransactionRpcInput as SolanaSignAndSendTransactionRpcInput, type SolanaSignMessageRpcInput as SolanaSignMessageRpcInput, type EthereumSignTransactionRpcResponse as EthereumSignTransactionRpcResponse, type EthereumSendTransactionRpcResponse as EthereumSendTransactionRpcResponse, type EthereumPersonalSignRpcResponse as EthereumPersonalSignRpcResponse, type EthereumSignTypedDataRpcResponse as EthereumSignTypedDataRpcResponse, type EthereumSignUserOperationRpcResponse as EthereumSignUserOperationRpcResponse, type EthereumSign7702AuthorizationRpcResponse as EthereumSign7702AuthorizationRpcResponse, type EthereumSecp256k1SignRpcResponse as EthereumSecp256k1SignRpcResponse, type SolanaSignTransactionRpcResponse as SolanaSignTransactionRpcResponse, type SolanaSignAndSendTransactionRpcResponse as SolanaSignAndSendTransactionRpcResponse, type SolanaSignMessageRpcResponse as SolanaSignMessageRpcResponse, type WalletExportResponse as WalletExportResponse, type WalletInitImportResponse as WalletInitImportResponse, type WalletRawSignResponse as WalletRawSignResponse, type WalletRpcResponse as WalletRpcResponse, type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse, type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse, type WalletsCursor as WalletsCursor, type WalletCreateParams as WalletCreateParams, type WalletListParams as WalletListParams, type WalletExportParams as WalletExportParams, type WalletInitImportParams as WalletInitImportParams, type WalletRawSignParams as WalletRawSignParams, type WalletRpcParams as WalletRpcParams, type WalletSubmitImportParams as WalletSubmitImportParams, type WalletUpdateParams as WalletUpdateParams, type WalletAuthenticateWithJwtParams as WalletAuthenticateWithJwtParams, type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams, };
|
|
1134
1479
|
export { Transactions as Transactions, type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, };
|
|
1135
1480
|
export { Balance as Balance, type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams, };
|
|
1136
1481
|
}
|