@privy-io/api-types 0.21.0 → 0.23.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 +41 -0
- package/client.d.mts +12 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -12
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +0 -8
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +0 -8
- package/resources/accounts.d.ts.map +1 -1
- package/resources/cards.d.mts +26 -9
- package/resources/cards.d.mts.map +1 -1
- package/resources/cards.d.ts +26 -9
- package/resources/cards.d.ts.map +1 -1
- package/resources/fiat.d.mts +525 -61
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts +525 -61
- package/resources/fiat.d.ts.map +1 -1
- package/resources/index.d.mts +6 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.mts +23 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +23 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +2 -1
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +2 -1
- package/resources/swaps.d.ts.map +1 -1
- package/resources/wallet-automations.d.mts +100 -6
- package/resources/wallet-automations.d.mts.map +1 -1
- package/resources/wallet-automations.d.ts +100 -6
- package/resources/wallet-automations.d.ts.map +1 -1
- package/resources/wallet-automations.js.map +1 -1
- package/resources/wallet-automations.mjs.map +1 -1
- package/resources/wallets/actions.d.mts +44 -4
- package/resources/wallets/actions.d.mts.map +1 -1
- package/resources/wallets/actions.d.ts +44 -4
- package/resources/wallets/actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +1 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +1 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -2
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -2
- 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/wallets.d.mts +367 -13
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +367 -13
- 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 +22 -15
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +22 -15
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +108 -6
- package/src/resources/accounts.ts +0 -10
- package/src/resources/cards.ts +29 -8
- package/src/resources/fiat.ts +637 -63
- package/src/resources/index.ts +54 -3
- package/src/resources/shared.ts +32 -0
- package/src/resources/swaps.ts +2 -1
- package/src/resources/wallet-automations.ts +120 -6
- package/src/resources/wallets/actions.ts +53 -3
- package/src/resources/wallets/balance.ts +9 -0
- package/src/resources/wallets/index.ts +26 -0
- package/src/resources/wallets/wallets.ts +469 -8
- package/src/resources/webhooks.ts +27 -16
- 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
package/src/resources/index.ts
CHANGED
|
@@ -105,6 +105,7 @@ export {
|
|
|
105
105
|
type CardIssuingListCardsInput,
|
|
106
106
|
type CardIssuingListTransactionsInput,
|
|
107
107
|
type CardIssuingMerchant,
|
|
108
|
+
type CardIssuingPinUpdate,
|
|
108
109
|
type CardIssuingReplaceCardRequestBody,
|
|
109
110
|
type CardIssuingReplacementReason,
|
|
110
111
|
type CardIssuingStatementQueryParams,
|
|
@@ -342,13 +343,26 @@ export {
|
|
|
342
343
|
type FiatDepositAccountStatus,
|
|
343
344
|
type FiatDepositInstructions,
|
|
344
345
|
type FiatPaymentRail,
|
|
346
|
+
type KYBAccountPurpose,
|
|
347
|
+
type KYBAssociatedPerson,
|
|
348
|
+
type KYBBusinessDocument,
|
|
349
|
+
type KYBBusinessType,
|
|
350
|
+
type KYBDocumentPurpose,
|
|
351
|
+
type KYBEstimatedAnnualRevenue,
|
|
352
|
+
type KYBHighRiskActivity,
|
|
353
|
+
type KYBIndividualDocument,
|
|
354
|
+
type KYBIndividualDocumentPurpose,
|
|
345
355
|
type KYBLinksRequestBody,
|
|
356
|
+
type KYBPlaceOfBirth,
|
|
357
|
+
type KYBPubliclyTradedListing,
|
|
358
|
+
type KYBRegulatedActivity,
|
|
359
|
+
type KYBSourceOfFunds,
|
|
346
360
|
type KYBStatusListResponse,
|
|
347
361
|
type KYBStatusResponse,
|
|
362
|
+
type KYBSubmitData,
|
|
363
|
+
type KYBSubmitRequestBody,
|
|
348
364
|
type KYBTosRequestBody,
|
|
349
|
-
type KYCIdentifyingDocument,
|
|
350
365
|
type KYCLinksRequestBody,
|
|
351
|
-
type KYCResidentialAddress,
|
|
352
366
|
type KYCStatusListResponse,
|
|
353
367
|
type KYCStatusResponse,
|
|
354
368
|
type KYCSubmitData,
|
|
@@ -383,6 +397,8 @@ export {
|
|
|
383
397
|
type OrganizationExternalFiatAccountResponse,
|
|
384
398
|
type PayoutDestination,
|
|
385
399
|
type PayoutSource,
|
|
400
|
+
type VerificationAddress,
|
|
401
|
+
type VerificationDocument,
|
|
386
402
|
} from './fiat';
|
|
387
403
|
export {
|
|
388
404
|
Funding,
|
|
@@ -663,9 +679,12 @@ export {
|
|
|
663
679
|
export {
|
|
664
680
|
Shared,
|
|
665
681
|
type BitcoinAddress,
|
|
682
|
+
type BitcoinCaip2,
|
|
683
|
+
type Bps,
|
|
666
684
|
type CurrencyAmount,
|
|
667
685
|
type IntegrationEnvironment,
|
|
668
686
|
type EvmAddress,
|
|
687
|
+
type EvmCaip2,
|
|
669
688
|
type EvmChecksumAddress,
|
|
670
689
|
type HyperliquidTokenAddress,
|
|
671
690
|
type KeyQuorumID,
|
|
@@ -676,9 +695,11 @@ export {
|
|
|
676
695
|
type OwnerInputUser,
|
|
677
696
|
type P256PublicKey,
|
|
678
697
|
type SolanaAddress,
|
|
698
|
+
type SolanaCaip2,
|
|
679
699
|
type SuccessResponse,
|
|
680
700
|
type TokenIdentifier,
|
|
681
701
|
type TronAddress,
|
|
702
|
+
type TronCaip2,
|
|
682
703
|
type TronHexAddress,
|
|
683
704
|
} from './shared';
|
|
684
705
|
export {
|
|
@@ -817,6 +838,11 @@ export {
|
|
|
817
838
|
type WalletAutomationExecutionResponse,
|
|
818
839
|
type WalletAutomationExecutionStatus,
|
|
819
840
|
type WalletAutomationListResponse,
|
|
841
|
+
type WalletAutomationReindexAssetResult,
|
|
842
|
+
type WalletAutomationReindexAssetStatus,
|
|
843
|
+
type WalletAutomationReindexCaip2,
|
|
844
|
+
type WalletAutomationReindexRequestBody,
|
|
845
|
+
type WalletAutomationReindexResponse,
|
|
820
846
|
type WalletAutomationResponse,
|
|
821
847
|
type WalletAutomationStatus,
|
|
822
848
|
type WalletAutomationSuccessResponse,
|
|
@@ -840,6 +866,7 @@ export {
|
|
|
840
866
|
type AptosSignTransactionRpcResponseData,
|
|
841
867
|
type AptosSignedTransactionBcsHex,
|
|
842
868
|
type AttachWalletAutomationRequestBody,
|
|
869
|
+
type AttachedWalletAutomation,
|
|
843
870
|
type AuthorizationKeyDashboardResponse,
|
|
844
871
|
type AuthorizationKeyResponse,
|
|
845
872
|
type AuthorizationKeyRole,
|
|
@@ -847,7 +874,13 @@ export {
|
|
|
847
874
|
type CreateCryptoDepositAccountResponse,
|
|
848
875
|
type CreateCryptoDepositAccountWithConfigRequestBody,
|
|
849
876
|
type CreateCryptoDepositAccountWithRouteRequestBody,
|
|
877
|
+
type CryptoDepositAccountCaip2,
|
|
878
|
+
type CryptoDepositAccountChain,
|
|
879
|
+
type CryptoDepositAccountConfigResponse,
|
|
880
|
+
type CryptoDepositAccountSourceChain,
|
|
881
|
+
type CryptoDepositAccountSourceCurrency,
|
|
850
882
|
type CryptoDepositAddressRoute,
|
|
883
|
+
type CryptoDepositAddressStrategy,
|
|
851
884
|
type CryptoDepositAsset,
|
|
852
885
|
type CryptoDepositAssetFilter,
|
|
853
886
|
type CryptoDepositAssetFilterAll,
|
|
@@ -856,10 +889,15 @@ export {
|
|
|
856
889
|
type CurveSigningChainType,
|
|
857
890
|
type CurveType,
|
|
858
891
|
type CustodialWallet,
|
|
892
|
+
type CustodialWalletChain,
|
|
859
893
|
type CustodialWalletChainType,
|
|
860
894
|
type CustodialWalletCreateInput,
|
|
861
895
|
type CustodialWalletProvider,
|
|
862
896
|
type CustomTokenTransferSource,
|
|
897
|
+
type DepositAccountCryptoQuoteAmount,
|
|
898
|
+
type DepositAccountCryptoQuoteAsset,
|
|
899
|
+
type DepositAccountCryptoQuoteRequestBody,
|
|
900
|
+
type DepositAccountCryptoQuoteResponse,
|
|
863
901
|
type DetachWalletAutomationRequestBody,
|
|
864
902
|
type DeveloperFee,
|
|
865
903
|
type EncryptedAuthorizationKey,
|
|
@@ -914,6 +952,8 @@ export {
|
|
|
914
952
|
type FirstClassChainType,
|
|
915
953
|
type Gas,
|
|
916
954
|
type GetByWalletAddressRequestBody,
|
|
955
|
+
type GetCryptoDepositAccountNextOrderResponse,
|
|
956
|
+
type GetCryptoDepositAccountOrderResponse,
|
|
917
957
|
type HDInitInput,
|
|
918
958
|
type HDPath,
|
|
919
959
|
type HDSubmitInput,
|
|
@@ -922,6 +962,7 @@ export {
|
|
|
922
962
|
type HpkeImportConfig,
|
|
923
963
|
type Hex,
|
|
924
964
|
type IntentBinding,
|
|
965
|
+
type ListCryptoDepositAccountsResponse,
|
|
925
966
|
type NamedTokenTransferSource,
|
|
926
967
|
type NearRpcRequestBody,
|
|
927
968
|
type NearRpcResponse,
|
|
@@ -1039,10 +1080,19 @@ export {
|
|
|
1039
1080
|
type TransactionChainNameInput,
|
|
1040
1081
|
type TransactionDetail,
|
|
1041
1082
|
type TransactionTokenAddressInput,
|
|
1083
|
+
type TransferCustodyOptions,
|
|
1084
|
+
type TransferInitiation,
|
|
1085
|
+
type TransferInitiationAttestations,
|
|
1086
|
+
type TransferInitiationChannel,
|
|
1087
|
+
type TransferInitiationSubchannel,
|
|
1042
1088
|
type TransferQuoteRequestBody,
|
|
1043
1089
|
type TransferQuoteResponse,
|
|
1044
1090
|
type TransferReceivedTransactionDetail,
|
|
1045
1091
|
type TransferRequestBody,
|
|
1092
|
+
type TransferScaAttestation,
|
|
1093
|
+
type TransferScaAuthFactor,
|
|
1094
|
+
type TransferScaAuthFactorCategory,
|
|
1095
|
+
type TransferScaOutcome,
|
|
1046
1096
|
type TransferSentTransactionDetail,
|
|
1047
1097
|
type TronContract,
|
|
1048
1098
|
type TronRawDataForSend,
|
|
@@ -1171,9 +1221,9 @@ export {
|
|
|
1171
1221
|
type TransactionProviderErrorWebhookPayload,
|
|
1172
1222
|
type TransactionReplacedWebhookPayload,
|
|
1173
1223
|
type TransactionStillPendingWebhookPayload,
|
|
1174
|
-
type UsageCrossChainFeeRecordedWebhookPayload,
|
|
1175
1224
|
type UsageGasSponsorshipRecordedWebhookPayload,
|
|
1176
1225
|
type UsageSourceType,
|
|
1226
|
+
type UsageSwapProviderFeeRecordedWebhookPayload,
|
|
1177
1227
|
type UserAuthenticatedWebhookPayload,
|
|
1178
1228
|
type UserCreatedWebhookPayload,
|
|
1179
1229
|
type UserDeletedWebhookPayload,
|
|
@@ -1218,6 +1268,7 @@ export {
|
|
|
1218
1268
|
type WalletArchivedWebhookPayload,
|
|
1219
1269
|
type WalletAutomationSubmittedWebhookPayload,
|
|
1220
1270
|
type WalletFundsAsset,
|
|
1271
|
+
type WalletFundsBtknAsset,
|
|
1221
1272
|
type WalletFundsErc20Asset,
|
|
1222
1273
|
type WalletFundsNativeTokenAsset,
|
|
1223
1274
|
type WalletFundsSacAsset,
|
package/src/resources/shared.ts
CHANGED
|
@@ -9,6 +9,17 @@ export class Shared extends APIResource {}
|
|
|
9
9
|
*/
|
|
10
10
|
export type BitcoinAddress = string;
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Bitcoin CAIP-2 chain identifier (e.g.
|
|
14
|
+
* "bip122:000000000019d6689c085ae165831e93").
|
|
15
|
+
*/
|
|
16
|
+
export type BitcoinCaip2 = 'bip122:mainnet' | (string & {});
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Value in basis points: integer from 0 to 10000 (0% to 100%).
|
|
20
|
+
*/
|
|
21
|
+
export type Bps = number;
|
|
22
|
+
|
|
12
23
|
/**
|
|
13
24
|
* A monetary value with its currency denomination.
|
|
14
25
|
*/
|
|
@@ -34,6 +45,12 @@ export type IntegrationEnvironment = 'sandbox' | 'production';
|
|
|
34
45
|
*/
|
|
35
46
|
export type EvmAddress = string;
|
|
36
47
|
|
|
48
|
+
/**
|
|
49
|
+
* EVM CAIP-2 chain identifier (e.g. "eip155:4217" for Tempo, "eip155:1" for
|
|
50
|
+
* Ethereum).
|
|
51
|
+
*/
|
|
52
|
+
export type EvmCaip2 = string;
|
|
53
|
+
|
|
37
54
|
/**
|
|
38
55
|
* EVM address normalized to EIP-55 checksum case.
|
|
39
56
|
*/
|
|
@@ -95,6 +112,11 @@ export type P256PublicKey = string;
|
|
|
95
112
|
*/
|
|
96
113
|
export type SolanaAddress = string;
|
|
97
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Solana CAIP-2 chain identifier (e.g. "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp").
|
|
117
|
+
*/
|
|
118
|
+
export type SolanaCaip2 = string;
|
|
119
|
+
|
|
98
120
|
/**
|
|
99
121
|
* A simple success response.
|
|
100
122
|
*/
|
|
@@ -114,6 +136,11 @@ export type TokenIdentifier = string;
|
|
|
114
136
|
*/
|
|
115
137
|
export type TronAddress = string;
|
|
116
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Tron CAIP-2 chain identifier. Supported values: "tron:mainnet", "tron:nile".
|
|
141
|
+
*/
|
|
142
|
+
export type TronCaip2 = 'tron:mainnet' | 'tron:nile';
|
|
143
|
+
|
|
117
144
|
/**
|
|
118
145
|
* Tron address in hex format: 41-prefixed, 42 hex characters (21 bytes), no 0x
|
|
119
146
|
* prefix.
|
|
@@ -123,9 +150,12 @@ export type TronHexAddress = string;
|
|
|
123
150
|
export declare namespace Shared {
|
|
124
151
|
export {
|
|
125
152
|
type BitcoinAddress as BitcoinAddress,
|
|
153
|
+
type BitcoinCaip2 as BitcoinCaip2,
|
|
154
|
+
type Bps as Bps,
|
|
126
155
|
type CurrencyAmount as CurrencyAmount,
|
|
127
156
|
type IntegrationEnvironment as IntegrationEnvironment,
|
|
128
157
|
type EvmAddress as EvmAddress,
|
|
158
|
+
type EvmCaip2 as EvmCaip2,
|
|
129
159
|
type EvmChecksumAddress as EvmChecksumAddress,
|
|
130
160
|
type HyperliquidTokenAddress as HyperliquidTokenAddress,
|
|
131
161
|
type KeyQuorumID as KeyQuorumID,
|
|
@@ -136,9 +166,11 @@ export declare namespace Shared {
|
|
|
136
166
|
type OwnerInputUser as OwnerInputUser,
|
|
137
167
|
type P256PublicKey as P256PublicKey,
|
|
138
168
|
type SolanaAddress as SolanaAddress,
|
|
169
|
+
type SolanaCaip2 as SolanaCaip2,
|
|
139
170
|
type SuccessResponse as SuccessResponse,
|
|
140
171
|
type TokenIdentifier as TokenIdentifier,
|
|
141
172
|
type TronAddress as TronAddress,
|
|
173
|
+
type TronCaip2 as TronCaip2,
|
|
142
174
|
type TronHexAddress as TronHexAddress,
|
|
143
175
|
};
|
|
144
176
|
}
|
package/src/resources/swaps.ts
CHANGED
|
@@ -22,7 +22,8 @@ export interface SwapDestination {
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Address to receive the output tokens. Defaults to the swapping wallet address.
|
|
25
|
-
* Required when swapping between different
|
|
25
|
+
* Required when swapping between chains with different address types (e.g. EVM to
|
|
26
|
+
* Solana) and for same-asset transfers.
|
|
26
27
|
*/
|
|
27
28
|
destination_address?: string;
|
|
28
29
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as SharedAPI from './shared';
|
|
4
5
|
|
|
5
6
|
export class WalletAutomations extends APIResource {}
|
|
6
7
|
|
|
@@ -77,7 +78,10 @@ export interface AutomationAssetFilterInputInclude {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
|
-
* An asset identified by contract address
|
|
81
|
+
* An asset identified by contract address on a specific chain (CAIP-2). Either
|
|
82
|
+
* field may be "_": asset_address: "_" matches any asset on the chain; caip2: "\*"
|
|
83
|
+
* matches the asset on any chain (in this case asset_address holds the asset
|
|
84
|
+
* symbol id, e.g. "usdc" or "eth", not a contract address).
|
|
81
85
|
*/
|
|
82
86
|
export interface AutomationAssetSpec {
|
|
83
87
|
asset_address: string;
|
|
@@ -88,7 +92,10 @@ export interface AutomationAssetSpec {
|
|
|
88
92
|
/**
|
|
89
93
|
* An asset spec accepting either raw identifiers (asset_address, caip2) or
|
|
90
94
|
* human-readable aliases (asset, chain). Exactly one of asset_address or asset
|
|
91
|
-
* must be provided; at most one of caip2 or chain may be provided.
|
|
95
|
+
* must be provided; at most one of caip2 or chain may be provided. Use "_" for
|
|
96
|
+
* asset_address or asset to match any asset on a given chain (chain is then
|
|
97
|
+
* required). Omitting chain/caip2 (or passing "_" for either) matches the
|
|
98
|
+
* specified asset on any chain.
|
|
92
99
|
*/
|
|
93
100
|
export interface AutomationAssetSpecInput extends AutomationAssetSpec {
|
|
94
101
|
asset?: string;
|
|
@@ -276,6 +283,11 @@ export interface UpdateAutomationRequestBody {
|
|
|
276
283
|
enabled?: boolean;
|
|
277
284
|
|
|
278
285
|
name?: string | null;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* A unique identifier for a key quorum.
|
|
289
|
+
*/
|
|
290
|
+
owner_id?: SharedAPI.KeyQuorumID | null;
|
|
279
291
|
}
|
|
280
292
|
|
|
281
293
|
/**
|
|
@@ -288,7 +300,7 @@ export interface WalletAutomationExecutionListResponse {
|
|
|
288
300
|
}
|
|
289
301
|
|
|
290
302
|
/**
|
|
291
|
-
* A record of a single automation execution
|
|
303
|
+
* A record of a single automation execution created by a deposit.
|
|
292
304
|
*/
|
|
293
305
|
export interface WalletAutomationExecutionResponse {
|
|
294
306
|
id: string;
|
|
@@ -308,6 +320,8 @@ export interface WalletAutomationExecutionResponse {
|
|
|
308
320
|
*/
|
|
309
321
|
status: WalletAutomationExecutionStatus;
|
|
310
322
|
|
|
323
|
+
submitted_at: string | null;
|
|
324
|
+
|
|
311
325
|
trigger_asset_address: string;
|
|
312
326
|
|
|
313
327
|
trigger_block_number: string;
|
|
@@ -316,8 +330,6 @@ export interface WalletAutomationExecutionResponse {
|
|
|
316
330
|
|
|
317
331
|
trigger_tx_hash: string;
|
|
318
332
|
|
|
319
|
-
triggered_at: string | null;
|
|
320
|
-
|
|
321
333
|
updated_at: string;
|
|
322
334
|
|
|
323
335
|
wallet_action_id: string | null;
|
|
@@ -328,7 +340,7 @@ export interface WalletAutomationExecutionResponse {
|
|
|
328
340
|
/**
|
|
329
341
|
* Execution lifecycle status.
|
|
330
342
|
*/
|
|
331
|
-
export type WalletAutomationExecutionStatus = 'pending' | '
|
|
343
|
+
export type WalletAutomationExecutionStatus = 'pending' | 'submitted' | 'completed' | 'failed' | 'skipped';
|
|
332
344
|
|
|
333
345
|
/**
|
|
334
346
|
* Paginated list of wallet automations.
|
|
@@ -339,6 +351,103 @@ export interface WalletAutomationListResponse {
|
|
|
339
351
|
next_cursor: string | null;
|
|
340
352
|
}
|
|
341
353
|
|
|
354
|
+
/**
|
|
355
|
+
* The outcome of checking one asset on the requested chain during a reindex.
|
|
356
|
+
*/
|
|
357
|
+
export interface WalletAutomationReindexAssetResult {
|
|
358
|
+
/**
|
|
359
|
+
* Asset contract address; the native asset uses `native`.
|
|
360
|
+
*/
|
|
361
|
+
asset_address: string;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* An EVM, Solana, or Tron CAIP-2 chain identifier supported by wallet automation
|
|
365
|
+
* reindex.
|
|
366
|
+
*/
|
|
367
|
+
caip2: WalletAutomationReindexCaip2;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* ID of the in-flight execution blocking a re-trigger. Populated only when
|
|
371
|
+
* `status` is `skipped_existing_execution`; `null` otherwise.
|
|
372
|
+
*/
|
|
373
|
+
existing_execution_id: string | null;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* On-chain balance in base units. Populated when `status` is `submitted` or
|
|
377
|
+
* `skipped_zero_balance`; `null` otherwise. For example, 1 OUSD is `1000000`.
|
|
378
|
+
*/
|
|
379
|
+
raw_balance: string | null;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Outcome of checking a single asset during a wallet automation reindex. One of
|
|
383
|
+
* `submitted`, `skipped_zero_balance`, `skipped_no_match`,
|
|
384
|
+
* `skipped_existing_execution`, or `failed`. `submitted` confirms that an
|
|
385
|
+
* execution was enqueued.
|
|
386
|
+
*/
|
|
387
|
+
status: WalletAutomationReindexAssetStatus;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Outcome of checking a single asset during a wallet automation reindex. One of
|
|
392
|
+
* `submitted`, `skipped_zero_balance`, `skipped_no_match`,
|
|
393
|
+
* `skipped_existing_execution`, or `failed`. `submitted` confirms that an
|
|
394
|
+
* execution was enqueued.
|
|
395
|
+
*/
|
|
396
|
+
export type WalletAutomationReindexAssetStatus = string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* An EVM, Solana, or Tron CAIP-2 chain identifier supported by wallet automation
|
|
400
|
+
* reindex.
|
|
401
|
+
*/
|
|
402
|
+
export type WalletAutomationReindexCaip2 = SharedAPI.EvmCaip2 | SharedAPI.TronCaip2;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Request body for re-checking a wallet against its wallet automations. Identify
|
|
406
|
+
* the wallet by wallet_id or deposit_address (at least one is required). If both
|
|
407
|
+
* are provided, wallet_id takes precedence and deposit_address must match that
|
|
408
|
+
* wallet's address. Specify exactly one of caip2 or chain, and the asset_address
|
|
409
|
+
* to check. Useful for recovering a deposit that was missed or failed to trigger
|
|
410
|
+
* its automation.
|
|
411
|
+
*/
|
|
412
|
+
export interface WalletAutomationReindexRequestBody {
|
|
413
|
+
/**
|
|
414
|
+
* Asset contract address to check; the native asset uses `native`.
|
|
415
|
+
*/
|
|
416
|
+
asset_address: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* An EVM, Solana, or Tron CAIP-2 chain identifier supported by wallet automation
|
|
420
|
+
* reindex.
|
|
421
|
+
*/
|
|
422
|
+
caip2?: WalletAutomationReindexCaip2;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Human-readable chain name to check. Specify exactly one of `caip2` or `chain`.
|
|
426
|
+
*/
|
|
427
|
+
chain?: string;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* On-chain deposit address of the wallet to reindex. Must match the resolved
|
|
431
|
+
* wallet's address if `wallet_id` is also provided.
|
|
432
|
+
*/
|
|
433
|
+
deposit_address?: string;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Privy wallet ID to reindex. Takes precedence over `deposit_address` when both
|
|
437
|
+
* are supplied.
|
|
438
|
+
*/
|
|
439
|
+
wallet_id?: string;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Result of re-checking a wallet against its wallet automations.
|
|
444
|
+
*/
|
|
445
|
+
export interface WalletAutomationReindexResponse {
|
|
446
|
+
results: Array<WalletAutomationReindexAssetResult>;
|
|
447
|
+
|
|
448
|
+
wallet_id: string;
|
|
449
|
+
}
|
|
450
|
+
|
|
342
451
|
/**
|
|
343
452
|
* A wallet automation.
|
|
344
453
|
*/
|
|
@@ -410,6 +519,11 @@ export declare namespace WalletAutomations {
|
|
|
410
519
|
type WalletAutomationExecutionResponse as WalletAutomationExecutionResponse,
|
|
411
520
|
type WalletAutomationExecutionStatus as WalletAutomationExecutionStatus,
|
|
412
521
|
type WalletAutomationListResponse as WalletAutomationListResponse,
|
|
522
|
+
type WalletAutomationReindexAssetResult as WalletAutomationReindexAssetResult,
|
|
523
|
+
type WalletAutomationReindexAssetStatus as WalletAutomationReindexAssetStatus,
|
|
524
|
+
type WalletAutomationReindexCaip2 as WalletAutomationReindexCaip2,
|
|
525
|
+
type WalletAutomationReindexRequestBody as WalletAutomationReindexRequestBody,
|
|
526
|
+
type WalletAutomationReindexResponse as WalletAutomationReindexResponse,
|
|
413
527
|
type WalletAutomationResponse as WalletAutomationResponse,
|
|
414
528
|
type WalletAutomationStatus as WalletAutomationStatus,
|
|
415
529
|
type WalletAutomationSuccessResponse as WalletAutomationSuccessResponse,
|
|
@@ -91,6 +91,14 @@ export interface CustodianTransactionWalletActionStep {
|
|
|
91
91
|
*/
|
|
92
92
|
status: CustodianTransactionWalletActionStepStatus;
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Identifier of the transaction the custodian last reported on the destination
|
|
96
|
+
* chain. Set on a settled transfer, and also on a failed one when the custodian
|
|
97
|
+
* had already broadcast a payout that was later returned. Null until the custodian
|
|
98
|
+
* reports one.
|
|
99
|
+
*/
|
|
100
|
+
transaction_hash: string | null;
|
|
101
|
+
|
|
94
102
|
type: 'custodian_transaction';
|
|
95
103
|
|
|
96
104
|
/**
|
|
@@ -143,6 +151,11 @@ export interface EvmTransactionWalletActionStep {
|
|
|
143
151
|
* confirmed.
|
|
144
152
|
*/
|
|
145
153
|
finalized?: boolean;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Amount charged in USD for gas sponsorship on this step.
|
|
157
|
+
*/
|
|
158
|
+
gas_credits_charged_usd?: string;
|
|
146
159
|
}
|
|
147
160
|
|
|
148
161
|
/**
|
|
@@ -617,6 +630,31 @@ export interface EarnIncetiveClaimRewardEntry {
|
|
|
617
630
|
token_decimals?: number;
|
|
618
631
|
}
|
|
619
632
|
|
|
633
|
+
/**
|
|
634
|
+
* An APY allocation within a vault position.
|
|
635
|
+
*/
|
|
636
|
+
export interface EarnPositionApyAllocation {
|
|
637
|
+
/**
|
|
638
|
+
* Net APY in basis points, rounded to the nearest integer.
|
|
639
|
+
*/
|
|
640
|
+
apy_bps: number;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Allocated assets in the smallest unit of the underlying asset.
|
|
644
|
+
*/
|
|
645
|
+
assets_in_vault: string;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Whether an APY allocation earns the base or boosted rate.
|
|
649
|
+
*/
|
|
650
|
+
type: EarnPositionApyType;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Whether an APY allocation earns the base or boosted rate.
|
|
655
|
+
*/
|
|
656
|
+
export type EarnPositionApyType = 'boost' | 'base';
|
|
657
|
+
|
|
620
658
|
/**
|
|
621
659
|
* Response for an earn withdraw action.
|
|
622
660
|
*/
|
|
@@ -784,6 +822,17 @@ export interface EthereumEarnPositionResponse {
|
|
|
784
822
|
* Total amount withdrawn from the vault, in smallest unit.
|
|
785
823
|
*/
|
|
786
824
|
total_withdrawn: string;
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Vault APY allocations by origin, returned together with apy_bps when available.
|
|
828
|
+
*/
|
|
829
|
+
apy_allocation?: Array<EarnPositionApyAllocation>;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Wallet-specific net APY in basis points, rounded to the nearest integer.
|
|
833
|
+
* Returned together with apy_allocation when available.
|
|
834
|
+
*/
|
|
835
|
+
apy_bps?: number;
|
|
787
836
|
}
|
|
788
837
|
|
|
789
838
|
/**
|
|
@@ -1102,9 +1151,8 @@ export interface SwapActionResponse {
|
|
|
1102
1151
|
wallet_id: string;
|
|
1103
1152
|
|
|
1104
1153
|
/**
|
|
1105
|
-
* Recipient address
|
|
1106
|
-
*
|
|
1107
|
-
* EVM to Solana).
|
|
1154
|
+
* Recipient address for the swap. Present for newly created swaps; may be absent
|
|
1155
|
+
* for older swap actions.
|
|
1108
1156
|
*/
|
|
1109
1157
|
destination_address?: string;
|
|
1110
1158
|
|
|
@@ -1519,6 +1567,8 @@ export declare namespace Actions {
|
|
|
1519
1567
|
type EarnIncentiveRewardsQuery as EarnIncentiveRewardsQuery,
|
|
1520
1568
|
type EarnIncentiveRewardsResponse as EarnIncentiveRewardsResponse,
|
|
1521
1569
|
type EarnIncetiveClaimRewardEntry as EarnIncetiveClaimRewardEntry,
|
|
1570
|
+
type EarnPositionApyAllocation as EarnPositionApyAllocation,
|
|
1571
|
+
type EarnPositionApyType as EarnPositionApyType,
|
|
1522
1572
|
type EarnWithdrawActionResponse as EarnWithdrawActionResponse,
|
|
1523
1573
|
type EarnWithdrawRequestBody as EarnWithdrawRequestBody,
|
|
1524
1574
|
type EthereumEarnPositionQuery as EthereumEarnPositionQuery,
|
|
@@ -111,6 +111,14 @@ export interface BalanceGetParams {
|
|
|
111
111
|
| 'tron'
|
|
112
112
|
| 'zksync_era'
|
|
113
113
|
| 'robinhood'
|
|
114
|
+
| 'unichain'
|
|
115
|
+
| 'worldchain'
|
|
116
|
+
| 'ink'
|
|
117
|
+
| 'soneium'
|
|
118
|
+
| 'megaeth'
|
|
119
|
+
| 'hyperevm'
|
|
120
|
+
| 'hypercore'
|
|
121
|
+
| 'arc'
|
|
114
122
|
| 'tempo_testnet'
|
|
115
123
|
| 'hoodi'
|
|
116
124
|
| 'sepolia'
|
|
@@ -125,6 +133,7 @@ export interface BalanceGetParams {
|
|
|
125
133
|
| 'solana_testnet'
|
|
126
134
|
| 'tron_nile'
|
|
127
135
|
| 'robinhood_testnet'
|
|
136
|
+
| 'ink_sepolia'
|
|
128
137
|
| string
|
|
129
138
|
| Array<WalletsAPI.WalletAssetChainNameInput>;
|
|
130
139
|
|
|
@@ -20,6 +20,8 @@ export {
|
|
|
20
20
|
type EarnIncentiveRewardsQuery,
|
|
21
21
|
type EarnIncentiveRewardsResponse,
|
|
22
22
|
type EarnIncetiveClaimRewardEntry,
|
|
23
|
+
type EarnPositionApyAllocation,
|
|
24
|
+
type EarnPositionApyType,
|
|
23
25
|
type EarnWithdrawActionResponse,
|
|
24
26
|
type EarnWithdrawRequestBody,
|
|
25
27
|
type EthereumEarnPositionQuery,
|
|
@@ -69,6 +71,7 @@ export {
|
|
|
69
71
|
type AptosSignTransactionRpcResponseData,
|
|
70
72
|
type AptosSignedTransactionBcsHex,
|
|
71
73
|
type AttachWalletAutomationRequestBody,
|
|
74
|
+
type AttachedWalletAutomation,
|
|
72
75
|
type AuthorizationKeyDashboardResponse,
|
|
73
76
|
type AuthorizationKeyResponse,
|
|
74
77
|
type AuthorizationKeyRole,
|
|
@@ -76,7 +79,13 @@ export {
|
|
|
76
79
|
type CreateCryptoDepositAccountResponse,
|
|
77
80
|
type CreateCryptoDepositAccountWithConfigRequestBody,
|
|
78
81
|
type CreateCryptoDepositAccountWithRouteRequestBody,
|
|
82
|
+
type CryptoDepositAccountCaip2,
|
|
83
|
+
type CryptoDepositAccountChain,
|
|
84
|
+
type CryptoDepositAccountConfigResponse,
|
|
85
|
+
type CryptoDepositAccountSourceChain,
|
|
86
|
+
type CryptoDepositAccountSourceCurrency,
|
|
79
87
|
type CryptoDepositAddressRoute,
|
|
88
|
+
type CryptoDepositAddressStrategy,
|
|
80
89
|
type CryptoDepositAsset,
|
|
81
90
|
type CryptoDepositAssetFilter,
|
|
82
91
|
type CryptoDepositAssetFilterAll,
|
|
@@ -85,10 +94,15 @@ export {
|
|
|
85
94
|
type CurveSigningChainType,
|
|
86
95
|
type CurveType,
|
|
87
96
|
type CustodialWallet,
|
|
97
|
+
type CustodialWalletChain,
|
|
88
98
|
type CustodialWalletChainType,
|
|
89
99
|
type CustodialWalletCreateInput,
|
|
90
100
|
type CustodialWalletProvider,
|
|
91
101
|
type CustomTokenTransferSource,
|
|
102
|
+
type DepositAccountCryptoQuoteAmount,
|
|
103
|
+
type DepositAccountCryptoQuoteAsset,
|
|
104
|
+
type DepositAccountCryptoQuoteRequestBody,
|
|
105
|
+
type DepositAccountCryptoQuoteResponse,
|
|
92
106
|
type DetachWalletAutomationRequestBody,
|
|
93
107
|
type DeveloperFee,
|
|
94
108
|
type EncryptedAuthorizationKey,
|
|
@@ -143,6 +157,8 @@ export {
|
|
|
143
157
|
type FirstClassChainType,
|
|
144
158
|
type Gas,
|
|
145
159
|
type GetByWalletAddressRequestBody,
|
|
160
|
+
type GetCryptoDepositAccountNextOrderResponse,
|
|
161
|
+
type GetCryptoDepositAccountOrderResponse,
|
|
146
162
|
type HDInitInput,
|
|
147
163
|
type HDPath,
|
|
148
164
|
type HDSubmitInput,
|
|
@@ -151,6 +167,7 @@ export {
|
|
|
151
167
|
type HpkeImportConfig,
|
|
152
168
|
type Hex,
|
|
153
169
|
type IntentBinding,
|
|
170
|
+
type ListCryptoDepositAccountsResponse,
|
|
154
171
|
type NamedTokenTransferSource,
|
|
155
172
|
type NearRpcRequestBody,
|
|
156
173
|
type NearRpcResponse,
|
|
@@ -268,10 +285,19 @@ export {
|
|
|
268
285
|
type TransactionChainNameInput,
|
|
269
286
|
type TransactionDetail,
|
|
270
287
|
type TransactionTokenAddressInput,
|
|
288
|
+
type TransferCustodyOptions,
|
|
289
|
+
type TransferInitiation,
|
|
290
|
+
type TransferInitiationAttestations,
|
|
291
|
+
type TransferInitiationChannel,
|
|
292
|
+
type TransferInitiationSubchannel,
|
|
271
293
|
type TransferQuoteRequestBody,
|
|
272
294
|
type TransferQuoteResponse,
|
|
273
295
|
type TransferReceivedTransactionDetail,
|
|
274
296
|
type TransferRequestBody,
|
|
297
|
+
type TransferScaAttestation,
|
|
298
|
+
type TransferScaAuthFactor,
|
|
299
|
+
type TransferScaAuthFactorCategory,
|
|
300
|
+
type TransferScaOutcome,
|
|
275
301
|
type TransferSentTransactionDetail,
|
|
276
302
|
type TronContract,
|
|
277
303
|
type TronRawDataForSend,
|