@crypticdot/defituna-api 4.3.1 → 4.3.3

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,
@@ -10553,7 +10575,9 @@ var zGetLpSpotLeaderboardResponse = object({
10553
10575
  var zGetMarketsData = object({
10554
10576
  body: optional(never()),
10555
10577
  path: optional(never()),
10556
- query: optional(never())
10578
+ query: optional(object({
10579
+ isPermissionless: optional(int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
10580
+ }))
10557
10581
  });
10558
10582
  var zGetMarketsResponse = object({
10559
10583
  data: zMarketsListResponse
@@ -11165,13 +11189,15 @@ var _TunaBackendSdk = class _TunaBackendSdk extends HeyApiClient {
11165
11189
  /**
11166
11190
  * Request all markets
11167
11191
  */
11168
- getMarkets(options) {
11192
+ getMarkets(parameters, options) {
11193
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "isPermissionless" }] }]);
11169
11194
  return (options?.client ?? this.client).get({
11170
11195
  requestValidator: async (data) => await zGetMarketsData.parseAsync(data),
11171
11196
  responseTransformer: getMarketsResponseTransformer,
11172
11197
  responseValidator: async (data) => await zGetMarketsResponse.parseAsync(data),
11173
11198
  url: "/v1/markets",
11174
- ...options
11199
+ ...options,
11200
+ ...params
11175
11201
  });
11176
11202
  }
11177
11203
  /**
@@ -12013,6 +12039,7 @@ async function unwrap(promise2) {
12013
12039
  TunaLpPositionRebalance,
12014
12040
  TunaLpPositionTriggerOrderType,
12015
12041
  TunaLpPositionsActionType,
12042
+ TunaPositionDtoLockType,
12016
12043
  TunaPositionDtoState,
12017
12044
  TunaPositionMarketMaker,
12018
12045
  TunaPositionPoolToken,
@@ -12272,6 +12299,7 @@ async function unwrap(promise2) {
12272
12299
  zTunaLpPositionsActionType,
12273
12300
  zTunaLpPositionsStats,
12274
12301
  zTunaPositionDto,
12302
+ zTunaPositionDtoLockType,
12275
12303
  zTunaPositionDtoState,
12276
12304
  zTunaPositionMarketMaker,
12277
12305
  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";
@@ -1830,10 +1840,17 @@ type GetLpSpotLeaderboardResponse = GetLpSpotLeaderboardResponses[keyof GetLpSpo
1830
1840
  type GetMarketsData = {
1831
1841
  body?: never;
1832
1842
  path?: never;
1833
- query?: never;
1843
+ query?: {
1844
+ /**
1845
+ * Filter by market permissionless flag: `0` = false, `1` = true.
1846
+ */
1847
+ isPermissionless?: number;
1848
+ };
1834
1849
  url: '/v1/markets';
1835
1850
  };
1836
1851
  type GetMarketsErrors = {
1852
+ 400: BadRequestErrorCodeErrorBody;
1853
+ 422: ValidationErrorCodeErrorBody;
1837
1854
  500: InternalErrorCodeErrorBody;
1838
1855
  };
1839
1856
  type GetMarketsError = GetMarketsErrors[keyof GetMarketsErrors];
