@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.
Files changed (279) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +33 -27
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +33 -27
  11. package/client.d.ts.map +1 -1
  12. package/client.js +17 -3
  13. package/client.js.map +1 -1
  14. package/client.mjs +17 -3
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts.map +1 -1
  22. package/core/pagination.mjs.map +1 -1
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/headers.mjs.map +1 -1
  39. package/internal/parse.d.mts.map +1 -1
  40. package/internal/parse.d.ts.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/qs/formats.d.mts.map +1 -1
  43. package/internal/qs/formats.d.ts.map +1 -1
  44. package/internal/qs/index.d.mts +2 -2
  45. package/internal/qs/index.d.mts.map +1 -1
  46. package/internal/qs/index.d.ts +2 -2
  47. package/internal/qs/index.d.ts.map +1 -1
  48. package/internal/qs/index.mjs.map +1 -1
  49. package/internal/qs/stringify.d.mts.map +1 -1
  50. package/internal/qs/stringify.d.ts.map +1 -1
  51. package/internal/qs/stringify.mjs.map +1 -1
  52. package/internal/qs/utils.d.mts.map +1 -1
  53. package/internal/qs/utils.d.ts.map +1 -1
  54. package/internal/qs/utils.mjs.map +1 -1
  55. package/internal/request-options.d.mts.map +1 -1
  56. package/internal/request-options.d.ts.map +1 -1
  57. package/internal/shims.d.mts +6 -0
  58. package/internal/shims.d.mts.map +1 -1
  59. package/internal/shims.d.ts +6 -0
  60. package/internal/shims.d.ts.map +1 -1
  61. package/internal/to-file.d.mts.map +1 -1
  62. package/internal/to-file.d.ts.map +1 -1
  63. package/internal/to-file.mjs.map +1 -1
  64. package/internal/types.d.mts +4 -4
  65. package/internal/types.d.mts.map +1 -1
  66. package/internal/types.d.ts +4 -4
  67. package/internal/types.d.ts.map +1 -1
  68. package/internal/uploads.d.mts.map +1 -1
  69. package/internal/uploads.d.ts.map +1 -1
  70. package/internal/uploads.mjs.map +1 -1
  71. package/internal/utils/base64.mjs.map +1 -1
  72. package/internal/utils/log.d.mts.map +1 -1
  73. package/internal/utils/log.d.ts.map +1 -1
  74. package/internal/utils/log.mjs.map +1 -1
  75. package/internal/utils/path.mjs.map +1 -1
  76. package/internal/utils/query.mjs.map +1 -1
  77. package/internal/utils/values.mjs.map +1 -1
  78. package/internal/utils.d.mts.map +1 -1
  79. package/internal/utils.d.ts.map +1 -1
  80. package/internal/utils.mjs.map +1 -1
  81. package/package.json +1 -1
  82. package/pagination.d.mts +1 -0
  83. package/pagination.d.mts.map +1 -1
  84. package/pagination.d.ts +1 -0
  85. package/pagination.d.ts.map +1 -1
  86. package/pagination.mjs +1 -0
  87. package/pagination.mjs.map +1 -1
  88. package/resource.d.mts +1 -0
  89. package/resource.d.mts.map +1 -1
  90. package/resource.d.ts +1 -0
  91. package/resource.d.ts.map +1 -1
  92. package/resource.mjs +1 -0
  93. package/resource.mjs.map +1 -1
  94. package/resources/accounts.d.mts +6 -2
  95. package/resources/accounts.d.mts.map +1 -1
  96. package/resources/accounts.d.ts +6 -2
  97. package/resources/accounts.d.ts.map +1 -1
  98. package/resources/accounts.mjs.map +1 -1
  99. package/resources/aggregations.d.mts +14 -4
  100. package/resources/aggregations.d.mts.map +1 -1
  101. package/resources/aggregations.d.ts +14 -4
  102. package/resources/aggregations.d.ts.map +1 -1
  103. package/resources/aggregations.mjs.map +1 -1
  104. package/resources/analytics.d.mts +1 -1
  105. package/resources/analytics.d.mts.map +1 -1
  106. package/resources/analytics.d.ts +1 -1
  107. package/resources/analytics.d.ts.map +1 -1
  108. package/resources/analytics.mjs.map +1 -1
  109. package/resources/apps.d.mts +42 -37
  110. package/resources/apps.d.mts.map +1 -1
  111. package/resources/apps.d.ts +42 -37
  112. package/resources/apps.d.ts.map +1 -1
  113. package/resources/apps.mjs.map +1 -1
  114. package/resources/client-auth.d.mts +176 -217
  115. package/resources/client-auth.d.mts.map +1 -1
  116. package/resources/client-auth.d.ts +176 -217
  117. package/resources/client-auth.d.ts.map +1 -1
  118. package/resources/client-auth.js.map +1 -1
  119. package/resources/client-auth.mjs.map +1 -1
  120. package/resources/cross-app.d.mts.map +1 -1
  121. package/resources/cross-app.d.ts.map +1 -1
  122. package/resources/cross-app.mjs.map +1 -1
  123. package/resources/embedded-wallets.d.mts.map +1 -1
  124. package/resources/embedded-wallets.d.ts.map +1 -1
  125. package/resources/embedded-wallets.mjs.map +1 -1
  126. package/resources/fiat.d.mts.map +1 -1
  127. package/resources/fiat.d.ts.map +1 -1
  128. package/resources/fiat.mjs.map +1 -1
  129. package/resources/funding.d.mts.map +1 -1
  130. package/resources/funding.d.ts.map +1 -1
  131. package/resources/funding.mjs.map +1 -1
  132. package/resources/index.d.mts +15 -13
  133. package/resources/index.d.mts.map +1 -1
  134. package/resources/index.d.ts +15 -13
  135. package/resources/index.d.ts.map +1 -1
  136. package/resources/index.js +5 -1
  137. package/resources/index.js.map +1 -1
  138. package/resources/index.mjs +2 -0
  139. package/resources/index.mjs.map +1 -1
  140. package/resources/intents.d.mts +112 -79
  141. package/resources/intents.d.mts.map +1 -1
  142. package/resources/intents.d.ts +112 -79
  143. package/resources/intents.d.ts.map +1 -1
  144. package/resources/intents.js.map +1 -1
  145. package/resources/intents.mjs.map +1 -1
  146. package/resources/key-quorums.d.mts +9 -8
  147. package/resources/key-quorums.d.mts.map +1 -1
  148. package/resources/key-quorums.d.ts +9 -8
  149. package/resources/key-quorums.d.ts.map +1 -1
  150. package/resources/key-quorums.mjs.map +1 -1
  151. package/resources/kraken-embed.d.mts +252 -154
  152. package/resources/kraken-embed.d.mts.map +1 -1
  153. package/resources/kraken-embed.d.ts +252 -154
  154. package/resources/kraken-embed.d.ts.map +1 -1
  155. package/resources/kraken-embed.js.map +1 -1
  156. package/resources/kraken-embed.mjs.map +1 -1
  157. package/resources/oauth.d.mts +77 -0
  158. package/resources/oauth.d.mts.map +1 -0
  159. package/resources/oauth.d.ts +77 -0
  160. package/resources/oauth.d.ts.map +1 -0
  161. package/resources/oauth.js +9 -0
  162. package/resources/oauth.js.map +1 -0
  163. package/resources/oauth.mjs +5 -0
  164. package/resources/oauth.mjs.map +1 -0
  165. package/resources/onramps.d.mts +458 -0
  166. package/resources/onramps.d.mts.map +1 -0
  167. package/resources/onramps.d.ts +458 -0
  168. package/resources/onramps.d.ts.map +1 -0
  169. package/resources/onramps.js +9 -0
  170. package/resources/onramps.js.map +1 -0
  171. package/resources/onramps.mjs +5 -0
  172. package/resources/onramps.mjs.map +1 -0
  173. package/resources/organizations.d.mts.map +1 -1
  174. package/resources/organizations.d.ts.map +1 -1
  175. package/resources/organizations.mjs.map +1 -1
  176. package/resources/policies.d.mts +73 -18
  177. package/resources/policies.d.mts.map +1 -1
  178. package/resources/policies.d.ts +73 -18
  179. package/resources/policies.d.ts.map +1 -1
  180. package/resources/policies.mjs.map +1 -1
  181. package/resources/shared.d.mts +38 -1
  182. package/resources/shared.d.mts.map +1 -1
  183. package/resources/shared.d.ts +38 -1
  184. package/resources/shared.d.ts.map +1 -1
  185. package/resources/shared.mjs.map +1 -1
  186. package/resources/swaps.d.mts +44 -5
  187. package/resources/swaps.d.mts.map +1 -1
  188. package/resources/swaps.d.ts +44 -5
  189. package/resources/swaps.d.ts.map +1 -1
  190. package/resources/swaps.mjs.map +1 -1
  191. package/resources/transactions.d.mts.map +1 -1
  192. package/resources/transactions.d.ts.map +1 -1
  193. package/resources/transactions.mjs.map +1 -1
  194. package/resources/users.d.mts +3 -0
  195. package/resources/users.d.mts.map +1 -1
  196. package/resources/users.d.ts +3 -0
  197. package/resources/users.d.ts.map +1 -1
  198. package/resources/users.mjs.map +1 -1
  199. package/resources/wallet-actions.d.mts +207 -9
  200. package/resources/wallet-actions.d.mts.map +1 -1
  201. package/resources/wallet-actions.d.ts +207 -9
  202. package/resources/wallet-actions.d.ts.map +1 -1
  203. package/resources/wallet-actions.js.map +1 -1
  204. package/resources/wallet-actions.mjs.map +1 -1
  205. package/resources/wallets/balance.d.mts +8 -4
  206. package/resources/wallets/balance.d.mts.map +1 -1
  207. package/resources/wallets/balance.d.ts +8 -4
  208. package/resources/wallets/balance.d.ts.map +1 -1
  209. package/resources/wallets/balance.mjs.map +1 -1
  210. package/resources/wallets/index.d.mts +1 -1
  211. package/resources/wallets/index.d.mts.map +1 -1
  212. package/resources/wallets/index.d.ts +1 -1
  213. package/resources/wallets/index.d.ts.map +1 -1
  214. package/resources/wallets/index.js.map +1 -1
  215. package/resources/wallets/index.mjs.map +1 -1
  216. package/resources/wallets/transactions.d.mts +5 -1
  217. package/resources/wallets/transactions.d.mts.map +1 -1
  218. package/resources/wallets/transactions.d.ts +5 -1
  219. package/resources/wallets/transactions.d.ts.map +1 -1
  220. package/resources/wallets/transactions.mjs.map +1 -1
  221. package/resources/wallets/wallets.d.mts +749 -84
  222. package/resources/wallets/wallets.d.mts.map +1 -1
  223. package/resources/wallets/wallets.d.ts +749 -84
  224. package/resources/wallets/wallets.d.ts.map +1 -1
  225. package/resources/wallets/wallets.js +15 -2
  226. package/resources/wallets/wallets.js.map +1 -1
  227. package/resources/wallets/wallets.mjs +15 -2
  228. package/resources/wallets/wallets.mjs.map +1 -1
  229. package/resources/wallets.d.mts.map +1 -1
  230. package/resources/wallets.d.ts.map +1 -1
  231. package/resources/wallets.mjs.map +1 -1
  232. package/resources/webhooks.d.mts +314 -54
  233. package/resources/webhooks.d.mts.map +1 -1
  234. package/resources/webhooks.d.ts +314 -54
  235. package/resources/webhooks.d.ts.map +1 -1
  236. package/resources/webhooks.js.map +1 -1
  237. package/resources/webhooks.mjs.map +1 -1
  238. package/resources/yield.d.mts +26 -27
  239. package/resources/yield.d.mts.map +1 -1
  240. package/resources/yield.d.ts +26 -27
  241. package/resources/yield.d.ts.map +1 -1
  242. package/resources/yield.mjs.map +1 -1
  243. package/resources.d.mts.map +1 -1
  244. package/resources.d.ts.map +1 -1
  245. package/resources.mjs.map +1 -1
  246. package/src/client.ts +389 -65
  247. package/src/resources/accounts.ts +7 -1
  248. package/src/resources/aggregations.ts +16 -3
  249. package/src/resources/analytics.ts +1 -1
  250. package/src/resources/apps.ts +57 -51
  251. package/src/resources/client-auth.ts +215 -308
  252. package/src/resources/index.ts +180 -25
  253. package/src/resources/intents.ts +132 -91
  254. package/src/resources/key-quorums.ts +11 -9
  255. package/src/resources/kraken-embed.ts +591 -432
  256. package/src/resources/oauth.ts +96 -0
  257. package/src/resources/onramps.ts +652 -0
  258. package/src/resources/policies.ts +106 -16
  259. package/src/resources/shared.ts +53 -0
  260. package/src/resources/swaps.ts +52 -5
  261. package/src/resources/users.ts +3 -0
  262. package/src/resources/wallet-actions.ts +274 -8
  263. package/src/resources/wallets/balance.ts +13 -1
  264. package/src/resources/wallets/index.ts +43 -0
  265. package/src/resources/wallets/transactions.ts +6 -0
  266. package/src/resources/wallets/wallets.ts +969 -93
  267. package/src/resources/webhooks.ts +383 -57
  268. package/src/resources/yield.ts +29 -30
  269. package/src/version.ts +1 -1
  270. package/uploads.d.mts +1 -0
  271. package/uploads.d.mts.map +1 -1
  272. package/uploads.d.ts +1 -0
  273. package/uploads.d.ts.map +1 -1
  274. package/uploads.mjs +1 -0
  275. package/uploads.mjs.map +1 -1
  276. package/version.d.mts +1 -1
  277. package/version.d.ts +1 -1
  278. package/version.js +1 -1
  279. package/version.mjs +1 -1
