@privy-io/api-types 0.15.0 → 0.16.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 +82 -0
- package/client.d.mts +29 -29
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -29
- package/client.d.ts.map +1 -1
- package/client.js +11 -3
- package/client.js.map +1 -1
- package/client.mjs +11 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +44 -23
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -23
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +21 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +21 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +14 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +14 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +65 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +65 -79
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +102 -205
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +102 -205
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/onramps.d.mts +50 -48
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +50 -48
- package/resources/onramps.d.ts.map +1 -1
- package/resources/policies.d.mts +47 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +47 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -2
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -2
- package/resources/swaps.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +134 -21
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +134 -21
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +8 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +8 -4
- 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 +5 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +5 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +603 -87
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +603 -87
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +15 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +15 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +241 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +241 -54
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +26 -27
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -27
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +163 -17
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/apps.ts +60 -30
- package/src/resources/client-auth.ts +22 -4
- package/src/resources/index.ts +72 -3
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +386 -482
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +66 -16
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/wallet-actions.ts +182 -20
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +34 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +782 -94
- package/src/resources/webhooks.ts +293 -57
- package/src/resources/yield.ts +29 -30
- 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
|
@@ -5,6 +5,41 @@ import * as WalletsAPI from './wallets/wallets';
|
|
|
5
5
|
|
|
6
6
|
export class WalletActions extends APIResource {}
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* A wallet action step representing a transaction executed by a custodian (e.g.
|
|
10
|
+
* Bridge).
|
|
11
|
+
*/
|
|
12
|
+
export interface CustodianTransactionWalletActionStep {
|
|
13
|
+
/**
|
|
14
|
+
* Identifier of the custodian executing this transaction (e.g. "bridge").
|
|
15
|
+
*/
|
|
16
|
+
custodian: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Status of a custodian transaction step in a wallet action.
|
|
20
|
+
*/
|
|
21
|
+
status: CustodianTransactionWalletActionStepStatus;
|
|
22
|
+
|
|
23
|
+
type: 'custodian_transaction';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
27
|
+
*/
|
|
28
|
+
failure_reason?: FailureReason;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Status of a custodian transaction step in a wallet action.
|
|
33
|
+
*/
|
|
34
|
+
export type CustodianTransactionWalletActionStepStatus =
|
|
35
|
+
| 'preparing'
|
|
36
|
+
| 'queued'
|
|
37
|
+
| 'custodian_reviewing'
|
|
38
|
+
| 'pending'
|
|
39
|
+
| 'confirmed'
|
|
40
|
+
| 'rejected'
|
|
41
|
+
| 'failed';
|
|
42
|
+
|
|
8
43
|
/**
|
|
9
44
|
* A wallet action step consisting of an EVM transaction.
|
|
10
45
|
*/
|
|
@@ -31,6 +66,12 @@ export interface EvmTransactionWalletActionStep {
|
|
|
31
66
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
32
67
|
*/
|
|
33
68
|
failure_reason?: FailureReason;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Whether this step has reached on-chain finality. Absent until finality is
|
|
72
|
+
* confirmed.
|
|
73
|
+
*/
|
|
74
|
+
finalized?: boolean;
|
|
34
75
|
}
|
|
35
76
|
|
|
36
77
|
/**
|
|
@@ -70,6 +111,17 @@ export interface EvmUserOperationWalletActionStep {
|
|
|
70
111
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
71
112
|
*/
|
|
72
113
|
failure_reason?: FailureReason;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Whether this step has reached on-chain finality. Absent until finality is
|
|
117
|
+
* confirmed.
|
|
118
|
+
*/
|
|
119
|
+
finalized?: boolean;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Amount charged in USD for gas sponsorship on this step.
|
|
123
|
+
*/
|
|
124
|
+
gas_credits_charged_usd?: string;
|
|
73
125
|
}
|
|
74
126
|
|
|
75
127
|
/**
|
|
@@ -465,6 +517,11 @@ export interface EthereumEarnPositionQuery {
|
|
|
465
517
|
* The vault ID to get position for.
|
|
466
518
|
*/
|
|
467
519
|
vault_id: string;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
523
|
+
*/
|
|
524
|
+
include_archived?: boolean;
|
|
468
525
|
}
|
|
469
526
|
|
|
470
527
|
/**
|
|
@@ -603,6 +660,29 @@ export interface FailureReason {
|
|
|
603
660
|
details?: unknown;
|
|
604
661
|
}
|
|
605
662
|
|
|
663
|
+
/**
|
|
664
|
+
* Query parameters for listing wallet actions.
|
|
665
|
+
*/
|
|
666
|
+
export interface ListWalletActionsQuery {
|
|
667
|
+
cursor?: string;
|
|
668
|
+
|
|
669
|
+
limit?: number | null;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Type of wallet action
|
|
673
|
+
*/
|
|
674
|
+
type?: WalletActionType;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Paginated list of wallet actions.
|
|
679
|
+
*/
|
|
680
|
+
export interface ListWalletActionsResponse {
|
|
681
|
+
data: Array<WalletActionResponse>;
|
|
682
|
+
|
|
683
|
+
next_cursor: string | null;
|
|
684
|
+
}
|
|
685
|
+
|
|
606
686
|
/**
|
|
607
687
|
* A wallet action step consisting of an SVM (Solana) transaction.
|
|
608
688
|
*/
|
|
@@ -628,6 +708,17 @@ export interface SvmTransactionWalletActionStep {
|
|
|
628
708
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
629
709
|
*/
|
|
630
710
|
failure_reason?: FailureReason;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Whether this step has reached on-chain finality. Absent until finality is
|
|
714
|
+
* confirmed.
|
|
715
|
+
*/
|
|
716
|
+
finalized?: boolean;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Amount charged in USD for gas sponsorship on this step.
|
|
720
|
+
*/
|
|
721
|
+
gas_credits_charged_usd?: string;
|
|
631
722
|
}
|
|
632
723
|
|
|
633
724
|
/**
|
|
@@ -638,7 +729,6 @@ export type SvmWalletActionStepStatus =
|
|
|
638
729
|
| 'queued'
|
|
639
730
|
| 'pending'
|
|
640
731
|
| 'confirmed'
|
|
641
|
-
| 'finalized'
|
|
642
732
|
| 'rejected'
|
|
643
733
|
| 'reverted'
|
|
644
734
|
| 'failed';
|
|
@@ -694,21 +784,29 @@ export interface SwapActionResponse {
|
|
|
694
784
|
*/
|
|
695
785
|
wallet_id: string;
|
|
696
786
|
|
|
787
|
+
/**
|
|
788
|
+
* Recipient address on the destination chain. Present for cross-chain swaps. May
|
|
789
|
+
* differ from the source wallet address when swapping between chain types (e.g.
|
|
790
|
+
* EVM to Solana).
|
|
791
|
+
*/
|
|
792
|
+
destination_address?: string;
|
|
793
|
+
|
|
697
794
|
/**
|
|
698
795
|
* Destination chain CAIP-2 identifier. Present for cross-chain swaps.
|
|
699
796
|
*/
|
|
700
797
|
destination_caip2?: string;
|
|
701
798
|
|
|
702
799
|
/**
|
|
703
|
-
* Estimated fee breakdown from the provider quote.
|
|
800
|
+
* Estimated fee breakdown from the provider quote. Only present for cross-chain
|
|
801
|
+
* swaps. Populated after on-chain confirmation.
|
|
704
802
|
*/
|
|
705
|
-
estimated_fees?: Array<WalletsAPI.FeeLineItem
|
|
803
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
706
804
|
|
|
707
805
|
/**
|
|
708
806
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
709
807
|
* human-readable decimal string, plus the gas token symbol.
|
|
710
808
|
*/
|
|
711
|
-
estimated_gas?: WalletsAPI.Gas;
|
|
809
|
+
estimated_gas?: WalletsAPI.Gas | null;
|
|
712
810
|
|
|
713
811
|
/**
|
|
714
812
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
@@ -716,15 +814,16 @@ export interface SwapActionResponse {
|
|
|
716
814
|
failure_reason?: FailureReason;
|
|
717
815
|
|
|
718
816
|
/**
|
|
719
|
-
* Actual fees paid for the swap. Populated after on-chain confirmation.
|
|
817
|
+
* Actual fees paid for the swap. Populated after on-chain confirmation. Only
|
|
818
|
+
* present for cross-chain swaps.
|
|
720
819
|
*/
|
|
721
|
-
fees?: Array<WalletsAPI.FeeLineItem
|
|
820
|
+
fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
722
821
|
|
|
723
822
|
/**
|
|
724
823
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
725
824
|
* human-readable decimal string, plus the gas token symbol.
|
|
726
825
|
*/
|
|
727
|
-
gas?: WalletsAPI.Gas;
|
|
826
|
+
gas?: WalletsAPI.Gas | null;
|
|
728
827
|
|
|
729
828
|
/**
|
|
730
829
|
* The steps of the wallet action. Only returned if `?include=steps` is provided.
|
|
@@ -732,6 +831,45 @@ export interface SwapActionResponse {
|
|
|
732
831
|
steps?: Array<WalletActionStep>;
|
|
733
832
|
}
|
|
734
833
|
|
|
834
|
+
/**
|
|
835
|
+
* A wallet action step consisting of a TVM (Tron) transaction.
|
|
836
|
+
*/
|
|
837
|
+
export interface TvmTransactionWalletActionStep {
|
|
838
|
+
/**
|
|
839
|
+
* CAIP-2 chain identifier for the Tron network.
|
|
840
|
+
*/
|
|
841
|
+
caip2: string;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Status of a TVM (Tron) step in a wallet action.
|
|
845
|
+
*/
|
|
846
|
+
status: TvmWalletActionStepStatus;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* The Tron transaction ID. Null until broadcast.
|
|
850
|
+
*/
|
|
851
|
+
transaction_id: string | null;
|
|
852
|
+
|
|
853
|
+
type: 'tvm_transaction';
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
857
|
+
*/
|
|
858
|
+
failure_reason?: FailureReason;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Status of a TVM (Tron) step in a wallet action.
|
|
863
|
+
*/
|
|
864
|
+
export type TvmWalletActionStepStatus =
|
|
865
|
+
| 'preparing'
|
|
866
|
+
| 'queued'
|
|
867
|
+
| 'pending'
|
|
868
|
+
| 'confirmed'
|
|
869
|
+
| 'rejected'
|
|
870
|
+
| 'reverted'
|
|
871
|
+
| 'failed';
|
|
872
|
+
|
|
735
873
|
/**
|
|
736
874
|
* Response for a transfer action.
|
|
737
875
|
*/
|
|
@@ -751,6 +889,13 @@ export interface TransferActionResponse {
|
|
|
751
889
|
*/
|
|
752
890
|
destination_address: string;
|
|
753
891
|
|
|
892
|
+
/**
|
|
893
|
+
* Amount received on the destination chain. For exact_output cross-chain
|
|
894
|
+
* transfers, set at creation (the guaranteed exact amount). For exact_input
|
|
895
|
+
* cross-chain transfers, null until fill confirmation.
|
|
896
|
+
*/
|
|
897
|
+
destination_amount: string | null;
|
|
898
|
+
|
|
754
899
|
/**
|
|
755
900
|
* Chain name (e.g. "base", "ethereum").
|
|
756
901
|
*/
|
|
@@ -769,10 +914,9 @@ export interface TransferActionResponse {
|
|
|
769
914
|
wallet_id: string;
|
|
770
915
|
|
|
771
916
|
/**
|
|
772
|
-
*
|
|
773
|
-
* transfers, or after fill confirmation for exact_input transfers.
|
|
917
|
+
* Whether the amount refers to the input token or output token.
|
|
774
918
|
*/
|
|
775
|
-
|
|
919
|
+
amount_type?: WalletsAPI.AmountType;
|
|
776
920
|
|
|
777
921
|
/**
|
|
778
922
|
* Destination asset for cross-asset transfers. Omitted for same-asset transfers.
|
|
@@ -785,15 +929,16 @@ export interface TransferActionResponse {
|
|
|
785
929
|
destination_chain?: string;
|
|
786
930
|
|
|
787
931
|
/**
|
|
788
|
-
* Estimated fee breakdown from the provider quote.
|
|
932
|
+
* Estimated fee breakdown from the provider quote. Only present for cross-chain or
|
|
933
|
+
* cross-asset transfers. Populated after on-chain confirmation.
|
|
789
934
|
*/
|
|
790
|
-
estimated_fees?: Array<WalletsAPI.FeeLineItem
|
|
935
|
+
estimated_fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
791
936
|
|
|
792
937
|
/**
|
|
793
938
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
794
939
|
* human-readable decimal string, plus the gas token symbol.
|
|
795
940
|
*/
|
|
796
|
-
estimated_gas?: WalletsAPI.Gas;
|
|
941
|
+
estimated_gas?: WalletsAPI.Gas | null;
|
|
797
942
|
|
|
798
943
|
/**
|
|
799
944
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
@@ -801,19 +946,20 @@ export interface TransferActionResponse {
|
|
|
801
946
|
failure_reason?: FailureReason;
|
|
802
947
|
|
|
803
948
|
/**
|
|
804
|
-
* Actual fees paid for the transfer. Populated after on-chain confirmation.
|
|
949
|
+
* Actual fees paid for the transfer. Populated after on-chain confirmation. Only
|
|
950
|
+
* present for cross-chain transfers.
|
|
805
951
|
*/
|
|
806
|
-
fees?: Array<WalletsAPI.FeeLineItem
|
|
952
|
+
fees?: Array<WalletsAPI.FeeLineItem> | null;
|
|
807
953
|
|
|
808
954
|
/**
|
|
809
955
|
* Gas cost for a blockchain action. Includes both raw base-unit amount and a
|
|
810
956
|
* human-readable decimal string, plus the gas token symbol.
|
|
811
957
|
*/
|
|
812
|
-
gas?: WalletsAPI.Gas;
|
|
958
|
+
gas?: WalletsAPI.Gas | null;
|
|
813
959
|
|
|
814
960
|
/**
|
|
815
|
-
* Decimal amount sent on the source chain (e.g. "1.5").
|
|
816
|
-
* cross-chain transfers until
|
|
961
|
+
* Decimal amount sent on the source chain (e.g. "1.5"). For exact_output
|
|
962
|
+
* cross-chain transfers, null until fill confirmation.
|
|
817
963
|
*/
|
|
818
964
|
source_amount?: string;
|
|
819
965
|
|
|
@@ -841,6 +987,11 @@ export interface TransferActionResponse {
|
|
|
841
987
|
steps?: Array<WalletActionStep>;
|
|
842
988
|
}
|
|
843
989
|
|
|
990
|
+
/**
|
|
991
|
+
* Expandable relations to include on a wallet action response.
|
|
992
|
+
*/
|
|
993
|
+
export type WalletActionInclude = 'steps';
|
|
994
|
+
|
|
844
995
|
/**
|
|
845
996
|
* Response for a wallet action, discriminated on type.
|
|
846
997
|
*/
|
|
@@ -863,7 +1014,9 @@ export type WalletActionStep =
|
|
|
863
1014
|
| EvmTransactionWalletActionStep
|
|
864
1015
|
| EvmUserOperationWalletActionStep
|
|
865
1016
|
| SvmTransactionWalletActionStep
|
|
866
|
-
|
|
|
1017
|
+
| TvmTransactionWalletActionStep
|
|
1018
|
+
| ExternalTransactionWalletActionStep
|
|
1019
|
+
| CustodianTransactionWalletActionStep;
|
|
867
1020
|
|
|
868
1021
|
/**
|
|
869
1022
|
* Type of a wallet action step.
|
|
@@ -872,7 +1025,9 @@ export type WalletActionStepType =
|
|
|
872
1025
|
| 'evm_transaction'
|
|
873
1026
|
| 'evm_user_operation'
|
|
874
1027
|
| 'svm_transaction'
|
|
875
|
-
| '
|
|
1028
|
+
| 'tvm_transaction'
|
|
1029
|
+
| 'external_transaction'
|
|
1030
|
+
| 'custodian_transaction';
|
|
876
1031
|
|
|
877
1032
|
/**
|
|
878
1033
|
* Type of wallet action
|
|
@@ -886,6 +1041,8 @@ export type WalletActionType =
|
|
|
886
1041
|
|
|
887
1042
|
export declare namespace WalletActions {
|
|
888
1043
|
export {
|
|
1044
|
+
type CustodianTransactionWalletActionStep as CustodianTransactionWalletActionStep,
|
|
1045
|
+
type CustodianTransactionWalletActionStepStatus as CustodianTransactionWalletActionStepStatus,
|
|
889
1046
|
type EvmTransactionWalletActionStep as EvmTransactionWalletActionStep,
|
|
890
1047
|
type EvmUserOperationWalletActionStep as EvmUserOperationWalletActionStep,
|
|
891
1048
|
type EvmWalletActionStepStatus as EvmWalletActionStepStatus,
|
|
@@ -907,10 +1064,15 @@ export declare namespace WalletActions {
|
|
|
907
1064
|
type ExternalTransactionWalletActionStep as ExternalTransactionWalletActionStep,
|
|
908
1065
|
type ExternalTransactionWalletActionStepStatus as ExternalTransactionWalletActionStepStatus,
|
|
909
1066
|
type FailureReason as FailureReason,
|
|
1067
|
+
type ListWalletActionsQuery as ListWalletActionsQuery,
|
|
1068
|
+
type ListWalletActionsResponse as ListWalletActionsResponse,
|
|
910
1069
|
type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
|
|
911
1070
|
type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
|
|
912
1071
|
type SwapActionResponse as SwapActionResponse,
|
|
1072
|
+
type TvmTransactionWalletActionStep as TvmTransactionWalletActionStep,
|
|
1073
|
+
type TvmWalletActionStepStatus as TvmWalletActionStepStatus,
|
|
913
1074
|
type TransferActionResponse as TransferActionResponse,
|
|
1075
|
+
type WalletActionInclude as WalletActionInclude,
|
|
914
1076
|
type WalletActionResponse as WalletActionResponse,
|
|
915
1077
|
type WalletActionStatus as WalletActionStatus,
|
|
916
1078
|
type WalletActionStep as WalletActionStep,
|
|
@@ -35,11 +35,12 @@ export interface BalanceGetResponse {
|
|
|
35
35
|
|
|
36
36
|
export namespace BalanceGetResponse {
|
|
37
37
|
export interface Balance {
|
|
38
|
-
asset: 'usdc' | 'usdc.e' | 'eth' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
38
|
+
asset: 'usdc' | 'usdc.e' | 'eth' | 'avax' | 'pol' | 'usdt' | 'eurc' | 'usdb' | 'sol' | (string & {});
|
|
39
39
|
|
|
40
40
|
chain:
|
|
41
41
|
| 'ethereum'
|
|
42
42
|
| 'arbitrum'
|
|
43
|
+
| 'avalanche'
|
|
43
44
|
| 'base'
|
|
44
45
|
| 'tempo'
|
|
45
46
|
| 'linea'
|
|
@@ -49,6 +50,7 @@ export namespace BalanceGetResponse {
|
|
|
49
50
|
| 'zksync_era'
|
|
50
51
|
| 'sepolia'
|
|
51
52
|
| 'arbitrum_sepolia'
|
|
53
|
+
| 'avalanche_fuji'
|
|
52
54
|
| 'base_sepolia'
|
|
53
55
|
| 'linea_testnet'
|
|
54
56
|
| 'optimism_sepolia'
|
|
@@ -81,6 +83,7 @@ export interface BalanceGetParams {
|
|
|
81
83
|
| 'usdc'
|
|
82
84
|
| 'usdc.e'
|
|
83
85
|
| 'eth'
|
|
86
|
+
| 'avax'
|
|
84
87
|
| 'pol'
|
|
85
88
|
| 'usdt'
|
|
86
89
|
| 'eurc'
|
|
@@ -95,6 +98,7 @@ export interface BalanceGetParams {
|
|
|
95
98
|
chain?:
|
|
96
99
|
| 'ethereum'
|
|
97
100
|
| 'arbitrum'
|
|
101
|
+
| 'avalanche'
|
|
98
102
|
| 'base'
|
|
99
103
|
| 'tempo'
|
|
100
104
|
| 'linea'
|
|
@@ -104,6 +108,7 @@ export interface BalanceGetParams {
|
|
|
104
108
|
| 'zksync_era'
|
|
105
109
|
| 'sepolia'
|
|
106
110
|
| 'arbitrum_sepolia'
|
|
111
|
+
| 'avalanche_fuji'
|
|
107
112
|
| 'base_sepolia'
|
|
108
113
|
| 'linea_testnet'
|
|
109
114
|
| 'optimism_sepolia'
|
|
@@ -113,6 +118,7 @@ export interface BalanceGetParams {
|
|
|
113
118
|
| Array<
|
|
114
119
|
| 'ethereum'
|
|
115
120
|
| 'arbitrum'
|
|
121
|
+
| 'avalanche'
|
|
116
122
|
| 'base'
|
|
117
123
|
| 'tempo'
|
|
118
124
|
| 'linea'
|
|
@@ -122,6 +128,7 @@ export interface BalanceGetParams {
|
|
|
122
128
|
| 'zksync_era'
|
|
123
129
|
| 'sepolia'
|
|
124
130
|
| 'arbitrum_sepolia'
|
|
131
|
+
| 'avalanche_fuji'
|
|
125
132
|
| 'base_sepolia'
|
|
126
133
|
| 'linea_testnet'
|
|
127
134
|
| 'optimism_sepolia'
|
|
@@ -130,6 +137,11 @@ export interface BalanceGetParams {
|
|
|
130
137
|
| 'solana_testnet'
|
|
131
138
|
>;
|
|
132
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
142
|
+
*/
|
|
143
|
+
include_archived?: boolean;
|
|
144
|
+
|
|
133
145
|
/**
|
|
134
146
|
* If set, balances are converted to the specified fiat currency. Not supported
|
|
135
147
|
* when `token` is provided.
|
|
@@ -4,9 +4,13 @@ export { Balance, type BalanceGetResponse, type BalanceGetParams } from './balan
|
|
|
4
4
|
export { Transactions, type TransactionGetResponse, type TransactionGetParams } from './transactions';
|
|
5
5
|
export {
|
|
6
6
|
Wallets,
|
|
7
|
+
type AccessListEntry,
|
|
7
8
|
type AdditionalSignerInput,
|
|
8
9
|
type AdditionalSignerItemInput,
|
|
9
10
|
type Address,
|
|
11
|
+
type AdvancedSwapPlatformFee,
|
|
12
|
+
type AdvancedSwapRequestBody,
|
|
13
|
+
type AdvancedSwapResponse,
|
|
10
14
|
type AmountType,
|
|
11
15
|
type AuthorizationKeyDashboardResponse,
|
|
12
16
|
type AuthorizationKeyResponse,
|
|
@@ -19,6 +23,9 @@ export {
|
|
|
19
23
|
type CustodialWalletProvider,
|
|
20
24
|
type CustomTokenTransferSource,
|
|
21
25
|
type DeveloperFee,
|
|
26
|
+
type EncryptedAuthorizationKey,
|
|
27
|
+
type EncryptedBoundAuthenticateResponse,
|
|
28
|
+
type EncryptedWalletAuthenticateResponse,
|
|
22
29
|
type EthereumPersonalSignRpcInput,
|
|
23
30
|
type EthereumPersonalSignRpcInputParams,
|
|
24
31
|
type EthereumPersonalSignRpcResponse,
|
|
@@ -74,6 +81,7 @@ export {
|
|
|
74
81
|
type HpkeEncryption,
|
|
75
82
|
type HpkeImportConfig,
|
|
76
83
|
type Hex,
|
|
84
|
+
type IntentBinding,
|
|
77
85
|
type NamedTokenTransferSource,
|
|
78
86
|
type OutputWithPreviousTransactionData,
|
|
79
87
|
type PolicyInput,
|
|
@@ -83,6 +91,7 @@ export {
|
|
|
83
91
|
type PrivateKeySubmitInput,
|
|
84
92
|
type PrivyFee,
|
|
85
93
|
type Quantity,
|
|
94
|
+
type RawBoundAuthenticateResponse,
|
|
86
95
|
type RawSignBytesEncoding,
|
|
87
96
|
type RawSignBytesHashFunction,
|
|
88
97
|
type RawSignBytesParams,
|
|
@@ -91,10 +100,13 @@ export {
|
|
|
91
100
|
type RawSignInputParams,
|
|
92
101
|
type RawSignResponse,
|
|
93
102
|
type RawSignResponseData,
|
|
103
|
+
type RawWalletAuthenticateResponse,
|
|
94
104
|
type RecipientPublicKey,
|
|
95
105
|
type RelayerFee,
|
|
96
106
|
type SeedPhraseExportInput,
|
|
97
107
|
type SeedPhraseExportResponse,
|
|
108
|
+
type SignatureOptions,
|
|
109
|
+
type SignatureType,
|
|
98
110
|
type SigningAlgorithm,
|
|
99
111
|
type SolanaRpcInput,
|
|
100
112
|
type SolanaRpcResponse,
|
|
@@ -156,6 +168,7 @@ export {
|
|
|
156
168
|
type SparkUserTokenMetadata,
|
|
157
169
|
type SparkWalletLeaf,
|
|
158
170
|
type SuiCommandName,
|
|
171
|
+
type SwapSubmissionStatus,
|
|
159
172
|
type TempoAaAuthorization,
|
|
160
173
|
type TempoCall,
|
|
161
174
|
type TempoFeePayerSignature,
|
|
@@ -170,6 +183,21 @@ export {
|
|
|
170
183
|
type TransferReceivedTransactionDetail,
|
|
171
184
|
type TransferRequestBody,
|
|
172
185
|
type TransferSentTransactionDetail,
|
|
186
|
+
type TronContract,
|
|
187
|
+
type TronRawDataForSend,
|
|
188
|
+
type TronRawDataForSign,
|
|
189
|
+
type TronRpcInput,
|
|
190
|
+
type TronRpcResponse,
|
|
191
|
+
type TronSendTransactionRpcInput,
|
|
192
|
+
type TronSendTransactionRpcInputParams,
|
|
193
|
+
type TronSendTransactionRpcResponse,
|
|
194
|
+
type TronSendTransactionRpcResponseData,
|
|
195
|
+
type TronSignTransactionRpcInput,
|
|
196
|
+
type TronSignTransactionRpcInputParams,
|
|
197
|
+
type TronSignTransactionRpcResponse,
|
|
198
|
+
type TronSignTransactionRpcResponseData,
|
|
199
|
+
type TronTransferContract,
|
|
200
|
+
type TronTriggerSmartContract,
|
|
173
201
|
type TypedDataDomainInputParams,
|
|
174
202
|
type TypedDataTypeFieldInput,
|
|
175
203
|
type TypedDataTypesInputParams,
|
|
@@ -177,12 +205,17 @@ export {
|
|
|
177
205
|
type UnsignedStandardEthereumTransaction,
|
|
178
206
|
type UnsignedTempoTransaction,
|
|
179
207
|
type UserOperationInput,
|
|
208
|
+
type UserSigningKeyBinding,
|
|
180
209
|
type Wallet,
|
|
181
210
|
type WalletAdditionalSigner,
|
|
182
211
|
type WalletAdditionalSignerItem,
|
|
183
212
|
type WalletAPIRegisterAuthorizationKeyInput,
|
|
184
213
|
type WalletAPIRevokeAuthorizationKeyInput,
|
|
185
214
|
type WalletAsset,
|
|
215
|
+
type WalletAuthenticateBoundEncryptedRequestBody,
|
|
216
|
+
type WalletAuthenticateBoundRequestBody,
|
|
217
|
+
type WalletAuthenticateBoundUnencryptedRequestBody,
|
|
218
|
+
type WalletAuthenticateIntentsResponse,
|
|
186
219
|
type WalletAuthenticateRequestBody,
|
|
187
220
|
type WalletAuthenticateWithJwtResponse,
|
|
188
221
|
type WalletAuthorizationHeaders,
|
|
@@ -209,6 +242,7 @@ export {
|
|
|
209
242
|
type WalletUpdateParams,
|
|
210
243
|
type WalletListParams,
|
|
211
244
|
type WalletExportParams,
|
|
245
|
+
type WalletGetParams,
|
|
212
246
|
type WalletRawSignParams,
|
|
213
247
|
type WalletRpcParams,
|
|
214
248
|
type WalletsCursor,
|
|
@@ -93,6 +93,7 @@ export interface TransactionGetParams {
|
|
|
93
93
|
| 'usdc'
|
|
94
94
|
| 'usdc.e'
|
|
95
95
|
| 'eth'
|
|
96
|
+
| 'avax'
|
|
96
97
|
| 'pol'
|
|
97
98
|
| 'usdt'
|
|
98
99
|
| 'eurc'
|
|
@@ -102,6 +103,11 @@ export interface TransactionGetParams {
|
|
|
102
103
|
|
|
103
104
|
cursor?: string;
|
|
104
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Include archived wallets in lookup. Defaults to false.
|
|
108
|
+
*/
|
|
109
|
+
include_archived?: boolean;
|
|
110
|
+
|
|
105
111
|
limit?: number | null;
|
|
106
112
|
|
|
107
113
|
tx_hash?: string;
|