@privy-io/api-types 0.8.0 → 0.9.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 (112) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +19 -19
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +19 -19
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/internal/utils/env.js +2 -2
  10. package/internal/utils/env.js.map +1 -1
  11. package/internal/utils/env.mjs +2 -2
  12. package/internal/utils/env.mjs.map +1 -1
  13. package/package.json +1 -1
  14. package/resources/apps.d.mts +16 -2
  15. package/resources/apps.d.mts.map +1 -1
  16. package/resources/apps.d.ts +16 -2
  17. package/resources/apps.d.ts.map +1 -1
  18. package/resources/client-auth.d.mts +14 -14
  19. package/resources/client-auth.d.mts.map +1 -1
  20. package/resources/client-auth.d.ts +14 -14
  21. package/resources/client-auth.d.ts.map +1 -1
  22. package/resources/embedded-wallets.d.mts +50 -50
  23. package/resources/embedded-wallets.d.mts.map +1 -1
  24. package/resources/embedded-wallets.d.ts +50 -50
  25. package/resources/embedded-wallets.d.ts.map +1 -1
  26. package/resources/index.d.mts +11 -11
  27. package/resources/index.d.mts.map +1 -1
  28. package/resources/index.d.ts +11 -11
  29. package/resources/index.d.ts.map +1 -1
  30. package/resources/index.js.map +1 -1
  31. package/resources/index.mjs.map +1 -1
  32. package/resources/intents.d.mts +2 -2
  33. package/resources/intents.d.mts.map +1 -1
  34. package/resources/intents.d.ts +2 -2
  35. package/resources/intents.d.ts.map +1 -1
  36. package/resources/kraken-embed.d.mts +52 -1
  37. package/resources/kraken-embed.d.mts.map +1 -1
  38. package/resources/kraken-embed.d.ts +52 -1
  39. package/resources/kraken-embed.d.ts.map +1 -1
  40. package/resources/policies.d.mts +223 -112
  41. package/resources/policies.d.mts.map +1 -1
  42. package/resources/policies.d.ts +223 -112
  43. package/resources/policies.d.ts.map +1 -1
  44. package/resources/swaps.d.mts +3 -3
  45. package/resources/swaps.d.mts.map +1 -1
  46. package/resources/swaps.d.ts +3 -3
  47. package/resources/swaps.d.ts.map +1 -1
  48. package/resources/transactions.d.mts +10 -20
  49. package/resources/transactions.d.mts.map +1 -1
  50. package/resources/transactions.d.ts +10 -20
  51. package/resources/transactions.d.ts.map +1 -1
  52. package/resources/users.d.mts +199 -199
  53. package/resources/users.d.mts.map +1 -1
  54. package/resources/users.d.ts +199 -199
  55. package/resources/users.d.ts.map +1 -1
  56. package/resources/wallet-actions.d.mts +255 -3
  57. package/resources/wallet-actions.d.mts.map +1 -1
  58. package/resources/wallet-actions.d.ts +255 -3
  59. package/resources/wallet-actions.d.ts.map +1 -1
  60. package/resources/wallets/balance.d.mts +2 -1
  61. package/resources/wallets/balance.d.mts.map +1 -1
  62. package/resources/wallets/balance.d.ts +2 -1
  63. package/resources/wallets/balance.d.ts.map +1 -1
  64. package/resources/wallets/balance.js.map +1 -1
  65. package/resources/wallets/balance.mjs.map +1 -1
  66. package/resources/wallets/index.d.mts +1 -1
  67. package/resources/wallets/index.d.mts.map +1 -1
  68. package/resources/wallets/index.d.ts +1 -1
  69. package/resources/wallets/index.d.ts.map +1 -1
  70. package/resources/wallets/index.js.map +1 -1
  71. package/resources/wallets/index.mjs.map +1 -1
  72. package/resources/wallets/transactions.d.mts +10 -30
  73. package/resources/wallets/transactions.d.mts.map +1 -1
  74. package/resources/wallets/transactions.d.ts +10 -30
  75. package/resources/wallets/transactions.d.ts.map +1 -1
  76. package/resources/wallets/transactions.js.map +1 -1
  77. package/resources/wallets/transactions.mjs.map +1 -1
  78. package/resources/wallets/wallets.d.mts +222 -116
  79. package/resources/wallets/wallets.d.mts.map +1 -1
  80. package/resources/wallets/wallets.d.ts +222 -116
  81. package/resources/wallets/wallets.d.ts.map +1 -1
  82. package/resources/wallets/wallets.js +6 -5
  83. package/resources/wallets/wallets.js.map +1 -1
  84. package/resources/wallets/wallets.mjs +6 -5
  85. package/resources/wallets/wallets.mjs.map +1 -1
  86. package/resources/webhooks.d.mts +798 -93
  87. package/resources/webhooks.d.mts.map +1 -1
  88. package/resources/webhooks.d.ts +798 -93
  89. package/resources/webhooks.d.ts.map +1 -1
  90. package/src/client.ts +163 -35
  91. package/src/internal/utils/env.ts +2 -2
  92. package/src/resources/apps.ts +24 -1
  93. package/src/resources/client-auth.ts +17 -17
  94. package/src/resources/embedded-wallets.ts +59 -59
  95. package/src/resources/index.ts +92 -31
  96. package/src/resources/intents.ts +2 -2
  97. package/src/resources/kraken-embed.ts +105 -0
  98. package/src/resources/policies.ts +310 -181
  99. package/src/resources/swaps.ts +4 -4
  100. package/src/resources/transactions.ts +11 -38
  101. package/src/resources/users.ts +724 -724
  102. package/src/resources/wallet-actions.ts +324 -2
  103. package/src/resources/wallets/balance.ts +2 -1
  104. package/src/resources/wallets/index.ts +13 -2
  105. package/src/resources/wallets/transactions.ts +10 -88
  106. package/src/resources/wallets/wallets.ts +319 -136
  107. package/src/resources/webhooks.ts +1021 -141
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
@@ -18,6 +18,62 @@ export type SmartWalletConfigurationInput =
18
18
  | SmartWalletConfigurationDisabled