@@ -3098,7 +3115,9 @@ declare class TunaBackendSdk extends HeyApiClient {
3098
3115
  /**
3099
3116
  * Request all markets
3100
3117
  */
3101
- getMarkets<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetMarketsResponses, GetMarketsErrors, ThrowOnError, "fields">;
3118
+ getMarkets<ThrowOnError extends boolean = false>(parameters?: {
3119
+ isPermissionless?: number;
3120
+ }, options?: Options<never, ThrowOnError>): RequestResult<GetMarketsResponses, GetMarketsErrors, ThrowOnError, "fields">;
3102
3121
  /**
3103
3122
  * Request market data
3104
3123
  */
@@ -4635,6 +4654,9 @@ declare const zTunaLpPositionsStats: z.ZodObject<{
4635
4654
  time: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
4636
4655
  totalCount: z.ZodInt;
4637
4656
  }, z.core.$strip>;
4657
+ declare const zTunaPositionDtoLockType: z.ZodEnum<{
4658
+ permanent: "permanent";
4659
+ }>;
4638
4660
  declare const zTunaPositionDtoState: z.ZodEnum<{
4639
4661
  open: "open";
4640
4662
  liquidation_withdraw: "liquidation_withdraw";
@@ -6740,6 +6762,11 @@ declare const zTunaPositionDto: z.ZodObject<{
6740
6762
  liquidationPriceLower: z.ZodNumber;
6741
6763
  liquidationPriceUpper: z.ZodNumber;
6742
6764
  liquidity: z.ZodString;
6765
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6766
+ permanent: "permanent";
6767
+ }>]>>;
6768
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6769
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6743
6770
  lowerLimitOrderPrice: z.ZodNumber;
6744
6771
  market: z.ZodString;
6745
6772
  marketMaker: z.ZodEnum<{
@@ -6855,6 +6882,11 @@ declare const zLpPositionResponse: z.ZodObject<{
6855
6882
  liquidationPriceLower: z.ZodNumber;
6856
6883
  liquidationPriceUpper: z.ZodNumber;
6857
6884
  liquidity: z.ZodString;
6885
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6886
+ permanent: "permanent";
6887
+ }>]>>;
6888
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6889
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6858
6890
  lowerLimitOrderPrice: z.ZodNumber;
6859
6891
  market: z.ZodString;
6860
6892
  marketMaker: z.ZodEnum<{
@@ -7051,6 +7083,11 @@ declare const zLpPositionsListResponse: z.ZodObject<{
7051
7083
  liquidationPriceLower: z.ZodNumber;
7052
7084
  liquidationPriceUpper: z.ZodNumber;
7053
7085
  liquidity: z.ZodString;
7086
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
7087
+ permanent: "permanent";
7088
+ }>]>>;
7089
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
7090
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
7054
7091
  lowerLimitOrderPrice: z.ZodNumber;
7055
7092
  market: z.ZodString;
7056
7093
  marketMaker: z.ZodEnum<{
@@ -8215,6 +8252,11 @@ declare const zSnapshot: z.ZodObject<{
8215
8252
  liquidationPriceLower: z.ZodNumber;
8216
8253
  liquidationPriceUpper: z.ZodNumber;
8217
8254
  liquidity: z.ZodString;
8255
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8256
+ permanent: "permanent";
8257
+ }>]>>;
8258
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8259
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8218
8260
  lowerLimitOrderPrice: z.ZodNumber;
8219
8261
  market: z.ZodString;
8220
8262
  marketMaker: z.ZodEnum<{
@@ -8537,6 +8579,11 @@ declare const zSnapshotContainer: z.ZodObject<{
8537
8579
  liquidationPriceLower: z.ZodNumber;
8538
8580
  liquidationPriceUpper: z.ZodNumber;
8539
8581
  liquidity: z.ZodString;
8582
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8583
+ permanent: "permanent";
8584
+ }>]>>;
8585
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8586
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8540
8587
  lowerLimitOrderPrice: z.ZodNumber;
8541
8588
  market: z.ZodString;
8542
8589
  marketMaker: z.ZodEnum<{
@@ -9164,6 +9211,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
9164
9211
  liquidationPriceLower: z.ZodNumber;
9165
9212
  liquidationPriceUpper: z.ZodNumber;
9166
9213
  liquidity: z.ZodString;
9214
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
9215
+ permanent: "permanent";
9216
+ }>]>>;
9217
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
9218
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
9167
9219
  lowerLimitOrderPrice: z.ZodNumber;
9168
9220
  market: z.ZodString;
9169
9221
  marketMaker: z.ZodEnum<{
@@ -10386,6 +10438,11 @@ declare const zSseResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
10386
10438
  liquidationPriceLower: z.ZodNumber;
10387
10439
  liquidationPriceUpper: z.ZodNumber;
10388
10440
  liquidity: z.ZodString;
10441
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
10442
+ permanent: "permanent";
10443
+ }>]>>;
10444
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
10445
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
10389
10446
  lowerLimitOrderPrice: z.ZodNumber;
10390
10447
  market: z.ZodString;
