@stakekit/widget 0.0.277 → 0.0.279

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 (78) hide show
  1. package/dist/bundle/index.bundle.css +1 -1
  2. package/dist/bundle/index.bundle.js +16 -16
  3. package/dist/package/index.package.css +1125 -1112
  4. package/dist/package/index.package.js +4569 -4101
  5. package/dist/types/common/get-token-balances.d.ts +4 -2
  6. package/dist/types/components/atoms/box/index.d.ts +3 -3
  7. package/dist/types/domain/types/action.d.ts +2 -0
  8. package/dist/types/domain/types/external-providers.d.ts +7 -2
  9. package/dist/types/domain/types/kyc.d.ts +1 -1
  10. package/dist/types/domain/types/stake.d.ts +1 -1
  11. package/dist/types/domain/types/token-balance.d.ts +4 -1
  12. package/dist/types/domain/types/yields.d.ts +1 -0
  13. package/dist/types/generated/api/legacy.d.ts +140 -5
  14. package/dist/types/generated/api/yield.d.ts +85 -16
  15. package/dist/types/hooks/api/use-activity-actions.d.ts +34 -2
  16. package/dist/types/hooks/api/use-default-tokens.d.ts +185 -8
  17. package/dist/types/hooks/navigation/use-unstake-or-pending-action-params.d.ts +1 -1
  18. package/dist/types/hooks/use-init-query-params.d.ts +2 -2
  19. package/dist/types/pages/details/activity-page/activity-filters.d.ts +4 -10
  20. package/dist/types/pages/details/activity-page/hooks/use-activity-filters.d.ts +4 -6
  21. package/dist/types/pages/details/activity-page/hooks/use-activity-page.d.ts +4 -2
  22. package/dist/types/pages/details/activity-page/state/types.d.ts +5 -0
  23. package/dist/types/pages/details/earn-page/state/types.d.ts +5 -1
  24. package/dist/types/pages/details/earn-page/state/use-get-init-yield.d.ts +3 -1
  25. package/dist/types/pages/details/earn-page/state/use-get-token-balances-map.d.ts +1 -1
  26. package/dist/types/pages/details/earn-page/state/use-init-token.d.ts +1 -1
  27. package/dist/types/pages/details/earn-page/state/use-token-balance.d.ts +4 -2
  28. package/dist/types/pages/details/earn-page/state/use-token-balances-map.d.ts +4 -1
  29. package/dist/types/pages/review/hooks/use-pending-review.hook.d.ts +1 -1
  30. package/dist/types/pages/steps/hooks/errors.d.ts +3 -1
  31. package/dist/types/pages/steps/hooks/use-steps-machine.hook.d.ts +1 -1
  32. package/dist/types/pages/steps/hooks/use-steps.hook.d.ts +2 -1
  33. package/dist/types/pages/steps/pages/styles.css.d.ts +1 -0
  34. package/dist/types/pages-dashboard/common/components/tabs/tab.d.ts +1 -1
  35. package/dist/types/pages-dashboard/overview/earn-details/earn-details-formatters.d.ts +1 -1
  36. package/dist/types/providers/api/api-client-provider.d.ts +8 -0
  37. package/dist/types/providers/api/api-client.d.ts +8 -0
  38. package/dist/types/providers/settings/index.d.ts +2 -2
  39. package/dist/types/providers/settings/types.d.ts +7 -1
  40. package/dist/types/providers/sk-wallet/errors.d.ts +2 -1
  41. package/dist/types/styles/theme/atoms.css.d.ts +3 -3
  42. package/dist/types/styles/theme/contract.css.d.ts +1 -0
  43. package/dist/types/styles/theme/properties.d.ts +3 -0
  44. package/dist/types/styles/theme/themes.d.ts +2 -0
  45. package/dist/types/styles/tokens/colors/contract.d.ts +1 -0
  46. package/dist/types/translation/resources.d.ts +18 -0
  47. package/dist/website/assets/{basic-pwmIJ5Ws.js → basic-D3nwtDfO.js} +1 -1
  48. package/dist/website/assets/{basic-CjEpjfzf.js → basic-DI04q-z5.js} +1 -1
  49. package/dist/website/assets/{browser-CCqMUd7Y.js → browser-BGQxsRzX.js} +1 -1
  50. package/dist/website/assets/{build-B7EKreOf.js → build-BO-twdq7.js} +1 -1
  51. package/dist/website/assets/{build-BJXYN5Yd.js → build-CEAQPMiq.js} +1 -1
  52. package/dist/website/assets/{cardano-connector-Cpx-YJd6.js → cardano-connector-ecZtuJQB.js} +1 -1
  53. package/dist/website/assets/{core-CJ6UoY0G.js → core-B3_9JvTp.js} +2 -2
  54. package/dist/website/assets/{dist-DUXhuB4w.js → dist-BYlQhRkj.js} +1 -1
  55. package/dist/website/assets/{dist-BTQzphBJ.js → dist-DEMLOD_H.js} +1 -1
  56. package/dist/website/assets/en_US-IFPOGBSL-C6vS0nJu.js +1 -0
  57. package/dist/website/assets/{esm-CU6m2Mgh.js → esm-BQw3npTs.js} +1 -1
  58. package/dist/website/assets/{exports-C-Rr_VQ2.js → exports-DAW2JAuG.js} +1 -1
  59. package/dist/website/assets/{index-STnzu3ZH.js → index-76KqbRyx.js} +26 -26
  60. package/dist/website/assets/index-DURgR3jz.css +1 -0
  61. package/dist/website/assets/{index.es-DfIWVmF0.js → index.es-7QZH23xL.js} +2 -2
  62. package/dist/website/assets/{ledger-connector-BL2CqkDZ.js → ledger-connector-JukZtwLj.js} +1 -1
  63. package/dist/website/assets/{receive-DbQB8Kb0.js → receive-BDUZF0CU.js} +1 -1
  64. package/dist/website/assets/{registry-DQZCfZdW.js → registry-BWniouhx.js} +1 -1
  65. package/dist/website/assets/{safe-connector-DpMirNdU.js → safe-connector-rgvIlZts.js} +1 -1
  66. package/dist/website/assets/{socials-CVEdW2YA.js → socials-DfLvlbuC.js} +1 -1
  67. package/dist/website/assets/{solana-connector-D8iHz3KE.js → solana-connector-BbGZaah6.js} +1 -1
  68. package/dist/website/assets/{substrate-connector-DzMk8xI3.js → substrate-connector-D8xzZ-Ot.js} +1 -1
  69. package/dist/website/assets/{ton-connector-DkGy3-Cc.js → ton-connector-BN_syN6v.js} +1 -1
  70. package/dist/website/assets/{tron-connector-CK8wKQTX.js → tron-connector-CUEWVgiG.js} +3 -3
  71. package/dist/website/assets/tx-yuT9VUC1.js +1 -0
  72. package/dist/website/assets/{wallet-manager-_pvCvRVJ.js → wallet-manager-Cfp7arwy.js} +3 -3
  73. package/dist/website/assets/{wui-qr-code-DvTvu_mf.js → wui-qr-code-Bcjr7F8m.js} +1 -1
  74. package/dist/website/index.html +2 -2
  75. package/package.json +1 -1
  76. package/dist/website/assets/en_US-IFPOGBSL-DiQE412U.js +0 -1
  77. package/dist/website/assets/index-DOaPAEx0.css +0 -1
  78. package/dist/website/assets/tx-4iZZqojA.js +0 -1