19
19
  | SmartWalletConfigurationInputEnabled;
20
20
 
21
+ /**
22
+ * An additional signer configuration for a wallet.
23
+ */
24
+ export interface WalletCreationAdditionalSignerItem {
25
+ /**
26
+ * A unique identifier for a key quorum.
27
+ */
28
+ signer_id: SharedAPI.KeyQuorumID;
29
+
30
+ /**
31
+ * The array of policy IDs that will be applied to wallet requests. If specified,
32
+ * this will override the base policy IDs set on the wallet. Currently, only one
33
+ * policy is supported per signer.
34
+ */
35
+ override_policy_ids?: Array<string>;
36
+ }
37
+
38
+ /**
39
+ * The fields on wallet creation that can be specified when creating a
40
+ * user-controlled embedded server wallet.
41
+ */
42
+ export interface WalletCreationInput {
43
+ /**
44
+ * The wallet chain types.
45
+ */
46
+ chain_type: WalletsAPI.WalletChainType;
47
+
48
+ /**
49
+ * Additional signers for the wallet.
50
+ */
51
+ additional_signers?: Array<WalletCreationAdditionalSignerItem>;
52
+
53
+ /**
54
+ * Create a smart wallet with this wallet as the signer. Only supported for wallets
55
+ * with `chain_type: "ethereum"`.
56
+ */
57
+ create_smart_wallet?: boolean;
58
+
59
+ /**
60
+ * Policy IDs to enforce on the wallet. Currently, only one policy is supported per
61
+ * wallet.
62
+ */
63
+ policy_ids?: Array<string>;
64
+ }
65
+
66
+ /**
67
+ * The fields describing embedded wallet creation, used for user import and
68
+ * embedded wallet generation.
69
+ */
70
+ export interface EmbeddedWalletCreationInput {
71
+ /**
72
+ * Wallets to create.
73
+ */
74
+ wallets?: Array<WalletCreationInput>;
75
+ }
76
+
21
77
  /**
22
78
  * The supported smart wallet providers.
23
79
  */