@@ -1,7 +1,6 @@
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 KrakenEmbedAPI from './kraken-embed';
5
4
 
6
5
  export class KrakenEmbed extends APIResource {}
7
6
 
@@ -26,20 +25,13 @@ export interface KrakenEmbedCancelCustomOrderResponse {
26
25
  /**
27
26
  * Result payload for cancel custom order response.
28
27
  */
29
- result: KrakenEmbedCancelCustomOrderResponse.Result;
28
+ result: KrakenEmbedCancelCustomOrderResult | null;
30
29
 
31
30
  error?: Array<unknown>;
32
31
 
33
32
  errors?: Array<unknown>;
34
33
  }
35
34
 
36
- export namespace KrakenEmbedCancelCustomOrderResponse {
37
- /**
38
- * Result payload for cancel custom order response.
39
- */
40
- export interface Result extends KrakenEmbedAPI.KrakenEmbedCancelCustomOrderResult {}
41
- }
42
-
43
35
  /**
44
36
  * Result payload for cancel custom order response.
45
37
  */
@@ -77,20 +69,13 @@ export interface KrakenEmbedCreateCustomOrderResponse {
77
69
  /**
78
70
  * Result payload for create custom order response.
79
71
  */
80
- result: KrakenEmbedCreateCustomOrderResponse.Result;
72
+ result: KrakenEmbedCreateCustomOrderResult | null;
81
73
 
82
74
  error?: Array<unknown>;
83
75
 
84
76
  errors?: Array<unknown>;
85
77
  }
