@crypticdot/defituna-api 1.8.2 → 1.8.4

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.d.mts CHANGED
@@ -2326,7 +2326,7 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
2326
2326
  declare const StateSnapshot$1: z.ZodObject<{
2327
2327
  slot: z.ZodBigInt;
2328
2328
  blockTime: z.ZodDate;
2329
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
2329
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2330
2330
  pool: z.ZodString;
2331
2331
  price: z.ZodNumber;
2332
2332
  sqrtPrice: z.ZodBigInt;
@@ -2933,7 +2933,7 @@ declare const StateSnapshot$1: z.ZodObject<{
2933
2933
  }, "strip", z.ZodTypeAny, {
2934
2934
  slot: bigint;
2935
2935
  blockTime: Date;
2936
- poolPrices?: Map<string, {
2936
+ poolPrices?: Record<string, {
2937
2937
  price: number;
2938
2938
  time: Date;
2939
2939
  sqrtPrice: bigint;
@@ -3092,7 +3092,7 @@ declare const StateSnapshot$1: z.ZodObject<{
3092
3092
  }, {
3093
3093
  slot: bigint;
3094
3094
  blockTime: Date;
3095
- poolPrices?: Map<string, {
3095
+ poolPrices?: Record<string, {
3096
3096
  price: number;
3097
3097
  time: Date;
3098
3098
  sqrtPrice: bigint;
@@ -3280,7 +3280,7 @@ declare const UpdateStreamSubscriptionResult: z.ZodObject<{
3280
3280
  }, {
3281
3281
  status: string;
3282
3282
  }>;
3283
- declare const OrderBookNotificationMeta: z.ZodObject<{
3283
+ declare const OrderBookNotificationMeta$1: z.ZodObject<{
3284
3284
  pool: z.ZodString;
3285
3285
  priceStep: z.ZodNumber;
3286
3286
  inverted: z.ZodBoolean;
@@ -7164,7 +7164,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7164
7164
  data: z.ZodObject<{
7165
7165
  slot: z.ZodBigInt;
7166
7166
  blockTime: z.ZodDate;
7167
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
7167
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7168
7168
  pool: z.ZodString;
7169
7169
  price: z.ZodNumber;
7170
7170
  sqrtPrice: z.ZodBigInt;
@@ -7771,7 +7771,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7771
7771
  }, "strip", z.ZodTypeAny, {
7772
7772
  slot: bigint;
7773
7773
  blockTime: Date;
7774
- poolPrices?: Map<string, {
7774
+ poolPrices?: Record<string, {
7775
7775
  price: number;
7776
7776
  time: Date;
7777
7777
  sqrtPrice: bigint;
@@ -7930,7 +7930,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7930
7930
  }, {
7931
7931
  slot: bigint;
7932
7932
  blockTime: Date;
7933
- poolPrices?: Map<string, {
7933
+ poolPrices?: Record<string, {
7934
7934
  price: number;
7935
7935
  time: Date;
7936
7936
  sqrtPrice: bigint;
@@ -8096,7 +8096,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8096
8096
  data: z.ZodObject<{
8097
8097
  slot: z.ZodBigInt;
8098
8098
  blockTime: z.ZodDate;
8099
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
8099
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8100
8100
  pool: z.ZodString;
8101
8101
  price: z.ZodNumber;
8102
8102
  sqrtPrice: z.ZodBigInt;
@@ -8703,7 +8703,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8703
8703
  }, "strip", z.ZodTypeAny, {
8704
8704
  slot: bigint;
8705
8705
  blockTime: Date;
8706
- poolPrices?: Map<string, {
8706
+ poolPrices?: Record<string, {
8707
8707
  price: number;
8708
8708
  time: Date;
8709
8709
  sqrtPrice: bigint;
@@ -8862,7 +8862,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8862
8862
  }, {
8863
8863
  slot: bigint;
8864
8864
  blockTime: Date;
8865
- poolPrices?: Map<string, {
8865
+ poolPrices?: Record<string, {
8866
8866
  price: number;
8867
8867
  time: Date;
8868
8868
  sqrtPrice: bigint;
@@ -9028,7 +9028,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9028
9028
  data: {
9029
9029
  slot: bigint;
9030
9030
  blockTime: Date;
9031
- poolPrices?: Map<string, {
9031
+ poolPrices?: Record<string, {
9032
9032
  price: number;
9033
9033
  time: Date;
9034
9034
  sqrtPrice: bigint;
@@ -9194,7 +9194,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9194
9194
  data: {
9195
9195
  slot: bigint;
9196
9196
  blockTime: Date;
9197
- poolPrices?: Map<string, {
9197
+ poolPrices?: Record<string, {
9198
9198
  price: number;
9199
9199
  time: Date;
9200
9200
  sqrtPrice: bigint;
@@ -9360,7 +9360,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9360
9360
  data: {
9361
9361
  slot: bigint;
9362
9362
  blockTime: Date;
9363
- poolPrices?: Map<string, {
9363
+ poolPrices?: Record<string, {
9364
9364
  price: number;
9365
9365
  time: Date;
9366
9366
  sqrtPrice: bigint;
@@ -9526,7 +9526,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9526
9526
  data: {
9527
9527
  slot: bigint;
9528
9528
  blockTime: Date;
9529
- poolPrices?: Map<string, {
9529
+ poolPrices?: Record<string, {
9530
9530
  price: number;
9531
9531
  time: Date;
9532
9532
  sqrtPrice: bigint;
@@ -9696,7 +9696,6 @@ declare const schemas_NotificationActionSchema: typeof NotificationActionSchema;
9696
9696
  declare const schemas_NotificationEntity: typeof NotificationEntity;
9697
9697
  declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
9698
9698
  declare const schemas_OrderBookNotification: typeof OrderBookNotification;
9699
- declare const schemas_OrderBookNotificationMeta: typeof OrderBookNotificationMeta;
9700
9699
  declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
9701
9700
  declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
9702
9701
  declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
@@ -9728,9 +9727,10 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
9728
9727
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
9729
9728
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
9730
9729
  declare namespace schemas {
9731
- export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9730
+ export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9732
9731
  }
9733
9732
 
9733
+ type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
9734
9734
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
9735
9735
  type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
9736
9736
  type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
@@ -9755,6 +9755,7 @@ type PoolTicks = z.infer<typeof PoolTicks$1>;
9755
9755
  type PoolSwap = z.infer<typeof PoolSwap$1>;
9756
9756
  type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
9757
9757
  type OrderBook = z.infer<typeof OrderBook$1>;
9758
+ type OrderBookNotificationMeta = z.infer<typeof OrderBookNotificationMeta$1>;
9758
9759
  type LendingPosition = z.infer<typeof LendingPosition$1>;
9759
9760
  type TunaPosition = z.infer<typeof TunaPosition$1>;
9760
9761
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
@@ -9987,4 +9988,4 @@ declare class TunaApiClient {
9987
9988
  private appendUrlSearchParams;
9988
9989
  }
9989
9990
 
9990
- export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
9991
+ export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type NotificationEntityType, type OrderBook, type OrderBookEntry, type OrderBookNotificationMeta, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, PoolSubscriptionTopic, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, WalletSubscriptionTopic, type WalletSubscriptionTopicType, schemas };
package/dist/index.d.ts CHANGED
@@ -2326,7 +2326,7 @@ declare const SwapQuoteByOutput$1: z.ZodObject<{
2326
2326
  declare const StateSnapshot$1: z.ZodObject<{
2327
2327
  slot: z.ZodBigInt;
2328
2328
  blockTime: z.ZodDate;
2329
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
2329
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2330
2330
  pool: z.ZodString;
2331
2331
  price: z.ZodNumber;
2332
2332
  sqrtPrice: z.ZodBigInt;
@@ -2933,7 +2933,7 @@ declare const StateSnapshot$1: z.ZodObject<{
2933
2933
  }, "strip", z.ZodTypeAny, {
2934
2934
  slot: bigint;
2935
2935
  blockTime: Date;
2936
- poolPrices?: Map<string, {
2936
+ poolPrices?: Record<string, {
2937
2937
  price: number;
2938
2938
  time: Date;
2939
2939
  sqrtPrice: bigint;
@@ -3092,7 +3092,7 @@ declare const StateSnapshot$1: z.ZodObject<{
3092
3092
  }, {
3093
3093
  slot: bigint;
3094
3094
  blockTime: Date;
3095
- poolPrices?: Map<string, {
3095
+ poolPrices?: Record<string, {
3096
3096
  price: number;
3097
3097
  time: Date;
3098
3098
  sqrtPrice: bigint;
@@ -3280,7 +3280,7 @@ declare const UpdateStreamSubscriptionResult: z.ZodObject<{
3280
3280
  }, {
3281
3281
  status: string;
3282
3282
  }>;
3283
- declare const OrderBookNotificationMeta: z.ZodObject<{
3283
+ declare const OrderBookNotificationMeta$1: z.ZodObject<{
3284
3284
  pool: z.ZodString;
3285
3285
  priceStep: z.ZodNumber;
3286
3286
  inverted: z.ZodBoolean;
@@ -7164,7 +7164,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7164
7164
  data: z.ZodObject<{
7165
7165
  slot: z.ZodBigInt;
7166
7166
  blockTime: z.ZodDate;
7167
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
7167
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
7168
7168
  pool: z.ZodString;
7169
7169
  price: z.ZodNumber;
7170
7170
  sqrtPrice: z.ZodBigInt;
@@ -7771,7 +7771,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7771
7771
  }, "strip", z.ZodTypeAny, {
7772
7772
  slot: bigint;
7773
7773
  blockTime: Date;
7774
- poolPrices?: Map<string, {
7774
+ poolPrices?: Record<string, {
7775
7775
  price: number;
7776
7776
  time: Date;
7777
7777
  sqrtPrice: bigint;
@@ -7930,7 +7930,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
7930
7930
  }, {
7931
7931
  slot: bigint;
7932
7932
  blockTime: Date;
7933
- poolPrices?: Map<string, {
7933
+ poolPrices?: Record<string, {
7934
7934
  price: number;
7935
7935
  time: Date;
7936
7936
  sqrtPrice: bigint;
@@ -8096,7 +8096,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8096
8096
  data: z.ZodObject<{
8097
8097
  slot: z.ZodBigInt;
8098
8098
  blockTime: z.ZodDate;
8099
- poolPrices: z.ZodOptional<z.ZodMap<z.ZodString, z.ZodObject<{
8099
+ poolPrices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
8100
8100
  pool: z.ZodString;
8101
8101
  price: z.ZodNumber;
8102
8102
  sqrtPrice: z.ZodBigInt;
@@ -8703,7 +8703,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8703
8703
  }, "strip", z.ZodTypeAny, {
8704
8704
  slot: bigint;
8705
8705
  blockTime: Date;
8706
- poolPrices?: Map<string, {
8706
+ poolPrices?: Record<string, {
8707
8707
  price: number;
8708
8708
  time: Date;
8709
8709
  sqrtPrice: bigint;
@@ -8862,7 +8862,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
8862
8862
  }, {
8863
8863
  slot: bigint;
8864
8864
  blockTime: Date;
8865
- poolPrices?: Map<string, {
8865
+ poolPrices?: Record<string, {
8866
8866
  price: number;
8867
8867
  time: Date;
8868
8868
  sqrtPrice: bigint;
@@ -9028,7 +9028,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9028
9028
  data: {
9029
9029
  slot: bigint;
9030
9030
  blockTime: Date;
9031
- poolPrices?: Map<string, {
9031
+ poolPrices?: Record<string, {
9032
9032
  price: number;
9033
9033
  time: Date;
9034
9034
  sqrtPrice: bigint;
@@ -9194,7 +9194,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9194
9194
  data: {
9195
9195
  slot: bigint;
9196
9196
  blockTime: Date;
9197
- poolPrices?: Map<string, {
9197
+ poolPrices?: Record<string, {
9198
9198
  price: number;
9199
9199
  time: Date;
9200
9200
  sqrtPrice: bigint;
@@ -9360,7 +9360,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9360
9360
  data: {
9361
9361
  slot: bigint;
9362
9362
  blockTime: Date;
9363
- poolPrices?: Map<string, {
9363
+ poolPrices?: Record<string, {
9364
9364
  price: number;
9365
9365
  time: Date;
9366
9366
  sqrtPrice: bigint;
@@ -9526,7 +9526,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
9526
9526
  data: {
9527
9527
  slot: bigint;
9528
9528
  blockTime: Date;
9529
- poolPrices?: Map<string, {
9529
+ poolPrices?: Record<string, {
9530
9530
  price: number;
9531
9531
  time: Date;
9532
9532
  sqrtPrice: bigint;
@@ -9696,7 +9696,6 @@ declare const schemas_NotificationActionSchema: typeof NotificationActionSchema;
9696
9696
  declare const schemas_NotificationEntity: typeof NotificationEntity;
9697
9697
  declare const schemas_NotificationEntitySchema: typeof NotificationEntitySchema;
9698
9698
  declare const schemas_OrderBookNotification: typeof OrderBookNotification;
9699
- declare const schemas_OrderBookNotificationMeta: typeof OrderBookNotificationMeta;
9700
9699
  declare const schemas_OrderHistoryEntryNotification: typeof OrderHistoryEntryNotification;
9701
9700
  declare const schemas_OrderHistoryOrderType: typeof OrderHistoryOrderType;
9702
9701
  declare const schemas_OrderHistoryOrderTypeSchema: typeof OrderHistoryOrderTypeSchema;
@@ -9728,9 +9727,10 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
9728
9727
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
9729
9728
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
9730
9729
  declare namespace schemas {
9731
- export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9730
+ export { CloseSpotPositionQuote$1 as CloseSpotPositionQuote, DecreaseSpotPositionQuote$1 as DecreaseSpotPositionQuote, FeesStatsGroup$1 as FeesStatsGroup, IncreaseSpotPositionQuote$1 as IncreaseSpotPositionQuote, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, LimitOrderQuoteByInput$1 as LimitOrderQuoteByInput, LimitOrderQuoteByOutput$1 as LimitOrderQuoteByOutput, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, OrderBookNotificationMeta$1 as OrderBookNotificationMeta, OrderHistoryEntry$1 as OrderHistoryEntry, schemas_OrderHistoryEntryNotification as OrderHistoryEntryNotification, schemas_OrderHistoryOrderType as OrderHistoryOrderType, schemas_OrderHistoryOrderTypeSchema as OrderHistoryOrderTypeSchema, schemas_OrderHistoryStatus as OrderHistoryStatus, schemas_OrderHistoryStatusSchema as OrderHistoryStatusSchema, schemas_OrderHistoryUIDirection as OrderHistoryUIDirection, schemas_OrderHistoryUIDirectionSchema as OrderHistoryUIDirectionSchema, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, StateSnapshot$1 as StateSnapshot, schemas_StateSnapshotNotification as StateSnapshotNotification, SwapQuoteByInput$1 as SwapQuoteByInput, SwapQuoteByOutput$1 as SwapQuoteByOutput, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TradableAmount$1 as TradableAmount, schemas_TradeHistoryAction as TradeHistoryAction, schemas_TradeHistoryActionSchema as TradeHistoryActionSchema, TradeHistoryEntry$1 as TradeHistoryEntry, schemas_TradeHistoryEntryNotification as TradeHistoryEntryNotification, schemas_TradeHistoryUIDirection as TradeHistoryUIDirection, schemas_TradeHistoryUIDirectionSchema as TradeHistoryUIDirectionSchema, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, TunaSpotPosition$1 as TunaSpotPosition, schemas_TunaSpotPositionNotification as TunaSpotPositionNotification, schemas_TunaSpotPositionState as TunaSpotPositionState, schemas_TunaSpotPositionStateSchema as TunaSpotPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
9732
9731
  }
9733
9732
 
9733
+ type NotificationEntityType = z.infer<typeof NotificationEntitySchema>;
9734
9734
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
9735
9735
  type TunaPositionStateType = z.infer<typeof TunaPositionStateSchema>;
9736
9736
  type TunaSpotPositionStateType = z.infer<typeof TunaSpotPositionStateSchema>;
@@ -9755,6 +9755,7 @@ type PoolTicks = z.infer<typeof PoolTicks$1>;
9755
9755
  type PoolSwap = z.infer<typeof PoolSwap$1>;
9756
9756
  type OrderBookEntry = z.infer<typeof OrderBookEntry$1>;
9757
9757
  type OrderBook = z.infer<typeof OrderBook$1>;
9758
+ type OrderBookNotificationMeta = z.infer<typeof OrderBookNotificationMeta$1>;
9758
9759
  type LendingPosition = z.infer<typeof LendingPosition$1>;
9759
9760
  type TunaPosition = z.infer<typeof TunaPosition$1>;
9760
9761
  type TunaSpotPosition = z.infer<typeof TunaSpotPosition$1>;
@@ -9987,4 +9988,4 @@ declare class TunaApiClient {
9987
9988
  private appendUrlSearchParams;
9988
9989
  }
9989
9990
 
9990
- export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
9991
+ export { type CloseSpotPositionQuote, type DecreaseSpotPositionQuote, type DurationInMs, type FeesStatsGroup, type GetCloseSpotPositionQuoteArgs, type GetDecreaseSpotPositionQuoteArgs, type GetIncreaseSpotPositionQuoteArgs, type GetLimitOrderQuoteByInputArgs, type GetLimitOrderQuoteByOutputArgs, type GetPoolPriceCandlesOptions, type GetSwapQuoteByInputArgs, type GetSwapQuoteByOutputArgs, type GetTradableAmountArgs, type GetUserLimitOrdersOptions, type GetUserOrderHistoryOptions, type GetUserTradeHistoryOptions, type IncreaseSpotPositionQuote, type LendingPosition, type LimitOrder, type LimitOrderQuoteByInput, type LimitOrderQuoteByOutput, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type NotificationEntityType, type OrderBook, type OrderBookEntry, type OrderBookNotificationMeta, type OrderHistoryEntry, type OrderHistoryOrderTypeType, type OrderHistoryStatusType, type OrderHistoryUIDirectionType, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, PoolSubscriptionTopic, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type StateSnapshot, type SubscriptionPayload, type SwapQuoteByInput, type SwapQuoteByOutput, type Tick, type TokenOraclePrice, type TradableAmount, type TradeHistoryActionType, type TradeHistoryEntry, type TradeHistoryUIDirectionType, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type TunaSpotPosition, type TunaSpotPositionStateType, type Vault, type VaultHistoricalStats, WalletSubscriptionTopic, type WalletSubscriptionTopicType, schemas };
package/dist/index.js CHANGED
@@ -32,9 +32,11 @@ __export(index_exports, {
32
32
  NotificationAction: () => NotificationAction,
33
33
  NotificationEntity: () => NotificationEntity,
34
34
  PoolProvider: () => PoolProvider,
35
+ PoolSubscriptionTopic: () => PoolSubscriptionTopic,
35
36
  ProviderFilter: () => ProviderFilter,
36
37
  TunaApiClient: () => TunaApiClient,
37
38
  TunaPositionState: () => TunaPositionState,
39
+ WalletSubscriptionTopic: () => WalletSubscriptionTopic,
38
40
  schemas: () => schemas_exports
39
41
  });
40
42
  module.exports = __toCommonJS(index_exports);
@@ -719,7 +721,7 @@ var SwapQuoteByOutput = import_zod.z.object({
719
721
  var StateSnapshot = import_zod.z.object({
720
722
  slot: import_zod.z.coerce.bigint(),
721
723
  blockTime: import_zod.z.coerce.date(),
722
- poolPrices: import_zod.z.optional(import_zod.z.map(import_zod.z.string(), PoolPriceUpdate)),
724
+ poolPrices: import_zod.z.optional(import_zod.z.record(import_zod.z.string(), PoolPriceUpdate)),
723
725
  tunaSpotPositions: import_zod.z.optional(import_zod.z.array(TunaSpotPosition)),
724
726
  tunaLpPositions: import_zod.z.optional(import_zod.z.array(TunaPosition)),
725
727
  fusionLimitOrders: import_zod.z.optional(import_zod.z.array(LimitOrder))
@@ -1227,8 +1229,10 @@ var TunaApiClient = class {
1227
1229
  NotificationAction,
1228
1230
  NotificationEntity,
1229
1231
  PoolProvider,
1232
+ PoolSubscriptionTopic,
1230
1233
  ProviderFilter,
1231
1234
  TunaApiClient,
1232
1235
  TunaPositionState,
1236
+ WalletSubscriptionTopic,
1233
1237
  schemas
1234
1238
  });
package/dist/index.mjs CHANGED
@@ -684,7 +684,7 @@ var SwapQuoteByOutput = z.object({
684
684
  var StateSnapshot = z.object({
685
685
  slot: z.coerce.bigint(),
686
686
  blockTime: z.coerce.date(),
687
- poolPrices: z.optional(z.map(z.string(), PoolPriceUpdate)),
687
+ poolPrices: z.optional(z.record(z.string(), PoolPriceUpdate)),
688
688
  tunaSpotPositions: z.optional(z.array(TunaSpotPosition)),
689
689
  tunaLpPositions: z.optional(z.array(TunaPosition)),
690
690
  fusionLimitOrders: z.optional(z.array(LimitOrder))
@@ -1191,8 +1191,10 @@ export {
1191
1191
  NotificationAction,
1192
1192
  NotificationEntity,
1193
1193
  PoolProvider,
1194
+ PoolSubscriptionTopic,
1194
1195
  ProviderFilter,
1195
1196
  TunaApiClient,
1196
1197
  TunaPositionState,
1198
+ WalletSubscriptionTopic,
1197
1199
  schemas_exports as schemas
1198
1200
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",