@crypticdot/defituna-api 4.3.1 → 4.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -41,6 +41,7 @@ __export(index_exports, {
41
41
  TunaLpPositionRebalance: () => TunaLpPositionRebalance,
42
42
  TunaLpPositionTriggerOrderType: () => TunaLpPositionTriggerOrderType,
43
43
  TunaLpPositionsActionType: () => TunaLpPositionsActionType,
44
+ TunaPositionDtoLockType: () => TunaPositionDtoLockType,
44
45
  TunaPositionDtoState: () => TunaPositionDtoState,
45
46
  TunaPositionMarketMaker: () => TunaPositionMarketMaker,
46
47
  TunaPositionPoolToken: () => TunaPositionPoolToken,
@@ -300,6 +301,7 @@ __export(index_exports, {
300
301
  zTunaLpPositionsActionType: () => zTunaLpPositionsActionType,
301
302
  zTunaLpPositionsStats: () => zTunaLpPositionsStats,
302
303
  zTunaPositionDto: () => zTunaPositionDto,
304
+ zTunaPositionDtoLockType: () => zTunaPositionDtoLockType,
303
305
  zTunaPositionDtoState: () => zTunaPositionDtoState,
304
306
  zTunaPositionMarketMaker: () => zTunaPositionMarketMaker,
305
307
  zTunaPositionPoolToken: () => zTunaPositionPoolToken,
@@ -932,6 +934,12 @@ var tunaPositionDtoSchemaResponseTransformer = (data) => {
932
934
  data.leftoversA = tokenAmountWithUsdSchemaResponseTransformer(data.leftoversA);
933
935
  data.leftoversB = tokenAmountWithUsdSchemaResponseTransformer(data.leftoversB);
934
936
  data.liquidity = u128DtoSchemaResponseTransformer(data.liquidity);
937
+ if (data.lockedAtBlockTime) {
938
+ data.lockedAtBlockTime = new Date(data.lockedAtBlockTime);
939
+ }
940
+ if (data.lockedAtSlot) {
941
+ data.lockedAtSlot = u64DtoSchemaResponseTransformer(data.lockedAtSlot);
942
+ }
935
943
  data.openedAt = new Date(data.openedAt);
936
944
  data.pnlA = tunaPositionTokenPnlSchemaResponseTransformer(data.pnlA);
937
945
  data.pnlB = tunaPositionTokenPnlSchemaResponseTransformer(data.pnlB);
@@ -1105,6 +1113,7 @@ var TunaLpPositionsActionType = {
1105
1113
  SET_FLAGS: "set_flags",
1106
1114
  SET_REBALANCE_THRESHOLD: "set_rebalance_threshold"
1107
1115
  };
1116
+ var TunaPositionDtoLockType = { PERMANENT: "permanent" };
1108
1117
  var TunaPositionDtoState = {
1109
1118
  OPEN: "open",
1110
1119
  LIQUIDATION_WITHDRAW: "liquidation_withdraw",
@@ -9758,6 +9767,7 @@ var zTunaLpPositionsStats = object({
9758
9767
  time: preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime()),
9759
9768
  totalCount: int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
9760
9769
  });
9770
+ var zTunaPositionDtoLockType = _enum(["permanent"]);
9761
9771
  var zTunaPositionDtoState = _enum([
9762
9772
  "open",
9763
9773
  "liquidation_withdraw",
@@ -10214,6 +10224,18 @@ var zTunaPositionDto = object({
10214
10224
  liquidationPriceLower: number2(),
10215
10225
  liquidationPriceUpper: number2(),
10216
10226
  liquidity: zU128Dto,
10227
+ lockType: optional(union([
10228
+ _null3(),
10229
+ zTunaPositionDtoLockType
10230
+ ])),
10231
+ lockedAtBlockTime: optional(union([
10232
+ preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime()),
10233
+ _null3()
10234
+ ])),
10235
+ lockedAtSlot: optional(union([
10236
+ _null3(),
10237
+ zU64Dto
10238
+ ])),
10217
10239
  lowerLimitOrderPrice: number2(),
10218
10240
  market: zPubkeyDto,
10219
10241
  marketMaker: zTunaPositionMarketMaker,
@@ -12013,6 +12035,7 @@ async function unwrap(promise2) {
12013
12035
  TunaLpPositionRebalance,
12014
12036
  TunaLpPositionTriggerOrderType,
12015
12037
  TunaLpPositionsActionType,
12038
+ TunaPositionDtoLockType,
12016
12039
  TunaPositionDtoState,
12017
12040
  TunaPositionMarketMaker,
12018
12041
  TunaPositionPoolToken,
@@ -12272,6 +12295,7 @@ async function unwrap(promise2) {
12272
12295
  zTunaLpPositionsActionType,
12273
12296
  zTunaLpPositionsStats,
12274
12297
  zTunaPositionDto,
12298
+ zTunaPositionDtoLockType,
12275
12299
  zTunaPositionDtoState,
12276
12300
  zTunaPositionMarketMaker,
12277
12301
  zTunaPositionPoolToken,
package/dist/index.d.cts CHANGED
@@ -1587,6 +1587,12 @@ type TunaPositionDto = {
1587
1587
  liquidationPriceLower: number;
1588
1588
  liquidationPriceUpper: number;
1589
1589
  liquidity: U128Dto;
1590
+ lockType?: null | TunaPositionDtoLockType;
1591
+ /**
1592
+ * When positon was locked
1593
+ */
1594
+ lockedAtBlockTime?: Date | null;
1595
+ lockedAtSlot?: null | U64Dto;
1590
1596
  lowerLimitOrderPrice: number;
1591
1597
  market: PubkeyDto;
1592
1598
  marketMaker: TunaPositionMarketMaker;
@@ -1612,6 +1618,10 @@ type TunaPositionDto = {
1612
1618
  yieldA: TokenAmountWithUsd;
1613
1619
  yieldB: TokenAmountWithUsd;
1614
1620
  };
1621
+ declare const TunaPositionDtoLockType: {
1622
+ readonly PERMANENT: "permanent";
1623
+ };
1624
+ type TunaPositionDtoLockType = typeof TunaPositionDtoLockType[keyof typeof TunaPositionDtoLockType];
1615
1625
  declare const TunaPositionDtoState: {
1616
1626
  readonly OPEN: "open";
1617
1627
  readonly LIQUIDATION_WITHDRAW: "liquidation_withdraw";
@@ -4635,6 +4645,9 @@ declare const zTunaLpPositionsStats: z.ZodObject<{
4635
4645
  time: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
4636
4646
  totalCount: z.ZodInt;
4637
4647
  }, z.core.$strip>;
4648
+ declare const zTunaPositionDtoLockType: z.ZodEnum<{
4649
+ permanent: "permanent";
4650
+ }>;
4638
4651
  declare const zTunaPositionDtoState: z.ZodEnum<{
4639
4652
  open: "open";
4640
4653
  liquidation_withdraw: "liquidation_withdraw";
@@ -6740,6 +6753,11 @@ declare const zTunaPositionDto: z.ZodObject<{
6740
6753
  liquidationPriceLower: z.ZodNumber;
6741
6754
  liquidationPriceUpper: z.ZodNumber;
6742
6755
  liquidity: z.ZodString;
6756
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6757
+ permanent: "permanent";
6758
+ }>]>>;
6759
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6760
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6743
6761
  lowerLimitOrderPrice: z.ZodNumber;
6744
6762
  market: z.ZodString;
6745
6763
  marketMaker: z.ZodEnum<{
@@ -6855,6 +6873,11 @@ declare const zLpPositionResponse: z.ZodObject<{
6855
6873
  liquidationPriceLower: z.ZodNumber;
6856
6874
  liquidationPriceUpper: z.ZodNumber;
6857
6875
  liquidity: z.ZodString;
6876
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6877
+ permanent: "permanent";
6878
+ }>]>>;
6879
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6880
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6858
6881
  lowerLimitOrderPrice: z.ZodNumber;
6859
6882
  market: z.ZodString;
6860
6883
  marketMaker: z.ZodEnum<{
@@ -7051,6 +7074,11 @@ declare const zLpPositionsListResponse: z.ZodObject<{
7051
7074
  liquidationPriceLower: z.ZodNumber;
7052
7075
  liquidationPriceUpper: z.ZodNumber;
7053
7076
  liquidity: z.ZodString;
7077
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
7078
+ permanent: "permanent";
7079
+ }>]>>;
7080
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
7081
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
7054
7082
  lowerLimitOrderPrice: z.ZodNumber;
7055
7083
  market: z.ZodString;
7056
7084
  marketMaker: z.ZodEnum<{
@@ -8215,6 +8243,11 @@ declare const zSnapshot: z.ZodObject<{
8215
8243
  liquidationPriceLower: z.ZodNumber;
8216
8244
  liquidationPriceUpper: z.ZodNumber;
8217
8245
  liquidity: z.ZodString;
8246
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8247
+ permanent: "permanent";
8248
+ }>]>>;
8249
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8250
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8218
8251
  lowerLimitOrderPrice: z.ZodNumber;
8219
8252
  market: z.ZodString;
8220
8253
  marketMaker: z.ZodEnum<{
@@ -8537,6 +8570,11 @@ declare const zSnapshotContainer: z.ZodObject<{
8537
8570
  liquidationPriceLower: z.ZodNumber;
8538
8571
  liquidationPriceUpper: z.ZodNumber;
8539
8572
  liquidity: z.ZodString;
8573
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8574
+ permanent: "permanent";
8575
+ }>]>>;
8576
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8577
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8540
8578
  lowerLimitOrderPrice: z.ZodNumber;
8541
8579
  market: z.ZodString;
8542
8580
  marketMaker: z.ZodEnum<{
@@ -9164,6 +9202,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
9164
9202
  liquidationPriceLower: z.ZodNumber;
9165
9203
  liquidationPriceUpper: z.ZodNumber;
9166
9204
  liquidity: z.ZodString;
9205
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
9206
+ permanent: "permanent";
9207
+ }>]>>;
9208
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
9209
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
9167
9210
  lowerLimitOrderPrice: z.ZodNumber;
9168
9211
  market: z.ZodString;
9169
9212
  marketMaker: z.ZodEnum<{
@@ -10386,6 +10429,11 @@ declare const zSseResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
10386
10429
  liquidationPriceLower: z.ZodNumber;
10387
10430
  liquidationPriceUpper: z.ZodNumber;
10388
10431
  liquidity: z.ZodString;
10432
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
10433
+ permanent: "permanent";
10434
+ }>]>>;
10435
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
10436
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
10389
10437
  lowerLimitOrderPrice: z.ZodNumber;
10390
10438
  market: z.ZodString;
10391
10439
  marketMaker: z.ZodEnum<{
@@ -12216,6 +12264,11 @@ declare const zSseResponse2: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<
12216
12264
  liquidationPriceLower: z.ZodNumber;
12217
12265
  liquidationPriceUpper: z.ZodNumber;
12218
12266
  liquidity: z.ZodString;
12267
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
12268
+ permanent: "permanent";
12269
+ }>]>>;
12270
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
12271
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
12219
12272
  lowerLimitOrderPrice: z.ZodNumber;
12220
12273
  market: z.ZodString;
12221
12274
  marketMaker: z.ZodEnum<{
@@ -14123,6 +14176,11 @@ declare const zGetTunaPositionsResponse: z.ZodObject<{
14123
14176
  liquidationPriceLower: z.ZodNumber;
14124
14177
  liquidationPriceUpper: z.ZodNumber;
14125
14178
  liquidity: z.ZodString;
14179
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14180
+ permanent: "permanent";
14181
+ }>]>>;
14182
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14183
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14126
14184
  lowerLimitOrderPrice: z.ZodNumber;
14127
14185
  market: z.ZodString;
14128
14186
  marketMaker: z.ZodEnum<{
@@ -14330,6 +14388,11 @@ declare const zGetTunaPositionResponse: z.ZodObject<{
14330
14388
  liquidationPriceLower: z.ZodNumber;
14331
14389
  liquidationPriceUpper: z.ZodNumber;
14332
14390
  liquidity: z.ZodString;
14391
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14392
+ permanent: "permanent";
14393
+ }>]>>;
14394
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14395
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14333
14396
  lowerLimitOrderPrice: z.ZodNumber;
14334
14397
  market: z.ZodString;
14335
14398
  marketMaker: z.ZodEnum<{
@@ -14606,4 +14669,4 @@ declare class TunaBackendSdkError<TCause = unknown> extends Error {
14606
14669
  declare const tunaSdkErrorInterceptor: (error: unknown, response?: Response) => TunaBackendSdkError<unknown>;
14607
14670
  declare const isTunaSdkError: <TCause = unknown>(error: unknown) => error is TunaBackendSdkError<TCause>;
14608
14671
 
14609
- export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
14672
+ export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoLockType, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoLockType, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
package/dist/index.d.ts CHANGED
@@ -1587,6 +1587,12 @@ type TunaPositionDto = {
1587
1587
  liquidationPriceLower: number;
1588
1588
  liquidationPriceUpper: number;
1589
1589
  liquidity: U128Dto;
1590
+ lockType?: null | TunaPositionDtoLockType;
1591
+ /**
1592
+ * When positon was locked
1593
+ */
1594
+ lockedAtBlockTime?: Date | null;
1595
+ lockedAtSlot?: null | U64Dto;
1590
1596
  lowerLimitOrderPrice: number;
1591
1597
  market: PubkeyDto;
1592
1598
  marketMaker: TunaPositionMarketMaker;
@@ -1612,6 +1618,10 @@ type TunaPositionDto = {
1612
1618
  yieldA: TokenAmountWithUsd;
1613
1619
  yieldB: TokenAmountWithUsd;
1614
1620
  };
1621
+ declare const TunaPositionDtoLockType: {
1622
+ readonly PERMANENT: "permanent";
1623
+ };
1624
+ type TunaPositionDtoLockType = typeof TunaPositionDtoLockType[keyof typeof TunaPositionDtoLockType];
1615
1625
  declare const TunaPositionDtoState: {
1616
1626
  readonly OPEN: "open";
1617
1627
  readonly LIQUIDATION_WITHDRAW: "liquidation_withdraw";
@@ -4635,6 +4645,9 @@ declare const zTunaLpPositionsStats: z.ZodObject<{
4635
4645
  time: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
4636
4646
  totalCount: z.ZodInt;
4637
4647
  }, z.core.$strip>;
4648
+ declare const zTunaPositionDtoLockType: z.ZodEnum<{
4649
+ permanent: "permanent";
4650
+ }>;
4638
4651
  declare const zTunaPositionDtoState: z.ZodEnum<{
4639
4652
  open: "open";
4640
4653
  liquidation_withdraw: "liquidation_withdraw";
@@ -6740,6 +6753,11 @@ declare const zTunaPositionDto: z.ZodObject<{
6740
6753
  liquidationPriceLower: z.ZodNumber;
6741
6754
  liquidationPriceUpper: z.ZodNumber;
6742
6755
  liquidity: z.ZodString;
6756
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6757
+ permanent: "permanent";
6758
+ }>]>>;
6759
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6760
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6743
6761
  lowerLimitOrderPrice: z.ZodNumber;
6744
6762
  market: z.ZodString;
6745
6763
  marketMaker: z.ZodEnum<{
@@ -6855,6 +6873,11 @@ declare const zLpPositionResponse: z.ZodObject<{
6855
6873
  liquidationPriceLower: z.ZodNumber;
6856
6874
  liquidationPriceUpper: z.ZodNumber;
6857
6875
  liquidity: z.ZodString;
6876
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6877
+ permanent: "permanent";
6878
+ }>]>>;
6879
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6880
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6858
6881
  lowerLimitOrderPrice: z.ZodNumber;
6859
6882
  market: z.ZodString;
6860
6883
  marketMaker: z.ZodEnum<{
@@ -7051,6 +7074,11 @@ declare const zLpPositionsListResponse: z.ZodObject<{
7051
7074
  liquidationPriceLower: z.ZodNumber;
7052
7075
  liquidationPriceUpper: z.ZodNumber;
7053
7076
  liquidity: z.ZodString;
7077
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
7078
+ permanent: "permanent";
7079
+ }>]>>;
7080
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
7081
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
7054
7082
  lowerLimitOrderPrice: z.ZodNumber;
7055
7083
  market: z.ZodString;
7056
7084
  marketMaker: z.ZodEnum<{
@@ -8215,6 +8243,11 @@ declare const zSnapshot: z.ZodObject<{
8215
8243
  liquidationPriceLower: z.ZodNumber;
8216
8244
  liquidationPriceUpper: z.ZodNumber;
8217
8245
  liquidity: z.ZodString;
8246
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8247
+ permanent: "permanent";
8248
+ }>]>>;
8249
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8250
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8218
8251
  lowerLimitOrderPrice: z.ZodNumber;
8219
8252
  market: z.ZodString;
8220
8253
  marketMaker: z.ZodEnum<{
@@ -8537,6 +8570,11 @@ declare const zSnapshotContainer: z.ZodObject<{
8537
8570
  liquidationPriceLower: z.ZodNumber;
8538
8571
  liquidationPriceUpper: z.ZodNumber;
8539
8572
  liquidity: z.ZodString;
8573
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8574
+ permanent: "permanent";
8575
+ }>]>>;
8576
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8577
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8540
8578
  lowerLimitOrderPrice: z.ZodNumber;
8541
8579
  market: z.ZodString;
8542
8580
  marketMaker: z.ZodEnum<{
@@ -9164,6 +9202,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
9164
9202
  liquidationPriceLower: z.ZodNumber;
9165
9203
  liquidationPriceUpper: z.ZodNumber;
9166
9204
  liquidity: z.ZodString;
9205
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
9206
+ permanent: "permanent";
9207
+ }>]>>;
9208
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
9209
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
9167
9210
  lowerLimitOrderPrice: z.ZodNumber;
9168
9211
  market: z.ZodString;
9169
9212
  marketMaker: z.ZodEnum<{
@@ -10386,6 +10429,11 @@ declare const zSseResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
10386
10429
  liquidationPriceLower: z.ZodNumber;
10387
10430
  liquidationPriceUpper: z.ZodNumber;
10388
10431
  liquidity: z.ZodString;
10432
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
10433
+ permanent: "permanent";
10434
+ }>]>>;
10435
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
10436
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
10389
10437
  lowerLimitOrderPrice: z.ZodNumber;
10390
10438
  market: z.ZodString;
10391
10439
  marketMaker: z.ZodEnum<{
@@ -12216,6 +12264,11 @@ declare const zSseResponse2: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<
12216
12264
  liquidationPriceLower: z.ZodNumber;
12217
12265
  liquidationPriceUpper: z.ZodNumber;
12218
12266
  liquidity: z.ZodString;
12267
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
12268
+ permanent: "permanent";
12269
+ }>]>>;
12270
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
12271
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
12219
12272
  lowerLimitOrderPrice: z.ZodNumber;
12220
12273
  market: z.ZodString;
12221
12274
  marketMaker: z.ZodEnum<{
@@ -14123,6 +14176,11 @@ declare const zGetTunaPositionsResponse: z.ZodObject<{
14123
14176
  liquidationPriceLower: z.ZodNumber;
14124
14177
  liquidationPriceUpper: z.ZodNumber;
14125
14178
  liquidity: z.ZodString;
14179
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14180
+ permanent: "permanent";
14181
+ }>]>>;
14182
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14183
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14126
14184
  lowerLimitOrderPrice: z.ZodNumber;
14127
14185
  market: z.ZodString;
14128
14186
  marketMaker: z.ZodEnum<{
@@ -14330,6 +14388,11 @@ declare const zGetTunaPositionResponse: z.ZodObject<{
14330
14388
  liquidationPriceLower: z.ZodNumber;
14331
14389
  liquidationPriceUpper: z.ZodNumber;
14332
14390
  liquidity: z.ZodString;
14391
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14392
+ permanent: "permanent";
14393
+ }>]>>;
14394
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14395
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14333
14396
  lowerLimitOrderPrice: z.ZodNumber;
14334
14397
  market: z.ZodString;
14335
14398
  marketMaker: z.ZodEnum<{
@@ -14606,4 +14669,4 @@ declare class TunaBackendSdkError<TCause = unknown> extends Error {
14606
14669
  declare const tunaSdkErrorInterceptor: (error: unknown, response?: Response) => TunaBackendSdkError<unknown>;
14607
14670
  declare const isTunaSdkError: <TCause = unknown>(error: unknown) => error is TunaBackendSdkError<TCause>;
14608
14671
 
14609
- export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
14672
+ export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoLockType, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoLockType, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
package/dist/index.js CHANGED
@@ -606,6 +606,12 @@ var tunaPositionDtoSchemaResponseTransformer = (data) => {
606
606
  data.leftoversA = tokenAmountWithUsdSchemaResponseTransformer(data.leftoversA);
607
607
  data.leftoversB = tokenAmountWithUsdSchemaResponseTransformer(data.leftoversB);
608
608
  data.liquidity = u128DtoSchemaResponseTransformer(data.liquidity);
609
+ if (data.lockedAtBlockTime) {
610
+ data.lockedAtBlockTime = new Date(data.lockedAtBlockTime);
611
+ }
612
+ if (data.lockedAtSlot) {
613
+ data.lockedAtSlot = u64DtoSchemaResponseTransformer(data.lockedAtSlot);
614
+ }
609
615
  data.openedAt = new Date(data.openedAt);
610
616
  data.pnlA = tunaPositionTokenPnlSchemaResponseTransformer(data.pnlA);
611
617
  data.pnlB = tunaPositionTokenPnlSchemaResponseTransformer(data.pnlB);
@@ -779,6 +785,7 @@ var TunaLpPositionsActionType = {
779
785
  SET_FLAGS: "set_flags",
780
786
  SET_REBALANCE_THRESHOLD: "set_rebalance_threshold"
781
787
  };
788
+ var TunaPositionDtoLockType = { PERMANENT: "permanent" };
782
789
  var TunaPositionDtoState = {
783
790
  OPEN: "open",
784
791
  LIQUIDATION_WITHDRAW: "liquidation_withdraw",
@@ -9432,6 +9439,7 @@ var zTunaLpPositionsStats = object({
9432
9439
  time: preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime()),
9433
9440
  totalCount: int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
9434
9441
  });
9442
+ var zTunaPositionDtoLockType = _enum(["permanent"]);
9435
9443
  var zTunaPositionDtoState = _enum([
9436
9444
  "open",
9437
9445
  "liquidation_withdraw",
@@ -9888,6 +9896,18 @@ var zTunaPositionDto = object({
9888
9896
  liquidationPriceLower: number2(),
9889
9897
  liquidationPriceUpper: number2(),
9890
9898
  liquidity: zU128Dto,
9899
+ lockType: optional(union([
9900
+ _null3(),
9901
+ zTunaPositionDtoLockType
9902
+ ])),
9903
+ lockedAtBlockTime: optional(union([
9904
+ preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime()),
9905
+ _null3()
9906
+ ])),
9907
+ lockedAtSlot: optional(union([
9908
+ _null3(),
9909
+ zU64Dto
9910
+ ])),
9891
9911
  lowerLimitOrderPrice: number2(),
9892
9912
  market: zPubkeyDto,
9893
9913
  marketMaker: zTunaPositionMarketMaker,
@@ -11686,6 +11706,7 @@ export {
11686
11706
  TunaLpPositionRebalance,
11687
11707
  TunaLpPositionTriggerOrderType,
11688
11708
  TunaLpPositionsActionType,
11709
+ TunaPositionDtoLockType,
11689
11710
  TunaPositionDtoState,
11690
11711
  TunaPositionMarketMaker,
11691
11712
  TunaPositionPoolToken,
@@ -11945,6 +11966,7 @@ export {
11945
11966
  zTunaLpPositionsActionType,
11946
11967
  zTunaLpPositionsStats,
11947
11968
  zTunaPositionDto,
11969
+ zTunaPositionDtoLockType,
11948
11970
  zTunaPositionDtoState,
11949
11971
  zTunaPositionMarketMaker,
11950
11972
  zTunaPositionPoolToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",