@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
|
@@ -11,7 +11,7 @@ export declare class Wallets extends APIResource {
|
|
|
11
11
|
transactions: TransactionsAPI.Transactions;
|
|
12
12
|
balance: BalanceAPI.Balance;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Creates a new wallet on the requested chain and for the requested owner.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
@@ -155,6 +155,9 @@ export type CurveSigningChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'mo
|
|
|
155
155
|
* The wallet chain types that offer first class support.
|
|
156
156
|
*/
|
|
157
157
|
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
158
|
+
/**
|
|
159
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
160
|
+
*/
|
|
158
161
|
export interface Wallet {
|
|
159
162
|
/**
|
|
160
163
|
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
@@ -231,6 +234,97 @@ export type ExtendedChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'moveme
|
|
|
231
234
|
export interface WalletCustodian {
|
|
232
235
|
name: string;
|
|
233
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* The provider of the custodial wallet.
|
|
239
|
+
*/
|
|
240
|
+
export type CustodialWalletProvider = 'bridge';
|
|
241
|
+
/**
|
|
242
|
+
* The chain type of the custodial wallet.
|
|
243
|
+
*/
|
|
244
|
+
export type CustodialWalletChainType = 'ethereum';
|
|
245
|
+
/**
|
|
246
|
+
* The input for creating a custodial wallet.
|
|
247
|
+
*/
|
|
248
|
+
export interface CustodialWalletCreateInput {
|
|
249
|
+
/**
|
|
250
|
+
* The chain type of the custodial wallet.
|
|
251
|
+
*/
|
|
252
|
+
chain_type: CustodialWalletChainType;
|
|
253
|
+
/**
|
|
254
|
+
* The provider of the custodial wallet.
|
|
255
|
+
*/
|
|
256
|
+
provider: CustodialWalletProvider;
|
|
257
|
+
/**
|
|
258
|
+
* The resource ID of the beneficiary of the custodial wallet, given by the
|
|
259
|
+
* licensing provider.
|
|
260
|
+
*/
|
|
261
|
+
provider_user_id: string;
|
|
262
|
+
additional_signers?: Array<CustodialWalletCreateInput.AdditionalSigner>;
|
|
263
|
+
owner?: CustodialWalletCreateInput.UserID | CustodialWalletCreateInput.PublicKey | null;
|
|
264
|
+
policy_ids?: Array<string>;
|
|
265
|
+
}
|
|
266
|
+
export declare namespace CustodialWalletCreateInput {
|
|
267
|
+
interface AdditionalSigner {
|
|
268
|
+
signer_id: string;
|
|
269
|
+
override_policy_ids?: Array<string>;
|
|
270
|
+
}
|
|
271
|
+
interface UserID {
|
|
272
|
+
user_id: string;
|
|
273
|
+
}
|
|
274
|
+
interface PublicKey {
|
|
275
|
+
public_key: string;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Information about a custodial wallet.
|
|
280
|
+
*/
|
|
281
|
+
export interface CustodialWallet {
|
|
282
|
+
id: string;
|
|
283
|
+
address: string;
|
|
284
|
+
/**
|
|
285
|
+
* The chain type of the custodial wallet.
|
|
286
|
+
*/
|
|
287
|
+
chain_type: CustodialWalletChainType;
|
|
288
|
+
owner_id: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* The provider of the custodial wallet.
|
|
291
|
+
*/
|
|
292
|
+
provider: CustodialWalletProvider;
|
|
293
|
+
additional_signers?: Array<CustodialWallet.AdditionalSigner>;
|
|
294
|
+
policy_ids?: Array<string>;
|
|
295
|
+
}
|
|
296
|
+
export declare namespace CustodialWallet {
|
|
297
|
+
interface AdditionalSigner {
|
|
298
|
+
signer_id: string;
|
|
299
|
+
override_policy_ids?: Array<string>;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
304
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
305
|
+
* configurations.
|
|
306
|
+
*/
|
|
307
|
+
export interface HpkeImportConfig {
|
|
308
|
+
/**
|
|
309
|
+
* Additional Authenticated Data (AAD) used during encryption. Should be
|
|
310
|
+
* base64-encoded bytes.
|
|
311
|
+
*/
|
|
312
|
+
aad?: string;
|
|
313
|
+
/**
|
|
314
|
+
* The AEAD algorithm used for encryption. Defaults to CHACHA20_POLY1305 if not
|
|
315
|
+
* specified.
|
|
316
|
+
*/
|
|
317
|
+
aead_algorithm?: 'CHACHA20_POLY1305' | 'AES_GCM256';
|
|
318
|
+
/**
|
|
319
|
+
* Application-specific context information (INFO) used during HPKE encryption.
|
|
320
|
+
* Should be base64-encoded bytes.
|
|
321
|
+
*/
|
|
322
|
+
info?: string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
326
|
+
*/
|
|
327
|
+
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
234
328
|
/**
|
|
235
329
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
236
330
|
*/
|
|
@@ -261,6 +355,7 @@ export declare namespace EthereumSignTransactionRpcInput {
|
|
|
261
355
|
}
|
|
262
356
|
namespace Params {
|
|
263
357
|
interface Transaction {
|
|
358
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
264
359
|
chain_id?: string | number;
|
|
265
360
|
data?: string;
|
|
266
361
|
from?: string;
|
|
@@ -270,9 +365,19 @@ export declare namespace EthereumSignTransactionRpcInput {
|
|
|
270
365
|
max_priority_fee_per_gas?: string | number;
|
|
271
366
|
nonce?: string | number;
|
|
272
367
|
to?: string;
|
|
273
|
-
type?: 0 | 1 | 2;
|
|
368
|
+
type?: 0 | 1 | 2 | 4;
|
|
274
369
|
value?: string | number;
|
|
275
370
|
}
|
|
371
|
+
namespace Transaction {
|
|
372
|
+
interface AuthorizationList {
|
|
373
|
+
chain_id: string | number;
|
|
374
|
+
contract: string;
|
|
375
|
+
nonce: string | number;
|
|
376
|
+
r: string;
|
|
377
|
+
s: string;
|
|
378
|
+
y_parity: number;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
276
381
|
}
|
|
277
382
|
}
|
|
278
383
|
/**
|
|
@@ -292,6 +397,7 @@ export declare namespace EthereumSendTransactionRpcInput {
|
|
|
292
397
|
}
|
|
293
398
|
namespace Params {
|
|
294
399
|
interface Transaction {
|
|
400
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
295
401
|
chain_id?: string | number;
|
|
296
402
|
data?: string;
|
|
297
403
|
from?: string;
|
|
@@ -301,9 +407,19 @@ export declare namespace EthereumSendTransactionRpcInput {
|
|
|
301
407
|
max_priority_fee_per_gas?: string | number;
|
|
302
408
|
nonce?: string | number;
|
|
303
409
|
to?: string;
|
|
304
|
-
type?: 0 | 1 | 2;
|
|
410
|
+
type?: 0 | 1 | 2 | 4;
|
|
305
411
|
value?: string | number;
|
|
306
412
|
}
|
|
413
|
+
namespace Transaction {
|
|
414
|
+
interface AuthorizationList {
|
|
415
|
+
chain_id: string | number;
|
|
416
|
+
contract: string;
|
|
417
|
+
nonce: string | number;
|
|
418
|
+
r: string;
|
|
419
|
+
s: string;
|
|
420
|
+
y_parity: number;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
307
423
|
}
|
|
308
424
|
}
|
|
309
425
|
/**
|
|
@@ -477,9 +593,11 @@ export declare namespace EthereumSendTransactionRpcResponse {
|
|
|
477
593
|
hash: string;
|
|
478
594
|
transaction_id?: string;
|
|
479
595
|
transaction_request?: Data.TransactionRequest;
|
|
596
|
+
user_operation_hash?: string;
|
|
480
597
|
}
|
|
481
598
|
namespace Data {
|
|
482
599
|
interface TransactionRequest {
|
|
600
|
+
authorization_list?: Array<TransactionRequest.AuthorizationList>;
|
|
483
601
|
chain_id?: string | number;
|
|
484
602
|
data?: string;
|
|
485
603
|
from?: string;
|
|
@@ -489,9 +607,19 @@ export declare namespace EthereumSendTransactionRpcResponse {
|
|
|
489
607
|
max_priority_fee_per_gas?: string | number;
|
|
490
608
|
nonce?: string | number;
|
|
491
609
|
to?: string;
|
|
492
|
-
type?: 0 | 1 | 2;
|
|
610
|
+
type?: 0 | 1 | 2 | 4;
|
|
493
611
|
value?: string | number;
|
|
494
612
|
}
|
|
613
|
+
namespace TransactionRequest {
|
|
614
|
+
interface AuthorizationList {
|
|
615
|
+
chain_id: string | number;
|
|
616
|
+
contract: string;
|
|
617
|
+
nonce: string | number;
|
|
618
|
+
r: string;
|
|
619
|
+
s: string;
|
|
620
|
+
y_parity: number;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
495
623
|
}
|
|
496
624
|
}
|
|
497
625
|
/**
|
|
@@ -863,30 +991,30 @@ export declare namespace WalletRawSignParams {
|
|
|
863
991
|
/**
|
|
864
992
|
* The encoding scheme for the bytes.
|
|
865
993
|
*/
|
|
866
|
-
encoding: 'utf-8' | 'hex';
|
|
994
|
+
encoding: 'utf-8' | 'hex' | 'base64';
|
|
867
995
|
/**
|
|
868
996
|
* The hash function to hash the bytes.
|
|
869
997
|
*/
|
|
870
|
-
hash_function: 'keccak256' | 'sha256';
|
|
998
|
+
hash_function: 'keccak256' | 'sha256' | 'blake2b256';
|
|
871
999
|
}
|
|
872
1000
|
}
|
|
873
1001
|
export type WalletRpcParams = WalletRpcParams.EthereumPersonalSignRpcInput | WalletRpcParams.EthereumSignTypedDataRpcInput | WalletRpcParams.EthereumSignTransactionRpcInput | WalletRpcParams.EthereumSignUserOperationRpcInput | WalletRpcParams.EthereumSendTransactionRpcInput | WalletRpcParams.EthereumSign7702AuthorizationRpcInput | WalletRpcParams.EthereumSecp256k1SignRpcInput | WalletRpcParams.SolanaSignMessageRpcInput | WalletRpcParams.SolanaSignTransactionRpcInput | WalletRpcParams.SolanaSignAndSendTransactionRpcInput;
|
|
874
1002
|
export declare namespace WalletRpcParams {
|
|
875
1003
|
interface EthereumPersonalSignRpcInput {
|
|
876
1004
|
/**
|
|
877
|
-
* Body param
|
|
1005
|
+
* Body param
|
|
878
1006
|
*/
|
|
879
1007
|
method: 'personal_sign';
|
|
880
1008
|
/**
|
|
881
|
-
* Body param
|
|
1009
|
+
* Body param
|
|
882
1010
|
*/
|
|
883
1011
|
params: EthereumPersonalSignRpcInput.Params;
|
|
884
1012
|
/**
|
|
885
|
-
* Body param
|
|
1013
|
+
* Body param
|
|
886
1014
|
*/
|
|
887
1015
|
address?: string;
|
|
888
1016
|
/**
|
|
889
|
-
* Body param
|
|
1017
|
+
* Body param
|
|
890
1018
|
*/
|
|
891
1019
|
chain_type?: 'ethereum';
|
|
892
1020
|
/**
|
|
@@ -908,19 +1036,19 @@ export declare namespace WalletRpcParams {
|
|
|
908
1036
|
}
|
|
909
1037
|
interface EthereumSignTypedDataRpcInput {
|
|
910
1038
|
/**
|
|
911
|
-
* Body param
|
|
1039
|
+
* Body param
|
|
912
1040
|
*/
|
|
913
1041
|
method: 'eth_signTypedData_v4';
|
|
914
1042
|
/**
|
|
915
|
-
* Body param
|
|
1043
|
+
* Body param
|
|
916
1044
|
*/
|
|
917
1045
|
params: EthereumSignTypedDataRpcInput.Params;
|
|
918
1046
|
/**
|
|
919
|
-
* Body param
|
|
1047
|
+
* Body param
|
|
920
1048
|
*/
|
|
921
1049
|
address?: string;
|
|
922
1050
|
/**
|
|
923
|
-
* Body param
|
|
1051
|
+
* Body param
|
|
924
1052
|
*/
|
|
925
1053
|
chain_type?: 'ethereum';
|
|
926
1054
|
/**
|
|
@@ -961,19 +1089,19 @@ export declare namespace WalletRpcParams {
|
|
|
961
1089
|
}
|
|
962
1090
|
interface EthereumSignTransactionRpcInput {
|
|
963
1091
|
/**
|
|
964
|
-
* Body param
|
|
1092
|
+
* Body param
|
|
965
1093
|
*/
|
|
966
1094
|
method: 'eth_signTransaction';
|
|
967
1095
|
/**
|
|
968
|
-
* Body param
|
|
1096
|
+
* Body param
|
|
969
1097
|
*/
|
|
970
1098
|
params: EthereumSignTransactionRpcInput.Params;
|
|
971
1099
|
/**
|
|
972
|
-
* Body param
|
|
1100
|
+
* Body param
|
|
973
1101
|
*/
|
|
974
1102
|
address?: string;
|
|
975
1103
|
/**
|
|
976
|
-
* Body param
|
|
1104
|
+
* Body param
|
|
977
1105
|
*/
|
|
978
1106
|
chain_type?: 'ethereum';
|
|
979
1107
|
/**
|
|
@@ -993,6 +1121,7 @@ export declare namespace WalletRpcParams {
|
|
|
993
1121
|
}
|
|
994
1122
|
namespace Params {
|
|
995
1123
|
interface Transaction {
|
|
1124
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
996
1125
|
chain_id?: string | number;
|
|
997
1126
|
data?: string;
|
|
998
1127
|
from?: string;
|
|
@@ -1002,26 +1131,36 @@ export declare namespace WalletRpcParams {
|
|
|
1002
1131
|
max_priority_fee_per_gas?: string | number;
|
|
1003
1132
|
nonce?: string | number;
|
|
1004
1133
|
to?: string;
|
|
1005
|
-
type?: 0 | 1 | 2;
|
|
1134
|
+
type?: 0 | 1 | 2 | 4;
|
|
1006
1135
|
value?: string | number;
|
|
1007
1136
|
}
|
|
1137
|
+
namespace Transaction {
|
|
1138
|
+
interface AuthorizationList {
|
|
1139
|
+
chain_id: string | number;
|
|
1140
|
+
contract: string;
|
|
1141
|
+
nonce: string | number;
|
|
1142
|
+
r: string;
|
|
1143
|
+
s: string;
|
|
1144
|
+
y_parity: number;
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1008
1147
|
}
|
|
1009
1148
|
}
|
|
1010
1149
|
interface EthereumSignUserOperationRpcInput {
|
|
1011
1150
|
/**
|
|
1012
|
-
* Body param
|
|
1151
|
+
* Body param
|
|
1013
1152
|
*/
|
|
1014
1153
|
method: 'eth_signUserOperation';
|
|
1015
1154
|
/**
|
|
1016
|
-
* Body param
|
|
1155
|
+
* Body param
|
|
1017
1156
|
*/
|
|
1018
1157
|
params: EthereumSignUserOperationRpcInput.Params;
|
|
1019
1158
|
/**
|
|
1020
|
-
* Body param
|
|
1159
|
+
* Body param
|
|
1021
1160
|
*/
|
|
1022
1161
|
address?: string;
|
|
1023
1162
|
/**
|
|
1024
|
-
* Body param
|
|
1163
|
+
* Body param
|
|
1025
1164
|
*/
|
|
1026
1165
|
chain_type?: 'ethereum';
|
|
1027
1166
|
/**
|
|
@@ -1060,27 +1199,27 @@ export declare namespace WalletRpcParams {
|
|
|
1060
1199
|
}
|
|
1061
1200
|
interface EthereumSendTransactionRpcInput {
|
|
1062
1201
|
/**
|
|
1063
|
-
* Body param
|
|
1202
|
+
* Body param
|
|
1064
1203
|
*/
|
|
1065
1204
|
caip2: string;
|
|
1066
1205
|
/**
|
|
1067
|
-
* Body param
|
|
1206
|
+
* Body param
|
|
1068
1207
|
*/
|
|
1069
1208
|
method: 'eth_sendTransaction';
|
|
1070
1209
|
/**
|
|
1071
|
-
* Body param
|
|
1210
|
+
* Body param
|
|
1072
1211
|
*/
|
|
1073
1212
|
params: EthereumSendTransactionRpcInput.Params;
|
|
1074
1213
|
/**
|
|
1075
|
-
* Body param
|
|
1214
|
+
* Body param
|
|
1076
1215
|
*/
|
|
1077
1216
|
address?: string;
|
|
1078
1217
|
/**
|
|
1079
|
-
* Body param
|
|
1218
|
+
* Body param
|
|
1080
1219
|
*/
|
|
1081
1220
|
chain_type?: 'ethereum';
|
|
1082
1221
|
/**
|
|
1083
|
-
* Body param
|
|
1222
|
+
* Body param
|
|
1084
1223
|
*/
|
|
1085
1224
|
sponsor?: boolean;
|
|
1086
1225
|
/**
|
|
@@ -1100,6 +1239,7 @@ export declare namespace WalletRpcParams {
|
|
|
1100
1239
|
}
|
|
1101
1240
|
namespace Params {
|
|
1102
1241
|
interface Transaction {
|
|
1242
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1103
1243
|
chain_id?: string | number;
|
|
1104
1244
|
data?: string;
|
|
1105
1245
|
from?: string;
|
|
@@ -1109,26 +1249,36 @@ export declare namespace WalletRpcParams {
|
|
|
1109
1249
|
max_priority_fee_per_gas?: string | number;
|
|
1110
1250
|
nonce?: string | number;
|
|
1111
1251
|
to?: string;
|
|
1112
|
-
type?: 0 | 1 | 2;
|
|
1252
|
+
type?: 0 | 1 | 2 | 4;
|
|
1113
1253
|
value?: string | number;
|
|
1114
1254
|
}
|
|
1255
|
+
namespace Transaction {
|
|
1256
|
+
interface AuthorizationList {
|
|
1257
|
+
chain_id: string | number;
|
|
1258
|
+
contract: string;
|
|
1259
|
+
nonce: string | number;
|
|
1260
|
+
r: string;
|
|
1261
|
+
s: string;
|
|
1262
|
+
y_parity: number;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1115
1265
|
}
|
|
1116
1266
|
}
|
|
1117
1267
|
interface EthereumSign7702AuthorizationRpcInput {
|
|
1118
1268
|
/**
|
|
1119
|
-
* Body param
|
|
1269
|
+
* Body param
|
|
1120
1270
|
*/
|
|
1121
1271
|
method: 'eth_sign7702Authorization';
|
|
1122
1272
|
/**
|
|
1123
|
-
* Body param
|
|
1273
|
+
* Body param
|
|
1124
1274
|
*/
|
|
1125
1275
|
params: EthereumSign7702AuthorizationRpcInput.Params;
|
|
1126
1276
|
/**
|
|
1127
|
-
* Body param
|
|
1277
|
+
* Body param
|
|
1128
1278
|
*/
|
|
1129
1279
|
address?: string;
|
|
1130
1280
|
/**
|
|
1131
|
-
* Body param
|
|
1281
|
+
* Body param
|
|
1132
1282
|
*/
|
|
1133
1283
|
chain_type?: 'ethereum';
|
|
1134
1284
|
/**
|
|
@@ -1151,19 +1301,19 @@ export declare namespace WalletRpcParams {
|
|
|
1151
1301
|
}
|
|
1152
1302
|
interface EthereumSecp256k1SignRpcInput {
|
|
1153
1303
|
/**
|
|
1154
|
-
* Body param
|
|
1304
|
+
* Body param
|
|
1155
1305
|
*/
|
|
1156
1306
|
method: 'secp256k1_sign';
|
|
1157
1307
|
/**
|
|
1158
|
-
* Body param
|
|
1308
|
+
* Body param
|
|
1159
1309
|
*/
|
|
1160
1310
|
params: EthereumSecp256k1SignRpcInput.Params;
|
|
1161
1311
|
/**
|
|
1162
|
-
* Body param
|
|
1312
|
+
* Body param
|
|
1163
1313
|
*/
|
|
1164
1314
|
address?: string;
|
|
1165
1315
|
/**
|
|
1166
|
-
* Body param
|
|
1316
|
+
* Body param
|
|
1167
1317
|
*/
|
|
1168
1318
|
chain_type?: 'ethereum';
|
|
1169
1319
|
/**
|
|
@@ -1184,19 +1334,19 @@ export declare namespace WalletRpcParams {
|
|
|
1184
1334
|
}
|
|
1185
1335
|
interface SolanaSignMessageRpcInput {
|
|
1186
1336
|
/**
|
|
1187
|
-
* Body param
|
|
1337
|
+
* Body param
|
|
1188
1338
|
*/
|
|
1189
1339
|
method: 'signMessage';
|
|
1190
1340
|
/**
|
|
1191
|
-
* Body param
|
|
1341
|
+
* Body param
|
|
1192
1342
|
*/
|
|
1193
1343
|
params: SolanaSignMessageRpcInput.Params;
|
|
1194
1344
|
/**
|
|
1195
|
-
* Body param
|
|
1345
|
+
* Body param
|
|
1196
1346
|
*/
|
|
1197
1347
|
address?: string;
|
|
1198
1348
|
/**
|
|
1199
|
-
* Body param
|
|
1349
|
+
* Body param
|
|
1200
1350
|
*/
|
|
1201
1351
|
chain_type?: 'solana';
|
|
1202
1352
|
/**
|
|
@@ -1218,19 +1368,19 @@ export declare namespace WalletRpcParams {
|
|
|
1218
1368
|
}
|
|
1219
1369
|
interface SolanaSignTransactionRpcInput {
|
|
1220
1370
|
/**
|
|
1221
|
-
* Body param
|
|
1371
|
+
* Body param
|
|
1222
1372
|
*/
|
|
1223
1373
|
method: 'signTransaction';
|
|
1224
1374
|
/**
|
|
1225
|
-
* Body param
|
|
1375
|
+
* Body param
|
|
1226
1376
|
*/
|
|
1227
1377
|
params: SolanaSignTransactionRpcInput.Params;
|
|
1228
1378
|
/**
|
|
1229
|
-
* Body param
|
|
1379
|
+
* Body param
|
|
1230
1380
|
*/
|
|
1231
1381
|
address?: string;
|
|
1232
1382
|
/**
|
|
1233
|
-
* Body param
|
|
1383
|
+
* Body param
|
|
1234
1384
|
*/
|
|
1235
1385
|
chain_type?: 'solana';
|
|
1236
1386
|
/**
|
|
@@ -1252,27 +1402,27 @@ export declare namespace WalletRpcParams {
|
|
|
1252
1402
|
}
|
|
1253
1403
|
interface SolanaSignAndSendTransactionRpcInput {
|
|
1254
1404
|
/**
|
|
1255
|
-
* Body param
|
|
1405
|
+
* Body param
|
|
1256
1406
|
*/
|
|
1257
1407
|
caip2: string;
|
|
1258
1408
|
/**
|
|
1259
|
-
* Body param
|
|
1409
|
+
* Body param
|
|
1260
1410
|
*/
|
|
1261
1411
|
method: 'signAndSendTransaction';
|
|
1262
1412
|
/**
|
|
1263
|
-
* Body param
|
|
1413
|
+
* Body param
|
|
1264
1414
|
*/
|
|
1265
1415
|
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
1266
1416
|
/**
|
|
1267
|
-
* Body param
|
|
1417
|
+
* Body param
|
|
1268
1418
|
*/
|
|
1269
1419
|
address?: string;
|
|
1270
1420
|
/**
|
|
1271
|
-
* Body param
|
|
1421
|
+
* Body param
|
|
1272
1422
|
*/
|
|
1273
1423
|
chain_type?: 'solana';
|
|
1274
1424
|
/**
|
|
1275
|
-
* Body param
|
|
1425
|
+
* Body param
|
|
1276
1426
|
*/
|
|
1277
1427
|
sponsor?: boolean;
|
|
1278
1428
|
/**
|
|
@@ -1332,6 +1482,12 @@ export declare namespace WalletSubmitImportParams {
|
|
|
1332
1482
|
* The index of the wallet to import.
|
|
1333
1483
|
*/
|
|
1334
1484
|
index: number;
|
|
1485
|
+
/**
|
|
1486
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
1487
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
1488
|
+
* configurations.
|
|
1489
|
+
*/
|
|
1490
|
+
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
1335
1491
|
}
|
|
1336
1492
|
interface PrivateKeySubmitInput {
|
|
1337
1493
|
/**
|
|
@@ -1357,6 +1513,12 @@ export declare namespace WalletSubmitImportParams {
|
|
|
1357
1513
|
*/
|
|
1358
1514
|
encryption_type: 'HPKE';
|
|
1359
1515
|
entropy_type: 'private-key';
|
|
1516
|
+
/**
|
|
1517
|
+
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
1518
|
+
* importing wallets encrypted by external providers that use different HPKE
|
|
1519
|
+
* configurations.
|
|
1520
|
+
*/
|
|
1521
|
+
hpke_config?: WalletsAPI.HpkeImportConfig;
|
|
1360
1522
|
}
|
|
1361
1523
|
interface AdditionalSigner {
|
|
1362
1524
|
signer_id: string;
|
|
@@ -1482,7 +1644,7 @@ export declare namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
1482
1644
|
}
|
|
1483
1645
|
}
|
|
1484
1646
|
export declare namespace Wallets {
|
|
1485
|
-
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 WalletCustodian as WalletCustodian, 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, };
|
|
1647
|
+
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 WalletCustodian as WalletCustodian, type CustodialWalletProvider as CustodialWalletProvider, type CustodialWalletChainType as CustodialWalletChainType, type CustodialWalletCreateInput as CustodialWalletCreateInput, type CustodialWallet as CustodialWallet, type HpkeImportConfig as HpkeImportConfig, type SuiCommandName as SuiCommandName, 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, };
|
|
1486
1648
|
export { Transactions as Transactions, type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, };
|
|
1487
1649
|
export { Balance as Balance, type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams, };
|
|
1488
1650
|
}
|