@privy-io/node 0.1.0-alpha.3 → 0.2.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 +38 -0
- package/client.d.mts +1 -1
- package/client.d.ts +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/index.d.mts +6 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +6 -1
- package/index.d.ts.map +1 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/index.mjs +2 -1
- package/index.mjs.map +1 -1
- package/lib/auth.d.mts +68 -0
- package/lib/auth.d.mts.map +1 -0
- package/lib/auth.d.ts +68 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +130 -0
- package/lib/auth.js.map +1 -0
- package/lib/auth.mjs +123 -0
- package/lib/auth.mjs.map +1 -0
- package/lib/cryptography.d.mts +3 -0
- package/lib/cryptography.d.mts.map +1 -1
- package/lib/cryptography.d.ts +3 -0
- package/lib/cryptography.d.ts.map +1 -1
- package/lib/cryptography.js +8 -1
- package/lib/cryptography.js.map +1 -1
- package/lib/cryptography.mjs +7 -1
- package/lib/cryptography.mjs.map +1 -1
- package/lib/identity-token.d.mts +15 -0
- package/lib/identity-token.d.mts.map +1 -0
- package/lib/identity-token.d.ts +15 -0
- package/lib/identity-token.d.ts.map +1 -0
- package/lib/identity-token.js +273 -0
- package/lib/identity-token.js.map +1 -0
- package/lib/identity-token.mjs +268 -0
- package/lib/identity-token.mjs.map +1 -0
- package/lib/user-utils.d.mts +22 -0
- package/lib/user-utils.d.mts.map +1 -0
- package/lib/user-utils.d.ts +22 -0
- package/lib/user-utils.d.ts.map +1 -0
- package/lib/user-utils.js +15 -0
- package/lib/user-utils.js.map +1 -0
- package/lib/user-utils.mjs +11 -0
- package/lib/user-utils.mjs.map +1 -0
- package/package.json +1 -1
- package/public-api/PrivyClient.d.mts +2 -1
- package/public-api/PrivyClient.d.mts.map +1 -1
- package/public-api/PrivyClient.d.ts +2 -1
- package/public-api/PrivyClient.d.ts.map +1 -1
- package/public-api/PrivyClient.js +10 -3
- package/public-api/PrivyClient.js.map +1 -1
- package/public-api/PrivyClient.mjs +10 -3
- package/public-api/PrivyClient.mjs.map +1 -1
- package/public-api/services/ethereum.d.mts.map +1 -1
- package/public-api/services/ethereum.d.ts.map +1 -1
- package/public-api/services/ethereum.js +0 -6
- package/public-api/services/ethereum.js.map +1 -1
- package/public-api/services/ethereum.mjs +0 -6
- package/public-api/services/ethereum.mjs.map +1 -1
- package/public-api/services/solana.d.mts.map +1 -1
- package/public-api/services/solana.d.ts.map +1 -1
- package/public-api/services/solana.js +0 -3
- package/public-api/services/solana.js.map +1 -1
- package/public-api/services/solana.mjs +0 -3
- package/public-api/services/solana.mjs.map +1 -1
- package/public-api/services/users.d.mts +23 -1
- package/public-api/services/users.d.mts.map +1 -1
- package/public-api/services/users.d.ts +23 -1
- package/public-api/services/users.d.ts.map +1 -1
- package/public-api/services/users.js +24 -0
- package/public-api/services/users.js.map +1 -1
- package/public-api/services/users.mjs +24 -0
- package/public-api/services/users.mjs.map +1 -1
- package/public-api/services/utils/auth.d.mts +6 -17
- package/public-api/services/utils/auth.d.mts.map +1 -1
- package/public-api/services/utils/auth.d.ts +6 -17
- package/public-api/services/utils/auth.d.ts.map +1 -1
- package/public-api/services/utils/auth.js +17 -69
- package/public-api/services/utils/auth.js.map +1 -1
- package/public-api/services/utils/auth.mjs +15 -66
- package/public-api/services/utils/auth.mjs.map +1 -1
- package/public-api/services/utils.d.mts +2 -1
- package/public-api/services/utils.d.mts.map +1 -1
- package/public-api/services/utils.d.ts +2 -1
- package/public-api/services/utils.d.ts.map +1 -1
- package/public-api/services/utils.js +2 -2
- package/public-api/services/utils.js.map +1 -1
- package/public-api/services/utils.mjs +2 -2
- package/public-api/services/utils.mjs.map +1 -1
- package/resources/policies.d.mts +2 -1
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +2 -1
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +16 -5
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +16 -5
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +2 -2
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +2 -2
- package/resources/users.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +7 -22
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +7 -22
- 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/src/client.ts +2 -2
- package/src/index.ts +15 -1
- package/src/lib/auth.ts +210 -0
- package/src/lib/cryptography.ts +9 -1
- package/src/lib/identity-token.ts +280 -0
- package/src/lib/user-utils.ts +31 -0
- package/src/public-api/PrivyClient.ts +12 -2
- package/src/public-api/services/ethereum.ts +0 -8
- package/src/public-api/services/solana.ts +0 -4
- package/src/public-api/services/users.ts +36 -2
- package/src/public-api/services/utils/auth.ts +22 -86
- package/src/public-api/services/utils.ts +3 -2
- package/src/resources/policies.ts +2 -1
- package/src/resources/users.ts +27 -3
- package/src/resources/wallets/wallets.ts +14 -33
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -297,7 +297,8 @@ export interface Wallet {
|
|
|
297
297
|
| 'near'
|
|
298
298
|
| 'spark'
|
|
299
299
|
| 'ton'
|
|
300
|
-
| 'starknet'
|
|
300
|
+
| 'starknet'
|
|
301
|
+
| 'movement';
|
|
301
302
|
|
|
302
303
|
/**
|
|
303
304
|
* Unix timestamp of when the wallet was created in milliseconds.
|
|
@@ -410,11 +411,9 @@ export namespace WalletRpcResponse {
|
|
|
410
411
|
}
|
|
411
412
|
|
|
412
413
|
export interface SolanaSignAndSendTransactionRpcResponse {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
data?: SolanaSignAndSendTransactionRpcResponse.Data;
|
|
414
|
+
data: SolanaSignAndSendTransactionRpcResponse.Data;
|
|
416
415
|
|
|
417
|
-
|
|
416
|
+
method: 'signAndSendTransaction';
|
|
418
417
|
}
|
|
419
418
|
|
|
420
419
|
export namespace SolanaSignAndSendTransactionRpcResponse {
|
|
@@ -425,12 +424,6 @@ export namespace WalletRpcResponse {
|
|
|
425
424
|
|
|
426
425
|
transaction_id?: string;
|
|
427
426
|
}
|
|
428
|
-
|
|
429
|
-
export interface Error {
|
|
430
|
-
code: string;
|
|
431
|
-
|
|
432
|
-
message: string;
|
|
433
|
-
}
|
|
434
427
|
}
|
|
435
428
|
|
|
436
429
|
export interface SolanaSignMessageRpcResponse {
|
|
@@ -462,11 +455,9 @@ export namespace WalletRpcResponse {
|
|
|
462
455
|
}
|
|
463
456
|
|
|
464
457
|
export interface EthereumSendTransactionRpcResponse {
|
|
465
|
-
|
|
458
|
+
data: EthereumSendTransactionRpcResponse.Data;
|
|
466
459
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
error?: EthereumSendTransactionRpcResponse.Error;
|
|
460
|
+
method: 'eth_sendTransaction';
|
|
470
461
|
}
|
|
471
462
|
|
|
472
463
|
export namespace EthereumSendTransactionRpcResponse {
|
|
@@ -505,12 +496,6 @@ export namespace WalletRpcResponse {
|
|
|
505
496
|
value?: string | number;
|
|
506
497
|
}
|
|
507
498
|
}
|
|
508
|
-
|
|
509
|
-
export interface Error {
|
|
510
|
-
code: string;
|
|
511
|
-
|
|
512
|
-
message: string;
|
|
513
|
-
}
|
|
514
499
|
}
|
|
515
500
|
|
|
516
501
|
export interface EthereumPersonalSignRpcResponse {
|
|
@@ -542,11 +527,9 @@ export namespace WalletRpcResponse {
|
|
|
542
527
|
}
|
|
543
528
|
|
|
544
529
|
export interface EthereumSign7702AuthorizationRpcResponse {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
data?: EthereumSign7702AuthorizationRpcResponse.Data;
|
|
530
|
+
data: EthereumSign7702AuthorizationRpcResponse.Data;
|
|
548
531
|
|
|
549
|
-
|
|
532
|
+
method: 'eth_sign7702Authorization';
|
|
550
533
|
}
|
|
551
534
|
|
|
552
535
|
export namespace EthereumSign7702AuthorizationRpcResponse {
|
|
@@ -569,12 +552,6 @@ export namespace WalletRpcResponse {
|
|
|
569
552
|
y_parity: number;
|
|
570
553
|
}
|
|
571
554
|
}
|
|
572
|
-
|
|
573
|
-
export interface Error {
|
|
574
|
-
code: string;
|
|
575
|
-
|
|
576
|
-
message: string;
|
|
577
|
-
}
|
|
578
555
|
}
|
|
579
556
|
|
|
580
557
|
export interface EthereumSecp256k1SignRpcResponse {
|
|
@@ -677,7 +654,8 @@ export interface WalletCreateParams {
|
|
|
677
654
|
| 'near'
|
|
678
655
|
| 'spark'
|
|
679
656
|
| 'ton'
|
|
680
|
-
| 'starknet'
|
|
657
|
+
| 'starknet'
|
|
658
|
+
| 'movement';
|
|
681
659
|
|
|
682
660
|
/**
|
|
683
661
|
* Body param: Additional signers for the wallet.
|
|
@@ -740,6 +718,8 @@ export interface WalletListParams extends CursorParams {
|
|
|
740
718
|
| 'cosmos'
|
|
741
719
|
| 'stellar'
|
|
742
720
|
| 'sui'
|
|
721
|
+
| 'aptos'
|
|
722
|
+
| 'movement'
|
|
743
723
|
| 'tron'
|
|
744
724
|
| 'bitcoin-segwit'
|
|
745
725
|
| 'near'
|
|
@@ -1560,7 +1540,8 @@ export namespace WalletCreateWalletsWithRecoveryParams {
|
|
|
1560
1540
|
| 'near'
|
|
1561
1541
|
| 'spark'
|
|
1562
1542
|
| 'ton'
|
|
1563
|
-
| 'starknet'
|
|
1543
|
+
| 'starknet'
|
|
1544
|
+
| 'movement';
|
|
1564
1545
|
|
|
1565
1546
|
/**
|
|
1566
1547
|
* List of policy IDs for policies that should be enforced on the wallet.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.2.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.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.2.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|