10391
10448
  marketMaker: z.ZodEnum<{
@@ -10606,7 +10663,9 @@ type GetLpSpotLeaderboardResponseZodType = z.infer<typeof zGetLpSpotLeaderboardR
10606
10663
  declare const zGetMarketsData: z.ZodObject<{
10607
10664
  body: z.ZodOptional<z.ZodNever>;
10608
10665
  path: z.ZodOptional<z.ZodNever>;
10609
- query: z.ZodOptional<z.ZodNever>;
10666
+ query: z.ZodOptional<z.ZodObject<{
10667
+ isPermissionless: z.ZodOptional<z.ZodInt>;
10668
+ }, z.core.$strip>>;
10610
10669
  }, z.core.$strip>;
10611
10670
  declare const zGetMarketsResponse: z.ZodObject<{
10612
10671
  data: z.ZodObject<{
@@ -12216,6 +12275,11 @@ declare const zSseResponse2: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<
12216
12275
  liquidationPriceLower: z.ZodNumber;
12217
12276
  liquidationPriceUpper: z.ZodNumber;
12218
12277
  liquidity: z.ZodString;
12278
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
12279
+ permanent: "permanent";
12280
+ }>]>>;
12281
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
12282
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
12219
12283
  lowerLimitOrderPrice: z.ZodNumber;
12220
12284
  market: z.ZodString;
12221
12285
  marketMaker: z.ZodEnum<{
@@ -14123,6 +14187,11 @@ declare const zGetTunaPositionsResponse: z.ZodObject<{
14123
14187
  liquidationPriceLower: z.ZodNumber;
14124
14188
  liquidationPriceUpper: z.ZodNumber;
14125
14189
  liquidity: z.ZodString;
14190
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14191
+ permanent: "permanent";
14192
+ }>]>>;
14193
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14194
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14126
14195
  lowerLimitOrderPrice: z.ZodNumber;
14127
14196
  market: z.ZodString;
14128
14197
  marketMaker: z.ZodEnum<{
@@ -14330,6 +14399,11 @@ declare const zGetTunaPositionResponse: z.ZodObject<{
14330
14399
  liquidationPriceLower: z.ZodNumber;
14331
14400
  liquidationPriceUpper: z.ZodNumber;
14332
14401
  liquidity: z.ZodString;
14402
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14403
+ permanent: "permanent";
14404
+ }>]>>;
14405
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14406
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14333
14407
  lowerLimitOrderPrice: z.ZodNumber;
14334
14408
  market: z.ZodString;
14335
14409
  marketMaker: z.ZodEnum<{
@@ -14606,4 +14680,4 @@ declare class TunaBackendSdkError<TCause = unknown> extends Error {
14606
14680
  declare const tunaSdkErrorInterceptor: (error: unknown, response?: Response) => TunaBackendSdkError<unknown>;
14607
14681
  declare const isTunaSdkError: <TCause = unknown>(error: unknown) => error is TunaBackendSdkError<TCause>;
14608
14682
 
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 };
14683
+ 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";
@@ -1830,10 +1840,17 @@ type GetLpSpotLeaderboardResponse = GetLpSpotLeaderboardResponses[keyof GetLpSpo
1830
1840
  type GetMarketsData = {
1831
1841
  body?: never;
1832
1842
  path?: never;
1833
- query?: never;
1843
+ query?: {
1844
+ /**
1845
+ * Filter by market permissionless flag: `0` = false, `1` = true.
1846
+ */
1847
+ isPermissionless?: number;
1848
+ };
1834
1849
  url: '/v1/markets';
1835
1850
  };
1836
1851
  type GetMarketsErrors = {
1852
+ 400: BadRequestErrorCodeErrorBody;
1853
+ 422: ValidationErrorCodeErrorBody;
1837
1854
  500: InternalErrorCodeErrorBody;
1838
1855
  };
1839
1856
  type GetMarketsError = GetMarketsErrors[keyof GetMarketsErrors];
@@ -3098,7 +3115,9 @@ declare class TunaBackendSdk extends HeyApiClient {
3098
3115
  /**
3099
3116
  * Request all markets
3100
3117
  */
3101
- getMarkets<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<GetMarketsResponses, GetMarketsErrors, ThrowOnError, "fields">;
3118
+ getMarkets<ThrowOnError extends boolean = false>(parameters?: {
3119
+ isPermissionless?: number;
3120
+ }, options?: Options<never, ThrowOnError>): RequestResult<GetMarketsResponses, GetMarketsErrors, ThrowOnError, "fields">;
3102
3121
  /**
3103
3122
  * Request market data
3104
3123
  */
@@ -4635,6 +4654,9 @@ declare const zTunaLpPositionsStats: z.ZodObject<{
4635
4654
  time: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
4636
4655
  totalCount: z.ZodInt;
4637
4656
  }, z.core.$strip>;
4657
+ declare const zTunaPositionDtoLockType: z.ZodEnum<{
4658
+ permanent: "permanent";
4659
+ }>;
4638
4660
  declare const zTunaPositionDtoState: z.ZodEnum<{
4639
4661
  open: "open";
4640
4662
  liquidation_withdraw: "liquidation_withdraw";
@@ -6740,6 +6762,11 @@ declare const zTunaPositionDto: z.ZodObject<{
6740
6762
  liquidationPriceLower: z.ZodNumber;
6741
6763
  liquidationPriceUpper: z.ZodNumber;
6742
6764
  liquidity: z.ZodString;
6765
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6766
+ permanent: "permanent";
6767
+ }>]>>;
6768
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6769
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6743
6770
  lowerLimitOrderPrice: z.ZodNumber;
6744
6771
  market: z.ZodString;
6745
6772
  marketMaker: z.ZodEnum<{
@@ -6855,6 +6882,11 @@ declare const zLpPositionResponse: z.ZodObject<{
6855
6882
  liquidationPriceLower: z.ZodNumber;
6856
6883
  liquidationPriceUpper: z.ZodNumber;
6857
6884
  liquidity: z.ZodString;
6885
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
6886
+ permanent: "permanent";
6887
+ }>]>>;
6888
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
6889
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
6858
6890
  lowerLimitOrderPrice: z.ZodNumber;
6859
6891
  market: z.ZodString;
6860
6892
  marketMaker: z.ZodEnum<{
@@ -7051,6 +7083,11 @@ declare const zLpPositionsListResponse: z.ZodObject<{
7051
7083
  liquidationPriceLower: z.ZodNumber;
7052
7084
  liquidationPriceUpper: z.ZodNumber;
7053
7085
  liquidity: z.ZodString;
7086
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
7087
+ permanent: "permanent";
7088
+ }>]>>;
7089
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
7090
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
7054
7091
  lowerLimitOrderPrice: z.ZodNumber;
7055
7092
  market: z.ZodString;
7056
7093
  marketMaker: z.ZodEnum<{
@@ -8215,6 +8252,11 @@ declare const zSnapshot: z.ZodObject<{
8215
8252
  liquidationPriceLower: z.ZodNumber;
8216
8253
  liquidationPriceUpper: z.ZodNumber;
8217
8254
  liquidity: z.ZodString;
8255
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8256
+ permanent: "permanent";
8257
+ }>]>>;
8258
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8259
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8218
8260
  lowerLimitOrderPrice: z.ZodNumber;
8219
8261
  market: z.ZodString;
8220
8262
  marketMaker: z.ZodEnum<{
@@ -8537,6 +8579,11 @@ declare const zSnapshotContainer: z.ZodObject<{
8537
8579
  liquidationPriceLower: z.ZodNumber;
8538
8580
  liquidationPriceUpper: z.ZodNumber;
8539
8581
  liquidity: z.ZodString;
8582
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
8583
+ permanent: "permanent";
8584
+ }>]>>;
8585
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
8586
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
8540
8587
  lowerLimitOrderPrice: z.ZodNumber;
8541
8588
  market: z.ZodString;
8542
8589
  marketMaker: z.ZodEnum<{
@@ -9164,6 +9211,11 @@ declare const zSseResponseSnapshot: z.ZodIntersection<z.ZodObject<{
9164
9211
  liquidationPriceLower: z.ZodNumber;
9165
9212
  liquidationPriceUpper: z.ZodNumber;
9166
9213
  liquidity: z.ZodString;
9214
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
9215
+ permanent: "permanent";
9216
+ }>]>>;
9217
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
9218
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
9167
9219
  lowerLimitOrderPrice: z.ZodNumber;
9168
9220
  market: z.ZodString;
9169
9221
  marketMaker: z.ZodEnum<{
@@ -10386,6 +10438,11 @@ declare const zSseResponse: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
10386
10438
  liquidationPriceLower: z.ZodNumber;
10387
10439
  liquidationPriceUpper: z.ZodNumber;
10388
10440
  liquidity: z.ZodString;
10441
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
10442
+ permanent: "permanent";
10443
+ }>]>>;
10444
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
10445
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
10389
10446
  lowerLimitOrderPrice: z.ZodNumber;
10390
10447
  market: z.ZodString;
10391
10448
  marketMaker: z.ZodEnum<{
@@ -10606,7 +10663,9 @@ type GetLpSpotLeaderboardResponseZodType = z.infer<typeof zGetLpSpotLeaderboardR
10606
10663
  declare const zGetMarketsData: z.ZodObject<{
10607
10664
  body: z.ZodOptional<z.ZodNever>;
10608
10665
  path: z.ZodOptional<z.ZodNever>;
10609
- query: z.ZodOptional<z.ZodNever>;
10666
+ query: z.ZodOptional<z.ZodObject<{
10667
+ isPermissionless: z.ZodOptional<z.ZodInt>;
10668
+ }, z.core.$strip>>;
10610
10669
  }, z.core.$strip>;
10611
10670
  declare const zGetMarketsResponse: z.ZodObject<{
10612
10671
  data: z.ZodObject<{
@@ -12216,6 +12275,11 @@ declare const zSseResponse2: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<
12216
12275
  liquidationPriceLower: z.ZodNumber;
12217
12276
  liquidationPriceUpper: z.ZodNumber;
12218
12277
  liquidity: z.ZodString;
12278
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
12279
+ permanent: "permanent";
12280
+ }>]>>;
12281
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
12282
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
12219
12283
  lowerLimitOrderPrice: z.ZodNumber;
12220
12284
  market: z.ZodString;
12221
12285
  marketMaker: z.ZodEnum<{
@@ -14123,6 +14187,11 @@ declare const zGetTunaPositionsResponse: z.ZodObject<{
14123
14187
  liquidationPriceLower: z.ZodNumber;
14124
14188
  liquidationPriceUpper: z.ZodNumber;
14125
14189
  liquidity: z.ZodString;
14190
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14191
+ permanent: "permanent";
14192
+ }>]>>;
14193
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14194
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14126
14195
  lowerLimitOrderPrice: z.ZodNumber;
14127
14196
  market: z.ZodString;
14128
14197
  marketMaker: z.ZodEnum<{
@@ -14330,6 +14399,11 @@ declare const zGetTunaPositionResponse: z.ZodObject<{
14330
14399
  liquidationPriceLower: z.ZodNumber;
14331
14400
  liquidationPriceUpper: z.ZodNumber;
14332
14401
  liquidity: z.ZodString;
14402
+ lockType: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodEnum<{
14403
+ permanent: "permanent";
14404
+ }>]>>;
14405
+ lockedAtBlockTime: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>, z.ZodNull]>>;
14406
+ lockedAtSlot: z.ZodOptional<z.ZodUnion<readonly [z.ZodNull, z.ZodCoercedBigInt<unknown>]>>;
14333
14407
  lowerLimitOrderPrice: z.ZodNumber;
14334
14408
  market: z.ZodString;
14335
14409
  marketMaker: z.ZodEnum<{
@@ -14606,4 +14680,4 @@ declare class TunaBackendSdkError<TCause = unknown> extends Error {
14606
14680
  declare const tunaSdkErrorInterceptor: (error: unknown, response?: Response) => TunaBackendSdkError<unknown>;
14607
14681
  declare const isTunaSdkError: <TCause = unknown>(error: unknown) => error is TunaBackendSdkError<TCause>;
14608
14682
 
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 };
14683
+ 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,
@@ -10227,7 +10247,9 @@ var zGetLpSpotLeaderboardResponse = object({
10227
10247
  var zGetMarketsData = object({
10228
10248
  body: optional(never()),
10229
10249
  path: optional(never()),
10230
- query: optional(never())
10250
+ query: optional(object({
10251
+ isPermissionless: optional(int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
10252
+ }))
10231
10253
  });
10232
10254
  var zGetMarketsResponse = object({
10233
10255
  data: zMarketsListResponse
@@ -10839,13 +10861,15 @@ var _TunaBackendSdk = class _TunaBackendSdk extends HeyApiClient {
10839
10861
  /**
10840
10862
  * Request all markets
10841
10863
  */
10842
- getMarkets(options) {
10864
+ getMarkets(parameters, options) {
10865
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "isPermissionless" }] }]);
10843
10866
  return (options?.client ?? this.client).get({
10844
10867
  requestValidator: async (data) => await zGetMarketsData.parseAsync(data),
10845
10868
  responseTransformer: getMarketsResponseTransformer,
10846
10869
  responseValidator: async (data) => await zGetMarketsResponse.parseAsync(data),
10847
10870
  url: "/v1/markets",
10848
- ...options
10871
+ ...options,
10872
+ ...params
10849
10873
  });
10850
10874
  }
10851
10875
  /**
@@ -11686,6 +11710,7 @@ export {
11686
11710
  TunaLpPositionRebalance,
11687
11711
  TunaLpPositionTriggerOrderType,
11688
11712
  TunaLpPositionsActionType,
11713
+ TunaPositionDtoLockType,
11689
11714
  TunaPositionDtoState,
11690
11715
  TunaPositionMarketMaker,
11691
11716
  TunaPositionPoolToken,
@@ -11945,6 +11970,7 @@ export {
11945
11970
  zTunaLpPositionsActionType,
11946
11971
  zTunaLpPositionsStats,
11947
11972
  zTunaPositionDto,
11973
+ zTunaPositionDtoLockType,
11948
11974
  zTunaPositionDtoState,
11949
11975
  zTunaPositionMarketMaker,
11950
11976
  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.3",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",