@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.
Files changed (134) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/client.d.mts +10 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/index.d.mts +2 -1
  11. package/index.d.mts.map +1 -1
  12. package/index.d.ts +2 -1
  13. package/index.d.ts.map +1 -1
  14. package/index.js +4 -1
  15. package/index.js.map +1 -1
  16. package/index.mjs +2 -1
  17. package/index.mjs.map +1 -1
  18. package/lib/auth.d.mts +30 -2
  19. package/lib/auth.d.mts.map +1 -1
  20. package/lib/auth.d.ts +30 -2
  21. package/lib/auth.d.ts.map +1 -1
  22. package/lib/auth.js +14 -5
  23. package/lib/auth.js.map +1 -1
  24. package/lib/auth.mjs +11 -3
  25. package/lib/auth.mjs.map +1 -1
  26. package/lib/cryptography.d.mts +35 -3
  27. package/lib/cryptography.d.mts.map +1 -1
  28. package/lib/cryptography.d.ts +35 -3
  29. package/lib/cryptography.d.ts.map +1 -1
  30. package/lib/cryptography.js +53 -6
  31. package/lib/cryptography.js.map +1 -1
  32. package/lib/cryptography.mjs +50 -3
  33. package/lib/cryptography.mjs.map +1 -1
  34. package/lib/identity-token.d.mts.map +1 -1
  35. package/lib/identity-token.d.ts.map +1 -1
  36. package/lib/identity-token.js +0 -1
  37. package/lib/identity-token.js.map +1 -1
  38. package/lib/identity-token.mjs +0 -1
  39. package/lib/identity-token.mjs.map +1 -1
  40. package/package.json +13 -1
  41. package/public-api/services/utils/auth.d.mts +10 -1
  42. package/public-api/services/utils/auth.d.mts.map +1 -1
  43. package/public-api/services/utils/auth.d.ts +10 -1
  44. package/public-api/services/utils/auth.d.ts.map +1 -1
  45. package/public-api/services/utils/auth.js +16 -5
  46. package/public-api/services/utils/auth.js.map +1 -1
  47. package/public-api/services/utils/auth.mjs +17 -6
  48. package/public-api/services/utils/auth.mjs.map +1 -1
  49. package/resources/aggregations.d.mts +296 -0
  50. package/resources/aggregations.d.mts.map +1 -0
  51. package/resources/aggregations.d.ts +296 -0
  52. package/resources/aggregations.d.ts.map +1 -0
  53. package/resources/aggregations.js +9 -0
  54. package/resources/aggregations.js.map +1 -0
  55. package/resources/aggregations.mjs +5 -0
  56. package/resources/aggregations.mjs.map +1 -0
  57. package/resources/apps.d.mts +25 -0
  58. package/resources/apps.d.mts.map +1 -1
  59. package/resources/apps.d.ts +25 -0
  60. package/resources/apps.d.ts.map +1 -1
  61. package/resources/index.d.mts +4 -3
  62. package/resources/index.d.mts.map +1 -1
  63. package/resources/index.d.ts +4 -3
  64. package/resources/index.d.ts.map +1 -1
  65. package/resources/index.js +3 -1
  66. package/resources/index.js.map +1 -1
  67. package/resources/index.mjs +1 -0
  68. package/resources/index.mjs.map +1 -1
  69. package/resources/key-quorums.d.mts +4 -1
  70. package/resources/key-quorums.d.mts.map +1 -1
  71. package/resources/key-quorums.d.ts +4 -1
  72. package/resources/key-quorums.d.ts.map +1 -1
  73. package/resources/policies.d.mts +87 -131
  74. package/resources/policies.d.mts.map +1 -1
  75. package/resources/policies.d.ts +87 -131
  76. package/resources/policies.d.ts.map +1 -1
  77. package/resources/policies.js.map +1 -1
  78. package/resources/policies.mjs.map +1 -1
  79. package/resources/users.d.mts +642 -381
  80. package/resources/users.d.mts.map +1 -1
  81. package/resources/users.d.ts +642 -381
  82. package/resources/users.d.ts.map +1 -1
  83. package/resources/wallets/balance.d.mts +3 -3
  84. package/resources/wallets/balance.d.mts.map +1 -1
  85. package/resources/wallets/balance.d.ts +3 -3
  86. package/resources/wallets/balance.d.ts.map +1 -1
  87. package/resources/wallets/index.d.mts +1 -1
  88. package/resources/wallets/index.d.mts.map +1 -1
  89. package/resources/wallets/index.d.ts +1 -1
  90. package/resources/wallets/index.d.ts.map +1 -1
  91. package/resources/wallets/index.js.map +1 -1
  92. package/resources/wallets/index.mjs.map +1 -1
  93. package/resources/wallets/transactions.d.mts +3 -3
  94. package/resources/wallets/transactions.d.mts.map +1 -1
  95. package/resources/wallets/transactions.d.ts +3 -3
  96. package/resources/wallets/transactions.d.ts.map +1 -1
  97. package/resources/wallets/wallets.d.mts +215 -53
  98. package/resources/wallets/wallets.d.mts.map +1 -1
  99. package/resources/wallets/wallets.d.ts +215 -53
  100. package/resources/wallets/wallets.d.ts.map +1 -1
  101. package/resources/wallets/wallets.js +1 -1
  102. package/resources/wallets/wallets.js.map +1 -1
  103. package/resources/wallets/wallets.mjs +1 -1
  104. package/resources/wallets/wallets.mjs.map +1 -1
  105. package/solana-kit.d.mts +53 -0
  106. package/solana-kit.d.mts.map +1 -0
  107. package/solana-kit.d.ts +53 -0
  108. package/solana-kit.d.ts.map +1 -0
  109. package/solana-kit.js +92 -0
  110. package/solana-kit.js.map +1 -0
  111. package/solana-kit.mjs +89 -0
  112. package/solana-kit.mjs.map +1 -0
  113. package/src/client.ts +150 -3
  114. package/src/index.ts +5 -0
  115. package/src/lib/auth.ts +42 -6
  116. package/src/lib/cryptography.ts +72 -3
  117. package/src/lib/identity-token.ts +38 -18
  118. package/src/public-api/services/utils/auth.ts +19 -6
  119. package/src/resources/aggregations.ts +497 -0
  120. package/src/resources/apps.ts +44 -0
  121. package/src/resources/index.ts +74 -2
  122. package/src/resources/key-quorums.ts +4 -1
  123. package/src/resources/policies.ts +124 -207
  124. package/src/resources/users.ts +942 -625
  125. package/src/resources/wallets/balance.ts +11 -3
  126. package/src/resources/wallets/index.ts +6 -0
  127. package/src/resources/wallets/transactions.ts +11 -3
  128. package/src/resources/wallets/wallets.ts +283 -52
  129. package/src/solana-kit.ts +148 -0
  130. package/src/version.ts +1 -1
  131. package/version.d.mts +1 -1
  132. package/version.d.ts +1 -1
  133. package/version.js +1 -1
  134. 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
