@privy-io/node 0.10.1 → 0.11.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 +50 -0
- package/client.d.mts +37 -19
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -19
- package/client.d.ts.map +1 -1
- package/client.js +29 -10
- package/client.js.map +1 -1
- package/client.mjs +30 -11
- package/client.mjs.map +1 -1
- package/index.d.mts +2 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +12 -1
- package/public-api/PrivyClient.d.mts +3 -0
- package/public-api/PrivyClient.d.mts.map +1 -1
- package/public-api/PrivyClient.d.ts +3 -0
- package/public-api/PrivyClient.d.ts.map +1 -1
- package/public-api/PrivyClient.js +5 -0
- package/public-api/PrivyClient.js.map +1 -1
- package/public-api/PrivyClient.mjs +5 -0
- package/public-api/PrivyClient.mjs.map +1 -1
- package/public-api/services/apps.d.mts +25 -0
- package/public-api/services/apps.d.mts.map +1 -0
- package/public-api/services/apps.d.ts +25 -0
- package/public-api/services/apps.d.ts.map +1 -0
- package/public-api/services/apps.js +56 -0
- package/public-api/services/apps.js.map +1 -0
- package/public-api/services/apps.mjs +52 -0
- package/public-api/services/apps.mjs.map +1 -0
- package/public-api/services/policies.d.mts +6 -2
- package/public-api/services/policies.d.mts.map +1 -1
- package/public-api/services/policies.d.ts +6 -2
- package/public-api/services/policies.d.ts.map +1 -1
- package/public-api/services/policies.js +6 -0
- package/public-api/services/policies.js.map +1 -1
- package/public-api/services/policies.mjs +6 -0
- package/public-api/services/policies.mjs.map +1 -1
- package/public-api/services/wallets.d.mts +5 -1
- package/public-api/services/wallets.d.mts.map +1 -1
- package/public-api/services/wallets.d.ts +5 -1
- package/public-api/services/wallets.d.ts.map +1 -1
- package/public-api/services/wallets.js +6 -0
- package/public-api/services/wallets.js.map +1 -1
- package/public-api/services/wallets.mjs +6 -0
- package/public-api/services/wallets.mjs.map +1 -1
- package/resources/accounts.d.mts +182 -4
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +182 -4
- package/resources/accounts.d.ts.map +1 -1
- package/resources/apps/allowlist.d.mts +81 -0
- package/resources/apps/allowlist.d.mts.map +1 -0
- package/resources/apps/allowlist.d.ts +81 -0
- package/resources/apps/allowlist.d.ts.map +1 -0
- package/resources/apps/allowlist.js +56 -0
- package/resources/apps/allowlist.js.map +1 -0
- package/resources/apps/allowlist.mjs +52 -0
- package/resources/apps/allowlist.mjs.map +1 -0
- package/resources/apps/apps.d.mts +238 -0
- package/resources/apps/apps.d.mts.map +1 -0
- package/resources/apps/apps.d.ts +238 -0
- package/resources/apps/apps.d.ts.map +1 -0
- package/resources/apps/apps.js +44 -0
- package/resources/apps/apps.js.map +1 -0
- package/resources/apps/apps.mjs +39 -0
- package/resources/apps/apps.mjs.map +1 -0
- package/resources/apps/index.d.mts +3 -0
- package/resources/apps/index.d.mts.map +1 -0
- package/resources/apps/index.d.ts +3 -0
- package/resources/apps/index.d.ts.map +1 -0
- package/resources/apps/index.js +9 -0
- package/resources/apps/index.js.map +1 -0
- package/resources/apps/index.mjs +4 -0
- package/resources/apps/index.mjs.map +1 -0
- package/resources/apps.d.mts +1 -151
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -151
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +2 -5
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +1 -3
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +144 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +144 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/index.d.mts +11 -10
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -10
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +2815 -31
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +2815 -31
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js +156 -0
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs +156 -0
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +45 -2
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +45 -2
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +18 -1
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +18 -1
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +62 -0
- package/resources/kraken-embed.d.mts.map +1 -0
- package/resources/kraken-embed.d.ts +62 -0
- package/resources/kraken-embed.d.ts.map +1 -0
- package/resources/kraken-embed.js +9 -0
- package/resources/kraken-embed.js.map +1 -0
- package/resources/kraken-embed.mjs +5 -0
- package/resources/kraken-embed.mjs.map +1 -0
- package/resources/policies.d.mts +63 -56
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +63 -56
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +3 -0
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +3 -0
- package/resources/policies.mjs.map +1 -1
- package/resources/transactions.d.mts +3 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js +3 -0
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs +3 -0
- package/resources/transactions.mjs.map +1 -1
- package/resources/users.d.mts +50 -47
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +50 -47
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +7 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +7 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +3 -0
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +3 -0
- 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 +9 -6
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +9 -6
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +3 -0
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +3 -0
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +126 -69
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +126 -69
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +11 -5
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +11 -5
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +319 -283
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +319 -283
- 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 -9
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +26 -9
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +196 -37
- package/src/index.ts +10 -0
- package/src/public-api/PrivyClient.ts +7 -0
- package/src/public-api/services/apps.ts +85 -0
- package/src/public-api/services/policies.ts +15 -1
- package/src/public-api/services/wallets.ts +14 -0
- package/src/resources/accounts.ts +217 -3
- package/src/resources/apps/allowlist.ts +126 -0
- package/src/resources/apps/apps.ts +391 -0
- package/src/resources/apps/index.ts +20 -0
- package/src/resources/apps.ts +1 -257
- package/src/resources/client-auth.ts +202 -0
- package/src/resources/index.ts +93 -21
- package/src/resources/intents.ts +4579 -40
- package/src/resources/key-quorums.ts +50 -2
- package/src/resources/kraken-embed.ts +85 -0
- package/src/resources/policies.ts +83 -76
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users.ts +66 -63
- package/src/resources/wallets/balance.ts +9 -2
- package/src/resources/wallets/index.ts +4 -2
- package/src/resources/wallets/transactions.ts +10 -4
- package/src/resources/wallets/wallets.ts +171 -93
- package/src/resources/webhooks.ts +454 -438
- package/src/resources/yield.ts +39 -10
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,153 +1,254 @@
|
|
|
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 IntentsAPI from './intents';
|
|
4
5
|
import * as UsersAPI from './users';
|
|
5
6
|
|
|
6
7
|
export class Webhooks extends APIResource {}
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
|
-
* Payload for the
|
|
10
|
+
* Payload for the intent.created webhook event.
|
|
10
11
|
*/
|
|
11
|
-
export interface
|
|
12
|
+
export interface IntentCreatedWebhookPayload {
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Unix timestamp when the intent was created.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
created_at: number;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Unix timestamp when the intent expires.
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
-
}
|
|
21
|
+
expires_at: number;
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* Payload for the user.authenticated webhook event.
|
|
25
|
-
*/
|
|
26
|
-
export interface UserAuthenticatedWebhookPayload {
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
24
|
+
* The unique ID of the intent.
|
|
29
25
|
*/
|
|
30
|
-
|
|
26
|
+
intent_id: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Type of intent.
|
|
30
|
+
*/
|
|
31
|
+
intent_type: IntentsAPI.IntentType;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The current status of the intent.
|
|
35
|
+
*/
|
|
36
|
+
status: string;
|
|
31
37
|
|
|
32
38
|
/**
|
|
33
39
|
* The type of webhook event.
|
|
34
40
|
*/
|
|
35
|
-
type: '
|
|
41
|
+
type: 'intent.created';
|
|
36
42
|
|
|
37
43
|
/**
|
|
38
|
-
*
|
|
44
|
+
* Key quorums that can authorize this intent.
|
|
39
45
|
*/
|
|
40
|
-
|
|
46
|
+
authorization_details?: Array<IntentsAPI.IntentAuthorization>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Display name of the user who created the intent.
|
|
50
|
+
*/
|
|
51
|
+
created_by_display_name?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the user who created the intent.
|
|
55
|
+
*/
|
|
56
|
+
created_by_id?: string;
|
|
41
57
|
}
|
|
42
58
|
|
|
43
59
|
/**
|
|
44
|
-
* Payload for the
|
|
60
|
+
* Payload for the intent.authorized webhook event.
|
|
45
61
|
*/
|
|
46
|
-
export interface
|
|
62
|
+
export interface IntentAuthorizedWebhookPayload {
|
|
47
63
|
/**
|
|
48
|
-
*
|
|
64
|
+
* Unix timestamp when the authorization was recorded.
|
|
49
65
|
*/
|
|
50
|
-
|
|
66
|
+
authorized_at: number;
|
|
51
67
|
|
|
52
68
|
/**
|
|
53
|
-
*
|
|
69
|
+
* Unix timestamp when the intent was created.
|
|
54
70
|
*/
|
|
55
|
-
|
|
71
|
+
created_at: number;
|
|
56
72
|
|
|
57
73
|
/**
|
|
58
|
-
*
|
|
74
|
+
* Unix timestamp when the intent expires.
|
|
59
75
|
*/
|
|
60
|
-
|
|
61
|
-
}
|
|
76
|
+
expires_at: number;
|
|
62
77
|
|
|
63
|
-
/**
|
|
64
|
-
* Payload for the user.unlinked_account webhook event.
|
|
65
|
-
*/
|
|
66
|
-
export interface UserUnlinkedAccountWebhookPayload {
|
|
67
78
|
/**
|
|
68
|
-
*
|
|
79
|
+
* The unique ID of the intent.
|
|
69
80
|
*/
|
|
70
|
-
|
|
81
|
+
intent_id: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Type of intent.
|
|
85
|
+
*/
|
|
86
|
+
intent_type: IntentsAPI.IntentType;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
90
|
+
*/
|
|
91
|
+
member: IntentsAPI.IntentAuthorizationKeyQuorumMember;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The current status of the intent.
|
|
95
|
+
*/
|
|
96
|
+
status: string;
|
|
71
97
|
|
|
72
98
|
/**
|
|
73
99
|
* The type of webhook event.
|
|
74
100
|
*/
|
|
75
|
-
type: '
|
|
101
|
+
type: 'intent.authorized';
|
|
76
102
|
|
|
77
103
|
/**
|
|
78
|
-
*
|
|
104
|
+
* Display name of the user who created the intent.
|
|
79
105
|
*/
|
|
80
|
-
|
|
106
|
+
created_by_display_name?: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The ID of the user who created the intent.
|
|
110
|
+
*/
|
|
111
|
+
created_by_id?: string;
|
|
81
112
|
}
|
|
82
113
|
|
|
83
114
|
/**
|
|
84
|
-
* Payload for the
|
|
115
|
+
* Payload for the intent.executed webhook event.
|
|
85
116
|
*/
|
|
86
|
-
export interface
|
|
117
|
+
export interface IntentExecutedWebhookPayload {
|
|
87
118
|
/**
|
|
88
|
-
*
|
|
119
|
+
* Result of the successful intent execution.
|
|
89
120
|
*/
|
|
90
|
-
|
|
121
|
+
action_result: IntentsAPI.BaseActionResult;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Unix timestamp when the intent was created.
|
|
125
|
+
*/
|
|
126
|
+
created_at: number;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Unix timestamp when the intent expires.
|
|
130
|
+
*/
|
|
131
|
+
expires_at: number;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The unique ID of the intent.
|
|
135
|
+
*/
|
|
136
|
+
intent_id: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Type of intent.
|
|
140
|
+
*/
|
|
141
|
+
intent_type: IntentsAPI.IntentType;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The current status of the intent.
|
|
145
|
+
*/
|
|
146
|
+
status: string;
|
|
91
147
|
|
|
92
148
|
/**
|
|
93
149
|
* The type of webhook event.
|
|
94
150
|
*/
|
|
95
|
-
type: '
|
|
151
|
+
type: 'intent.executed';
|
|
96
152
|
|
|
97
153
|
/**
|
|
98
|
-
*
|
|
154
|
+
* Display name of the user who created the intent.
|
|
99
155
|
*/
|
|
100
|
-
|
|
156
|
+
created_by_display_name?: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The ID of the user who created the intent.
|
|
160
|
+
*/
|
|
161
|
+
created_by_id?: string;
|
|
101
162
|
}
|
|
102
163
|
|
|
103
164
|
/**
|
|
104
|
-
* Payload for the
|
|
165
|
+
* Payload for the intent.failed webhook event.
|
|
105
166
|
*/
|
|
106
|
-
export interface
|
|
167
|
+
export interface IntentFailedWebhookPayload {
|
|
107
168
|
/**
|
|
108
|
-
*
|
|
169
|
+
* Result of the failed intent execution.
|
|
109
170
|
*/
|
|
110
|
-
|
|
171
|
+
action_result: IntentsAPI.BaseActionResult;
|
|
111
172
|
|
|
112
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Unix timestamp when the intent was created.
|
|
175
|
+
*/
|
|
176
|
+
created_at: number;
|
|
113
177
|
|
|
114
|
-
|
|
178
|
+
/**
|
|
179
|
+
* Unix timestamp when the intent expires.
|
|
180
|
+
*/
|
|
181
|
+
expires_at: number;
|
|
115
182
|
|
|
116
183
|
/**
|
|
117
|
-
*
|
|
184
|
+
* The unique ID of the intent.
|
|
118
185
|
*/
|
|
119
|
-
|
|
186
|
+
intent_id: string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Type of intent.
|
|
190
|
+
*/
|
|
191
|
+
intent_type: IntentsAPI.IntentType;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The current status of the intent.
|
|
195
|
+
*/
|
|
196
|
+
status: string;
|
|
120
197
|
|
|
121
198
|
/**
|
|
122
199
|
* The type of webhook event.
|
|
123
200
|
*/
|
|
124
|
-
type: '
|
|
125
|
-
}
|
|
201
|
+
type: 'intent.failed';
|
|
126
202
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
203
|
+
/**
|
|
204
|
+
* Display name of the user who created the intent.
|
|
205
|
+
*/
|
|
206
|
+
created_by_display_name?: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The ID of the user who created the intent.
|
|
210
|
+
*/
|
|
211
|
+
created_by_id?: string;
|
|
131
212
|
}
|
|
132
213
|
|
|
133
214
|
/**
|
|
134
|
-
* Payload for the
|
|
215
|
+
* Payload for the mfa.enabled webhook event.
|
|
135
216
|
*/
|
|
136
|
-
export interface
|
|
217
|
+
export interface MfaEnabledWebhookPayload {
|
|
218
|
+
/**
|
|
219
|
+
* The MFA method that was enabled.
|
|
220
|
+
*/
|
|
221
|
+
method: 'sms' | 'totp' | 'passkey';
|
|
222
|
+
|
|
137
223
|
/**
|
|
138
224
|
* The type of webhook event.
|
|
139
225
|
*/
|
|
140
|
-
type: '
|
|
226
|
+
type: 'mfa.enabled';
|
|
141
227
|
|
|
142
228
|
/**
|
|
143
|
-
*
|
|
229
|
+
* The ID of the user who enabled MFA.
|
|
144
230
|
*/
|
|
145
|
-
|
|
231
|
+
user_id: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Payload for the mfa.disabled webhook event.
|
|
236
|
+
*/
|
|
237
|
+
export interface MfaDisabledWebhookPayload {
|
|
238
|
+
/**
|
|
239
|
+
* The MFA method that was disabled.
|
|
240
|
+
*/
|
|
241
|
+
method: 'sms' | 'totp' | 'passkey';
|
|
146
242
|
|
|
147
243
|
/**
|
|
148
|
-
*
|
|
244
|
+
* The type of webhook event.
|
|
149
245
|
*/
|
|
150
|
-
|
|
246
|
+
type: 'mfa.disabled';
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The ID of the user who disabled MFA.
|
|
250
|
+
*/
|
|
251
|
+
user_id: string;
|
|
151
252
|
}
|
|
152
253
|
|
|
153
254
|
/**
|
|
@@ -369,47 +470,224 @@ export interface TransactionReplacedWebhookPayload {
|
|
|
369
470
|
/**
|
|
370
471
|
* The Privy-assigned ID for this transaction.
|
|
371
472
|
*/
|
|
372
|
-
transaction_id: string;
|
|
473
|
+
transaction_id: string;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* The type of webhook event.
|
|
477
|
+
*/
|
|
478
|
+
type: 'transaction.replaced';
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* The ID of the wallet that initiated the transaction.
|
|
482
|
+
*/
|
|
483
|
+
wallet_id: string;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Payload for the transaction.provider_error webhook event.
|
|
488
|
+
*/
|
|
489
|
+
export interface TransactionProviderErrorWebhookPayload {
|
|
490
|
+
/**
|
|
491
|
+
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
492
|
+
*/
|
|
493
|
+
caip2: string;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* The blockchain transaction hash.
|
|
497
|
+
*/
|
|
498
|
+
transaction_hash: string;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* The Privy-assigned ID for this transaction.
|
|
502
|
+
*/
|
|
503
|
+
transaction_id: string;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* The type of webhook event.
|
|
507
|
+
*/
|
|
508
|
+
type: 'transaction.provider_error';
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* The ID of the wallet that initiated the transaction.
|
|
512
|
+
*/
|
|
513
|
+
wallet_id: string;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Payload for the user_operation.completed webhook event.
|
|
518
|
+
*/
|
|
519
|
+
export interface UserOperationCompletedWebhookPayload {
|
|
520
|
+
actual_gas_cost: string;
|
|
521
|
+
|
|
522
|
+
actual_gas_used: string;
|
|
523
|
+
|
|
524
|
+
block_number: number;
|
|
525
|
+
|
|
526
|
+
caip2: string;
|
|
527
|
+
|
|
528
|
+
log_index: number;
|
|
529
|
+
|
|
530
|
+
nonce: string;
|
|
531
|
+
|
|
532
|
+
paymaster: string | null;
|
|
533
|
+
|
|
534
|
+
sender: string;
|
|
535
|
+
|
|
536
|
+
success: boolean;
|
|
537
|
+
|
|
538
|
+
transaction_hash: string;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* The type of webhook event.
|
|
542
|
+
*/
|
|
543
|
+
type: 'user_operation.completed';
|
|
544
|
+
|
|
545
|
+
user_op_hash: string;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Payload for the user.created webhook event.
|
|
550
|
+
*/
|
|
551
|
+
export interface UserCreatedWebhookPayload {
|
|
552
|
+
/**
|
|
553
|
+
* The type of webhook event.
|
|
554
|
+
*/
|
|
555
|
+
type: 'user.created';
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* A Privy user object.
|
|
559
|
+
*/
|
|
560
|
+
user: UsersAPI.User;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Payload for the user.authenticated webhook event.
|
|
565
|
+
*/
|
|
566
|
+
export interface UserAuthenticatedWebhookPayload {
|
|
567
|
+
/**
|
|
568
|
+
* A linked account for the user.
|
|
569
|
+
*/
|
|
570
|
+
account: UsersAPI.LinkedAccount;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The type of webhook event.
|
|
574
|
+
*/
|
|
575
|
+
type: 'user.authenticated';
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* A Privy user object.
|
|
579
|
+
*/
|
|
580
|
+
user: UsersAPI.User;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Payload for the user.linked_account webhook event.
|
|
585
|
+
*/
|
|
586
|
+
export interface UserLinkedAccountWebhookPayload {
|
|
587
|
+
/**
|
|
588
|
+
* A linked account for the user.
|
|
589
|
+
*/
|
|
590
|
+
account: UsersAPI.LinkedAccount;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* The type of webhook event.
|
|
594
|
+
*/
|
|
595
|
+
type: 'user.linked_account';
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* A Privy user object.
|
|
599
|
+
*/
|
|
600
|
+
user: UsersAPI.User;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Payload for the user.unlinked_account webhook event.
|
|
605
|
+
*/
|
|
606
|
+
export interface UserUnlinkedAccountWebhookPayload {
|
|
607
|
+
/**
|
|
608
|
+
* A linked account for the user.
|
|
609
|
+
*/
|
|
610
|
+
account: UsersAPI.LinkedAccount;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* The type of webhook event.
|
|
614
|
+
*/
|
|
615
|
+
type: 'user.unlinked_account';
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* A Privy user object.
|
|
619
|
+
*/
|
|
620
|
+
user: UsersAPI.User;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Payload for the user.updated_account webhook event.
|
|
625
|
+
*/
|
|
626
|
+
export interface UserUpdatedAccountWebhookPayload {
|
|
627
|
+
/**
|
|
628
|
+
* A linked account for the user.
|
|
629
|
+
*/
|
|
630
|
+
account: UsersAPI.LinkedAccount;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* The type of webhook event.
|
|
634
|
+
*/
|
|
635
|
+
type: 'user.updated_account';
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* A Privy user object.
|
|
639
|
+
*/
|
|
640
|
+
user: UsersAPI.User;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Payload for the user.transferred_account webhook event.
|
|
645
|
+
*/
|
|
646
|
+
export interface UserTransferredAccountWebhookPayload {
|
|
647
|
+
/**
|
|
648
|
+
* A linked account for the user.
|
|
649
|
+
*/
|
|
650
|
+
account: UsersAPI.LinkedAccount;
|
|
651
|
+
|
|
652
|
+
deletedUser: true;
|
|
653
|
+
|
|
654
|
+
fromUser: UserTransferredAccountWebhookPayload.FromUser;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* A Privy user object.
|
|
658
|
+
*/
|
|
659
|
+
toUser: UsersAPI.User;
|
|
373
660
|
|
|
374
661
|
/**
|
|
375
662
|
* The type of webhook event.
|
|
376
663
|
*/
|
|
377
|
-
type: '
|
|
664
|
+
type: 'user.transferred_account';
|
|
665
|
+
}
|
|
378
666
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
667
|
+
export namespace UserTransferredAccountWebhookPayload {
|
|
668
|
+
export interface FromUser {
|
|
669
|
+
id: string;
|
|
670
|
+
}
|
|
383
671
|
}
|
|
384
672
|
|
|
385
673
|
/**
|
|
386
|
-
* Payload for the
|
|
674
|
+
* Payload for the user.wallet_created webhook event.
|
|
387
675
|
*/
|
|
388
|
-
export interface
|
|
389
|
-
/**
|
|
390
|
-
* The CAIP-2 chain identifier (e.g., eip155:1 for Ethereum mainnet).
|
|
391
|
-
*/
|
|
392
|
-
caip2: string;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* The blockchain transaction hash.
|
|
396
|
-
*/
|
|
397
|
-
transaction_hash: string;
|
|
398
|
-
|
|
676
|
+
export interface UserWalletCreatedWebhookPayload {
|
|
399
677
|
/**
|
|
400
|
-
* The
|
|
678
|
+
* The type of webhook event.
|
|
401
679
|
*/
|
|
402
|
-
|
|
680
|
+
type: 'user.wallet_created';
|
|
403
681
|
|
|
404
682
|
/**
|
|
405
|
-
*
|
|
683
|
+
* A Privy user object.
|
|
406
684
|
*/
|
|
407
|
-
|
|
685
|
+
user: UsersAPI.User;
|
|
408
686
|
|
|
409
687
|
/**
|
|
410
|
-
*
|
|
688
|
+
* Base schema for wallet accounts linked to the user.
|
|
411
689
|
*/
|
|
412
|
-
|
|
690
|
+
wallet: UsersAPI.LinkedAccountBaseWallet;
|
|
413
691
|
}
|
|
414
692
|
|
|
415
693
|
/**
|
|
@@ -789,322 +1067,113 @@ export interface WalletRecoveredWebhookPayload {
|
|
|
789
1067
|
}
|
|
790
1068
|
|
|
791
1069
|
/**
|
|
792
|
-
* Payload for the
|
|
1070
|
+
* Payload for the yield.deposit.confirmed webhook event.
|
|
793
1071
|
*/
|
|
794
|
-
export interface
|
|
795
|
-
|
|
796
|
-
* The MFA method that was enabled.
|
|
797
|
-
*/
|
|
798
|
-
method: 'sms' | 'totp' | 'passkey';
|
|
1072
|
+
export interface YieldDepositConfirmedWebhookPayload {
|
|
1073
|
+
assets: string;
|
|
799
1074
|
|
|
800
|
-
|
|
801
|
-
* The type of webhook event.
|
|
802
|
-
*/
|
|
803
|
-
type: 'mfa.enabled';
|
|
1075
|
+
caip2: string;
|
|
804
1076
|
|
|
805
|
-
|
|
806
|
-
* The ID of the user who enabled MFA.
|
|
807
|
-
*/
|
|
808
|
-
user_id: string;
|
|
809
|
-
}
|
|
1077
|
+
owner: string;
|
|
810
1078
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
export interface MfaDisabledWebhookPayload {
|
|
815
|
-
/**
|
|
816
|
-
* The MFA method that was disabled.
|
|
817
|
-
*/
|
|
818
|
-
method: 'sms' | 'totp' | 'passkey';
|
|
1079
|
+
sender: string;
|
|
1080
|
+
|
|
1081
|
+
shares: string;
|
|
819
1082
|
|
|
820
1083
|
/**
|
|
821
1084
|
* The type of webhook event.
|
|
822
1085
|
*/
|
|
823
|
-
type: '
|
|
1086
|
+
type: 'yield.deposit.confirmed';
|
|
824
1087
|
|
|
825
|
-
|
|
826
|
-
* The ID of the user who disabled MFA.
|
|
827
|
-
*/
|
|
828
|
-
user_id: string;
|
|
1088
|
+
vault_address: string;
|
|
829
1089
|
}
|
|
830
1090
|
|
|
831
1091
|
/**
|
|
832
|
-
* Payload for the
|
|
1092
|
+
* Payload for the yield.withdraw.confirmed webhook event.
|
|
833
1093
|
*/
|
|
834
|
-
export interface
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
1094
|
+
export interface YieldWithdrawConfirmedWebhookPayload {
|
|
1095
|
+
assets: string;
|
|
1096
|
+
|
|
1097
|
+
caip2: string;
|
|
1098
|
+
|
|
1099
|
+
owner: string;
|
|
1100
|
+
|
|
1101
|
+
receiver: string;
|
|
1102
|
+
|
|
1103
|
+
sender: string;
|
|
1104
|
+
|
|
1105
|
+
shares: string;
|
|
839
1106
|
|
|
840
1107
|
/**
|
|
841
1108
|
* The type of webhook event.
|
|
842
1109
|
*/
|
|
843
|
-
type: '
|
|
1110
|
+
type: 'yield.withdraw.confirmed';
|
|
844
1111
|
|
|
845
|
-
|
|
846
|
-
* The ID of the user.
|
|
847
|
-
*/
|
|
848
|
-
user_id: string;
|
|
1112
|
+
vault_address: string;
|
|
849
1113
|
}
|
|
850
1114
|
|
|
851
1115
|
/**
|
|
852
|
-
* Payload for the
|
|
1116
|
+
* Payload for the yield.claim.confirmed webhook event.
|
|
853
1117
|
*/
|
|
854
|
-
export interface
|
|
855
|
-
|
|
856
|
-
* ISO 8601 timestamp of when verification failed.
|
|
857
|
-
*/
|
|
858
|
-
failed_at: string;
|
|
1118
|
+
export interface YieldClaimConfirmedWebhookPayload {
|
|
1119
|
+
caip2: string;
|
|
859
1120
|
|
|
860
|
-
|
|
861
|
-
* The reason for the failure.
|
|
862
|
-
*/
|
|
863
|
-
failure_reason: 'timeout' | 'api_error' | 'disabled_or_closed';
|
|
1121
|
+
rewards: Array<YieldClaimConfirmedWebhookPayload.Reward>;
|
|
864
1122
|
|
|
865
|
-
|
|
866
|
-
* The type of webhook event.
|
|
867
|
-
*/
|
|
868
|
-
type: 'kraken_embed.verification_failed';
|
|
1123
|
+
transaction_id: string;
|
|
869
1124
|
|
|
870
1125
|
/**
|
|
871
|
-
* The
|
|
1126
|
+
* The type of webhook event.
|
|
872
1127
|
*/
|
|
873
|
-
|
|
1128
|
+
type: 'yield.claim.confirmed';
|
|
874
1129
|
|
|
875
|
-
|
|
876
|
-
* The user's status at the time of failure.
|
|
877
|
-
*/
|
|
878
|
-
status?:
|
|
879
|
-
| KrakenEmbedVerificationFailedWebhookPayload.UnionMember0
|
|
880
|
-
| KrakenEmbedVerificationFailedWebhookPayload.UnionMember1
|
|
881
|
-
| KrakenEmbedVerificationFailedWebhookPayload.UnionMember2;
|
|
1130
|
+
wallet_id: string;
|
|
882
1131
|
}
|
|
883
1132
|
|
|
884
|
-
export namespace
|
|
885
|
-
export interface
|
|
886
|
-
|
|
887
|
-
UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2
|
|
888
|
-
>;
|
|
889
|
-
|
|
890
|
-
state: 'ok';
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
export namespace UnionMember0 {
|
|
894
|
-
export interface UnionMember0 {
|
|
895
|
-
action_type: 'verification';
|
|
896
|
-
|
|
897
|
-
deadline: string | null;
|
|
898
|
-
|
|
899
|
-
reasons: Array<string>;
|
|
900
|
-
|
|
901
|
-
verification_type:
|
|
902
|
-
| 'identity'
|
|
903
|
-
| 'residence'
|
|
904
|
-
| 'selfie'
|
|
905
|
-
| 'sanctions_check'
|
|
906
|
-
| 'pep_check'
|
|
907
|
-
| 'negative_news_check'
|
|
908
|
-
| 'tax_id';
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
export interface UnionMember1 {
|
|
912
|
-
action_type: 'provide_details';
|
|
913
|
-
|
|
914
|
-
deadline: string | null;
|
|
915
|
-
|
|
916
|
-
details_type:
|
|
917
|
-
| UnionMember1.UnionMember0
|
|
918
|
-
| UnionMember1.FullNameType
|
|
919
|
-
| UnionMember1.DateOfBirthType
|
|
920
|
-
| UnionMember1.CityOfBirthType
|
|
921
|
-
| UnionMember1.CountryOfBirthType
|
|
922
|
-
| UnionMember1.NationalitiesType
|
|
923
|
-
| UnionMember1.ResidenceType
|
|
924
|
-
| UnionMember1.PhoneType
|
|
925
|
-
| UnionMember1.OccupationType
|
|
926
|
-
| UnionMember1.EmployerType
|
|
927
|
-
| UnionMember1.TaxIdsType
|
|
928
|
-
| UnionMember1.ClientIdentifierType;
|
|
929
|
-
|
|
930
|
-
reason: string | null;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
export namespace UnionMember1 {
|
|
934
|
-
export interface UnionMember0 {
|
|
935
|
-
type: 'terms_of_service';
|
|
936
|
-
|
|
937
|
-
version?: number;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
export interface FullNameType {
|
|
941
|
-
type: 'full_name';
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
export interface DateOfBirthType {
|
|
945
|
-
type: 'date_of_birth';
|
|
946
|
-
}
|
|
1133
|
+
export namespace YieldClaimConfirmedWebhookPayload {
|
|
1134
|
+
export interface Reward {
|
|
1135
|
+
amount: string;
|
|
947
1136
|
|
|
948
|
-
|
|
949
|
-
type: 'city_of_birth';
|
|
950
|
-
}
|
|
1137
|
+
token_address: string;
|
|
951
1138
|
|
|
952
|
-
|
|
953
|
-
type: 'country_of_birth';
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
export interface NationalitiesType {
|
|
957
|
-
type: 'nationalities';
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
export interface ResidenceType {
|
|
961
|
-
type: 'residence';
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
export interface PhoneType {
|
|
965
|
-
type: 'phone';
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
export interface OccupationType {
|
|
969
|
-
type: 'occupation';
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
export interface EmployerType {
|
|
973
|
-
type: 'employer';
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
export interface TaxIdsType {
|
|
977
|
-
type: 'tax_ids';
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
export interface ClientIdentifierType {
|
|
981
|
-
type: 'client_identifier';
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
export interface UnionMember2 {
|
|
986
|
-
action_type: 'wait';
|
|
987
|
-
|
|
988
|
-
wait_reason_code: string;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
export interface UnionMember1 {
|
|
993
|
-
reasons: Array<string>;
|
|
994
|
-
|
|
995
|
-
required_actions: Array<
|
|
996
|
-
UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2
|
|
997
|
-
>;
|
|
998
|
-
|
|
999
|
-
state: 'disabled';
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
export namespace UnionMember1 {
|
|
1003
|
-
export interface UnionMember0 {
|
|
1004
|
-
action_type: 'verification';
|
|
1005
|
-
|
|
1006
|
-
deadline: string | null;
|
|
1007
|
-
|
|
1008
|
-
reasons: Array<string>;
|
|
1009
|
-
|
|
1010
|
-
verification_type:
|
|
1011
|
-
| 'identity'
|
|
1012
|
-
| 'residence'
|
|
1013
|
-
| 'selfie'
|
|
1014
|
-
| 'sanctions_check'
|
|
1015
|
-
| 'pep_check'
|
|
1016
|
-
| 'negative_news_check'
|
|
1017
|
-
| 'tax_id';
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
export interface UnionMember1 {
|
|
1021
|
-
action_type: 'provide_details';
|
|
1022
|
-
|
|
1023
|
-
deadline: string | null;
|
|
1024
|
-
|
|
1025
|
-
details_type:
|
|
1026
|
-
| UnionMember1.UnionMember0
|
|
1027
|
-
| UnionMember1.FullNameType
|
|
1028
|
-
| UnionMember1.DateOfBirthType
|
|
1029
|
-
| UnionMember1.CityOfBirthType
|
|
1030
|
-
| UnionMember1.CountryOfBirthType
|
|
1031
|
-
| UnionMember1.NationalitiesType
|
|
1032
|
-
| UnionMember1.ResidenceType
|
|
1033
|
-
| UnionMember1.PhoneType
|
|
1034
|
-
| UnionMember1.OccupationType
|
|
1035
|
-
| UnionMember1.EmployerType
|
|
1036
|
-
| UnionMember1.TaxIdsType
|
|
1037
|
-
| UnionMember1.ClientIdentifierType;
|
|
1038
|
-
|
|
1039
|
-
reason: string | null;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
export namespace UnionMember1 {
|
|
1043
|
-
export interface UnionMember0 {
|
|
1044
|
-
type: 'terms_of_service';
|
|
1045
|
-
|
|
1046
|
-
version?: number;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
export interface FullNameType {
|
|
1050
|
-
type: 'full_name';
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
export interface DateOfBirthType {
|
|
1054
|
-
type: 'date_of_birth';
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
export interface CityOfBirthType {
|
|
1058
|
-
type: 'city_of_birth';
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
export interface CountryOfBirthType {
|
|
1062
|
-
type: 'country_of_birth';
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
export interface NationalitiesType {
|
|
1066
|
-
type: 'nationalities';
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
export interface ResidenceType {
|
|
1070
|
-
type: 'residence';
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
export interface PhoneType {
|
|
1074
|
-
type: 'phone';
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
export interface OccupationType {
|
|
1078
|
-
type: 'occupation';
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
export interface EmployerType {
|
|
1082
|
-
type: 'employer';
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
export interface TaxIdsType {
|
|
1086
|
-
type: 'tax_ids';
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
export interface ClientIdentifierType {
|
|
1090
|
-
type: 'client_identifier';
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
export interface UnionMember2 {
|
|
1095
|
-
action_type: 'wait';
|
|
1096
|
-
|
|
1097
|
-
wait_reason_code: string;
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
export interface UnionMember2 {
|
|
1102
|
-
reasons: Array<string>;
|
|
1103
|
-
|
|
1104
|
-
state: 'closed';
|
|
1139
|
+
token_symbol: string;
|
|
1105
1140
|
}
|
|
1106
1141
|
}
|
|
1107
1142
|
|
|
1143
|
+
/**
|
|
1144
|
+
* Union of all webhook payload schemas.
|
|
1145
|
+
*/
|
|
1146
|
+
export type WebhookPayload =
|
|
1147
|
+
| UserCreatedWebhookPayload
|
|
1148
|
+
| UserAuthenticatedWebhookPayload
|
|
1149
|
+
| UserLinkedAccountWebhookPayload
|
|
1150
|
+
| UserUnlinkedAccountWebhookPayload
|
|
1151
|
+
| UserUpdatedAccountWebhookPayload
|
|
1152
|
+
| UserTransferredAccountWebhookPayload
|
|
1153
|
+
| UserWalletCreatedWebhookPayload
|
|
1154
|
+
| TransactionBroadcastedWebhookPayload
|
|
1155
|
+
| TransactionConfirmedWebhookPayload
|
|
1156
|
+
| TransactionExecutionRevertedWebhookPayload
|
|
1157
|
+
| TransactionStillPendingWebhookPayload
|
|
1158
|
+
| TransactionFailedWebhookPayload
|
|
1159
|
+
| TransactionReplacedWebhookPayload
|
|
1160
|
+
| TransactionProviderErrorWebhookPayload
|
|
1161
|
+
| FundsDepositedWebhookPayload
|
|
1162
|
+
| FundsWithdrawnWebhookPayload
|
|
1163
|
+
| PrivateKeyExportWebhookPayload
|
|
1164
|
+
| WalletRecoverySetupWebhookPayload
|
|
1165
|
+
| WalletRecoveredWebhookPayload
|
|
1166
|
+
| MfaEnabledWebhookPayload
|
|
1167
|
+
| MfaDisabledWebhookPayload
|
|
1168
|
+
| YieldDepositConfirmedWebhookPayload
|
|
1169
|
+
| YieldWithdrawConfirmedWebhookPayload
|
|
1170
|
+
| YieldClaimConfirmedWebhookPayload
|
|
1171
|
+
| UserOperationCompletedWebhookPayload
|
|
1172
|
+
| IntentCreatedWebhookPayload
|
|
1173
|
+
| IntentAuthorizedWebhookPayload
|
|
1174
|
+
| IntentExecutedWebhookPayload
|
|
1175
|
+
| IntentFailedWebhookPayload;
|
|
1176
|
+
|
|
1108
1177
|
/**
|
|
1109
1178
|
* Payload for the kraken_embed.quote_executed webhook event.
|
|
1110
1179
|
*/
|
|
@@ -1252,73 +1321,14 @@ export interface KrakenEmbedUserClosedWebhookPayload {
|
|
|
1252
1321
|
user_id: string;
|
|
1253
1322
|
}
|
|
1254
1323
|
|
|
1255
|
-
/**
|
|
1256
|
-
* Payload for the yield.deposit.confirmed webhook event.
|
|
1257
|
-
*/
|
|
1258
|
-
export interface YieldDepositConfirmedWebhookPayload {
|
|
1259
|
-
assets: string;
|
|
1260
|
-
|
|
1261
|
-
block_number: number;
|
|
1262
|
-
|
|
1263
|
-
caip2: string;
|
|
1264
|
-
|
|
1265
|
-
log_index: number;
|
|
1266
|
-
|
|
1267
|
-
owner: string;
|
|
1268
|
-
|
|
1269
|
-
sender: string;
|
|
1270
|
-
|
|
1271
|
-
shares: string;
|
|
1272
|
-
|
|
1273
|
-
transaction_hash: string;
|
|
1274
|
-
|
|
1275
|
-
/**
|
|
1276
|
-
* The type of webhook event.
|
|
1277
|
-
*/
|
|
1278
|
-
type: 'yield.deposit.confirmed';
|
|
1279
|
-
|
|
1280
|
-
vault_address: string;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
/**
|
|
1284
|
-
* Payload for the yield.withdraw.confirmed webhook event.
|
|
1285
|
-
*/
|
|
1286
|
-
export interface YieldWithdrawConfirmedWebhookPayload {
|
|
1287
|
-
assets: string;
|
|
1288
|
-
|
|
1289
|
-
block_number: number;
|
|
1290
|
-
|
|
1291
|
-
caip2: string;
|
|
1292
|
-
|
|
1293
|
-
log_index: number;
|
|
1294
|
-
|
|
1295
|
-
owner: string;
|
|
1296
|
-
|
|
1297
|
-
receiver: string;
|
|
1298
|
-
|
|
1299
|
-
sender: string;
|
|
1300
|
-
|
|
1301
|
-
shares: string;
|
|
1302
|
-
|
|
1303
|
-
transaction_hash: string;
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* The type of webhook event.
|
|
1307
|
-
*/
|
|
1308
|
-
type: 'yield.withdraw.confirmed';
|
|
1309
|
-
|
|
1310
|
-
vault_address: string;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
1324
|
export declare namespace Webhooks {
|
|
1314
1325
|
export {
|
|
1315
|
-
type
|
|
1316
|
-
type
|
|
1317
|
-
type
|
|
1318
|
-
type
|
|
1319
|
-
type
|
|
1320
|
-
type
|
|
1321
|
-
type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
|
|
1326
|
+
type IntentCreatedWebhookPayload as IntentCreatedWebhookPayload,
|
|
1327
|
+
type IntentAuthorizedWebhookPayload as IntentAuthorizedWebhookPayload,
|
|
1328
|
+
type IntentExecutedWebhookPayload as IntentExecutedWebhookPayload,
|
|
1329
|
+
type IntentFailedWebhookPayload as IntentFailedWebhookPayload,
|
|
1330
|
+
type MfaEnabledWebhookPayload as MfaEnabledWebhookPayload,
|
|
1331
|
+
type MfaDisabledWebhookPayload as MfaDisabledWebhookPayload,
|
|
1322
1332
|
type TransactionBroadcastedWebhookPayload as TransactionBroadcastedWebhookPayload,
|
|
1323
1333
|
type TransactionConfirmedWebhookPayload as TransactionConfirmedWebhookPayload,
|
|
1324
1334
|
type TransactionExecutionRevertedWebhookPayload as TransactionExecutionRevertedWebhookPayload,
|
|
@@ -1326,22 +1336,28 @@ export declare namespace Webhooks {
|
|
|
1326
1336
|
type TransactionFailedWebhookPayload as TransactionFailedWebhookPayload,
|
|
1327
1337
|
type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
|
|
1328
1338
|
type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload,
|
|
1339
|
+
type UserOperationCompletedWebhookPayload as UserOperationCompletedWebhookPayload,
|
|
1340
|
+
type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
|
|
1341
|
+
type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
|
|
1342
|
+
type UserLinkedAccountWebhookPayload as UserLinkedAccountWebhookPayload,
|
|
1343
|
+
type UserUnlinkedAccountWebhookPayload as UserUnlinkedAccountWebhookPayload,
|
|
1344
|
+
type UserUpdatedAccountWebhookPayload as UserUpdatedAccountWebhookPayload,
|
|
1345
|
+
type UserTransferredAccountWebhookPayload as UserTransferredAccountWebhookPayload,
|
|
1346
|
+
type UserWalletCreatedWebhookPayload as UserWalletCreatedWebhookPayload,
|
|
1329
1347
|
type FundsDepositedWebhookPayload as FundsDepositedWebhookPayload,
|
|
1330
1348
|
type FundsWithdrawnWebhookPayload as FundsWithdrawnWebhookPayload,
|
|
1331
1349
|
type PrivateKeyExportWebhookPayload as PrivateKeyExportWebhookPayload,
|
|
1332
1350
|
type WalletRecoverySetupWebhookPayload as WalletRecoverySetupWebhookPayload,
|
|
1333
1351
|
type WalletRecoveredWebhookPayload as WalletRecoveredWebhookPayload,
|
|
1334
|
-
type
|
|
1335
|
-
type
|
|
1336
|
-
type
|
|
1337
|
-
type
|
|
1352
|
+
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
1353
|
+
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
1354
|
+
type YieldClaimConfirmedWebhookPayload as YieldClaimConfirmedWebhookPayload,
|
|
1355
|
+
type WebhookPayload as WebhookPayload,
|
|
1338
1356
|
type KrakenEmbedQuoteExecutedWebhookPayload as KrakenEmbedQuoteExecutedWebhookPayload,
|
|
1339
1357
|
type KrakenEmbedQuoteExecutionFailedWebhookPayload as KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
|
1340
1358
|
type KrakenEmbedQuoteCancelledWebhookPayload as KrakenEmbedQuoteCancelledWebhookPayload,
|
|
1341
1359
|
type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload,
|
|
1342
1360
|
type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload,
|
|
1343
1361
|
type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload,
|
|
1344
|
-
type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
|
|
1345
|
-
type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
|
|
1346
1362
|
};
|
|
1347
1363
|
}
|