@privy-io/api-types 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +33 -27
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -27
- package/client.d.ts.map +1 -1
- package/client.js +17 -3
- package/client.js.map +1 -1
- package/client.mjs +17 -3
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/analytics.d.mts +1 -1
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +1 -1
- package/resources/analytics.d.ts.map +1 -1
- package/resources/analytics.mjs.map +1 -1
- package/resources/apps.d.mts +42 -37
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +42 -37
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +176 -217
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +176 -217
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/cross-app.mjs.map +1 -1
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +15 -13
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +112 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +112 -79
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +252 -154
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +252 -154
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/oauth.d.mts +77 -0
- package/resources/oauth.d.mts.map +1 -0
- package/resources/oauth.d.ts +77 -0
- package/resources/oauth.d.ts.map +1 -0
- package/resources/oauth.js +9 -0
- package/resources/oauth.js.map +1 -0
- package/resources/oauth.mjs +5 -0
- package/resources/oauth.mjs.map +1 -0
- package/resources/onramps.d.mts +458 -0
- package/resources/onramps.d.mts.map +1 -0
- package/resources/onramps.d.ts +458 -0
- package/resources/onramps.d.ts.map +1 -0
- package/resources/onramps.js +9 -0
- package/resources/onramps.js.map +1 -0
- package/resources/onramps.mjs +5 -0
- package/resources/onramps.mjs.map +1 -0
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +73 -18
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +73 -18
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +38 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +38 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/swaps.d.mts +44 -5
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +44 -5
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +3 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +3 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +207 -9
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +207 -9
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallet-actions.js.map +1 -1
- package/resources/wallet-actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +8 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +8 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/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 +5 -1
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +5 -1
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +749 -84
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +749 -84
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +15 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +15 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/wallets.d.mts.map +1 -1
- package/resources/wallets.d.ts.map +1 -1
- package/resources/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +314 -54
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +314 -54
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +26 -27
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -27
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +389 -65
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/analytics.ts +1 -1
- package/src/resources/apps.ts +57 -51
- package/src/resources/client-auth.ts +215 -308
- package/src/resources/index.ts +180 -25
- package/src/resources/intents.ts +132 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +591 -432
- package/src/resources/oauth.ts +96 -0
- package/src/resources/onramps.ts +652 -0
- package/src/resources/policies.ts +106 -16
- package/src/resources/shared.ts +53 -0
- package/src/resources/swaps.ts +52 -5
- package/src/resources/users.ts +3 -0
- package/src/resources/wallet-actions.ts +274 -8
- package/src/resources/wallets/balance.ts +13 -1
- package/src/resources/wallets/index.ts +43 -0
- package/src/resources/wallets/transactions.ts +6 -0
- package/src/resources/wallets/wallets.ts +969 -93
- package/src/resources/webhooks.ts +383 -57
- package/src/resources/yield.ts +29 -30
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as AppsAPI from './apps';
|
|
4
5
|
import * as IntentsAPI from './intents';
|
|
5
6
|
import * as UsersAPI from './users';
|
|
6
7
|
import * as WalletActionsAPI from './wallet-actions';
|
|
@@ -8,6 +9,21 @@ import * as WalletsAPI from './wallets/wallets';
|
|
|
8
9
|
|
|
9
10
|
export class Webhooks extends APIResource {}
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Block metadata for a wallet transfer event.
|
|
14
|
+
*/
|
|
15
|
+
export interface BlockInfo {
|
|
16
|
+
/**
|
|
17
|
+
* The block number.
|
|
18
|
+
*/
|
|
19
|
+
number: number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The block timestamp.
|
|
23
|
+
*/
|
|
24
|
+
timestamp: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
11
27
|
/**
|
|
12
28
|
* Bridge metadata for a crypto deposit via liquidation address.
|
|
13
29
|
*/
|
|
@@ -144,7 +160,10 @@ export interface FundsDepositedWebhookPayload {
|
|
|
144
160
|
*/
|
|
145
161
|
asset: WalletFundsAsset;
|
|
146
162
|
|
|
147
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Block metadata for a wallet transfer event.
|
|
165
|
+
*/
|
|
166
|
+
block: BlockInfo;
|
|
148
167
|
|
|
149
168
|
/**
|
|
150
169
|
* The CAIP-2 chain identifier.
|
|
@@ -192,20 +211,6 @@ export interface FundsDepositedWebhookPayload {
|
|
|
192
211
|
transaction_fee?: string;
|
|
193
212
|
}
|
|
194
213
|
|
|
195
|
-
export namespace FundsDepositedWebhookPayload {
|
|
196
|
-
export interface Block {
|
|
197
|
-
/**
|
|
198
|
-
* The block number.
|
|
199
|
-
*/
|
|
200
|
-
number: number;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The block timestamp.
|
|
204
|
-
*/
|
|
205
|
-
timestamp: number;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
214
|
/**
|
|
210
215
|
* Payload for the wallet.funds_withdrawn webhook event.
|
|
211
216
|
*/
|
|
@@ -220,7 +225,10 @@ export interface FundsWithdrawnWebhookPayload {
|
|
|
220
225
|
*/
|
|
221
226
|
asset: WalletFundsAsset;
|
|
222
227
|
|
|
223
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Block metadata for a wallet transfer event.
|
|
230
|
+
*/
|
|
231
|
+
block: BlockInfo;
|
|
224
232
|
|
|
225
233
|
/**
|
|
226
234
|
* The CAIP-2 chain identifier.
|
|
@@ -263,20 +271,6 @@ export interface FundsWithdrawnWebhookPayload {
|
|
|
263
271
|
transaction_fee?: string;
|
|
264
272
|
}
|
|
265
273
|
|
|
266
|
-
export namespace FundsWithdrawnWebhookPayload {
|
|
267
|
-
export interface Block {
|
|
268
|
-
/**
|
|
269
|
-
* The block number.
|
|
270
|
-
*/
|
|
271
|
-
number: number;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* The block timestamp.
|
|
275
|
-
*/
|
|
276
|
-
timestamp: number;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
274
|
/**
|
|
281
275
|
* Payload for the intent.authorized webhook event.
|
|
282
276
|
*/
|
|
@@ -532,6 +526,93 @@ export interface IntentRejectedWebhookPayload {
|
|
|
532
526
|
created_by_id?: string;
|
|
533
527
|
}
|
|
534
528
|
|
|
529
|
+
/**
|
|
530
|
+
* Payload for the kraken_embed.custom_order.cancelled webhook event.
|
|
531
|
+
*/
|
|
532
|
+
export interface KrakenEmbedCustomOrderCancelledWebhookPayload {
|
|
533
|
+
/**
|
|
534
|
+
* ISO 8601 timestamp of when the custom order was cancelled.
|
|
535
|
+
*/
|
|
536
|
+
cancelled_at: string;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* The ID of the cancelled custom order.
|
|
540
|
+
*/
|
|
541
|
+
custom_order_id: string;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* A human-readable description of why the custom order was cancelled. Intended for
|
|
545
|
+
* display and logging purposes only.
|
|
546
|
+
*/
|
|
547
|
+
reason: string;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* The type of webhook event.
|
|
551
|
+
*/
|
|
552
|
+
type: 'kraken_embed.custom_order.cancelled';
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* The ID of the user.
|
|
556
|
+
*/
|
|
557
|
+
user_id: string;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Payload for the kraken_embed.custom_order.executed webhook event.
|
|
562
|
+
*/
|
|
563
|
+
export interface KrakenEmbedCustomOrderExecutedWebhookPayload {
|
|
564
|
+
/**
|
|
565
|
+
* The ID of the executed custom order.
|
|
566
|
+
*/
|
|
567
|
+
custom_order_id: string;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* ISO 8601 timestamp of when the custom order was executed.
|
|
571
|
+
*/
|
|
572
|
+
executed_at: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* The type of webhook event.
|
|
576
|
+
*/
|
|
577
|
+
type: 'kraken_embed.custom_order.executed';
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* The ID of the user.
|
|
581
|
+
*/
|
|
582
|
+
user_id: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Payload for the kraken_embed.custom_order.execution_failed webhook event.
|
|
587
|
+
*/
|
|
588
|
+
export interface KrakenEmbedCustomOrderExecutionFailedWebhookPayload {
|
|
589
|
+
/**
|
|
590
|
+
* The ID of the custom order that failed to execute.
|
|
591
|
+
*/
|
|
592
|
+
custom_order_id: string;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* ISO 8601 timestamp of when the custom order execution failed.
|
|
596
|
+
*/
|
|
597
|
+
failed_at: string;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* A human-readable description of why the custom order execution failed. Intended
|
|
601
|
+
* for display and logging purposes only.
|
|
602
|
+
*/
|
|
603
|
+
reason: string;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* The type of webhook event.
|
|
607
|
+
*/
|
|
608
|
+
type: 'kraken_embed.custom_order.execution_failed';
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The ID of the user.
|
|
612
|
+
*/
|
|
613
|
+
user_id: string;
|
|
614
|
+
}
|
|
615
|
+
|
|
535
616
|
/**
|
|
536
617
|
* Payload for the kraken_embed.quote.cancelled webhook event.
|
|
537
618
|
*/
|
|
@@ -684,9 +765,9 @@ export interface KrakenEmbedUserVerifiedWebhookPayload {
|
|
|
684
765
|
*/
|
|
685
766
|
export interface MfaDisabledWebhookPayload {
|
|
686
767
|
/**
|
|
687
|
-
*
|
|
768
|
+
* A multi-factor authentication method supported by the app.
|
|
688
769
|
*/
|
|
689
|
-
method:
|
|
770
|
+
method: AppsAPI.MfaMethod;
|
|
690
771
|
|
|
691
772
|
/**
|
|
692
773
|
* The type of webhook event.
|
|
@@ -704,9 +785,9 @@ export interface MfaDisabledWebhookPayload {
|
|
|
704
785
|
*/
|
|
705
786
|
export interface MfaEnabledWebhookPayload {
|
|
706
787
|
/**
|
|
707
|
-
*
|
|
788
|
+
* A multi-factor authentication method supported by the app.
|
|
708
789
|
*/
|
|
709
|
-
method:
|
|
790
|
+
method: AppsAPI.MfaMethod;
|
|
710
791
|
|
|
711
792
|
/**
|
|
712
793
|
* The type of webhook event.
|
|
@@ -1118,6 +1199,13 @@ export interface UserOperationCompletedWebhookPayload {
|
|
|
1118
1199
|
user_op_hash: string;
|
|
1119
1200
|
}
|
|
1120
1201
|
|
|
1202
|
+
/**
|
|
1203
|
+
* A reference to a user by their unique identifier.
|
|
1204
|
+
*/
|
|
1205
|
+
export interface UserReference {
|
|
1206
|
+
id: string;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1121
1209
|
/**
|
|
1122
1210
|
* Payload for the user.transferred_account webhook event.
|
|
1123
1211
|
*/
|
|
@@ -1129,7 +1217,10 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
1129
1217
|
|
|
1130
1218
|
deletedUser: true;
|
|
1131
1219
|
|
|
1132
|
-
|
|
1220
|
+
/**
|
|
1221
|
+
* A reference to a user by their unique identifier.
|
|
1222
|
+
*/
|
|
1223
|
+
fromUser: UserReference;
|
|
1133
1224
|
|
|
1134
1225
|
/**
|
|
1135
1226
|
* A Privy user object.
|
|
@@ -1142,12 +1233,6 @@ export interface UserTransferredAccountWebhookPayload {
|
|
|
1142
1233
|
type: 'user.transferred_account';
|
|
1143
1234
|
}
|
|
1144
1235
|
|
|
1145
|
-
export namespace UserTransferredAccountWebhookPayload {
|
|
1146
|
-
export interface FromUser {
|
|
1147
|
-
id: string;
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
1236
|
/**
|
|
1152
1237
|
* Payload for the user.unlinked_account webhook event.
|
|
1153
1238
|
*/
|
|
@@ -1227,6 +1312,11 @@ export interface WalletActionEarnDepositCreatedWebhookPayload {
|
|
|
1227
1312
|
*/
|
|
1228
1313
|
caip2: string;
|
|
1229
1314
|
|
|
1315
|
+
/**
|
|
1316
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1317
|
+
*/
|
|
1318
|
+
created_at: string;
|
|
1319
|
+
|
|
1230
1320
|
/**
|
|
1231
1321
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1232
1322
|
*/
|
|
@@ -1300,6 +1390,16 @@ export interface WalletActionEarnDepositFailedWebhookPayload {
|
|
|
1300
1390
|
*/
|
|
1301
1391
|
caip2: string;
|
|
1302
1392
|
|
|
1393
|
+
/**
|
|
1394
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1395
|
+
*/
|
|
1396
|
+
created_at: string;
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1400
|
+
*/
|
|
1401
|
+
failed_at: string;
|
|
1402
|
+
|
|
1303
1403
|
/**
|
|
1304
1404
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1305
1405
|
*/
|
|
@@ -1384,6 +1484,11 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1384
1484
|
*/
|
|
1385
1485
|
caip2: string;
|
|
1386
1486
|
|
|
1487
|
+
/**
|
|
1488
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1489
|
+
*/
|
|
1490
|
+
created_at: string;
|
|
1491
|
+
|
|
1387
1492
|
/**
|
|
1388
1493
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1389
1494
|
*/
|
|
@@ -1394,6 +1499,11 @@ export interface WalletActionEarnDepositRejectedWebhookPayload {
|
|
|
1394
1499
|
*/
|
|
1395
1500
|
raw_amount: string;
|
|
1396
1501
|
|
|
1502
|
+
/**
|
|
1503
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1504
|
+
*/
|
|
1505
|
+
rejected_at: string;
|
|
1506
|
+
|
|
1397
1507
|
/**
|
|
1398
1508
|
* The status of the wallet action.
|
|
1399
1509
|
*/
|
|
@@ -1467,6 +1577,16 @@ export interface WalletActionEarnDepositSucceededWebhookPayload {
|
|
|
1467
1577
|
*/
|
|
1468
1578
|
caip2: string;
|
|
1469
1579
|
|
|
1580
|
+
/**
|
|
1581
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1582
|
+
*/
|
|
1583
|
+
completed_at: string;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1587
|
+
*/
|
|
1588
|
+
created_at: string;
|
|
1589
|
+
|
|
1470
1590
|
/**
|
|
1471
1591
|
* Base-unit amount of asset deposited (e.g. "1500000").
|
|
1472
1592
|
*/
|
|
@@ -1545,6 +1665,11 @@ export interface WalletActionEarnIncentiveClaimCreatedWebhookPayload {
|
|
|
1545
1665
|
*/
|
|
1546
1666
|
chain: string;
|
|
1547
1667
|
|
|
1668
|
+
/**
|
|
1669
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1670
|
+
*/
|
|
1671
|
+
created_at: string;
|
|
1672
|
+
|
|
1548
1673
|
/**
|
|
1549
1674
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1550
1675
|
*/
|
|
@@ -1585,6 +1710,16 @@ export interface WalletActionEarnIncentiveClaimFailedWebhookPayload {
|
|
|
1585
1710
|
*/
|
|
1586
1711
|
chain: string;
|
|
1587
1712
|
|
|
1713
|
+
/**
|
|
1714
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1715
|
+
*/
|
|
1716
|
+
created_at: string;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1720
|
+
*/
|
|
1721
|
+
failed_at: string;
|
|
1722
|
+
|
|
1588
1723
|
/**
|
|
1589
1724
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1590
1725
|
*/
|
|
@@ -1636,11 +1771,21 @@ export interface WalletActionEarnIncentiveClaimRejectedWebhookPayload {
|
|
|
1636
1771
|
*/
|
|
1637
1772
|
chain: string;
|
|
1638
1773
|
|
|
1774
|
+
/**
|
|
1775
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1776
|
+
*/
|
|
1777
|
+
created_at: string;
|
|
1778
|
+
|
|
1639
1779
|
/**
|
|
1640
1780
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1641
1781
|
*/
|
|
1642
1782
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
1643
1783
|
|
|
1784
|
+
/**
|
|
1785
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
1786
|
+
*/
|
|
1787
|
+
rejected_at: string;
|
|
1788
|
+
|
|
1644
1789
|
/**
|
|
1645
1790
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1646
1791
|
*/
|
|
@@ -1686,6 +1831,16 @@ export interface WalletActionEarnIncentiveClaimSucceededWebhookPayload {
|
|
|
1686
1831
|
*/
|
|
1687
1832
|
chain: string;
|
|
1688
1833
|
|
|
1834
|
+
/**
|
|
1835
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
1836
|
+
*/
|
|
1837
|
+
completed_at: string;
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1841
|
+
*/
|
|
1842
|
+
created_at: string;
|
|
1843
|
+
|
|
1689
1844
|
/**
|
|
1690
1845
|
* Claimed reward tokens. Populated after the preparation step fetches from Merkl.
|
|
1691
1846
|
*/
|
|
@@ -1736,6 +1891,11 @@ export interface WalletActionEarnWithdrawCreatedWebhookPayload {
|
|
|
1736
1891
|
*/
|
|
1737
1892
|
caip2: string;
|
|
1738
1893
|
|
|
1894
|
+
/**
|
|
1895
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1896
|
+
*/
|
|
1897
|
+
created_at: string;
|
|
1898
|
+
|
|
1739
1899
|
/**
|
|
1740
1900
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1741
1901
|
*/
|
|
@@ -1809,6 +1969,16 @@ export interface WalletActionEarnWithdrawFailedWebhookPayload {
|
|
|
1809
1969
|
*/
|
|
1810
1970
|
caip2: string;
|
|
1811
1971
|
|
|
1972
|
+
/**
|
|
1973
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
1974
|
+
*/
|
|
1975
|
+
created_at: string;
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
1979
|
+
*/
|
|
1980
|
+
failed_at: string;
|
|
1981
|
+
|
|
1812
1982
|
/**
|
|
1813
1983
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1814
1984
|
*/
|
|
@@ -1893,6 +2063,11 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1893
2063
|
*/
|
|
1894
2064
|
caip2: string;
|
|
1895
2065
|
|
|
2066
|
+
/**
|
|
2067
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2068
|
+
*/
|
|
2069
|
+
created_at: string;
|
|
2070
|
+
|
|
1896
2071
|
/**
|
|
1897
2072
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
1898
2073
|
*/
|
|
@@ -1903,6 +2078,11 @@ export interface WalletActionEarnWithdrawRejectedWebhookPayload {
|
|
|
1903
2078
|
*/
|
|
1904
2079
|
raw_amount: string;
|
|
1905
2080
|
|
|
2081
|
+
/**
|
|
2082
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2083
|
+
*/
|
|
2084
|
+
rejected_at: string;
|
|
2085
|
+
|
|
1906
2086
|
/**
|
|
1907
2087
|
* The status of the wallet action.
|
|
1908
2088
|
*/
|
|
@@ -1976,6 +2156,16 @@ export interface WalletActionEarnWithdrawSucceededWebhookPayload {
|
|
|
1976
2156
|
*/
|
|
1977
2157
|
caip2: string;
|
|
1978
2158
|
|
|
2159
|
+
/**
|
|
2160
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2161
|
+
*/
|
|
2162
|
+
completed_at: string;
|
|
2163
|
+
|
|
2164
|
+
/**
|
|
2165
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2166
|
+
*/
|
|
2167
|
+
created_at: string;
|
|
2168
|
+
|
|
1979
2169
|
/**
|
|
1980
2170
|
* Base-unit amount of asset withdrawn (e.g. "1500000").
|
|
1981
2171
|
*/
|
|
@@ -2055,7 +2245,12 @@ export interface WalletActionSwapCreatedWebhookPayload {
|
|
|
2055
2245
|
caip2: string;
|
|
2056
2246
|
|
|
2057
2247
|
/**
|
|
2058
|
-
*
|
|
2248
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2249
|
+
*/
|
|
2250
|
+
created_at: string;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2059
2254
|
*/
|
|
2060
2255
|
input_amount: string | null;
|
|
2061
2256
|
|
|
@@ -2104,13 +2299,23 @@ export interface WalletActionSwapFailedWebhookPayload {
|
|
|
2104
2299
|
*/
|
|
2105
2300
|
caip2: string;
|
|
2106
2301
|
|
|
2302
|
+
/**
|
|
2303
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2304
|
+
*/
|
|
2305
|
+
created_at: string;
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2309
|
+
*/
|
|
2310
|
+
failed_at: string;
|
|
2311
|
+
|
|
2107
2312
|
/**
|
|
2108
2313
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2109
2314
|
*/
|
|
2110
2315
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
2111
2316
|
|
|
2112
2317
|
/**
|
|
2113
|
-
* Amount of input token in base units. Populated after
|
|
2318
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2114
2319
|
*/
|
|
2115
2320
|
input_amount: string | null;
|
|
2116
2321
|
|
|
@@ -2165,13 +2370,18 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2165
2370
|
*/
|
|
2166
2371
|
caip2: string;
|
|
2167
2372
|
|
|
2373
|
+
/**
|
|
2374
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2375
|
+
*/
|
|
2376
|
+
created_at: string;
|
|
2377
|
+
|
|
2168
2378
|
/**
|
|
2169
2379
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2170
2380
|
*/
|
|
2171
2381
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
2172
2382
|
|
|
2173
2383
|
/**
|
|
2174
|
-
* Amount of input token in base units. Populated after
|
|
2384
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2175
2385
|
*/
|
|
2176
2386
|
input_amount: string | null;
|
|
2177
2387
|
|
|
@@ -2185,6 +2395,11 @@ export interface WalletActionSwapRejectedWebhookPayload {
|
|
|
2185
2395
|
*/
|
|
2186
2396
|
output_token: string;
|
|
2187
2397
|
|
|
2398
|
+
/**
|
|
2399
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2400
|
+
*/
|
|
2401
|
+
rejected_at: string;
|
|
2402
|
+
|
|
2188
2403
|
/**
|
|
2189
2404
|
* The status of the wallet action.
|
|
2190
2405
|
*/
|
|
@@ -2226,7 +2441,17 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2226
2441
|
caip2: string;
|
|
2227
2442
|
|
|
2228
2443
|
/**
|
|
2229
|
-
*
|
|
2444
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2445
|
+
*/
|
|
2446
|
+
completed_at: string;
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2450
|
+
*/
|
|
2451
|
+
created_at: string;
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Amount of input token in base units. Populated after onchain confirmation.
|
|
2230
2455
|
*/
|
|
2231
2456
|
input_amount: string | null;
|
|
2232
2457
|
|
|
@@ -2236,7 +2461,7 @@ export interface WalletActionSwapSucceededWebhookPayload {
|
|
|
2236
2461
|
input_token: string;
|
|
2237
2462
|
|
|
2238
2463
|
/**
|
|
2239
|
-
* Amount of output token received, in base units. Populated after
|
|
2464
|
+
* Amount of output token received, in base units. Populated after onchain
|
|
2240
2465
|
* confirmation.
|
|
2241
2466
|
*/
|
|
2242
2467
|
output_amount: string | null;
|
|
@@ -2281,6 +2506,11 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2281
2506
|
*/
|
|
2282
2507
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2283
2508
|
|
|
2509
|
+
/**
|
|
2510
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2511
|
+
*/
|
|
2512
|
+
created_at: string;
|
|
2513
|
+
|
|
2284
2514
|
/**
|
|
2285
2515
|
* Recipient address.
|
|
2286
2516
|
*/
|
|
@@ -2331,7 +2561,7 @@ export interface WalletActionTransferCreatedWebhookPayload {
|
|
|
2331
2561
|
|
|
2332
2562
|
/**
|
|
2333
2563
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2334
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2564
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2335
2565
|
*/
|
|
2336
2566
|
source_asset_decimals?: number;
|
|
2337
2567
|
}
|
|
@@ -2345,11 +2575,21 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2345
2575
|
*/
|
|
2346
2576
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2347
2577
|
|
|
2578
|
+
/**
|
|
2579
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2580
|
+
*/
|
|
2581
|
+
created_at: string;
|
|
2582
|
+
|
|
2348
2583
|
/**
|
|
2349
2584
|
* Recipient address.
|
|
2350
2585
|
*/
|
|
2351
2586
|
destination_address: string;
|
|
2352
2587
|
|
|
2588
|
+
/**
|
|
2589
|
+
* ISO 8601 timestamp of when the wallet action failed.
|
|
2590
|
+
*/
|
|
2591
|
+
failed_at: string;
|
|
2592
|
+
|
|
2353
2593
|
/**
|
|
2354
2594
|
* A description of why a wallet action (or a step within a wallet action) failed.
|
|
2355
2595
|
*/
|
|
@@ -2406,7 +2646,7 @@ export interface WalletActionTransferFailedWebhookPayload {
|
|
|
2406
2646
|
|
|
2407
2647
|
/**
|
|
2408
2648
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2409
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2649
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2410
2650
|
*/
|
|
2411
2651
|
source_asset_decimals?: number;
|
|
2412
2652
|
}
|
|
@@ -2420,6 +2660,11 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2420
2660
|
*/
|
|
2421
2661
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2422
2662
|
|
|
2663
|
+
/**
|
|
2664
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2665
|
+
*/
|
|
2666
|
+
created_at: string;
|
|
2667
|
+
|
|
2423
2668
|
/**
|
|
2424
2669
|
* Recipient address.
|
|
2425
2670
|
*/
|
|
@@ -2430,6 +2675,11 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2430
2675
|
*/
|
|
2431
2676
|
failure_reason: WalletActionsAPI.FailureReason;
|
|
2432
2677
|
|
|
2678
|
+
/**
|
|
2679
|
+
* ISO 8601 timestamp of when the wallet action was rejected.
|
|
2680
|
+
*/
|
|
2681
|
+
rejected_at: string;
|
|
2682
|
+
|
|
2433
2683
|
/**
|
|
2434
2684
|
* Chain name (e.g. "base", "ethereum").
|
|
2435
2685
|
*/
|
|
@@ -2480,7 +2730,7 @@ export interface WalletActionTransferRejectedWebhookPayload {
|
|
|
2480
2730
|
|
|
2481
2731
|
/**
|
|
2482
2732
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2483
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2733
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2484
2734
|
*/
|
|
2485
2735
|
source_asset_decimals?: number;
|
|
2486
2736
|
}
|
|
@@ -2494,6 +2744,16 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2494
2744
|
*/
|
|
2495
2745
|
action_type: WalletActionsAPI.WalletActionType;
|
|
2496
2746
|
|
|
2747
|
+
/**
|
|
2748
|
+
* ISO 8601 timestamp of when the wallet action completed successfully.
|
|
2749
|
+
*/
|
|
2750
|
+
completed_at: string;
|
|
2751
|
+
|
|
2752
|
+
/**
|
|
2753
|
+
* ISO 8601 timestamp of when the wallet action was created.
|
|
2754
|
+
*/
|
|
2755
|
+
created_at: string;
|
|
2756
|
+
|
|
2497
2757
|
/**
|
|
2498
2758
|
* Recipient address.
|
|
2499
2759
|
*/
|
|
@@ -2549,11 +2809,41 @@ export interface WalletActionTransferSucceededWebhookPayload {
|
|
|
2549
2809
|
|
|
2550
2810
|
/**
|
|
2551
2811
|
* Number of decimals for the transferred token. Present when the transfer was
|
|
2552
|
-
* initiated with `asset_address` and the decimals were resolved
|
|
2812
|
+
* initiated with `asset_address` and the decimals were resolved onchain.
|
|
2553
2813
|
*/
|
|
2554
2814
|
source_asset_decimals?: number;
|
|
2555
2815
|
}
|
|
2556
2816
|
|
|
2817
|
+
/**
|
|
2818
|
+
* Payload for the wallet.archived webhook event.
|
|
2819
|
+
*/
|
|
2820
|
+
export interface WalletArchivedWebhookPayload {
|
|
2821
|
+
/**
|
|
2822
|
+
* Unix timestamp of when the wallet was archived.
|
|
2823
|
+
*/
|
|
2824
|
+
archived_at: number;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* The chain type of the archived wallet.
|
|
2828
|
+
*/
|
|
2829
|
+
chain_type: string;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* The type of webhook event.
|
|
2833
|
+
*/
|
|
2834
|
+
type: 'wallet.archived';
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* The address of the archived wallet.
|
|
2838
|
+
*/
|
|
2839
|
+
wallet_address: string;
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* The ID of the archived wallet.
|
|
2843
|
+
*/
|
|
2844
|
+
wallet_id: string;
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2557
2847
|
/**
|
|
2558
2848
|
* An asset involved in a wallet transfer.
|
|
2559
2849
|
*/
|
|
@@ -2660,6 +2950,31 @@ export interface WalletRecoverySetupWebhookPayload {
|
|
|
2660
2950
|
wallet_id: string;
|
|
2661
2951
|
}
|
|
2662
2952
|
|
|
2953
|
+
/**
|
|
2954
|
+
* Payload for the wallet.restored webhook event.
|
|
2955
|
+
*/
|
|
2956
|
+
export interface WalletRestoredWebhookPayload {
|
|
2957
|
+
/**
|
|
2958
|
+
* The chain type of the restored wallet.
|
|
2959
|
+
*/
|
|
2960
|
+
chain_type: string;
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* The type of webhook event.
|
|
2964
|
+
*/
|
|
2965
|
+
type: 'wallet.restored';
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* The address of the restored wallet.
|
|
2969
|
+
*/
|
|
2970
|
+
wallet_address: string;
|
|
2971
|
+
|
|
2972
|
+
/**
|
|
2973
|
+
* The ID of the restored wallet.
|
|
2974
|
+
*/
|
|
2975
|
+
wallet_id: string;
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2663
2978
|
/**
|
|
2664
2979
|
* Union of all webhook payload schemas.
|
|
2665
2980
|
*/
|
|
@@ -2684,6 +2999,8 @@ export type WebhookPayload =
|
|
|
2684
2999
|
| SeedPhraseExportWebhookPayload
|
|
2685
3000
|
| WalletRecoverySetupWebhookPayload
|
|
2686
3001
|
| WalletRecoveredWebhookPayload
|
|
3002
|
+
| WalletArchivedWebhookPayload
|
|
3003
|
+
| WalletRestoredWebhookPayload
|
|
2687
3004
|
| MfaEnabledWebhookPayload
|
|
2688
3005
|
| MfaDisabledWebhookPayload
|
|
2689
3006
|
| YieldDepositConfirmedWebhookPayload
|
|
@@ -2722,7 +3039,7 @@ export type WebhookPayload =
|
|
|
2722
3039
|
export interface YieldClaimConfirmedWebhookPayload {
|
|
2723
3040
|
caip2: string;
|
|
2724
3041
|
|
|
2725
|
-
rewards: Array<
|
|
3042
|
+
rewards: Array<YieldClaimReward>;
|
|
2726
3043
|
|
|
2727
3044
|
transaction_id: string;
|
|
2728
3045
|
|
|
@@ -2734,14 +3051,15 @@ export interface YieldClaimConfirmedWebhookPayload {
|
|
|
2734
3051
|
wallet_id: string;
|
|
2735
3052
|
}
|
|
2736
3053
|
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
3054
|
+
/**
|
|
3055
|
+
* A single reward token claimed from a yield vault.
|
|
3056
|
+
*/
|
|
3057
|
+
export interface YieldClaimReward {
|
|
3058
|
+
amount: string;
|
|
2740
3059
|
|
|
2741
|
-
|
|
3060
|
+
token_address: string;
|
|
2742
3061
|
|
|
2743
|
-
|
|
2744
|
-
}
|
|
3062
|
+
token_symbol: string;
|
|
2745
3063
|
}
|
|
2746
3064
|
|
|
2747
3065
|
/**
|
|
@@ -2792,6 +3110,7 @@ export interface YieldWithdrawConfirmedWebhookPayload {
|
|
|
2792
3110
|
|
|
2793
3111
|
export declare namespace Webhooks {
|
|
2794
3112
|
export {
|
|
3113
|
+
type BlockInfo as BlockInfo,
|
|
2795
3114
|
type BridgeCryptoDepositMetadata as BridgeCryptoDepositMetadata,
|
|
2796
3115
|
type BridgeCryptoTransferMetadata as BridgeCryptoTransferMetadata,
|
|
2797
3116
|
type BridgeFiatDepositMetadata as BridgeFiatDepositMetadata,
|
|
@@ -2807,6 +3126,9 @@ export declare namespace Webhooks {
|
|
|
2807
3126
|
type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload,
|
|
2808
3127
|
type IntentFailedWebhookPayload as IntentFailedWebhookPayload,
|
|
2809
3128
|
type IntentRejectedWebhookPayload as IntentRejectedWebhookPayload,
|
|
3129
|
+
type KrakenEmbedCustomOrderCancelledWebhookPayload as KrakenEmbedCustomOrderCancelledWebhookPayload,
|
|
3130
|
+
type KrakenEmbedCustomOrderExecutedWebhookPayload as KrakenEmbedCustomOrderExecutedWebhookPayload,
|
|
3131
|
+
type KrakenEmbedCustomOrderExecutionFailedWebhookPayload as KrakenEmbedCustomOrderExecutionFailedWebhookPayload,
|
|
2810
3132
|
type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload,
|
|
2811
3133
|
type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload,
|
|
2812
3134
|
type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
|
@@ -2828,6 +3150,7 @@ export declare namespace Webhooks {
|
|
|
2828
3150
|
type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
|
|
2829
3151
|
type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
|
|
2830
3152
|
type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
|
|
3153
|
+
type UserReference as UserReference,
|
|
2831
3154
|
type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
|
|
2832
3155
|
type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
|
|
2833
3156
|
type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
|
|
@@ -2852,6 +3175,7 @@ export declare namespace Webhooks {
|
|
|
2852
3175
|
type WalletActionTransferFailedWebhookPayload as WalletActionTransferFailedWebhookPayload,
|
|
2853
3176
|
type WalletActionTransferRejectedWebhookPayload as WalletActionTransferRejectedWebhookPayload,
|
|
2854
3177
|
type WalletActionTransferSucceededWebhookPayload as WalletActionTransferSucceededWebhookPayload,
|
|
3178
|
+
type WalletArchivedWebhookPayload as WalletArchivedWebhookPayload,
|
|
2855
3179
|
type WalletFundsAsset as WalletFundsAsset,
|
|
2856
3180
|
type WalletFundsErc20Asset as WalletFundsErc20Asset,
|
|
2857
3181
|
type WalletFundsNativeTokenAsset as WalletFundsNativeTokenAsset,
|
|
@@ -2859,8 +3183,10 @@ export declare namespace Webhooks {
|
|
|
2859
3183
|
type WalletFundsSplAsset as WalletFundsSplAsset,
|
|
2860
3184
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
2861
3185
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
3186
|
+
type WalletRestoredWebhookPayload as WalletRestoredWebhookPayload,
|
|
2862
3187
|
type WebhookPayload as WebhookPayload,
|
|
2863
3188
|
type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
|
|
3189
|
+
type YieldClaimReward as YieldClaimReward,
|
|
2864
3190
|
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
2865
3191
|
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
2866
3192
|
};
|