- * Create a new wallet.
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
@@ -225,6 +228,97 @@ export type ExtendedChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'moveme
225
228
  export interface WalletCustodian {
226
229
  name: string;
227
230
  }
231
+ /**
232
+ * The provider of the custodial wallet.
233
+ */
234
+ export type CustodialWalletProvider = 'bridge';
235
+ /**
236
+ * The chain type of the custodial wallet.
237
+ */
238
+ export type CustodialWalletChainType = 'ethereum';
239
+ /**
240
+ * The input for creating a custodial wallet.
241
+ */
242
+ export interface CustodialWalletCreateInput {
243
+ /**
244
+ * The chain type of the custodial wallet.
245
+ */
246
+ chain_type: CustodialWalletChainType;
247
+ /**
248
+ * The provider of the custodial wallet.
249
+ */
250
+ provider: CustodialWalletProvider;
251
+ /**
252
+ * The resource ID of the beneficiary of the custodial wallet, given by the
253
+ * licensing provider.
254
+ */
255
+ provider_user_id: string;
256
+ additional_signers?: Array<CustodialWalletCreateInput.AdditionalSigner>;
257
+ owner?: CustodialWalletCreateInput.UserID | CustodialWalletCreateInput.PublicKey | null;
258
+ policy_ids?: Array<string>;
259
+ }
260
+ export declare namespace CustodialWalletCreateInput {
261
+ interface AdditionalSigner {
262
+ signer_id: string;
263
+ override_policy_ids?: Array<string>;
264
+ }
265
+ interface UserID {
266
+ user_id: string;
267
+ }
268
+ interface PublicKey {
269
+ public_key: string;
270
+ }
271
+ }
272
+ /**
273
+ * Information about a custodial wallet.
274
+ */
275
+ export interface CustodialWallet {
276
+ id: string;
277
+ address: string;
278
+ /**
279
+ * The chain type of the custodial wallet.
280
+ */
281
+ chain_type: CustodialWalletChainType;
282
+ owner_id: string | null;
283
+ /**
284
+ * The provider of the custodial wallet.
285
+ */
286
+ provider: CustodialWalletProvider;
287
+ additional_signers?: Array<CustodialWallet.AdditionalSigner>;
288
+ policy_ids?: Array<string>;
289
+ }
290
+ export declare namespace CustodialWallet {
291
+ interface AdditionalSigner {
292
+ signer_id: string;
293
+ override_policy_ids?: Array<string>;
294
+ }
295
+ }
296
+ /**
297
+ * Optional HPKE configuration for wallet import decryption. These parameters allow
298
+ * importing wallets encrypted by external providers that use different HPKE
299
+ * configurations.
300
+ */
301
+ export interface HpkeImportConfig {
302
+ /**
303
+ * Additional Authenticated Data (AAD) used during encryption. Should be
304
+ * base64-encoded bytes.
305
+ */
306
+ aad?: string;
307
+ /**
308
+ * The AEAD algorithm used for encryption. Defaults to CHACHA20_POLY1305 if not
309
+ * specified.
310
+ */
311
+ aead_algorithm?: 'CHACHA20_POLY1305' | 'AES_GCM256';
312
+ /**
313
+ * Application-specific context information (INFO) used during HPKE encryption.
314
+ * Should be base64-encoded bytes.
315
+ */
316
+ info?: string;
317
+ }
318
+ /**
319
+ * SUI transaction commands allowlist for raw_sign endpoint policy evaluation
320
+ */
321
+ export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
228
322
  /**
229
323
  * Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
230
324
  */