@@ -215,66 +271,13 @@ export interface RecoveryConfigurationICloudResponse {
215
271
  environment: string;
216
272
  }
217
273
 
218
- /**
219
- * An additional signer configuration for a wallet.
220
- */
221
- export interface WalletCreationAdditionalSignerItem {
222
- /**
223
- * A unique identifier for a key quorum.
224
- */
225
- signer_id: SharedAPI.KeyQuorumID;
226
-
227
- /**
228
- * The array of policy IDs that will be applied to wallet requests. If specified,
229
- * this will override the base policy IDs set on the wallet. Currently, only one
230
- * policy is supported per signer.
231
- */
232
- override_policy_ids?: Array<string>;
233
- }
234
-
235
- /**
236
- * The fields on wallet creation that can be specified when creating a
237
- * user-controlled embedded server wallet.
238
- */
239
- export interface WalletCreationInput {
240
- /**
241
- * The wallet chain types.
242
- */
243
- chain_type: WalletsAPI.WalletChainType;
244
-
245
- /**
246
- * Additional signers for the wallet.
247
- */
248
- additional_signers?: Array<WalletCreationAdditionalSignerItem>;
249
-
250
- /**
251
- * Create a smart wallet with this wallet as the signer. Only supported for wallets
252
- * with `chain_type: "ethereum"`.
253
- */
254
- create_smart_wallet?: boolean;
255
-
256
- /**
257
- * Policy IDs to enforce on the wallet. Currently, only one policy is supported per
258
- * wallet.
259
- */
260
- policy_ids?: Array<string>;
261
- }
262
-
263
- /**
264
- * The fields describing embedded wallet creation, used for user import and
265
- * embedded wallet generation.
266
- */
267
- export interface EmbeddedWalletCreationInput {
268
- /**
269
- * Wallets to create.
270
- */
271
- wallets?: Array<WalletCreationInput>;
272
- }
273
-
274
274
  export declare namespace EmbeddedWallets {
275
275
  export {
276
276
  type SmartWalletConfiguration as SmartWalletConfiguration,
277
277
  type SmartWalletConfigurationInput as SmartWalletConfigurationInput,
278
+ type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem,
279
+ type WalletCreationInput as WalletCreationInput,
280
+ type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
278
281
  type SmartWalletType as SmartWalletType,
279
282
  type AlchemyPaymasterContext as AlchemyPaymasterContext,
280
283
  type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration,
@@ -292,8 +295,5 @@ export declare namespace EmbeddedWallets {
292
295
  type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput,
293
296
  type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput,
294
297
  type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse,
295
- type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem,
296
- type WalletCreationInput as WalletCreationInput,
297
- type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
298
298
  };
299
299
  }
@@ -44,9 +44,11 @@ export {
44
44
  type FundingOption,
45
45
  type FundingConfigResponseSchema,
46
46
  type AppResponse,
47
+ type EmailDomain,
47
48
  type EmailInviteInput,
48
49
  type WalletInviteInput,
49
50
  type PhoneInviteInput,
51
+ type EmailDomainInviteInput,
50
52
  type UserInviteInput,
51
53
  type AllowlistEntry,
52
54
  type AllowlistDeletionResponse,
@@ -116,14 +118,14 @@ export {
116
118
  type TelegramAuthenticateRequestBody,
117
119
  type TelegramLinkRequestBody,
118
120
  type TelegramUnlinkRequestBody,
121
+ type AuthenticateModeOption,
122
+ type AuthenticateMode,
119
123
  type ExternalOAuthProviderID,
120
124
  type PrivyOAuthProviderID,
121
125
  type CustomOAuthProviderID,
122
126
  type OAuthProviderID,
123
127
  type BridgeOnrampProvider,
124
128
  type OnrampProvider,
125
- type AuthenticateModeOption,
126
- type AuthenticateMode,
127
129
  type PasskeyCredPropsResult,
128
130
  type PasskeyClientExtensionResults,
129
131
  type PasskeyCredentialDescriptor,
@@ -236,6 +238,9 @@ export {
236
238
  EmbeddedWallets,
237
239
  type SmartWalletConfiguration,
238
240
  type SmartWalletConfigurationInput,
241
+ type WalletCreationAdditionalSignerItem,
242
+ type WalletCreationInput,
243
+ type EmbeddedWalletCreationInput,
239
244
  type SmartWalletType,
240
245
  type AlchemyPaymasterContext,
241
246
  type SmartWalletNetworkConfiguration,
@@ -253,9 +258,6 @@ export {
253
258
  type OAuthCallbackICloudExpoInput,
254
259
  type RecoveryConfigurationICloudInput,
255
260
  type RecoveryConfigurationICloudResponse,
256
- type WalletCreationAdditionalSignerItem,
257
- type WalletCreationInput,
258
- type EmbeddedWalletCreationInput,
259
261
  } from './embedded-wallets';
260
262
  export {
261
263
  Funding,
@@ -320,9 +322,13 @@ export {
320
322
  } from './key-quorums';
321
323
  export {
322
324
  KrakenEmbed,
325
+ type KrakenEmbedGetAssetListQueryParamsSchema,
326
+ type KrakenEmbedGetPortfolioDetailsQueryParamsSchema,
323
327
  type KrakenEmbedGetPortfolioSummaryQueryParams,
324
328
  type KrakenEmbedCurrentDayPnl,
325
329
  type KrakenEmbedGetPortfolioSummaryResponse,
330
+ type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema,
331
+ type KrakenEmbedGetQuoteQueryParams,
326
332
  } from './kraken-embed';
327
333
  export {
328
334
  Policies,
@@ -339,8 +345,19 @@ export {
339
345
  type PolicyAction,
340
346
  type AbiParameter,
341
347
  type AbiSchema,
348
+ type ConditionOperator,
349
+ type ConditionValue,
342
350
  type SuiTransactionCommandOperator,
343
351
  type SuiTransferObjectsCommandField,
352
+ type EthereumTransactionCondition,
353
+ type EthereumCalldataCondition,
354
+ type EthereumTypedDataDomainCondition,
355
+ type EthereumTypedDataMessageCondition,
356
+ type Ethereum7702AuthorizationCondition,
357
+ type SolanaProgramInstructionCondition,
358
+ type SolanaSystemProgramInstructionCondition,
359
+ type SolanaTokenProgramInstructionCondition,
360
+ type SystemCondition,
344
361
  type TronTransactionCondition,
345
362
  type TronCalldataCondition,
346
363
  type SuiTransactionCommandCondition,
@@ -351,6 +368,8 @@ export {
351
368
  type PolicyRuleRequestBody,
352
369
  type PolicyRuleResponse,
353
370
  type Policy,
371
+ type PolicyRequestBody,
372
+ type PolicyRuleRequestParams,
354
373
  type PolicyAuthorizationHeaders,
355
374
  type ConditionSetAuthorizationHeaders,
356
375
  type PolicyCreateParams,
@@ -375,9 +394,9 @@ export {
375
394
  export {
376
395
  Swaps,
377
396
  type SwapAmountType,
378
- type SwapQuoteRequest,
397
+ type SwapQuoteRequestBody,
379
398
  type SwapQuoteResponse,
380
- type SwapRequest,
399
+ type SwapRequestBody,
381
400
  } from './swaps';
382
401
  export {
383
402
  Transactions,
@@ -397,11 +416,32 @@ export {
397
416
  type TransactionScanningSimulationErrorResult,
398
417
  type TransactionScanningSimulationSuccessResult,
399
418
  type TransactionScanningSimulationResult,
419
+ type Transaction,
400
420
  type TransactionList,
401
- type TransactionGetResponse,
402
421
  } from './transactions';
403
422
  export {
404
423
  Users,
424
+ type CustomMetadata,
425
+ type LinkedAccountWalletInput,
426
+ type LinkedAccountEmailInput,
427
+ type LinkedAccountPhoneInput,
428
+ type LinkedAccountGoogleInput,
429
+ type LinkedAccountTwitterInput,
430
+ type LinkedAccountDiscordInput,
431
+ type LinkedAccountGitHubInput,
432
+ type LinkedAccountSpotifyInput,
433
+ type LinkedAccountInstagramInput,
434
+ type LinkedAccountTiktokInput,
435
+ type LinkedAccountLineInput,
436
+ type LinkedAccountTwitchInput,
437
+ type LinkedAccountAppleInput,
438
+ type LinkedAccountLinkedInInput,
439
+ type LinkedAccountFarcasterInput,
440
+ type LinkedAccountTelegramInput,
441
+ type LinkedAccountCustomJwtInput,
442
+ type LinkedAccountPasskeyInput,
443
+ type LinkedAccountInput,
444
+ type UserBatchCreateInput,
405
445
  type LinkedAccountEmail,
406
446
  type LinkedAccountPhone,
407
447
  type LinkedAccountBaseWallet,
@@ -442,28 +482,7 @@ export {
442
482
  type TotpMfaMethod,
443
483
  type PasskeyMfaMethod,
444
484
  type LinkedMfaMethod,
445
- type CustomMetadata,
446
485
  type User,
447
- type LinkedAccountWalletInput,
448
- type LinkedAccountEmailInput,
449
- type LinkedAccountPhoneInput,
450
- type LinkedAccountGoogleInput,
451
- type LinkedAccountTwitterInput,
452
- type LinkedAccountDiscordInput,
453
- type LinkedAccountGitHubInput,
454
- type LinkedAccountSpotifyInput,
455
- type LinkedAccountInstagramInput,
456
- type LinkedAccountTiktokInput,
457
- type LinkedAccountLineInput,
458
- type LinkedAccountTwitchInput,
459
- type LinkedAccountAppleInput,
460
- type LinkedAccountLinkedInInput,
461
- type LinkedAccountFarcasterInput,
462
- type LinkedAccountTelegramInput,
463
- type LinkedAccountCustomJwtInput,
464
- type LinkedAccountPasskeyInput,
465
- type LinkedAccountInput,
466
- type UserBatchCreateInput,
467
486
  type OAuthTokens,
468
487
  type UserWithIdentityToken,
469
488
  type AuthenticatedUser,
@@ -499,7 +518,14 @@ export {
499
518
  type WalletActionStep,
500
519
  type SwapActionResponse,
501
520
  type TransferActionResponse,
521
+ type EarnIncetiveClaimRewardEntry,
522
+ type EarnDepositActionResponse,
523
+ type EarnWithdrawActionResponse,
524
+ type EarnIncentiveClaimActionResponse,
502
525
  type WalletActionResponse,
526
+ type EarnDepositRequestBody,
527
+ type EarnWithdrawRequestBody,
528
+ type EarnIncentiveClaimRequestBody,
503
529
  } from './wallet-actions';
504
530
  export {
505
531
  Wallets,
@@ -663,16 +689,27 @@ export {
663
689
  type WalletRpcRequestBody,
664
690
  type WalletRpcResponse,
665
691
  type WalletAuthenticateRequestBody,
692
+ type PrivateKeyInitInput,
693
+ type HDInitInput,
694
+ type PrivateKeySubmitInput,
695
+ type HDSubmitInput,
696
+ type WalletExportRequestBody,
697
+ type WalletExportResponseBody,
666
698
  type TokenTransferSource,
667
699
  type TokenTransferDestination,
668
- type CreateTokenTransferRequest,
700
+ type TransferRequestBody,
669
701
  type SuiCommandName,
702
+ type WalletEthereumAsset,
703
+ type WalletSolanaAsset,
704
+ type WalletAsset,
705
+ type TransferSentTransactionDetail,
706
+ type TransferReceivedTransactionDetail,
707
+ type TransactionDetail,
670
708
  type WalletAPIRegisterAuthorizationKeyInput,
671
709
  type WalletAPIRevokeAuthorizationKeyInput,
672
710
  type AuthorizationKeyDashboardResponse,
673
711
  type AuthorizationKeyResponse,
674
712
  type WalletAuthorizationHeaders,
675
- type WalletExportResponse,
676
713
  type WalletInitImportResponse,
677
714
  type WalletAuthenticateWithJwtResponse,
678
715
  type WalletCreateWalletsWithRecoveryResponse,
@@ -719,6 +756,30 @@ export {
719
756
  type WalletActionTransferSucceededWebhookPayload,
720
757
  type WalletActionTransferRejectedWebhookPayload,
721
758
  type WalletActionTransferFailedWebhookPayload,
759
+ type WalletActionEarnDepositCreatedWebhookPayload,
760
+ type WalletActionEarnDepositSucceededWebhookPayload,
761
+ type WalletActionEarnDepositRejectedWebhookPayload,
762
+ type WalletActionEarnDepositFailedWebhookPayload,
763
+ type WalletActionEarnWithdrawCreatedWebhookPayload,
764
+ type WalletActionEarnWithdrawSucceededWebhookPayload,
765
+ type WalletActionEarnWithdrawRejectedWebhookPayload,
766
+ type WalletActionEarnWithdrawFailedWebhookPayload,
767
+ type WalletActionEarnIncentiveClaimCreatedWebhookPayload,
768
+ type WalletActionEarnIncentiveClaimSucceededWebhookPayload,
769
+ type WalletActionEarnIncentiveClaimRejectedWebhookPayload,
770
+ type WalletActionEarnIncentiveClaimFailedWebhookPayload,
771
+ type WalletFundsNativeTokenAsset,
772
+ type WalletFundsErc20Asset,
773
+ type WalletFundsSplAsset,
774
+ type WalletFundsSacAsset,
775
+ type WalletFundsAsset,
776
+ type BridgeCryptoDepositMetadata,
777
+ type BridgeRefundMetadata,
778
+ type BridgeFiatDepositMetadata,
779
+ type BridgeCryptoTransferMetadata,
780
+ type BridgeFiatTransferMetadata,
781
+ type BridgeTransferRefundMetadata,
782
+ type BridgeMetadata,
722
783
  type FundsDepositedWebhookPayload,
723
784
  type FundsWithdrawnWebhookPayload,
724
785
  type PrivateKeyExportWebhookPayload,
@@ -40,7 +40,7 @@ export interface TransferIntentRequestDetails {
40
40
  /**
41
41
  * Request body for initiating a sponsored token transfer from an embedded wallet.
42
42
  */
43
- body: WalletsAPI.CreateTokenTransferRequest;
43
+ body: WalletsAPI.TransferRequestBody;
44
44
 
45
45
  method: 'POST';
46
46
 
@@ -416,7 +416,7 @@ export namespace TransferIntentResponse {
416
416
  /**
417
417
  * Request body for initiating a sponsored token transfer from an embedded wallet.
418
418
  */
419
- body: WalletsAPI.CreateTokenTransferRequest;
419
+ body: WalletsAPI.TransferRequestBody;
420
420
 
421
421
  method: 'POST';
422
422
 
@@ -5,6 +5,62 @@ import * as KrakenEmbedAPI from './kraken-embed';
5
5
 
6
6
  export class KrakenEmbed extends APIResource {}
7
7
 
8
+ /**
9
+ * Query parameters for listing and filtering available assets.
10
+ */
11
+ export interface KrakenEmbedGetAssetListQueryParamsSchema {
12
+ 'filter[assets]'?: Array<string>;
13
+
14
+ 'filter[platform_statuses]'?: Array<
15
+ | 'enabled'
16
+ | 'deposit_only'
17
+ | 'withdrawal_only'
18
+ | 'funding_temporarily_disabled'
19
+ | 'disabled'
20
+ | (string & {})
21
+ >;
22
+
23
+ 'filter[tradable_only]'?: boolean | null;
24
+
25
+ 'filter[user]'?: string;
26
+
27
+ lang?: string;
28
+
29
+ 'page[number]'?: number;
30
+
31
+ 'page[size]'?: number;
32
+
33
+ quote?: string;
34
+
35
+ sort?:
36
+ | 'trending'
37
+ | 'market_cap_rank'
38
+ | '-market_cap_rank'
39
+ | 'symbol'
40
+ | '-symbol'
41
+ | 'name'
42
+ | '-name'
43
+ | 'change_percent_1h'
44
+ | '-change_percent_1h'
45
+ | 'change_percent_24h'
46
+ | '-change_percent_24h'
47
+ | 'change_percent_7d'
48
+ | '-change_percent_7d'
49
+ | 'change_percent_30d'
50
+ | '-change_percent_30d'
51
+ | 'change_percent_1y'
52
+ | '-change_percent_1y'
53
+ | 'listing_date'
54
+ | '-listing_date';
55
+ }
56
+
57
+ /**
58
+ * Query parameters for portfolio details endpoint.
59
+ */
60
+ export interface KrakenEmbedGetPortfolioDetailsQueryParamsSchema {
61
+ quote?: string;
62
+ }
63
+
8
64
  /**
9
65
  * Query parameters for getting a portfolio summary.
10
66
  */
@@ -76,10 +132,59 @@ export namespace KrakenEmbedGetPortfolioSummaryResponse {
76
132
  }
77
133
  }
78
134
 
135
+ /**
136
+ * Query parameters for filtering and paginating portfolio transactions.
137
+ */
138
+ export interface KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
139
+ assets?: Array<string>;
140
+
141
+ cursor?: string;
142
+
143
+ from_time?: string;
144
+
145
+ ids?: Array<string>;
146
+
147
+ page_size?: number;
148
+
149
+ quote?: string;
150
+
151
+ ref_ids?: Array<KrakenEmbedGetPortfolioTransactionsQueryParamsSchema.RefID>;
152
+
153
+ sorting?: 'descending' | 'ascending';
154
+
155
+ statuses?: Array<'unspecified' | 'in_progress' | 'successful' | 'failed'>;
156
+
157
+ types?: Array<'simple_order' | 'simple_order_failed' | 'earn_reward'>;
158
+
159
+ until_time?: string;
160
+ }
161
+
162
+ export namespace KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
163
+ export interface RefID {
164
+ ref_id: string;
165
+
166
+ type: 'simple_order_quote' | 'simple_order_quote_failed';
167
+ }
168
+ }
169
+
170
+ /**
171
+ * Query parameters for getting a quote status.
172
+ */
173
+ export interface KrakenEmbedGetQuoteQueryParams {
174
+ /**
175
+ * The ID of the Privy user.
176
+ */
177
+ user_id: string;
178
+ }
179
+
79
180
  export declare namespace KrakenEmbed {
80
181
  export {
182
+ type KrakenEmbedGetAssetListQueryParamsSchema as KrakenEmbedGetAssetListQueryParamsSchema,
183
+ type KrakenEmbedGetPortfolioDetailsQueryParamsSchema as KrakenEmbedGetPortfolioDetailsQueryParamsSchema,
81
184
  type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams,
82
185
  type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl,
83
186
  type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse,
187
+ type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema as KrakenEmbedGetPortfolioTransactionsQueryParamsSchema,
188
+ type KrakenEmbedGetQuoteQueryParams as KrakenEmbedGetQuoteQueryParams,
84
189
  };
85
190
  }