@crypticdot/defituna-api 1.1.38 → 1.1.39

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
@@ -44,6 +44,7 @@ declare const WalletSubscriptionTopic: {
44
44
  readonly TUNA_POSITIONS: "tuna_positions";
45
45
  readonly LENDING_POSITIONS: "lending_positions";
46
46
  readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
47
+ readonly STAKING_POSITION: "staking_position";
47
48
  };
48
49
  declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
49
50
  declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
@@ -52,7 +53,7 @@ declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidat
52
53
  declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
53
54
  declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards")[]]>;
54
55
  declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
55
- declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("tuna_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
56
+ declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("tuna_positions" | "lending_positions" | "fusion_limit_orders" | "staking_position")[]]>;
56
57
  declare const Mint$1: z.ZodObject<{
57
58
  symbol: z.ZodString;
58
59
  mint: z.ZodString;
@@ -3561,6 +3562,523 @@ declare const LimitOrderNotification: z.ZodObject<{
3561
3562
  };
3562
3563
  meta?: any;
3563
3564
  }>;
3565
+ declare const StakingPositionNotification: z.ZodObject<{
3566
+ meta: z.ZodTypeAny;
3567
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
3568
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3569
+ data: z.ZodObject<{
3570
+ address: z.ZodString;
3571
+ owner: z.ZodString;
3572
+ staked: z.ZodObject<{
3573
+ amount: z.ZodBigInt;
3574
+ usd: z.ZodNumber;
3575
+ }, "strip", z.ZodTypeAny, {
3576
+ amount: bigint;
3577
+ usd: number;
3578
+ }, {
3579
+ amount: bigint;
3580
+ usd: number;
3581
+ }>;
3582
+ unstaked: z.ZodObject<{
3583
+ amount: z.ZodBigInt;
3584
+ usd: z.ZodNumber;
3585
+ }, "strip", z.ZodTypeAny, {
3586
+ amount: bigint;
3587
+ usd: number;
3588
+ }, {
3589
+ amount: bigint;
3590
+ usd: number;
3591
+ }>;
3592
+ claimedReward: z.ZodObject<{
3593
+ amount: z.ZodBigInt;
3594
+ usd: z.ZodNumber;
3595
+ }, "strip", z.ZodTypeAny, {
3596
+ amount: bigint;
3597
+ usd: number;
3598
+ }, {
3599
+ amount: bigint;
3600
+ usd: number;
3601
+ }>;
3602
+ unclaimedReward: z.ZodObject<{
3603
+ amount: z.ZodBigInt;
3604
+ usd: z.ZodNumber;
3605
+ }, "strip", z.ZodTypeAny, {
3606
+ amount: bigint;
3607
+ usd: number;
3608
+ }, {
3609
+ amount: bigint;
3610
+ usd: number;
3611
+ }>;
3612
+ vesting: z.ZodObject<{
3613
+ locked: z.ZodObject<{
3614
+ amount: z.ZodBigInt;
3615
+ usd: z.ZodNumber;
3616
+ }, "strip", z.ZodTypeAny, {
3617
+ amount: bigint;
3618
+ usd: number;
3619
+ }, {
3620
+ amount: bigint;
3621
+ usd: number;
3622
+ }>;
3623
+ unlocked: z.ZodObject<{
3624
+ amount: z.ZodBigInt;
3625
+ usd: z.ZodNumber;
3626
+ }, "strip", z.ZodTypeAny, {
3627
+ amount: bigint;
3628
+ usd: number;
3629
+ }, {
3630
+ amount: bigint;
3631
+ usd: number;
3632
+ }>;
3633
+ unlockRate: z.ZodBigInt;
3634
+ unlockEverySeconds: z.ZodNumber;
3635
+ unlockCliffSeconds: z.ZodNumber;
3636
+ lockedAt: z.ZodNullable<z.ZodDate>;
3637
+ }, "strip", z.ZodTypeAny, {
3638
+ locked: {
3639
+ amount: bigint;
3640
+ usd: number;
3641
+ };
3642
+ unlocked: {
3643
+ amount: bigint;
3644
+ usd: number;
3645
+ };
3646
+ unlockRate: bigint;
3647
+ unlockEverySeconds: number;
3648
+ unlockCliffSeconds: number;
3649
+ lockedAt: Date | null;
3650
+ }, {
3651
+ locked: {
3652
+ amount: bigint;
3653
+ usd: number;
3654
+ };
3655
+ unlocked: {
3656
+ amount: bigint;
3657
+ usd: number;
3658
+ };
3659
+ unlockRate: bigint;
3660
+ unlockEverySeconds: number;
3661
+ unlockCliffSeconds: number;
3662
+ lockedAt: Date | null;
3663
+ }>;
3664
+ lastUnstakedAt: z.ZodNullable<z.ZodDate>;
3665
+ withdrawAvailableAt: z.ZodNullable<z.ZodDate>;
3666
+ }, "strip", z.ZodTypeAny, {
3667
+ address: string;
3668
+ owner: string;
3669
+ staked: {
3670
+ amount: bigint;
3671
+ usd: number;
3672
+ };
3673
+ unstaked: {
3674
+ amount: bigint;
3675
+ usd: number;
3676
+ };
3677
+ claimedReward: {
3678
+ amount: bigint;
3679
+ usd: number;
3680
+ };
3681
+ unclaimedReward: {
3682
+ amount: bigint;
3683
+ usd: number;
3684
+ };
3685
+ vesting: {
3686
+ locked: {
3687
+ amount: bigint;
3688
+ usd: number;
3689
+ };
3690
+ unlocked: {
3691
+ amount: bigint;
3692
+ usd: number;
3693
+ };
3694
+ unlockRate: bigint;
3695
+ unlockEverySeconds: number;
3696
+ unlockCliffSeconds: number;
3697
+ lockedAt: Date | null;
3698
+ };
3699
+ lastUnstakedAt: Date | null;
3700
+ withdrawAvailableAt: Date | null;
3701
+ }, {
3702
+ address: string;
3703
+ owner: string;
3704
+ staked: {
3705
+ amount: bigint;
3706
+ usd: number;
3707
+ };
3708
+ unstaked: {
3709
+ amount: bigint;
3710
+ usd: number;
3711
+ };
3712
+ claimedReward: {
3713
+ amount: bigint;
3714
+ usd: number;
3715
+ };
3716
+ unclaimedReward: {
3717
+ amount: bigint;
3718
+ usd: number;
3719
+ };
3720
+ vesting: {
3721
+ locked: {
3722
+ amount: bigint;
3723
+ usd: number;
3724
+ };
3725
+ unlocked: {
3726
+ amount: bigint;
3727
+ usd: number;
3728
+ };
3729
+ unlockRate: bigint;
3730
+ unlockEverySeconds: number;
3731
+ unlockCliffSeconds: number;
3732
+ lockedAt: Date | null;
3733
+ };
3734
+ lastUnstakedAt: Date | null;
3735
+ withdrawAvailableAt: Date | null;
3736
+ }>;
3737
+ id: z.ZodString;
3738
+ authority: z.ZodNullable<z.ZodString>;
3739
+ } | {
3740
+ meta: z.ZodNullable<z.ZodUndefined>;
3741
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
3742
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3743
+ data: z.ZodObject<{
3744
+ address: z.ZodString;
3745
+ owner: z.ZodString;
3746
+ staked: z.ZodObject<{
3747
+ amount: z.ZodBigInt;
3748
+ usd: z.ZodNumber;
3749
+ }, "strip", z.ZodTypeAny, {
3750
+ amount: bigint;
3751
+ usd: number;
3752
+ }, {
3753
+ amount: bigint;
3754
+ usd: number;
3755
+ }>;
3756
+ unstaked: z.ZodObject<{
3757
+ amount: z.ZodBigInt;
3758
+ usd: z.ZodNumber;
3759
+ }, "strip", z.ZodTypeAny, {
3760
+ amount: bigint;
3761
+ usd: number;
3762
+ }, {
3763
+ amount: bigint;
3764
+ usd: number;
3765
+ }>;
3766
+ claimedReward: z.ZodObject<{
3767
+ amount: z.ZodBigInt;
3768
+ usd: z.ZodNumber;
3769
+ }, "strip", z.ZodTypeAny, {
3770
+ amount: bigint;
3771
+ usd: number;
3772
+ }, {
3773
+ amount: bigint;
3774
+ usd: number;
3775
+ }>;
3776
+ unclaimedReward: z.ZodObject<{
3777
+ amount: z.ZodBigInt;
3778
+ usd: z.ZodNumber;
3779
+ }, "strip", z.ZodTypeAny, {
3780
+ amount: bigint;
3781
+ usd: number;
3782
+ }, {
3783
+ amount: bigint;
3784
+ usd: number;
3785
+ }>;
3786
+ vesting: z.ZodObject<{
3787
+ locked: z.ZodObject<{
3788
+ amount: z.ZodBigInt;
3789
+ usd: z.ZodNumber;
3790
+ }, "strip", z.ZodTypeAny, {
3791
+ amount: bigint;
3792
+ usd: number;
3793
+ }, {
3794
+ amount: bigint;
3795
+ usd: number;
3796
+ }>;
3797
+ unlocked: z.ZodObject<{
3798
+ amount: z.ZodBigInt;
3799
+ usd: z.ZodNumber;
3800
+ }, "strip", z.ZodTypeAny, {
3801
+ amount: bigint;
3802
+ usd: number;
3803
+ }, {
3804
+ amount: bigint;
3805
+ usd: number;
3806
+ }>;
3807
+ unlockRate: z.ZodBigInt;
3808
+ unlockEverySeconds: z.ZodNumber;
3809
+ unlockCliffSeconds: z.ZodNumber;
3810
+ lockedAt: z.ZodNullable<z.ZodDate>;
3811
+ }, "strip", z.ZodTypeAny, {
3812
+ locked: {
3813
+ amount: bigint;
3814
+ usd: number;
3815
+ };
3816
+ unlocked: {
3817
+ amount: bigint;
3818
+ usd: number;
3819
+ };
3820
+ unlockRate: bigint;
3821
+ unlockEverySeconds: number;
3822
+ unlockCliffSeconds: number;
3823
+ lockedAt: Date | null;
3824
+ }, {
3825
+ locked: {
3826
+ amount: bigint;
3827
+ usd: number;
3828
+ };
3829
+ unlocked: {
3830
+ amount: bigint;
3831
+ usd: number;
3832
+ };
3833
+ unlockRate: bigint;
3834
+ unlockEverySeconds: number;
3835
+ unlockCliffSeconds: number;
3836
+ lockedAt: Date | null;
3837
+ }>;
3838
+ lastUnstakedAt: z.ZodNullable<z.ZodDate>;
3839
+ withdrawAvailableAt: z.ZodNullable<z.ZodDate>;
3840
+ }, "strip", z.ZodTypeAny, {
3841
+ address: string;
3842
+ owner: string;
3843
+ staked: {
3844
+ amount: bigint;
3845
+ usd: number;
3846
+ };
3847
+ unstaked: {
3848
+ amount: bigint;
3849
+ usd: number;
3850
+ };
3851
+ claimedReward: {
3852
+ amount: bigint;
3853
+ usd: number;
3854
+ };
3855
+ unclaimedReward: {
3856
+ amount: bigint;
3857
+ usd: number;
3858
+ };
3859
+ vesting: {
3860
+ locked: {
3861
+ amount: bigint;
3862
+ usd: number;
3863
+ };
3864
+ unlocked: {
3865
+ amount: bigint;
3866
+ usd: number;
3867
+ };
3868
+ unlockRate: bigint;
3869
+ unlockEverySeconds: number;
3870
+ unlockCliffSeconds: number;
3871
+ lockedAt: Date | null;
3872
+ };
3873
+ lastUnstakedAt: Date | null;
3874
+ withdrawAvailableAt: Date | null;
3875
+ }, {
3876
+ address: string;
3877
+ owner: string;
3878
+ staked: {
3879
+ amount: bigint;
3880
+ usd: number;
3881
+ };
3882
+ unstaked: {
3883
+ amount: bigint;
3884
+ usd: number;
3885
+ };
3886
+ claimedReward: {
3887
+ amount: bigint;
3888
+ usd: number;
3889
+ };
3890
+ unclaimedReward: {
3891
+ amount: bigint;
3892
+ usd: number;
3893
+ };
3894
+ vesting: {
3895
+ locked: {
3896
+ amount: bigint;
3897
+ usd: number;
3898
+ };
3899
+ unlocked: {
3900
+ amount: bigint;
3901
+ usd: number;
3902
+ };
3903
+ unlockRate: bigint;
3904
+ unlockEverySeconds: number;
3905
+ unlockCliffSeconds: number;
3906
+ lockedAt: Date | null;
3907
+ };
3908
+ lastUnstakedAt: Date | null;
3909
+ withdrawAvailableAt: Date | null;
3910
+ }>;
3911
+ id: z.ZodString;
3912
+ authority: z.ZodNullable<z.ZodString>;
3913
+ }, "strip", z.ZodTypeAny, {
3914
+ authority: string | null;
3915
+ id: string;
3916
+ action: "create" | "update";
3917
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3918
+ data: {
3919
+ address: string;
3920
+ owner: string;
3921
+ staked: {
3922
+ amount: bigint;
3923
+ usd: number;
3924
+ };
3925
+ unstaked: {
3926
+ amount: bigint;
3927
+ usd: number;
3928
+ };
3929
+ claimedReward: {
3930
+ amount: bigint;
3931
+ usd: number;
3932
+ };
3933
+ unclaimedReward: {
3934
+ amount: bigint;
3935
+ usd: number;
3936
+ };
3937
+ vesting: {
3938
+ locked: {
3939
+ amount: bigint;
3940
+ usd: number;
3941
+ };
3942
+ unlocked: {
3943
+ amount: bigint;
3944
+ usd: number;
3945
+ };
3946
+ unlockRate: bigint;
3947
+ unlockEverySeconds: number;
3948
+ unlockCliffSeconds: number;
3949
+ lockedAt: Date | null;
3950
+ };
3951
+ lastUnstakedAt: Date | null;
3952
+ withdrawAvailableAt: Date | null;
3953
+ };
3954
+ meta?: any;
3955
+ } | {
3956
+ authority: string | null;
3957
+ id: string;
3958
+ action: "create" | "update";
3959
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3960
+ data: {
3961
+ address: string;
3962
+ owner: string;
3963
+ staked: {
3964
+ amount: bigint;
3965
+ usd: number;
3966
+ };
3967
+ unstaked: {
3968
+ amount: bigint;
3969
+ usd: number;
3970
+ };
3971
+ claimedReward: {
3972
+ amount: bigint;
3973
+ usd: number;
3974
+ };
3975
+ unclaimedReward: {
3976
+ amount: bigint;
3977
+ usd: number;
3978
+ };
3979
+ vesting: {
3980
+ locked: {
3981
+ amount: bigint;
3982
+ usd: number;
3983
+ };
3984
+ unlocked: {
3985
+ amount: bigint;
3986
+ usd: number;
3987
+ };
3988
+ unlockRate: bigint;
3989
+ unlockEverySeconds: number;
3990
+ unlockCliffSeconds: number;
3991
+ lockedAt: Date | null;
3992
+ };
3993
+ lastUnstakedAt: Date | null;
3994
+ withdrawAvailableAt: Date | null;
3995
+ };
3996
+ meta?: any;
3997
+ }, {
3998
+ authority: string | null;
3999
+ id: string;
4000
+ action: "create" | "update";
4001
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
4002
+ data: {
4003
+ address: string;
4004
+ owner: string;
4005
+ staked: {
4006
+ amount: bigint;
4007
+ usd: number;
4008
+ };
4009
+ unstaked: {
4010
+ amount: bigint;
4011
+ usd: number;
4012
+ };
4013
+ claimedReward: {
4014
+ amount: bigint;
4015
+ usd: number;
4016
+ };
4017
+ unclaimedReward: {
4018
+ amount: bigint;
4019
+ usd: number;
4020
+ };
4021
+ vesting: {
4022
+ locked: {
4023
+ amount: bigint;
4024
+ usd: number;
4025
+ };
4026
+ unlocked: {
4027
+ amount: bigint;
4028
+ usd: number;
4029
+ };
4030
+ unlockRate: bigint;
4031
+ unlockEverySeconds: number;
4032
+ unlockCliffSeconds: number;
4033
+ lockedAt: Date | null;
4034
+ };
4035
+ lastUnstakedAt: Date | null;
4036
+ withdrawAvailableAt: Date | null;
4037
+ };
4038
+ meta?: any;
4039
+ } | {
4040
+ authority: string | null;
4041
+ id: string;
4042
+ action: "create" | "update";
4043
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
4044
+ data: {
4045
+ address: string;
4046
+ owner: string;
4047
+ staked: {
4048
+ amount: bigint;
4049
+ usd: number;
4050
+ };
4051
+ unstaked: {
4052
+ amount: bigint;
4053
+ usd: number;
4054
+ };
4055
+ claimedReward: {
4056
+ amount: bigint;
4057
+ usd: number;
4058
+ };
4059
+ unclaimedReward: {
4060
+ amount: bigint;
4061
+ usd: number;
4062
+ };
4063
+ vesting: {
4064
+ locked: {
4065
+ amount: bigint;
4066
+ usd: number;
4067
+ };
4068
+ unlocked: {
4069
+ amount: bigint;
4070
+ usd: number;
4071
+ };
4072
+ unlockRate: bigint;
4073
+ unlockEverySeconds: number;
4074
+ unlockCliffSeconds: number;
4075
+ lockedAt: Date | null;
4076
+ };
4077
+ lastUnstakedAt: Date | null;
4078
+ withdrawAvailableAt: Date | null;
4079
+ };
4080
+ meta?: any;
4081
+ }>;
3564
4082
 