@@ -255,6 +349,7 @@ export declare namespace EthereumSignTransactionRpcInput {
255
349
  }
256
350
  namespace Params {
257
351
  interface Transaction {
352
+ authorization_list?: Array<Transaction.AuthorizationList>;
258
353
  chain_id?: string | number;
259
354
  data?: string;
260
355
  from?: string;
@@ -264,9 +359,19 @@ export declare namespace EthereumSignTransactionRpcInput {
264
359
  max_priority_fee_per_gas?: string | number;
265
360
  nonce?: string | number;
266
361
  to?: string;
267
- type?: 0 | 1 | 2;
362
+ type?: 0 | 1 | 2 | 4;
268
363
  value?: string | number;
269
364
  }
365
+ namespace Transaction {
366
+ interface AuthorizationList {
367
+ chain_id: string | number;
368
+ contract: string;
369
+ nonce: string | number;
370
+ r: string;
371
+ s: string;
372
+ y_parity: number;
373
+ }
374
+ }
270
375
  }
271
376
  }
272
377
  /**
@@ -286,6 +391,7 @@ export declare namespace EthereumSendTransactionRpcInput {
286
391
  }
287
392
  namespace Params {
288
393
  interface Transaction {
394
+ authorization_list?: Array<Transaction.AuthorizationList>;
289
395
  chain_id?: string | number;
290
396
  data?: string;
291
397
  from?: string;
@@ -295,9 +401,19 @@ export declare namespace EthereumSendTransactionRpcInput {
295
401
  max_priority_fee_per_gas?: string | number;
296
402
  nonce?: string | number;
297
403
  to?: string;
298
- type?: 0 | 1 | 2;
404
+ type?: 0 | 1 | 2 | 4;
299
405
  value?: string | number;
300
406
  }
407
+ namespace Transaction {
408
+ interface AuthorizationList {
409
+ chain_id: string | number;
410
+ contract: string;
411
+ nonce: string | number;
412
+ r: string;
413
+ s: string;
414
+ y_parity: number;
415
+ }
416
+ }
301
417
  }
302
418
  }
303
419
  /**
@@ -471,9 +587,11 @@ export declare namespace EthereumSendTransactionRpcResponse {
471
587
  hash: string;
472
588
  transaction_id?: string;
473
589
  transaction_request?: Data.TransactionRequest;
590
+ user_operation_hash?: string;
474
591
  }
475
592
  namespace Data {
476
593
  interface TransactionRequest {
594
+ authorization_list?: Array<TransactionRequest.AuthorizationList>;
477
595
  chain_id?: string | number;
478
596
  data?: string;
479
597
  from?: string;
@@ -483,9 +601,19 @@ export declare namespace EthereumSendTransactionRpcResponse {
483
601
  max_priority_fee_per_gas?: string | number;
484
602
  nonce?: string | number;
485
603
  to?: string;
486
- type?: 0 | 1 | 2;
604
+ type?: 0 | 1 | 2 | 4;
487
605
  value?: string | number;
488
606
  }
607
+ namespace TransactionRequest {
608
+ interface AuthorizationList {
609
+ chain_id: string | number;
610
+ contract: string;
611
+ nonce: string | number;
612
+ r: string;
613
+ s: string;
614
+ y_parity: number;
615
+ }
616
+ }
489
617
  }
490
618
  }
491
619
  /**
@@ -857,30 +985,30 @@ export declare namespace WalletRawSignParams {
857
985
  /**
858
986
  * The encoding scheme for the bytes.
859
987
  */