86
78
 
87
- export namespace KrakenEmbedCreateCustomOrderResponse {
88
- /**
89
- * Result payload for create custom order response.
90
- */
91
- export interface Result extends KrakenEmbedAPI.KrakenEmbedCreateCustomOrderResult {}
92
- }
93
-
94
79
  /**
95
80
  * Result payload for create custom order response.
96
81
  */
@@ -192,20 +177,13 @@ export interface KrakenEmbedCustomOrderOccurrence {
192
177
  /**
193
178
  * Executed action details for a custom order occurrence.
194
179
  */
195
- executed_action?: KrakenEmbedCustomOrderOccurrence.ExecutedAction;
180
+ executed_action?: KrakenEmbedCustomOrderOccurrenceExecutedAction | null;
196
181
 
197
182
  failure_reason?: string;
198
183
 
199
184
  skip_reason?: string;
200
185
  }
201
186
 
202
- export namespace KrakenEmbedCustomOrderOccurrence {
203
- /**
204
- * Executed action details for a custom order occurrence.
205
- */
206
- export interface ExecutedAction extends KrakenEmbedAPI.KrakenEmbedCustomOrderOccurrenceExecutedAction {}
207
- }
208
-
209
187
  /**
210
188
  * Executed action details for a custom order occurrence.
211
189
  */
@@ -252,6 +230,67 @@ export interface KrakenEmbedCustomOrderTrigger {
252
230
  type: 'price';
253
231
  }
254
232
 
233
+ /**
234
+ * An earn amount with native and converted values.
235
+ */
236
+ export interface KrakenEmbedEarnAmount {
237
+ converted: string;
238
+
239
+ native: string;
240
+ }
241
+
242
+ /**
243
+ * Low and high estimate of the yield of an earn asset.
244
+ */
245
+ export interface KrakenEmbedEarnAprEstimate {
246
+ high: string;
247
+
248
+ low: string;
249
+ }
250
+
251
+ /**
252
+ * A single asset that can yield rewards.
253
+ */
254
+ export interface KrakenEmbedEarnAsset {
255
+ /**
256
+ * Low and high estimate of the yield of an earn asset.
257
+ */
258
+ apr_estimate: KrakenEmbedEarnAprEstimate | null;
259
+
260
+ /**
261
+ * User allocation for an earn asset.
262
+ */
263
+ user_allocation?: KrakenEmbedEarnUserAllocation | null;
264
+ }
265
+
266
+ /**
267
+ * User allocation for an earn asset.
268
+ */
269
+ export interface KrakenEmbedEarnUserAllocation {
270
+ /**
271
+ * An earn amount with native and converted values.
272
+ */
273
+ total_allocated: KrakenEmbedEarnAmount | null;
274
+
275
+ /**
276
+ * An earn amount with native and converted values.
277
+ */
278
+ total_rewarded: KrakenEmbedEarnAmount | null;
279
+
280
+ upcoming_reward_date?: string | null;
281
+ }
282
+
283
+ /**
284
+ * User's full name including first, optional middle, and last name.
285
+ */
286
+ export interface KrakenEmbedFullName {
287
+ first_name: string;
288
+
289
+ last_name: string;
290
+
291
+ middle_name?: string | null;
292
+ }
293
+
255
294
  /**
256
295
  * Query parameters for listing and filtering available assets.
257
296
  */
@@ -317,20 +356,13 @@ export interface KrakenEmbedGetCustomOrderHistoryResponse {
317
356
  /**
318
357
  * Result payload for custom order history response.
319
358
  */
320
- result: KrakenEmbedGetCustomOrderHistoryResponse.Result;
359
+ result: KrakenEmbedGetCustomOrderHistoryResult | null;
321
360
 
322
361
  error?: Array<unknown>;
323
362
 
324
363
  errors?: Array<unknown>;
325
364
  }
326
365
 
327
- export namespace KrakenEmbedGetCustomOrderHistoryResponse {
328
- /**
329
- * Result payload for custom order history response.
330
- */
331
- export interface Result extends KrakenEmbedAPI.KrakenEmbedGetCustomOrderHistoryResult {}
332
- }
333
-
334
366
  /**
335
367
  * Result payload for custom order history response.
336
368
  */
@@ -354,20 +386,13 @@ export interface KrakenEmbedGetCustomOrderResponse {
354
386
  /**
355
387
  * Result payload for get custom order response.
356
388
  */
357
- result: KrakenEmbedGetCustomOrderResponse.Result;
389
+ result: KrakenEmbedGetCustomOrderResult | null;
358
390
 
359
391
  error?: Array<unknown>;
360
392
 
361
393
  errors?: Array<unknown>;
362
394
  }
363
395
 
364
- export namespace KrakenEmbedGetCustomOrderResponse {
365
- /**
366
- * Result payload for get custom order response.
367
- */
368
- export interface Result extends KrakenEmbedAPI.KrakenEmbedGetCustomOrderResult {}
369
- }
370
-
371
396
  /**
372
397
  * Result payload for get custom order response.
373
398
  */
@@ -378,6 +403,103 @@ export interface KrakenEmbedGetCustomOrderResult {
378
403
  order: KrakenEmbedCustomOrder;
379
404
  }
380
405
 