3565
4083
  declare const schemas_LendingPositionNotification: typeof LendingPositionNotification;
3566
4084
  declare const schemas_LimitOrderNotification: typeof LimitOrderNotification;
@@ -3579,6 +4097,7 @@ declare const schemas_PoolSubscriptionTopic: typeof PoolSubscriptionTopic;
3579
4097
  declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicSchema;
3580
4098
  declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
3581
4099
  declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
4100
+ declare const schemas_StakingPositionNotification: typeof StakingPositionNotification;
3582
4101
  declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
3583
4102
  declare const schemas_TunaPositionState: typeof TunaPositionState;
3584
4103
  declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
@@ -3586,7 +4105,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
3586
4105
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
3587
4106
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
3588
4107
  declare namespace schemas {
3589
- export { LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, 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, 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, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
4108
+ export { LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, 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, 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, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
3590
4109
  }
3591
4110
 
3592
4111
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
package/dist/index.d.ts CHANGED
@@ -44,6 +44,7 @@ declare const WalletSubscriptionTopic: {
44
44
  readonly TUNA_POSITIONS: "tuna_positions";
45
45
  readonly LENDING_POSITIONS: "lending_positions";
46
46
  readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
47
+ readonly STAKING_POSITION: "staking_position";
47
48
  };
48
49
  declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
49
50
  declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
@@ -52,7 +53,7 @@ declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidat
52
53
  declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
53
54
  declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards")[]]>;
54
55
  declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
55
- declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("tuna_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
56
+ declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("tuna_positions" | "lending_positions" | "fusion_limit_orders" | "staking_position")[]]>;
56
57
  declare const Mint$1: z.ZodObject<{
57
58
  symbol: z.ZodString;
58
59
  mint: z.ZodString;
@@ -3561,6 +3562,523 @@ declare const LimitOrderNotification: z.ZodObject<{
3561
3562
  };
3562
3563
  meta?: any;
3563
3564
  }>;
3565
+ declare const StakingPositionNotification: z.ZodObject<{
3566
+ meta: z.ZodTypeAny;
3567
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
3568
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3569
+ data: z.ZodObject<{
3570
+ address: z.ZodString;
3571
+ owner: z.ZodString;
3572
+ staked: z.ZodObject<{
3573
+ amount: z.ZodBigInt;
3574
+ usd: z.ZodNumber;
3575
+ }, "strip", z.ZodTypeAny, {
3576
+ amount: bigint;
3577
+ usd: number;
3578
+ }, {
3579
+ amount: bigint;
3580
+ usd: number;
3581
+ }>;
3582
+ unstaked: z.ZodObject<{
3583
+ amount: z.ZodBigInt;
3584
+ usd: z.ZodNumber;
3585
+ }, "strip", z.ZodTypeAny, {
3586
+ amount: bigint;
3587
+ usd: number;
3588
+ }, {
3589
+ amount: bigint;
3590
+ usd: number;
3591
+ }>;
3592
+ claimedReward: z.ZodObject<{
3593
+ amount: z.ZodBigInt;
3594
+ usd: z.ZodNumber;
3595
+ }, "strip", z.ZodTypeAny, {
3596
+ amount: bigint;
3597
+ usd: number;
3598
+ }, {
3599
+ amount: bigint;
3600
+ usd: number;
3601
+ }>;
3602
+ unclaimedReward: z.ZodObject<{
3603
+ amount: z.ZodBigInt;
3604
+ usd: z.ZodNumber;
3605
+ }, "strip", z.ZodTypeAny, {
3606
+ amount: bigint;
3607
+ usd: number;
3608
+ }, {
3609
+ amount: bigint;
3610
+ usd: number;
3611
+ }>;
3612
+ vesting: z.ZodObject<{
3613
+ locked: z.ZodObject<{
3614
+ amount: z.ZodBigInt;
3615
+ usd: z.ZodNumber;
3616
+ }, "strip", z.ZodTypeAny, {
3617
+ amount: bigint;
3618
+ usd: number;
3619
+ }, {
3620
+ amount: bigint;
3621
+ usd: number;
3622
+ }>;
3623
+ unlocked: z.ZodObject<{
3624
+ amount: z.ZodBigInt;
3625
+ usd: z.ZodNumber;
3626
+ }, "strip", z.ZodTypeAny, {
3627
+ amount: bigint;
3628
+ usd: number;
3629
+ }, {
3630
+ amount: bigint;
3631
+ usd: number;
3632
+ }>;
3633
+ unlockRate: z.ZodBigInt;
3634
+ unlockEverySeconds: z.ZodNumber;
3635
+ unlockCliffSeconds: z.ZodNumber;
3636
+ lockedAt: z.ZodNullable<z.ZodDate>;
3637
+ }, "strip", z.ZodTypeAny, {
3638
+ locked: {
3639
+ amount: bigint;
3640
+ usd: number;
3641
+ };
3642
+ unlocked: {
3643
+ amount: bigint;
3644
+ usd: number;
3645
+ };
3646
+ unlockRate: bigint;
3647
+ unlockEverySeconds: number;
3648
+ unlockCliffSeconds: number;
3649
+ lockedAt: Date | null;
3650
+ }, {
3651
+ locked: {
3652
+ amount: bigint;
3653
+ usd: number;
3654
+ };
3655
+ unlocked: {
3656
+ amount: bigint;
3657
+ usd: number;
3658
+ };
3659
+ unlockRate: bigint;
3660
+ unlockEverySeconds: number;
3661
+ unlockCliffSeconds: number;
3662
+ lockedAt: Date | null;
3663
+ }>;
3664
+ lastUnstakedAt: z.ZodNullable<z.ZodDate>;
3665
+ withdrawAvailableAt: z.ZodNullable<z.ZodDate>;
3666
+ }, "strip", z.ZodTypeAny, {
3667
+ address: string;
3668
+ owner: string;
3669
+ staked: {
3670
+ amount: bigint;
3671
+ usd: number;
3672
+ };
3673
+ unstaked: {
3674
+ amount: bigint;
3675
+ usd: number;
3676
+ };
3677
+ claimedReward: {
3678
+ amount: bigint;
3679
+ usd: number;
3680
+ };
3681
+ unclaimedReward: {
3682
+ amount: bigint;
3683
+ usd: number;
3684
+ };
3685
+ vesting: {
3686
+ locked: {
3687
+ amount: bigint;
3688
+ usd: number;
3689
+ };
3690
+ unlocked: {
3691
+ amount: bigint;
3692
+ usd: number;
3693
+ };
3694
+ unlockRate: bigint;
3695
+ unlockEverySeconds: number;
3696
+ unlockCliffSeconds: number;
3697
+ lockedAt: Date | null;
3698
+ };
3699
+ lastUnstakedAt: Date | null;
3700
+ withdrawAvailableAt: Date | null;
3701
+ }, {
3702
+ address: string;
3703
+ owner: string;
3704
+ staked: {
3705
+ amount: bigint;
3706
+ usd: number;
3707
+ };
3708
+ unstaked: {
3709
+ amount: bigint;
3710
+ usd: number;
3711
+ };
3712
+ claimedReward: {
3713
+ amount: bigint;
3714
+ usd: number;
3715
+ };
3716
+ unclaimedReward: {
3717
+ amount: bigint;
3718
+ usd: number;
3719
+ };
3720
+ vesting: {
3721
+ locked: {
3722
+ amount: bigint;
3723
+ usd: number;
3724
+ };
3725
+ unlocked: {
3726
+ amount: bigint;
3727
+ usd: number;
3728
+ };
3729
+ unlockRate: bigint;
3730
+ unlockEverySeconds: number;
3731
+ unlockCliffSeconds: number;
3732
+ lockedAt: Date | null;
3733
+ };
3734
+ lastUnstakedAt: Date | null;
3735
+ withdrawAvailableAt: Date | null;
3736
+ }>;
3737
+ id: z.ZodString;
3738
+ authority: z.ZodNullable<z.ZodString>;
3739
+ } | {
3740
+ meta: z.ZodNullable<z.ZodUndefined>;
3741
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
3742
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3743
+ data: z.ZodObject<{
3744
+ address: z.ZodString;
3745
+ owner: z.ZodString;
3746
+ staked: z.ZodObject<{
3747
+ amount: z.ZodBigInt;
3748
+ usd: z.ZodNumber;
3749
+ }, "strip", z.ZodTypeAny, {
3750
+ amount: bigint;
3751
+ usd: number;
3752
+ }, {
3753
+ amount: bigint;
3754
+ usd: number;
3755
+ }>;
3756
+ unstaked: z.ZodObject<{
3757
+ amount: z.ZodBigInt;
3758
+ usd: z.ZodNumber;
3759
+ }, "strip", z.ZodTypeAny, {
3760
+ amount: bigint;
3761
+ usd: number;
3762
+ }, {
3763
+ amount: bigint;
3764
+ usd: number;
3765
+ }>;
3766
+ claimedReward: z.ZodObject<{
3767
+ amount: z.ZodBigInt;
3768
+ usd: z.ZodNumber;
3769
+ }, "strip", z.ZodTypeAny, {
3770
+ amount: bigint;
3771
+ usd: number;
3772
+ }, {
3773
+ amount: bigint;
3774
+ usd: number;
3775
+ }>;
3776
+ unclaimedReward: z.ZodObject<{
3777
+ amount: z.ZodBigInt;
3778
+ usd: z.ZodNumber;
3779
+ }, "strip", z.ZodTypeAny, {
3780
+ amount: bigint;
3781
+ usd: number;
3782
+ }, {
3783
+ amount: bigint;
3784
+ usd: number;
3785
+ }>;
3786
+ vesting: z.ZodObject<{
3787
+ locked: z.ZodObject<{
3788
+ amount: z.ZodBigInt;
3789
+ usd: z.ZodNumber;
3790
+ }, "strip", z.ZodTypeAny, {
3791
+ amount: bigint;
3792
+ usd: number;
3793
+ }, {
3794
+ amount: bigint;
3795
+ usd: number;
3796
+ }>;
3797
+ unlocked: z.ZodObject<{
3798
+ amount: z.ZodBigInt;
3799
+ usd: z.ZodNumber;
3800
+ }, "strip", z.ZodTypeAny, {
3801
+ amount: bigint;
3802
+ usd: number;
3803
+ }, {
3804
+ amount: bigint;
3805
+ usd: number;
3806
+ }>;
3807
+ unlockRate: z.ZodBigInt;
3808
+ unlockEverySeconds: z.ZodNumber;
3809
+ unlockCliffSeconds: z.ZodNumber;
3810
+ lockedAt: z.ZodNullable<z.ZodDate>;
3811
+ }, "strip", z.ZodTypeAny, {
3812
+ locked: {
3813
+ amount: bigint;
3814
+ usd: number;
3815
+ };
3816
+ unlocked: {
3817
+ amount: bigint;
3818
+ usd: number;
3819
+ };
3820
+ unlockRate: bigint;
3821
+ unlockEverySeconds: number;
3822
+ unlockCliffSeconds: number;
3823
+ lockedAt: Date | null;
3824
+ }, {
3825
+ locked: {
3826
+ amount: bigint;
3827
+ usd: number;
3828
+ };
3829
+ unlocked: {
3830
+ amount: bigint;
3831
+ usd: number;
3832
+ };
3833
+ unlockRate: bigint;
3834
+ unlockEverySeconds: number;
3835
+ unlockCliffSeconds: number;
3836
+ lockedAt: Date | null;
3837
+ }>;
3838
+ lastUnstakedAt: z.ZodNullable<z.ZodDate>;
3839
+ withdrawAvailableAt: z.ZodNullable<z.ZodDate>;
3840
+ }, "strip", z.ZodTypeAny, {
3841
+ address: string;
3842
+ owner: string;
3843
+ staked: {
3844
+ amount: bigint;
3845
+ usd: number;
3846
+ };
3847
+ unstaked: {
3848
+ amount: bigint;
3849
+ usd: number;
3850
+ };
3851
+ claimedReward: {
3852
+ amount: bigint;
3853
+ usd: number;
3854
+ };
3855
+ unclaimedReward: {
3856
+ amount: bigint;
3857
+ usd: number;
3858
+ };
3859
+ vesting: {
3860
+ locked: {
3861
+ amount: bigint;
3862
+ usd: number;
3863
+ };
3864
+ unlocked: {
3865
+ amount: bigint;
3866
+ usd: number;
3867
+ };
3868
+ unlockRate: bigint;
3869
+ unlockEverySeconds: number;
3870
+ unlockCliffSeconds: number;
3871
+ lockedAt: Date | null;
3872
+ };
3873
+ lastUnstakedAt: Date | null;
3874
+ withdrawAvailableAt: Date | null;
3875
+ }, {
3876
+ address: string;
3877
+ owner: string;
3878
+ staked: {
3879
+ amount: bigint;
3880
+ usd: number;
3881
+ };
3882
+ unstaked: {
3883
+ amount: bigint;
3884
+ usd: number;
3885
+ };
3886
+ claimedReward: {
3887
+ amount: bigint;
3888
+ usd: number;
3889
+ };
3890
+ unclaimedReward: {
3891
+ amount: bigint;
3892
+ usd: number;
3893
+ };
3894
+ vesting: {
3895
+ locked: {
3896
+ amount: bigint;
3897
+ usd: number;
3898
+ };
3899
+ unlocked: {
3900
+ amount: bigint;
3901
+ usd: number;
3902
+ };
3903
+ unlockRate: bigint;
3904
+ unlockEverySeconds: number;
3905
+ unlockCliffSeconds: number;
3906
+ lockedAt: Date | null;
3907
+ };
3908
+ lastUnstakedAt: Date | null;
3909
+ withdrawAvailableAt: Date | null;
3910
+ }>;
3911
+ id: z.ZodString;
3912
+ authority: z.ZodNullable<z.ZodString>;
3913
+ }, "strip", z.ZodTypeAny, {
3914
+ authority: string | null;
3915
+ id: string;
3916
+ action: "create" | "update";
3917
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3918
+ data: {
3919
+ address: string;
3920
+ owner: string;
3921
+ staked: {
3922
+ amount: bigint;
3923
+ usd: number;
3924
+ };
3925
+ unstaked: {
3926
+ amount: bigint;
3927
+ usd: number;
3928
+ };
3929
+ claimedReward: {
3930
+ amount: bigint;
3931
+ usd: number;
3932
+ };
3933
+ unclaimedReward: {
3934
+ amount: bigint;
3935
+ usd: number;
3936
+ };
3937
+ vesting: {
3938
+ locked: {
3939
+ amount: bigint;
3940
+ usd: number;
3941
+ };
3942
+ unlocked: {
3943
+ amount: bigint;
3944
+ usd: number;
3945
+ };
3946
+ unlockRate: bigint;
3947
+ unlockEverySeconds: number;
3948
+ unlockCliffSeconds: number;
3949
+ lockedAt: Date | null;
3950
+ };
3951
+ lastUnstakedAt: Date | null;
3952
+ withdrawAvailableAt: Date | null;
3953
+ };
3954
+ meta?: any;
3955
+ } | {
3956
+ authority: string | null;
3957
+ id: string;
3958
+ action: "create" | "update";
3959
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3960
+ data: {
3961
+ address: string;
3962
+ owner: string;
3963
+ staked: {
3964
+ amount: bigint;
3965
+ usd: number;
3966
+ };
3967
+ unstaked: {
3968
+ amount: bigint;
3969
+ usd: number;
3970
+ };
3971
+ claimedReward: {
3972
+ amount: bigint;
3973
+ usd: number;
3974
+ };
3975
+ unclaimedReward: {
3976
+ amount: bigint;
3977
+ usd: number;
3978
+ };
3979
+ vesting: {
3980
+ locked: {
3981
+ amount: bigint;
3982
+ usd: number;
3983
+ };
3984
+ unlocked: {
3985
+ amount: bigint;
3986
+ usd: number;
3987
+ };
3988
+ unlockRate: bigint;
3989
+ unlockEverySeconds: number;
3990
+ unlockCliffSeconds: number;
3991
+ lockedAt: Date | null;
3992
+ };
3993
+ lastUnstakedAt: Date | null;
3994
+ withdrawAvailableAt: Date | null;
3995
+ };
3996
+ meta?: any;
3997
+ }, {
3998
+ authority: string | null;
3999
+ id: string;
4000
+ action: "create" | "update";
4001
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
4002
+ data: {
4003
+ address: string;
4004
+ owner: string;
4005
+ staked: {
4006
+ amount: bigint;
4007
+ usd: number;
4008
+ };
4009
+ unstaked: {
4010
+ amount: bigint;
4011
+ usd: number;
4012
+ };
4013
+ claimedReward: {
4014
+ amount: bigint;
4015
+ usd: number;
4016
+ };
4017
+ unclaimedReward: {
4018
+ amount: bigint;
4019
+ usd: number;
4020
+ };
4021
+ vesting: {
4022
+ locked: {
4023
+ amount: bigint;
4024
+ usd: number;
4025
+ };
4026
+ unlocked: {
4027
+ amount: bigint;
4028
+ usd: number;
4029
+ };
4030
+ unlockRate: bigint;
4031
+ unlockEverySeconds: number;
4032
+ unlockCliffSeconds: number;
4033
+ lockedAt: Date | null;
4034
+ };
4035
+ lastUnstakedAt: Date | null;
4036
+ withdrawAvailableAt: Date | null;
4037
+ };
4038
+ meta?: any;
4039
+ } | {
4040
+ authority: string | null;
4041
+ id: string;
4042
+ action: "create" | "update";
4043
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
4044
+ data: {
4045
+ address: string;
4046
+ owner: string;
4047
+ staked: {
4048
+ amount: bigint;
4049
+ usd: number;
4050
+ };
4051
+ unstaked: {
4052
+ amount: bigint;
4053
+ usd: number;
4054
+ };
4055
+ claimedReward: {
4056
+ amount: bigint;
4057
+ usd: number;
4058
+ };
4059
+ unclaimedReward: {
4060
+ amount: bigint;
4061
+ usd: number;
4062
+ };
4063
+ vesting: {
4064
+ locked: {
4065
+ amount: bigint;
4066
+ usd: number;
4067
+ };
4068
+ unlocked: {
4069
+ amount: bigint;
4070
+ usd: number;
4071
+ };
4072
+ unlockRate: bigint;
4073
+ unlockEverySeconds: number;
4074
+ unlockCliffSeconds: number;
4075
+ lockedAt: Date | null;
4076
+ };
4077
+ lastUnstakedAt: Date | null;
4078
+ withdrawAvailableAt: Date | null;
4079
+ };
4080
+ meta?: any;
4081
+ }>;
3564
4082
 
3565
4083
  declare const schemas_LendingPositionNotification: typeof LendingPositionNotification;
3566
4084
  declare const schemas_LimitOrderNotification: typeof LimitOrderNotification;
@@ -3579,6 +4097,7 @@ declare const schemas_PoolSubscriptionTopic: typeof PoolSubscriptionTopic;
3579
4097
  declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicSchema;
3580
4098
  declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
3581
4099
  declare const schemas_StakingPositionHistoryActionTypeSchema: typeof StakingPositionHistoryActionTypeSchema;
4100
+ declare const schemas_StakingPositionNotification: typeof StakingPositionNotification;
3582
4101
  declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
3583
4102
  declare const schemas_TunaPositionState: typeof TunaPositionState;
3584
4103
  declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
@@ -3586,7 +4105,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
3586
4105
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
3587
4106
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
3588
4107
  declare namespace schemas {
3589
- export { LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, 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, 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, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
4108
+ export { LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, 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, 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, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
3590
4109
  }
3591
4110
 
3592
4111
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;
package/dist/index.js CHANGED
@@ -77,6 +77,7 @@ __export(schemas_exports, {
77
77
  StakingPositionHistoryAction: () => StakingPositionHistoryAction,
78
78
  StakingPositionHistoryActionType: () => StakingPositionHistoryActionType,
79
79
  StakingPositionHistoryActionTypeSchema: () => StakingPositionHistoryActionTypeSchema,
80
+ StakingPositionNotification: () => StakingPositionNotification,
80
81
  StakingTreasury: () => StakingTreasury,
81
82
  Tick: () => Tick,
82
83
  TokenOraclePrice: () => TokenOraclePrice,
@@ -149,7 +150,8 @@ var PoolSubscriptionTopic = {
149
150
  var WalletSubscriptionTopic = {
150
151
  TUNA_POSITIONS: "tuna_positions",
151
152
  LENDING_POSITIONS: "lending_positions",
152
- FUSION_LIMIT_ORDERS: "fusion_limit_orders"
153
+ FUSION_LIMIT_ORDERS: "fusion_limit_orders",
154
+ STAKING_POSITION: "staking_position"
153
155
  };
154
156
  var NotificationEntitySchema = import_zod.z.enum([NotificationEntity.POOL_SWAP, ...Object.values(NotificationEntity)]);
155
157
  var NotificationActionSchema = import_zod.z.enum([NotificationAction.CREATE, ...Object.values(NotificationAction)]);
@@ -432,6 +434,7 @@ var OrderBookNotification = createNotificationSchema(OrderBook, OrderBookNotific
432
434
  var TunaPositionNotification = createNotificationSchema(TunaPosition);
433
435
  var LendingPositionNotification = createNotificationSchema(LendingPosition);
434
436
  var LimitOrderNotification = createNotificationSchema(LimitOrder);
437
+ var StakingPositionNotification = createNotificationSchema(StakingPosition);
435
438
 
436
439
  // src/client/client.ts
437
440
  var DEFAULT_TIMEOUT = 5e3;
package/dist/index.mjs CHANGED
@@ -42,6 +42,7 @@ __export(schemas_exports, {
42
42
  StakingPositionHistoryAction: () => StakingPositionHistoryAction,
43
43
  StakingPositionHistoryActionType: () => StakingPositionHistoryActionType,
44
44
  StakingPositionHistoryActionTypeSchema: () => StakingPositionHistoryActionTypeSchema,
45
+ StakingPositionNotification: () => StakingPositionNotification,
45
46
  StakingTreasury: () => StakingTreasury,
46
47
  Tick: () => Tick,
47
48
  TokenOraclePrice: () => TokenOraclePrice,
@@ -114,7 +115,8 @@ var PoolSubscriptionTopic = {
114
115
  var WalletSubscriptionTopic = {
115
116
  TUNA_POSITIONS: "tuna_positions",
116
117
  LENDING_POSITIONS: "lending_positions",
117
- FUSION_LIMIT_ORDERS: "fusion_limit_orders"
118
+ FUSION_LIMIT_ORDERS: "fusion_limit_orders",
119
+ STAKING_POSITION: "staking_position"
118
120
  };
119
121
  var NotificationEntitySchema = z.enum([NotificationEntity.POOL_SWAP, ...Object.values(NotificationEntity)]);
120
122
  var NotificationActionSchema = z.enum([NotificationAction.CREATE, ...Object.values(NotificationAction)]);
@@ -397,6 +399,7 @@ var OrderBookNotification = createNotificationSchema(OrderBook, OrderBookNotific
397
399
  var TunaPositionNotification = createNotificationSchema(TunaPosition);
398
400
  var LendingPositionNotification = createNotificationSchema(LendingPosition);
399
401
  var LimitOrderNotification = createNotificationSchema(LimitOrder);
402
+ var StakingPositionNotification = createNotificationSchema(StakingPosition);
400
403
 
401
404
  // src/client/client.ts
402
405
  var DEFAULT_TIMEOUT = 5e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crypticdot/defituna-api",
3
- "version": "1.1.38",
3
+ "version": "1.1.39",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",