@privy-io/node 0.7.0 → 0.9.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 +71 -0
- package/client.d.mts +18 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -8
- package/client.d.ts.map +1 -1
- package/client.js +20 -3
- package/client.js.map +1 -1
- package/client.mjs +20 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +21 -1
- package/resources/aggregations.d.mts +507 -0
- package/resources/aggregations.d.mts.map +1 -0
- package/resources/aggregations.d.ts +507 -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 +168 -2
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +168 -2
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -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 +21 -20
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +21 -20
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +21 -11
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +21 -11
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +11 -6
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -6
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +1 -2
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +1 -2
- package/resources/wallets/balance.mjs.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 +249 -61
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +249 -61
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +940 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +940 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +9 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +5 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/yield.d.mts +264 -0
- package/resources/yield.d.mts.map +1 -0
- package/resources/yield.d.ts +264 -0
- package/resources/yield.d.ts.map +1 -0
- package/resources/yield.js +9 -0
- package/resources/yield.js.map +1 -0
- package/resources/yield.mjs +5 -0
- package/resources/yield.mjs.map +1 -0
- package/src/client.ts +198 -9
- package/src/internal/parse.ts +6 -0
- package/src/resources/aggregations.ts +853 -0
- package/src/resources/client-auth.ts +288 -1
- package/src/resources/index.ts +87 -3
- package/src/resources/key-quorums.ts +4 -1
- package/src/resources/policies.ts +21 -20
- package/src/resources/users.ts +58 -41
- package/src/resources/wallets/balance.ts +24 -6
- package/src/resources/wallets/index.ts +6 -2
- package/src/resources/wallets/transactions.ts +11 -3
- package/src/resources/wallets/wallets.ts +333 -78
- package/src/resources/webhooks.ts +1287 -0
- package/src/resources/yield.ts +330 -0
- package/src/types/x402.d.ts +18 -0
- package/src/version.ts +1 -1
- package/src/x402.ts +87 -0
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/x402.d.mts +54 -0
- package/x402.d.mts.map +1 -0
- package/x402.d.ts +54 -0
- package/x402.d.ts.map +1 -0
- package/x402.js +75 -0
- package/x402.js.map +1 -0
- package/x402.mjs +72 -0
- package/x402.mjs.map +1 -0
|
@@ -148,13 +148,8 @@ export declare class Wallets extends APIResource {
|
|
|
148
148
|
}
|
|
149
149
|
export type WalletsCursor = Cursor<Wallet>;
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
export type CurveSigningChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet';
|
|
154
|
-
/**
|
|
155
|
-
* The wallet chain types that offer first class support.
|
|
151
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
156
152
|
*/
|
|
157
|
-
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
158
153
|
export interface Wallet {
|
|
159
154
|
/**
|
|
160
155
|
* Unique ID of the wallet. This will be the primary identifier when using the
|
|
@@ -212,13 +207,21 @@ export declare namespace Wallet {
|
|
|
212
207
|
}
|
|
213
208
|
}
|
|
214
209
|
/**
|
|
215
|
-
* The wallet chain types.
|
|
210
|
+
* The wallet chain types that support curve-based signing.
|
|
216
211
|
*/
|
|
217
|
-
export type
|
|
212
|
+
export type CurveSigningChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet';
|
|
218
213
|
/**
|
|
219
214
|
* The wallet chain types that are not first class chains.
|
|
220
215
|
*/
|
|
221
216
|
export type ExtendedChainType = 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
217
|
+
/**
|
|
218
|
+
* The wallet chain types that offer first class support.
|
|
219
|
+
*/
|
|
220
|
+
export type FirstClassChainType = 'ethereum' | 'solana';
|
|
221
|
+
/**
|
|
222
|
+
* The wallet chain types.
|
|
223
|
+
*/
|
|
224
|
+
export type WalletChainType = 'ethereum' | 'solana' | 'cosmos' | 'stellar' | 'sui' | 'aptos' | 'movement' | 'tron' | 'bitcoin-segwit' | 'near' | 'ton' | 'starknet' | 'spark';
|
|
222
225
|
/**
|
|
223
226
|
* Information about the custodian managing this wallet.
|
|
224
227
|
*/
|
|
@@ -275,11 +278,20 @@ export interface CustodialWallet {
|
|
|
275
278
|
/**
|
|
276
279
|
* The chain type of the custodial wallet.
|
|
277
280
|
*/
|
|
278
|
-
|
|
281
|
+
chain_type: CustodialWalletChainType;
|
|
282
|
+
owner_id: string | null;
|
|
279
283
|
/**
|
|
280
284
|
* The provider of the custodial wallet.
|
|
281
285
|
*/
|
|
282
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
|
+
}
|
|
283
295
|
}
|
|
284
296
|
/**
|
|
285
297
|
* Optional HPKE configuration for wallet import decryption. These parameters allow
|
|
@@ -307,6 +319,118 @@ export interface HpkeImportConfig {
|
|
|
307
319
|
* SUI transaction commands allowlist for raw_sign endpoint policy evaluation
|
|
308
320
|
*/
|
|
309
321
|
export type SuiCommandName = 'TransferObjects' | 'SplitCoins' | 'MergeCoins';
|
|
322
|
+
/**
|
|
323
|
+
* Input for a single wallet in a batch creation request.
|
|
324
|
+
*/
|
|
325
|
+
export interface WalletBatchItemInput {
|
|
326
|
+
/**
|
|
327
|
+
* The wallet chain types.
|
|
328
|
+
*/
|
|
329
|
+
chain_type: WalletChainType;
|
|
330
|
+
/**
|
|
331
|
+
* Additional signers for the wallet.
|
|
332
|
+
*/
|
|
333
|
+
additional_signers?: Array<WalletBatchItemInput.AdditionalSigner>;
|
|
334
|
+
/**
|
|
335
|
+
* The owner of the resource. If you provide this, do not specify an owner_id as it
|
|
336
|
+
* will be generated automatically. When updating a wallet, you can set the owner
|
|
337
|
+
* to null to remove the owner.
|
|
338
|
+
*/
|
|
339
|
+
owner?: WalletBatchItemInput.PublicKeyOwner | WalletBatchItemInput.UserOwner | null;
|
|
340
|
+
/**
|
|
341
|
+
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
342
|
+
* not specify an owner.
|
|
343
|
+
*/
|
|
344
|
+
owner_id?: string;
|
|
345
|
+
/**
|
|
346
|
+
* List of policy IDs for policies that should be enforced on the wallet.
|
|
347
|
+
* Currently, only one policy is supported per wallet.
|
|
348
|
+
*/
|
|
349
|
+
policy_ids?: Array<string>;
|
|
350
|
+
}
|
|
351
|
+
export declare namespace WalletBatchItemInput {
|
|
352
|
+
interface AdditionalSigner {
|
|
353
|
+
signer_id: string;
|
|
354
|
+
/**
|
|
355
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
356
|
+
* this will override the base policy IDs set on the wallet.
|
|
357
|
+
*/
|
|
358
|
+
override_policy_ids?: Array<string>;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* The P-256 public key of the owner of the resource, in base64-encoded DER format.
|
|
362
|
+
* If you provide this, do not specify an owner_id as it will be generated
|
|
363
|
+
* automatically.
|
|
364
|
+
*/
|
|
365
|
+
interface PublicKeyOwner {
|
|
366
|
+
public_key: string;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* The user ID of the owner of the resource. The user must already exist, and this
|
|
370
|
+
* value must start with "did:privy:". If you provide this, do not specify an
|
|
371
|
+
* owner_id as it will be generated automatically.
|
|
372
|
+
*/
|
|
373
|
+
interface UserOwner {
|
|
374
|
+
user_id: string;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Request body for batch wallet creation.
|
|
379
|
+
*/
|
|
380
|
+
export interface WalletBatchCreateInput {
|
|
381
|
+
/**
|
|
382
|
+
* Array of wallet creation requests. Minimum 1, maximum 100.
|
|
383
|
+
*/
|
|
384
|
+
wallets: Array<WalletBatchItemInput>;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* A single result from a batch wallet creation operation.
|
|
388
|
+
*/
|
|
389
|
+
export type WalletBatchCreateResult = WalletBatchCreateResult.WalletBatchCreateSuccess | WalletBatchCreateResult.WalletBatchCreateFailure;
|
|
390
|
+
export declare namespace WalletBatchCreateResult {
|
|
391
|
+
/**
|
|
392
|
+
* A successful wallet creation result within a batch operation.
|
|
393
|
+
*/
|
|
394
|
+
interface WalletBatchCreateSuccess {
|
|
395
|
+
/**
|
|
396
|
+
* The index of the wallet in the original request array.
|
|
397
|
+
*/
|
|
398
|
+
index: number;
|
|
399
|
+
success: true;
|
|
400
|
+
/**
|
|
401
|
+
* A wallet managed by Privy's wallet infrastructure.
|
|
402
|
+
*/
|
|
403
|
+
wallet: WalletsAPI.Wallet;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* A failed wallet creation result within a batch operation.
|
|
407
|
+
*/
|
|
408
|
+
interface WalletBatchCreateFailure {
|
|
409
|
+
/**
|
|
410
|
+
* A PrivyErrorCode string identifying the error type (e.g., "invalid_data",
|
|
411
|
+
* "resource_conflict").
|
|
412
|
+
*/
|
|
413
|
+
code: string;
|
|
414
|
+
/**
|
|
415
|
+
* A human-readable error message with details about what went wrong.
|
|
416
|
+
*/
|
|
417
|
+
error: string;
|
|
418
|
+
/**
|
|
419
|
+
* The index of the wallet in the original request array.
|
|
420
|
+
*/
|
|
421
|
+
index: number;
|
|
422
|
+
success: false;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Response for a batch wallet creation request.
|
|
427
|
+
*/
|
|
428
|
+
export interface WalletBatchCreateResponse {
|
|
429
|
+
/**
|
|
430
|
+
* Array of results for each wallet creation request, in the same order as input.
|
|
431
|
+
*/
|
|
432
|
+
results: Array<WalletBatchCreateResult>;
|
|
433
|
+
}
|
|
310
434
|
/**
|
|
311
435
|
* Executes the EVM `personal_sign` RPC (EIP-191) to sign a message.
|
|
312
436
|
*/
|
|
@@ -337,6 +461,7 @@ export declare namespace EthereumSignTransactionRpcInput {
|
|
|
337
461
|
}
|
|
338
462
|
namespace Params {
|
|
339
463
|
interface Transaction {
|
|
464
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
340
465
|
chain_id?: string | number;
|
|
341
466
|
data?: string;
|
|
342
467
|
from?: string;
|
|
@@ -346,9 +471,19 @@ export declare namespace EthereumSignTransactionRpcInput {
|
|
|
346
471
|
max_priority_fee_per_gas?: string | number;
|
|
347
472
|
nonce?: string | number;
|
|
348
473
|
to?: string;
|
|
349
|
-
type?: 0 | 1 | 2;
|
|
474
|
+
type?: 0 | 1 | 2 | 4;
|
|
350
475
|
value?: string | number;
|
|
351
476
|
}
|
|
477
|
+
namespace Transaction {
|
|
478
|
+
interface AuthorizationList {
|
|
479
|
+
chain_id: string | number;
|
|
480
|
+
contract: string;
|
|
481
|
+
nonce: string | number;
|
|
482
|
+
r: string;
|
|
483
|
+
s: string;
|
|
484
|
+
y_parity: number;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
352
487
|
}
|
|
353
488
|
}
|
|
354
489
|
/**
|
|
@@ -368,6 +503,7 @@ export declare namespace EthereumSendTransactionRpcInput {
|
|
|
368
503
|
}
|
|
369
504
|
namespace Params {
|
|
370
505
|
interface Transaction {
|
|
506
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
371
507
|
chain_id?: string | number;
|
|
372
508
|
data?: string;
|
|
373
509
|
from?: string;
|
|
@@ -377,9 +513,19 @@ export declare namespace EthereumSendTransactionRpcInput {
|
|
|
377
513
|
max_priority_fee_per_gas?: string | number;
|
|
378
514
|
nonce?: string | number;
|
|
379
515
|
to?: string;
|
|
380
|
-
type?: 0 | 1 | 2;
|
|
516
|
+
type?: 0 | 1 | 2 | 4;
|
|
381
517
|
value?: string | number;
|
|
382
518
|
}
|
|
519
|
+
namespace Transaction {
|
|
520
|
+
interface AuthorizationList {
|
|
521
|
+
chain_id: string | number;
|
|
522
|
+
contract: string;
|
|
523
|
+
nonce: string | number;
|
|
524
|
+
r: string;
|
|
525
|
+
s: string;
|
|
526
|
+
y_parity: number;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
383
529
|
}
|
|
384
530
|
}
|
|
385
531
|
/**
|
|
@@ -553,9 +699,11 @@ export declare namespace EthereumSendTransactionRpcResponse {
|
|
|
553
699
|
hash: string;
|
|
554
700
|
transaction_id?: string;
|
|
555
701
|
transaction_request?: Data.TransactionRequest;
|
|
702
|
+
user_operation_hash?: string;
|
|
556
703
|
}
|
|
557
704
|
namespace Data {
|
|
558
705
|
interface TransactionRequest {
|
|
706
|
+
authorization_list?: Array<TransactionRequest.AuthorizationList>;
|
|
559
707
|
chain_id?: string | number;
|
|
560
708
|
data?: string;
|
|
561
709
|
from?: string;
|
|
@@ -565,9 +713,19 @@ export declare namespace EthereumSendTransactionRpcResponse {
|
|
|
565
713
|
max_priority_fee_per_gas?: string | number;
|
|
566
714
|
nonce?: string | number;
|
|
567
715
|
to?: string;
|
|
568
|
-
type?: 0 | 1 | 2;
|
|
716
|
+
type?: 0 | 1 | 2 | 4;
|
|
569
717
|
value?: string | number;
|
|
570
718
|
}
|
|
719
|
+
namespace TransactionRequest {
|
|
720
|
+
interface AuthorizationList {
|
|
721
|
+
chain_id: string | number;
|
|
722
|
+
contract: string;
|
|
723
|
+
nonce: string | number;
|
|
724
|
+
r: string;
|
|
725
|
+
s: string;
|
|
726
|
+
y_parity: number;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
571
729
|
}
|
|
572
730
|
}
|
|
573
731
|
/**
|
|
@@ -837,10 +995,19 @@ export declare namespace WalletCreateParams {
|
|
|
837
995
|
}
|
|
838
996
|
}
|
|
839
997
|
export interface WalletListParams extends CursorParams {
|
|
998
|
+
/**
|
|
999
|
+
* Filter wallets by authorization public key. Returns wallets owned by key quorums
|
|
1000
|
+
* that include the specified P-256 public key (base64-encoded DER format). Cannot
|
|
1001
|
+
* be used together with user_id.
|
|
1002
|
+
*/
|
|
1003
|
+
authorization_key?: string;
|
|
840
1004
|
/**
|
|
841
1005
|
* The wallet chain types.
|
|
842
1006
|
*/
|
|
843
1007
|
chain_type?: WalletChainType;
|
|
1008
|
+
/**
|
|
1009
|
+
* Filter wallets by user ID. Cannot be used together with authorization_key.
|
|
1010
|
+
*/
|
|
844
1011
|
user_id?: string;
|
|
845
1012
|
}
|
|
846
1013
|
export interface WalletExportParams {
|
|
@@ -950,19 +1117,19 @@ export type WalletRpcParams = WalletRpcParams.EthereumPersonalSignRpcInput | Wal
|
|
|
950
1117
|
export declare namespace WalletRpcParams {
|
|
951
1118
|
interface EthereumPersonalSignRpcInput {
|
|
952
1119
|
/**
|
|
953
|
-
* Body param
|
|
1120
|
+
* Body param
|
|
954
1121
|
*/
|
|
955
1122
|
method: 'personal_sign';
|
|
956
1123
|
/**
|
|
957
|
-
* Body param
|
|
1124
|
+
* Body param
|
|
958
1125
|
*/
|
|
959
1126
|
params: EthereumPersonalSignRpcInput.Params;
|
|
960
1127
|
/**
|
|
961
|
-
* Body param
|
|
1128
|
+
* Body param
|
|
962
1129
|
*/
|
|
963
1130
|
address?: string;
|
|
964
1131
|
/**
|
|
965
|
-
* Body param
|
|
1132
|
+
* Body param
|
|
966
1133
|
*/
|
|
967
1134
|
chain_type?: 'ethereum';
|
|
968
1135
|
/**
|
|
@@ -984,19 +1151,19 @@ export declare namespace WalletRpcParams {
|
|
|
984
1151
|
}
|
|
985
1152
|
interface EthereumSignTypedDataRpcInput {
|
|
986
1153
|
/**
|
|
987
|
-
* Body param
|
|
1154
|
+
* Body param
|
|
988
1155
|
*/
|
|
989
1156
|
method: 'eth_signTypedData_v4';
|
|
990
1157
|
/**
|
|
991
|
-
* Body param
|
|
1158
|
+
* Body param
|
|
992
1159
|
*/
|
|
993
1160
|
params: EthereumSignTypedDataRpcInput.Params;
|
|
994
1161
|
/**
|
|
995
|
-
* Body param
|
|
1162
|
+
* Body param
|
|
996
1163
|
*/
|
|
997
1164
|
address?: string;
|
|
998
1165
|
/**
|
|
999
|
-
* Body param
|
|
1166
|
+
* Body param
|
|
1000
1167
|
*/
|
|
1001
1168
|
chain_type?: 'ethereum';
|
|
1002
1169
|
/**
|
|
@@ -1037,19 +1204,19 @@ export declare namespace WalletRpcParams {
|
|
|
1037
1204
|
}
|
|
1038
1205
|
interface EthereumSignTransactionRpcInput {
|
|
1039
1206
|
/**
|
|
1040
|
-
* Body param
|
|
1207
|
+
* Body param
|
|
1041
1208
|
*/
|
|
1042
1209
|
method: 'eth_signTransaction';
|
|
1043
1210
|
/**
|
|
1044
|
-
* Body param
|
|
1211
|
+
* Body param
|
|
1045
1212
|
*/
|
|
1046
1213
|
params: EthereumSignTransactionRpcInput.Params;
|
|
1047
1214
|
/**
|
|
1048
|
-
* Body param
|
|
1215
|
+
* Body param
|
|
1049
1216
|
*/
|
|
1050
1217
|
address?: string;
|
|
1051
1218
|
/**
|
|
1052
|
-
* Body param
|
|
1219
|
+
* Body param
|
|
1053
1220
|
*/
|
|
1054
1221
|
chain_type?: 'ethereum';
|
|
1055
1222
|
/**
|
|
@@ -1069,6 +1236,7 @@ export declare namespace WalletRpcParams {
|
|
|
1069
1236
|
}
|
|
1070
1237
|
namespace Params {
|
|
1071
1238
|
interface Transaction {
|
|
1239
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1072
1240
|
chain_id?: string | number;
|
|
1073
1241
|
data?: string;
|
|
1074
1242
|
from?: string;
|
|
@@ -1078,26 +1246,36 @@ export declare namespace WalletRpcParams {
|
|
|
1078
1246
|
max_priority_fee_per_gas?: string | number;
|
|
1079
1247
|
nonce?: string | number;
|
|
1080
1248
|
to?: string;
|
|
1081
|
-
type?: 0 | 1 | 2;
|
|
1249
|
+
type?: 0 | 1 | 2 | 4;
|
|
1082
1250
|
value?: string | number;
|
|
1083
1251
|
}
|
|
1252
|
+
namespace Transaction {
|
|
1253
|
+
interface AuthorizationList {
|
|
1254
|
+
chain_id: string | number;
|
|
1255
|
+
contract: string;
|
|
1256
|
+
nonce: string | number;
|
|
1257
|
+
r: string;
|
|
1258
|
+
s: string;
|
|
1259
|
+
y_parity: number;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1084
1262
|
}
|
|
1085
1263
|
}
|
|
1086
1264
|
interface EthereumSignUserOperationRpcInput {
|
|
1087
1265
|
/**
|
|
1088
|
-
* Body param
|
|
1266
|
+
* Body param
|
|
1089
1267
|
*/
|
|
1090
1268
|
method: 'eth_signUserOperation';
|
|
1091
1269
|
/**
|
|
1092
|
-
* Body param
|
|
1270
|
+
* Body param
|
|
1093
1271
|
*/
|
|
1094
1272
|
params: EthereumSignUserOperationRpcInput.Params;
|
|
1095
1273
|
/**
|
|
1096
|
-
* Body param
|
|
1274
|
+
* Body param
|
|
1097
1275
|
*/
|
|
1098
1276
|
address?: string;
|
|
1099
1277
|
/**
|
|
1100
|
-
* Body param
|
|
1278
|
+
* Body param
|
|
1101
1279
|
*/
|
|
1102
1280
|
chain_type?: 'ethereum';
|
|
1103
1281
|
/**
|
|
@@ -1136,27 +1314,27 @@ export declare namespace WalletRpcParams {
|
|
|
1136
1314
|
}
|
|
1137
1315
|
interface EthereumSendTransactionRpcInput {
|
|
1138
1316
|
/**
|
|
1139
|
-
* Body param
|
|
1317
|
+
* Body param
|
|
1140
1318
|
*/
|
|
1141
1319
|
caip2: string;
|
|
1142
1320
|
/**
|
|
1143
|
-
* Body param
|
|
1321
|
+
* Body param
|
|
1144
1322
|
*/
|
|
1145
1323
|
method: 'eth_sendTransaction';
|
|
1146
1324
|
/**
|
|
1147
|
-
* Body param
|
|
1325
|
+
* Body param
|
|
1148
1326
|
*/
|
|
1149
1327
|
params: EthereumSendTransactionRpcInput.Params;
|
|
1150
1328
|
/**
|
|
1151
|
-
* Body param
|
|
1329
|
+
* Body param
|
|
1152
1330
|
*/
|
|
1153
1331
|
address?: string;
|
|
1154
1332
|
/**
|
|
1155
|
-
* Body param
|
|
1333
|
+
* Body param
|
|
1156
1334
|
*/
|
|
1157
1335
|
chain_type?: 'ethereum';
|
|
1158
1336
|
/**
|
|
1159
|
-
* Body param
|
|
1337
|
+
* Body param
|
|
1160
1338
|
*/
|
|
1161
1339
|
sponsor?: boolean;
|
|
1162
1340
|
/**
|
|
@@ -1176,6 +1354,7 @@ export declare namespace WalletRpcParams {
|
|
|
1176
1354
|
}
|
|
1177
1355
|
namespace Params {
|
|
1178
1356
|
interface Transaction {
|
|
1357
|
+
authorization_list?: Array<Transaction.AuthorizationList>;
|
|
1179
1358
|
chain_id?: string | number;
|
|
1180
1359
|
data?: string;
|
|
1181
1360
|
from?: string;
|
|
@@ -1185,26 +1364,36 @@ export declare namespace WalletRpcParams {
|
|
|
1185
1364
|
max_priority_fee_per_gas?: string | number;
|
|
1186
1365
|
nonce?: string | number;
|
|
1187
1366
|
to?: string;
|
|
1188
|
-
type?: 0 | 1 | 2;
|
|
1367
|
+
type?: 0 | 1 | 2 | 4;
|
|
1189
1368
|
value?: string | number;
|
|
1190
1369
|
}
|
|
1370
|
+
namespace Transaction {
|
|
1371
|
+
interface AuthorizationList {
|
|
1372
|
+
chain_id: string | number;
|
|
1373
|
+
contract: string;
|
|
1374
|
+
nonce: string | number;
|
|
1375
|
+
r: string;
|
|
1376
|
+
s: string;
|
|
1377
|
+
y_parity: number;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1191
1380
|
}
|
|
1192
1381
|
}
|
|
1193
1382
|
interface EthereumSign7702AuthorizationRpcInput {
|
|
1194
1383
|
/**
|
|
1195
|
-
* Body param
|
|
1384
|
+
* Body param
|
|
1196
1385
|
*/
|
|
1197
1386
|
method: 'eth_sign7702Authorization';
|
|
1198
1387
|
/**
|
|
1199
|
-
* Body param
|
|
1388
|
+
* Body param
|
|
1200
1389
|
*/
|
|
1201
1390
|
params: EthereumSign7702AuthorizationRpcInput.Params;
|
|
1202
1391
|
/**
|
|
1203
|
-
* Body param
|
|
1392
|
+
* Body param
|
|
1204
1393
|
*/
|
|
1205
1394
|
address?: string;
|
|
1206
1395
|
/**
|
|
1207
|
-
* Body param
|
|
1396
|
+
* Body param
|
|
1208
1397
|
*/
|
|
1209
1398
|
chain_type?: 'ethereum';
|
|
1210
1399
|
/**
|
|
@@ -1227,19 +1416,19 @@ export declare namespace WalletRpcParams {
|
|
|
1227
1416
|
}
|
|
1228
1417
|
interface EthereumSecp256k1SignRpcInput {
|
|
1229
1418
|
/**
|
|
1230
|
-
* Body param
|
|
1419
|
+
* Body param
|
|
1231
1420
|
*/
|
|
1232
1421
|
method: 'secp256k1_sign';
|
|
1233
1422
|
/**
|
|
1234
|
-
* Body param
|
|
1423
|
+
* Body param
|
|
1235
1424
|
*/
|
|
1236
1425
|
params: EthereumSecp256k1SignRpcInput.Params;
|
|
1237
1426
|
/**
|
|
1238
|
-
* Body param
|
|
1427
|
+
* Body param
|
|
1239
1428
|
*/
|
|
1240
1429
|
address?: string;
|
|
1241
1430
|
/**
|
|
1242
|
-
* Body param
|
|
1431
|
+
* Body param
|
|
1243
1432
|
*/
|
|
1244
1433
|
chain_type?: 'ethereum';
|
|
1245
1434
|
/**
|
|
@@ -1260,19 +1449,19 @@ export declare namespace WalletRpcParams {
|
|
|
1260
1449
|
}
|
|
1261
1450
|
interface SolanaSignMessageRpcInput {
|
|
1262
1451
|
/**
|
|
1263
|
-
* Body param
|
|
1452
|
+
* Body param
|
|
1264
1453
|
*/
|
|
1265
1454
|
method: 'signMessage';
|
|
1266
1455
|
/**
|
|
1267
|
-
* Body param
|
|
1456
|
+
* Body param
|
|
1268
1457
|
*/
|
|
1269
1458
|
params: SolanaSignMessageRpcInput.Params;
|
|
1270
1459
|
/**
|
|
1271
|
-
* Body param
|
|
1460
|
+
* Body param
|
|
1272
1461
|
*/
|
|
1273
1462
|
address?: string;
|
|
1274
1463
|
/**
|
|
1275
|
-
* Body param
|
|
1464
|
+
* Body param
|
|
1276
1465
|
*/
|
|
1277
1466
|
chain_type?: 'solana';
|
|
1278
1467
|
/**
|
|
@@ -1294,19 +1483,19 @@ export declare namespace WalletRpcParams {
|
|
|
1294
1483
|
}
|
|
1295
1484
|
interface SolanaSignTransactionRpcInput {
|
|
1296
1485
|
/**
|
|
1297
|
-
* Body param
|
|
1486
|
+
* Body param
|
|
1298
1487
|
*/
|
|
1299
1488
|
method: 'signTransaction';
|
|
1300
1489
|
/**
|
|
1301
|
-
* Body param
|
|
1490
|
+
* Body param
|
|
1302
1491
|
*/
|
|
1303
1492
|
params: SolanaSignTransactionRpcInput.Params;
|
|
1304
1493
|
/**
|
|
1305
|
-
* Body param
|
|
1494
|
+
* Body param
|
|
1306
1495
|
*/
|
|
1307
1496
|
address?: string;
|
|
1308
1497
|
/**
|
|
1309
|
-
* Body param
|
|
1498
|
+
* Body param
|
|
1310
1499
|
*/
|
|
1311
1500
|
chain_type?: 'solana';
|
|
1312
1501
|
/**
|
|
@@ -1328,27 +1517,27 @@ export declare namespace WalletRpcParams {
|
|
|
1328
1517
|
}
|
|
1329
1518
|
interface SolanaSignAndSendTransactionRpcInput {
|
|
1330
1519
|
/**
|
|
1331
|
-
* Body param
|
|
1520
|
+
* Body param
|
|
1332
1521
|
*/
|
|
1333
1522
|
caip2: string;
|
|
1334
1523
|
/**
|
|
1335
|
-
* Body param
|
|
1524
|
+
* Body param
|
|
1336
1525
|
*/
|
|
1337
1526
|
method: 'signAndSendTransaction';
|
|
1338
1527
|
/**
|
|
1339
|
-
* Body param
|
|
1528
|
+
* Body param
|
|
1340
1529
|
*/
|
|
1341
1530
|
params: SolanaSignAndSendTransactionRpcInput.Params;
|
|
1342
1531
|
/**
|
|
1343
|
-
* Body param
|
|
1532
|
+
* Body param
|
|
1344
1533
|
*/
|
|
1345
1534
|
address?: string;
|
|
1346
1535
|
/**
|
|
1347
|
-
* Body param
|
|
1536
|
+
* Body param
|
|
1348
1537
|
*/
|
|
1349
1538
|
chain_type?: 'solana';
|
|
1350
1539
|
/**
|
|
1351
|
-
* Body param
|
|
1540
|
+
* Body param
|
|
1352
1541
|
*/
|
|
1353
1542
|
sponsor?: boolean;
|
|
1354
1543
|
/**
|
|
@@ -1469,8 +1658,7 @@ export interface WalletUpdateParams {
|
|
|
1469
1658
|
*/
|
|
1470
1659
|
owner?: WalletUpdateParams.PublicKeyOwner | WalletUpdateParams.UserOwner | null;
|
|
1471
1660
|
/**
|
|
1472
|
-
* Body param
|
|
1473
|
-
* provide this, do not specify an owner.
|
|
1661
|
+
* Body param
|
|
1474
1662
|
*/
|
|
1475
1663
|
owner_id?: string | null;
|
|
1476
1664
|
/**
|
|
@@ -1570,7 +1758,7 @@ export declare namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
1570
1758
|
}
|
|
1571
1759
|
}
|
|
1572
1760
|
export declare namespace Wallets {
|
|
1573
|
-
export { type
|
|
1761
|
+
export { type Wallet as Wallet, type CurveSigningChainType as CurveSigningChainType, type ExtendedChainType as ExtendedChainType, type FirstClassChainType as FirstClassChainType, type WalletChainType as WalletChainType, 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 WalletBatchItemInput as WalletBatchItemInput, type WalletBatchCreateInput as WalletBatchCreateInput, type WalletBatchCreateResult as WalletBatchCreateResult, type WalletBatchCreateResponse as WalletBatchCreateResponse, 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, };
|
|
1574
1762
|
export { Transactions as Transactions, type TransactionGetResponse as TransactionGetResponse, type TransactionGetParams as TransactionGetParams, };
|
|
1575
1763
|
export { Balance as Balance, type BalanceGetResponse as BalanceGetResponse, type BalanceGetParams as BalanceGetParams, };
|
|
1576
1764
|
}
|