406
+ /**
407
+ * Kraken API response envelope for earn assets.
408
+ */
409
+ export interface KrakenEmbedGetEarnAssetsKrakenResponse {
410
+ /**
411
+ * Result payload for earn assets response.
412
+ */
413
+ result: KrakenEmbedGetEarnAssetsResult | null;
414
+
415
+ error?: Array<unknown>;
416
+
417
+ errors?: Array<unknown>;
418
+ }
419
+
420
+ /**
421
+ * Query parameters for listing earn assets.
422
+ */
423
+ export interface KrakenEmbedGetEarnAssetsQueryParams {
424
+ assets?: Array<string>;
425
+
426
+ currency?: string;
427
+
428
+ user?: string;
429
+ }
430
+
431
+ /**
432
+ * List of earn assets with APR estimates and optional user allocations.
433
+ */
434
+ export interface KrakenEmbedGetEarnAssetsResponse {
435
+ /**
436
+ * Kraken API response envelope for earn assets.
437
+ */
438
+ data: KrakenEmbedGetEarnAssetsKrakenResponse;
439
+ }
440
+
441
+ /**
442
+ * Result payload for earn assets response.
443
+ */
444
+ export interface KrakenEmbedGetEarnAssetsResult {
445
+ assets: { [key: string]: KrakenEmbedEarnAsset };
446
+ }
447
+
448
+ /**
449
+ * Kraken API response envelope for earn summary.
450
+ */
451
+ export interface KrakenEmbedGetEarnSummaryKrakenResponse {
452
+ /**
453
+ * Result payload for earn summary response.
454
+ */
455
+ result: KrakenEmbedGetEarnSummaryResult | null;
456
+
457
+ error?: Array<unknown>;
458
+
459
+ errors?: Array<unknown>;
460
+ }
461
+
462
+ /**
463
+ * Query parameters for getting an earn summary.
464
+ */
465
+ export interface KrakenEmbedGetEarnSummaryQueryParams {
466
+ currency: string;
467
+ }
468
+
469
+ /**
470
+ * Earn summary for a user including Auto-Earn status, total rewards, and upcoming
471
+ * payouts.
472
+ */
473
+ export interface KrakenEmbedGetEarnSummaryResponse {
474
+ /**
475
+ * Kraken API response envelope for earn summary.
476
+ */
477
+ data: KrakenEmbedGetEarnSummaryKrakenResponse;
478
+ }
479
+
480
+ /**
481
+ * Result payload for earn summary response.
482
+ */
483
+ export interface KrakenEmbedGetEarnSummaryResult {
484
+ auto_earn_eligible: boolean;
485
+
486
+ auto_earn_enabled: boolean;
487
+
488
+ num_earning_assets: number;
489
+
490
+ payout_period: string;
491
+
492
+ total_allocated_converted: string;
493
+
494
+ total_rewarded_converted_current_rate: string;
495
+
496
+ total_rewarded_converted_true_rates: string;
497
+
498
+ upcoming_rewards: Array<KrakenEmbedUpcomingReward>;
499
+
500
+ auto_earn_last_changed?: string | null;
501
+ }
502
+
381
503
  /**
382
504
  * Query parameters for portfolio details endpoint.
383
505
  */
