@privy-io/api-types 0.15.0 → 0.17.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 +141 -0
- package/client.d.mts +30 -33
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -33
- package/client.d.ts.map +1 -1
- package/client.js +9 -4
- package/client.js.map +1 -1
- package/client.mjs +9 -4
- 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 +32 -8
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +32 -8
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +6 -0
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +6 -0
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +15 -16
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -16
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -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 +208 -218
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +208 -218
- 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 +93 -24
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +93 -24
- 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/transactions.d.mts +9 -2
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +9 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +33 -7
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +33 -7
- package/resources/users.d.ts.map +1 -1
- package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +383 -68
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +383 -68
- package/resources/wallets/actions.d.ts.map +1 -0
- package/resources/wallets/actions.js +9 -0
- package/resources/wallets/actions.js.map +1 -0
- package/resources/wallets/actions.mjs +5 -0
- package/resources/wallets/actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +11 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js +3 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs +1 -0
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +14 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +14 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +846 -97
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +846 -97
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +19 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +19 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +596 -108
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +596 -108
- 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 +30 -30
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +30 -30
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.js.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/src/client.ts +223 -76
- 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 +41 -7
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +107 -36
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +560 -1065
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +162 -52
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +38 -6
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +496 -78
- package/src/resources/wallets/balance.ts +26 -56
- package/src/resources/wallets/index.ts +93 -0
- package/src/resources/wallets/transactions.ts +17 -10
- package/src/resources/wallets/wallets.ts +1312 -177
- package/src/resources/webhooks.ts +729 -118
- package/src/resources/yield.ts +33 -41
- 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/resources/wallet-actions.d.mts.map +0 -1
- package/resources/wallet-actions.d.ts.map +0 -1
- package/resources/wallet-actions.js +0 -9
- package/resources/wallet-actions.js.map +0 -1
- package/resources/wallet-actions.mjs +0 -5
- package/resources/wallet-actions.mjs.map +0 -1
package/resources/webhooks.d.mts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as AppsAPI from "./apps.mjs";
|
|
2
3
|
import * as IntentsAPI from "./intents.mjs";
|
|
3
4
|
import * as UsersAPI from "./users.mjs";
|
|
4
|
-
import * as
|
|
5
|
+
import * as ActionsAPI from "./wallets/actions.mjs";
|
|
5
6
|
import * as WalletsAPI from "./wallets/wallets.mjs";
|
|
6
7
|
export declare class Webhooks extends APIResource {
|
|
7
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Block metadata for a wallet transfer event.
|
|
11
|
+
*/
|
|
12
|
+
export interface BlockInfo {
|
|
13
|
+
/**
|
|
14
|
+
* The block number.
|
|
15
|
+
*/
|
|
16
|
+
number: number;
|
|
17
|
+
/**
|
|
18
|
+
* The block timestamp.
|
|
19
|
+
*/
|
|
20
|
+
timestamp: number;
|
|
21
|
+
}
|
|
8
22
|
/**
|
|
9
23
|
* Bridge metadata for a crypto deposit via liquidation address.
|
|
10
24
|
*/
|
|
@@ -101,7 +115,10 @@ export interface FundsDepositedWebhookPayload {
|
|
|
101
115
|
* An asset involved in a wallet transfer.
|
|
102
116
|
*/
|
|
103
117
|
asset: WalletFundsAsset;
|
|
104
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Block metadata for a wallet transfer event.
|
|
120
|
+
*/
|
|
121
|
+
block: BlockInfo;
|
|
105
122
|
/**
|
|
106
123
|
* The CAIP-2 chain identifier.
|
|
107
124
|
*/
|
|
@@ -139,18 +156,6 @@ export interface FundsDepositedWebhookPayload {
|
|
|
139
156
|
*/
|
|
140
157
|
transaction_fee?: string;
|
|
141
158
|
}
|
|
142
|
-
export declare namespace FundsDepositedWebhookPayload {
|
|
143
|
-
interface Block {
|
|
144
|
-
/**
|
|
145
|
-
* The block number.
|
|
146
|
-
*/
|
|
147
|
-
number: number;
|
|
148
|
-
/**
|
|
149
|
-
* The block timestamp.
|
|
150
|
-
*/
|
|
151
|
-
timestamp: number;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
159
|
/**
|
|
155
160
|
* Payload for the wallet.funds_withdrawn webhook event.
|
|
156
161
|
*/
|
|
@@ -163,7 +168,10 @@ export interface FundsWithdrawnWebhookPayload {
|
|
|
163
168
|
* An asset involved in a wallet transfer.
|
|
164
169
|
*/
|
|
165
170
|
asset: WalletFundsAsset;
|
|
166
|
-
|
|
171
|
+
/**
|
|
172
|
+
* Block metadata for a wallet transfer event.
|
|
173
|
+
*/
|
|
174
|
+
block: BlockInfo;
|
|
167
175
|
/**
|
|
168
176
|
* The CAIP-2 chain identifier.
|
|
169
177
|
*/
|
|
@@ -197,18 +205,6 @@ export interface FundsWithdrawnWebhookPayload {
|
|
|
197
205
|
*/
|
|
198
206
|
transaction_fee?: string;
|
|
199
207
|
}
|
|
200
|
-
export declare namespace FundsWithdrawnWebhookPayload {
|
|
201
|
-
interface Block {
|
|
202
|
-
/**
|
|
203
|
-
* The block number.
|
|
204
|
-
*/
|
|
205
|
-
number: number;
|
|
206
|
-
/**
|
|
207
|
-
* The block timestamp.
|
|
208
|
-
*/
|
|
209
|
-
timestamp: number;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
208
|
/**
|
|
213
209
|
* Payload for the intent.authorized webhook event.
|
|
214
210
|
*/
|
|
@@ -620,9 +616,9 @@ export interface KrakenEmbedUserVerifiedWebhookPayload {
|
|
|
620
616
|
*/
|
|
621
617
|
export interface MfaDisabledWebhookPayload {
|
|
622
618
|
/**
|
|
623
|
-
*
|
|
619
|
+
* A multi-factor authentication method supported by the app.
|
|
624
620
|
*/
|
|
625
|
-
method:
|
|
621
|
+
method: AppsAPI.MfaMethod;
|
|
626
622
|
/**
|
|
627
623
|
* The type of webhook event.
|
|
628
624
|
*/
|
|
@@ -637,9 +633,9 @@ export interface MfaDisabledWebhookPayload {
|
|
|
637
633
|
*/
|
|
638
634
|
export interface MfaEnabledWebhookPayload {
|
|
639
635
|
/**
|
|
640
|
-
*
|
|
636
|
+
* A multi-factor authentication method supported by the app.
|
|
641
637
|
*/
|
|
642
|
-
method:
|
|
638
|
+
method: AppsAPI.MfaMethod;
|
|
643
639
|
/**
|
|
644
640
|
* The type of webhook event.
|
|
645
641
|
*/
|
|
@@ -669,7 +665,11 @@ export interface PrivateKeyExportWebhookPayload {
|
|
|
669
665
|
* The ID of the wallet.
|
|
670
666
|
*/
|
|
671
667
|
wallet_id: string;
|
|
672
|
-
|
|
668
|
+
/**
|
|
669
|
+
* The export type. 'display' is for showing the key to the user in the UI,
|
|
670
|
+
* 'client' is for exporting to the client application.
|
|
671
|
+
*/
|
|
672
|
+
export_source?: WalletsAPI.ExportType;
|
|
673
673
|
}
|
|
674
674
|
/**
|
|
675
675
|
* Payload for the wallet.seed_phrase_export webhook event.
|
|
@@ -691,7 +691,11 @@ export interface SeedPhraseExportWebhookPayload {
|
|
|
691
691
|
* The ID of the wallet.
|
|
692
692
|
*/
|
|
693
693
|
wallet_id: string;
|
|
694
|
-
|
|
694
|
+
/**
|
|
695
|
+
* The export type. 'display' is for showing the key to the user in the UI,
|
|
696
|
+
* 'client' is for exporting to the client application.
|
|
697
|
+
*/
|
|
698
|
+
export_source?: WalletsAPI.ExportType;
|
|
695
699
|
}
|
|
696
700
|
/**
|
|
697
701
|
* Payload for the transaction.broadcasted webhook event.
|
|
@@ -975,6 +979,12 @@ export interface UserOperationCompletedWebhookPayload {
|
|
|
975
979
|
type: 'user_operation.completed';
|
|
976
980
|
user_op_hash: string;
|
|
977
981
|
}
|
|
982
|
+
/**
|
|
983
|
+
* A reference to a user by their unique identifier.
|
|
984
|
+
*/
|
|
985
|
+
export interface UserReference {
|
|
986
|
+
id: string;
|
|
987
|
+
}
|
|
978
988
|
/**
|
|
979
989
|
* Payload for the user.transferred_account webhook event.
|
|
980
990
|
*/
|
|
@@ -984,7 +994,10 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
984
994
|
*/
|
|
985
995
|
account: UsersAPI.LinkedAccount;
|
|
986
996
|
deletedUser: true;
|
|
987
|
-
|
|
997
|
+
/**
|
|
998
|
+
* A reference to a user by their unique identifier.
|
|
999
|
+
*/
|
|
1000
|
+
fromUser: UserReference;
|
|
988
1001
|
/**
|
|
989
1002
|
* A Privy user object.
|
|
990
1003
|
*/
|
|
@@ -994,11 +1007,6 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
994
1007
|
*/
|
|
995
1008
|
type: 'user.transferred_account';
|
|
996
1009
|
}
|
|
997
|
-
export declare namespace UserTransferredAccountWebhookPayload {
|
|
998
|
-
interface FromUser {
|
|
999
|
-
id: string;
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
1010
|
/**
|
|
1003
1011
|
* Payload for the user.unlinked_account webhook event.
|
|
1004
1012
|
*/
|
|
@@ -1057,7 +1065,7 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1057
1065
|
/**
|
|
1058
1066
|
* Type of wallet action
|
|
1059
1067
|
*/
|
|
1060
|
-
action_type:
|
|
1068
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1061
1069
|
/**
|
|
1062
1070
|
* Underlying asset token address.
|
|
1063
1071
|
*/
|
|
@@ -1066,6 +1074,10 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1066
1074
|
* CAIP-2 chain identifier.
|
|
1067
1075
|
*/
|
|
1068
1076
|
caip2: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1079
|
+
*/
|
|
1080
|
+
created_at: string;
|
|
1069
1081
|
/**
|
|
1070
1082
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1071
1083
|
*/
|
|
@@ -1117,7 +1129,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1117
1129
|
/**
|
|
1118
1130
|
* Type of wallet action
|
|
1119
1131
|
*/
|
|
1120
|
-
action_type:
|
|
1132
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1121
1133
|
/**
|
|
1122
1134
|
* Underlying asset token address.
|
|
1123
1135
|
*/
|
|
@@ -1126,10 +1138,18 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1126
1138
|
* CAIP-2 chain identifier.
|
|
1127
1139
|
*/
|
|
1128
1140
|
caip2: string;
|
|
1141
|
+
/**
|
|
1142
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1143
|
+
*/
|
|
1144
|
+
created_at: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1147
|
+
*/
|
|
1148
|
+
failed_at: string;
|
|
1129
1149
|
/**
|
|
1130
1150
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1131
1151
|
*/
|
|
1132
|
-
failure_reason:
|
|
1152
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1133
1153
|
/**
|
|
1134
1154
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1135
1155
|
*/
|
|
@@ -1142,7 +1162,7 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1142
1162
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1143
1163
|
* the failing step will have a failure_reason.
|
|
1144
1164
|
*/
|
|
1145
|
-
steps: Array<
|
|
1165
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1146
1166
|
/**
|
|
1147
1167
|
* The type of webhook event.
|
|
1148
1168
|
*/
|
|
@@ -1186,7 +1206,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1186
1206
|
/**
|
|
1187
1207
|
* Type of wallet action
|
|
1188
1208
|
*/
|
|
1189
|
-
action_type:
|
|
1209
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1190
1210
|
/**
|
|
1191
1211
|
* Underlying asset token address.
|
|
1192
1212
|
*/
|
|
@@ -1195,14 +1215,22 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1195
1215
|
* CAIP-2 chain identifier.
|
|
1196
1216
|
*/
|
|
1197
1217
|
caip2: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1220
|
+
*/
|
|
1221
|
+
created_at: string;
|
|
1198
1222
|
/**
|
|
1199
1223
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1200
1224
|
*/
|
|
1201
|
-
failure_reason:
|
|
1225
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1202
1226
|
/**
|
|
1203
1227
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1204
1228
|
*/
|
|
1205
1229
|
raw_amount: string;
|
|
1230
|
+
/**
|
|
1231
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1232
|
+
*/
|
|
1233
|
+
rejected_at: string;
|
|
1206
1234
|
/**
|
|
1207
1235
|
* The status of the wallet action.
|
|
1208
1236
|
*/
|
|
@@ -1210,7 +1238,7 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1210
1238
|
/**
|
|
1211
1239
|
* The steps of the wallet action at the time of rejection.
|
|
1212
1240
|
*/
|
|
1213
|
-
steps: Array<
|
|
1241
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1214
1242
|
/**
|
|
1215
1243
|
* The type of webhook event.
|
|
1216
1244
|
*/
|
|
@@ -1254,7 +1282,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1254
1282
|
/**
|
|
1255
1283
|
* Type of wallet action
|
|
1256
1284
|
*/
|
|
1257
|
-
action_type:
|
|
1285
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1258
1286
|
/**
|
|
1259
1287
|
* Underlying asset token address.
|
|
1260
1288
|
*/
|
|
@@ -1263,6 +1291,14 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1263
1291
|
* CAIP-2 chain identifier.
|
|
1264
1292
|
*/
|
|
1265
1293
|
caip2: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1296
|
+
*/
|
|
1297
|
+
completed_at: string;
|
|
1298
|
+
/**
|
|
1299
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1300
|
+
*/
|
|
1301
|
+
created_at: string;
|
|
1266
1302
|
/**
|
|
1267
1303
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1268
1304
|
*/
|
|
@@ -1278,7 +1314,7 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1278
1314
|
/**
|
|
1279
1315
|
* The steps of the wallet action, including transaction hashes.
|
|
1280
1316
|
*/
|
|
1281
|
-
steps: Array<
|
|
1317
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1282
1318
|
/**
|
|
1283
1319
|
* The type of webhook event.
|
|
1284
1320
|
*/
|
|
@@ -1315,6 +1351,295 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1315
1351
|
*/
|
|
1316
1352
|
decimals?: number;
|
|
1317
1353
|
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Payload for the wallet_action.earn_fee_collect.created webhook event.
|
|
1356
|
+
*/
|
|
1357
|
+
export interface WalletActionEarnFeeCollectCreatedWebhookPayload {
|
|
1358
|
+
/**
|
|
1359
|
+
* Type of wallet action
|
|
1360
|
+
*/
|
|
1361
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1362
|
+
/**
|
|
1363
|
+
* Underlying asset token address.
|
|
1364
|
+
*/
|
|
1365
|
+
asset_address: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* CAIP-2 chain identifier.
|
|
1368
|
+
*/
|
|
1369
|
+
caip2: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1372
|
+
*/
|
|
1373
|
+
created_at: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1376
|
+
*/
|
|
1377
|
+
raw_amount: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* The status of the wallet action.
|
|
1380
|
+
*/
|
|
1381
|
+
status: 'pending';
|
|
1382
|
+
/**
|
|
1383
|
+
* The type of webhook event.
|
|
1384
|
+
*/
|
|
1385
|
+
type: 'wallet_action.earn_fee_collect.created';
|
|
1386
|
+
/**
|
|
1387
|
+
* ERC-4626 vault contract address.
|
|
1388
|
+
*/
|
|
1389
|
+
vault_address: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* The vault ID.
|
|
1392
|
+
*/
|
|
1393
|
+
vault_id: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* The ID of the wallet action.
|
|
1396
|
+
*/
|
|
1397
|
+
wallet_action_id: string;
|
|
1398
|
+
/**
|
|
1399
|
+
* The ID of the wallet involved in the action.
|
|
1400
|
+
*/
|
|
1401
|
+
wallet_id: string;
|
|
1402
|
+
/**
|
|
1403
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1404
|
+
* the token is known in the asset registry.
|
|
1405
|
+
*/
|
|
1406
|
+
amount?: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1409
|
+
* the asset registry.
|
|
1410
|
+
*/
|
|
1411
|
+
asset?: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1414
|
+
* present when the token is known in the asset registry.
|
|
1415
|
+
*/
|
|
1416
|
+
decimals?: number;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* Payload for the wallet_action.earn_fee_collect.failed webhook event.
|
|
1420
|
+
*/
|
|
1421
|
+
export interface WalletActionEarnFeeCollectFailedWebhookPayload {
|
|
1422
|
+
/**
|
|
1423
|
+
* Type of wallet action
|
|
1424
|
+
*/
|
|
1425
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1426
|
+
/**
|
|
1427
|
+
* Underlying asset token address.
|
|
1428
|
+
*/
|
|
1429
|
+
asset_address: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* CAIP-2 chain identifier.
|
|
1432
|
+
*/
|
|
1433
|
+
caip2: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1436
|
+
*/
|
|
1437
|
+
created_at: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1440
|
+
*/
|
|
1441
|
+
failed_at: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1444
|
+
*/
|
|
1445
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1446
|
+
/**
|
|
1447
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1448
|
+
*/
|
|
1449
|
+
raw_amount: string;
|
|
1450
|
+
/**
|
|
1451
|
+
* The status of the wallet action.
|
|
1452
|
+
*/
|
|
1453
|
+
status: 'failed';
|
|
1454
|
+
/**
|
|
1455
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1456
|
+
* the failing step will have a failure_reason.
|
|
1457
|
+
*/
|
|
1458
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1459
|
+
/**
|
|
1460
|
+
* The type of webhook event.
|
|
1461
|
+
*/
|
|
1462
|
+
type: 'wallet_action.earn_fee_collect.failed';
|
|
1463
|
+
/**
|
|
1464
|
+
* ERC-4626 vault contract address.
|
|
1465
|
+
*/
|
|
1466
|
+
vault_address: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* The vault ID.
|
|
1469
|
+
*/
|
|
1470
|
+
vault_id: string;
|
|
1471
|
+
/**
|
|
1472
|
+
* The ID of the wallet action.
|
|
1473
|
+
*/
|
|
1474
|
+
wallet_action_id: string;
|
|
1475
|
+
/**
|
|
1476
|
+
* The ID of the wallet involved in the action.
|
|
1477
|
+
*/
|
|
1478
|
+
wallet_id: string;
|
|
1479
|
+
/**
|
|
1480
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1481
|
+
* the token is known in the asset registry.
|
|
1482
|
+
*/
|
|
1483
|
+
amount?: string;
|
|
1484
|
+
/**
|
|
1485
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1486
|
+
* the asset registry.
|
|
1487
|
+
*/
|
|
1488
|
+
asset?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1491
|
+
* present when the token is known in the asset registry.
|
|
1492
|
+
*/
|
|
1493
|
+
decimals?: number;
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Payload for the wallet_action.earn_fee_collect.rejected webhook event.
|
|
1497
|
+
*/
|
|
1498
|
+
export interface WalletActionEarnFeeCollectRejectedWebhookPayload {
|
|
1499
|
+
/**
|
|
1500
|
+
* Type of wallet action
|
|
1501
|
+
*/
|
|
1502
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1503
|
+
/**
|
|
1504
|
+
* Underlying asset token address.
|
|
1505
|
+
*/
|
|
1506
|
+
asset_address: string;
|
|
1507
|
+
/**
|
|
1508
|
+
* CAIP-2 chain identifier.
|
|
1509
|
+
*/
|
|
1510
|
+
caip2: string;
|
|
1511
|
+
/**
|
|
1512
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1513
|
+
*/
|
|
1514
|
+
created_at: string;
|
|
1515
|
+
/**
|
|
1516
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1517
|
+
*/
|
|
1518
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1519
|
+
/**
|
|
1520
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1521
|
+
*/
|
|
1522
|
+
raw_amount: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1525
|
+
*/
|
|
1526
|
+
rejected_at: string;
|
|
1527
|
+
/**
|
|
1528
|
+
* The status of the wallet action.
|
|
1529
|
+
*/
|
|
1530
|
+
status: 'rejected';
|
|
1531
|
+
/**
|
|
1532
|
+
* The steps of the wallet action at the time of rejection.
|
|
1533
|
+
*/
|
|
1534
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1535
|
+
/**
|
|
1536
|
+
* The type of webhook event.
|
|
1537
|
+
*/
|
|
1538
|
+
type: 'wallet_action.earn_fee_collect.rejected';
|
|
1539
|
+
/**
|
|
1540
|
+
* ERC-4626 vault contract address.
|
|
1541
|
+
*/
|
|
1542
|
+
vault_address: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* The vault ID.
|
|
1545
|
+
*/
|
|
1546
|
+
vault_id: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* The ID of the wallet action.
|
|
1549
|
+
*/
|
|
1550
|
+
wallet_action_id: string;
|
|
1551
|
+
/**
|
|
1552
|
+
* The ID of the wallet involved in the action.
|
|
1553
|
+
*/
|
|
1554
|
+
wallet_id: string;
|
|
1555
|
+
/**
|
|
1556
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1557
|
+
* the token is known in the asset registry.
|
|
1558
|
+
*/
|
|
1559
|
+
amount?: string;
|
|
1560
|
+
/**
|
|
1561
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1562
|
+
* the asset registry.
|
|
1563
|
+
*/
|
|
1564
|
+
asset?: string;
|
|
1565
|
+
/**
|
|
1566
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1567
|
+
* present when the token is known in the asset registry.
|
|
1568
|
+
*/
|
|
1569
|
+
decimals?: number;
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Payload for the wallet_action.earn_fee_collect.succeeded webhook event.
|
|
1573
|
+
*/
|
|
1574
|
+
export interface WalletActionEarnFeeCollectSucceededWebhookPayload {
|
|
1575
|
+
/**
|
|
1576
|
+
* Type of wallet action
|
|
1577
|
+
*/
|
|
1578
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1579
|
+
/**
|
|
1580
|
+
* Underlying asset token address.
|
|
1581
|
+
*/
|
|
1582
|
+
asset_address: string;
|
|
1583
|
+
/**
|
|
1584
|
+
* CAIP-2 chain identifier.
|
|
1585
|
+
*/
|
|
1586
|
+
caip2: string;
|
|
1587
|
+
/**
|
|
1588
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1589
|
+
*/
|
|
1590
|
+
completed_at: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1593
|
+
*/
|
|
1594
|
+
created_at: string;
|
|
1595
|
+
/**
|
|
1596
|
+
* Base-unit amount of fees collected (e.g. "1500000").
|
|
1597
|
+
*/
|
|
1598
|
+
raw_amount: string;
|
|
1599
|
+
/**
|
|
1600
|
+
* The status of the wallet action.
|
|
1601
|
+
*/
|
|
1602
|
+
status: 'succeeded';
|
|
1603
|
+
/**
|
|
1604
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1605
|
+
*/
|
|
1606
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1607
|
+
/**
|
|
1608
|
+
* The type of webhook event.
|
|
1609
|
+
*/
|
|
1610
|
+
type: 'wallet_action.earn_fee_collect.succeeded';
|
|
1611
|
+
/**
|
|
1612
|
+
* ERC-4626 vault contract address.
|
|
1613
|
+
*/
|
|
1614
|
+
vault_address: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* The vault ID.
|
|
1617
|
+
*/
|
|
1618
|
+
vault_id: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* The ID of the wallet action.
|
|
1621
|
+
*/
|
|
1622
|
+
wallet_action_id: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* The ID of the wallet involved in the action.
|
|
1625
|
+
*/
|
|
1626
|
+
wallet_id: string;
|
|
1627
|
+
/**
|
|
1628
|
+
* Human-readable decimal amount of fees collected (e.g. "1.5"). Only present when
|
|
1629
|
+
* the token is known in the asset registry.
|
|
1630
|
+
*/
|
|
1631
|
+
amount?: string;
|
|
1632
|
+
/**
|
|
1633
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1634
|
+
* the asset registry.
|
|
1635
|
+
*/
|
|
1636
|
+
asset?: string;
|
|
1637
|
+
/**
|
|
1638
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1639
|
+
* present when the token is known in the asset registry.
|
|
1640
|
+
*/
|
|
1641
|
+
decimals?: number;
|
|
1642
|
+
}
|
|
1318
1643
|
/**
|
|
1319
1644
|
* Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
1320
1645
|
*/
|
|
@@ -1322,15 +1647,19 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1322
1647
|
/**
|
|
1323
1648
|
* Type of wallet action
|
|
1324
1649
|
*/
|
|
1325
|
-
action_type:
|
|
1650
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1326
1651
|
/**
|
|
1327
1652
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1328
1653
|
*/
|
|
1329
1654
|
chain: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1657
|
+
*/
|
|
1658
|
+
created_at: string;
|
|
1330
1659
|
/**
|
|
1331
1660
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1332
1661
|
*/
|
|
1333
|
-
rewards: Array<
|
|
1662
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1334
1663
|
/**
|
|
1335
1664
|
* The status of the wallet action.
|
|
1336
1665
|
*/
|
|
@@ -1355,19 +1684,27 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1355
1684
|
/**
|
|
1356
1685
|
* Type of wallet action
|
|
1357
1686
|
*/
|
|
1358
|
-
action_type:
|
|
1687
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1359
1688
|
/**
|
|
1360
1689
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1361
1690
|
*/
|
|
1362
1691
|
chain: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1694
|
+
*/
|
|
1695
|
+
created_at: string;
|
|
1696
|
+
/**
|
|
1697
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1698
|
+
*/
|
|
1699
|
+
failed_at: string;
|
|
1363
1700
|
/**
|
|
1364
1701
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1365
1702
|
*/
|
|
1366
|
-
failure_reason:
|
|
1703
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1367
1704
|
/**
|
|
1368
1705
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1369
1706
|
*/
|
|
1370
|
-
rewards: Array<
|
|
1707
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1371
1708
|
/**
|
|
1372
1709
|
* The status of the wallet action.
|
|
1373
1710
|
*/
|
|
@@ -1376,7 +1713,7 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1376
1713
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1377
1714
|
* the failing step will have a failure_reason.
|
|
1378
1715
|
*/
|
|
1379
|
-
steps: Array<
|
|
1716
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1380
1717
|
/**
|
|
1381
1718
|
* The type of webhook event.
|
|
1382
1719
|
*/
|
|
@@ -1397,19 +1734,27 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1397
1734
|
/**
|
|
1398
1735
|
* Type of wallet action
|
|
1399
1736
|
*/
|
|
1400
|
-
action_type:
|
|
1737
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1401
1738
|
/**
|
|
1402
1739
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1403
1740
|
*/
|
|
1404
1741
|
chain: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1744
|
+
*/
|
|
1745
|
+
created_at: string;
|
|
1405
1746
|
/**
|
|
1406
1747
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1407
1748
|
*/
|
|
1408
|
-
failure_reason:
|
|
1749
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1750
|
+
/**
|
|
1751
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1752
|
+
*/
|
|
1753
|
+
rejected_at: string;
|
|
1409
1754
|
/**
|
|
1410
1755
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1411
1756
|
*/
|
|
1412
|
-
rewards: Array<
|
|
1757
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1413
1758
|
/**
|
|
1414
1759
|
* The status of the wallet action.
|
|
1415
1760
|
*/
|
|
@@ -1417,7 +1762,7 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1417
1762
|
/**
|
|
1418
1763
|
* The steps of the wallet action at the time of rejection.
|
|
1419
1764
|
*/
|
|
1420
|
-
steps: Array<
|
|
1765
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1421
1766
|
/**
|
|
1422
1767
|
* The type of webhook event.
|
|
1423
1768
|
*/
|
|
@@ -1438,15 +1783,23 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1438
1783
|
/**
|
|
1439
1784
|
* Type of wallet action
|
|
1440
1785
|
*/
|
|
1441
|
-
action_type:
|
|
1786
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1442
1787
|
/**
|
|
1443
1788
|
* EVM chain name (e.g. "base", "ethereum").
|
|
1444
1789
|
*/
|
|
1445
1790
|
chain: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1793
|
+
*/
|
|
1794
|
+
completed_at: string;
|
|
1795
|
+
/**
|
|
1796
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1797
|
+
*/
|
|
1798
|
+
created_at: string;
|
|
1446
1799
|
/**
|
|
1447
1800
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1448
1801
|
*/
|
|
1449
|
-
rewards: Array<
|
|
1802
|
+
rewards: Array<ActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
1450
1803
|
/**
|
|
1451
1804
|
* The status of the wallet action.
|
|
1452
1805
|
*/
|
|
@@ -1454,7 +1807,7 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1454
1807
|
/**
|
|
1455
1808
|
* The steps of the wallet action, including transaction hashes.
|
|
1456
1809
|
*/
|
|
1457
|
-
steps: Array<
|
|
1810
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1458
1811
|
/**
|
|
1459
1812
|
* The type of webhook event.
|
|
1460
1813
|
*/
|
|
@@ -1475,7 +1828,7 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1475
1828
|
/**
|
|
1476
1829
|
* Type of wallet action
|
|
1477
1830
|
*/
|
|
1478
|
-
action_type:
|
|
1831
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1479
1832
|
/**
|
|
1480
1833
|
* Underlying asset token address.
|
|
1481
1834
|
*/
|
|
@@ -1484,6 +1837,10 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1484
1837
|
* CAIP-2 chain identifier.
|
|
1485
1838
|
*/
|
|
1486
1839
|
caip2: string;
|
|
1840
|
+
/**
|
|
1841
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1842
|
+
*/
|
|
1843
|
+
created_at: string;
|
|
1487
1844
|
/**
|
|
1488
1845
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1489
1846
|
*/
|
|
@@ -1535,7 +1892,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1535
1892
|
/**
|
|
1536
1893
|
* Type of wallet action
|
|
1537
1894
|
*/
|
|
1538
|
-
action_type:
|
|
1895
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1539
1896
|
/**
|
|
1540
1897
|
* Underlying asset token address.
|
|
1541
1898
|
*/
|
|
@@ -1544,10 +1901,18 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1544
1901
|
* CAIP-2 chain identifier.
|
|
1545
1902
|
*/
|
|
1546
1903
|
caip2: string;
|
|
1904
|
+
/**
|
|
1905
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1906
|
+
*/
|
|
1907
|
+
created_at: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1910
|
+
*/
|
|
1911
|
+
failed_at: string;
|
|
1547
1912
|
/**
|
|
1548
1913
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1549
1914
|
*/
|
|
1550
|
-
failure_reason:
|
|
1915
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1551
1916
|
/**
|
|
1552
1917
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1553
1918
|
*/
|
|
@@ -1560,7 +1925,7 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1560
1925
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1561
1926
|
* the failing step will have a failure_reason.
|
|
1562
1927
|
*/
|
|
1563
|
-
steps: Array<
|
|
1928
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1564
1929
|
/**
|
|
1565
1930
|
* The type of webhook event.
|
|
1566
1931
|
*/
|
|
@@ -1604,7 +1969,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1604
1969
|
/**
|
|
1605
1970
|
* Type of wallet action
|
|
1606
1971
|
*/
|
|
1607
|
-
action_type:
|
|
1972
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1608
1973
|
/**
|
|
1609
1974
|
* Underlying asset token address.
|
|
1610
1975
|
*/
|
|
@@ -1613,14 +1978,22 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1613
1978
|
* CAIP-2 chain identifier.
|
|
1614
1979
|
*/
|
|
1615
1980
|
caip2: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1983
|
+
*/
|
|
1984
|
+
created_at: string;
|
|
1616
1985
|
/**
|
|
1617
1986
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1618
1987
|
*/
|
|
1619
|
-
failure_reason:
|
|
1988
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1620
1989
|
/**
|
|
1621
1990
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1622
1991
|
*/
|
|
1623
1992
|
raw_amount: string;
|
|
1993
|
+
/**
|
|
1994
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1995
|
+
*/
|
|
1996
|
+
rejected_at: string;
|
|
1624
1997
|
/**
|
|
1625
1998
|
* The status of the wallet action.
|
|
1626
1999
|
*/
|
|
@@ -1628,7 +2001,7 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1628
2001
|
/**
|
|
1629
2002
|
* The steps of the wallet action at the time of rejection.
|
|
1630
2003
|
*/
|
|
1631
|
-
steps: Array<
|
|
2004
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1632
2005
|
/**
|
|
1633
2006
|
* The type of webhook event.
|
|
1634
2007
|
*/
|
|
@@ -1672,7 +2045,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
1672
2045
|
/**
|
|
1673
2046
|
* Type of wallet action
|
|
1674
2047
|
*/
|
|
1675
|
-
action_type:
|
|
2048
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1676
2049
|
/**
|
|
1677
2050
|
* Underlying asset token address.
|
|
1678
2051
|
*/
|
|
@@ -1681,6 +2054,14 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
1681
2054
|
* CAIP-2 chain identifier.
|
|
1682
2055
|
*/
|
|
1683
2056
|
caip2: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2059
|
+
*/
|
|
2060
|
+
completed_at: string;
|
|
2061
|
+
/**
|
|
2062
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2063
|
+
*/
|
|
2064
|
+
created_at: string;
|
|
1684
2065
|
/**
|
|
1685
2066
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1686
2067
|
*/
|
|
@@ -1696,7 +2077,7 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
1696
2077
|
/**
|
|
1697
2078
|
* The steps of the wallet action, including transaction hashes.
|
|
1698
2079
|
*/
|
|
1699
|
-
steps: Array<
|
|
2080
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1700
2081
|
/**
|
|
1701
2082
|
* The type of webhook event.
|
|
1702
2083
|
*/
|
|
@@ -1740,13 +2121,17 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
1740
2121
|
/**
|
|
1741
2122
|
* Type of wallet action
|
|
1742
2123
|
*/
|
|
1743
|
-
action_type:
|
|
2124
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1744
2125
|
/**
|
|
1745
2126
|
* Chain identifier.
|
|
1746
2127
|
*/
|
|
1747
2128
|
caip2: string;
|
|
1748
2129
|
/**
|
|
1749
|
-
*
|
|
2130
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2131
|
+
*/
|
|
2132
|
+
created_at: string;
|
|
2133
|
+
/**
|
|
2134
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
1750
2135
|
*/
|
|
1751
2136
|
input_amount: string | null;
|
|
1752
2137
|
/**
|
|
@@ -1781,17 +2166,25 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
1781
2166
|
/**
|
|
1782
2167
|
* Type of wallet action
|
|
1783
2168
|
*/
|
|
1784
|
-
action_type:
|
|
2169
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1785
2170
|
/**
|
|
1786
2171
|
* Chain identifier.
|
|
1787
2172
|
*/
|
|
1788
2173
|
caip2: string;
|
|
2174
|
+
/**
|
|
2175
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2176
|
+
*/
|
|
2177
|
+
created_at: string;
|
|
2178
|
+
/**
|
|
2179
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2180
|
+
*/
|
|
2181
|
+
failed_at: string;
|
|
1789
2182
|
/**
|
|
1790
2183
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1791
2184
|
*/
|
|
1792
|
-
failure_reason:
|
|
2185
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1793
2186
|
/**
|
|
1794
|
-
* Amount of input token in base units. Populated after
|
|
2187
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
1795
2188
|
*/
|
|
1796
2189
|
input_amount: string | null;
|
|
1797
2190
|
/**
|
|
@@ -1810,7 +2203,7 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
1810
2203
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1811
2204
|
* the failing step will have a failure_reason.
|
|
1812
2205
|
*/
|
|
1813
|
-
steps: Array<
|
|
2206
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1814
2207
|
/**
|
|
1815
2208
|
* The type of webhook event.
|
|
1816
2209
|
*/
|
|
@@ -1831,17 +2224,21 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
1831
2224
|
/**
|
|
1832
2225
|
* Type of wallet action
|
|
1833
2226
|
*/
|
|
1834
|
-
action_type:
|
|
2227
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1835
2228
|
/**
|
|
1836
2229
|
* Chain identifier.
|
|
1837
2230
|
*/
|
|
1838
2231
|
caip2: string;
|
|
2232
|
+
/**
|
|
2233
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2234
|
+
*/
|
|
2235
|
+
created_at: string;
|
|
1839
2236
|
/**
|
|
1840
2237
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1841
2238
|
*/
|
|
1842
|
-
failure_reason:
|
|
2239
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1843
2240
|
/**
|
|
1844
|
-
* Amount of input token in base units. Populated after
|
|
2241
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
1845
2242
|
*/
|
|
1846
2243
|
input_amount: string | null;
|
|
1847
2244
|
/**
|
|
@@ -1852,6 +2249,10 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
1852
2249
|
* Token address being bought.
|
|
1853
2250
|
*/
|
|
1854
2251
|
output_token: string;
|
|
2252
|
+
/**
|
|
2253
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2254
|
+
*/
|
|
2255
|
+
rejected_at: string;
|
|
1855
2256
|
/**
|
|
1856
2257
|
* The status of the wallet action.
|
|
1857
2258
|
*/
|
|
@@ -1859,7 +2260,7 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
1859
2260
|
/**
|
|
1860
2261
|
* The steps of the wallet action at the time of rejection.
|
|
1861
2262
|
*/
|
|
1862
|
-
steps: Array<
|
|
2263
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1863
2264
|
/**
|
|
1864
2265
|
* The type of webhook event.
|
|
1865
2266
|
*/
|
|
@@ -1880,13 +2281,21 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
1880
2281
|
/**
|
|
1881
2282
|
* Type of wallet action
|
|
1882
2283
|
*/
|
|
1883
|
-
action_type:
|
|
2284
|
+
action_type: ActionsAPI.WalletActionType;
|
|
1884
2285
|
/**
|
|
1885
2286
|
* Chain identifier.
|
|
1886
2287
|
*/
|
|
1887
2288
|
caip2: string;
|
|
1888
2289
|
/**
|
|
1889
|
-
*
|
|
2290
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2291
|
+
*/
|
|
2292
|
+
completed_at: string;
|
|
2293
|
+
/**
|
|
2294
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2295
|
+
*/
|
|
2296
|
+
created_at: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
1890
2299
|
*/
|
|
1891
2300
|
input_amount: string | null;
|
|
1892
2301
|
/**
|
|
@@ -1894,7 +2303,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
1894
2303
|
*/
|
|
1895
2304
|
input_token: string;
|
|
1896
2305
|
/**
|
|
1897
|
-
* Amount of output token received, in base units. Populated after
|
|
2306
|
+
* Amount of output token received, in base units. Populated after onchain
|
|
1898
2307
|
* confirmation.
|
|
1899
2308
|
*/
|
|
1900
2309
|
output_amount: string | null;
|
|
@@ -1909,7 +2318,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
1909
2318
|
/**
|
|
1910
2319
|
* The steps of the wallet action, including transaction hashes.
|
|
1911
2320
|
*/
|
|
1912
|
-
steps: Array<
|
|
2321
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
1913
2322
|
/**
|
|
1914
2323
|
* The type of webhook event.
|
|
1915
2324
|
*/
|
|
@@ -1930,7 +2339,11 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
1930
2339
|
/**
|
|
1931
2340
|
* Type of wallet action
|
|
1932
2341
|
*/
|
|
1933
|
-
action_type:
|
|
2342
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2343
|
+
/**
|
|
2344
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2345
|
+
*/
|
|
2346
|
+
created_at: string;
|
|
1934
2347
|
/**
|
|
1935
2348
|
* Recipient address.
|
|
1936
2349
|
*/
|
|
@@ -1972,7 +2385,7 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
1972
2385
|
source_asset_address?: string;
|
|
1973
2386
|
/**
|
|
1974
2387
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
1975
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2388
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
1976
2389
|
*/
|
|
1977
2390
|
source_asset_decimals?: number;
|
|
1978
2391
|
}
|
|
@@ -1983,15 +2396,23 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
1983
2396
|
/**
|
|
1984
2397
|
* Type of wallet action
|
|
1985
2398
|
*/
|
|
1986
|
-
action_type:
|
|
2399
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2400
|
+
/**
|
|
2401
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2402
|
+
*/
|
|
2403
|
+
created_at: string;
|
|
1987
2404
|
/**
|
|
1988
2405
|
* Recipient address.
|
|
1989
2406
|
*/
|
|
1990
2407
|
destination_address: string;
|
|
2408
|
+
/**
|
|
2409
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2410
|
+
*/
|
|
2411
|
+
failed_at: string;
|
|
1991
2412
|
/**
|
|
1992
2413
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1993
2414
|
*/
|
|
1994
|
-
failure_reason:
|
|
2415
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
1995
2416
|
/**
|
|
1996
2417
|
* Chain name (e.g. "base", "ethereum").
|
|
1997
2418
|
*/
|
|
@@ -2004,7 +2425,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2004
2425
|
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
2005
2426
|
* the failing step will have a failure_reason.
|
|
2006
2427
|
*/
|
|
2007
|
-
steps: Array<
|
|
2428
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2008
2429
|
/**
|
|
2009
2430
|
* The type of webhook event.
|
|
2010
2431
|
*/
|
|
@@ -2034,7 +2455,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2034
2455
|
source_asset_address?: string;
|
|
2035
2456
|
/**
|
|
2036
2457
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2037
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2458
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2038
2459
|
*/
|
|
2039
2460
|
source_asset_decimals?: number;
|
|
2040
2461
|
}
|
|
@@ -2045,7 +2466,11 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2045
2466
|
/**
|
|
2046
2467
|
* Type of wallet action
|
|
2047
2468
|
*/
|
|
2048
|
-
action_type:
|
|
2469
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2470
|
+
/**
|
|
2471
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2472
|
+
*/
|
|
2473
|
+
created_at: string;
|
|
2049
2474
|
/**
|
|
2050
2475
|
* Recipient address.
|
|
2051
2476
|
*/
|
|
@@ -2053,7 +2478,11 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2053
2478
|
/**
|
|
2054
2479
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2055
2480
|
*/
|
|
2056
|
-
failure_reason:
|
|
2481
|
+
failure_reason: ActionsAPI.FailureReason;
|
|
2482
|
+
/**
|
|
2483
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2484
|
+
*/
|
|
2485
|
+
rejected_at: string;
|
|
2057
2486
|
/**
|
|
2058
2487
|
* Chain name (e.g. "base", "ethereum").
|
|
2059
2488
|
*/
|
|
@@ -2065,7 +2494,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2065
2494
|
/**
|
|
2066
2495
|
* The steps of the wallet action at the time of rejection.
|
|
2067
2496
|
*/
|
|
2068
|
-
steps: Array<
|
|
2497
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2069
2498
|
/**
|
|
2070
2499
|
* The type of webhook event.
|
|
2071
2500
|
*/
|
|
@@ -2095,7 +2524,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2095
2524
|
source_asset_address?: string;
|
|
2096
2525
|
/**
|
|
2097
2526
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2098
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2527
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2099
2528
|
*/
|
|
2100
2529
|
source_asset_decimals?: number;
|
|
2101
2530
|
}
|
|
@@ -2106,7 +2535,15 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2106
2535
|
/**
|
|
2107
2536
|
* Type of wallet action
|
|
2108
2537
|
*/
|
|
2109
|
-
action_type:
|
|
2538
|
+
action_type: ActionsAPI.WalletActionType;
|
|
2539
|
+
/**
|
|
2540
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2541
|
+
*/
|
|
2542
|
+
completed_at: string;
|
|
2543
|
+
/**
|
|
2544
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2545
|
+
*/
|
|
2546
|
+
created_at: string;
|
|
2110
2547
|
/**
|
|
2111
2548
|
* Recipient address.
|
|
2112
2549
|
*/
|
|
@@ -2122,7 +2559,7 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2122
2559
|
/**
|
|
2123
2560
|
* The steps of the wallet action, including transaction hashes.
|
|
2124
2561
|
*/
|
|
2125
|
-
steps: Array<
|
|
2562
|
+
steps: Array<ActionsAPI.WalletActionStep>;
|
|
2126
2563
|
/**
|
|
2127
2564
|
* The type of webhook event.
|
|
2128
2565
|
*/
|
|
@@ -2152,10 +2589,35 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2152
2589
|
source_asset_address?: string;
|
|
2153
2590
|
/**
|
|
2154
2591
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2155
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2592
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2156
2593
|
*/
|
|
2157
2594
|
source_asset_decimals?: number;
|
|
2158
2595
|
}
|
|
2596
|
+
/**
|
|
2597
|
+
* Payload for the wallet.archived webhook event.
|
|
2598
|
+
*/
|
|
2599
|
+
export interface WalletArchivedWebhookPayload {
|
|
2600
|
+
/**
|
|
2601
|
+
* Unix timestamp of when the wallet was archived.
|
|
2602
|
+
*/
|
|
2603
|
+
archived_at: number;
|
|
2604
|
+
/**
|
|
2605
|
+
* The chain type of the archived wallet.
|
|
2606
|
+
*/
|
|
2607
|
+
chain_type: string;
|
|
2608
|
+
/**
|
|
2609
|
+
* The type of webhook event.
|
|
2610
|
+
*/
|
|
2611
|
+
type: 'wallet.archived';
|
|
2612
|
+
/**
|
|
2613
|
+
* The address of the archived wallet.
|
|
2614
|
+
*/
|
|
2615
|
+
wallet_address: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* The ID of the archived wallet.
|
|
2618
|
+
*/
|
|
2619
|
+
wallet_id: string;
|
|
2620
|
+
}
|
|
2159
2621
|
/**
|
|
2160
2622
|
* An asset involved in a wallet transfer.
|
|
2161
2623
|
*/
|
|
@@ -2209,14 +2671,18 @@ export interface WalletRecoveredWebhookPayload {
|
|
|
2209
2671
|
*/
|
|
2210
2672
|
wallet_id: string;
|
|
2211
2673
|
}
|
|
2674
|
+
/**
|
|
2675
|
+
* Recovery method types for embedded wallet recovery setup webhooks.
|
|
2676
|
+
*/
|
|
2677
|
+
export type WalletRecoverySetupMethod = 'user_passcode_derived_recovery_key' | 'privy_passcode_derived_recovery_key' | 'privy_generated_recovery_key' | 'google_drive_recovery_secret' | 'icloud_recovery_secret' | 'recovery_encryption_key';
|
|
2212
2678
|
/**
|
|
2213
2679
|
* Payload for the wallet.recovery_setup webhook event.
|
|
2214
2680
|
*/
|
|
2215
2681
|
export interface WalletRecoverySetupWebhookPayload {
|
|
2216
2682
|
/**
|
|
2217
|
-
*
|
|
2683
|
+
* Recovery method types for embedded wallet recovery setup webhooks.
|
|
2218
2684
|
*/
|
|
2219
|
-
method:
|
|
2685
|
+
method: WalletRecoverySetupMethod;
|
|
2220
2686
|
/**
|
|
2221
2687
|
* The type of webhook event.
|
|
2222
2688
|
*/
|
|
@@ -2234,16 +2700,37 @@ export interface WalletRecoverySetupWebhookPayload {
|
|
|
2234
2700
|
*/
|
|
2235
2701
|
wallet_id: string;
|
|
2236
2702
|
}
|
|
2703
|
+
/**
|
|
2704
|
+
* Payload for the wallet.restored webhook event.
|
|
2705
|
+
*/
|
|
2706
|
+
export interface WalletRestoredWebhookPayload {
|
|
2707
|
+
/**
|
|
2708
|
+
* The chain type of the restored wallet.
|
|
2709
|
+
*/
|
|
2710
|
+
chain_type: string;
|
|
2711
|
+
/**
|
|
2712
|
+
* The type of webhook event.
|
|
2713
|
+
*/
|
|
2714
|
+
type: 'wallet.restored';
|
|
2715
|
+
/**
|
|
2716
|
+
* The address of the restored wallet.
|
|
2717
|
+
*/
|
|
2718
|
+
wallet_address: string;
|
|
2719
|
+
/**
|
|
2720
|
+
* The ID of the restored wallet.
|
|
2721
|
+
*/
|
|
2722
|
+
wallet_id: string;
|
|
2723
|
+
}
|
|
2237
2724
|
/**
|
|
2238
2725
|
* Union of all webhook payload schemas.
|
|
2239
2726
|
*/
|
|
2240
|
-
export type WebhookPayload = UserCreatedWebhookPayload | UserAuthenticatedWebhookPayload | UserLinkedAccountWebhookPayload | UserUnlinkedAccountWebhookPayload | UserUpdatedAccountWebhookPayload | UserTransferredAccountWebhookPayload | UserWalletCreatedWebhookPayload | TransactionBroadcastedWebhookPayload | TransactionConfirmedWebhookPayload | TransactionExecutionRevertedWebhookPayload | TransactionStillPendingWebhookPayload | TransactionFailedWebhookPayload | TransactionReplacedWebhookPayload | TransactionProviderErrorWebhookPayload | FundsDepositedWebhookPayload | FundsWithdrawnWebhookPayload | PrivateKeyExportWebhookPayload | SeedPhraseExportWebhookPayload | WalletRecoverySetupWebhookPayload | WalletRecoveredWebhookPayload | MfaEnabledWebhookPayload | MfaDisabledWebhookPayload | YieldDepositConfirmedWebhookPayload | YieldWithdrawConfirmedWebhookPayload | YieldClaimConfirmedWebhookPayload | UserOperationCompletedWebhookPayload | IntentCreatedWebhookPayload | IntentAuthorizedWebhookPayload | IntentRejectedWebhookPayload | IntentExecutedWebhookPayload | IntentFailedWebhookPayload | WalletActionSwapCreatedWebhookPayload | WalletActionSwapSucceededWebhookPayload | WalletActionSwapRejectedWebhookPayload | WalletActionSwapFailedWebhookPayload | WalletActionTransferCreatedWebhookPayload | WalletActionTransferSucceededWebhookPayload | WalletActionTransferRejectedWebhookPayload | WalletActionTransferFailedWebhookPayload | WalletActionEarnDepositCreatedWebhookPayload | WalletActionEarnDepositSucceededWebhookPayload | WalletActionEarnDepositRejectedWebhookPayload | WalletActionEarnDepositFailedWebhookPayload | WalletActionEarnWithdrawCreatedWebhookPayload | WalletActionEarnWithdrawSucceededWebhookPayload | WalletActionEarnWithdrawRejectedWebhookPayload | WalletActionEarnWithdrawFailedWebhookPayload | WalletActionEarnIncentiveClaimCreatedWebhookPayload | WalletActionEarnIncentiveClaimSucceededWebhookPayload | WalletActionEarnIncentiveClaimRejectedWebhookPayload | WalletActionEarnIncentiveClaimFailedWebhookPayload;
|
|
2727
|
+
export type WebhookPayload = UserCreatedWebhookPayload | UserAuthenticatedWebhookPayload | UserLinkedAccountWebhookPayload | UserUnlinkedAccountWebhookPayload | UserUpdatedAccountWebhookPayload | UserTransferredAccountWebhookPayload | UserWalletCreatedWebhookPayload | TransactionBroadcastedWebhookPayload | TransactionConfirmedWebhookPayload | TransactionExecutionRevertedWebhookPayload | TransactionStillPendingWebhookPayload | TransactionFailedWebhookPayload | TransactionReplacedWebhookPayload | TransactionProviderErrorWebhookPayload | FundsDepositedWebhookPayload | FundsWithdrawnWebhookPayload | PrivateKeyExportWebhookPayload | SeedPhraseExportWebhookPayload | WalletRecoverySetupWebhookPayload | WalletRecoveredWebhookPayload | WalletArchivedWebhookPayload | WalletRestoredWebhookPayload | MfaEnabledWebhookPayload | MfaDisabledWebhookPayload | YieldDepositConfirmedWebhookPayload | YieldWithdrawConfirmedWebhookPayload | YieldClaimConfirmedWebhookPayload | UserOperationCompletedWebhookPayload | IntentCreatedWebhookPayload | IntentAuthorizedWebhookPayload | IntentRejectedWebhookPayload | IntentExecutedWebhookPayload | IntentFailedWebhookPayload | WalletActionSwapCreatedWebhookPayload | WalletActionSwapSucceededWebhookPayload | WalletActionSwapRejectedWebhookPayload | WalletActionSwapFailedWebhookPayload | WalletActionTransferCreatedWebhookPayload | WalletActionTransferSucceededWebhookPayload | WalletActionTransferRejectedWebhookPayload | WalletActionTransferFailedWebhookPayload | WalletActionEarnDepositCreatedWebhookPayload | WalletActionEarnDepositSucceededWebhookPayload | WalletActionEarnDepositRejectedWebhookPayload | WalletActionEarnDepositFailedWebhookPayload | WalletActionEarnWithdrawCreatedWebhookPayload | WalletActionEarnWithdrawSucceededWebhookPayload | WalletActionEarnWithdrawRejectedWebhookPayload | WalletActionEarnWithdrawFailedWebhookPayload | WalletActionEarnIncentiveClaimCreatedWebhookPayload | WalletActionEarnIncentiveClaimSucceededWebhookPayload | WalletActionEarnIncentiveClaimRejectedWebhookPayload | WalletActionEarnIncentiveClaimFailedWebhookPayload | WalletActionEarnFeeCollectCreatedWebhookPayload | WalletActionEarnFeeCollectSucceededWebhookPayload | WalletActionEarnFeeCollectRejectedWebhookPayload | WalletActionEarnFeeCollectFailedWebhookPayload;
|
|
2241
2728
|
/**
|
|
2242
2729
|
* Payload for the yield.claim.confirmed webhook event.
|
|
2243
2730
|
*/
|
|
2244
2731
|
export interface YieldClaimConfirmedWebhookPayload {
|
|
2245
2732
|
caip2: string;
|
|
2246
|
-
rewards: Array<
|
|
2733
|
+
rewards: Array<YieldClaimReward>;
|
|
2247
2734
|
transaction_id: string;
|
|
2248
2735
|
/**
|
|
2249
2736
|
* The type of webhook event.
|
|
@@ -2251,12 +2738,13 @@ export interface YieldClaimConfirmedWebhookPayload {
|
|
|
2251
2738
|
type: 'yield.claim.confirmed';
|
|
2252
2739
|
wallet_id: string;
|
|
2253
2740
|
}
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2741
|
+
/**
|
|
2742
|
+
* A single reward token claimed from a yield vault.
|
|
2743
|
+
*/
|
|
2744
|
+
export interface YieldClaimReward {
|
|
2745
|
+
amount: string;
|
|
2746
|
+
token_address: string;
|
|
2747
|
+
token_symbol: string;
|
|
2260
2748
|
}
|
|
2261
2749
|
/**
|
|
2262
2750
|
* Payload for the yield.deposit.confirmed webhook event.
|
|
@@ -2290,6 +2778,6 @@ export interface YieldWithdrawConfirmedWebhookPayload {
|
|
|
2290
2778
|
vault_address: string;
|
|
2291
2779
|
}
|
|
2292
2780
|
export declare namespace Webhooks {
|
|
2293
|
-
export { type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata, type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata, type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata, type BridgeFiatTransferMetadata as BridgeFiatTransferMetadata, type BridgeMetadata as BridgeMetadata, type BridgeRefundMetadata as BridgeRefundMetadata, type BridgeStaticMemoDepositMetadata as BridgeStaticMemoDepositMetadata, type BridgeTransferRefundMetadata as BridgeTransferRefundMetadata, type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload, type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload, type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload, type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload, type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload, type IntentFailedWebhookPayload as IntentFailedWebhookPayload, type IntentRejectedWebhookPayload as IntentRejectedWebhookPayload, type KrakenEmbedCustomOrderCancelledWebhookPayload as KrakenEmbedCustomOrderCancelledWebhookPayload, type KrakenEmbedCustomOrderExecutedWebhookPayload as KrakenEmbedCustomOrderExecutedWebhookPayload, type KrakenEmbedCustomOrderExecutionFailedWebhookPayload as KrakenEmbedCustomOrderExecutionFailedWebhookPayload, type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload, type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload, type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload, type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload, type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload, type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload, type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload, type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload, type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload, type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload, type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload, type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload, type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload, type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload, type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload, type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload, type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload, type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload, type UserCreatedWebhookPayload as UserCreatedWebhookPayload, type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload, type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload, type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload, type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload, type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload, type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload, type WalletActionEarnDepositCreatedWebhookPayload as WalletActionEarnDepositCreatedWebhookPayload, type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload, type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload, type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload, type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload, type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload, type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload, type WalletActionEarnIncentiveClaimSucceededWebhookPayload as WalletActionEarnIncentiveClaimSucceededWebhookPayload, type WalletActionEarnWithdrawCreatedWebhookPayload as WalletActionEarnWithdrawCreatedWebhookPayload, type WalletActionEarnWithdrawFailedWebhookPayload as WalletActionEarnWithdrawFailedWebhookPayload, type WalletActionEarnWithdrawRejectedWebhookPayload as WalletActionEarnWithdrawRejectedWebhookPayload, type WalletActionEarnWithdrawSucceededWebhookPayload as WalletActionEarnWithdrawSucceededWebhookPayload, type WalletActionSwapCreatedWebhookPayload as WalletActionSwapCreatedWebhookPayload, type WalletActionSwapFailedWebhookPayload as WalletActionSwapFailedWebhookPayload, type WalletActionSwapRejectedWebhookPayload as WalletActionSwapRejectedWebhookPayload, type WalletActionSwapSucceededWebhookPayload as WalletActionSwapSucceededWebhookPayload, type WalletActionTransferCreatedWebhookPayload as WalletActionTransferCreatedWebhookPayload, type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload, type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload, type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload, type WalletFundsAsset as WalletFundsAsset, type WalletFundsErc20Asset as WalletFundsErc20Asset, type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset, type WalletFundsSacAsset as WalletFundsSacAsset, type WalletFundsSplAsset as WalletFundsSplAsset, type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload, type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload, type WebhookPayload as WebhookPayload, type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload, type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload, type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload, };
|
|
2781
|
+
export { type BlockInfo as BlockInfo, type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata, type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata, type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata, type BridgeFiatTransferMetadata as BridgeFiatTransferMetadata, type BridgeMetadata as BridgeMetadata, type BridgeRefundMetadata as BridgeRefundMetadata, type BridgeStaticMemoDepositMetadata as BridgeStaticMemoDepositMetadata, type BridgeTransferRefundMetadata as BridgeTransferRefundMetadata, type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload, type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload, type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload, type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload, type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload, type IntentFailedWebhookPayload as IntentFailedWebhookPayload, type IntentRejectedWebhookPayload as IntentRejectedWebhookPayload, type KrakenEmbedCustomOrderCancelledWebhookPayload as KrakenEmbedCustomOrderCancelledWebhookPayload, type KrakenEmbedCustomOrderExecutedWebhookPayload as KrakenEmbedCustomOrderExecutedWebhookPayload, type KrakenEmbedCustomOrderExecutionFailedWebhookPayload as KrakenEmbedCustomOrderExecutionFailedWebhookPayload, type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload, type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload, type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload, type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload, type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload, type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload, type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload, type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload, type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload, type SeedPhraseExportWebhookPayload as SeedPhraseExportWebhookPayload, type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload, type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload, type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload, type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload, type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload, type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload, type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload, type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload, type UserCreatedWebhookPayload as UserCreatedWebhookPayload, type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload, type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload, type UserReference as UserReference, type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload, type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload, type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload, type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload, type WalletActionEarnDepositCreatedWebhookPayload as WalletActionEarnDepositCreatedWebhookPayload, type WalletActionEarnDepositFailedWebhookPayload as WalletActionEarnDepositFailedWebhookPayload, type WalletActionEarnDepositRejectedWebhookPayload as WalletActionEarnDepositRejectedWebhookPayload, type WalletActionEarnDepositSucceededWebhookPayload as WalletActionEarnDepositSucceededWebhookPayload, type WalletActionEarnFeeCollectCreatedWebhookPayload as WalletActionEarnFeeCollectCreatedWebhookPayload, type WalletActionEarnFeeCollectFailedWebhookPayload as WalletActionEarnFeeCollectFailedWebhookPayload, type WalletActionEarnFeeCollectRejectedWebhookPayload as WalletActionEarnFeeCollectRejectedWebhookPayload, type WalletActionEarnFeeCollectSucceededWebhookPayload as WalletActionEarnFeeCollectSucceededWebhookPayload, type WalletActionEarnIncentiveClaimCreatedWebhookPayload as WalletActionEarnIncentiveClaimCreatedWebhookPayload, type WalletActionEarnIncentiveClaimFailedWebhookPayload as WalletActionEarnIncentiveClaimFailedWebhookPayload, type WalletActionEarnIncentiveClaimRejectedWebhookPayload as WalletActionEarnIncentiveClaimRejectedWebhookPayload, type WalletActionEarnIncentiveClaimSucceededWebhookPayload as WalletActionEarnIncentiveClaimSucceededWebhookPayload, type WalletActionEarnWithdrawCreatedWebhookPayload as WalletActionEarnWithdrawCreatedWebhookPayload, type WalletActionEarnWithdrawFailedWebhookPayload as WalletActionEarnWithdrawFailedWebhookPayload, type WalletActionEarnWithdrawRejectedWebhookPayload as WalletActionEarnWithdrawRejectedWebhookPayload, type WalletActionEarnWithdrawSucceededWebhookPayload as WalletActionEarnWithdrawSucceededWebhookPayload, type WalletActionSwapCreatedWebhookPayload as WalletActionSwapCreatedWebhookPayload, type WalletActionSwapFailedWebhookPayload as WalletActionSwapFailedWebhookPayload, type WalletActionSwapRejectedWebhookPayload as WalletActionSwapRejectedWebhookPayload, type WalletActionSwapSucceededWebhookPayload as WalletActionSwapSucceededWebhookPayload, type WalletActionTransferCreatedWebhookPayload as WalletActionTransferCreatedWebhookPayload, type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload, type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload, type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload, type WalletArchivedWebhookPayload as WalletArchivedWebhookPayload, type WalletFundsAsset as WalletFundsAsset, type WalletFundsErc20Asset as WalletFundsErc20Asset, type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset, type WalletFundsSacAsset as WalletFundsSacAsset, type WalletFundsSplAsset as WalletFundsSplAsset, type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload, type WalletRecoverySetupMethod as WalletRecoverySetupMethod, type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload, type WalletRestoredWebhookPayload as WalletRestoredWebhookPayload, type WebhookPayload as WebhookPayload, type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload, type YieldClaimReward as YieldClaimReward, type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload, type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload, };
|
|
2294
2782
|
}
|
|
2295
2783
|
//# sourceMappingURL=webhooks.d.mts.map
|