@@ -1,16 +1,18 @@
1
1
  import type { QueryClient } from "@tanstack/react-query";
2
2
  import { EitherAsync } from "purify-ts";
3
3
  import type { SKWallet } from "../domain/types/wallet";
4
+ import type { DashboardYieldCategory } from "../domain/types/yields";
4
5
  import type { ApiClient } from "../providers/api/api-client";
5
6
  import type { SettingsProps } from "../providers/settings/types";
6
- export declare const getTokenBalances: ({ additionalAddresses, address, apiClient, network, queryClient, tokensForEnabledYieldsOnly, }: {
7
+ export declare const getTokenBalances: ({ additionalAddresses, address, apiClient, network, selectedDashboardYieldCategory, queryClient, tokensForEnabledYieldsOnly, }: {
7
8
  additionalAddresses: SKWallet["additionalAddresses"];
8
9
  address: SKWallet["address"];
9
10
  apiClient: ApiClient;
10
11
  queryClient: QueryClient;
11
12
  network: SKWallet["network"];
13
+ selectedDashboardYieldCategory?: DashboardYieldCategory | null;
12
14
  tokensForEnabledYieldsOnly: SettingsProps["tokensForEnabledYieldsOnly"];
13
15
  }) => EitherAsync<Error, {
14
- defaultTokens: import("../generated/api/legacy").TokenBalanceScanResponseDto[];
16
+ defaultTokens: import("../domain/types/token-balance").TokenBalanceScanResponseDto[];
15
17
  tokenBalancesScan: import("../generated/api/legacy").TokenControllerTokenBalancesScan200;
16
18
  }>;
@@ -24,9 +24,9 @@ export declare const Box: import("react").ForwardRefExoticComponent<Omit<AllHTML
24
24
  readonly borderWidth?: 1 | 2 | 3 | 0.5 | undefined;
25
25
  readonly borderStyle?: "solid" | undefined;
26
26
  readonly overflowWrap?: "normal" | "break-word" | "anywhere" | undefined;
27
- readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
28
- readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
29
- readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
27
+ readonly color?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "errorBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
28
+ readonly background?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "errorBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
29
+ readonly borderColor?: "connectKit" | "text" | "white" | "transparent" | "primary" | "accent" | "disabled" | "textMuted" | "textDanger" | "background" | "backgroundMuted" | "tokenSelectBackground" | "tokenSelectHoverBackground" | "tokenSelectBorder" | "tokenSelect" | "skeletonLoaderBase" | "skeletonLoaderHighlight" | "tabBorder" | "stakeSectionBackground" | "dropdownBackground" | "selectValidatorMultiSelectedBackground" | "selectValidatorMultiDefaultBackground" | "warningBoxBackground" | "errorBoxBackground" | "positionsClaimRewardsBackground" | "positionsActionRequiredBackground" | "positionsPendingBackground" | "positionsRewardRate" | "modalOverlayBackground" | "modalBodyBackground" | "tooltipBackground" | "primaryButtonColor" | "primaryButtonBackground" | "secondaryButtonColor" | "secondaryButtonBackground" | "smallButtonColor" | "smallButtonBackground" | "smallLightButtonColor" | "smallLightButtonBackground" | "disabledButtonColor" | "disabledButtonBackground" | "dashboardDetailsSectionBackground" | "summaryItemBackground" | "summaryLabelStakedBackground" | "summaryLabelStakedColor" | "summaryLabelApyBackground" | "summaryLabelApyColor" | "summaryLabelAvailableBackground" | "summaryLabelAvailableColor" | undefined;
30
30
  } & {
31
31
  readonly display?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | {
32
32
  mobile?: "none" | "flex" | "block" | "inline" | "inline-block" | "inline-flex" | undefined;
@@ -20,6 +20,8 @@ type TransactionGasEstimate = {
20
20
  export declare const ActionTypes: {
21
21
  readonly STAKE: "STAKE";
22
22
  readonly UNSTAKE: "UNSTAKE";
23
+ readonly WITHDRAW_REQUEST: "WITHDRAW_REQUEST";
24
+ readonly INSTANT_WITHDRAW: "INSTANT_WITHDRAW";
23
25
  readonly CLAIM_REWARDS: "CLAIM_REWARDS";
24
26
  readonly AUTO_SWEEP_UNSTAKE_REWARDS: "AUTO_SWEEP_UNSTAKE_REWARDS";
25
27
  readonly AUTO_SWEEP_WITHDRAW_REWARDS: "AUTO_SWEEP_WITHDRAW_REWARDS";
@@ -2,12 +2,17 @@ import { EitherAsync } from "purify-ts";
2
2
  import type { RefObject } from "react";
3
3
  import type { SKExternalProviders } from "./wallets";
4
4
  import type { SKTx, SKTxMeta } from "./wallets/generic-wallet";
5
+ export declare class ExternalProviderError extends Error {
6
+ readonly customMessage: string | null;
7
+ _tag: string;
8
+ constructor(customMessage: string | null, cause?: unknown);
9
+ }
5
10
  export declare class ExternalProvider {
6
11
  private variantProvider;
7
12
  constructor(variantProvider: RefObject<SKExternalProviders>);
8
- sendTransaction(tx: SKTx, txMeta: SKTxMeta): EitherAsync<string | Error, string>;
13
+ sendTransaction(tx: SKTx, txMeta: SKTxMeta): EitherAsync<Error | ExternalProviderError, string>;
9
14
  switchChain({ chainId }: {
10
15
  chainId: number;
11
16
  }): EitherAsync<Error, void>;
12
- signMessage(messageHash: string): EitherAsync<Error, string>;
17
+ signMessage(messageHash: string): EitherAsync<ExternalProviderError, string>;
13
18
  }
@@ -21,7 +21,7 @@ export type KycGate = {
21
21
  iframeAllowed?: true;
22
22
  };
23
23
  type KycUrlSource = {
24
- readonly status?: Pick<KycStatusResponseDto, "kycUrl"> | null;
24
+ readonly status?: Pick<KycStatusResponseDto, "authorizeUrl"> | null;
25
25
  readonly yieldDto?: Yield | null;
26
26
  };
27
27
  export declare const getKycProviderName: (yieldDto: Yield | null | undefined) => string | null;
@@ -17,7 +17,7 @@ export declare const getInitialToken: (args: {
17
17
  defaultTokens: ReadonlyArray<TokenBalanceScanResponseDto>;
18
18
  network: SupportedSKChains | null;
19
19
  preferredTokenYieldsPerNetwork: PreferredTokenYieldsPerNetwork | null;
20
- }) => import("purify-ts/Maybe").Maybe<import("../../generated/api/legacy").TokenDto>;
20
+ }) => import("purify-ts/Maybe").Maybe<import("./tokens").TokenDto>;
21
21
  export declare const canBeInitialYield: (args: {
22
22
  initQueryParams: Maybe<InitParams>;
23
23
  yieldDto: YieldBase;
@@ -1,4 +1,7 @@
1
1
  import type { TokenBalanceScanDto as LegacyTokenBalanceScanDto, TokenBalanceScanResponseDto as LegacyTokenBalanceScanResponseDto, YieldBalanceLabelDto as LegacyYieldBalanceLabelDto } from "../../generated/api/legacy";
2
+ import type { TokenDto } from "./tokens";
2
3
  export type TokenBalanceScanDto = LegacyTokenBalanceScanDto;
3
- export type TokenBalanceScanResponseDto = LegacyTokenBalanceScanResponseDto;
4
+ export type TokenBalanceScanResponseDto = Omit<LegacyTokenBalanceScanResponseDto, "token"> & {
5
+ readonly token: TokenDto;
6
+ };
4
7
  export type YieldBalanceLabelDto = LegacyYieldBalanceLabelDto;
@@ -89,6 +89,7 @@ export declare const getYieldOutputToken: (yieldDto: YieldBase) => import("purif
89
89
  readonly isPoints?: boolean;
90
90
  readonly coinGeckoId?: string;
91
91
  }>;
92
+ export declare const hasYieldBearingOutputToken: (yieldDto: YieldBase) => boolean;
92
93
  export declare const isUnstakeYieldType: (yieldType: ExtendedYieldType) => yieldType is "native_staking" | "staking" | "restaking" | "pooled_staking";
93
94
  export declare const isDepositYieldType: (yieldType: ExtendedYieldType) => yieldType is "vault" | "lending" | "fixed_yield" | "real_world_asset" | "concentrated_liquidity_pool" | "liquidity_pool";
94
95
  export declare const getYieldTypeLabels: (yieldDto: YieldBase, t: TFunction) => YieldTypeLabelsMap[keyof YieldTypeLabelsMap];
@@ -318,17 +318,67 @@ export type ReferralDto = {
318
318
  readonly id: string;
319
319
  readonly code: string;
320
320
  };
321
+ export type IntegrationFreshness = "real_time" | "daily" | "weekly" | "monthly" | "coming_soon";
322
+ export type KpiSummaryResponseDto = {
323
+ readonly total_earned_revenue_usd: {
324
+ readonly value: string | null;
325
+ readonly coverage: boolean;
326
+ readonly last_updated_at: string;
327
+ readonly delta_30d_usd?: string | null;
328
+ readonly delta_30d_pct?: string | null;
329
+ readonly delta_30d?: string | null;
330
+ };
331
+ readonly volume_inflow_usd: {
332
+ readonly value: string | null;
333
+ readonly coverage: boolean;
334
+ readonly last_updated_at: string;
335
+ readonly delta_30d_usd?: string | null;
336
+ readonly delta_30d_pct?: string | null;
337
+ readonly delta_30d?: string | null;
338
+ };
339
+ readonly volume_outflow_usd: {
340
+ readonly value: string | null;
341
+ readonly coverage: boolean;
342
+ readonly last_updated_at: string;
343
+ readonly delta_30d_usd?: string | null;
344
+ readonly delta_30d_pct?: string | null;
345
+ readonly delta_30d?: string | null;
346
+ };
347
+ readonly tvl_usd: {
348
+ readonly value: string | null;
349
+ readonly coverage: boolean;
350
+ readonly last_updated_at: string;
351
+ readonly delta_30d_usd?: string | null;
352
+ readonly delta_30d_pct?: string | null;
353
+ readonly delta_30d?: string | null;
354
+ };
355
+ readonly active_users_unique_addresses: {
356
+ readonly value: string | null;
357
+ readonly coverage: boolean;
358
+ readonly last_updated_at: string;
359
+ readonly delta_30d_usd?: string | null;
360
+ readonly delta_30d_pct?: string | null;
361
+ readonly delta_30d?: string | null;
362
+ };
363
+ readonly total_actions_count: number;
364
+ };
365
+ export type TrendDataPointDto = {
366
+ readonly month: string;
367
+ readonly tvl_usd: string | null;
368
+ readonly revenue_usd: string | null;
369
+ readonly active_users: string | null;
370
+ };
321
371
  export type ActionStatus = "CANCELED" | "CREATED" | "WAITING_FOR_NEXT" | "PROCESSING" | "FAILED" | "SUCCESS" | "STALE";
322
- export type ActionTypes = "STAKE" | "UNSTAKE" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
372
+ export type ActionTypes = "STAKE" | "UNSTAKE" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
323
373
  export type TransactionStatus = "NOT_FOUND" | "CREATED" | "BLOCKED" | "WAITING_FOR_SIGNATURE" | "SIGNED" | "BROADCASTED" | "PENDING" | "CONFIRMED" | "FAILED" | "SKIPPED";
324
- export type TransactionType = "SWAP" | "DEPOSIT" | "APPROVAL" | "STAKE" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "UNSTAKE" | "SPLIT" | "MERGE" | "LOCK" | "UNLOCK" | "SUPPLY" | "ADD_LIQUIDITY" | "REMOVE_LIQUIDITY" | "BRIDGE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "WITHDRAW_ALL" | "CREATE_ACCOUNT" | "REVEAL" | "MIGRATE" | "DELEGATE" | "UNDELEGATE" | "UTXO_P_TO_C_IMPORT" | "UTXO_C_TO_P_IMPORT" | "WRAP" | "UNWRAP" | "UNFREEZE_LEGACY" | "UNFREEZE_LEGACY_BANDWIDTH" | "UNFREEZE_LEGACY_ENERGY" | "UNFREEZE_BANDWIDTH" | "UNFREEZE_ENERGY" | "FREEZE_BANDWIDTH" | "FREEZE_ENERGY" | "UNDELEGATE_BANDWIDTH" | "UNDELEGATE_ENERGY" | "P2P_NODE_REQUEST" | "CREATE_EIGENPOD" | "VERIFY_WITHDRAW_CREDENTIALS" | "START_CHECKPOINT" | "VERIFY_CHECKPOINT_PROOFS" | "QUEUE_WITHDRAWALS" | "COMPLETE_QUEUED_WITHDRAWALS" | "LZ_DEPOSIT" | "LZ_WITHDRAW" | "LUGANODES_PROVISION" | "LUGANODES_EXIT_REQUEST" | "INFSTONES_PROVISION" | "INFSTONES_EXIT_REQUEST" | "INFSTONES_CLAIM_REQUEST" | "BATCH";
374
+ export type TransactionType = "SWAP" | "DEPOSIT" | "APPROVAL" | "STAKE" | "SET_OPERATOR" | "CLAIM_UNSTAKED" | "CLAIM_REWARDS" | "RESTAKE_REWARDS" | "UNSTAKE" | "SPLIT" | "MERGE" | "LOCK" | "UNLOCK" | "SUPPLY" | "ADD_LIQUIDITY" | "REMOVE_LIQUIDITY" | "BRIDGE" | "VOTE" | "REVOKE" | "RESTAKE" | "REBOND" | "WITHDRAW" | "WITHDRAW_ALL" | "CREATE_ACCOUNT" | "REVEAL" | "MIGRATE" | "DELEGATE" | "UNDELEGATE" | "UTXO_P_TO_C_IMPORT" | "UTXO_C_TO_P_IMPORT" | "WRAP" | "UNWRAP" | "UNFREEZE_LEGACY" | "UNFREEZE_LEGACY_BANDWIDTH" | "UNFREEZE_LEGACY_ENERGY" | "UNFREEZE_BANDWIDTH" | "UNFREEZE_ENERGY" | "FREEZE_BANDWIDTH" | "FREEZE_ENERGY" | "UNDELEGATE_BANDWIDTH" | "UNDELEGATE_ENERGY" | "P2P_NODE_REQUEST" | "CREATE_EIGENPOD" | "VERIFY_WITHDRAW_CREDENTIALS" | "START_CHECKPOINT" | "VERIFY_CHECKPOINT_PROOFS" | "QUEUE_WITHDRAWALS" | "COMPLETE_QUEUED_WITHDRAWALS" | "LZ_DEPOSIT" | "LZ_WITHDRAW" | "LUGANODES_PROVISION" | "LUGANODES_EXIT_REQUEST" | "INFSTONES_PROVISION" | "INFSTONES_EXIT_REQUEST" | "INFSTONES_CLAIM_REQUEST" | "BATCH";
325
375
  export type AnnotatedFieldDto = {
326
376
  readonly key: string;
327
377
  readonly value: string;
328
378
  readonly label: string;
329
379
  readonly description: string;
330
380
  };
331
- export type YieldProviders = "aave" | "anchor" | "benqi" | "compound" | "lido" | "marinade" | "sushi" | "yearn" | "ape" | "chainlink" | "pendle" | "parax" | "rocket-pool" | "stakewise" | "etherfi" | "morpho-aave" | "morpho" | "morpho-compound" | "angle" | "kelpdao" | "figment" | "kiln" | "P2P" | "everstake" | "eigenlayer" | "luganodes" | "renzo" | "infstones" | "ethena" | "upshift" | "fluid" | "idle-finance" | "gearbox" | "chorus-one" | "stakekit" | "spark" | "sommelier" | "summer-fi" | "venus" | "venus-flux" | "mantle" | "ton-whales" | "blend" | "synthetix" | "drift" | "euler" | "maple" | "sky" | "yo-protocol" | "meria" | "stakin" | "globalstake" | "simplystaking" | "coinbase" | "validation-cloud" | "curve" | "pancakeswap" | "yield-xyz" | "kamino" | "veda" | "lista" | "dolomite" | "midas";
381
+ export type YieldProviders = "aave" | "anchor" | "benqi" | "compound" | "lido" | "marinade" | "sushi" | "yearn" | "ape" | "chainlink" | "pendle" | "parax" | "rocket-pool" | "stakewise" | "etherfi" | "morpho-aave" | "morpho" | "morpho-compound" | "angle" | "kelpdao" | "figment" | "kiln" | "P2P" | "everstake" | "eigenlayer" | "luganodes" | "renzo" | "infstones" | "ethena" | "upshift" | "fluid" | "idle-finance" | "gearbox" | "chorus-one" | "stakekit" | "spark" | "sommelier" | "summer-fi" | "venus" | "venus-flux" | "mantle" | "ton-whales" | "blend" | "synthetix" | "drift" | "euler" | "maple" | "sky" | "yo-protocol" | "meria" | "stakin" | "globalstake" | "simplystaking" | "coinbase" | "validation-cloud" | "curve" | "pancakeswap" | "yield-xyz" | "kamino" | "veda" | "lista" | "dolomite" | "midas" | "dinari" | "ondo" | "superstate" | "securitize" | "nest";
332
382
  export type YieldType = "staking" | "liquid-staking" | "lending" | "restaking" | "vault" | "concentrated-liquidity-pool" | "liquidity-pool" | "real-world-asset";
333
383
  export type RewardSchedule = "block" | "hour" | "day" | "week" | "month" | "era" | "epoch" | "campaign";
334
384
  export type TimePeriodDto = {
@@ -540,6 +590,7 @@ export type CreateFeeConfigurationDtoV2 = {
540
590
  readonly managementFeeBps?: number;
541
591
  readonly performanceFeeBps?: number;
542
592
  readonly depositFeeBps?: number;
593
+ readonly chargeOnFirstDepositOnly?: boolean;
543
594
  readonly layerzeroOVaultConfig?: {};
544
595
  };
545
596
  export type FailureViewDto = {
@@ -678,12 +729,14 @@ export type CreateFeeConfigurationDto = {
678
729
  readonly managementFeeBps?: number;
679
730
  readonly performanceFeeBps?: number;
680
731
  readonly depositFeeBps?: number;
732
+ readonly chargeOnFirstDepositOnly?: boolean;
681
733
  readonly layerzeroOVaultConfig?: {};
682
734
  };
683
735
  export type UpdateFeeConfigurationDto = {
684
736
  readonly managementFeeBps?: number;
685
737
  readonly performanceFeeBps?: number;
686
738
  readonly depositFeeBps?: number;
739
+ readonly chargeOnFirstDepositOnly?: boolean | null;
687
740
  readonly layerzeroOVaultConfig?: {} | null;
688
741
  };
689
742
  export type InitiateSsoDto = {
@@ -1210,6 +1263,28 @@ export type UpdateTeamDto = {
1210
1263
  readonly name?: string;
1211
1264
  readonly isMfaEnforced?: boolean;
1212
1265
  };
1266
+ export type IntegrationRevenueRowDto = {
1267
+ readonly integration_id: string;
1268
+ readonly integration_name: string | null;
1269
+ readonly revenue_usd: string | null;
1270
+ readonly revenue_type: "estimated" | "actual" | null;
1271
+ readonly tvl_usd: string | null;
1272
+ readonly data_freshness: IntegrationFreshness;
1273
+ readonly coverage: boolean;
1274
+ readonly volume_inflow_usd: string | null;
1275
+ readonly volume_outflow_usd: string | null;
1276
+ readonly estimated_rewards_usd: string | null;
1277
+ };
1278
+ export type TopIntegrationDto = {
1279
+ readonly integration_id: string;
1280
+ readonly integration_name: string | null;
1281
+ readonly revenue_usd: string | null;
1282
+ readonly tvl_usd: string | null;
1283
+ readonly data_freshness: IntegrationFreshness;
1284
+ };
1285
+ export type KpiTrendsResponseDto = {
1286
+ readonly data_points: ReadonlyArray<TrendDataPointDto>;
1287
+ };
1213
1288
  export type TransactionStatusResponseDto = {
1214
1289
  readonly status: TransactionStatus;
1215
1290
  readonly url: string;
@@ -1285,8 +1360,10 @@ export type FeeConfigurationWithApyDto = {
1285
1360
  readonly managementFeeBps: number;
1286
1361
  readonly performanceFeeBps: number;
1287
1362
  readonly depositFeeBps: number;
1363
+ readonly chargeOnFirstDepositOnly: boolean;
1288
1364
  readonly allocatorVaultContractAddress: string | null;
1289
1365
  readonly feeWrapperContractAddress: string | null;
1366
+ readonly feeRecipientAddress: string | null;
1290
1367
  readonly status: FeeConfigurationStatus;
1291
1368
  readonly layerzeroOVaultConfig?: {} | null;
1292
1369
  readonly computedRewardRate: number;
@@ -1298,8 +1375,10 @@ export type FeeConfigurationDto = {
1298
1375
  readonly managementFeeBps: number;
1299
1376
  readonly performanceFeeBps: number;
1300
1377
  readonly depositFeeBps: number;
1378
+ readonly chargeOnFirstDepositOnly: boolean;
1301
1379
  readonly allocatorVaultContractAddress: string | null;
1302
1380
  readonly feeWrapperContractAddress: string | null;
1381
+ readonly feeRecipientAddress: string | null;
1303
1382
  readonly status: FeeConfigurationStatus;
1304
1383
  readonly layerzeroOVaultConfig?: {} | null;
1305
1384
  };
@@ -1744,6 +1823,10 @@ export type PaginatedCampaignConfigurationRequestDto = {
1744
1823
  readonly limit: number;
1745
1824
  readonly items: ReadonlyArray<CampaignConfigurationRequestDto>;
1746
1825
  };
1826
+ export type TopIntegrationsDto = {
1827
+ readonly by_revenue: ReadonlyArray<TopIntegrationDto>;
1828
+ readonly by_tvl: ReadonlyArray<TopIntegrationDto>;
1829
+ };
1747
1830
  export type YieldMetadataDto = {
1748
1831
  readonly name: string;
1749
1832
  readonly logoURI: string;
@@ -1934,6 +2017,13 @@ export type ProgrammaticPayoutBatchDetailDto = {
1934
2017
  readonly safeTransaction: SafeTransactionDetailDto;
1935
2018
  readonly recipients: PaginatedProgrammaticPayoutItemDto;
1936
2019
  };
2020
+ export type RevenueBreakdownResponseDto = {
2021
+ readonly total_earned_revenue_usd: string | null;
2022
+ readonly coverage: boolean;
2023
+ readonly last_updated_at: string;
2024
+ readonly integrations: ReadonlyArray<IntegrationRevenueRowDto>;
2025
+ readonly top_integrations: TopIntegrationsDto;
2026
+ };
1937
2027
  export type GasForNetworkResponseDto = {
1938
2028
  readonly customisable: boolean;
1939
2029
  readonly modes: GasModesDto;
@@ -2390,6 +2480,24 @@ export type ReferralControllerGetByCodeParams = {
2390
2480
  readonly "X-API-KEY"?: string;
2391
2481
  };
2392
2482
  export type ReferralControllerGetByCode200 = ReferralDto;
2483
+ export type RevenueBreakdownControllerGetRevenueSummaryParams = {
2484
+ readonly month?: string;
2485
+ readonly date_from?: string;
2486
+ readonly date_to?: string;
2487
+ readonly project_ids?: ReadonlyArray<string>;
2488
+ };
2489
+ export type RevenueBreakdownControllerGetRevenueSummary200 = RevenueBreakdownResponseDto;
2490
+ export type KpiSummaryControllerGetSummaryParams = {
2491
+ readonly month?: string;
2492
+ readonly date_from?: string;
2493
+ readonly date_to?: string;
2494
+ readonly project_ids?: ReadonlyArray<string>;
2495
+ };
2496
+ export type KpiSummaryControllerGetSummary200 = KpiSummaryResponseDto;
2497
+ export type KpiTrendsControllerGetTrendsParams = {
2498
+ readonly project_ids?: ReadonlyArray<string>;
2499
+ };
2500
+ export type KpiTrendsControllerGetTrends200 = KpiTrendsResponseDto;
2393
2501
  export type ReportEntryControllerListParams = {
2394
2502
  readonly limit?: number;
2395
2503
  readonly page?: number;
@@ -2786,7 +2894,7 @@ export type ActionControllerListParams = {
2786
2894
  readonly walletAddress: string;
2787
2895
  readonly statuses?: ReadonlyArray<"CANCELED" | "CREATED" | "WAITING_FOR_NEXT" | "PROCESSING" | "FAILED" | "SUCCESS" | "STALE">;
2788
2896
  readonly status?: "CANCELED" | "CREATED" | "WAITING_FOR_NEXT" | "PROCESSING" | "FAILED" | "SUCCESS" | "STALE";
2789
- readonly type?: "STAKE" | "UNSTAKE" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
2897
+ readonly type?: "STAKE" | "UNSTAKE" | "WITHDRAW_REQUEST" | "INSTANT_WITHDRAW" | "CLAIM_REWARDS" | "AUTO_SWEEP_UNSTAKE_REWARDS" | "AUTO_SWEEP_WITHDRAW_REWARDS" | "RESTAKE_REWARDS" | "WITHDRAW" | "WITHDRAW_ALL" | "RESTAKE" | "CLAIM_UNSTAKED" | "UNLOCK_LOCKED" | "STAKE_LOCKED" | "VOTE" | "REVOKE" | "VOTE_LOCKED" | "REVOTE" | "REBOND" | "MIGRATE" | "VERIFY_WITHDRAW_CREDENTIALS" | "DELEGATE";
2790
2898
  readonly sort?: "createdAtAsc" | "createdAtDesc";
2791
2899
  readonly network?: Networks;
2792
2900
  readonly limit?: number;
@@ -3460,7 +3568,7 @@ export type YieldControllerCreateFeeConfiguration429 = StakeKitErrorDto;
3460
3568
  export type YieldControllerCreateFeeConfiguration500 = StakeKitErrorDto;
3461
3569
  export type YieldControllerCreateFeeConfiguration503 = StakeKitErrorDto;
3462
3570
  export type YieldV2ControllerYieldsParams = {
3463
- readonly providerId?: "aave" | "anchor" | "benqi" | "compound" | "lido" | "marinade" | "sushi" | "yearn" | "ape" | "chainlink" | "pendle" | "parax" | "rocket-pool" | "stakewise" | "etherfi" | "morpho-aave" | "morpho" | "morpho-compound" | "angle" | "kelpdao" | "figment" | "kiln" | "P2P" | "everstake" | "eigenlayer" | "luganodes" | "renzo" | "infstones" | "ethena" | "upshift" | "fluid" | "idle-finance" | "gearbox" | "chorus-one" | "stakekit" | "spark" | "sommelier" | "summer-fi" | "venus" | "venus-flux" | "mantle" | "ton-whales" | "blend" | "synthetix" | "drift" | "euler" | "maple" | "sky" | "yo-protocol" | "meria" | "stakin" | "globalstake" | "simplystaking" | "coinbase" | "validation-cloud" | "curve" | "pancakeswap" | "yield-xyz" | "kamino" | "veda" | "lista" | "dolomite" | "midas";
3571
+ readonly providerId?: "aave" | "anchor" | "benqi" | "compound" | "lido" | "marinade" | "sushi" | "yearn" | "ape" | "chainlink" | "pendle" | "parax" | "rocket-pool" | "stakewise" | "etherfi" | "morpho-aave" | "morpho" | "morpho-compound" | "angle" | "kelpdao" | "figment" | "kiln" | "P2P" | "everstake" | "eigenlayer" | "luganodes" | "renzo" | "infstones" | "ethena" | "upshift" | "fluid" | "idle-finance" | "gearbox" | "chorus-one" | "stakekit" | "spark" | "sommelier" | "summer-fi" | "venus" | "venus-flux" | "mantle" | "ton-whales" | "blend" | "synthetix" | "drift" | "euler" | "maple" | "sky" | "yo-protocol" | "meria" | "stakin" | "globalstake" | "simplystaking" | "coinbase" | "validation-cloud" | "curve" | "pancakeswap" | "yield-xyz" | "kamino" | "veda" | "lista" | "dolomite" | "midas" | "dinari" | "ondo" | "superstate" | "securitize" | "nest";
3464
3572
  readonly inputToken?: string;
3465
3573
  readonly enterStatus?: boolean;
3466
3574
  readonly preferredValidatorsOnly?: boolean;
@@ -3564,8 +3672,10 @@ export type YieldV2ControllerGetFeeConfigurations200 = {
3564
3672
  readonly managementFeeBps: number;
3565
3673
  readonly performanceFeeBps: number;
3566
3674
  readonly depositFeeBps: number;
3675
+ readonly chargeOnFirstDepositOnly: boolean;
3567
3676
  readonly allocatorVaultContractAddress: string | null;
3568
3677
  readonly feeWrapperContractAddress: string | null;
3678
+ readonly feeRecipientAddress: string | null;
3569
3679
  readonly status: FeeConfigurationStatus;
3570
3680
  readonly layerzeroOVaultConfig?: {} | null;
3571
3681
  }>;
@@ -3611,8 +3721,10 @@ export type FeeConfigurationControllerGet200 = {
3611
3721
  readonly managementFeeBps: number;
3612
3722
  readonly performanceFeeBps: number;
3613
3723
  readonly depositFeeBps: number;
3724
+ readonly chargeOnFirstDepositOnly: boolean;
3614
3725
  readonly allocatorVaultContractAddress: string | null;
3615
3726
  readonly feeWrapperContractAddress: string | null;
3727
+ readonly feeRecipientAddress: string | null;
3616
3728
  readonly status: FeeConfigurationStatus;
3617
3729
  readonly layerzeroOVaultConfig?: {} | null;
3618
3730
  }>;
@@ -3636,8 +3748,10 @@ export type ProgrammaticFeeConfigurationControllerGet200 = {
3636
3748
  readonly managementFeeBps: number;
3637
3749
  readonly performanceFeeBps: number;
3638
3750
  readonly depositFeeBps: number;
3751
+ readonly chargeOnFirstDepositOnly: boolean;
3639
3752
  readonly allocatorVaultContractAddress: string | null;
3640
3753
  readonly feeWrapperContractAddress: string | null;
3754
+ readonly feeRecipientAddress: string | null;
3641
3755
  readonly status: FeeConfigurationStatus;
3642
3756
  readonly layerzeroOVaultConfig?: {} | null;
3643
3757
  }>;
@@ -4409,6 +4523,27 @@ export interface LegacyApi {
4409
4523
  readonly params?: ReferralControllerGetByCodeParams | undefined;
4410
4524
  readonly config?: Config | undefined;
4411
4525
  } | undefined) => Effect.Effect<WithOptionalResponse<ReferralControllerGetByCode200, Config>, HttpClientError.HttpClientError>;
4526
+ /**
4527
+ * Aggregate revenue, per-integration breakdown, and top integrations for the selected period. Supports monthly or explicit date-range filtering.
4528
+ */
4529
+ readonly RevenueBreakdownControllerGetRevenueSummary: <Config extends OperationConfig>(teamId: string, options: {
4530
+ readonly params?: RevenueBreakdownControllerGetRevenueSummaryParams | undefined;
4531
+ readonly config?: Config | undefined;
4532
+ } | undefined) => Effect.Effect<WithOptionalResponse<RevenueBreakdownControllerGetRevenueSummary200, Config>, HttpClientError.HttpClientError>;
4533
+ /**
4534
+ * Four headline KPIs (revenue, volume, TVL, active users) for the selected period. Metrics without pipeline support return coverage: false and value: null.
4535
+ */
4536
+ readonly KpiSummaryControllerGetSummary: <Config extends OperationConfig>(teamId: string, options: {
4537
+ readonly params?: KpiSummaryControllerGetSummaryParams | undefined;
4538
+ readonly config?: Config | undefined;
4539
+ } | undefined) => Effect.Effect<WithOptionalResponse<KpiSummaryControllerGetSummary200, Config>, HttpClientError.HttpClientError>;
4540
+ /**
4541
+ * Returns 12 monthly data points ordered oldest to newest, each containing TVL, revenue, and active-user counts. Null values indicate missing pipeline data for that month.
4542
+ */
4543
+ readonly KpiTrendsControllerGetTrends: <Config extends OperationConfig>(teamId: string, options: {
4544
+ readonly params?: KpiTrendsControllerGetTrendsParams | undefined;
4545
+ readonly config?: Config | undefined;
4546
+ } | undefined) => Effect.Effect<WithOptionalResponse<KpiTrendsControllerGetTrends200, Config>, HttpClientError.HttpClientError>;
4412
4547
  readonly ReportEntryControllerList: <Config extends OperationConfig>(teamId: string, options: {
4413
4548
  readonly params?: ReportEntryControllerListParams | undefined;
4414
4549
  readonly config?: Config | undefined;