@@ -399,43 +521,27 @@ export interface KrakenEmbedGetPortfolioSummaryQueryParams {
399
521
  * balance, and unrealized P&L.
400
522
  */
401
523
  export interface KrakenEmbedGetPortfolioSummaryResponse {
402
- data: KrakenEmbedGetPortfolioSummaryResponse.Data;
524
+ /**
525
+ * Kraken API response envelope for portfolio summary, containing optional errors
526
+ * and the result payload.
527
+ */
528
+ data: KrakenEmbedGetPortfolioSummaryResult;
403
529
  }
404
530
 
405
- export namespace KrakenEmbedGetPortfolioSummaryResponse {
406
- export interface Data {
407
- result: Data.Result | null;
408
-
409
- error?: Array<string>;
410
-
411
- errors?: Array<string>;
412
- }
413
-
414
- export namespace Data {
415
- export interface Result {
416
- available_balance: string;
417
-
418
- currency: string;
419
-
420
- open_orders: string;
421
-
422
- portfolio_value: string;
423
-
424
- timestamp: string;
425
-
426
- withheld_value: string;
427
-
428
- cost_basis?: string | null;
531
+ /**
532
+ * Kraken API response envelope for portfolio summary, containing optional errors
533
+ * and the result payload.
534
+ */
535
+ export interface KrakenEmbedGetPortfolioSummaryResult {
536
+ /**
537
+ * Portfolio summary payload containing balances, value, and profit/loss
538
+ * information.
539
+ */
540
+ result: KrakenEmbedPortfolioSummaryPayload | null;
429
541
 
430
- /**
431
- * Current day profit and loss for a portfolio, calculated from the most recent
432
- * available balance.
433
- */
434
- current_day_pnl?: KrakenEmbedAPI.KrakenEmbedCurrentDayPnl | null;
542
+ error?: Array<string>;
435
543
 
436
- lots_upnl?: string | null;
437
- }
438
- }
544
+ errors?: Array<string>;
439
545
  }
440
546
 
441
547
  /**
@@ -454,7 +560,7 @@ export interface KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
454
560
 
455
561
  quote?: string;
456
562
 
457
- ref_ids?: Array<KrakenEmbedGetPortfolioTransactionsQueryParamsSchema.RefID>;
563
+ ref_ids?: Array<KrakenEmbedPortfolioTransactionRefID>;
458
564
 
459
565
  sorting?: 'descending' | 'ascending';
460
566
 
@@ -465,14 +571,6 @@ export interface KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
465
571
  until_time?: string;
466
572
  }
467
573
 
468
- export namespace KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
469
- export interface RefID {
470
- ref_id: string;
471
-
472
- type: 'simple_order_quote' | 'simple_order_quote_failed';
473
- }
474
- }
475
-
476
574
  /**
477
575
  * Query parameters for getting a quote status.
478
576
  */
@@ -501,32 +599,355 @@ export interface KrakenEmbedListCustomOrdersResponse {
501
599
  /**
502
600
  * Result payload for list custom orders response.
503
601
  */
504
- result: KrakenEmbedListCustomOrdersResponse.Result;
602
+ result: KrakenEmbedListCustomOrdersResult | null;
505
603
 
506
604
  error?: Array<unknown>;
507
605
 
508
606
  errors?: Array<unknown>;
509
607
  }
510
608
 
511
- export namespace KrakenEmbedListCustomOrdersResponse {
609
+ /**
610
+ * Result payload for list custom orders response.
611
+ */
612
+ export interface KrakenEmbedListCustomOrdersResult {
613
+ orders: Array<KrakenEmbedCustomOrder>;
614
+ }
615
+
616
+ /**
617
+ * Portfolio summary payload containing balances, value, and profit/loss
618
+ * information.
619
+ */
620
+ export interface KrakenEmbedPortfolioSummaryPayload {
621
+ available_balance: string;
622
+
623
+ currency: string;
624
+
625
+ open_orders: string;
626
+
627
+ portfolio_value: string;
628
+
629
+ timestamp: string;
630
+
631
+ withheld_value: string;
632
+
633
+ cost_basis?: string | null;
634
+
512
635
  /**
513
- * Result payload for list custom orders response.
636
+ * Current day profit and loss for a portfolio, calculated from the most recent
637
+ * available balance.
514
638
  */
515
- export interface Result extends KrakenEmbedAPI.KrakenEmbedListCustomOrdersResult {}
639
+ current_day_pnl?: KrakenEmbedCurrentDayPnl | null;
640
+
641
+ lots_upnl?: string | null;
516
642
  }
517
643
 
518
644
  /**
519
- * Result payload for list custom orders response.
645
+ * A reference ID filter for portfolio transaction queries, identifying a
646
+ * transaction by type and reference identifier.
520
647
  */
521
- export interface KrakenEmbedListCustomOrdersResult {
522
- orders: Array<KrakenEmbedCustomOrder>;
648
+ export interface KrakenEmbedPortfolioTransactionRefID {
649
+ ref_id: string;
650
+
651
+ /**
652
+ * The type of reference ID used to filter portfolio transactions by quote or
653
+ * failed quote references.
654
+ */
655
+ type: KrakenEmbedPortfolioTransactionRefIDType;
656
+ }
657
+
658
+ /**
659
+ * The type of reference ID used to filter portfolio transactions by quote or
660
+ * failed quote references.
661
+ */
662
+ export type KrakenEmbedPortfolioTransactionRefIDType = 'simple_order_quote' | 'simple_order_quote_failed';
663
+
664
+ /**
665
+ * User's residential address including street, city, postal code, and country.
666
+ */
667
+ export interface KrakenEmbedResidence {
668
+ city: string;
669
+
670
+ country:
671
+ | 'AD'
672
+ | 'AE'
673
+ | 'AF'
674
+ | 'AG'
675
+ | 'AI'
676
+ | 'AL'
677
+ | 'AM'
678
+ | 'AO'
679
+ | 'AQ'
680
+ | 'AR'
681
+ | 'AS'
682
+ | 'AT'
683
+ | 'AU'
684
+ | 'AW'
685
+ | 'AX'
686
+ | 'AZ'
687
+ | 'BA'
688
+ | 'BB'
689
+ | 'BD'
690
+ | 'BE'
691
+ | 'BF'
692
+ | 'BG'
693
+ | 'BH'
694
+ | 'BI'
695
+ | 'BJ'
696
+ | 'BL'
697
+ | 'BM'
698
+ | 'BN'
699
+ | 'BO'
700
+ | 'BQ'
701
+ | 'BR'
702
+ | 'BS'
703
+ | 'BT'
704
+ | 'BV'
705
+ | 'BW'
706
+ | 'BY'
707
+ | 'BZ'
708
+ | 'CA'
709
+ | 'CC'
710
+ | 'CD'
711
+ | 'CF'
712
+ | 'CG'
713
+ | 'CH'
714
+ | 'CI'
715
+ | 'CK'
716
+ | 'CL'
717
+ | 'CM'
718
+ | 'CN'
719
+ | 'CO'
720
+ | 'CR'
721
+ | 'CU'
722
+ | 'CV'
723
+ | 'CW'
724
+ | 'CX'
725
+ | 'CY'
726
+ | 'CZ'
727
+ | 'DE'
728
+ | 'DJ'
729
+ | 'DK'
730
+ | 'DM'
731
+ | 'DO'
732
+ | 'DZ'
733
+ | 'EC'
734
+ | 'EE'
735
+ | 'EG'
736
+ | 'EH'
737
+ | 'ER'
738
+ | 'ES'
739
+ | 'ET'
740
+ | 'FI'
741
+ | 'FJ'
742
+ | 'FK'
743
+ | 'FM'
744
+ | 'FO'
745
+ | 'FR'
746
+ | 'GA'
747
+ | 'GB'
748
+ | 'GD'
749
+ | 'GE'
750
+ | 'GF'
751
+ | 'GG'
752
+ | 'GH'
753
+ | 'GI'
754
+ | 'GL'
755
+ | 'GM'
756
+ | 'GN'
757
+ | 'GP'
758
+ | 'GQ'
759
+ | 'GR'
760
+ | 'GS'
761
+ | 'GT'
762
+ | 'GU'
763
+ | 'GW'
764
+ | 'GY'
765
+ | 'HK'
766
+ | 'HM'
767
+ | 'HN'
768
+ | 'HR'
769
+ | 'HT'
770
+ | 'HU'
771
+ | 'ID'
772
+ | 'IE'
773
+ | 'IL'
774
+ | 'IM'
775
+ | 'IN'
776
+ | 'IO'
777
+ | 'IQ'
778
+ | 'IR'
779
+ | 'IS'
780
+ | 'IT'
781
+ | 'JE'
782
+ | 'JM'
783
+ | 'JO'
784
+ | 'JP'
785
+ | 'KE'
786
+ | 'KG'
787
+ | 'KH'
788
+ | 'KI'
789
+ | 'KM'
790
+ | 'KN'
791
+ | 'KP'
792
+ | 'KR'
793
+ | 'KW'
794
+ | 'KY'
795
+ | 'KZ'
796
+ | 'LA'
797
+ | 'LB'
798
+ | 'LC'
799
+ | 'LI'
800
+ | 'LK'
801
+ | 'LR'
802
+ | 'LS'
803
+ | 'LT'
804
+ | 'LU'
805
+ | 'LV'
806
+ | 'LY'
807
+ | 'MA'
808
+ | 'MC'
809
+ | 'MD'
810
+ | 'ME'
811
+ | 'MF'
812
+ | 'MG'
813
+ | 'MH'
814
+ | 'MK'
815
+ | 'ML'
816
+ | 'MM'
817
+ | 'MN'
818
+ | 'MO'
819
+ | 'MP'
820
+ | 'MQ'
821
+ | 'MR'
822
+ | 'MS'
823
+ | 'MT'
824
+ | 'MU'
825
+ | 'MV'
826
+ | 'MW'
827
+ | 'MX'
828
+ | 'MY'
829
+ | 'MZ'
830
+ | 'NA'
831
+ | 'NC'
832
+ | 'NE'
833
+ | 'NF'
834
+ | 'NG'
835
+ | 'NI'
836
+ | 'NL'
837
+ | 'NO'
838
+ | 'NP'
839
+ | 'NR'
840
+ | 'NU'
841
+ | 'NZ'
842
+ | 'OM'
843
+ | 'PA'
844
+ | 'PE'
845
+ | 'PF'
846
+ | 'PG'
847
+ | 'PH'
848
+ | 'PK'
849
+ | 'PL'
850
+ | 'PM'
851
+ | 'PN'
852
+ | 'PR'
853
+ | 'PS'
854
+ | 'PT'
855
+ | 'PW'
856
+ | 'PY'
857
+ | 'QA'
858
+ | 'RE'
859
+ | 'RO'
860
+ | 'RS'
861
+ | 'RU'
862
+ | 'RW'
863
+ | 'SA'
864
+ | 'SB'
865
+ | 'SC'
866
+ | 'SD'
867
+ | 'SE'
868
+ | 'SG'
869
+ | 'SH'
870
+ | 'SI'
871
+ | 'SJ'
872
+ | 'SK'
873
+ | 'SL'
874
+ | 'SM'
875
+ | 'SN'
876
+ | 'SO'
877
+ | 'SR'
878
+ | 'SS'
879
+ | 'ST'
880
+ | 'SV'
881
+ | 'SX'
882
+ | 'SY'
883
+ | 'SZ'
884
+ | 'TC'
885
+ | 'TD'
886
+ | 'TF'
887
+ | 'TG'
888
+ | 'TH'
889
+ | 'TJ'
890
+ | 'TK'
891
+ | 'TL'
892
+ | 'TM'
893
+ | 'TN'
894
+ | 'TO'
895
+ | 'TR'
896
+ | 'TT'
897
+ | 'TV'
898
+ | 'TW'
899
+ | 'TZ'
900
+ | 'UA'
901
+ | 'UG'
902
+ | 'UM'
903
+ | 'US'
904
+ | 'UY'
905
+ | 'UZ'
906
+ | 'VA'
907
+ | 'VC'
908
+ | 'VE'
909
+ | 'VG'
910
+ | 'VI'
911
+ | 'VN'
912
+ | 'VU'
913
+ | 'WF'
914
+ | 'WS'
915
+ | 'YE'
916
+ | 'YT'
917
+ | 'ZA'
918
+ | 'ZM'
919
+ | 'ZW'
920
+ | 'AC'
921
+ | 'AN'
922
+ | 'AP'
923
+ | 'CP'
924
+ | 'DG'
925
+ | 'EA'
926
+ | 'EU'
927
+ | 'IC'
928
+ | 'JX'
929
+ | 'TA'
930
+ | 'QO'
931
+ | 'XK'
932
+ | '0C';
933
+
934
+ line1: string;
935
+
936
+ postal_code: string;
937
+
938
+ line2?: string | null;
939
+
940
+ province?: string | null;
523
941
  }
524
942
 
525
943
  /**
526
944
  * Optional best-effort metadata hints for proof of address verification.
527
945
  */
528
946
  export interface KrakenEmbedStartAddressMetadata {
529
- address?: KrakenEmbedStartAddressMetadata.Address | null;
947
+ /**
948
+ * User's residential address including street, city, postal code, and country.
949
+ */
950
+ address?: KrakenEmbedResidence | null;
530
951
 
531
952
  document_number?: string | null;
532
953
 
@@ -553,284 +974,6 @@ export interface KrakenEmbedStartAddressMetadata {
553
974
  expiration_date?: string | null;
554
975
  }
555
976
 
556
- export namespace KrakenEmbedStartAddressMetadata {
557
- export interface Address {
558
- city: string;
559
-
560
- country:
561
- | 'AD'
562
- | 'AE'
563
- | 'AF'
564
- | 'AG'
565
- | 'AI'
566
- | 'AL'
567
- | 'AM'
568
- | 'AO'
569
- | 'AQ'
570
- | 'AR'
571
- | 'AS'
572
- | 'AT'
573
- | 'AU'
574
- | 'AW'
575
- | 'AX'
576
- | 'AZ'
577
- | 'BA'
578
- | 'BB'
579
- | 'BD'
580
- | 'BE'
581
- | 'BF'
582
- | 'BG'
583
- | 'BH'
584
- | 'BI'
585
- | 'BJ'
586
- | 'BL'
587
- | 'BM'
588
- | 'BN'
589
- | 'BO'
590
- | 'BQ'
591
- | 'BR'
592
- | 'BS'
593
- | 'BT'
594
- | 'BV'
595
- | 'BW'
596
- | 'BY'
597
- | 'BZ'
598
- | 'CA'
599
- | 'CC'
600
- | 'CD'
601
- | 'CF'
602
- | 'CG'
603
- | 'CH'
604
- | 'CI'
605
- | 'CK'
606
- | 'CL'
607
- | 'CM'
608
- | 'CN'
609
- | 'CO'
610
- | 'CR'
611
- | 'CU'
612
- | 'CV'
613
- | 'CW'
614
- | 'CX'
615
- | 'CY'
616
- | 'CZ'
617
- | 'DE'
618
- | 'DJ'
619
- | 'DK'
620
- | 'DM'
621
- | 'DO'
622
- | 'DZ'
623
- | 'EC'
624
- | 'EE'
625
- | 'EG'
626
- | 'EH'
627
- | 'ER'
628
- | 'ES'
629
- | 'ET'
630
- | 'FI'
631
- | 'FJ'
632
- | 'FK'
633
- | 'FM'
634
- | 'FO'
635
- | 'FR'
636
- | 'GA'
637
- | 'GB'
638
- | 'GD'
639
- | 'GE'
640
- | 'GF'
641
- | 'GG'
642
- | 'GH'
643
- | 'GI'
644
- | 'GL'
645
- | 'GM'
646
- | 'GN'
647
- | 'GP'
648
- | 'GQ'
649
- | 'GR'
650
- | 'GS'
651
- | 'GT'
652
- | 'GU'
653
- | 'GW'
654
- | 'GY'
655
- | 'HK'
656
- | 'HM'
657
- | 'HN'
658
- | 'HR'
659
- | 'HT'
660
- | 'HU'
661
- | 'ID'
662
- | 'IE'
663
- | 'IL'
664
- | 'IM'
665
- | 'IN'
666
- | 'IO'
667
- | 'IQ'
668
- | 'IR'
669
- | 'IS'
670
- | 'IT'
671
- | 'JE'
672
- | 'JM'
673
- | 'JO'
674
- | 'JP'
675
- | 'KE'
676
- | 'KG'
677
- | 'KH'
678
- | 'KI'
679
- | 'KM'
680
- | 'KN'
681
- | 'KP'
682
- | 'KR'
683
- | 'KW'
684
- | 'KY'
685
- | 'KZ'
686
- | 'LA'
687
- | 'LB'
688
- | 'LC'
689
- | 'LI'
690
- | 'LK'
691
- | 'LR'
692
- | 'LS'
693
- | 'LT'
694
- | 'LU'
695
- | 'LV'
696
- | 'LY'
697
- | 'MA'
698
- | 'MC'
699
- | 'MD'
700
- | 'ME'
701
- | 'MF'
702
- | 'MG'
703
- | 'MH'
704
- | 'MK'
705
- | 'ML'
706
- | 'MM'
707
- | 'MN'
708
- | 'MO'
709
- | 'MP'
710
- | 'MQ'
711
- | 'MR'
712
- | 'MS'
713
- | 'MT'
714
- | 'MU'
715
- | 'MV'
716
- | 'MW'
717
- | 'MX'
718
- | 'MY'
719
- | 'MZ'
720
- | 'NA'
721
- | 'NC'
722
- | 'NE'
723
- | 'NF'
724
- | 'NG'
725
- | 'NI'
726
- | 'NL'
727
- | 'NO'
728
- | 'NP'
729
- | 'NR'
730
- | 'NU'
731
- | 'NZ'
732
- | 'OM'
733
- | 'PA'
734
- | 'PE'
735
- | 'PF'
736
- | 'PG'
737
- | 'PH'
738
- | 'PK'
739
- | 'PL'
740
- | 'PM'
741
- | 'PN'
742
- | 'PR'
743
- | 'PS'
744
- | 'PT'
745
- | 'PW'
746
- | 'PY'
747
- | 'QA'
748
- | 'RE'
749
- | 'RO'
750
- | 'RS'
751
- | 'RU'
752
- | 'RW'
753
- | 'SA'
754
- | 'SB'
755
- | 'SC'
756
- | 'SD'
757
- | 'SE'
758
- | 'SG'
759
- | 'SH'
760
- | 'SI'
761
- | 'SJ'
762
- | 'SK'
763
- | 'SL'
764
- | 'SM'
765
- | 'SN'
766
- | 'SO'
767
- | 'SR'
768
- | 'SS'
769
- | 'ST'
770
- | 'SV'
771
- | 'SX'
772
- | 'SY'
773
- | 'SZ'
774
- | 'TC'
775
- | 'TD'
776
- | 'TF'
777
- | 'TG'
778
- | 'TH'
779
- | 'TJ'
780
- | 'TK'
781
- | 'TL'
782
- | 'TM'
783
- | 'TN'
784
- | 'TO'
785
- | 'TR'
786
- | 'TT'
787
- | 'TV'
788
- | 'TW'
789
- | 'TZ'
790
- | 'UA'
791
- | 'UG'
792
- | 'UM'
793
- | 'US'
794
- | 'UY'
795
- | 'UZ'
796
- | 'VA'
797
- | 'VC'
798
- | 'VE'
799
- | 'VG'
800
- | 'VI'
801
- | 'VN'
802
- | 'VU'
803
- | 'WF'
804
- | 'WS'
805
- | 'YE'
806
- | 'YT'
807
- | 'ZA'
808
- | 'ZM'
809
- | 'ZW'
810
- | 'AC'
811
- | 'AN'
812
- | 'AP'
813
- | 'CP'
814
- | 'DG'
815
- | 'EA'
816
- | 'EU'
817
- | 'IC'
818
- | 'JX'
819
- | 'TA'
820
- | 'QO'
821
- | 'XK'
822
- | '0C';
823
-
824
- line1: string;
825
-
826
- postal_code: string;
827
-
828
- line2?: string | null;
829
-
830
- province?: string | null;
831
- }
832
- }
833
-
834
977
  /**
835
978
  * Input payload for starting proof of address verification via URL.
836
979
  */
@@ -842,24 +985,12 @@ export interface KrakenEmbedStartAddressVerificationURLInput {
842
985
  /**
843
986
  * Debug options for start verification. Only works in non-production environments.
844
987
  */
845
- debug?: KrakenEmbedStartAddressVerificationURLInput.Debug;
846
-
847
- /**
848
- * Optional best-effort metadata hints for proof of address verification.
849
- */
850
- metadata?: KrakenEmbedStartAddressVerificationURLInput.Metadata;
851
- }
852
-
853
- export namespace KrakenEmbedStartAddressVerificationURLInput {
854
- /**
855
- * Debug options for start verification. Only works in non-production environments.
856
- */
857
- export interface Debug extends KrakenEmbedAPI.KrakenEmbedStartVerificationDebug {}
988
+ debug?: KrakenEmbedStartVerificationDebug | null;
858
989
 
859
990
  /**
860
991
  * Optional best-effort metadata hints for proof of address verification.
861
992
  */
862
- export interface Metadata extends KrakenEmbedAPI.KrakenEmbedStartAddressMetadata {}
993
+ metadata?: KrakenEmbedStartAddressMetadata | null;
863
994
  }
864
995
 
865
996
  /**
@@ -869,17 +1000,10 @@ export namespace KrakenEmbedStartAddressVerificationURLInput {
869
1000
  export interface KrakenEmbedStartIdentityInfo {
870
1001
  date_of_birth?: string | null;
871
1002
 
872
- full_name?: KrakenEmbedStartIdentityInfo.FullName | null;
873
- }
874
-
875
- export namespace KrakenEmbedStartIdentityInfo {
876
- export interface FullName {
877
- first_name: string;
878
-
879
- last_name: string;
880
-
881
- middle_name?: string | null;
882
- }
1003
+ /**
1004
+ * User's full name including first, optional middle, and last name.
1005
+ */
1006
+ full_name?: KrakenEmbedFullName | null;
883
1007
  }
884
1008
 
885
1009
  /**
@@ -902,7 +1026,7 @@ export interface KrakenEmbedStartIdentityMetadata {
902
1026
  * Identity information hints including full name and date of birth for proof of
903
1027
  * identity verification.
904
1028
  */
905
- identity?: KrakenEmbedStartIdentityMetadata.Identity;
1029
+ identity?: KrakenEmbedStartIdentityInfo | null;
906
1030
 
907
1031
  issuing_country?:
908
1032
  | 'AD'
@@ -1435,14 +1559,6 @@ export interface KrakenEmbedStartIdentityMetadata {
1435
1559
  | null;
1436
1560
  }
1437
1561
 
1438
- export namespace KrakenEmbedStartIdentityMetadata {
1439
- /**
1440
- * Identity information hints including full name and date of birth for proof of
1441
- * identity verification.
1442
- */
1443
- export interface Identity extends KrakenEmbedAPI.KrakenEmbedStartIdentityInfo {}
1444
- }
1445
-
1446
1562
  /**
1447
1563
  * Input payload for starting proof of identity verification via URLs.
1448
1564
  */
@@ -1456,24 +1572,12 @@ export interface KrakenEmbedStartIdentityVerificationURLInput {
1456
1572
  /**
1457
1573
  * Debug options for start verification. Only works in non-production environments.
1458
1574
  */
1459
- debug?: KrakenEmbedStartIdentityVerificationURLInput.Debug;
1575
+ debug?: KrakenEmbedStartVerificationDebug | null;
1460
1576
 
1461
1577
  /**
1462
1578
  * Optional best-effort metadata hints for proof of identity verification.
1463
1579
  */
1464
- metadata?: KrakenEmbedStartIdentityVerificationURLInput.Metadata;
1465
- }
1466
-
1467
- export namespace KrakenEmbedStartIdentityVerificationURLInput {
1468
- /**
1469
- * Debug options for start verification. Only works in non-production environments.
1470
- */
1471
- export interface Debug extends KrakenEmbedAPI.KrakenEmbedStartVerificationDebug {}
1472
-
1473
- /**
1474
- * Optional best-effort metadata hints for proof of identity verification.
1475
- */
1476
- export interface Metadata extends KrakenEmbedAPI.KrakenEmbedStartIdentityMetadata {}
1580
+ metadata?: KrakenEmbedStartIdentityMetadata | null;
1477
1581
  }
1478
1582
 
1479
1583
  /**
@@ -1491,14 +1595,7 @@ export interface KrakenEmbedStartLivenessVerificationURLInput {
1491
1595
  /**
1492
1596
  * Debug options for start verification. Only works in non-production environments.
1493
1597
  */
1494
- debug?: KrakenEmbedStartLivenessVerificationURLInput.Debug;
1495
- }
1496
-
1497
- export namespace KrakenEmbedStartLivenessVerificationURLInput {
1498
- /**
1499
- * Debug options for start verification. Only works in non-production environments.
1500
- */
1501
- export interface Debug extends KrakenEmbedAPI.KrakenEmbedStartVerificationDebug {}
1598
+ debug?: KrakenEmbedStartVerificationDebug | null;
1502
1599
  }
1503
1600
 
1504
1601
  /**
@@ -1523,21 +1620,61 @@ export interface KrakenEmbedStartVerificationURLResponse {
1523
1620
  /**
1524
1621
  * Result payload for start verification URL response.
1525
1622
  */
1526
- result: KrakenEmbedStartVerificationURLResponse.Result;
1623
+ result: KrakenEmbedStartVerificationURLResult | null;
1527
1624
  }
1528
1625
 
1529
- export namespace KrakenEmbedStartVerificationURLResponse {
1626
+ /**
1627
+ * Result payload for start verification URL response.
1628
+ */
1629
+ export interface KrakenEmbedStartVerificationURLResult {
1630
+ verification_id: string;
1631
+ }
1632
+
1633
+ /**
1634
+ * Kraken API response envelope for toggle auto-earn. Result is null on success.
1635
+ */
1636
+ export interface KrakenEmbedToggleAutoEarnKrakenResponse {
1637
+ error?: Array<unknown>;
1638
+
1639
+ errors?: Array<unknown>;
1640
+
1641
+ result?: null;
1642
+ }
1643
+
1644
+ /**
1645
+ * Query parameters for toggling Auto-Earn.
1646
+ */
1647
+ export interface KrakenEmbedToggleAutoEarnQueryParams {
1648
+ want_enabled: boolean;
1649
+ }
1650
+
1651
+ /**
1652
+ * Response from toggling Auto-Earn. The response body is empty on success.
1653
+ */
1654
+ export interface KrakenEmbedToggleAutoEarnResponse {
1530
1655
  /**
1531
- * Result payload for start verification URL response.
1656
+ * Kraken API response envelope for toggle auto-earn. Result is null on success.
1532
1657
  */
1533
- export interface Result extends KrakenEmbedAPI.KrakenEmbedStartVerificationURLResult {}
1658
+ data: KrakenEmbedToggleAutoEarnKrakenResponse;
1534
1659
  }
1535
1660
 
1536
1661
  /**
1537
- * Result payload for start verification URL response.
1662
+ * An upcoming earn reward for a specific asset.
1538
1663
  */
1539
- export interface KrakenEmbedStartVerificationURLResult {
1540
- verification_id: string;
1664
+ export interface KrakenEmbedUpcomingReward {
1665
+ /**
1666
+ * An earn amount with native and converted values.
1667
+ */
1668
+ accumulated_amount: KrakenEmbedEarnAmount;
1669
+
1670
+ asset: string;
1671
+
1672
+ date: string;
1673
+
1674
+ /**
1675
+ * An earn amount with native and converted values.
1676
+ */
1677
+ estimated_pending_amount: KrakenEmbedEarnAmount | null;
1541
1678
  }
1542
1679
 
1543
1680
  export declare namespace KrakenEmbed {
@@ -1559,6 +1696,11 @@ export declare namespace KrakenEmbed {
1559
1696
  type KrakenEmbedCustomOrderQuoteAsset as KrakenEmbedCustomOrderQuoteAsset,
1560
1697
  type KrakenEmbedCustomOrderStatus as KrakenEmbedCustomOrderStatus,
1561
1698
  type KrakenEmbedCustomOrderTrigger as KrakenEmbedCustomOrderTrigger,
1699
+ type KrakenEmbedEarnAmount as KrakenEmbedEarnAmount,
1700
+ type KrakenEmbedEarnAprEstimate as KrakenEmbedEarnAprEstimate,
1701
+ type KrakenEmbedEarnAsset as KrakenEmbedEarnAsset,
1702
+ type KrakenEmbedEarnUserAllocation as KrakenEmbedEarnUserAllocation,
1703
+ type KrakenEmbedFullName as KrakenEmbedFullName,
1562
1704
  type KrakenEmbedGetAssetListQueryParamsSchema as KrakenEmbedGetAssetListQueryParamsSchema,
1563
1705
  type KrakenEmbedGetCustomOrderHistoryQueryParams as KrakenEmbedGetCustomOrderHistoryQueryParams,
1564
1706
  type KrakenEmbedGetCustomOrderHistoryResponse as KrakenEmbedGetCustomOrderHistoryResponse,
@@ -1566,14 +1708,27 @@ export declare namespace KrakenEmbed {
1566
1708
  type KrakenEmbedGetCustomOrderQueryParams as KrakenEmbedGetCustomOrderQueryParams,
1567
1709
  type KrakenEmbedGetCustomOrderResponse as KrakenEmbedGetCustomOrderResponse,
1568
1710
  type KrakenEmbedGetCustomOrderResult as KrakenEmbedGetCustomOrderResult,
1711
+ type KrakenEmbedGetEarnAssetsKrakenResponse as KrakenEmbedGetEarnAssetsKrakenResponse,
1712
+ type KrakenEmbedGetEarnAssetsQueryParams as KrakenEmbedGetEarnAssetsQueryParams,
1713
+ type KrakenEmbedGetEarnAssetsResponse as KrakenEmbedGetEarnAssetsResponse,
1714
+ type KrakenEmbedGetEarnAssetsResult as KrakenEmbedGetEarnAssetsResult,
1715
+ type KrakenEmbedGetEarnSummaryKrakenResponse as KrakenEmbedGetEarnSummaryKrakenResponse,
1716
+ type KrakenEmbedGetEarnSummaryQueryParams as KrakenEmbedGetEarnSummaryQueryParams,
1717
+ type KrakenEmbedGetEarnSummaryResponse as KrakenEmbedGetEarnSummaryResponse,
1718
+ type KrakenEmbedGetEarnSummaryResult as KrakenEmbedGetEarnSummaryResult,
1569
1719
  type KrakenEmbedGetPortfolioDetailsQueryParamsSchema as KrakenEmbedGetPortfolioDetailsQueryParamsSchema,
1570
1720
  type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams,
1571
1721
  type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse,
1722
+ type KrakenEmbedGetPortfolioSummaryResult as KrakenEmbedGetPortfolioSummaryResult,
1572
1723
  type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema as KrakenEmbedGetPortfolioTransactionsQueryParamsSchema,
1573
1724
  type KrakenEmbedGetQuoteQueryParams as KrakenEmbedGetQuoteQueryParams,
1574
1725
  type KrakenEmbedListCustomOrdersQueryParams as KrakenEmbedListCustomOrdersQueryParams,
1575
1726
  type KrakenEmbedListCustomOrdersResponse as KrakenEmbedListCustomOrdersResponse,
1576
1727
  type KrakenEmbedListCustomOrdersResult as KrakenEmbedListCustomOrdersResult,
1728
+ type KrakenEmbedPortfolioSummaryPayload as KrakenEmbedPortfolioSummaryPayload,
1729
+ type KrakenEmbedPortfolioTransactionRefID as KrakenEmbedPortfolioTransactionRefID,
1730
+ type KrakenEmbedPortfolioTransactionRefIDType as KrakenEmbedPortfolioTransactionRefIDType,
1731
+ type KrakenEmbedResidence as KrakenEmbedResidence,
1577
1732
  type KrakenEmbedStartAddressMetadata as KrakenEmbedStartAddressMetadata,
1578
1733
  type KrakenEmbedStartAddressVerificationURLInput as KrakenEmbedStartAddressVerificationURLInput,
1579
1734
  type KrakenEmbedStartIdentityInfo as KrakenEmbedStartIdentityInfo,
@@ -1584,5 +1739,9 @@ export declare namespace KrakenEmbed {
1584
1739
  type KrakenEmbedStartVerificationURLInput as KrakenEmbedStartVerificationURLInput,
1585
1740
  type KrakenEmbedStartVerificationURLResponse as KrakenEmbedStartVerificationURLResponse,
1586
1741
  type KrakenEmbedStartVerificationURLResult as KrakenEmbedStartVerificationURLResult,
1742
+ type KrakenEmbedToggleAutoEarnKrakenResponse as KrakenEmbedToggleAutoEarnKrakenResponse,
1743
+ type KrakenEmbedToggleAutoEarnQueryParams as KrakenEmbedToggleAutoEarnQueryParams,
1744
+ type KrakenEmbedToggleAutoEarnResponse as KrakenEmbedToggleAutoEarnResponse,
1745
+ type KrakenEmbedUpcomingReward as KrakenEmbedUpcomingReward,
1587
1746
  };
1588
1747
  }