@privy-io/api-types 0.8.0 → 0.10.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 +57 -0
- package/client.d.mts +35 -32
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -32
- package/client.d.ts.map +1 -1
- package/client.js +22 -8
- package/client.js.map +1 -1
- package/client.mjs +22 -8
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +177 -129
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +177 -129
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +650 -648
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +650 -648
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +84 -84
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +84 -84
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/funding.d.mts +42 -42
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +42 -42
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +19 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +19 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +270 -266
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +270 -266
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +20 -20
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +20 -20
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +62 -19
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +62 -19
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +360 -231
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +360 -231
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +8 -11
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +8 -11
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +56 -66
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +56 -66
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +457 -448
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +457 -448
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +450 -41
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +450 -41
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +16 -31
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +16 -31
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +1475 -1172
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1475 -1172
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +10 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +10 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1345 -582
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1345 -582
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +661 -455
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +232 -166
- package/src/resources/client-auth.ts +890 -890
- package/src/resources/embedded-wallets.ts +123 -123
- package/src/resources/funding.ts +66 -66
- package/src/resources/index.ts +521 -431
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +23 -23
- package/src/resources/kraken-embed.ts +116 -19
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +495 -339
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +9 -14
- package/src/resources/transactions.ts +88 -115
- package/src/resources/users.ts +664 -653
- package/src/resources/wallet-actions.ts +585 -56
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +158 -138
- package/src/resources/wallets/transactions.ts +20 -83
- package/src/resources/wallets/wallets.ts +1997 -1563
- package/src/resources/webhooks.ts +1652 -700
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/resources/webhooks.d.mts
CHANGED
|
@@ -6,9 +6,217 @@ import * as WalletsAPI from "./wallets/wallets.mjs";
|
|
|
6
6
|
export declare class Webhooks extends APIResource {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Bridge metadata for a crypto deposit via liquidation address.
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface BridgeCryptoDepositMetadata {
|
|
12
|
+
drain_id: string;
|
|
13
|
+
/**
|
|
14
|
+
* The crypto address of the liquidation address that received the deposit.
|
|
15
|
+
*/
|
|
16
|
+
liquidation_address: string;
|
|
17
|
+
liquidation_address_id: string;
|
|
18
|
+
method: 'liquidation_address';
|
|
19
|
+
/**
|
|
20
|
+
* The address that sent the deposit.
|
|
21
|
+
*/
|
|
22
|
+
source_wallet_address: string;
|
|
23
|
+
type: 'crypto_deposit';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Bridge metadata for a crypto deposit via transfer.
|
|
27
|
+
*/
|
|
28
|
+
export interface BridgeCryptoTransferMetadata {
|
|
29
|
+
method: 'transfer';
|
|
30
|
+
/**
|
|
31
|
+
* The wallet address that sent the transfer.
|
|
32
|
+
*/
|
|
33
|
+
source_wallet_address: string;
|
|
34
|
+
transfer_id: string;
|
|
35
|
+
type: 'crypto_deposit';
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Bridge metadata for a fiat deposit via virtual account.
|
|
39
|
+
*/
|
|
40
|
+
export interface BridgeFiatDepositMetadata {
|
|
41
|
+
activity_id: string;
|
|
42
|
+
method: 'virtual_account';
|
|
43
|
+
type: 'fiat_deposit';
|
|
44
|
+
virtual_account_id: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Bridge metadata for a fiat deposit via transfer.
|
|
48
|
+
*/
|
|
49
|
+
export interface BridgeFiatTransferMetadata {
|
|
50
|
+
method: 'transfer';
|
|
51
|
+
transfer_id: string;
|
|
52
|
+
type: 'fiat_deposit';
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Metadata about a Bridge transaction associated with a wallet event.
|
|
56
|
+
*/
|
|
57
|
+
export type BridgeMetadata = BridgeCryptoDepositMetadata | BridgeRefundMetadata | BridgeFiatDepositMetadata | BridgeCryptoTransferMetadata | BridgeFiatTransferMetadata | BridgeTransferRefundMetadata | BridgeStaticMemoDepositMetadata;
|
|
58
|
+
/**
|
|
59
|
+
* Bridge metadata for a refund via liquidation address.
|
|
60
|
+
*/
|
|
61
|
+
export interface BridgeRefundMetadata {
|
|
62
|
+
drain_id: string;
|
|
63
|
+
liquidation_address_id: string;
|
|
64
|
+
method: 'liquidation_address';
|
|
65
|
+
/**
|
|
66
|
+
* The original deposit transaction hash that triggered the failed drain.
|
|
67
|
+
*/
|
|
68
|
+
original_transaction_hash: string;
|
|
69
|
+
type: 'refund';
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Bridge metadata for a fiat deposit via static memo.
|
|
73
|
+
*/
|
|
74
|
+
export interface BridgeStaticMemoDepositMetadata {
|
|
75
|
+
method: 'static_memo';
|
|
76
|
+
static_memo_event_id: string;
|
|
77
|
+
static_memo_id: string;
|
|
78
|
+
type: 'fiat_deposit';
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Bridge metadata for a transfer refund.
|
|
82
|
+
*/
|
|
83
|
+
export interface BridgeTransferRefundMetadata {
|
|
84
|
+
method: 'transfer';
|
|
85
|
+
transfer_id: string;
|
|
86
|
+
type: 'refund';
|
|
87
|
+
/**
|
|
88
|
+
* The original transfer transaction hash (if available).
|
|
89
|
+
*/
|
|
90
|
+
original_transaction_hash?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Payload for the wallet.funds_deposited webhook event.
|
|
94
|
+
*/
|
|
95
|
+
export interface FundsDepositedWebhookPayload {
|
|
96
|
+
/**
|
|
97
|
+
* The amount transferred, as a stringified bigint.
|
|
98
|
+
*/
|
|
99
|
+
amount: string;
|
|
100
|
+
/**
|
|
101
|
+
* An asset involved in a wallet transfer.
|
|
102
|
+
*/
|
|
103
|
+
asset: WalletFundsAsset;
|
|
104
|
+
block: FundsDepositedWebhookPayload.Block;
|
|
105
|
+
/**
|
|
106
|
+
* The CAIP-2 chain identifier.
|
|
107
|
+
*/
|
|
108
|
+
caip2: string;
|
|
109
|
+
/**
|
|
110
|
+
* A unique key for this event.
|
|
111
|
+
*/
|
|
112
|
+
idempotency_key: string;
|
|
113
|
+
/**
|
|
114
|
+
* The recipient address.
|
|
115
|
+
*/
|
|
116
|
+
recipient: string;
|
|
117
|
+
/**
|
|
118
|
+
* The sender address.
|
|
119
|
+
*/
|
|
120
|
+
sender: string;
|
|
121
|
+
/**
|
|
122
|
+
* The blockchain transaction hash.
|
|
123
|
+
*/
|
|
124
|
+
transaction_hash: string;
|
|
125
|
+
/**
|
|
126
|
+
* The type of webhook event.
|
|
127
|
+
*/
|
|
128
|
+
type: 'wallet.funds_deposited';
|
|
129
|
+
/**
|
|
130
|
+
* The ID of the wallet.
|
|
131
|
+
*/
|
|
132
|
+
wallet_id: string;
|
|
133
|
+
/**
|
|
134
|
+
* Metadata about a Bridge transaction associated with a wallet event.
|
|
135
|
+
*/
|
|
136
|
+
bridge_metadata?: BridgeMetadata;
|
|
137
|
+
/**
|
|
138
|
+
* The transaction fee paid, as a stringified bigint in the chain's native token.
|
|
139
|
+
*/
|
|
140
|
+
transaction_fee?: string;
|
|
141
|
+
}
|
|
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
|
+
/**
|
|
155
|
+
* Payload for the wallet.funds_withdrawn webhook event.
|
|
156
|
+
*/
|
|
157
|
+
export interface FundsWithdrawnWebhookPayload {
|
|
158
|
+
/**
|
|
159
|
+
* The amount transferred, as a stringified bigint.
|
|
160
|
+
*/
|
|
161
|
+
amount: string;
|
|
162
|
+
/**
|
|
163
|
+
* An asset involved in a wallet transfer.
|
|
164
|
+
*/
|
|
165
|
+
asset: WalletFundsAsset;
|
|
166
|
+
block: FundsWithdrawnWebhookPayload.Block;
|
|
167
|
+
/**
|
|
168
|
+
* The CAIP-2 chain identifier.
|
|
169
|
+
*/
|
|
170
|
+
caip2: string;
|
|
171
|
+
/**
|
|
172
|
+
* A unique key for this event.
|
|
173
|
+
*/
|
|
174
|
+
idempotency_key: string;
|
|
175
|
+
/**
|
|
176
|
+
* The recipient address.
|
|
177
|
+
*/
|
|
178
|
+
recipient: string;
|
|
179
|
+
/**
|
|
180
|
+
* The sender address.
|
|
181
|
+
*/
|
|
182
|
+
sender: string;
|
|
183
|
+
/**
|
|
184
|
+
* The blockchain transaction hash.
|
|
185
|
+
*/
|
|
186
|
+
transaction_hash: string;
|
|
187
|
+
/**
|
|
188
|
+
* The type of webhook event.
|
|
189
|
+
*/
|
|
190
|
+
type: 'wallet.funds_withdrawn';
|
|
191
|
+
/**
|
|
192
|
+
* The ID of the wallet.
|
|
193
|
+
*/
|
|
194
|
+
wallet_id: string;
|
|
195
|
+
/**
|
|
196
|
+
* The transaction fee paid, as a stringified bigint in the chain's native token.
|
|
197
|
+
*/
|
|
198
|
+
transaction_fee?: string;
|
|
199
|
+
}
|
|
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
|
+
/**
|
|
213
|
+
* Payload for the intent.authorized webhook event.
|
|
214
|
+
*/
|
|
215
|
+
export interface IntentAuthorizedWebhookPayload {
|
|
216
|
+
/**
|
|
217
|
+
* Unix timestamp when the authorization was recorded.
|
|
218
|
+
*/
|
|
219
|
+
authorized_at: number;
|
|
12
220
|
/**
|
|
13
221
|
* Unix timestamp when the intent was created.
|
|
14
222
|
*/
|
|
@@ -25,6 +233,10 @@ export interface IntentCreatedWebhookPayload {
|
|
|
25
233
|
* Type of intent.
|
|
26
234
|
*/
|
|
27
235
|
intent_type: IntentsAPI.IntentType;
|
|
236
|
+
/**
|
|
237
|
+
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
238
|
+
*/
|
|
239
|
+
member: IntentsAPI.IntentAuthorizationKeyQuorumMember;
|
|
28
240
|
/**
|
|
29
241
|
* The current status of the intent.
|
|
30
242
|
*/
|
|
@@ -32,11 +244,7 @@ export interface IntentCreatedWebhookPayload {
|
|
|
32
244
|
/**
|
|
33
245
|
* The type of webhook event.
|
|
34
246
|
*/
|
|
35
|
-
type: 'intent.
|
|
36
|
-
/**
|
|
37
|
-
* Key quorums that can authorize this intent.
|
|
38
|
-
*/
|
|
39
|
-
authorization_details?: Array<IntentsAPI.IntentAuthorization>;
|
|
247
|
+
type: 'intent.authorized';
|
|
40
248
|
/**
|
|
41
249
|
* Display name of the user who created the intent.
|
|
42
250
|
*/
|
|
@@ -47,13 +255,9 @@ export interface IntentCreatedWebhookPayload {
|
|
|
47
255
|
created_by_id?: string;
|
|
48
256
|
}
|
|
49
257
|
/**
|
|
50
|
-
* Payload for the intent.
|
|
258
|
+
* Payload for the intent.created webhook event.
|
|
51
259
|
*/
|
|
52
|
-
export interface
|
|
53
|
-
/**
|
|
54
|
-
* Unix timestamp when the authorization was recorded.
|
|
55
|
-
*/
|
|
56
|
-
authorized_at: number;
|
|
260
|
+
export interface IntentCreatedWebhookPayload {
|
|
57
261
|
/**
|
|
58
262
|
* Unix timestamp when the intent was created.
|
|
59
263
|
*/
|
|
@@ -70,10 +274,6 @@ export interface IntentAuthorizedWebhookPayload {
|
|
|
70
274
|
* Type of intent.
|
|
71
275
|
*/
|
|
72
276
|
intent_type: IntentsAPI.IntentType;
|
|
73
|
-
/**
|
|
74
|
-
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
75
|
-
*/
|
|
76
|
-
member: IntentsAPI.IntentAuthorizationKeyQuorumMember;
|
|
77
277
|
/**
|
|
78
278
|
* The current status of the intent.
|
|
79
279
|
*/
|
|
@@ -81,7 +281,11 @@ export interface IntentAuthorizedWebhookPayload {
|
|
|
81
281
|
/**
|
|
82
282
|
* The type of webhook event.
|
|
83
283
|
*/
|
|
84
|
-
type: 'intent.
|
|
284
|
+
type: 'intent.created';
|
|
285
|
+
/**
|
|
286
|
+
* Key quorums that can authorize this intent.
|
|
287
|
+
*/
|
|
288
|
+
authorization_details?: Array<IntentsAPI.IntentAuthorization>;
|
|
85
289
|
/**
|
|
86
290
|
* Display name of the user who created the intent.
|
|
87
291
|
*/
|
|
@@ -174,77 +378,215 @@ export interface IntentFailedWebhookPayload {
|
|
|
174
378
|
created_by_id?: string;
|
|
175
379
|
}
|
|
176
380
|
/**
|
|
177
|
-
* Payload for the
|
|
381
|
+
* Payload for the kraken_embed.quote.cancelled webhook event.
|
|
178
382
|
*/
|
|
179
|
-
export interface
|
|
383
|
+
export interface KrakenEmbedQuoteCancelledWebhookPayload {
|
|
180
384
|
/**
|
|
181
|
-
*
|
|
385
|
+
* ISO 8601 timestamp of when the quote was cancelled.
|
|
182
386
|
*/
|
|
183
|
-
|
|
387
|
+
cancelled_at: string;
|
|
388
|
+
/**
|
|
389
|
+
* The ID of the cancelled quote.
|
|
390
|
+
*/
|
|
391
|
+
quote_id: string;
|
|
392
|
+
/**
|
|
393
|
+
* A human-readable description of why the quote was cancelled. Intended for
|
|
394
|
+
* display and logging purposes only.
|
|
395
|
+
*/
|
|
396
|
+
reason: string;
|
|
184
397
|
/**
|
|
185
398
|
* The type of webhook event.
|
|
186
399
|
*/
|
|
187
|
-
type: '
|
|
400
|
+
type: 'kraken_embed.quote.cancelled';
|
|
188
401
|
/**
|
|
189
|
-
* The ID of the user
|
|
402
|
+
* The ID of the user.
|
|
190
403
|
*/
|
|
191
404
|
user_id: string;
|
|
192
405
|
}
|
|
193
406
|
/**
|
|
194
|
-
* Payload for the
|
|
407
|
+
* Payload for the kraken_embed.quote_executed webhook event.
|
|
195
408
|
*/
|
|
196
|
-
export interface
|
|
409
|
+
export interface KrakenEmbedQuoteExecutedWebhookPayload {
|
|
197
410
|
/**
|
|
198
|
-
*
|
|
411
|
+
* ISO 8601 timestamp of when the quote was executed.
|
|
199
412
|
*/
|
|
200
|
-
|
|
413
|
+
executed_at: string;
|
|
414
|
+
/**
|
|
415
|
+
* The ID of the executed quote.
|
|
416
|
+
*/
|
|
417
|
+
quote_id: string;
|
|
201
418
|
/**
|
|
202
419
|
* The type of webhook event.
|
|
203
420
|
*/
|
|
204
|
-
type: '
|
|
421
|
+
type: 'kraken_embed.quote.executed';
|
|
205
422
|
/**
|
|
206
|
-
* The ID of the user
|
|
423
|
+
* The ID of the user.
|
|
207
424
|
*/
|
|
208
425
|
user_id: string;
|
|
209
426
|
}
|
|
210
427
|
/**
|
|
211
|
-
* Payload for the
|
|
428
|
+
* Payload for the kraken_embed.quote.execution_failed webhook event.
|
|
212
429
|
*/
|
|
213
|
-
export interface
|
|
430
|
+
export interface KrakenEmbedQuoteExecutionFailedWebhookPayload {
|
|
214
431
|
/**
|
|
215
|
-
*
|
|
432
|
+
* ISO 8601 timestamp of when the quote execution failed.
|
|
216
433
|
*/
|
|
217
|
-
|
|
434
|
+
failed_at: string;
|
|
218
435
|
/**
|
|
219
|
-
* The
|
|
436
|
+
* The ID of the quote that failed to execute.
|
|
220
437
|
*/
|
|
221
|
-
|
|
438
|
+
quote_id: string;
|
|
222
439
|
/**
|
|
223
|
-
*
|
|
440
|
+
* A human-readable description of why the quote execution failed. Intended for
|
|
441
|
+
* display and logging purposes only.
|
|
224
442
|
*/
|
|
225
|
-
|
|
443
|
+
reason: string;
|
|
226
444
|
/**
|
|
227
445
|
* The type of webhook event.
|
|
228
446
|
*/
|
|
229
|
-
type: '
|
|
230
|
-
/**
|
|
231
|
-
* The ID of the wallet that initiated the transaction.
|
|
232
|
-
*/
|
|
233
|
-
wallet_id: string;
|
|
447
|
+
type: 'kraken_embed.quote.execution_failed';
|
|
234
448
|
/**
|
|
235
|
-
*
|
|
236
|
-
* provided.
|
|
449
|
+
* The ID of the user.
|
|
237
450
|
*/
|
|
238
|
-
|
|
451
|
+
user_id: string;
|
|
239
452
|
}
|
|
240
453
|
/**
|
|
241
|
-
* Payload for the
|
|
454
|
+
* Payload for the kraken_embed.user.closed webhook event.
|
|
242
455
|
*/
|
|
243
|
-
export interface
|
|
456
|
+
export interface KrakenEmbedUserClosedWebhookPayload {
|
|
244
457
|
/**
|
|
245
|
-
*
|
|
458
|
+
* ISO 8601 timestamp of when the user was closed.
|
|
246
459
|
*/
|
|
247
|
-
|
|
460
|
+
closed_at: string;
|
|
461
|
+
/**
|
|
462
|
+
* The type of webhook event.
|
|
463
|
+
*/
|
|
464
|
+
type: 'kraken_embed.user.closed';
|
|
465
|
+
/**
|
|
466
|
+
* The ID of the user.
|
|
467
|
+
*/
|
|
468
|
+
user_id: string;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Payload for the kraken_embed.user.disabled webhook event.
|
|
472
|
+
*/
|
|
473
|
+
export interface KrakenEmbedUserDisabledWebhookPayload {
|
|
474
|
+
/**
|
|
475
|
+
* ISO 8601 timestamp of when the user was disabled.
|
|
476
|
+
*/
|
|
477
|
+
disabled_at: string;
|
|
478
|
+
/**
|
|
479
|
+
* The type of webhook event.
|
|
480
|
+
*/
|
|
481
|
+
type: 'kraken_embed.user.disabled';
|
|
482
|
+
/**
|
|
483
|
+
* The ID of the user.
|
|
484
|
+
*/
|
|
485
|
+
user_id: string;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Payload for the kraken_embed.user.verified webhook event.
|
|
489
|
+
*/
|
|
490
|
+
export interface KrakenEmbedUserVerifiedWebhookPayload {
|
|
491
|
+
/**
|
|
492
|
+
* The type of webhook event.
|
|
493
|
+
*/
|
|
494
|
+
type: 'kraken_embed.user.verified';
|
|
495
|
+
/**
|
|
496
|
+
* The ID of the user.
|
|
497
|
+
*/
|
|
498
|
+
user_id: string;
|
|
499
|
+
/**
|
|
500
|
+
* ISO 8601 timestamp of when the user was verified.
|
|
501
|
+
*/
|
|
502
|
+
verified_at: string;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Payload for the mfa.disabled webhook event.
|
|
506
|
+
*/
|
|
507
|
+
export interface MfaDisabledWebhookPayload {
|
|
508
|
+
/**
|
|
509
|
+
* The MFA method that was disabled.
|
|
510
|
+
*/
|
|
511
|
+
method: 'sms' | 'totp' | 'passkey';
|
|
512
|
+
/**
|
|
513
|
+
* The type of webhook event.
|
|
514
|
+
*/
|
|
515
|
+
type: 'mfa.disabled';
|
|
516
|
+
/**
|
|
517
|
+
* The ID of the user who disabled MFA.
|
|
518
|
+
*/
|
|
519
|
+
user_id: string;
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Payload for the mfa.enabled webhook event.
|
|
523
|
+
*/
|
|
524
|
+
export interface MfaEnabledWebhookPayload {
|
|
525
|
+
/**
|
|
526
|
+
* The MFA method that was enabled.
|
|
527
|
+
*/
|
|
528
|
+
method: 'sms' | 'totp' | 'passkey';
|
|
529
|
+
/**
|
|
530
|
+
* The type of webhook event.
|
|
531
|
+
*/
|
|
532
|
+
type: 'mfa.enabled';
|
|
533
|
+
/**
|
|
534
|
+
* The ID of the user who enabled MFA.
|
|
535
|
+
*/
|
|
536
|
+
user_id: string;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Payload for the wallet.private_key_export webhook event.
|
|
540
|
+
*/
|
|
541
|
+
export interface PrivateKeyExportWebhookPayload {
|
|
542
|
+
/**
|
|
543
|
+
* The type of webhook event.
|
|
544
|
+
*/
|
|
545
|
+
type: 'wallet.private_key_export';
|
|
546
|
+
/**
|
|
547
|
+
* The ID of the user who exported the key.
|
|
548
|
+
*/
|
|
549
|
+
user_id: string;
|
|
550
|
+
/**
|
|
551
|
+
* The address of the wallet.
|
|
552
|
+
*/
|
|
553
|
+
wallet_address: string;
|
|
554
|
+
/**
|
|
555
|
+
* The ID of the wallet.
|
|
556
|
+
*/
|
|
557
|
+
wallet_id: string;
|
|
558
|
+
export_source?: 'display' | 'client';
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Payload for the wallet.seed_phrase_export webhook event.
|
|
562
|
+
*/
|
|
563
|
+
export interface SeedPhraseExportWebhookPayload {
|
|
564
|
+
/**
|
|
565
|
+
* The type of webhook event.
|
|
566
|
+
*/
|
|
567
|
+
type: 'wallet.seed_phrase_export';
|
|
568
|
+
/**
|
|
569
|
+
* The ID of the user who exported the seed phrase.
|
|
570
|
+
*/
|
|
571
|
+
user_id: string;
|
|
572
|
+
/**
|
|
573
|
+
* The address of the wallet.
|
|
574
|
+
*/
|
|
575
|
+
wallet_address: string;
|
|
576
|
+
/**
|
|
577
|
+
* The ID of the wallet.
|
|
578
|
+
*/
|
|
579
|
+
wallet_id: string;
|
|
580
|
+
export_source?: 'display' | 'client';
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Payload for the transaction.broadcasted webhook event.
|
|
584
|
+
*/
|
|
585
|
+
export interface TransactionBroadcastedWebhookPayload {
|
|
586
|
+
/**
|
|
587
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
588
|
+
*/
|
|
589
|
+
caip2: string;
|
|
248
590
|
/**
|
|
249
591
|
* The blockchain transaction hash.
|
|
250
592
|
*/
|
|
@@ -256,7 +598,7 @@ export interface TransactionConfirmedWebhookPayload {
|
|
|
256
598
|
/**
|
|
257
599
|
* The type of webhook event.
|
|
258
600
|
*/
|
|
259
|
-
type: 'transaction.
|
|
601
|
+
type: 'transaction.broadcasted';
|
|
260
602
|
/**
|
|
261
603
|
* The ID of the wallet that initiated the transaction.
|
|
262
604
|
*/
|
|
@@ -268,9 +610,9 @@ export interface TransactionConfirmedWebhookPayload {
|
|
|
268
610
|
reference_id?: string | null;
|
|
269
611
|
}
|
|
270
612
|
/**
|
|
271
|
-
* Payload for the transaction.
|
|
613
|
+
* Payload for the transaction.confirmed webhook event.
|
|
272
614
|
*/
|
|
273
|
-
export interface
|
|
615
|
+
export interface TransactionConfirmedWebhookPayload {
|
|
274
616
|
/**
|
|
275
617
|
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
276
618
|
*/
|
|
@@ -286,7 +628,7 @@ export interface TransactionExecutionRevertedWebhookPayload {
|
|
|
286
628
|
/**
|
|
287
629
|
* The type of webhook event.
|
|
288
630
|
*/
|
|
289
|
-
type: 'transaction.
|
|
631
|
+
type: 'transaction.confirmed';
|
|
290
632
|
/**
|
|
291
633
|
* The ID of the wallet that initiated the transaction.
|
|
292
634
|
*/
|
|
@@ -298,9 +640,9 @@ export interface TransactionExecutionRevertedWebhookPayload {
|
|
|
298
640
|
reference_id?: string | null;
|
|
299
641
|
}
|
|
300
642
|
/**
|
|
301
|
-
* Payload for the transaction.
|
|
643
|
+
* Payload for the transaction.execution_reverted webhook event.
|
|
302
644
|
*/
|
|
303
|
-
export interface
|
|
645
|
+
export interface TransactionExecutionRevertedWebhookPayload {
|
|
304
646
|
/**
|
|
305
647
|
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
306
648
|
*/
|
|
@@ -313,14 +655,10 @@ export interface TransactionStillPendingWebhookPayload {
|
|
|
313
655
|
* The Privy-assigned ID for this transaction.
|
|
314
656
|
*/
|
|
315
657
|
transaction_id: string;
|
|
316
|
-
/**
|
|
317
|
-
* An unsigned Ethereum transaction object.
|
|
318
|
-
*/
|
|
319
|
-
transaction_request: WalletsAPI.UnsignedEthereumTransaction;
|
|
320
658
|
/**
|
|
321
659
|
* The type of webhook event.
|
|
322
660
|
*/
|
|
323
|
-
type: 'transaction.
|
|
661
|
+
type: 'transaction.execution_reverted';
|
|
324
662
|
/**
|
|
325
663
|
* The ID of the wallet that initiated the transaction.
|
|
326
664
|
*/
|
|
@@ -362,9 +700,9 @@ export interface TransactionFailedWebhookPayload {
|
|
|
362
700
|
reference_id?: string | null;
|
|
363
701
|
}
|
|
364
702
|
/**
|
|
365
|
-
* Payload for the transaction.
|
|
703
|
+
* Payload for the transaction.provider_error webhook event.
|
|
366
704
|
*/
|
|
367
|
-
export interface
|
|
705
|
+
export interface TransactionProviderErrorWebhookPayload {
|
|
368
706
|
/**
|
|
369
707
|
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
370
708
|
*/
|
|
@@ -380,7 +718,7 @@ export interface TransactionReplacedWebhookPayload {
|
|
|
380
718
|
/**
|
|
381
719
|
* The type of webhook event.
|
|
382
720
|
*/
|
|
383
|
-
type: 'transaction.
|
|
721
|
+
type: 'transaction.provider_error';
|
|
384
722
|
/**
|
|
385
723
|
* The ID of the wallet that initiated the transaction.
|
|
386
724
|
*/
|
|
@@ -392,9 +730,9 @@ export interface TransactionReplacedWebhookPayload {
|
|
|
392
730
|
reference_id?: string | null;
|
|
393
731
|
}
|
|
394
732
|
/**
|
|
395
|
-
* Payload for the transaction.
|
|
733
|
+
* Payload for the transaction.replaced webhook event.
|
|
396
734
|
*/
|
|
397
|
-
export interface
|
|
735
|
+
export interface TransactionReplacedWebhookPayload {
|
|
398
736
|
/**
|
|
399
737
|
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
400
738
|
*/
|
|
@@ -410,7 +748,7 @@ export interface TransactionProviderErrorWebhookPayload {
|
|
|
410
748
|
/**
|
|
411
749
|
* The type of webhook event.
|
|
412
750
|
*/
|
|
413
|
-
type: 'transaction.
|
|
751
|
+
type: 'transaction.replaced';
|
|
414
752
|
/**
|
|
415
753
|
* The ID of the wallet that initiated the transaction.
|
|
416
754
|
*/
|
|
@@ -422,37 +760,39 @@ export interface TransactionProviderErrorWebhookPayload {
|
|
|
422
760
|
reference_id?: string | null;
|
|
423
761
|
}
|
|
424
762
|
/**
|
|
425
|
-
* Payload for the
|
|
763
|
+
* Payload for the transaction.still_pending webhook event.
|
|
426
764
|
*/
|
|
427
|
-
export interface
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
765
|
+
export interface TransactionStillPendingWebhookPayload {
|
|
766
|
+
/**
|
|
767
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
768
|
+
*/
|
|
431
769
|
caip2: string;
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
sender: string;
|
|
436
|
-
success: boolean;
|
|
770
|
+
/**
|
|
771
|
+
* The blockchain transaction hash.
|
|
772
|
+
*/
|
|
437
773
|
transaction_hash: string;
|
|
438
774
|
/**
|
|
439
|
-
* The
|
|
775
|
+
* The Privy-assigned ID for this transaction.
|
|
440
776
|
*/
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
export interface UserCreatedWebhookPayload {
|
|
777
|
+
transaction_id: string;
|
|
778
|
+
/**
|
|
779
|
+
* An unsigned standard Ethereum transaction object. Supports EVM transaction types
|
|
780
|
+
* 0, 1, 2, and 4.
|
|
781
|
+
*/
|
|
782
|
+
transaction_request: WalletsAPI.UnsignedStandardEthereumTransaction;
|
|
448
783
|
/**
|
|
449
784
|
* The type of webhook event.
|
|
450
785
|
*/
|
|
451
|
-
type: '
|
|
786
|
+
type: 'transaction.still_pending';
|
|
452
787
|
/**
|
|
453
|
-
*
|
|
788
|
+
* The ID of the wallet that initiated the transaction.
|
|
454
789
|
*/
|
|
455
|
-
|
|
790
|
+
wallet_id: string;
|
|
791
|
+
/**
|
|
792
|
+
* Developer-provided reference ID for transaction reconciliation, if one was
|
|
793
|
+
* provided.
|
|
794
|
+
*/
|
|
795
|
+
reference_id?: string | null;
|
|
456
796
|
}
|
|
457
797
|
/**
|
|
458
798
|
* Payload for the user.authenticated webhook event.
|
|
@@ -472,26 +812,22 @@ export interface UserAuthenticatedWebhookPayload {
|
|
|
472
812
|
user: UsersAPI.User;
|
|
473
813
|
}
|
|
474
814
|
/**
|
|
475
|
-
* Payload for the user.
|
|
815
|
+
* Payload for the user.created webhook event.
|
|
476
816
|
*/
|
|
477
|
-
export interface
|
|
478
|
-
/**
|
|
479
|
-
* A linked account for the user.
|
|
480
|
-
*/
|
|
481
|
-
account: UsersAPI.LinkedAccount;
|
|
817
|
+
export interface UserCreatedWebhookPayload {
|
|
482
818
|
/**
|
|
483
819
|
* The type of webhook event.
|
|
484
820
|
*/
|
|
485
|
-
type: 'user.
|
|
821
|
+
type: 'user.created';
|
|
486
822
|
/**
|
|
487
823
|
* A Privy user object.
|
|
488
824
|
*/
|
|
489
825
|
user: UsersAPI.User;
|
|
490
826
|
}
|
|
491
827
|
/**
|
|
492
|
-
* Payload for the user.
|
|
828
|
+
* Payload for the user.linked_account webhook event.
|
|
493
829
|
*/
|
|
494
|
-
export interface
|
|
830
|
+
export interface UserLinkedAccountWebhookPayload {
|
|
495
831
|
/**
|
|
496
832
|
* A linked account for the user.
|
|
497
833
|
*/
|
|
@@ -499,28 +835,31 @@ export interface UserUnlinkedAccountWebhookPayload {
|
|
|
499
835
|
/**
|
|
500
836
|
* The type of webhook event.
|
|
501
837
|
*/
|
|
502
|
-
type: 'user.
|
|
838
|
+
type: 'user.linked_account';
|
|
503
839
|
/**
|
|
504
840
|
* A Privy user object.
|
|
505
841
|
*/
|
|
506
842
|
user: UsersAPI.User;
|
|
507
843
|
}
|
|
508
844
|
/**
|
|
509
|
-
* Payload for the
|
|
845
|
+
* Payload for the user_operation.completed webhook event.
|
|
510
846
|
*/
|
|
511
|
-
export interface
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
847
|
+
export interface UserOperationCompletedWebhookPayload {
|
|
848
|
+
actual_gas_cost: string;
|
|
849
|
+
actual_gas_used: string;
|
|
850
|
+
block_number: number;
|
|
851
|
+
caip2: string;
|
|
852
|
+
log_index: number;
|
|
853
|
+
nonce: string;
|
|
854
|
+
paymaster: string | null;
|
|
855
|
+
sender: string;
|
|
856
|
+
success: boolean;
|
|
857
|
+
transaction_hash: string;
|
|
516
858
|
/**
|
|
517
859
|
* The type of webhook event.
|
|
518
860
|
*/
|
|
519
|
-
type: '
|
|
520
|
-
|
|
521
|
-
* A Privy user object.
|
|
522
|
-
*/
|
|
523
|
-
user: UsersAPI.User;
|
|
861
|
+
type: 'user_operation.completed';
|
|
862
|
+
user_op_hash: string;
|
|
524
863
|
}
|
|
525
864
|
/**
|
|
526
865
|
* Payload for the user.transferred_account webhook event.
|
|
@@ -547,54 +886,92 @@ export declare namespace UserTransferredAccountWebhookPayload {
|
|
|
547
886
|
}
|
|
548
887
|
}
|
|
549
888
|
/**
|
|
550
|
-
* Payload for the user.
|
|
889
|
+
* Payload for the user.unlinked_account webhook event.
|
|
551
890
|
*/
|
|
552
|
-
export interface
|
|
891
|
+
export interface UserUnlinkedAccountWebhookPayload {
|
|
892
|
+
/**
|
|
893
|
+
* A linked account for the user.
|
|
894
|
+
*/
|
|
895
|
+
account: UsersAPI.LinkedAccount;
|
|
553
896
|
/**
|
|
554
897
|
* The type of webhook event.
|
|
555
898
|
*/
|
|
556
|
-
type: 'user.
|
|
899
|
+
type: 'user.unlinked_account';
|
|
557
900
|
/**
|
|
558
901
|
* A Privy user object.
|
|
559
902
|
*/
|
|
560
903
|
user: UsersAPI.User;
|
|
561
|
-
/**
|
|
562
|
-
* Base schema for wallet accounts linked to the user.
|
|
563
|
-
*/
|
|
564
|
-
wallet: UsersAPI.LinkedAccountBaseWallet;
|
|
565
904
|
}
|
|
566
905
|
/**
|
|
567
|
-
* Payload for the
|
|
906
|
+
* Payload for the user.updated_account webhook event.
|
|
568
907
|
*/
|
|
569
|
-
export interface
|
|
908
|
+
export interface UserUpdatedAccountWebhookPayload {
|
|
909
|
+
/**
|
|
910
|
+
* A linked account for the user.
|
|
911
|
+
*/
|
|
912
|
+
account: UsersAPI.LinkedAccount;
|
|
913
|
+
/**
|
|
914
|
+
* The type of webhook event.
|
|
915
|
+
*/
|
|
916
|
+
type: 'user.updated_account';
|
|
917
|
+
/**
|
|
918
|
+
* A Privy user object.
|
|
919
|
+
*/
|
|
920
|
+
user: UsersAPI.User;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Payload for the user.wallet_created webhook event.
|
|
924
|
+
*/
|
|
925
|
+
export interface UserWalletCreatedWebhookPayload {
|
|
926
|
+
/**
|
|
927
|
+
* The type of webhook event.
|
|
928
|
+
*/
|
|
929
|
+
type: 'user.wallet_created';
|
|
930
|
+
/**
|
|
931
|
+
* A Privy user object.
|
|
932
|
+
*/
|
|
933
|
+
user: UsersAPI.User;
|
|
934
|
+
/**
|
|
935
|
+
* Base schema for wallet accounts linked to the user.
|
|
936
|
+
*/
|
|
937
|
+
wallet: UsersAPI.LinkedAccountBaseWallet;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Payload for the wallet_action.earn_deposit.created webhook event.
|
|
941
|
+
*/
|
|
942
|
+
export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
570
943
|
/**
|
|
571
944
|
* Type of wallet action
|
|
572
945
|
*/
|
|
573
946
|
action_type: WalletActionsAPI.WalletActionType;
|
|
574
947
|
/**
|
|
575
|
-
*
|
|
948
|
+
* Underlying asset token address.
|
|
949
|
+
*/
|
|
950
|
+
asset_address: string;
|
|
951
|
+
/**
|
|
952
|
+
* CAIP-2 chain identifier.
|
|
576
953
|
*/
|
|
577
954
|
caip2: string;
|
|
578
955
|
/**
|
|
579
|
-
*
|
|
956
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
580
957
|
*/
|
|
581
|
-
|
|
958
|
+
raw_amount: string;
|
|
582
959
|
/**
|
|
583
|
-
*
|
|
960
|
+
* The status of the wallet action.
|
|
584
961
|
*/
|
|
585
|
-
|
|
962
|
+
status: 'pending';
|
|
586
963
|
/**
|
|
587
|
-
*
|
|
964
|
+
* The type of webhook event.
|
|
588
965
|
*/
|
|
589
|
-
|
|
966
|
+
type: 'wallet_action.earn_deposit.created';
|
|
590
967
|
/**
|
|
591
|
-
*
|
|
968
|
+
* ERC-4626 vault contract address.
|
|
592
969
|
*/
|
|
593
|
-
|
|
970
|
+
vault_address: string;
|
|
594
971
|
/**
|
|
595
|
-
* The
|
|
972
|
+
* The vault ID.
|
|
596
973
|
*/
|
|
597
|
-
|
|
974
|
+
vault_id: string;
|
|
598
975
|
/**
|
|
599
976
|
* The ID of the wallet action.
|
|
600
977
|
*/
|
|
@@ -603,48 +980,67 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
603
980
|
* The ID of the wallet involved in the action.
|
|
604
981
|
*/
|
|
605
982
|
wallet_id: string;
|
|
983
|
+
/**
|
|
984
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
985
|
+
* the token is known in the asset registry.
|
|
986
|
+
*/
|
|
987
|
+
amount?: string;
|
|
988
|
+
/**
|
|
989
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
990
|
+
* the asset registry.
|
|
991
|
+
*/
|
|
992
|
+
asset?: string;
|
|
993
|
+
/**
|
|
994
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
995
|
+
* present when the token is known in the asset registry.
|
|
996
|
+
*/
|
|
997
|
+
decimals?: number;
|
|
606
998
|
}
|
|
607
999
|
/**
|
|
608
|
-
* Payload for the wallet_action.
|
|
1000
|
+
* Payload for the wallet_action.earn_deposit.failed webhook event.
|
|
609
1001
|
*/
|
|
610
|
-
export interface
|
|
1002
|
+
export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
611
1003
|
/**
|
|
612
1004
|
* Type of wallet action
|
|
613
1005
|
*/
|
|
614
1006
|
action_type: WalletActionsAPI.WalletActionType;
|
|
615
1007
|
/**
|
|
616
|
-
*
|
|
1008
|
+
* Underlying asset token address.
|
|
1009
|
+
*/
|
|
1010
|
+
asset_address: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* CAIP-2 chain identifier.
|
|
617
1013
|
*/
|
|
618
1014
|
caip2: string;
|
|
619
1015
|
/**
|
|
620
|
-
*
|
|
1016
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
621
1017
|
*/
|
|
622
|
-
|
|
1018
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
623
1019
|
/**
|
|
624
|
-
*
|
|
1020
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
625
1021
|
*/
|
|
626
|
-
|
|
1022
|
+
raw_amount: string;
|
|
627
1023
|
/**
|
|
628
|
-
*
|
|
629
|
-
* confirmation.
|
|
1024
|
+
* The status of the wallet action.
|
|
630
1025
|
*/
|
|
631
|
-
|
|
1026
|
+
status: 'failed';
|
|
632
1027
|
/**
|
|
633
|
-
*
|
|
1028
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1029
|
+
* the failing step will have a failure_reason.
|
|
634
1030
|
*/
|
|
635
|
-
|
|
1031
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
636
1032
|
/**
|
|
637
|
-
*
|
|
1033
|
+
* The type of webhook event.
|
|
638
1034
|
*/
|
|
639
|
-
|
|
1035
|
+
type: 'wallet_action.earn_deposit.failed';
|
|
640
1036
|
/**
|
|
641
|
-
*
|
|
1037
|
+
* ERC-4626 vault contract address.
|
|
642
1038
|
*/
|
|
643
|
-
|
|
1039
|
+
vault_address: string;
|
|
644
1040
|
/**
|
|
645
|
-
* The
|
|
1041
|
+
* The vault ID.
|
|
646
1042
|
*/
|
|
647
|
-
|
|
1043
|
+
vault_id: string;
|
|
648
1044
|
/**
|
|
649
1045
|
* The ID of the wallet action.
|
|
650
1046
|
*/
|
|
@@ -653,17 +1049,36 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
653
1049
|
* The ID of the wallet involved in the action.
|
|
654
1050
|
*/
|
|
655
1051
|
wallet_id: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
1054
|
+
* the token is known in the asset registry.
|
|
1055
|
+
*/
|
|
1056
|
+
amount?: string;
|
|
1057
|
+
/**
|
|
1058
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1059
|
+
* the asset registry.
|
|
1060
|
+
*/
|
|
1061
|
+
asset?: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1064
|
+
* present when the token is known in the asset registry.
|
|
1065
|
+
*/
|
|
1066
|
+
decimals?: number;
|
|
656
1067
|
}
|
|
657
1068
|
/**
|
|
658
|
-
* Payload for the wallet_action.
|
|
1069
|
+
* Payload for the wallet_action.earn_deposit.rejected webhook event.
|
|
659
1070
|
*/
|
|
660
|
-
export interface
|
|
1071
|
+
export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
661
1072
|
/**
|
|
662
1073
|
* Type of wallet action
|
|
663
1074
|
*/
|
|
664
1075
|
action_type: WalletActionsAPI.WalletActionType;
|
|
665
1076
|
/**
|
|
666
|
-
*
|
|
1077
|
+
* Underlying asset token address.
|
|
1078
|
+
*/
|
|
1079
|
+
asset_address: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* CAIP-2 chain identifier.
|
|
667
1082
|
*/
|
|
668
1083
|
caip2: string;
|
|
669
1084
|
/**
|
|
@@ -671,29 +1086,29 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
671
1086
|
*/
|
|
672
1087
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
673
1088
|
/**
|
|
674
|
-
*
|
|
1089
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
675
1090
|
*/
|
|
676
|
-
|
|
1091
|
+
raw_amount: string;
|
|
677
1092
|
/**
|
|
678
|
-
*
|
|
1093
|
+
* The status of the wallet action.
|
|
679
1094
|
*/
|
|
680
|
-
|
|
1095
|
+
status: 'rejected';
|
|
681
1096
|
/**
|
|
682
|
-
*
|
|
1097
|
+
* The steps of the wallet action at the time of rejection.
|
|
683
1098
|
*/
|
|
684
|
-
|
|
1099
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
685
1100
|
/**
|
|
686
|
-
*
|
|
1101
|
+
* The type of webhook event.
|
|
687
1102
|
*/
|
|
688
|
-
|
|
1103
|
+
type: 'wallet_action.earn_deposit.rejected';
|
|
689
1104
|
/**
|
|
690
|
-
*
|
|
1105
|
+
* ERC-4626 vault contract address.
|
|
691
1106
|
*/
|
|
692
|
-
|
|
1107
|
+
vault_address: string;
|
|
693
1108
|
/**
|
|
694
|
-
* The
|
|
1109
|
+
* The vault ID.
|
|
695
1110
|
*/
|
|
696
|
-
|
|
1111
|
+
vault_id: string;
|
|
697
1112
|
/**
|
|
698
1113
|
* The ID of the wallet action.
|
|
699
1114
|
*/
|
|
@@ -702,48 +1117,66 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
702
1117
|
* The ID of the wallet involved in the action.
|
|
703
1118
|
*/
|
|
704
1119
|
wallet_id: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
1122
|
+
* the token is known in the asset registry.
|
|
1123
|
+
*/
|
|
1124
|
+
amount?: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1127
|
+
* the asset registry.
|
|
1128
|
+
*/
|
|
1129
|
+
asset?: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1132
|
+
* present when the token is known in the asset registry.
|
|
1133
|
+
*/
|
|
1134
|
+
decimals?: number;
|
|
705
1135
|
}
|
|
706
1136
|
/**
|
|
707
|
-
* Payload for the wallet_action.
|
|
1137
|
+
* Payload for the wallet_action.earn_deposit.succeeded webhook event.
|
|
708
1138
|
*/
|
|
709
|
-
export interface
|
|
1139
|
+
export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
710
1140
|
/**
|
|
711
1141
|
* Type of wallet action
|
|
712
1142
|
*/
|
|
713
1143
|
action_type: WalletActionsAPI.WalletActionType;
|
|
714
1144
|
/**
|
|
715
|
-
*
|
|
1145
|
+
* Underlying asset token address.
|
|
1146
|
+
*/
|
|
1147
|
+
asset_address: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* CAIP-2 chain identifier.
|
|
716
1150
|
*/
|
|
717
1151
|
caip2: string;
|
|
718
1152
|
/**
|
|
719
|
-
*
|
|
1153
|
+
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
720
1154
|
*/
|
|
721
|
-
|
|
1155
|
+
raw_amount: string;
|
|
722
1156
|
/**
|
|
723
|
-
*
|
|
1157
|
+
* Vault shares received in base units.
|
|
724
1158
|
*/
|
|
725
|
-
|
|
1159
|
+
share_amount: string;
|
|
726
1160
|
/**
|
|
727
|
-
*
|
|
1161
|
+
* The status of the wallet action.
|
|
728
1162
|
*/
|
|
729
|
-
|
|
1163
|
+
status: 'succeeded';
|
|
730
1164
|
/**
|
|
731
|
-
*
|
|
1165
|
+
* The steps of the wallet action, including transaction hashes.
|
|
732
1166
|
*/
|
|
733
|
-
|
|
1167
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
734
1168
|
/**
|
|
735
|
-
*
|
|
1169
|
+
* The type of webhook event.
|
|
736
1170
|
*/
|
|
737
|
-
|
|
1171
|
+
type: 'wallet_action.earn_deposit.succeeded';
|
|
738
1172
|
/**
|
|
739
|
-
*
|
|
740
|
-
* the failing step will have a failure_reason.
|
|
1173
|
+
* ERC-4626 vault contract address.
|
|
741
1174
|
*/
|
|
742
|
-
|
|
1175
|
+
vault_address: string;
|
|
743
1176
|
/**
|
|
744
|
-
* The
|
|
1177
|
+
* The vault ID.
|
|
745
1178
|
*/
|
|
746
|
-
|
|
1179
|
+
vault_id: string;
|
|
747
1180
|
/**
|
|
748
1181
|
* The ID of the wallet action.
|
|
749
1182
|
*/
|
|
@@ -752,39 +1185,46 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
752
1185
|
* The ID of the wallet involved in the action.
|
|
753
1186
|
*/
|
|
754
1187
|
wallet_id: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* Human-readable decimal amount of asset deposited (e.g. "1.5"). Only present when
|
|
1190
|
+
* the token is known in the asset registry.
|
|
1191
|
+
*/
|
|
1192
|
+
amount?: string;
|
|
1193
|
+
/**
|
|
1194
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1195
|
+
* the asset registry.
|
|
1196
|
+
*/
|
|
1197
|
+
asset?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1200
|
+
* present when the token is known in the asset registry.
|
|
1201
|
+
*/
|
|
1202
|
+
decimals?: number;
|
|
755
1203
|
}
|
|
756
1204
|
/**
|
|
757
|
-
* Payload for the wallet_action.
|
|
1205
|
+
* Payload for the wallet_action.earn_incentive_claim.created webhook event.
|
|
758
1206
|
*/
|
|
759
|
-
export interface
|
|
1207
|
+
export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
760
1208
|
/**
|
|
761
1209
|
* Type of wallet action
|
|
762
1210
|
*/
|
|
763
1211
|
action_type: WalletActionsAPI.WalletActionType;
|
|
764
1212
|
/**
|
|
765
|
-
*
|
|
766
|
-
*/
|
|
767
|
-
destination_address: string;
|
|
768
|
-
/**
|
|
769
|
-
* Decimal amount as provided by the user (e.g. "1.5").
|
|
770
|
-
*/
|
|
771
|
-
source_amount: string;
|
|
772
|
-
/**
|
|
773
|
-
* Asset identifier (e.g. "usdc", "eth").
|
|
1213
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
774
1214
|
*/
|
|
775
|
-
|
|
1215
|
+
chain: string;
|
|
776
1216
|
/**
|
|
777
|
-
*
|
|
1217
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
778
1218
|
*/
|
|
779
|
-
|
|
1219
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
780
1220
|
/**
|
|
781
|
-
*
|
|
1221
|
+
* The status of the wallet action.
|
|
782
1222
|
*/
|
|
783
|
-
status:
|
|
1223
|
+
status: 'pending';
|
|
784
1224
|
/**
|
|
785
1225
|
* The type of webhook event.
|
|
786
1226
|
*/
|
|
787
|
-
type: 'wallet_action.
|
|
1227
|
+
type: 'wallet_action.earn_incentive_claim.created';
|
|
788
1228
|
/**
|
|
789
1229
|
* The ID of the wallet action.
|
|
790
1230
|
*/
|
|
@@ -795,41 +1235,38 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
795
1235
|
wallet_id: string;
|
|
796
1236
|
}
|
|
797
1237
|
/**
|
|
798
|
-
* Payload for the wallet_action.
|
|
1238
|
+
* Payload for the wallet_action.earn_incentive_claim.failed webhook event.
|
|
799
1239
|
*/
|
|
800
|
-
export interface
|
|
1240
|
+
export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
801
1241
|
/**
|
|
802
1242
|
* Type of wallet action
|
|
803
1243
|
*/
|
|
804
1244
|
action_type: WalletActionsAPI.WalletActionType;
|
|
805
1245
|
/**
|
|
806
|
-
*
|
|
807
|
-
*/
|
|
808
|
-
destination_address: string;
|
|
809
|
-
/**
|
|
810
|
-
* Decimal amount as provided by the user (e.g. "1.5").
|
|
1246
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
811
1247
|
*/
|
|
812
|
-
|
|
1248
|
+
chain: string;
|
|
813
1249
|
/**
|
|
814
|
-
*
|
|
1250
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
815
1251
|
*/
|
|
816
|
-
|
|
1252
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
817
1253
|
/**
|
|
818
|
-
*
|
|
1254
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
819
1255
|
*/
|
|
820
|
-
|
|
1256
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
821
1257
|
/**
|
|
822
|
-
*
|
|
1258
|
+
* The status of the wallet action.
|
|
823
1259
|
*/
|
|
824
|
-
status:
|
|
1260
|
+
status: 'failed';
|
|
825
1261
|
/**
|
|
826
|
-
* The steps of the wallet action
|
|
1262
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1263
|
+
* the failing step will have a failure_reason.
|
|
827
1264
|
*/
|
|
828
1265
|
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
829
1266
|
/**
|
|
830
1267
|
* The type of webhook event.
|
|
831
1268
|
*/
|
|
832
|
-
type: 'wallet_action.
|
|
1269
|
+
type: 'wallet_action.earn_incentive_claim.failed';
|
|
833
1270
|
/**
|
|
834
1271
|
* The ID of the wallet action.
|
|
835
1272
|
*/
|
|
@@ -840,37 +1277,29 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
840
1277
|
wallet_id: string;
|
|
841
1278
|
}
|
|
842
1279
|
/**
|
|
843
|
-
* Payload for the wallet_action.
|
|
1280
|
+
* Payload for the wallet_action.earn_incentive_claim.rejected webhook event.
|
|
844
1281
|
*/
|
|
845
|
-
export interface
|
|
1282
|
+
export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
846
1283
|
/**
|
|
847
1284
|
* Type of wallet action
|
|
848
1285
|
*/
|
|
849
1286
|
action_type: WalletActionsAPI.WalletActionType;
|
|
850
1287
|
/**
|
|
851
|
-
*
|
|
1288
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
852
1289
|
*/
|
|
853
|
-
|
|
1290
|
+
chain: string;
|
|
854
1291
|
/**
|
|
855
1292
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
856
1293
|
*/
|
|
857
1294
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
858
1295
|
/**
|
|
859
|
-
*
|
|
860
|
-
*/
|
|
861
|
-
source_amount: string;
|
|
862
|
-
/**
|
|
863
|
-
* Asset identifier (e.g. "usdc", "eth").
|
|
864
|
-
*/
|
|
865
|
-
source_asset: string;
|
|
866
|
-
/**
|
|
867
|
-
* Chain name (e.g. "base", "ethereum").
|
|
1296
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
868
1297
|
*/
|
|
869
|
-
|
|
1298
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
870
1299
|
/**
|
|
871
|
-
*
|
|
1300
|
+
* The status of the wallet action.
|
|
872
1301
|
*/
|
|
873
|
-
status:
|
|
1302
|
+
status: 'rejected';
|
|
874
1303
|
/**
|
|
875
1304
|
* The steps of the wallet action at the time of rejection.
|
|
876
1305
|
*/
|
|
@@ -878,7 +1307,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
878
1307
|
/**
|
|
879
1308
|
* The type of webhook event.
|
|
880
1309
|
*/
|
|
881
|
-
type: 'wallet_action.
|
|
1310
|
+
type: 'wallet_action.earn_incentive_claim.rejected';
|
|
882
1311
|
/**
|
|
883
1312
|
* The ID of the wallet action.
|
|
884
1313
|
*/
|
|
@@ -889,46 +1318,78 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
889
1318
|
wallet_id: string;
|
|
890
1319
|
}
|
|
891
1320
|
/**
|
|
892
|
-
* Payload for the wallet_action.
|
|
1321
|
+
* Payload for the wallet_action.earn_incentive_claim.succeeded webhook event.
|
|
893
1322
|
*/
|
|
894
|
-
export interface
|
|
1323
|
+
export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
895
1324
|
/**
|
|
896
1325
|
* Type of wallet action
|
|
897
1326
|
*/
|
|
898
1327
|
action_type: WalletActionsAPI.WalletActionType;
|
|
899
1328
|
/**
|
|
900
|
-
*
|
|
1329
|
+
* EVM chain name (e.g. "base", "ethereum").
|
|
901
1330
|
*/
|
|
902
|
-
|
|
1331
|
+
chain: string;
|
|
903
1332
|
/**
|
|
904
|
-
*
|
|
1333
|
+
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
905
1334
|
*/
|
|
906
|
-
|
|
1335
|
+
rewards: Array<WalletActionsAPI.EarnIncetiveClaimRewardEntry> | null;
|
|
907
1336
|
/**
|
|
908
|
-
*
|
|
1337
|
+
* The status of the wallet action.
|
|
909
1338
|
*/
|
|
910
|
-
|
|
1339
|
+
status: 'succeeded';
|
|
911
1340
|
/**
|
|
912
|
-
*
|
|
1341
|
+
* The steps of the wallet action, including transaction hashes.
|
|
913
1342
|
*/
|
|
914
|
-
|
|
1343
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
915
1344
|
/**
|
|
916
|
-
*
|
|
1345
|
+
* The type of webhook event.
|
|
917
1346
|
*/
|
|
918
|
-
|
|
1347
|
+
type: 'wallet_action.earn_incentive_claim.succeeded';
|
|
919
1348
|
/**
|
|
920
|
-
*
|
|
1349
|
+
* The ID of the wallet action.
|
|
921
1350
|
*/
|
|
922
|
-
|
|
1351
|
+
wallet_action_id: string;
|
|
923
1352
|
/**
|
|
924
|
-
* The
|
|
925
|
-
* the failing step will have a failure_reason.
|
|
1353
|
+
* The ID of the wallet involved in the action.
|
|
926
1354
|
*/
|
|
927
|
-
|
|
1355
|
+
wallet_id: string;
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Payload for the wallet_action.earn_withdraw.created webhook event.
|
|
1359
|
+
*/
|
|
1360
|
+
export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
1361
|
+
/**
|
|
1362
|
+
* Type of wallet action
|
|
1363
|
+
*/
|
|
1364
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1365
|
+
/**
|
|
1366
|
+
* Underlying asset token address.
|
|
1367
|
+
*/
|
|
1368
|
+
asset_address: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* CAIP-2 chain identifier.
|
|
1371
|
+
*/
|
|
1372
|
+
caip2: string;
|
|
1373
|
+
/**
|
|
1374
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1375
|
+
*/
|
|
1376
|
+
raw_amount: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* The status of the wallet action.
|
|
1379
|
+
*/
|
|
1380
|
+
status: 'pending';
|
|
928
1381
|
/**
|
|
929
1382
|
* The type of webhook event.
|
|
930
1383
|
*/
|
|
931
|
-
type: 'wallet_action.
|
|
1384
|
+
type: 'wallet_action.earn_withdraw.created';
|
|
1385
|
+
/**
|
|
1386
|
+
* ERC-4626 vault contract address.
|
|
1387
|
+
*/
|
|
1388
|
+
vault_address: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* The vault ID.
|
|
1391
|
+
*/
|
|
1392
|
+
vault_id: string;
|
|
932
1393
|
/**
|
|
933
1394
|
* The ID of the wallet action.
|
|
934
1395
|
*/
|
|
@@ -937,244 +1398,692 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
937
1398
|
* The ID of the wallet involved in the action.
|
|
938
1399
|
*/
|
|
939
1400
|
wallet_id: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1403
|
+
* the token is known in the asset registry.
|
|
1404
|
+
*/
|
|
1405
|
+
amount?: string;
|
|
1406
|
+
/**
|
|
1407
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1408
|
+
* the asset registry.
|
|
1409
|
+
*/
|
|
1410
|
+
asset?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1413
|
+
* present when the token is known in the asset registry.
|
|
1414
|
+
*/
|
|
1415
|
+
decimals?: number;
|
|
940
1416
|
}
|
|
941
1417
|
/**
|
|
942
|
-
* Payload for the
|
|
1418
|
+
* Payload for the wallet_action.earn_withdraw.failed webhook event.
|
|
943
1419
|
*/
|
|
944
|
-
export interface
|
|
1420
|
+
export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
945
1421
|
/**
|
|
946
|
-
*
|
|
1422
|
+
* Type of wallet action
|
|
947
1423
|
*/
|
|
948
|
-
|
|
1424
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
949
1425
|
/**
|
|
950
|
-
*
|
|
1426
|
+
* Underlying asset token address.
|
|
951
1427
|
*/
|
|
952
|
-
|
|
953
|
-
block: FundsDepositedWebhookPayload.Block;
|
|
1428
|
+
asset_address: string;
|
|
954
1429
|
/**
|
|
955
|
-
*
|
|
1430
|
+
* CAIP-2 chain identifier.
|
|
956
1431
|
*/
|
|
957
1432
|
caip2: string;
|
|
958
1433
|
/**
|
|
959
|
-
* A
|
|
1434
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
960
1435
|
*/
|
|
961
|
-
|
|
1436
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
962
1437
|
/**
|
|
963
|
-
*
|
|
1438
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
964
1439
|
*/
|
|
965
|
-
|
|
1440
|
+
raw_amount: string;
|
|
966
1441
|
/**
|
|
967
|
-
* The
|
|
1442
|
+
* The status of the wallet action.
|
|
968
1443
|
*/
|
|
969
|
-
|
|
1444
|
+
status: 'failed';
|
|
970
1445
|
/**
|
|
971
|
-
* The
|
|
1446
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1447
|
+
* the failing step will have a failure_reason.
|
|
972
1448
|
*/
|
|
973
|
-
|
|
1449
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
974
1450
|
/**
|
|
975
1451
|
* The type of webhook event.
|
|
976
1452
|
*/
|
|
977
|
-
type: '
|
|
1453
|
+
type: 'wallet_action.earn_withdraw.failed';
|
|
978
1454
|
/**
|
|
979
|
-
*
|
|
1455
|
+
* ERC-4626 vault contract address.
|
|
1456
|
+
*/
|
|
1457
|
+
vault_address: string;
|
|
1458
|
+
/**
|
|
1459
|
+
* The vault ID.
|
|
1460
|
+
*/
|
|
1461
|
+
vault_id: string;
|
|
1462
|
+
/**
|
|
1463
|
+
* The ID of the wallet action.
|
|
1464
|
+
*/
|
|
1465
|
+
wallet_action_id: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* The ID of the wallet involved in the action.
|
|
980
1468
|
*/
|
|
981
1469
|
wallet_id: string;
|
|
982
1470
|
/**
|
|
983
|
-
*
|
|
1471
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1472
|
+
* the token is known in the asset registry.
|
|
984
1473
|
*/
|
|
985
|
-
|
|
1474
|
+
amount?: string;
|
|
986
1475
|
/**
|
|
987
|
-
*
|
|
1476
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1477
|
+
* the asset registry.
|
|
988
1478
|
*/
|
|
989
|
-
|
|
1479
|
+
asset?: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1482
|
+
* present when the token is known in the asset registry.
|
|
1483
|
+
*/
|
|
1484
|
+
decimals?: number;
|
|
990
1485
|
}
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
method: 'transfer';
|
|
1059
|
-
transfer_id: string;
|
|
1060
|
-
type: 'fiat_deposit';
|
|
1061
|
-
}
|
|
1062
|
-
interface BridgeMetadataUnionMember5 {
|
|
1063
|
-
method: 'transfer';
|
|
1064
|
-
transfer_id: string;
|
|
1065
|
-
type: 'refund';
|
|
1066
|
-
/**
|
|
1067
|
-
* The original transfer transaction hash (if available).
|
|
1068
|
-
*/
|
|
1069
|
-
original_transaction_hash?: string;
|
|
1070
|
-
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Payload for the wallet_action.earn_withdraw.rejected webhook event.
|
|
1488
|
+
*/
|
|
1489
|
+
export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
1490
|
+
/**
|
|
1491
|
+
* Type of wallet action
|
|
1492
|
+
*/
|
|
1493
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1494
|
+
/**
|
|
1495
|
+
* Underlying asset token address.
|
|
1496
|
+
*/
|
|
1497
|
+
asset_address: string;
|
|
1498
|
+
/**
|
|
1499
|
+
* CAIP-2 chain identifier.
|
|
1500
|
+
*/
|
|
1501
|
+
caip2: string;
|
|
1502
|
+
/**
|
|
1503
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1504
|
+
*/
|
|
1505
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1506
|
+
/**
|
|
1507
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1508
|
+
*/
|
|
1509
|
+
raw_amount: string;
|
|
1510
|
+
/**
|
|
1511
|
+
* The status of the wallet action.
|
|
1512
|
+
*/
|
|
1513
|
+
status: 'rejected';
|
|
1514
|
+
/**
|
|
1515
|
+
* The steps of the wallet action at the time of rejection.
|
|
1516
|
+
*/
|
|
1517
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1518
|
+
/**
|
|
1519
|
+
* The type of webhook event.
|
|
1520
|
+
*/
|
|
1521
|
+
type: 'wallet_action.earn_withdraw.rejected';
|
|
1522
|
+
/**
|
|
1523
|
+
* ERC-4626 vault contract address.
|
|
1524
|
+
*/
|
|
1525
|
+
vault_address: string;
|
|
1526
|
+
/**
|
|
1527
|
+
* The vault ID.
|
|
1528
|
+
*/
|
|
1529
|
+
vault_id: string;
|
|
1530
|
+
/**
|
|
1531
|
+
* The ID of the wallet action.
|
|
1532
|
+
*/
|
|
1533
|
+
wallet_action_id: string;
|
|
1534
|
+
/**
|
|
1535
|
+
* The ID of the wallet involved in the action.
|
|
1536
|
+
*/
|
|
1537
|
+
wallet_id: string;
|
|
1538
|
+
/**
|
|
1539
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1540
|
+
* the token is known in the asset registry.
|
|
1541
|
+
*/
|
|
1542
|
+
amount?: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1545
|
+
* the asset registry.
|
|
1546
|
+
*/
|
|
1547
|
+
asset?: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1550
|
+
* present when the token is known in the asset registry.
|
|
1551
|
+
*/
|
|
1552
|
+
decimals?: number;
|
|
1071
1553
|
}
|
|
1072
1554
|
/**
|
|
1073
|
-
* Payload for the
|
|
1555
|
+
* Payload for the wallet_action.earn_withdraw.succeeded webhook event.
|
|
1074
1556
|
*/
|
|
1075
|
-
export interface
|
|
1557
|
+
export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
1076
1558
|
/**
|
|
1077
|
-
*
|
|
1559
|
+
* Type of wallet action
|
|
1078
1560
|
*/
|
|
1079
|
-
|
|
1561
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1080
1562
|
/**
|
|
1081
|
-
*
|
|
1563
|
+
* Underlying asset token address.
|
|
1082
1564
|
*/
|
|
1083
|
-
|
|
1084
|
-
block: FundsWithdrawnWebhookPayload.Block;
|
|
1565
|
+
asset_address: string;
|
|
1085
1566
|
/**
|
|
1086
|
-
*
|
|
1567
|
+
* CAIP-2 chain identifier.
|
|
1568
|
+
*/
|
|
1569
|
+
caip2: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1572
|
+
*/
|
|
1573
|
+
raw_amount: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* Vault shares burned in base units.
|
|
1576
|
+
*/
|
|
1577
|
+
share_amount: string;
|
|
1578
|
+
/**
|
|
1579
|
+
* The status of the wallet action.
|
|
1580
|
+
*/
|
|
1581
|
+
status: 'succeeded';
|
|
1582
|
+
/**
|
|
1583
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1584
|
+
*/
|
|
1585
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1586
|
+
/**
|
|
1587
|
+
* The type of webhook event.
|
|
1588
|
+
*/
|
|
1589
|
+
type: 'wallet_action.earn_withdraw.succeeded';
|
|
1590
|
+
/**
|
|
1591
|
+
* ERC-4626 vault contract address.
|
|
1592
|
+
*/
|
|
1593
|
+
vault_address: string;
|
|
1594
|
+
/**
|
|
1595
|
+
* The vault ID.
|
|
1596
|
+
*/
|
|
1597
|
+
vault_id: string;
|
|
1598
|
+
/**
|
|
1599
|
+
* The ID of the wallet action.
|
|
1600
|
+
*/
|
|
1601
|
+
wallet_action_id: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* The ID of the wallet involved in the action.
|
|
1604
|
+
*/
|
|
1605
|
+
wallet_id: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Human-readable decimal amount of asset withdrawn (e.g. "1.5"). Only present when
|
|
1608
|
+
* the token is known in the asset registry.
|
|
1609
|
+
*/
|
|
1610
|
+
amount?: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* Asset identifier (e.g. "usdc", "eth"). Only present when the token is known in
|
|
1613
|
+
* the asset registry.
|
|
1614
|
+
*/
|
|
1615
|
+
asset?: string;
|
|
1616
|
+
/**
|
|
1617
|
+
* Number of decimals for the underlying asset (e.g. 6 for USDC, 18 for ETH). Only
|
|
1618
|
+
* present when the token is known in the asset registry.
|
|
1619
|
+
*/
|
|
1620
|
+
decimals?: number;
|
|
1621
|
+
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Payload for the wallet_action.swap.created webhook event.
|
|
1624
|
+
*/
|
|
1625
|
+
export interface WalletActionSwapCreatedWebhookPayload {
|
|
1626
|
+
/**
|
|
1627
|
+
* Type of wallet action
|
|
1628
|
+
*/
|
|
1629
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1630
|
+
/**
|
|
1631
|
+
* Chain identifier.
|
|
1632
|
+
*/
|
|
1633
|
+
caip2: string;
|
|
1634
|
+
/**
|
|
1635
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
1636
|
+
*/
|
|
1637
|
+
input_amount: string | null;
|
|
1638
|
+
/**
|
|
1639
|
+
* Token address being sold.
|
|
1640
|
+
*/
|
|
1641
|
+
input_token: string;
|
|
1642
|
+
/**
|
|
1643
|
+
* Token address being bought.
|
|
1644
|
+
*/
|
|
1645
|
+
output_token: string;
|
|
1646
|
+
/**
|
|
1647
|
+
* The status of the wallet action.
|
|
1648
|
+
*/
|
|
1649
|
+
status: 'pending';
|
|
1650
|
+
/**
|
|
1651
|
+
* The type of webhook event.
|
|
1652
|
+
*/
|
|
1653
|
+
type: 'wallet_action.swap.created';
|
|
1654
|
+
/**
|
|
1655
|
+
* The ID of the wallet action.
|
|
1656
|
+
*/
|
|
1657
|
+
wallet_action_id: string;
|
|
1658
|
+
/**
|
|
1659
|
+
* The ID of the wallet involved in the action.
|
|
1660
|
+
*/
|
|
1661
|
+
wallet_id: string;
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Payload for the wallet_action.swap.failed webhook event.
|
|
1665
|
+
*/
|
|
1666
|
+
export interface WalletActionSwapFailedWebhookPayload {
|
|
1667
|
+
/**
|
|
1668
|
+
* Type of wallet action
|
|
1669
|
+
*/
|
|
1670
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1671
|
+
/**
|
|
1672
|
+
* Chain identifier.
|
|
1673
|
+
*/
|
|
1674
|
+
caip2: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1677
|
+
*/
|
|
1678
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1679
|
+
/**
|
|
1680
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
1681
|
+
*/
|
|
1682
|
+
input_amount: string | null;
|
|
1683
|
+
/**
|
|
1684
|
+
* Token address being sold.
|
|
1685
|
+
*/
|
|
1686
|
+
input_token: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* Token address being bought.
|
|
1689
|
+
*/
|
|
1690
|
+
output_token: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* The status of the wallet action.
|
|
1693
|
+
*/
|
|
1694
|
+
status: 'failed';
|
|
1695
|
+
/**
|
|
1696
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1697
|
+
* the failing step will have a failure_reason.
|
|
1698
|
+
*/
|
|
1699
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1700
|
+
/**
|
|
1701
|
+
* The type of webhook event.
|
|
1702
|
+
*/
|
|
1703
|
+
type: 'wallet_action.swap.failed';
|
|
1704
|
+
/**
|
|
1705
|
+
* The ID of the wallet action.
|
|
1706
|
+
*/
|
|
1707
|
+
wallet_action_id: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* The ID of the wallet involved in the action.
|
|
1710
|
+
*/
|
|
1711
|
+
wallet_id: string;
|
|
1712
|
+
}
|
|
1713
|
+
/**
|
|
1714
|
+
* Payload for the wallet_action.swap.rejected webhook event.
|
|
1715
|
+
*/
|
|
1716
|
+
export interface WalletActionSwapRejectedWebhookPayload {
|
|
1717
|
+
/**
|
|
1718
|
+
* Type of wallet action
|
|
1719
|
+
*/
|
|
1720
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1721
|
+
/**
|
|
1722
|
+
* Chain identifier.
|
|
1723
|
+
*/
|
|
1724
|
+
caip2: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1727
|
+
*/
|
|
1728
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1729
|
+
/**
|
|
1730
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
1731
|
+
*/
|
|
1732
|
+
input_amount: string | null;
|
|
1733
|
+
/**
|
|
1734
|
+
* Token address being sold.
|
|
1735
|
+
*/
|
|
1736
|
+
input_token: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* Token address being bought.
|
|
1739
|
+
*/
|
|
1740
|
+
output_token: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* The status of the wallet action.
|
|
1743
|
+
*/
|
|
1744
|
+
status: 'rejected';
|
|
1745
|
+
/**
|
|
1746
|
+
* The steps of the wallet action at the time of rejection.
|
|
1747
|
+
*/
|
|
1748
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1749
|
+
/**
|
|
1750
|
+
* The type of webhook event.
|
|
1751
|
+
*/
|
|
1752
|
+
type: 'wallet_action.swap.rejected';
|
|
1753
|
+
/**
|
|
1754
|
+
* The ID of the wallet action.
|
|
1755
|
+
*/
|
|
1756
|
+
wallet_action_id: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* The ID of the wallet involved in the action.
|
|
1759
|
+
*/
|
|
1760
|
+
wallet_id: string;
|
|
1761
|
+
}
|
|
1762
|
+
/**
|
|
1763
|
+
* Payload for the wallet_action.swap.succeeded webhook event.
|
|
1764
|
+
*/
|
|
1765
|
+
export interface WalletActionSwapSucceededWebhookPayload {
|
|
1766
|
+
/**
|
|
1767
|
+
* Type of wallet action
|
|
1768
|
+
*/
|
|
1769
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1770
|
+
/**
|
|
1771
|
+
* Chain identifier.
|
|
1772
|
+
*/
|
|
1773
|
+
caip2: string;
|
|
1774
|
+
/**
|
|
1775
|
+
* Amount of input token in base units. Populated after on-chain confirmation.
|
|
1776
|
+
*/
|
|
1777
|
+
input_amount: string | null;
|
|
1778
|
+
/**
|
|
1779
|
+
* Token address being sold.
|
|
1780
|
+
*/
|
|
1781
|
+
input_token: string;
|
|
1782
|
+
/**
|
|
1783
|
+
* Amount of output token received, in base units. Populated after on-chain
|
|
1784
|
+
* confirmation.
|
|
1785
|
+
*/
|
|
1786
|
+
output_amount: string | null;
|
|
1787
|
+
/**
|
|
1788
|
+
* Token address being bought.
|
|
1789
|
+
*/
|
|
1790
|
+
output_token: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* The status of the wallet action.
|
|
1793
|
+
*/
|
|
1794
|
+
status: 'succeeded';
|
|
1795
|
+
/**
|
|
1796
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1797
|
+
*/
|
|
1798
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1799
|
+
/**
|
|
1800
|
+
* The type of webhook event.
|
|
1801
|
+
*/
|
|
1802
|
+
type: 'wallet_action.swap.succeeded';
|
|
1803
|
+
/**
|
|
1804
|
+
* The ID of the wallet action.
|
|
1805
|
+
*/
|
|
1806
|
+
wallet_action_id: string;
|
|
1807
|
+
/**
|
|
1808
|
+
* The ID of the wallet involved in the action.
|
|
1809
|
+
*/
|
|
1810
|
+
wallet_id: string;
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* Payload for the wallet_action.transfer.created webhook event.
|
|
1814
|
+
*/
|
|
1815
|
+
export interface WalletActionTransferCreatedWebhookPayload {
|
|
1816
|
+
/**
|
|
1817
|
+
* Type of wallet action
|
|
1818
|
+
*/
|
|
1819
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1820
|
+
/**
|
|
1821
|
+
* Recipient address.
|
|
1822
|
+
*/
|
|
1823
|
+
destination_address: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* Chain name (e.g. "base", "ethereum").
|
|
1826
|
+
*/
|
|
1827
|
+
source_chain: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* The status of the wallet action.
|
|
1830
|
+
*/
|
|
1831
|
+
status: 'pending';
|
|
1832
|
+
/**
|
|
1833
|
+
* The type of webhook event.
|
|
1834
|
+
*/
|
|
1835
|
+
type: 'wallet_action.transfer.created';
|
|
1836
|
+
/**
|
|
1837
|
+
* The ID of the wallet action.
|
|
1838
|
+
*/
|
|
1839
|
+
wallet_action_id: string;
|
|
1840
|
+
/**
|
|
1841
|
+
* The ID of the wallet involved in the action.
|
|
1842
|
+
*/
|
|
1843
|
+
wallet_id: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
|
|
1846
|
+
* cross-chain transfers until the source amount is determined.
|
|
1847
|
+
*/
|
|
1848
|
+
source_amount?: string;
|
|
1849
|
+
/**
|
|
1850
|
+
* Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
|
|
1851
|
+
* with a named asset; omitted for custom-token transfers.
|
|
1852
|
+
*/
|
|
1853
|
+
source_asset?: string;
|
|
1854
|
+
/**
|
|
1855
|
+
* Token contract address (EVM) or mint address (Solana). Present when the transfer
|
|
1856
|
+
* was initiated with `asset_address`.
|
|
1857
|
+
*/
|
|
1858
|
+
source_asset_address?: string;
|
|
1859
|
+
/**
|
|
1860
|
+
* Number of decimals for the transferred token. Present when the transfer was
|
|
1861
|
+
* initiated with `asset_address` and the decimals were resolved on-chain.
|
|
1862
|
+
*/
|
|
1863
|
+
source_asset_decimals?: number;
|
|
1864
|
+
}
|
|
1865
|
+
/**
|
|
1866
|
+
* Payload for the wallet_action.transfer.failed webhook event.
|
|
1867
|
+
*/
|
|
1868
|
+
export interface WalletActionTransferFailedWebhookPayload {
|
|
1869
|
+
/**
|
|
1870
|
+
* Type of wallet action
|
|
1871
|
+
*/
|
|
1872
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1873
|
+
/**
|
|
1874
|
+
* Recipient address.
|
|
1875
|
+
*/
|
|
1876
|
+
destination_address: string;
|
|
1877
|
+
/**
|
|
1878
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1879
|
+
*/
|
|
1880
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1881
|
+
/**
|
|
1882
|
+
* Chain name (e.g. "base", "ethereum").
|
|
1883
|
+
*/
|
|
1884
|
+
source_chain: string;
|
|
1885
|
+
/**
|
|
1886
|
+
* The status of the wallet action.
|
|
1887
|
+
*/
|
|
1888
|
+
status: 'failed';
|
|
1889
|
+
/**
|
|
1890
|
+
* The steps of the wallet action. Completed steps will have transaction hashes;
|
|
1891
|
+
* the failing step will have a failure_reason.
|
|
1892
|
+
*/
|
|
1893
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1894
|
+
/**
|
|
1895
|
+
* The type of webhook event.
|
|
1896
|
+
*/
|
|
1897
|
+
type: 'wallet_action.transfer.failed';
|
|
1898
|
+
/**
|
|
1899
|
+
* The ID of the wallet action.
|
|
1900
|
+
*/
|
|
1901
|
+
wallet_action_id: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* The ID of the wallet involved in the action.
|
|
1904
|
+
*/
|
|
1905
|
+
wallet_id: string;
|
|
1906
|
+
/**
|
|
1907
|
+
* Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
|
|
1908
|
+
* cross-chain transfers until the source amount is determined.
|
|
1909
|
+
*/
|
|
1910
|
+
source_amount?: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
|
|
1913
|
+
* with a named asset; omitted for custom-token transfers.
|
|
1914
|
+
*/
|
|
1915
|
+
source_asset?: string;
|
|
1916
|
+
/**
|
|
1917
|
+
* Token contract address (EVM) or mint address (Solana). Present when the transfer
|
|
1918
|
+
* was initiated with `asset_address`.
|
|
1919
|
+
*/
|
|
1920
|
+
source_asset_address?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* Number of decimals for the transferred token. Present when the transfer was
|
|
1923
|
+
* initiated with `asset_address` and the decimals were resolved on-chain.
|
|
1924
|
+
*/
|
|
1925
|
+
source_asset_decimals?: number;
|
|
1926
|
+
}
|
|
1927
|
+
/**
|
|
1928
|
+
* Payload for the wallet_action.transfer.rejected webhook event.
|
|
1929
|
+
*/
|
|
1930
|
+
export interface WalletActionTransferRejectedWebhookPayload {
|
|
1931
|
+
/**
|
|
1932
|
+
* Type of wallet action
|
|
1933
|
+
*/
|
|
1934
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1935
|
+
/**
|
|
1936
|
+
* Recipient address.
|
|
1937
|
+
*/
|
|
1938
|
+
destination_address: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1941
|
+
*/
|
|
1942
|
+
failure_reason: WalletActionsAPI.FailureReason;
|
|
1943
|
+
/**
|
|
1944
|
+
* Chain name (e.g. "base", "ethereum").
|
|
1945
|
+
*/
|
|
1946
|
+
source_chain: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* The status of the wallet action.
|
|
1949
|
+
*/
|
|
1950
|
+
status: 'rejected';
|
|
1951
|
+
/**
|
|
1952
|
+
* The steps of the wallet action at the time of rejection.
|
|
1953
|
+
*/
|
|
1954
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1955
|
+
/**
|
|
1956
|
+
* The type of webhook event.
|
|
1957
|
+
*/
|
|
1958
|
+
type: 'wallet_action.transfer.rejected';
|
|
1959
|
+
/**
|
|
1960
|
+
* The ID of the wallet action.
|
|
1961
|
+
*/
|
|
1962
|
+
wallet_action_id: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* The ID of the wallet involved in the action.
|
|
1965
|
+
*/
|
|
1966
|
+
wallet_id: string;
|
|
1967
|
+
/**
|
|
1968
|
+
* Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
|
|
1969
|
+
* cross-chain transfers until the source amount is determined.
|
|
1970
|
+
*/
|
|
1971
|
+
source_amount?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
|
|
1974
|
+
* with a named asset; omitted for custom-token transfers.
|
|
1975
|
+
*/
|
|
1976
|
+
source_asset?: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* Token contract address (EVM) or mint address (Solana). Present when the transfer
|
|
1979
|
+
* was initiated with `asset_address`.
|
|
1980
|
+
*/
|
|
1981
|
+
source_asset_address?: string;
|
|
1982
|
+
/**
|
|
1983
|
+
* Number of decimals for the transferred token. Present when the transfer was
|
|
1984
|
+
* initiated with `asset_address` and the decimals were resolved on-chain.
|
|
1985
|
+
*/
|
|
1986
|
+
source_asset_decimals?: number;
|
|
1987
|
+
}
|
|
1988
|
+
/**
|
|
1989
|
+
* Payload for the wallet_action.transfer.succeeded webhook event.
|
|
1990
|
+
*/
|
|
1991
|
+
export interface WalletActionTransferSucceededWebhookPayload {
|
|
1992
|
+
/**
|
|
1993
|
+
* Type of wallet action
|
|
1087
1994
|
*/
|
|
1088
|
-
|
|
1995
|
+
action_type: WalletActionsAPI.WalletActionType;
|
|
1089
1996
|
/**
|
|
1090
|
-
*
|
|
1997
|
+
* Recipient address.
|
|
1091
1998
|
*/
|
|
1092
|
-
|
|
1999
|
+
destination_address: string;
|
|
1093
2000
|
/**
|
|
1094
|
-
*
|
|
2001
|
+
* Chain name (e.g. "base", "ethereum").
|
|
1095
2002
|
*/
|
|
1096
|
-
|
|
2003
|
+
source_chain: string;
|
|
1097
2004
|
/**
|
|
1098
|
-
* The
|
|
2005
|
+
* The status of the wallet action.
|
|
1099
2006
|
*/
|
|
1100
|
-
|
|
2007
|
+
status: 'succeeded';
|
|
1101
2008
|
/**
|
|
1102
|
-
* The
|
|
2009
|
+
* The steps of the wallet action, including transaction hashes.
|
|
1103
2010
|
*/
|
|
1104
|
-
|
|
2011
|
+
steps: Array<WalletActionsAPI.WalletActionStep>;
|
|
1105
2012
|
/**
|
|
1106
2013
|
* The type of webhook event.
|
|
1107
2014
|
*/
|
|
1108
|
-
type: '
|
|
2015
|
+
type: 'wallet_action.transfer.succeeded';
|
|
1109
2016
|
/**
|
|
1110
|
-
* The ID of the wallet.
|
|
2017
|
+
* The ID of the wallet action.
|
|
1111
2018
|
*/
|
|
1112
|
-
|
|
2019
|
+
wallet_action_id: string;
|
|
1113
2020
|
/**
|
|
1114
|
-
* The
|
|
2021
|
+
* The ID of the wallet involved in the action.
|
|
1115
2022
|
*/
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1118
|
-
export declare namespace FundsWithdrawnWebhookPayload {
|
|
1119
|
-
interface UnionMember0 {
|
|
1120
|
-
address: null;
|
|
1121
|
-
type: 'native-token';
|
|
1122
|
-
}
|
|
1123
|
-
interface UnionMember1 {
|
|
1124
|
-
address: string;
|
|
1125
|
-
type: 'erc20';
|
|
1126
|
-
}
|
|
1127
|
-
interface UnionMember2 {
|
|
1128
|
-
mint: string;
|
|
1129
|
-
type: 'spl';
|
|
1130
|
-
}
|
|
1131
|
-
interface UnionMember3 {
|
|
1132
|
-
address: string;
|
|
1133
|
-
type: 'sac';
|
|
1134
|
-
}
|
|
1135
|
-
interface Block {
|
|
1136
|
-
/**
|
|
1137
|
-
* The block number.
|
|
1138
|
-
*/
|
|
1139
|
-
number: number;
|
|
1140
|
-
/**
|
|
1141
|
-
* The block timestamp.
|
|
1142
|
-
*/
|
|
1143
|
-
timestamp: number;
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
/**
|
|
1147
|
-
* Payload for the wallet.private_key_export webhook event.
|
|
1148
|
-
*/
|
|
1149
|
-
export interface PrivateKeyExportWebhookPayload {
|
|
2023
|
+
wallet_id: string;
|
|
1150
2024
|
/**
|
|
1151
|
-
*
|
|
2025
|
+
* Decimal amount sent on the source chain (e.g. "1.5"). Omitted for exact_output
|
|
2026
|
+
* cross-chain transfers until the source amount is determined.
|
|
1152
2027
|
*/
|
|
1153
|
-
|
|
2028
|
+
source_amount?: string;
|
|
1154
2029
|
/**
|
|
1155
|
-
*
|
|
2030
|
+
* Asset identifier (e.g. "usdc", "eth"). Present when the transfer was initiated
|
|
2031
|
+
* with a named asset; omitted for custom-token transfers.
|
|
1156
2032
|
*/
|
|
1157
|
-
|
|
2033
|
+
source_asset?: string;
|
|
1158
2034
|
/**
|
|
1159
|
-
*
|
|
2035
|
+
* Token contract address (EVM) or mint address (Solana). Present when the transfer
|
|
2036
|
+
* was initiated with `asset_address`.
|
|
1160
2037
|
*/
|
|
1161
|
-
|
|
2038
|
+
source_asset_address?: string;
|
|
1162
2039
|
/**
|
|
1163
|
-
*
|
|
2040
|
+
* Number of decimals for the transferred token. Present when the transfer was
|
|
2041
|
+
* initiated with `asset_address` and the decimals were resolved on-chain.
|
|
1164
2042
|
*/
|
|
1165
|
-
|
|
1166
|
-
export_source?: 'display' | 'client';
|
|
2043
|
+
source_asset_decimals?: number;
|
|
1167
2044
|
}
|
|
1168
2045
|
/**
|
|
1169
|
-
*
|
|
2046
|
+
* An asset involved in a wallet transfer.
|
|
1170
2047
|
*/
|
|
1171
|
-
export
|
|
2048
|
+
export type WalletFundsAsset = WalletFundsNativeTokenAsset | WalletFundsErc20Asset | WalletFundsSplAsset | WalletFundsSacAsset;
|
|
2049
|
+
/**
|
|
2050
|
+
* An ERC-20 token asset.
|
|
2051
|
+
*/
|
|
2052
|
+
export interface WalletFundsErc20Asset {
|
|
2053
|
+
address: string;
|
|
2054
|
+
type: 'erc20';
|
|
2055
|
+
}
|
|
2056
|
+
/**
|
|
2057
|
+
* A native token asset (e.g. ETH, SOL).
|
|
2058
|
+
*/
|
|
2059
|
+
export interface WalletFundsNativeTokenAsset {
|
|
2060
|
+
address: null;
|
|
2061
|
+
type: 'native-token';
|
|
2062
|
+
}
|
|
2063
|
+
/**
|
|
2064
|
+
* A Stellar Asset Contract (SAC) asset.
|
|
2065
|
+
*/
|
|
2066
|
+
export interface WalletFundsSacAsset {
|
|
2067
|
+
address: string;
|
|
2068
|
+
type: 'sac';
|
|
2069
|
+
}
|
|
2070
|
+
/**
|
|
2071
|
+
* A Solana SPL token asset.
|
|
2072
|
+
*/
|
|
2073
|
+
export interface WalletFundsSplAsset {
|
|
2074
|
+
mint: string;
|
|
2075
|
+
type: 'spl';
|
|
2076
|
+
}
|
|
2077
|
+
/**
|
|
2078
|
+
* Payload for the wallet.recovered webhook event.
|
|
2079
|
+
*/
|
|
2080
|
+
export interface WalletRecoveredWebhookPayload {
|
|
1172
2081
|
/**
|
|
1173
2082
|
* The type of webhook event.
|
|
1174
2083
|
*/
|
|
1175
|
-
type: 'wallet.
|
|
2084
|
+
type: 'wallet.recovered';
|
|
1176
2085
|
/**
|
|
1177
|
-
* The ID of the user
|
|
2086
|
+
* The ID of the user.
|
|
1178
2087
|
*/
|
|
1179
2088
|
user_id: string;
|
|
1180
2089
|
/**
|
|
@@ -1185,7 +2094,6 @@ export interface SeedPhraseExportWebhookPayload {
|
|
|
1185
2094
|
* The ID of the wallet.
|
|
1186
2095
|
*/
|
|
1187
2096
|
wallet_id: string;
|
|
1188
|
-
export_source?: 'display' | 'client';
|
|
1189
2097
|
}
|
|
1190
2098
|
/**
|
|
1191
2099
|
* Payload for the wallet.recovery_setup webhook event.
|
|
@@ -1213,26 +2121,29 @@ export interface WalletRecoverySetupWebhookPayload {
|
|
|
1213
2121
|
wallet_id: string;
|
|
1214
2122
|
}
|
|
1215
2123
|
/**
|
|
1216
|
-
*
|
|
2124
|
+
* Union of all webhook payload schemas.
|
|
1217
2125
|
*/
|
|
1218
|
-
export
|
|
2126
|
+
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 | IntentExecutedWebhookPayload | IntentFailedWebhookPayload | WalletActionSwapCreatedWebhookPayload | WalletActionSwapSucceededWebhookPayload | WalletActionSwapRejectedWebhookPayload | WalletActionSwapFailedWebhookPayload | WalletActionTransferCreatedWebhookPayload | WalletActionTransferSucceededWebhookPayload | WalletActionTransferRejectedWebhookPayload | WalletActionTransferFailedWebhookPayload | WalletActionEarnDepositCreatedWebhookPayload | WalletActionEarnDepositSucceededWebhookPayload | WalletActionEarnDepositRejectedWebhookPayload | WalletActionEarnDepositFailedWebhookPayload | WalletActionEarnWithdrawCreatedWebhookPayload | WalletActionEarnWithdrawSucceededWebhookPayload | WalletActionEarnWithdrawRejectedWebhookPayload | WalletActionEarnWithdrawFailedWebhookPayload | WalletActionEarnIncentiveClaimCreatedWebhookPayload | WalletActionEarnIncentiveClaimSucceededWebhookPayload | WalletActionEarnIncentiveClaimRejectedWebhookPayload | WalletActionEarnIncentiveClaimFailedWebhookPayload;
|
|
2127
|
+
/**
|
|
2128
|
+
* Payload for the yield.claim.confirmed webhook event.
|
|
2129
|
+
*/
|
|
2130
|
+
export interface YieldClaimConfirmedWebhookPayload {
|
|
2131
|
+
caip2: string;
|
|
2132
|
+
rewards: Array<YieldClaimConfirmedWebhookPayload.Reward>;
|
|
2133
|
+
transaction_id: string;
|
|
1219
2134
|
/**
|
|
1220
2135
|
* The type of webhook event.
|
|
1221
2136
|
*/
|
|
1222
|
-
type: '
|
|
1223
|
-
/**
|
|
1224
|
-
* The ID of the user.
|
|
1225
|
-
*/
|
|
1226
|
-
user_id: string;
|
|
1227
|
-
/**
|
|
1228
|
-
* The address of the wallet.
|
|
1229
|
-
*/
|
|
1230
|
-
wallet_address: string;
|
|
1231
|
-
/**
|
|
1232
|
-
* The ID of the wallet.
|
|
1233
|
-
*/
|
|
2137
|
+
type: 'yield.claim.confirmed';
|
|
1234
2138
|
wallet_id: string;
|
|
1235
2139
|
}
|
|
2140
|
+
export declare namespace YieldClaimConfirmedWebhookPayload {
|
|
2141
|
+
interface Reward {
|
|
2142
|
+
amount: string;
|
|
2143
|
+
token_address: string;
|
|
2144
|
+
token_symbol: string;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
1236
2147
|
/**
|
|
1237
2148
|
* Payload for the yield.deposit.confirmed webhook event.
|
|
1238
2149
|
*/
|
|
@@ -1264,155 +2175,7 @@ export interface YieldWithdrawConfirmedWebhookPayload {
|
|
|
1264
2175
|
type: 'yield.withdraw.confirmed';
|
|
1265
2176
|
vault_address: string;
|
|
1266
2177
|
}
|
|
1267
|
-
/**
|
|
1268
|
-
* Payload for the yield.claim.confirmed webhook event.
|
|
1269
|
-
*/
|
|
1270
|
-
export interface YieldClaimConfirmedWebhookPayload {
|
|
1271
|
-
caip2: string;
|
|
1272
|
-
rewards: Array<YieldClaimConfirmedWebhookPayload.Reward>;
|
|
1273
|
-
transaction_id: string;
|
|
1274
|
-
/**
|
|
1275
|
-
* The type of webhook event.
|
|
1276
|
-
*/
|
|
1277
|
-
type: 'yield.claim.confirmed';
|
|
1278
|
-
wallet_id: string;
|
|
1279
|
-
}
|
|
1280
|
-
export declare namespace YieldClaimConfirmedWebhookPayload {
|
|
1281
|
-
interface Reward {
|
|
1282
|
-
amount: string;
|
|
1283
|
-
token_address: string;
|
|
1284
|
-
token_symbol: string;
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
/**
|
|
1288
|
-
* Union of all webhook payload schemas.
|
|
1289
|
-
*/
|
|
1290
|
-
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 | IntentExecutedWebhookPayload | IntentFailedWebhookPayload | WalletActionSwapCreatedWebhookPayload | WalletActionSwapSucceededWebhookPayload | WalletActionSwapRejectedWebhookPayload | WalletActionSwapFailedWebhookPayload | WalletActionTransferCreatedWebhookPayload | WalletActionTransferSucceededWebhookPayload | WalletActionTransferRejectedWebhookPayload | WalletActionTransferFailedWebhookPayload;
|
|
1291
|
-
/**
|
|
1292
|
-
* Payload for the kraken_embed.quote_executed webhook event.
|
|
1293
|
-
*/
|
|
1294
|
-
export interface KrakenEmbedQuoteExecutedWebhookPayload {
|
|
1295
|
-
/**
|
|
1296
|
-
* ISO 8601 timestamp of when the quote was executed.
|
|
1297
|
-
*/
|
|
1298
|
-
executed_at: string;
|
|
1299
|
-
/**
|
|
1300
|
-
* The ID of the executed quote.
|
|
1301
|
-
*/
|
|
1302
|
-
quote_id: string;
|
|
1303
|
-
/**
|
|
1304
|
-
* The type of webhook event.
|
|
1305
|
-
*/
|
|
1306
|
-
type: 'kraken_embed.quote.executed';
|
|
1307
|
-
/**
|
|
1308
|
-
* The ID of the user.
|
|
1309
|
-
*/
|
|
1310
|
-
user_id: string;
|
|
1311
|
-
}
|
|
1312
|
-
/**
|
|
1313
|
-
* Payload for the kraken_embed.quote.execution_failed webhook event.
|
|
1314
|
-
*/
|
|
1315
|
-
export interface KrakenEmbedQuoteExecutionFailedWebhookPayload {
|
|
1316
|
-
/**
|
|
1317
|
-
* ISO 8601 timestamp of when the quote execution failed.
|
|
1318
|
-
*/
|
|
1319
|
-
failed_at: string;
|
|
1320
|
-
/**
|
|
1321
|
-
* The ID of the quote that failed to execute.
|
|
1322
|
-
*/
|
|
1323
|
-
quote_id: string;
|
|
1324
|
-
/**
|
|
1325
|
-
* A human-readable description of why the quote execution failed. Intended for
|
|
1326
|
-
* display and logging purposes only.
|
|
1327
|
-
*/
|
|
1328
|
-
reason: string;
|
|
1329
|
-
/**
|
|
1330
|
-
* The type of webhook event.
|
|
1331
|
-
*/
|
|
1332
|
-
type: 'kraken_embed.quote.execution_failed';
|
|
1333
|
-
/**
|
|
1334
|
-
* The ID of the user.
|
|
1335
|
-
*/
|
|
1336
|
-
user_id: string;
|
|
1337
|
-
}
|
|
1338
|
-
/**
|
|
1339
|
-
* Payload for the kraken_embed.quote.cancelled webhook event.
|
|
1340
|
-
*/
|
|
1341
|
-
export interface KrakenEmbedQuoteCancelledWebhookPayload {
|
|
1342
|
-
/**
|
|
1343
|
-
* ISO 8601 timestamp of when the quote was cancelled.
|
|
1344
|
-
*/
|
|
1345
|
-
cancelled_at: string;
|
|
1346
|
-
/**
|
|
1347
|
-
* The ID of the cancelled quote.
|
|
1348
|
-
*/
|
|
1349
|
-
quote_id: string;
|
|
1350
|
-
/**
|
|
1351
|
-
* A human-readable description of why the quote was cancelled. Intended for
|
|
1352
|
-
* display and logging purposes only.
|
|
1353
|
-
*/
|
|
1354
|
-
reason: string;
|
|
1355
|
-
/**
|
|
1356
|
-
* The type of webhook event.
|
|
1357
|
-
*/
|
|
1358
|
-
type: 'kraken_embed.quote.cancelled';
|
|
1359
|
-
/**
|
|
1360
|
-
* The ID of the user.
|
|
1361
|
-
*/
|
|
1362
|
-
user_id: string;
|
|
1363
|
-
}
|
|
1364
|
-
/**
|
|
1365
|
-
* Payload for the kraken_embed.user.verified webhook event.
|
|
1366
|
-
*/
|
|
1367
|
-
export interface KrakenEmbedUserVerifiedWebhookPayload {
|
|
1368
|
-
/**
|
|
1369
|
-
* The type of webhook event.
|
|
1370
|
-
*/
|
|
1371
|
-
type: 'kraken_embed.user.verified';
|
|
1372
|
-
/**
|
|
1373
|
-
* The ID of the user.
|
|
1374
|
-
*/
|
|
1375
|
-
user_id: string;
|
|
1376
|
-
/**
|
|
1377
|
-
* ISO 8601 timestamp of when the user was verified.
|
|
1378
|
-
*/
|
|
1379
|
-
verified_at: string;
|
|
1380
|
-
}
|
|
1381
|
-
/**
|
|
1382
|
-
* Payload for the kraken_embed.user.disabled webhook event.
|
|
1383
|
-
*/
|
|
1384
|
-
export interface KrakenEmbedUserDisabledWebhookPayload {
|
|
1385
|
-
/**
|
|
1386
|
-
* ISO 8601 timestamp of when the user was disabled.
|
|
1387
|
-
*/
|
|
1388
|
-
disabled_at: string;
|
|
1389
|
-
/**
|
|
1390
|
-
* The type of webhook event.
|
|
1391
|
-
*/
|
|
1392
|
-
type: 'kraken_embed.user.disabled';
|
|
1393
|
-
/**
|
|
1394
|
-
* The ID of the user.
|
|
1395
|
-
*/
|
|
1396
|
-
user_id: string;
|
|
1397
|
-
}
|
|
1398
|
-
/**
|
|
1399
|
-
* Payload for the kraken_embed.user.closed webhook event.
|
|
1400
|
-
*/
|
|
1401
|
-
export interface KrakenEmbedUserClosedWebhookPayload {
|
|
1402
|
-
/**
|
|
1403
|
-
* ISO 8601 timestamp of when the user was closed.
|
|
1404
|
-
*/
|
|
1405
|
-
closed_at: string;
|
|
1406
|
-
/**
|
|
1407
|
-
* The type of webhook event.
|
|
1408
|
-
*/
|
|
1409
|
-
type: 'kraken_embed.user.closed';
|
|
1410
|
-
/**
|
|
1411
|
-
* The ID of the user.
|
|
1412
|
-
*/
|
|
1413
|
-
user_id: string;
|
|
1414
|
-
}
|
|
1415
2178
|
export declare namespace Webhooks {
|
|
1416
|
-
export { type
|
|
2179
|
+
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 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, };
|
|
1417
2180
|
}
|
|
1418
2181
|
//# sourceMappingURL=webhooks.d.mts.map
|