@privy-io/node 0.6.2 → 0.8.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 +59 -0
- package/client.d.mts +10 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -7
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/index.d.mts +2 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/index.mjs +2 -1
- package/index.mjs.map +1 -1
- package/lib/auth.d.mts +30 -2
- package/lib/auth.d.mts.map +1 -1
- package/lib/auth.d.ts +30 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +14 -5
- package/lib/auth.js.map +1 -1
- package/lib/auth.mjs +11 -3
- package/lib/auth.mjs.map +1 -1
- package/lib/cryptography.d.mts +35 -3
- package/lib/cryptography.d.mts.map +1 -1
- package/lib/cryptography.d.ts +35 -3
- package/lib/cryptography.d.ts.map +1 -1
- package/lib/cryptography.js +53 -6
- package/lib/cryptography.js.map +1 -1
- package/lib/cryptography.mjs +50 -3
- package/lib/cryptography.mjs.map +1 -1
- package/lib/identity-token.d.mts.map +1 -1
- package/lib/identity-token.d.ts.map +1 -1
- package/lib/identity-token.js +0 -1
- package/lib/identity-token.js.map +1 -1
- package/lib/identity-token.mjs +0 -1
- package/lib/identity-token.mjs.map +1 -1
- package/package.json +13 -1
- package/public-api/services/utils/auth.d.mts +10 -1
- package/public-api/services/utils/auth.d.mts.map +1 -1
- package/public-api/services/utils/auth.d.ts +10 -1
- package/public-api/services/utils/auth.d.ts.map +1 -1
- package/public-api/services/utils/auth.js +16 -5
- package/public-api/services/utils/auth.js.map +1 -1
- package/public-api/services/utils/auth.mjs +17 -6
- package/public-api/services/utils/auth.mjs.map +1 -1
- package/resources/aggregations.d.mts +296 -0
- package/resources/aggregations.d.mts.map +1 -0
- package/resources/aggregations.d.ts +296 -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/apps.d.mts +25 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +25 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- 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 +1 -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 +87 -131
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +87 -131
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/users.d.mts +642 -381
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +642 -381
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +3 -3
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +3 -3
- package/resources/wallets/balance.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 +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 +215 -53
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +215 -53
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/solana-kit.d.mts +53 -0
- package/solana-kit.d.mts.map +1 -0
- package/solana-kit.d.ts +53 -0
- package/solana-kit.d.ts.map +1 -0
- package/solana-kit.js +92 -0
- package/solana-kit.js.map +1 -0
- package/solana-kit.mjs +89 -0
- package/solana-kit.mjs.map +1 -0
- package/src/client.ts +150 -3
- package/src/index.ts +5 -0
- package/src/lib/auth.ts +42 -6
- package/src/lib/cryptography.ts +72 -3
- package/src/lib/identity-token.ts +38 -18
- package/src/public-api/services/utils/auth.ts +19 -6
- package/src/resources/aggregations.ts +497 -0
- package/src/resources/apps.ts +44 -0
- package/src/resources/index.ts +74 -2
- package/src/resources/key-quorums.ts +4 -1
- package/src/resources/policies.ts +124 -207
- package/src/resources/users.ts +942 -625
- package/src/resources/wallets/balance.ts +11 -3
- package/src/resources/wallets/index.ts +6 -0
- package/src/resources/wallets/transactions.ts +11 -3
- package/src/resources/wallets/wallets.ts +283 -52
- package/src/solana-kit.ts +148 -0
- 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
|
@@ -17,7 +17,7 @@ export class Wallets extends APIResource {
|
|
|
17
17
|
balance: BalanceAPI.Balance = new BalanceAPI.Balance(this._client);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Creates a new wallet on the requested chain and for the requested owner.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```ts
|
|
@@ -290,6 +290,9 @@ export type CurveSigningChainType =
|
|
|
290
290
|
*/
|
|
291
291
|
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
292
292
|
|
|
293
|
+
/**
|
|
294
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
295
|
+
*/
|
|
293
296
|
export interface Wallet {
|
|
294
297
|
/**
|
|
295
298
|
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
@@ -399,6 +402,122 @@ export interface WalletCustodian {
|
|
|
399
402
|
name: string;
|
|
400
403
|
}
|
|
401
404
|
|
|
405
|
+
/**
|
|
406
|
+
* The provider of the custodial wallet.
|
|
407
|
+
*/
|
|
408
|
+
export type CustodialWalletProvider = 'bridge';
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* The chain type of the custodial wallet.
|
|
412
|
+
*/
|
|
413
|
+
export type CustodialWalletChainType = 'ethereum';
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* The input for creating a custodial wallet.
|
|
417
|
+
*/
|
|
418
|
+
export interface CustodialWalletCreateInput {
|
|
419
|
+
/**
|
|
420
|
+
* The chain type of the custodial wallet.
|
|
421
|
+
*/
|
|
422
|
+
chain_type: CustodialWalletChainType;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* The provider of the custodial wallet.
|
|
426
|
+
*/
|
|
427
|
+
provider: CustodialWalletProvider;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The resource ID of the beneficiary of the custodial wallet, given by the
|
|
431
|
+
* licensing provider.
|
|
432
|
+
*/
|
|
433
|
+
provider_user_id: string;
|
|
434
|
+
|
|
435
|
+
additional_signers?: Array<CustodialWalletCreateInput.AdditionalSigner>;
|
|
436
|
+
|
|
437
|
+
owner?: CustodialWalletCreateInput.UserID | CustodialWalletCreateInput.PublicKey | null;
|
|
438
|
+
|
|
439
|
+
policy_ids?: Array<string>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export namespace CustodialWalletCreateInput {
|
|
443
|
+
export interface AdditionalSigner {
|
|
444
|
+
signer_id: string;
|
|
445
|
+
|
|
446
|
+
override_policy_ids?: Array<string>;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface UserID {
|
|
450
|
+
user_id: string;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export interface PublicKey {
|
|
454
|
+
public_key: string;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Information about a custodial wallet.
|
|
460
|
+
*/
|
|
461
|
+
export interface CustodialWallet {
|
|
462
|
+
id: string;
|
|
463
|
+
|
|
464
|
+
address: string;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* The chain type of the custodial wallet.
|
|
468
|
+
*/
|
|
469
|
+
chain_type: CustodialWalletChainType;
|
|
470
|
+
|
|
471
|
+
owner_id: string | null;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* The provider of the custodial wallet.
|
|
475
|
+
*/
|
|
476
|
+
provider: CustodialWalletProvider;
|
|
477
|
+
|
|
478
|
+
additional_signers?: Array<CustodialWallet.AdditionalSigner>;
|
|
479
|
+
|
|
480
|
+
policy_ids?: Array<string>;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export namespace CustodialWallet {
|
|
484
|
+
export interface AdditionalSigner {
|
|
485
|
+
signer_id: string;
|
|
486
|
+
|
|
487
|
+
override_policy_ids?: Array<string>;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
493
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
494
|
+
* configurations.
|
|
495
|
+
*/
|
|
496
|
+
export interface HpkeImportConfig {
|
|
497
|
+
/**
|
|
498
|
+
* Additional Authenticated Data (AAD) used during encryption. Should be
|
|
499
|
+
* base64-encoded bytes.
|
|
500
|
+
*/
|
|
501
|
+
aad?: string;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* The AEAD algorithm used for encryption. Defaults to CHACHA20_POLY1305 if not
|
|
505
|
+
* specified.
|
|
506
|
+
*/
|
|
507
|
+
aead_algorithm?: 'CHACHA20_POLY1305' | 'AES_GCM256';
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Application-specific context information (INFO) used during HPKE encryption.
|
|
511
|
+
* Should be base64-encoded bytes.
|
|
512
|
+
*/
|
|
513
|
+
info?: string;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
518
|
+
*/
|
|
519
|
+
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
520
|
+
|
|
402
521
|
/**
|
|
403
522
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
404
523
|
*/
|
|
@@ -440,6 +559,8 @@ export namespace EthereumSignTransactionRpcInput {
|
|
|
440
559
|
|
|
441
560
|
export namespace Params {
|
|
442
561
|
export interface Transaction {
|
|
562
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
563
|
+
|
|
443
564
|
chain_id?: string | number;
|
|
444
565
|
|
|
445
566
|
data?: string;
|
|
@@ -458,10 +579,26 @@ export namespace EthereumSignTransactionRpcInput {
|
|
|
458
579
|
|
|
459
580
|
to?: string;
|
|
460
581
|
|
|
461
|
-
type?: 0 | 1 | 2;
|
|
582
|
+
type?: 0 | 1 | 2 | 4;
|
|
462
583
|
|
|
463
584
|
value?: string | number;
|
|
464
585
|
}
|
|
586
|
+
|
|
587
|
+
export namespace Transaction {
|
|
588
|
+
export interface AuthorizationList {
|
|
589
|
+
chain_id: string | number;
|
|
590
|
+
|
|
591
|
+
contract: string;
|
|
592
|
+
|
|
593
|
+
nonce: string | number;
|
|
594
|
+
|
|
595
|
+
r: string;
|
|
596
|
+
|
|
597
|
+
s: string;
|
|
598
|
+
|
|
599
|
+
y_parity: number;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
465
602
|
}
|
|
466
603
|
}
|
|
467
604
|
|
|
@@ -489,6 +626,8 @@ export namespace EthereumSendTransactionRpcInput {
|
|
|
489
626
|
|
|
490
627
|
export namespace Params {
|
|
491
628
|
export interface Transaction {
|
|
629
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
630
|
+
|
|
492
631
|
chain_id?: string | number;
|
|
493
632
|
|
|
494
633
|
data?: string;
|
|
@@ -507,10 +646,26 @@ export namespace EthereumSendTransactionRpcInput {
|
|
|
507
646
|
|
|
508
647
|
to?: string;
|
|
509
648
|
|
|
510
|
-
type?: 0 | 1 | 2;
|
|
649
|
+
type?: 0 | 1 | 2 | 4;
|
|
511
650
|
|
|
512
651
|
value?: string | number;
|
|
513
652
|
}
|
|
653
|
+
|
|
654
|
+
export namespace Transaction {
|
|
655
|
+
export interface AuthorizationList {
|
|
656
|
+
chain_id: string | number;
|
|
657
|
+
|
|
658
|
+
contract: string;
|
|
659
|
+
|
|
660
|
+
nonce: string | number;
|
|
661
|
+
|
|
662
|
+
r: string;
|
|
663
|
+
|
|
664
|
+
s: string;
|
|
665
|
+
|
|
666
|
+
y_parity: number;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
514
669
|
}
|
|
515
670
|
}
|
|
516
671
|
|
|
@@ -750,10 +905,14 @@ export namespace EthereumSendTransactionRpcResponse {
|
|
|
750
905
|
transaction_id?: string;
|
|
751
906
|
|
|
752
907
|
transaction_request?: Data.TransactionRequest;
|
|
908
|
+
|
|
909
|
+
user_operation_hash?: string;
|
|
753
910
|
}
|
|
754
911
|
|
|
755
912
|
export namespace Data {
|
|
756
913
|
export interface TransactionRequest {
|
|
914
|
+
authorization_list?: Array<TransactionRequest.AuthorizationList>;
|
|
915
|
+
|
|
757
916
|
chain_id?: string | number;
|
|
758
917
|
|
|
759
918
|
data?: string;
|
|
@@ -772,10 +931,26 @@ export namespace EthereumSendTransactionRpcResponse {
|
|
|
772
931
|
|
|
773
932
|
to?: string;
|
|
774
933
|
|
|
775
|
-
type?: 0 | 1 | 2;
|
|
934
|
+
type?: 0 | 1 | 2 | 4;
|
|
776
935
|
|
|
777
936
|
value?: string | number;
|
|
778
937
|
}
|
|
938
|
+
|
|
939
|
+
export namespace TransactionRequest {
|
|
940
|
+
export interface AuthorizationList {
|
|
941
|
+
chain_id: string | number;
|
|
942
|
+
|
|
943
|
+
contract: string;
|
|
944
|
+
|
|
945
|
+
nonce: string | number;
|
|
946
|
+
|
|
947
|
+
r: string;
|
|
948
|
+
|
|
949
|
+
s: string;
|
|
950
|
+
|
|
951
|
+
y_parity: number;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
779
954
|
}
|
|
780
955
|
}
|
|
781
956
|
|
|
@@ -1252,12 +1427,12 @@ export namespace WalletRawSignParams {
|
|
|
1252
1427
|
/**
|
|
1253
1428
|
* The encoding scheme for the bytes.
|
|
1254
1429
|
*/
|
|
1255
|
-
encoding: 'utf-8' | 'hex';
|
|
1430
|
+
encoding: 'utf-8' | 'hex' | 'base64';
|
|
1256
1431
|
|
|
1257
1432
|
/**
|
|
1258
1433
|
* The hash function to hash the bytes.
|
|
1259
1434
|
*/
|
|
1260
|
-
hash_function: 'keccak256' | 'sha256';
|
|
1435
|
+
hash_function: 'keccak256' | 'sha256' | 'blake2b256';
|
|
1261
1436
|
}
|
|
1262
1437
|
}
|
|
1263
1438
|
|
|
@@ -1276,22 +1451,22 @@ export type WalletRpcParams =
|
|
|
1276
1451
|
export declare namespace WalletRpcParams {
|
|
1277
1452
|
export interface EthereumPersonalSignRpcInput {
|
|
1278
1453
|
/**
|
|
1279
|
-
* Body param
|
|
1454
|
+
* Body param
|
|
1280
1455
|
*/
|
|
1281
1456
|
method: 'personal_sign';
|
|
1282
1457
|
|
|
1283
1458
|
/**
|
|
1284
|
-
* Body param
|
|
1459
|
+
* Body param
|
|
1285
1460
|
*/
|
|
1286
1461
|
params: EthereumPersonalSignRpcInput.Params;
|
|
1287
1462
|
|
|
1288
1463
|
/**
|
|
1289
|
-
* Body param
|
|
1464
|
+
* Body param
|
|
1290
1465
|
*/
|
|
1291
1466
|
address?: string;
|
|
1292
1467
|
|
|
1293
1468
|
/**
|
|
1294
|
-
* Body param
|
|
1469
|
+
* Body param
|
|
1295
1470
|
*/
|
|
1296
1471
|
chain_type?: 'ethereum';
|
|
1297
1472
|
|
|
@@ -1318,22 +1493,22 @@ export declare namespace WalletRpcParams {
|
|
|
1318
1493
|
|
|
1319
1494
|
export interface EthereumSignTypedDataRpcInput {
|
|
1320
1495
|
/**
|
|
1321
|
-
* Body param
|
|
1496
|
+
* Body param
|
|
1322
1497
|
*/
|
|
1323
1498
|
method: 'eth_signTypedData_v4';
|
|
1324
1499
|
|
|
1325
1500
|
/**
|
|
1326
|
-
* Body param
|
|
1501
|
+
* Body param
|
|
1327
1502
|
*/
|
|
1328
1503
|
params: EthereumSignTypedDataRpcInput.Params;
|
|
1329
1504
|
|
|
1330
1505
|
/**
|
|
1331
|
-
* Body param
|
|
1506
|
+
* Body param
|
|
1332
1507
|
*/
|
|
1333
1508
|
address?: string;
|
|
1334
1509
|
|
|
1335
1510
|
/**
|
|
1336
|
-
* Body param
|
|
1511
|
+
* Body param
|
|
1337
1512
|
*/
|
|
1338
1513
|
chain_type?: 'ethereum';
|
|
1339
1514
|
|
|
@@ -1378,22 +1553,22 @@ export declare namespace WalletRpcParams {
|
|
|
1378
1553
|
|
|
1379
1554
|
export interface EthereumSignTransactionRpcInput {
|
|
1380
1555
|
/**
|
|
1381
|
-
* Body param
|
|
1556
|
+
* Body param
|
|
1382
1557
|
*/
|
|
1383
1558
|
method: 'eth_signTransaction';
|
|
1384
1559
|
|
|
1385
1560
|
/**
|
|
1386
|
-
* Body param
|
|
1561
|
+
* Body param
|
|
1387
1562
|
*/
|
|
1388
1563
|
params: EthereumSignTransactionRpcInput.Params;
|
|
1389
1564
|
|
|
1390
1565
|
/**
|
|
1391
|
-
* Body param
|
|
1566
|
+
* Body param
|
|
1392
1567
|
*/
|
|
1393
1568
|
address?: string;
|
|
1394
1569
|
|
|
1395
1570
|
/**
|
|
1396
|
-
* Body param
|
|
1571
|
+
* Body param
|
|
1397
1572
|
*/
|
|
1398
1573
|
chain_type?: 'ethereum';
|
|
1399
1574
|
|
|
@@ -1417,6 +1592,8 @@ export declare namespace WalletRpcParams {
|
|
|
1417
1592
|
|
|
1418
1593
|
export namespace Params {
|
|
1419
1594
|
export interface Transaction {
|
|
1595
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1596
|
+
|
|
1420
1597
|
chain_id?: string | number;
|
|
1421
1598
|
|
|
1422
1599
|
data?: string;
|
|
@@ -1435,31 +1612,47 @@ export declare namespace WalletRpcParams {
|
|
|
1435
1612
|
|
|
1436
1613
|
to?: string;
|
|
1437
1614
|
|
|
1438
|
-
type?: 0 | 1 | 2;
|
|
1615
|
+
type?: 0 | 1 | 2 | 4;
|
|
1439
1616
|
|
|
1440
1617
|
value?: string | number;
|
|
1441
1618
|
}
|
|
1619
|
+
|
|
1620
|
+
export namespace Transaction {
|
|
1621
|
+
export interface AuthorizationList {
|
|
1622
|
+
chain_id: string | number;
|
|
1623
|
+
|
|
1624
|
+
contract: string;
|
|
1625
|
+
|
|
1626
|
+
nonce: string | number;
|
|
1627
|
+
|
|
1628
|
+
r: string;
|
|
1629
|
+
|
|
1630
|
+
s: string;
|
|
1631
|
+
|
|
1632
|
+
y_parity: number;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1442
1635
|
}
|
|
1443
1636
|
}
|
|
1444
1637
|
|
|
1445
1638
|
export interface EthereumSignUserOperationRpcInput {
|
|
1446
1639
|
/**
|
|
1447
|
-
* Body param
|
|
1640
|
+
* Body param
|
|
1448
1641
|
*/
|
|
1449
1642
|
method: 'eth_signUserOperation';
|
|
1450
1643
|
|
|
1451
1644
|
/**
|
|
1452
|
-
* Body param
|
|
1645
|
+
* Body param
|
|
1453
1646
|
*/
|
|
1454
1647
|
params: EthereumSignUserOperationRpcInput.Params;
|
|
1455
1648
|
|
|
1456
1649
|
/**
|
|
1457
|
-
* Body param
|
|
1650
|
+
* Body param
|
|
1458
1651
|
*/
|
|
1459
1652
|
address?: string;
|
|
1460
1653
|
|
|
1461
1654
|
/**
|
|
1462
|
-
* Body param
|
|
1655
|
+
* Body param
|
|
1463
1656
|
*/
|
|
1464
1657
|
chain_type?: 'ethereum';
|
|
1465
1658
|
|
|
@@ -1516,32 +1709,32 @@ export declare namespace WalletRpcParams {
|
|
|
1516
1709
|
|
|
1517
1710
|
export interface EthereumSendTransactionRpcInput {
|
|
1518
1711
|
/**
|
|
1519
|
-
* Body param
|
|
1712
|
+
* Body param
|
|
1520
1713
|
*/
|
|
1521
1714
|
caip2: string;
|
|
1522
1715
|
|
|
1523
1716
|
/**
|
|
1524
|
-
* Body param
|
|
1717
|
+
* Body param
|
|
1525
1718
|
*/
|
|
1526
1719
|
method: 'eth_sendTransaction';
|
|
1527
1720
|
|
|
1528
1721
|
/**
|
|
1529
|
-
* Body param
|
|
1722
|
+
* Body param
|
|
1530
1723
|
*/
|
|
1531
1724
|
params: EthereumSendTransactionRpcInput.Params;
|
|
1532
1725
|
|
|
1533
1726
|
/**
|
|
1534
|
-
* Body param
|
|
1727
|
+
* Body param
|
|
1535
1728
|
*/
|
|
1536
1729
|
address?: string;
|
|
1537
1730
|
|
|
1538
1731
|
/**
|
|
1539
|
-
* Body param
|
|
1732
|
+
* Body param
|
|
1540
1733
|
*/
|
|
1541
1734
|
chain_type?: 'ethereum';
|
|
1542
1735
|
|
|
1543
1736
|
/**
|
|
1544
|
-
* Body param
|
|
1737
|
+
* Body param
|
|
1545
1738
|
*/
|
|
1546
1739
|
sponsor?: boolean;
|
|
1547
1740
|
|
|
@@ -1565,6 +1758,8 @@ export declare namespace WalletRpcParams {
|
|
|
1565
1758
|
|
|
1566
1759
|
export namespace Params {
|
|
1567
1760
|
export interface Transaction {
|
|
1761
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1762
|
+
|
|
1568
1763
|
chain_id?: string | number;
|
|
1569
1764
|
|
|
1570
1765
|
data?: string;
|
|
@@ -1583,31 +1778,47 @@ export declare namespace WalletRpcParams {
|
|
|
1583
1778
|
|
|
1584
1779
|
to?: string;
|
|
1585
1780
|
|
|
1586
|
-
type?: 0 | 1 | 2;
|
|
1781
|
+
type?: 0 | 1 | 2 | 4;
|
|
1587
1782
|
|
|
1588
1783
|
value?: string | number;
|
|
1589
1784
|
}
|
|
1785
|
+
|
|
1786
|
+
export namespace Transaction {
|
|
1787
|
+
export interface AuthorizationList {
|
|
1788
|
+
chain_id: string | number;
|
|
1789
|
+
|
|
1790
|
+
contract: string;
|
|
1791
|
+
|
|
1792
|
+
nonce: string | number;
|
|
1793
|
+
|
|
1794
|
+
r: string;
|
|
1795
|
+
|
|
1796
|
+
s: string;
|
|
1797
|
+
|
|
1798
|
+
y_parity: number;
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1590
1801
|
}
|
|
1591
1802
|
}
|
|
1592
1803
|
|
|
1593
1804
|
export interface EthereumSign7702AuthorizationRpcInput {
|
|
1594
1805
|
/**
|
|
1595
|
-
* Body param
|
|
1806
|
+
* Body param
|
|
1596
1807
|
*/
|
|
1597
1808
|
method: 'eth_sign7702Authorization';
|
|
1598
1809
|
|
|
1599
1810
|
/**
|
|
1600
|
-
* Body param
|
|
1811
|
+
* Body param
|
|
1601
1812
|
*/
|
|
1602
1813
|
params: EthereumSign7702AuthorizationRpcInput.Params;
|
|
1603
1814
|
|
|
1604
1815
|
/**
|
|
1605
|
-
* Body param
|
|
1816
|
+
* Body param
|
|
1606
1817
|
*/
|
|
1607
1818
|
address?: string;
|
|
1608
1819
|
|
|
1609
1820
|
/**
|
|
1610
|
-
* Body param
|
|
1821
|
+
* Body param
|
|
1611
1822
|
*/
|
|
1612
1823
|
chain_type?: 'ethereum';
|
|
1613
1824
|
|
|
@@ -1636,22 +1847,22 @@ export declare namespace WalletRpcParams {
|
|
|
1636
1847
|
|
|
1637
1848
|
export interface EthereumSecp256k1SignRpcInput {
|
|
1638
1849
|
/**
|
|
1639
|
-
* Body param
|
|
1850
|
+
* Body param
|
|
1640
1851
|
*/
|
|
1641
1852
|
method: 'secp256k1_sign';
|
|
1642
1853
|
|
|
1643
1854
|
/**
|
|
1644
|
-
* Body param
|
|
1855
|
+
* Body param
|
|
1645
1856
|
*/
|
|
1646
1857
|
params: EthereumSecp256k1SignRpcInput.Params;
|
|
1647
1858
|
|
|
1648
1859
|
/**
|
|
1649
|
-
* Body param
|
|
1860
|
+
* Body param
|
|
1650
1861
|
*/
|
|
1651
1862
|
address?: string;
|
|
1652
1863
|
|
|
1653
1864
|
/**
|
|
1654
|
-
* Body param
|
|
1865
|
+
* Body param
|
|
1655
1866
|
*/
|
|
1656
1867
|
chain_type?: 'ethereum';
|
|
1657
1868
|
|
|
@@ -1676,22 +1887,22 @@ export declare namespace WalletRpcParams {
|
|
|
1676
1887
|
|
|
1677
1888
|
export interface SolanaSignMessageRpcInput {
|
|
1678
1889
|
/**
|
|
1679
|
-
* Body param
|
|
1890
|
+
* Body param
|
|
1680
1891
|
*/
|
|
1681
1892
|
method: 'signMessage';
|
|
1682
1893
|
|
|
1683
1894
|
/**
|
|
1684
|
-
* Body param
|
|
1895
|
+
* Body param
|
|
1685
1896
|
*/
|
|
1686
1897
|
params: SolanaSignMessageRpcInput.Params;
|
|
1687
1898
|
|
|
1688
1899
|
/**
|
|
1689
|
-
* Body param
|
|
1900
|
+
* Body param
|
|
1690
1901
|
*/
|
|
1691
1902
|
address?: string;
|
|
1692
1903
|
|
|
1693
1904
|
/**
|
|
1694
|
-
* Body param
|
|
1905
|
+
* Body param
|
|
1695
1906
|
*/
|
|
1696
1907
|
chain_type?: 'solana';
|
|
1697
1908
|
|
|
@@ -1718,22 +1929,22 @@ export declare namespace WalletRpcParams {
|
|
|
1718
1929
|
|
|
1719
1930
|
export interface SolanaSignTransactionRpcInput {
|
|
1720
1931
|
/**
|
|
1721
|
-
* Body param
|
|
1932
|
+
* Body param
|
|
1722
1933
|
*/
|
|
1723
1934
|
method: 'signTransaction';
|
|
1724
1935
|
|
|
1725
1936
|
/**
|
|
1726
|
-
* Body param
|
|
1937
|
+
* Body param
|
|
1727
1938
|
*/
|
|
1728
1939
|
params: SolanaSignTransactionRpcInput.Params;
|
|
1729
1940
|
|
|
1730
1941
|
/**
|
|
1731
|
-
* Body param
|
|
1942
|
+
* Body param
|
|
1732
1943
|
*/
|
|
1733
1944
|
address?: string;
|
|
1734
1945
|
|
|
1735
1946
|
/**
|
|
1736
|
-
* Body param
|
|
1947
|
+
* Body param
|
|
1737
1948
|
*/
|
|
1738
1949
|
chain_type?: 'solana';
|
|
1739
1950
|
|
|
@@ -1760,32 +1971,32 @@ export declare namespace WalletRpcParams {
|
|
|
1760
1971
|
|
|
1761
1972
|
export interface SolanaSignAndSendTransactionRpcInput {
|
|
1762
1973
|
/**
|
|
1763
|
-
* Body param
|
|
1974
|
+
* Body param
|
|
1764
1975
|
*/
|
|
1765
1976
|
caip2: string;
|
|
1766
1977
|
|
|
1767
1978
|
/**
|
|
1768
|
-
* Body param
|
|
1979
|
+
* Body param
|
|
1769
1980
|
*/
|
|
1770
1981
|
method: 'signAndSendTransaction';
|
|
1771
1982
|
|
|
1772
1983
|
/**
|
|
1773
|
-
* Body param
|
|
1984
|
+
* Body param
|
|
1774
1985
|
*/
|
|
1775
1986
|
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
1776
1987
|
|
|
1777
1988
|
/**
|
|
1778
|
-
* Body param
|
|
1989
|
+
* Body param
|
|
1779
1990
|
*/
|
|
1780
1991
|
address?: string;
|
|
1781
1992
|
|
|
1782
1993
|
/**
|
|
1783
|
-
* Body param
|
|
1994
|
+
* Body param
|
|
1784
1995
|
*/
|
|
1785
1996
|
chain_type?: 'solana';
|
|
1786
1997
|
|
|
1787
1998
|
/**
|
|
1788
|
-
* Body param
|
|
1999
|
+
* Body param
|
|
1789
2000
|
*/
|
|
1790
2001
|
sponsor?: boolean;
|
|
1791
2002
|
|
|
@@ -1861,6 +2072,13 @@ export namespace WalletSubmitImportParams {
|
|
|
1861
2072
|
* The index of the wallet to import.
|
|
1862
2073
|
*/
|
|
1863
2074
|
index: number;
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
2078
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
2079
|
+
* configurations.
|
|
2080
|
+
*/
|
|
2081
|
+
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
1864
2082
|
}
|
|
1865
2083
|
|
|
1866
2084
|
export interface PrivateKeySubmitInput {
|
|
@@ -1892,6 +2110,13 @@ export namespace WalletSubmitImportParams {
|
|
|
1892
2110
|
encryption_type: 'HPKE';
|
|
1893
2111
|
|
|
1894
2112
|
entropy_type: 'private-key';
|
|
2113
|
+
|
|
2114
|
+
/**
|
|
2115
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
2116
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
2117
|
+
* configurations.
|
|
2118
|
+
*/
|
|
2119
|
+
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
1895
2120
|
}
|
|
1896
2121
|
|
|
1897
2122
|
export interface AdditionalSigner {
|
|
@@ -2055,6 +2280,12 @@ export declare namespace Wallets {
|
|
|
2055
2280
|
type WalletChainType as WalletChainType,
|
|
2056
2281
|
type ExtendedChainType as ExtendedChainType,
|
|
2057
2282
|
type WalletCustodian as WalletCustodian,
|
|
2283
|
+
type CustodialWalletProvider as CustodialWalletProvider,
|
|
2284
|
+
type CustodialWalletChainType as CustodialWalletChainType,
|
|
2285
|
+
type CustodialWalletCreateInput as CustodialWalletCreateInput,
|
|
2286
|
+
type CustodialWallet as CustodialWallet,
|
|
2287
|
+
type HpkeImportConfig as HpkeImportConfig,
|
|
2288
|
+
type SuiCommandName as SuiCommandName,
|
|
2058
2289
|
type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
|
|
2059
2290
|
type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput,
|
|
2060
2291
|
type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput,
|