860
- encoding: 'utf-8' | 'hex';
988
+ encoding: 'utf-8' | 'hex' | 'base64';
861
989
  /**
862
990
  * The hash function to hash the bytes.
863
991
  */
864
- hash_function: 'keccak256' | 'sha256';
992
+ hash_function: 'keccak256' | 'sha256' | 'blake2b256';
865
993
  }
866
994
  }
867
995
  export type WalletRpcParams = WalletRpcParams.EthereumPersonalSignRpcInput | WalletRpcParams.EthereumSignTypedDataRpcInput | WalletRpcParams.EthereumSignTransactionRpcInput | WalletRpcParams.EthereumSignUserOperationRpcInput | WalletRpcParams.EthereumSendTransactionRpcInput | WalletRpcParams.EthereumSign7702AuthorizationRpcInput | WalletRpcParams.EthereumSecp256k1SignRpcInput | WalletRpcParams.SolanaSignMessageRpcInput | WalletRpcParams.SolanaSignTransactionRpcInput | WalletRpcParams.SolanaSignAndSendTransactionRpcInput;
868
996
  export declare namespace WalletRpcParams {
869
997
  interface EthereumPersonalSignRpcInput {
870
998
  /**
871
- * Body param:
999
+ * Body param
872
1000
  */
873
1001
  method: 'personal_sign';
874
1002
  /**
875
- * Body param:
1003
+ * Body param
876
1004
  */
877
1005
  params: EthereumPersonalSignRpcInput.Params;
878
1006
  /**
879
- * Body param:
1007
+ * Body param
880
1008
  */
881
1009
  address?: string;
882
1010
  /**
883
- * Body param:
1011
+ * Body param
884
1012
  */
885
1013
  chain_type?: 'ethereum';
886
1014
  /**
@@ -902,19 +1030,19 @@ export declare namespace WalletRpcParams {
902
1030
  }
903
1031
  interface EthereumSignTypedDataRpcInput {
904
1032
  /**
905
- * Body param:
1033
+ * Body param
906
1034
  */
907
1035
  method: 'eth_signTypedData_v4';
908
1036
  /**
909
- * Body param:
1037
+ * Body param
910
1038
  */
911
1039
  params: EthereumSignTypedDataRpcInput.Params;
912
1040
  /**
913
- * Body param:
1041
+ * Body param
914
1042
  */
915
1043
  address?: string;
916
1044
  /**
917
- * Body param:
1045
+ * Body param
918
1046
  */
919
1047
  chain_type?: 'ethereum';
920
1048
  /**
@@ -955,19 +1083,19 @@ export declare namespace WalletRpcParams {
955
1083
  }
956
1084
  interface EthereumSignTransactionRpcInput {
957
1085
  /**
958
- * Body param:
1086
+ * Body param
959
1087
  */
960
1088
  method: 'eth_signTransaction';
961
1089
  /**
962
- * Body param:
1090
+ * Body param
963
1091
  */
964
1092
  params: EthereumSignTransactionRpcInput.Params;
965
1093
  /**
966
- * Body param:
1094
+ * Body param
967
1095
  */
968
1096
  address?: string;
969
1097
  /**
970
- * Body param:
1098
+ * Body param
971
1099
  */
972
1100
  chain_type?: 'ethereum';
973
1101
  /**
@@ -987,6 +1115,7 @@ export declare namespace WalletRpcParams {
987
1115
  }
988
1116
  namespace Params {
989
1117
  interface Transaction {
1118
+ authorization_list?: Array<Transaction.AuthorizationList>;
990
1119
  chain_id?: string | number;
991
1120
  data?: string;
992
1121
  from?: string;
@@ -996,26 +1125,36 @@ export declare namespace WalletRpcParams {
996
1125
  max_priority_fee_per_gas?: string | number;
997
1126
  nonce?: string | number;
998
1127
  to?: string;
999
- type?: 0 | 1 | 2;
1128
+ type?: 0 | 1 | 2 | 4;
1000
1129
  value?: string | number;
1001
1130
  }
1131
+ namespace Transaction {
1132
+ interface AuthorizationList {
1133
+ chain_id: string | number;
1134
+ contract: string;
1135
+ nonce: string | number;
1136
+ r: string;
1137
+ s: string;
1138
+ y_parity: number;
1139
+ }
1140
+ }
1002
1141
  }
1003
1142
  }
1004
1143
  interface EthereumSignUserOperationRpcInput {
1005
1144
  /**
1006
- * Body param:
1145
+ * Body param
1007
1146
  */
1008
1147
  method: 'eth_signUserOperation';
1009
1148
  /**
1010
- * Body param:
1149
+ * Body param
1011
1150
  */
1012
1151
  params: EthereumSignUserOperationRpcInput.Params;
1013
1152
  /**
1014
- * Body param:
1153
+ * Body param
1015
1154
  */
1016
1155
  address?: string;
1017
1156
  /**
1018
- * Body param:
1157
+ * Body param
1019
1158
  */
1020
1159
  chain_type?: 'ethereum';
1021
1160
  /**
@@ -1054,27 +1193,27 @@ export declare namespace WalletRpcParams {
1054
1193
  }
1055
1194
  interface EthereumSendTransactionRpcInput {
1056
1195
  /**
1057
- * Body param:
1196
+ * Body param
1058
1197
  */
1059
1198
  caip2: string;
1060
1199
  /**
1061
- * Body param:
1200
+ * Body param
1062
1201
  */
1063
1202
  method: 'eth_sendTransaction';
1064
1203
  /**
1065
- * Body param:
1204
+ * Body param
1066
1205
  */
1067
1206
  params: EthereumSendTransactionRpcInput.Params;
1068
1207
  /**
1069
- * Body param:
1208
+ * Body param
1070
1209
  */
1071
1210
  address?: string;
1072
1211
  /**
1073
- * Body param:
1212
+ * Body param
1074
1213
  */
1075
1214
  chain_type?: 'ethereum';
1076
1215
  /**
1077
- * Body param:
1216
+ * Body param
1078
1217
  */
1079
1218
  sponsor?: boolean;
1080
1219
  /**
@@ -1094,6 +1233,7 @@ export declare namespace WalletRpcParams {
1094
1233
  }
1095
1234
  namespace Params {
1096
1235
  interface Transaction {
1236
+ authorization_list?: Array<Transaction.AuthorizationList>;
1097
1237
  chain_id?: string | number;
1098
1238
  data?: string;
1099
1239
  from?: string;
@@ -1103,26 +1243,36 @@ export declare namespace WalletRpcParams {
1103
1243
  max_priority_fee_per_gas?: string | number;
1104
1244
  nonce?: string | number;
1105
1245
  to?: string;
1106
- type?: 0 | 1 | 2;
1246
+ type?: 0 | 1 | 2 | 4;
1107
1247
  value?: string | number;
1108
1248
  }
1249
+ namespace Transaction {
1250
+ interface AuthorizationList {
1251
+ chain_id: string | number;
1252
+ contract: string;
1253
+ nonce: string | number;
1254
+ r: string;
1255
+ s: string;
1256
+ y_parity: number;
1257
+ }
1258
+ }
1109
1259
  }
1110
1260
  }
1111
1261
  interface EthereumSign7702AuthorizationRpcInput {
1112
1262
  /**
1113
- * Body param:
1263
+ * Body param
1114
1264
  */
1115
1265
  method: 'eth_sign7702Authorization';
1116
1266
  /**
1117
- * Body param:
1267
+ * Body param
1118
1268
  */
1119
1269
  params: EthereumSign7702AuthorizationRpcInput.Params;
1120
1270
  /**
1121
- * Body param:
1271
+ * Body param
1122
1272
  */
1123
1273
  address?: string;
1124
1274
  /**
1125
- * Body param:
1275
+ * Body param
1126
1276
  */
1127
1277
  chain_type?: 'ethereum';
1128
1278
  /**
@@ -1145,19 +1295,19 @@ export declare namespace WalletRpcParams {
1145
1295
  }
1146
1296
  interface EthereumSecp256k1SignRpcInput {
1147
1297
  /**
1148
- * Body param:
1298
+ * Body param
1149
1299
  */
1150
1300
  method: 'secp256k1_sign';
1151
1301
  /**
1152
- * Body param:
1302
+ * Body param
1153
1303
  */
1154
1304
  params: EthereumSecp256k1SignRpcInput.Params;
1155
1305
  /**
1156
- * Body param:
1306
+ * Body param
1157
1307
  */
1158
1308
  address?: string;
1159
1309
  /**
1160
- * Body param:
1310
+ * Body param
1161
1311
  */
1162
1312
  chain_type?: 'ethereum';
1163
1313
  /**
@@ -1178,19 +1328,19 @@ export declare namespace WalletRpcParams {
1178
1328
  }
1179
1329
  interface SolanaSignMessageRpcInput {
1180
1330
  /**
1181
- * Body param:
1331
+ * Body param
1182
1332
  */
1183
1333
  method: 'signMessage';
1184
1334
  /**
1185
- * Body param:
1335
+ * Body param
1186
1336
  */
1187
1337
  params: SolanaSignMessageRpcInput.Params;
1188
1338
  /**
1189
- * Body param:
1339
+ * Body param
1190
1340
  */
1191
1341
  address?: string;
1192
1342
  /**
1193
- * Body param:
1343
+ * Body param
1194
1344
  */
1195
1345
  chain_type?: 'solana';
1196
1346
  /**
@@ -1212,19 +1362,19 @@ export declare namespace WalletRpcParams {
1212
1362
  }
1213
1363
  interface SolanaSignTransactionRpcInput {
1214
1364
  /**
1215
- * Body param:
1365
+ * Body param
1216
1366
  */
1217
1367
  method: 'signTransaction';
1218
1368
  /**
1219
- * Body param:
1369
+ * Body param
1220
1370
  */
1221
1371
  params: SolanaSignTransactionRpcInput.Params;
1222
1372
  /**
1223
- * Body param:
1373
+ * Body param
1224
1374
  */
1225
1375
  address?: string;
1226
1376
  /**
1227
- * Body param:
1377
+ * Body param
1228
1378
  */
1229
1379
  chain_type?: 'solana';
1230
1380
  /**
@@ -1246,27 +1396,27 @@ export declare namespace WalletRpcParams {
1246
1396
  }
1247
1397
  interface SolanaSignAndSendTransactionRpcInput {
1248
1398
  /**
1249
- * Body param:
1399
+ * Body param
1250
1400
  */
1251
1401
  caip2: string;
1252
1402
  /**
1253
- * Body param:
1403
+ * Body param
1254
1404
  */
1255
1405
  method: 'signAndSendTransaction';
1256
1406
  /**
1257
- * Body param:
1407
+ * Body param
1258
1408
  */
1259
1409
  params: SolanaSignAndSendTransactionRpcInput.Params;
1260
1410
  /**
1261
- * Body param:
1411
+ * Body param
1262
1412
  */
1263
1413
  address?: string;
1264
1414
  /**
1265
- * Body param:
1415
+ * Body param
1266
1416
  */
1267
1417
  chain_type?: 'solana';
1268
1418
  /**
1269
- * Body param:
1419
+ * Body param
1270
1420
  */
1271
1421
  sponsor?: boolean;
1272
1422
  /**
@@ -1326,6 +1476,12 @@ export declare namespace WalletSubmitImportParams {
1326
1476
  * The index of the wallet to import.
1327
1477
  */
1328
1478
  index: number;
1479
+ /**
1480
+ * Optional HPKE configuration for wallet import decryption. These parameters allow
1481
+ * importing wallets encrypted by external providers that use different HPKE
1482
+ * configurations.
1483
+ */
1484
+ hpke_config?: WalletsAPI.HpkeImportConfig;
1329
1485
  }
1330
1486
  interface PrivateKeySubmitInput {
1331
1487
  /**
@@ -1351,6 +1507,12 @@ export declare namespace WalletSubmitImportParams {
1351
1507
  */
1352
1508
  encryption_type: 'HPKE';
1353
1509
  entropy_type: 'private-key';
1510
+ /**
1511
+ * Optional HPKE configuration for wallet import decryption. These parameters allow
1512
+ * importing wallets encrypted by external providers that use different HPKE
1513
+ * configurations.
1514
+ */
1515
+ hpke_config?: WalletsAPI.HpkeImportConfig;
1354
1516
  }
1355
1517
  interface AdditionalSigner {
1356
1518
  signer_id: string;
@@ -1476,7 +1638,7 @@ export declare namespace WalletCreateWalletsWithRecoveryParams {
1476
1638
  }
1477
1639
  }
1478
1640
  export declare namespace Wallets {
1479
- export { type CurveSigningChainType as CurveSigningChainType, type FirstClassChainType as FirstClassChainType, type Wallet as Wallet, type WalletChainType as WalletChainType, 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, };
1641
+ export { type CurveSigningChainType as CurveSigningChainType, type FirstClassChainType as FirstClassChainType, type Wallet as Wallet, type WalletChainType as WalletChainType, 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, };
1480
1642
  export { Transactions as Transactions, type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, };
1481
1643
  export { Balance as Balance, type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams, };
1482
1644
  }