@privy-io/api-types 0.3.4 → 0.4.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 +45 -0
- package/LICENSE +1 -1
- package/README.md +31 -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/package.json +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/client-auth.d.mts +16 -23
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +16 -23
- package/resources/client-auth.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 +637 -383
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +637 -383
- 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/src/client.ts +148 -3
- package/src/resources/aggregations.ts +497 -0
- package/src/resources/client-auth.ts +22 -35
- package/src/resources/index.ts +73 -2
- package/src/resources/key-quorums.ts +4 -1
- package/src/resources/policies.ts +124 -207
- package/src/resources/users.ts +928 -621
- 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/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
|
|
@@ -406,6 +409,122 @@ export interface WalletCustodian {
|
|
|
406
409
|
name: string;
|
|
407
410
|
}
|
|
408
411
|
|
|
412
|
+
/**
|
|
413
|
+
* The provider of the custodial wallet.
|
|
414
|
+
*/
|
|
415
|
+
export type CustodialWalletProvider = 'bridge';
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* The chain type of the custodial wallet.
|
|
419
|
+
*/
|
|
420
|
+
export type CustodialWalletChainType = 'ethereum';
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* The input for creating a custodial wallet.
|
|
424
|
+
*/
|
|
425
|
+
export interface CustodialWalletCreateInput {
|
|
426
|
+
/**
|
|
427
|
+
* The chain type of the custodial wallet.
|
|
428
|
+
*/
|
|
429
|
+
chain_type: CustodialWalletChainType;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* The provider of the custodial wallet.
|
|
433
|
+
*/
|
|
434
|
+
provider: CustodialWalletProvider;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* The resource ID of the beneficiary of the custodial wallet, given by the
|
|
438
|
+
* licensing provider.
|
|
439
|
+
*/
|
|
440
|
+
provider_user_id: string;
|
|
441
|
+
|
|
442
|
+
additional_signers?: Array<CustodialWalletCreateInput.AdditionalSigner>;
|
|
443
|
+
|
|
444
|
+
owner?: CustodialWalletCreateInput.UserID | CustodialWalletCreateInput.PublicKey | null;
|
|
445
|
+
|
|
446
|
+
policy_ids?: Array<string>;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export namespace CustodialWalletCreateInput {
|
|
450
|
+
export interface AdditionalSigner {
|
|
451
|
+
signer_id: string;
|
|
452
|
+
|
|
453
|
+
override_policy_ids?: Array<string>;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export interface UserID {
|
|
457
|
+
user_id: string;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export interface PublicKey {
|
|
461
|
+
public_key: string;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Information about a custodial wallet.
|
|
467
|
+
*/
|
|
468
|
+
export interface CustodialWallet {
|
|
469
|
+
id: string;
|
|
470
|
+
|
|
471
|
+
address: string;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* The chain type of the custodial wallet.
|
|
475
|
+
*/
|
|
476
|
+
chain_type: CustodialWalletChainType;
|
|
477
|
+
|
|
478
|
+
owner_id: string | null;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* The provider of the custodial wallet.
|
|
482
|
+
*/
|
|
483
|
+
provider: CustodialWalletProvider;
|
|
484
|
+
|
|
485
|
+
additional_signers?: Array<CustodialWallet.AdditionalSigner>;
|
|
486
|
+
|
|
487
|
+
policy_ids?: Array<string>;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export namespace CustodialWallet {
|
|
491
|
+
export interface AdditionalSigner {
|
|
492
|
+
signer_id: string;
|
|
493
|
+
|
|
494
|
+
override_policy_ids?: Array<string>;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
500
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
501
|
+
* configurations.
|
|
502
|
+
*/
|
|
503
|
+
export interface HpkeImportConfig {
|
|
504
|
+
/**
|
|
505
|
+
* Additional Authenticated Data (AAD) used during encryption. Should be
|
|
506
|
+
* base64-encoded bytes.
|
|
507
|
+
*/
|
|
508
|
+
aad?: string;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* The AEAD algorithm used for encryption. Defaults to CHACHA20_POLY1305 if not
|
|
512
|
+
* specified.
|
|
513
|
+
*/
|
|
514
|
+
aead_algorithm?: 'CHACHA20_POLY1305' | 'AES_GCM256';
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Application-specific context information (INFO) used during HPKE encryption.
|
|
518
|
+
* Should be base64-encoded bytes.
|
|
519
|
+
*/
|
|
520
|
+
info?: string;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
525
|
+
*/
|
|
526
|
+
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
527
|
+
|
|
409
528
|
/**
|
|
410
529
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
411
530
|
*/
|
|
@@ -447,6 +566,8 @@ export namespace EthereumSignTransactionRpcInput {
|
|
|
447
566
|
|
|
448
567
|
export namespace Params {
|
|
449
568
|
export interface Transaction {
|
|
569
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
570
|
+
|
|
450
571
|
chain_id?: string | number;
|
|
451
572
|
|
|
452
573
|
data?: string;
|
|
@@ -465,10 +586,26 @@ export namespace EthereumSignTransactionRpcInput {
|
|
|
465
586
|
|
|
466
587
|
to?: string;
|
|
467
588
|
|
|
468
|
-
type?: 0 | 1 | 2;
|
|
589
|
+
type?: 0 | 1 | 2 | 4;
|
|
469
590
|
|
|
470
591
|
value?: string | number;
|
|
471
592
|
}
|
|
593
|
+
|
|
594
|
+
export namespace Transaction {
|
|
595
|
+
export interface AuthorizationList {
|
|
596
|
+
chain_id: string | number;
|
|
597
|
+
|
|
598
|
+
contract: string;
|
|
599
|
+
|
|
600
|
+
nonce: string | number;
|
|
601
|
+
|
|
602
|
+
r: string;
|
|
603
|
+
|
|
604
|
+
s: string;
|
|
605
|
+
|
|
606
|
+
y_parity: number;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
472
609
|
}
|
|
473
610
|
}
|
|
474
611
|
|
|
@@ -496,6 +633,8 @@ export namespace EthereumSendTransactionRpcInput {
|
|
|
496
633
|
|
|
497
634
|
export namespace Params {
|
|
498
635
|
export interface Transaction {
|
|
636
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
637
|
+
|
|
499
638
|
chain_id?: string | number;
|
|
500
639
|
|
|
501
640
|
data?: string;
|
|
@@ -514,10 +653,26 @@ export namespace EthereumSendTransactionRpcInput {
|
|
|
514
653
|
|
|
515
654
|
to?: string;
|
|
516
655
|
|
|
517
|
-
type?: 0 | 1 | 2;
|
|
656
|
+
type?: 0 | 1 | 2 | 4;
|
|
518
657
|
|
|
519
658
|
value?: string | number;
|
|
520
659
|
}
|
|
660
|
+
|
|
661
|
+
export namespace Transaction {
|
|
662
|
+
export interface AuthorizationList {
|
|
663
|
+
chain_id: string | number;
|
|
664
|
+
|
|
665
|
+
contract: string;
|
|
666
|
+
|
|
667
|
+
nonce: string | number;
|
|
668
|
+
|
|
669
|
+
r: string;
|
|
670
|
+
|
|
671
|
+
s: string;
|
|
672
|
+
|
|
673
|
+
y_parity: number;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
521
676
|
}
|
|
522
677
|
}
|
|
523
678
|
|
|
@@ -757,10 +912,14 @@ export namespace EthereumSendTransactionRpcResponse {
|
|
|
757
912
|
transaction_id?: string;
|
|
758
913
|
|
|
759
914
|
transaction_request?: Data.TransactionRequest;
|
|
915
|
+
|
|
916
|
+
user_operation_hash?: string;
|
|
760
917
|
}
|
|
761
918
|
|
|
762
919
|
export namespace Data {
|
|
763
920
|
export interface TransactionRequest {
|
|
921
|
+
authorization_list?: Array<TransactionRequest.AuthorizationList>;
|
|
922
|
+
|
|
764
923
|
chain_id?: string | number;
|
|
765
924
|
|
|
766
925
|
data?: string;
|
|
@@ -779,10 +938,26 @@ export namespace EthereumSendTransactionRpcResponse {
|
|
|
779
938
|
|
|
780
939
|
to?: string;
|
|
781
940
|
|
|
782
|
-
type?: 0 | 1 | 2;
|
|
941
|
+
type?: 0 | 1 | 2 | 4;
|
|
783
942
|
|
|
784
943
|
value?: string | number;
|
|
785
944
|
}
|
|
945
|
+
|
|
946
|
+
export namespace TransactionRequest {
|
|
947
|
+
export interface AuthorizationList {
|
|
948
|
+
chain_id: string | number;
|
|
949
|
+
|
|
950
|
+
contract: string;
|
|
951
|
+
|
|
952
|
+
nonce: string | number;
|
|
953
|
+
|
|
954
|
+
r: string;
|
|
955
|
+
|
|
956
|
+
s: string;
|
|
957
|
+
|
|
958
|
+
y_parity: number;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
786
961
|
}
|
|
787
962
|
}
|
|
788
963
|
|
|
@@ -1259,12 +1434,12 @@ export namespace WalletRawSignParams {
|
|
|
1259
1434
|
/**
|
|
1260
1435
|
* The encoding scheme for the bytes.
|
|
1261
1436
|
*/
|
|
1262
|
-
encoding: 'utf-8' | 'hex';
|
|
1437
|
+
encoding: 'utf-8' | 'hex' | 'base64';
|
|
1263
1438
|
|
|
1264
1439
|
/**
|
|
1265
1440
|
* The hash function to hash the bytes.
|
|
1266
1441
|
*/
|
|
1267
|
-
hash_function: 'keccak256' | 'sha256';
|
|
1442
|
+
hash_function: 'keccak256' | 'sha256' | 'blake2b256';
|
|
1268
1443
|
}
|
|
1269
1444
|
}
|
|
1270
1445
|
|
|
@@ -1283,22 +1458,22 @@ export type WalletRpcParams =
|
|
|
1283
1458
|
export declare namespace WalletRpcParams {
|
|
1284
1459
|
export interface EthereumPersonalSignRpcInput {
|
|
1285
1460
|
/**
|
|
1286
|
-
* Body param
|
|
1461
|
+
* Body param
|
|
1287
1462
|
*/
|
|
1288
1463
|
method: 'personal_sign';
|
|
1289
1464
|
|
|
1290
1465
|
/**
|
|
1291
|
-
* Body param
|
|
1466
|
+
* Body param
|
|
1292
1467
|
*/
|
|
1293
1468
|
params: EthereumPersonalSignRpcInput.Params;
|
|
1294
1469
|
|
|
1295
1470
|
/**
|
|
1296
|
-
* Body param
|
|
1471
|
+
* Body param
|
|
1297
1472
|
*/
|
|
1298
1473
|
address?: string;
|
|
1299
1474
|
|
|
1300
1475
|
/**
|
|
1301
|
-
* Body param
|
|
1476
|
+
* Body param
|
|
1302
1477
|
*/
|
|
1303
1478
|
chain_type?: 'ethereum';
|
|
1304
1479
|
|
|
@@ -1325,22 +1500,22 @@ export declare namespace WalletRpcParams {
|
|
|
1325
1500
|
|
|
1326
1501
|
export interface EthereumSignTypedDataRpcInput {
|
|
1327
1502
|
/**
|
|
1328
|
-
* Body param
|
|
1503
|
+
* Body param
|
|
1329
1504
|
*/
|
|
1330
1505
|
method: 'eth_signTypedData_v4';
|
|
1331
1506
|
|
|
1332
1507
|
/**
|
|
1333
|
-
* Body param
|
|
1508
|
+
* Body param
|
|
1334
1509
|
*/
|
|
1335
1510
|
params: EthereumSignTypedDataRpcInput.Params;
|
|
1336
1511
|
|
|
1337
1512
|
/**
|
|
1338
|
-
* Body param
|
|
1513
|
+
* Body param
|
|
1339
1514
|
*/
|
|
1340
1515
|
address?: string;
|
|
1341
1516
|
|
|
1342
1517
|
/**
|
|
1343
|
-
* Body param
|
|
1518
|
+
* Body param
|
|
1344
1519
|
*/
|
|
1345
1520
|
chain_type?: 'ethereum';
|
|
1346
1521
|
|
|
@@ -1385,22 +1560,22 @@ export declare namespace WalletRpcParams {
|
|
|
1385
1560
|
|
|
1386
1561
|
export interface EthereumSignTransactionRpcInput {
|
|
1387
1562
|
/**
|
|
1388
|
-
* Body param
|
|
1563
|
+
* Body param
|
|
1389
1564
|
*/
|
|
1390
1565
|
method: 'eth_signTransaction';
|
|
1391
1566
|
|
|
1392
1567
|
/**
|
|
1393
|
-
* Body param
|
|
1568
|
+
* Body param
|
|
1394
1569
|
*/
|
|
1395
1570
|
params: EthereumSignTransactionRpcInput.Params;
|
|
1396
1571
|
|
|
1397
1572
|
/**
|
|
1398
|
-
* Body param
|
|
1573
|
+
* Body param
|
|
1399
1574
|
*/
|
|
1400
1575
|
address?: string;
|
|
1401
1576
|
|
|
1402
1577
|
/**
|
|
1403
|
-
* Body param
|
|
1578
|
+
* Body param
|
|
1404
1579
|
*/
|
|
1405
1580
|
chain_type?: 'ethereum';
|
|
1406
1581
|
|
|
@@ -1424,6 +1599,8 @@ export declare namespace WalletRpcParams {
|
|
|
1424
1599
|
|
|
1425
1600
|
export namespace Params {
|
|
1426
1601
|
export interface Transaction {
|
|
1602
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1603
|
+
|
|
1427
1604
|
chain_id?: string | number;
|
|
1428
1605
|
|
|
1429
1606
|
data?: string;
|
|
@@ -1442,31 +1619,47 @@ export declare namespace WalletRpcParams {
|
|
|
1442
1619
|
|
|
1443
1620
|
to?: string;
|
|
1444
1621
|
|
|
1445
|
-
type?: 0 | 1 | 2;
|
|
1622
|
+
type?: 0 | 1 | 2 | 4;
|
|
1446
1623
|
|
|
1447
1624
|
value?: string | number;
|
|
1448
1625
|
}
|
|
1626
|
+
|
|
1627
|
+
export namespace Transaction {
|
|
1628
|
+
export interface AuthorizationList {
|
|
1629
|
+
chain_id: string | number;
|
|
1630
|
+
|
|
1631
|
+
contract: string;
|
|
1632
|
+
|
|
1633
|
+
nonce: string | number;
|
|
1634
|
+
|
|
1635
|
+
r: string;
|
|
1636
|
+
|
|
1637
|
+
s: string;
|
|
1638
|
+
|
|
1639
|
+
y_parity: number;
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1449
1642
|
}
|
|
1450
1643
|
}
|
|
1451
1644
|
|
|
1452
1645
|
export interface EthereumSignUserOperationRpcInput {
|
|
1453
1646
|
/**
|
|
1454
|
-
* Body param
|
|
1647
|
+
* Body param
|
|
1455
1648
|
*/
|
|
1456
1649
|
method: 'eth_signUserOperation';
|
|
1457
1650
|
|
|
1458
1651
|
/**
|
|
1459
|
-
* Body param
|
|
1652
|
+
* Body param
|
|
1460
1653
|
*/
|
|
1461
1654
|
params: EthereumSignUserOperationRpcInput.Params;
|
|
1462
1655
|
|
|
1463
1656
|
/**
|
|
1464
|
-
* Body param
|
|
1657
|
+
* Body param
|
|
1465
1658
|
*/
|
|
1466
1659
|
address?: string;
|
|
1467
1660
|
|
|
1468
1661
|
/**
|
|
1469
|
-
* Body param
|
|
1662
|
+
* Body param
|
|
1470
1663
|
*/
|
|
1471
1664
|
chain_type?: 'ethereum';
|
|
1472
1665
|
|
|
@@ -1523,32 +1716,32 @@ export declare namespace WalletRpcParams {
|
|
|
1523
1716
|
|
|
1524
1717
|
export interface EthereumSendTransactionRpcInput {
|
|
1525
1718
|
/**
|
|
1526
|
-
* Body param
|
|
1719
|
+
* Body param
|
|
1527
1720
|
*/
|
|
1528
1721
|
caip2: string;
|
|
1529
1722
|
|
|
1530
1723
|
/**
|
|
1531
|
-
* Body param
|
|
1724
|
+
* Body param
|
|
1532
1725
|
*/
|
|
1533
1726
|
method: 'eth_sendTransaction';
|
|
1534
1727
|
|
|
1535
1728
|
/**
|
|
1536
|
-
* Body param
|
|
1729
|
+
* Body param
|
|
1537
1730
|
*/
|
|
1538
1731
|
params: EthereumSendTransactionRpcInput.Params;
|
|
1539
1732
|
|
|
1540
1733
|
/**
|
|
1541
|
-
* Body param
|
|
1734
|
+
* Body param
|
|
1542
1735
|
*/
|
|
1543
1736
|
address?: string;
|
|
1544
1737
|
|
|
1545
1738
|
/**
|
|
1546
|
-
* Body param
|
|
1739
|
+
* Body param
|
|
1547
1740
|
*/
|
|
1548
1741
|
chain_type?: 'ethereum';
|
|
1549
1742
|
|
|
1550
1743
|
/**
|
|
1551
|
-
* Body param
|
|
1744
|
+
* Body param
|
|
1552
1745
|
*/
|
|
1553
1746
|
sponsor?: boolean;
|
|
1554
1747
|
|
|
@@ -1572,6 +1765,8 @@ export declare namespace WalletRpcParams {
|
|
|
1572
1765
|
|
|
1573
1766
|
export namespace Params {
|
|
1574
1767
|
export interface Transaction {
|
|
1768
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1769
|
+
|
|
1575
1770
|
chain_id?: string | number;
|
|
1576
1771
|
|
|
1577
1772
|
data?: string;
|
|
@@ -1590,31 +1785,47 @@ export declare namespace WalletRpcParams {
|
|
|
1590
1785
|
|
|
1591
1786
|
to?: string;
|
|
1592
1787
|
|
|
1593
|
-
type?: 0 | 1 | 2;
|
|
1788
|
+
type?: 0 | 1 | 2 | 4;
|
|
1594
1789
|
|
|
1595
1790
|
value?: string | number;
|
|
1596
1791
|
}
|
|
1792
|
+
|
|
1793
|
+
export namespace Transaction {
|
|
1794
|
+
export interface AuthorizationList {
|
|
1795
|
+
chain_id: string | number;
|
|
1796
|
+
|
|
1797
|
+
contract: string;
|
|
1798
|
+
|
|
1799
|
+
nonce: string | number;
|
|
1800
|
+
|
|
1801
|
+
r: string;
|
|
1802
|
+
|
|
1803
|
+
s: string;
|
|
1804
|
+
|
|
1805
|
+
y_parity: number;
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1597
1808
|
}
|
|
1598
1809
|
}
|
|
1599
1810
|
|
|
1600
1811
|
export interface EthereumSign7702AuthorizationRpcInput {
|
|
1601
1812
|
/**
|
|
1602
|
-
* Body param
|
|
1813
|
+
* Body param
|
|
1603
1814
|
*/
|
|
1604
1815
|
method: 'eth_sign7702Authorization';
|
|
1605
1816
|
|
|
1606
1817
|
/**
|
|
1607
|
-
* Body param
|
|
1818
|
+
* Body param
|
|
1608
1819
|
*/
|
|
1609
1820
|
params: EthereumSign7702AuthorizationRpcInput.Params;
|
|
1610
1821
|
|
|
1611
1822
|
/**
|
|
1612
|
-
* Body param
|
|
1823
|
+
* Body param
|
|
1613
1824
|
*/
|
|
1614
1825
|
address?: string;
|
|
1615
1826
|
|
|
1616
1827
|
/**
|
|
1617
|
-
* Body param
|
|
1828
|
+
* Body param
|
|
1618
1829
|
*/
|
|
1619
1830
|
chain_type?: 'ethereum';
|
|
1620
1831
|
|
|
@@ -1643,22 +1854,22 @@ export declare namespace WalletRpcParams {
|
|
|
1643
1854
|
|
|
1644
1855
|
export interface EthereumSecp256k1SignRpcInput {
|
|
1645
1856
|
/**
|
|
1646
|
-
* Body param
|
|
1857
|
+
* Body param
|
|
1647
1858
|
*/
|
|
1648
1859
|
method: 'secp256k1_sign';
|
|
1649
1860
|
|
|
1650
1861
|
/**
|
|
1651
|
-
* Body param
|
|
1862
|
+
* Body param
|
|
1652
1863
|
*/
|
|
1653
1864
|
params: EthereumSecp256k1SignRpcInput.Params;
|
|
1654
1865
|
|
|
1655
1866
|
/**
|
|
1656
|
-
* Body param
|
|
1867
|
+
* Body param
|
|
1657
1868
|
*/
|
|
1658
1869
|
address?: string;
|
|
1659
1870
|
|
|
1660
1871
|
/**
|
|
1661
|
-
* Body param
|
|
1872
|
+
* Body param
|
|
1662
1873
|
*/
|
|
1663
1874
|
chain_type?: 'ethereum';
|
|
1664
1875
|
|
|
@@ -1683,22 +1894,22 @@ export declare namespace WalletRpcParams {
|
|
|
1683
1894
|
|
|
1684
1895
|
export interface SolanaSignMessageRpcInput {
|
|
1685
1896
|
/**
|
|
1686
|
-
* Body param
|
|
1897
|
+
* Body param
|
|
1687
1898
|
*/
|
|
1688
1899
|
method: 'signMessage';
|
|
1689
1900
|
|
|
1690
1901
|
/**
|
|
1691
|
-
* Body param
|
|
1902
|
+
* Body param
|
|
1692
1903
|
*/
|
|
1693
1904
|
params: SolanaSignMessageRpcInput.Params;
|
|
1694
1905
|
|
|
1695
1906
|
/**
|
|
1696
|
-
* Body param
|
|
1907
|
+
* Body param
|
|
1697
1908
|
*/
|
|
1698
1909
|
address?: string;
|
|
1699
1910
|
|
|
1700
1911
|
/**
|
|
1701
|
-
* Body param
|
|
1912
|
+
* Body param
|
|
1702
1913
|
*/
|
|
1703
1914
|
chain_type?: 'solana';
|
|
1704
1915
|
|
|
@@ -1725,22 +1936,22 @@ export declare namespace WalletRpcParams {
|
|
|
1725
1936
|
|
|
1726
1937
|
export interface SolanaSignTransactionRpcInput {
|
|
1727
1938
|
/**
|
|
1728
|
-
* Body param
|
|
1939
|
+
* Body param
|
|
1729
1940
|
*/
|
|
1730
1941
|
method: 'signTransaction';
|
|
1731
1942
|
|
|
1732
1943
|
/**
|
|
1733
|
-
* Body param
|
|
1944
|
+
* Body param
|
|
1734
1945
|
*/
|
|
1735
1946
|
params: SolanaSignTransactionRpcInput.Params;
|
|
1736
1947
|
|
|
1737
1948
|
/**
|
|
1738
|
-
* Body param
|
|
1949
|
+
* Body param
|
|
1739
1950
|
*/
|
|
1740
1951
|
address?: string;
|
|
1741
1952
|
|
|
1742
1953
|
/**
|
|
1743
|
-
* Body param
|
|
1954
|
+
* Body param
|
|
1744
1955
|
*/
|
|
1745
1956
|
chain_type?: 'solana';
|
|
1746
1957
|
|
|
@@ -1767,32 +1978,32 @@ export declare namespace WalletRpcParams {
|
|
|
1767
1978
|
|
|
1768
1979
|
export interface SolanaSignAndSendTransactionRpcInput {
|
|
1769
1980
|
/**
|
|
1770
|
-
* Body param
|
|
1981
|
+
* Body param
|
|
1771
1982
|
*/
|
|
1772
1983
|
caip2: string;
|
|
1773
1984
|
|
|
1774
1985
|
/**
|
|
1775
|
-
* Body param
|
|
1986
|
+
* Body param
|
|
1776
1987
|
*/
|
|
1777
1988
|
method: 'signAndSendTransaction';
|
|
1778
1989
|
|
|
1779
1990
|
/**
|
|
1780
|
-
* Body param
|
|
1991
|
+
* Body param
|
|
1781
1992
|
*/
|
|
1782
1993
|
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
1783
1994
|
|
|
1784
1995
|
/**
|
|
1785
|
-
* Body param
|
|
1996
|
+
* Body param
|
|
1786
1997
|
*/
|
|
1787
1998
|
address?: string;
|
|
1788
1999
|
|
|
1789
2000
|
/**
|
|
1790
|
-
* Body param
|
|
2001
|
+
* Body param
|
|
1791
2002
|
*/
|
|
1792
2003
|
chain_type?: 'solana';
|
|
1793
2004
|
|
|
1794
2005
|
/**
|
|
1795
|
-
* Body param
|
|
2006
|
+
* Body param
|
|
1796
2007
|
*/
|
|
1797
2008
|
sponsor?: boolean;
|
|
1798
2009
|
|
|
@@ -1868,6 +2079,13 @@ export namespace WalletSubmitImportParams {
|
|
|
1868
2079
|
* The index of the wallet to import.
|
|
1869
2080
|
*/
|
|
1870
2081
|
index: number;
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
2085
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
2086
|
+
* configurations.
|
|
2087
|
+
*/
|
|
2088
|
+
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
1871
2089
|
}
|
|
1872
2090
|
|
|
1873
2091
|
export interface PrivateKeySubmitInput {
|
|
@@ -1899,6 +2117,13 @@ export namespace WalletSubmitImportParams {
|
|
|
1899
2117
|
encryption_type: 'HPKE';
|
|
1900
2118
|
|
|
1901
2119
|
entropy_type: 'private-key';
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
2123
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
2124
|
+
* configurations.
|
|
2125
|
+
*/
|
|
2126
|
+
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
1902
2127
|
}
|
|
1903
2128
|
|
|
1904
2129
|
export interface AdditionalSigner {
|
|
@@ -2063,6 +2288,12 @@ export declare namespace Wallets {
|
|
|
2063
2288
|
type WalletRevokeResponse as WalletRevokeResponse,
|
|
2064
2289
|
type ExtendedChainType as ExtendedChainType,
|
|
2065
2290
|
type WalletCustodian as WalletCustodian,
|
|
2291
|
+
type CustodialWalletProvider as CustodialWalletProvider,
|
|
2292
|
+
type CustodialWalletChainType as CustodialWalletChainType,
|
|
2293
|
+
type CustodialWalletCreateInput as CustodialWalletCreateInput,
|
|
2294
|
+
type CustodialWallet as CustodialWallet,
|
|
2295
|
+
type HpkeImportConfig as HpkeImportConfig,
|
|
2296
|
+
type SuiCommandName as SuiCommandName,
|
|
2066
2297
|
type EthereumPersonalSignRpcInput as EthereumPersonalSignRpcInput,
|
|
2067
2298
|
type EthereumSignTransactionRpcInput as EthereumSignTransactionRpcInput,
|
|
2068
2299
|
type EthereumSendTransactionRpcInput as EthereumSendTransactionRpcInput,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|